.page-parking {
  --parking-bay-width: 119px;
  --parking-bay-height: 232px;
  --parking-green: #325d49;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  margin: 0 0 26px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #cad3c5;
  border-radius: 13px;
  background: #eeeede;
  color: #263b31;
  position: relative;
  isolation: isolate;
  min-width: 0;
  box-sizing: border-box;
}
.page-parking[hidden], .page-parking [hidden] { display: none !important; }
.page-parking-copy { min-width: 0; }
.page-parking-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #50664f; font: 600 10px/1.4 ui-monospace, monospace; letter-spacing: .055em; text-transform: uppercase; }
.page-parking-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 27px; padding: 2px 7px; color: #f9f7ea; background: var(--parking-green); border-radius: 5px; letter-spacing: .08em; }
.page-parking .page-parking-title { margin: 13px 0 9px; font: normal clamp(24px, 2.5vw, 31px)/1.1 Georgia, serif; letter-spacing: -.025em; overflow-wrap: normal; }
.page-parking .page-parking-message { margin: 0; max-width: 28em; min-height: 2.9em; font-size: 13px; line-height: 1.45; color: #425648; }
.page-parking .page-parking-instructions { font-size: 11px; line-height: 1.6; color: #596c58; margin: 10px 0 0; }
.page-parking kbd { font: 600 10px ui-monospace, monospace; display: inline-block; padding: 1px 5px; background: #fffdf1; border: 1px solid #a8b4a0; border-bottom-width: 2px; border-radius: 4px; }
.page-parking-touch { display: none; }
.page-parking-checks { display: flex; flex-wrap: wrap; gap: 7px 13px; list-style: none; padding: 0; margin: 17px 0 15px; }
.page-parking-check { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 10px; line-height: 1.5; color: #5f6e5a; }
.page-parking-check-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border: 1px solid #809176; border-radius: 50%; }
.page-parking-check[data-complete="true"] { color: #2e5c3f; }
.page-parking-check[data-complete="true"] .page-parking-check-dot { background: #41714b; border-color: #41714b; }
/* A tick must not widen its item and rewrap the checks while lining up. */
.page-parking-check-value { display: inline-block; flex: 0 0 10px; width: 10px; height: 15px; overflow: hidden; white-space: nowrap; font-size: 10px; line-height: 15px; visibility: hidden; }
.page-parking-check[data-complete="true"] .page-parking-check-value { visibility: visible; }
.page-parking-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.page-parking .page-parking-button { min-height: 44px; min-width: 112px; padding: 10px 17px; border: 1px solid var(--parking-green); border-radius: 7px; color: #fffef2; background: var(--parking-green); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; cursor: pointer; touch-action: manipulation; transition: background .18s ease, box-shadow .18s ease; }
.page-parking .page-parking-button:disabled { background: transparent; color: #6d7867; border-color: #a9b59f; cursor: default; opacity: 1; }
.page-parking .page-parking-button:not(:disabled):hover { background: #214433; box-shadow: 0 3px 0 #172e241c; }
.page-parking .page-parking-button:focus-visible { outline: 3px solid #ad724d; outline-offset: 4px; }
.page-parking-apron { display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 31px 21px 13px; border: 1px solid #637166; border-radius: 8px; background-color: #435147; background-image: repeating-linear-gradient(45deg, #ffffff02 0, #ffffff02 1px, transparent 1px, transparent 5px); }
.page-parking-outline { position: relative; box-sizing: border-box; width: var(--parking-bay-width); height: var(--parking-bay-height); border: 2px solid #e7ebd4; border-radius: 3px; color: #eef0dc; flex: 0 0 auto; transition: border-color .2s ease, background-color .2s ease; }
.page-parking-nose { position: absolute; top: -28px; left: 0; right: 0; height: 22px; text-align: center; font: 24px/22px Arial, sans-serif; color: #d8dfc8; }
.page-parking-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font: 600 42px/1 Arial, sans-serif; opacity: .2; user-select: none; }
.page-parking-tire { position: absolute; top: 17%; bottom: 17%; width: 0; border-left: 1px dashed #dce4ce4a; }
.page-parking-tire-left { left: 23%; }
.page-parking-tire-right { right: 23%; }
.page-parking-stage { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 2; }
.page-parking-stage canvas { display: block; pointer-events: none; }
.page-parking-bay-number { margin-top: 11px; color: #d8dfca; font: 9px/1.4 ui-monospace, monospace; letter-spacing: .11em; white-space: nowrap; }
.page-parking[data-state="ready"] .page-parking-outline { border-color: #b8f29b; background-color: #8ed37c1c; box-shadow: 0 0 0 4px #aad98e18; }
.page-parking[data-state="ready"] .page-parking-nose { color: #c5f9ad; }
.page-parking[data-state="parked"] { background-color: #e5ecde; border-color: #a9bc9c; }
.page-parking[data-state="parked"] .page-parking-outline { border-color: #c8e4b4; background-color: #9abc7921; }
.page-parking[data-state="parked"] .page-parking-mark, .page-parking[data-state="parked"] .page-parking-tire { opacity: 0; }
.page-parking-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (pointer: coarse) { .page-parking-keyboard { display: none; } .page-parking-touch { display: inline; } }
@media (max-width: 620px) {
  .page-parking { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 15px; }
  .page-parking-apron { justify-self: center; max-width: 100%; box-sizing: border-box; }
  /* Feedback must not move the bay while the driver is lining up. */
  .page-parking .page-parking-message { min-height: 4.35em; }
  .page-parking-checks { margin-top: 12px; margin-bottom: 12px; }
  .page-parking .page-parking-title { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .page-parking *, .page-parking *::before, .page-parking *::after { transition: none !important; animation: none !important; } }
