:root {
  --ink: #1e1b16;
  --muted: #5b5146;
  --paper: #fff6ec;
  --accent: #ff7b2f;
  --accent-2: #1f9c8b;
  --accent-3: #f0b429;
  --stroke: rgba(30, 27, 22, 0.12);
  --shadow: 0 20px 50px rgba(20, 20, 20, 0.14);
  --shadow-soft: 0 12px 24px rgba(20, 20, 20, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% 8%, rgba(255, 209, 163, 0.8) 0%, transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(172, 245, 234, 0.7) 0%, transparent 60%),
    linear-gradient(140deg, #fef4e8 0%, #f6fbf5 50%, #f6efe8 100%);
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.5;
  z-index: 0;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 123, 47, 0.4), transparent 70%);
  top: -80px;
  left: -60px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(31, 156, 139, 0.35), transparent 70%);
  bottom: -120px;
  right: -120px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 96%, rgba(30, 27, 22, 0.04) 100%),
    linear-gradient(90deg, transparent 96%, rgba(30, 27, 22, 0.04) 100%);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 10vw 12px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-mark {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-sub {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-form {
  display: inline-flex;
  margin: 0;
}

.nav-form .nav-link {
  cursor: pointer;
  font: inherit;
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.nav-link.is-active {
  background: rgba(31, 156, 139, 0.18);
  border-color: rgba(31, 156, 139, 0.35);
  color: #12695f;
  box-shadow: var(--shadow-soft);
}

.nav-user {
  display: inline-flex;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px 60px;
  position: relative;
  z-index: 1;
}

.admin-shell {
  max-width: 1280px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  animation: float-in 0.6s ease;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.card {
  background: var(--paper);
  border-radius: 26px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
  animation: float-in 0.6s ease;
}

.card + .card {
  margin-top: 22px;
}

.hero-card h1 {
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(31, 156, 139, 0.16);
  color: #12695f;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--accent), #ffb073);
  color: #1a120a;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(255, 123, 47, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(255, 123, 47, 0.3);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: 0 10px 18px rgba(255, 123, 47, 0.18);
}

.button.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(26, 18, 10, 0.35);
  border-top-color: rgba(26, 18, 10, 0.9);
  animation: spin 0.8s linear infinite;
}

body.has-submit-overlay {
  overflow: hidden;
}

.submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 12, 8, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.submit-overlay.is-visible {
  display: flex;
}

.submit-overlay-card {
  width: min(100%, 460px);
  background: rgba(255, 248, 241, 0.96);
  border: 1px solid rgba(30, 27, 22, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 10, 6, 0.24);
  padding: 28px 24px;
  text-align: center;
  display: grid;
  gap: 12px;
}

.submit-overlay-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  border-radius: 999px;
  border: 4px solid rgba(255, 123, 47, 0.2);
  border-top-color: rgba(255, 123, 47, 0.95);
  animation: spin 0.8s linear infinite;
}

.submit-overlay-title {
  margin: 0;
  font-size: 1.35rem;
}

.submit-overlay-message,
.submit-overlay-detail {
  margin: 0;
  color: var(--muted);
}

.submit-overlay-detail {
  font-size: 0.95rem;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.button.ghost:hover {
  box-shadow: var(--shadow-soft);
}

.button.small {
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.grid {
  display: grid;
  gap: 18px;
}

.list-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(20, 20, 20, 0.16);
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.list-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.list-meta {
  color: var(--muted);
  margin-top: 4px;
}

.empty {
  text-align: center;
}

.detail-card {
  margin-bottom: 24px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
}

.detail-grid h2 {
  margin-bottom: 6px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.detail-grid p {
  margin: 0 0 6px;
}

.client-progress {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
}

.client-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.progress-steps {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: default;
  user-select: none;
}

.progress-check {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(30, 27, 22, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: transparent;
  background: transparent;
}

.progress-step.is-done {
  color: var(--ink);
}

.progress-step.is-done .progress-check {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.progress-step.is-current {
  color: var(--ink);
}

.progress-step.is-current .progress-check {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.gps-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.72);
}

.gps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.gps-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pickup-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 188, 122, 0.24), transparent 30%),
    rgba(16, 12, 8, 0.62);
  backdrop-filter: blur(10px);
}

.pickup-modal.is-hidden {
  display: none;
}

.pickup-modal-card {
  width: min(100%, 720px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(30, 27, 22, 0.14);
  background: rgba(255, 248, 241, 0.97);
  box-shadow: 0 26px 70px rgba(15, 10, 6, 0.28);
}

.pickup-step {
  display: none;
  gap: 18px;
  align-content: start;
}

.pickup-step.is-active {
  display: grid;
}

.pickup-modal-head {
  display: grid;
  gap: 8px;
  text-align: center;
}

.pickup-modal-head .chip {
  justify-self: center;
}

.pickup-modal-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.pickup-modal-head p {
  margin: 0;
  color: var(--muted);
}

.pickup-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 16px;
}

.pickup-info-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(30, 27, 22, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.pickup-step-button {
  width: 100%;
  min-height: 52px;
  align-self: start;
  padding: 14px 20px;
}

.pickup-fuel-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 123, 47, 0.2);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 178, 107, 0.34), transparent 34%),
    linear-gradient(145deg, rgba(255, 244, 232, 0.96), rgba(255, 255, 255, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pickup-fuel-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #ffb073);
  box-shadow: 0 14px 28px rgba(255, 123, 47, 0.24);
}

.pickup-fuel-mark span {
  width: 24px;
  height: 32px;
  border: 3px solid #1e1b16;
  border-radius: 7px 7px 5px 5px;
  position: relative;
  display: block;
}

.pickup-fuel-mark span::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 7px;
  border-radius: 3px;
  background: rgba(30, 27, 22, 0.22);
}

.pickup-fuel-mark span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 13px;
  right: -10px;
  top: 9px;
  border: 3px solid #1e1b16;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.pickup-fuel-panel h3 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  letter-spacing: -0.03em;
}

.pickup-fuel-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.pickup-fuel-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.lockbox-modal-card {
  width: min(100%, 660px);
}

.lockbox-info-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(31, 156, 139, 0.22);
  background:
    radial-gradient(circle at 88% 8%, rgba(31, 156, 139, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(239, 251, 247, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lockbox-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-2), #91e3d6);
  box-shadow: 0 14px 28px rgba(31, 156, 139, 0.2);
}

.lockbox-mark span {
  width: 28px;
  height: 30px;
  border: 3px solid #1e1b16;
  border-radius: 7px;
  position: relative;
  display: block;
}

.lockbox-mark span::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: -16px;
  height: 16px;
  border: 3px solid #1e1b16;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.lockbox-mark span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1e1b16;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 0 #1e1b16;
}

.lockbox-info-panel h3 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  letter-spacing: -0.03em;
}

.lockbox-info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.lockbox-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.lockbox-key-button {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(242, 238, 232, 0.9));
  border: 1px solid rgba(30, 27, 22, 0.14);
  box-shadow: 0 10px 22px rgba(30, 27, 22, 0.12);
}

.lockbox-key-button img {
  width: 26px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.pickup-info-card-fuel {
  background:
    linear-gradient(135deg, rgba(255, 123, 47, 0.14), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.72);
}

.pickup-info-card-map {
  background:
    linear-gradient(135deg, rgba(77, 124, 15, 0.12), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
}

.pickup-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ink);
  font-family: "Space Mono", monospace;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(30, 27, 22, 0.14);
}

.pickup-info-card h3 {
  margin: 0 0 8px;
}

.pickup-info-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.pickup-info-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.pickup-map {
  width: 100%;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(30, 27, 22, 0.16);
  background: rgba(255, 255, 255, 0.75);
}

.return-map {
  width: 100%;
  min-height: 300px;
  margin-top: 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(30, 27, 22, 0.16);
  background: rgba(255, 255, 255, 0.75);
}

.pickup-map-fallback {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(30, 27, 22, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.pickup-map-fallback span {
  color: var(--muted);
}

.pickup-map-actions {
  margin-top: 12px;
}

.pickup-confirm-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 123, 47, 0.24);
  background: rgba(255, 255, 255, 0.74);
}

.pickup-confirm-checkbox {
  align-items: flex-start;
  color: var(--ink);
  line-height: 1.45;
}

.pickup-confirm-checkbox input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.history-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.history-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 22, 0.15);
  background: rgba(255, 255, 255, 0.6);
}

.history-time {
  font-weight: 600;
}

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

.history-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-links a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 27, 22, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-card {
  max-width: 840px;
  margin: 0 auto;
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

label {
  font-weight: 600;
}

.checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: var(--muted);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
input[type="file"],
input[type="password"],
select,
textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(30, 27, 22, 0.2);
  font-size: 1rem;
  background: #fffdf9;
  font-family: inherit;
}

input[type="file"] {
  padding: 10px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 123, 47, 0.2);
}

textarea {
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.actions form {
  margin: 0;
}

.status-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.link-box {
  margin-top: 12px;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(31, 156, 139, 0.12);
  color: #12695f;
  border: 1px solid rgba(31, 156, 139, 0.24);
}

.notice.warn {
  background: rgba(255, 123, 47, 0.15);
  color: #8a2f0c;
  border-color: rgba(255, 123, 47, 0.3);
}

.qr-box {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.qr-image {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #fff;
  padding: 10px;
  object-fit: contain;
}

.qr-details {
  flex: 1 1 220px;
}

.qr-details textarea {
  width: 100%;
  min-height: 90px;
}

.contract-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.75);
  min-height: 60vh;
  max-height: 70vh;
  overflow: auto;
}

.signature-pad {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  border: 1px solid rgba(30, 27, 22, 0.25);
  background: #fffdf9;
  overflow: hidden;
}

.signature-pad canvas {
  width: 100%;
  height: 100%;
}

.photo-guide {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 18px;
}

.photo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.photo-card {
  border-radius: 18px;
  border: 1px solid rgba(30, 27, 22, 0.12);
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.photo-card.is-missing {
  border-color: rgba(210, 83, 29, 0.7);
  background: rgba(255, 244, 238, 0.9);
}

.photo-card.is-ready {
  border-color: rgba(16, 138, 91, 0.5);
}

.photo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-title {
  font-weight: 700;
}

.photo-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(31, 156, 139, 0.15);
  color: #0f5c52;
  border: 1px solid rgba(31, 156, 139, 0.35);
}

.photo-tag.optional {
  background: rgba(240, 180, 41, 0.2);
  color: #7b4a00;
  border-color: rgba(240, 180, 41, 0.45);
}

.doc-choice {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
}

.choice-title {
  font-weight: 700;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.choice-option input {
  accent-color: var(--accent-2);
}

.doc-section {
  display: none;
}

.doc-section.is-active {
  display: block;
}

.photo-preview {
  position: relative;
  border-radius: 16px;
  border: 1px dashed rgba(30, 27, 22, 0.35);
  background: #fffdf9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.photo-preview::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 22, 0.15);
  background-image:
    linear-gradient(rgba(30, 27, 22, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 27, 22, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.photo-preview.has-raster::after {
  display: none;
}

.photo-preview:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 123, 47, 0.2);
}

.photo-placeholder {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}

.photo-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-orientation: from-image;
}

.photo-card.has-preview .photo-placeholder {
  display: none;
}

.photo-card.has-preview .photo-preview::after {
  display: none;
}

.photo-card.has-preview .photo-img {
  display: block;
}

.photo-filename {
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-word;
}

.photo-status {
  color: var(--muted);
  font-size: 0.85rem;
}

.photo-save-hint {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 138, 91, 0.35);
  background: rgba(16, 138, 91, 0.14);
  color: #0f5c52;
  font-weight: 600;
}

.photo-save-hint.is-error {
  border-color: rgba(210, 83, 29, 0.5);
  background: rgba(255, 123, 47, 0.16);
  color: #8a3209;
}

.admin-preview {
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
  object-fit: cover;
  border: 1px solid rgba(30, 27, 22, 0.12);
}

.admin-media-grid .photo-card {
  min-height: 0;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-slot {
  position: relative;
  border-radius: 16px;
  padding: 12px;
  border: 1px dashed rgba(30, 27, 22, 0.35);
  background: #fffdf9;
  min-height: 120px;
  display: grid;
  gap: 6px;
}

.photo-slot::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 27, 22, 0.15);
  background-image:
    linear-gradient(rgba(30, 27, 22, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 27, 22, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.photo-slot span {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.photo-card.has-preview .photo-preview {
  background-image: none !important;
}

.camera-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 20, 0.65);
  z-index: 1200;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.camera-modal.is-open {
  display: flex;
}

.camera-modal.is-landscape .camera-modal-content {
  width: min(96vw, 920px);
}

.camera-modal-content {
  width: min(94vw, 560px);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.camera-title {
  font-weight: 700;
}

.camera-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0f12;
  flex: 1 1 auto;
  max-height: 70dvh;
}

.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-raster {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
}

.camera-raster.has-raster {
  opacity: 0.35;
  transform: scale(1.2);
}

.camera-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  background: #fff;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 123, 47, 0.25);
  background: rgba(255, 123, 47, 0.18);
}

.flash-error {
  background: rgba(255, 123, 47, 0.18);
  border-color: rgba(255, 123, 47, 0.35);
}

.flash-success {
  background: rgba(31, 156, 139, 0.16);
  border-color: rgba(31, 156, 139, 0.32);
}

.flash-warn {
  background: rgba(240, 180, 41, 0.18);
  border-color: rgba(240, 180, 41, 0.34);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stroke);
}

.status-new {
  background: rgba(240, 180, 41, 0.2);
  color: #7a5a07;
  border-color: rgba(240, 180, 41, 0.4);
}

.status-work {
  background: rgba(31, 156, 139, 0.18);
  color: #12695f;
  border-color: rgba(31, 156, 139, 0.35);
}

.status-live {
  background: rgba(43, 170, 74, 0.18);
  color: #196a33;
  border-color: rgba(43, 170, 74, 0.3);
}

.status-return {
  background: rgba(255, 193, 7, 0.2);
  color: #7a5a07;
  border-color: rgba(255, 193, 7, 0.3);
}

.status-done {
  background: rgba(100, 116, 139, 0.18);
  color: #3f4a5a;
  border-color: rgba(100, 116, 139, 0.3);
}

.status-review {
  background: rgba(255, 193, 7, 0.2);
  color: #7a5a07;
  border-color: rgba(255, 193, 7, 0.4);
}

.status-reject {
  background: rgba(239, 68, 68, 0.18);
  color: #8b1e1e;
  border-color: rgba(239, 68, 68, 0.35);
}

.status-cancel {
  background: rgba(239, 68, 68, 0.18);
  color: #7a1f1f;
  border-color: rgba(239, 68, 68, 0.3);
}

.pin-card {
  display: grid;
  gap: 18px;
}

.pin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.pin-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pin-code {
  font-family: "Space Mono", monospace;
  font-size: clamp(32px, 6vw, 54px);
  letter-spacing: 0.18em;
}

.pin-lock-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pin-lock-icon {
  width: 18px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
  display: inline-block;
}

.pin-summary .pin-code {
  font-size: 1.8rem;
  letter-spacing: 0.12em;
}

.progress {
  height: 16px;
  background: rgba(30, 27, 22, 0.1);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(30, 27, 22, 0.08);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), #91e3d6);
  transition: width 0.4s ease;
}

.pin-meta-grid {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-page {
  display: grid;
  gap: 22px;
}

.admin-hero-card {
  display: grid;
  gap: 24px;
}

.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-title-block {
  display: grid;
  gap: 10px;
}

.admin-title-block h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.admin-title-block p {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
}

.hero-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-weight: 600;
}

.hero-contact-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-metrics.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(30, 27, 22, 0.12);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 6px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.metric-value.is-status {
  font-size: clamp(1rem, 2.3vw, 1.45rem);
  letter-spacing: -0.01em;
}

.metric-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.tone-accent {
  background: rgba(255, 123, 47, 0.12);
  border-color: rgba(255, 123, 47, 0.22);
}

.tone-live {
  background: rgba(31, 156, 139, 0.12);
  border-color: rgba(31, 156, 139, 0.24);
}

.tone-warn {
  background: rgba(240, 180, 41, 0.16);
  border-color: rgba(240, 180, 41, 0.3);
}

.tone-review {
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.24);
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.admin-section-head h2,
.subtle-card h3,
.card h3 {
  margin-top: 0;
}

.admin-section-head p {
  margin: 6px 0 0;
}

.admin-card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.queue-list,
.admin-list {
  display: grid;
  gap: 14px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.field.grow {
  flex: 1 1 280px;
}

.list-summary {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.queue-item,
.rental-row {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(30, 27, 22, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.queue-item.is-review {
  border-color: rgba(100, 116, 139, 0.26);
}

.queue-item.is-warn {
  border-color: rgba(240, 180, 41, 0.38);
}

.queue-item.is-accent {
  border-color: rgba(255, 123, 47, 0.28);
}

.queue-item-head,
.rental-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.queue-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.queue-meta,
.queue-copy {
  margin: 0;
  color: var(--muted);
}

.queue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rental-row-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.info-pair {
  display: grid;
  gap: 4px;
}

.info-key {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list.compact {
  gap: 8px;
}

.info-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.info-line span {
  color: var(--muted);
}

.subtle-card,
.choice-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(30, 27, 22, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.subtle-card p,
.choice-card p {
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 18px 12px;
  border-radius: 18px;
  border: 1px dashed rgba(30, 27, 22, 0.18);
  background: rgba(255, 255, 255, 0.42);
}

.empty-state h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.photo-columns {
  display: grid;
  gap: 22px;
}

.admin-form-grid {
  gap: 22px;
}

.auth-card {
  max-width: 560px;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented-option {
  position: relative;
}

.segmented-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(30, 27, 22, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.segmented-option input:checked + span {
  border-color: rgba(255, 123, 47, 0.38);
  background: rgba(255, 123, 47, 0.14);
  color: var(--ink);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.pagination-info {
  color: var(--muted);
  font-weight: 600;
}

.gps-map {
  width: 100%;
  height: 360px;
  margin: 12px 0 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 27, 22, 0.2);
}

.button.ghost.danger {
  color: #8b1e1e;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(255, 255, 255, 0.82);
}

.button.ghost.danger:hover {
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
}

.review-page {
  position: relative;
  overflow-x: clip;
}

.review-hero {
  gap: 20px;
}

.review-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.review-head-actions {
  align-items: flex-start;
  margin-top: 0;
}

.review-summary-grid,
.review-finance-grid,
.review-check-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.review-summary-card,
.review-finance-card {
  min-height: 0;
}

.review-summary-card h3,
.review-finance-card h3 {
  margin-bottom: 4px;
}

.review-summary-value {
  margin: 0;
  font-size: clamp(1.18rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.review-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 27, 22, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.review-decision-card {
  display: grid;
  gap: 18px;
}

.review-decision-note {
  margin-top: 0;
}

.review-action-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.review-action-form {
  margin: 0;
  min-width: 0;
}

.review-action-form .button {
  width: 100%;
  min-width: 0;
}

.review-mobile-bar,
.review-mobile-spacer {
  display: none;
}

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

.review-mobile-bar-head a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.review-mobile-actions {
  display: grid;
  gap: 10px;
}

.review-mobile-actions .review-action-form,
.review-mobile-actions .button {
  width: 100%;
}

.site-header-public-review {
  justify-content: center;
}

.public-review-shell {
  max-width: 1180px;
}

.dynamic-list {
  display: grid;
  gap: 10px;
}

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

.review-surface,
.review-section,
.review-action-panel {
  display: grid;
  gap: 18px;
}

.review-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.review-topbar > * {
  min-width: 0;
}

.review-pill-row {
  gap: 10px;
}

.review-presence-alert {
  margin-top: 0;
}

.review-presence-alert.is-hidden {
  display: none;
}

.review-action-panel {
  position: static;
  background: rgba(255, 248, 240, 0.98);
  border-color: rgba(255, 123, 47, 0.22);
}

.review-action-panel-bottom {
  margin-top: 2px;
}

.review-meta-banner {
  display: grid;
  gap: 16px;
}

.review-meta-banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.review-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(30, 27, 22, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.review-meta-item span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-meta-item strong {
  font-size: 1rem;
  line-height: 1.4;
}

.review-phone-link {
  color: inherit;
  text-decoration: none;
}

.review-phone-link:hover,
.review-phone-link:focus-visible {
  text-decoration: underline;
}

.review-doc-stack {
  gap: 16px;
}

.review-inline-flags,
.review-inline-list {
  display: grid;
  gap: 8px;
}

.review-card-tone-problem {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(255, 244, 242, 0.94);
}

.review-card-tone-review {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(255, 250, 240, 0.94);
}

.review-card-tone-ok {
  border-color: rgba(43, 170, 74, 0.28);
}

.review-section-tone-problem {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(255, 247, 244, 0.96);
}

.review-section-tone-review {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(255, 250, 242, 0.96);
}

.review-section-tone-ok {
  border-color: rgba(43, 170, 74, 0.2);
}

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

.review-photo-card {
  min-width: 0;
}

.review-photo-card.is-reference {
  background: rgba(247, 245, 240, 0.86);
}

.review-photo-grid-tone-problem .photo-card {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(255, 244, 242, 0.92);
}

.review-photo-grid-tone-review .photo-card {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(255, 250, 240, 0.92);
}

.review-photo-grid-reference .photo-card {
  background: rgba(247, 245, 240, 0.86);
}

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

.review-ai-card,
.review-expected-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.review-ai-row {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 27, 22, 0.08);
}

.review-ai-row:first-of-type {
  padding-top: 0;
  border-top: none;
}

.review-compare-stack {
  display: grid;
  gap: 18px;
}

.review-compare-row {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(30, 27, 22, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.review-compare-row.is-missing {
  border-color: rgba(210, 83, 29, 0.38);
  background: rgba(255, 244, 238, 0.92);
}

.review-compare-row.is-reference {
  background: rgba(247, 245, 240, 0.86);
}

.review-proof-panel,
.review-expected-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.review-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.review-panel-head > * {
  min-width: 0;
}

.review-proof-image {
  max-height: 440px;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  display: block;
}

.review-checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.review-checklist li {
  margin: 0;
}

.review-done-card {
  max-width: 720px;
}

.review-surface > *,
.review-section > *,
.review-action-panel > *,
.review-summary-grid > *,
.review-finance-grid > *,
.review-dual-grid > *,
.review-compare-row > *,
.review-ai-card > *,
.review-expected-card > * {
  min-width: 0;
}

.photo-title,
.photo-subtitle,
.review-summary-value,
.hint,
.hero-contact-line span,
.review-checklist li,
.review-ai-row,
.review-presence-alert,
.review-panel-head .button {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 8vw 12px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-page-head,
  .queue-item-head,
  .rental-row-head {
    flex-direction: column;
  }

  .review-hero-head {
    flex-direction: column;
  }

  .review-topbar,
  .review-meta-banner-head {
    flex-direction: column;
  }

  .review-head-actions {
    width: 100%;
  }

  .review-head-actions .button {
    width: 100%;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-header {
    flex-direction: column;
  }

  .status-form {
    flex-direction: column;
    align-items: stretch;
  }

  .pickup-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .pickup-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .review-summary-grid,
  .review-finance-grid,
  .review-check-grid,
  .review-doc-grid,
  .review-dual-grid,
  .dynamic-list-row,
  .review-meta-grid,
  .review-photo-grid,
  .review-compare-row {
    grid-template-columns: 1fr;
  }

  .review-jump-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .review-desktop-actions {
    display: none;
  }

  .review-mobile-spacer {
    display: block;
    height: 320px;
  }

  .review-mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(30, 27, 22, 0.14);
    background: rgba(255, 246, 236, 0.96);
    box-shadow: 0 18px 42px rgba(20, 20, 20, 0.2);
    backdrop-filter: blur(14px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .review-mobile-bar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-mobile-actions .button {
    min-height: 48px;
  }

  .review-action-panel,
  .review-action-panel-bottom {
    position: static;
  }
}

@media (max-width: 600px) {
  .shell {
    padding: 10px 16px 50px;
  }

  .card {
    padding: 22px 20px;
  }

  .form-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .nav-link,
  .nav-form {
    width: 100%;
  }

  .nav-form .nav-link {
    width: 100%;
    justify-content: center;
  }

  .client-progress-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-shell .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .client-shell .actions form {
    width: 100%;
  }

  .client-shell .actions form .button {
    width: 100%;
  }

  .client-shell .actions .button {
    width: 100%;
  }

  .photo-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-actions {
    width: 100%;
  }

  .photo-actions .button {
    flex: 1;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .info-line {
    flex-direction: column;
    gap: 4px;
  }

  .admin-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-contact-line,
  .pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .pin-display {
    flex-direction: column;
    align-items: flex-start;
  }

  .pickup-modal {
    padding: 10px;
  }

  .pickup-modal-card {
    max-height: calc(100dvh - 20px);
    padding: 18px;
    border-radius: 24px;
  }

  .pickup-step {
    gap: 14px;
  }

  .pickup-modal-head {
    gap: 6px;
  }

  .pickup-modal-head h2 {
    font-size: 1.9rem;
  }

  .pickup-fuel-panel {
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
  }

  .lockbox-info-panel {
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
  }

  .pickup-fuel-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .lockbox-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .pickup-fuel-mark span {
    width: 20px;
    height: 27px;
  }

  .lockbox-mark span {
    width: 24px;
    height: 26px;
  }

  .pickup-fuel-panel p {
    font-size: 1rem;
  }

  .lockbox-info-panel p {
    font-size: 1rem;
  }

  .lockbox-note {
    grid-template-columns: 1fr;
  }

  .lockbox-key-button {
    width: 52px;
    height: 52px;
  }

  .lockbox-key-button img {
    width: 23px;
    height: 47px;
  }

  .pickup-info-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .pickup-map {
    min-height: 230px;
  }

  .return-map {
    min-height: 240px;
  }

  .pickup-map-actions .button,
  .pickup-confirm-form .button {
    width: 100%;
  }
}
