html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1d2723;
}

body {
  display: grid;
  place-items: center;
}

.door-shell {
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  min-width: 620px;
  min-height: 620px;
  padding: clamp(8px, 1.2vmin, 14px);
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, #aebba7, #4b6654 28%, #d4be83 48%, #8ca3ac 67%, #aebba7),
    var(--moss-deep);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

.door-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(44px, 6.6vmin, 72px) clamp(66px, 8.5vmin, 92px) clamp(42px, 5.2vmin, 58px);
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.78), transparent 25%),
    radial-gradient(circle at 16% 72%, rgba(222, 166, 58, 0.12), transparent 30%),
    var(--paper);
}

.door-frame::before {
  content: "";
  position: absolute;
  inset: 3.5%;
  border: 1px solid rgba(85, 112, 90, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.door-topbar,
.door-footer,
.door-view {
  position: relative;
  z-index: 1;
}

.door-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 clamp(120px, 16vmin, 172px);
}

.door-time {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.door-time time {
  font-family: var(--font-data);
  font-size: clamp(1.7rem, 4vmin, 2.9rem);
  font-weight: 540;
  letter-spacing: -0.07em;
}

.door-time span,
.door-weather {
  color: var(--ink-soft);
  font-size: clamp(0.86rem, 1.55vmin, 1rem);
}

.door-topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 7px;
}

.connection-dot {
  width: 11px;
  height: 11px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 1px var(--line);
}

.connection-dot--online { background: var(--moss); }
.connection-dot--offline { background: var(--coral); }

.door-view {
  min-height: 0;
  display: none;
  padding: clamp(22px, 3.4vmin, 36px) clamp(52px, 7vmin, 76px) 12px;
  overflow: auto;
  scrollbar-width: none;
}

.door-view::-webkit-scrollbar { display: none; }
.door-view--active { display: block; animation: view-arrive 380ms var(--ease); }

.door-frame .eyebrow {
  font-size: clamp(0.82rem, 1.46vmin, 1rem);
}

@keyframes view-arrive {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#home-view {
  overflow: visible;
  text-align: center;
}

.status-halo {
  position: relative;
  width: clamp(210px, 29vmin, 310px);
  height: clamp(210px, 29vmin, 310px);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.status-halo::before,
.status-halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.status-halo::before {
  inset: 6%;
  border: 1px solid var(--line);
  background: rgba(250, 248, 242, 0.78);
  box-shadow: var(--shadow-small), inset 0 0 0 14px rgba(223, 233, 223, 0.5);
}

.status-halo::after {
  inset: 25%;
  border: 1px dashed color-mix(in srgb, var(--moss) 28%, var(--line));
}

.status-halo__ticks {
  position: absolute;
  inset: 0;
}

.status-halo__ticks svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.halo-base,
.halo-segment {
  fill: none;
  stroke-width: 4;
}

.halo-base { stroke: rgba(85, 112, 90, 0.19); }
.halo-segment--busy { stroke: var(--mist); }
.halo-segment--pending { stroke: var(--honey); }
.halo-segment--lunch { stroke: #c8c5bb; }

.status-halo__inner {
  position: relative;
  z-index: 2;
  width: 58%;
  display: grid;
  gap: 7px;
  text-align: center;
}

.status-halo__label {
  color: var(--ink-soft);
  font-family: var(--font-data);
  font-size: clamp(0.8rem, 1.45vmin, 1rem);
  letter-spacing: 0.12em;
}

.status-halo__inner strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.25vmin, 2.3rem);
  font-weight: 650;
  letter-spacing: -0.05em;
}

.status-halo__inner > span:last-child {
  color: var(--ink-soft);
  font-size: clamp(0.8rem, 1.45vmin, 1rem);
}

.status-halo--busy::before {
  box-shadow: var(--shadow-small), inset 0 0 0 14px rgba(220, 231, 236, 0.7);
}

.door-actions {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.3vmin, 14px);
  margin-top: clamp(20px, 3vmin, 32px);
}

.door-action {
  min-height: clamp(58px, 7.4vmin, 80px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vmin, 14px);
  padding: clamp(11px, 1.7vmin, 18px);
  border: 1px solid var(--line);
  border-radius: 24px 24px 24px 8px;
  background: rgba(250, 248, 242, 0.88);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(62, 69, 62, 0.06);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.door-action:hover,
.door-action:focus-visible {
  transform: translateY(-3px);
  border-color: var(--moss);
}

.door-action--primary {
  grid-row: 1 / 3;
  border-color: var(--moss-deep);
  background: var(--moss-deep);
  color: var(--white);
}

.door-action--urgent {
  color: var(--coral-deep);
}

.door-action__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(34px, 4.6vmin, 48px);
  height: clamp(34px, 4.6vmin, 48px);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-data);
  font-size: clamp(1rem, 2.2vmin, 1.5rem);
}

.door-action strong,
.door-action small {
  display: block;
}

.door-action strong {
  font-size: clamp(0.9rem, 1.65vmin, 1.08rem);
}

.door-action small {
  margin-top: 4px;
  color: currentColor;
  font-size: clamp(0.76rem, 1.32vmin, 0.9rem);
  opacity: 0.7;
}

.view-header {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(16px, 2.6vmin, 28px);
}

.view-header h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vmin, 2rem);
  letter-spacing: -0.04em;
}

.step-badge {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
  color: var(--ink-soft);
  font-family: var(--font-data);
  font-size: clamp(0.8rem, 1.3vmin, 0.9rem);
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.day-button {
  min-height: clamp(54px, 7.3vmin, 76px);
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
  cursor: pointer;
}

.day-button span {
  color: var(--ink-soft);
  font-size: clamp(0.76rem, 1.28vmin, 0.86rem);
}

.day-button strong {
  font-family: var(--font-data);
  font-size: clamp(0.85rem, 1.7vmin, 1.1rem);
}

.day-button--selected {
  border-color: var(--moss-deep);
  background: var(--moss-deep);
  color: var(--white);
}

.day-button--selected span { color: rgba(255, 255, 255, 0.72); }

.door-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px clamp(14px, 2vmin, 22px);
  max-height: min(46vmin, 500px);
  margin-top: clamp(14px, 2vmin, 22px);
  padding: 0 4px 6px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--moss) 55%, transparent) transparent;
  scrollbar-width: thin;
}

.timeline-block {
  display: grid;
  grid-template-columns: 106px 6px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: clamp(50px, 5.4vmin, 58px);
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
}

.timeline-block__time {
  font-family: var(--font-data);
  font-size: clamp(0.82rem, 1.48vmin, 1rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.timeline-block__line {
  width: 5px;
  height: 30px;
  border-radius: var(--radius-round);
  background: var(--moss);
}

.timeline-block--busy .timeline-block__line { background: var(--mist); }
.timeline-block--pending .timeline-block__line { background: var(--honey); }
.timeline-block--lunch .timeline-block__line { background: #b9b7ae; }

.timeline-block__label {
  font-size: clamp(0.88rem, 1.5vmin, 1rem);
  font-weight: 680;
}

.timeline-block__state {
  color: var(--ink-soft);
  font-size: clamp(0.78rem, 1.36vmin, 0.92rem);
  white-space: nowrap;
}

.privacy-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.76rem, 1.3vmin, 0.86rem);
  line-height: 1.55;
  text-align: center;
}

#booking-form {
  display: grid;
  gap: clamp(14px, 2vmin, 22px);
}

.booking-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.booking-step legend {
  width: 100%;
  margin-bottom: clamp(14px, 2vmin, 22px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vmin, 1.35rem);
  font-weight: 630;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: clamp(14px, 2vmin, 20px);
}

.slot-button {
  min-height: clamp(46px, 6vmin, 62px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  font-family: var(--font-data);
  font-size: clamp(0.8rem, 1.4vmin, 0.95rem);
  cursor: pointer;
}

.slot-button--selected {
  border-color: var(--moss-deep);
  background: var(--moss-deep);
  color: var(--white);
}

.slot-button:disabled {
  color: #aaa9a1;
  background: var(--paper-deep);
  cursor: not-allowed;
}

.field--large {
  min-height: clamp(58px, 7.5vmin, 78px);
  font-size: clamp(0.85rem, 1.7vmin, 1.08rem);
}

.field--textarea {
  min-height: clamp(110px, 15vmin, 160px);
  resize: none;
}

.candidate-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.candidate-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  text-align: left;
  cursor: pointer;
}

.candidate-button small {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.candidate-button--selected {
  border-color: var(--moss);
  background: var(--moss-wash);
}

.manual-identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--honey) 40%, var(--line));
  border-radius: 16px;
  background: var(--honey-wash);
}

.manual-identity p {
  grid-column: 1 / -1;
  margin: 0;
  color: #72581f;
  font-size: 0.88rem;
}

.text-button {
  min-height: 44px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}

.booking-review {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.review-row strong {
  color: var(--ink);
  text-align: right;
}

.booking-controls,
.urgent-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--coral-wash);
  color: var(--coral-deep);
  font-size: 0.88rem;
}

.door-view--center {
  text-align: center;
}

.door-view--center.door-view--active {
  display: grid;
  place-content: center;
  justify-items: center;
  padding-top: 0;
  padding-bottom: clamp(56px, 8vmin, 86px);
}

.door-view--center h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vmin, 3rem);
  letter-spacing: -0.05em;
}

.door-view--center > p:not(.eyebrow) {
  max-width: 480px;
  margin: 14px auto 28px;
  color: var(--ink-soft);
  font-size: clamp(0.86rem, 1.5vmin, 1rem);
  line-height: 1.65;
}

.success-mark,
.urgent-mark {
  display: grid;
  place-items: center;
  width: clamp(72px, 10vmin, 104px);
  height: clamp(72px, 10vmin, 104px);
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--moss-wash);
  color: var(--moss);
  font-family: var(--font-data);
  font-size: clamp(2rem, 4vmin, 3rem);
}

.urgent-mark {
  background: var(--coral-wash);
  color: var(--coral);
}

.urgent-controls { justify-content: center; }

.door-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 2px clamp(54px, 8vmin, 86px) 0;
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 1.2vmin, 0.82rem);
}

.door-footer button {
  min-width: 44px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.door-frame .toast {
  position: absolute;
  right: 50%;
  bottom: 10%;
  transform: translateX(50%);
  text-align: center;
}

.settings-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (max-aspect-ratio: 1 / 1) and (max-width: 760px) {
  .door-shell { min-width: 100vw; min-height: 100vw; }
}

@media (max-height: 760px) {
  .door-shell { min-width: 100vh; min-height: 100vh; }
}

/*
 * 5-inch round display redesign
 *
 * The panel is 1080px across but only 127mm wide in the real world.  The
 * values below therefore favour physical legibility and finger-sized targets
 * over desktop-style information density.  The older rules above are kept as
 * a rollback layer while this round-screen layout is validated on hardware.
 */

html,
body {
  overscroll-behavior: none;
  background: #17221d;
}

body {
  font-size: clamp(24px, 2.55vmin, 29px);
  font-weight: 500;
}

.door-shell {
  --round-safe-width: min(62vmin, 670px);
  --touch-size: clamp(82px, 8.5vmin, 94px);
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  padding: clamp(10px, 1.3vmin, 15px);
  background:
    conic-gradient(from 214deg, #91a596 0deg, #31483a 74deg, #dcc681 142deg, #6f8a93 220deg, #91a596 360deg),
    #24372d;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.46);
}

.door-frame {
  grid-template-rows: clamp(96px, 10.5vmin, 114px) minmax(0, 1fr) clamp(36px, 4.4vmin, 48px);
  padding: clamp(42px, 4.8vmin, 52px) clamp(116px, 11.6vmin, 126px) clamp(74px, 7.2vmin, 88px);
  background:
    radial-gradient(circle at 50% 13%, rgba(255, 255, 255, 0.9), transparent 24%),
    radial-gradient(circle at 50% 45%, rgba(219, 231, 218, 0.42), transparent 35%),
    radial-gradient(circle at 15% 69%, rgba(222, 166, 58, 0.11), transparent 31%),
    #f4f2eb;
}

.door-frame::before {
  inset: 3.2%;
  border: 2px solid rgba(75, 99, 82, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.door-topbar {
  position: relative;
  display: grid;
  place-items: start center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.door-time {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.door-time time {
  font-size: clamp(54px, 6.2vmin, 68px);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.door-time span,
.door-weather {
  color: #53625a;
  font-size: clamp(22px, 2.35vmin, 26px);
  font-weight: 620;
  line-height: 1.2;
}

.door-topbar__right {
  position: absolute;
  top: clamp(10px, 1.1vmin, 12px);
  right: clamp(14px, 2vmin, 22px);
  gap: 12px;
  padding: 0;
}

.door-weather {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-dot {
  width: clamp(19px, 2vmin, 22px);
  height: clamp(19px, 2vmin, 22px);
  border-width: 4px;
  box-shadow: 0 0 0 2px rgba(74, 91, 81, 0.18);
}

.door-view {
  width: 100%;
  padding: clamp(6px, 0.9vmin, 10px) 0 clamp(10px, 1.4vmin, 15px);
}

.door-view--active {
  animation: round-view-arrive 320ms var(--ease);
}

@keyframes round-view-arrive {
  from { opacity: 0; transform: translateY(9px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.door-frame .eyebrow {
  color: #5e6d65;
  font-size: clamp(23px, 2.35vmin, 26px);
  font-weight: 750;
  letter-spacing: 0.09em;
}

#home-view.door-view--active {
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(26px, 2.6vmin, 32px);
  align-content: start;
  justify-items: center;
  padding-top: 0;
  overflow: visible;
}

.status-halo {
  width: clamp(360px, 38.5vmin, 420px);
  height: clamp(360px, 38.5vmin, 420px);
  margin: 0 auto;
}

.status-halo::before {
  inset: 5%;
  border: 2px solid rgba(69, 94, 75, 0.22);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.98), rgba(230, 238, 227, 0.9));
  box-shadow:
    0 20px 46px rgba(53, 73, 59, 0.13),
    inset 0 0 0 clamp(16px, 1.8vmin, 20px) rgba(218, 231, 216, 0.72);
}

.status-halo::after {
  display: none;
}

.halo-base,
.halo-segment {
  stroke-width: 5.2;
}

.halo-base { stroke: rgba(72, 100, 78, 0.2); }
.halo-segment--busy { stroke: #557a8f; }
.halo-segment--pending { stroke: #d69a25; }
.halo-segment--lunch { stroke: #a9a79e; }

.status-halo__inner {
  width: 84%;
  gap: clamp(8px, 0.9vmin, 10px);
}

.status-halo__label {
  color: #53655b;
  font-size: clamp(25px, 2.55vmin, 28px);
  font-weight: 720;
  letter-spacing: 0.08em;
}

.status-halo__inner strong {
  font-size: clamp(62px, 6.45vmin, 70px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.status-halo__inner > span:last-child {
  color: #4f6057;
  font-size: clamp(26px, 2.65vmin, 29px);
  font-weight: 650;
  line-height: 1.35;
}

.status-halo--busy::before {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.98), rgba(220, 232, 238, 0.94));
  box-shadow:
    0 20px 46px rgba(58, 81, 94, 0.14),
    inset 0 0 0 clamp(16px, 1.8vmin, 20px) rgba(209, 226, 233, 0.78);
}

.door-actions {
  width: var(--round-safe-width);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: clamp(108px, 10.8vmin, 118px) clamp(104px, 10.5vmin, 114px);
  gap: clamp(12px, 1.2vmin, 13px);
  margin-top: 0;
}

.door-action {
  min-height: 0;
  gap: clamp(17px, 1.9vmin, 21px);
  padding: clamp(16px, 1.9vmin, 21px) clamp(22px, 2.4vmin, 26px);
  border: 2px solid rgba(64, 84, 70, 0.2);
  border-radius: clamp(25px, 2.8vmin, 30px);
  background: rgba(252, 250, 244, 0.93);
  box-shadow: 0 11px 25px rgba(54, 67, 58, 0.09);
}

.door-action:active {
  transform: scale(0.985);
}

.door-action--primary {
  grid-column: 1 / -1;
  grid-row: auto;
  justify-content: center;
  border-color: #304638;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 46%),
    #304638;
  color: #fff;
  text-align: left;
  box-shadow: 0 16px 32px rgba(48, 70, 56, 0.22);
}

.door-action--urgent {
  border-color: rgba(174, 73, 61, 0.32);
  background: #fbefeb;
  color: #8a3c34;
}

.door-action__icon {
  width: clamp(68px, 7.2vmin, 78px);
  height: clamp(68px, 7.2vmin, 78px);
  border: 0;
  border-radius: clamp(16px, 1.8vmin, 20px);
  background: rgba(48, 70, 56, 0.09);
  font-size: clamp(36px, 3.9vmin, 42px);
  font-weight: 680;
}

.door-action--primary .door-action__icon {
  background: rgba(255, 255, 255, 0.12);
}

.door-action--urgent .door-action__icon {
  background: rgba(174, 73, 61, 0.09);
}

.door-action > span:last-child {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
}

.door-action strong {
  font-size: clamp(31px, 3.35vmin, 36px);
  font-weight: 750;
  line-height: 1.08;
}

.door-action small {
  margin-top: 6px;
  font-size: clamp(23px, 2.35vmin, 26px);
  font-weight: 620;
  line-height: 1.15;
  opacity: 0.82;
}

.view-header {
  width: var(--round-safe-width);
  grid-template-columns: var(--touch-size) minmax(0, 1fr) var(--touch-size);
  gap: clamp(12px, 1.4vmin, 15px);
  min-height: var(--touch-size);
  margin-right: auto;
  margin-bottom: clamp(12px, 1.5vmin, 16px);
  margin-left: auto;
}

.view-header::after {
  width: var(--touch-size);
  height: 1px;
  content: '';
}

.view-header .icon-button {
  width: var(--touch-size);
  height: var(--touch-size);
  border-width: 2px;
  background: rgba(255, 255, 255, 0.7);
  font-size: clamp(36px, 4vmin, 44px);
  font-weight: 650;
}

.view-heading {
  display: grid;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.view-heading__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 0;
}

.view-header .eyebrow {
  margin: 0;
  white-space: nowrap;
}

.view-header h2 {
  margin: 2px 0 0;
  font-size: clamp(40px, 4.2vmin, 46px);
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
}

.step-badge {
  min-width: 0;
  padding: 0 0 0 13px;
  border: 0;
  border-left: 2px solid rgba(74, 94, 82, 0.28);
  background: transparent;
  color: #53625a;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vmin, 25px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.day-picker {
  display: flex;
  gap: clamp(10px, 1.2vmin, 13px);
  width: 100%;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.day-picker::-webkit-scrollbar { display: none; }

.day-button {
  flex: 0 0 calc((100% - 36px) / 4);
  min-height: clamp(94px, 9.4vmin, 102px);
  gap: 2px;
  padding: 9px 12px;
  border-width: 2px;
  border-radius: 22px;
  scroll-snap-align: start;
}

.day-button span {
  font-size: clamp(23px, 2.4vmin, 26px);
  font-weight: 650;
}

.day-button strong {
  font-size: clamp(28px, 2.95vmin, 32px);
  font-weight: 750;
}

.day-button--selected {
  border-color: #304638;
  background: #304638;
  box-shadow: 0 9px 20px rgba(48, 70, 56, 0.2);
}

.day-button:disabled {
  opacity: 0.42;
}

.door-timeline {
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: clamp(410px, 49vmin, 530px);
  margin-top: clamp(10px, 1.3vmin, 14px);
  padding: 0 8px 10px 0;
}

.timeline-block {
  grid-template-columns: clamp(178px, 18vmin, 194px) 9px minmax(0, 1fr) auto;
  gap: clamp(13px, 1.5vmin, 17px);
  min-height: clamp(88px, 9vmin, 97px);
  padding: 8px 12px;
  border: 1px solid rgba(77, 93, 83, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.timeline-block__time {
  font-size: clamp(27px, 2.8vmin, 31px);
  font-weight: 670;
}

.timeline-block__line {
  width: 8px;
  height: 48px;
}

.timeline-block__label {
  font-size: clamp(28px, 2.9vmin, 32px);
  font-weight: 720;
}

.timeline-block__state {
  font-size: clamp(24px, 2.45vmin, 27px);
  font-weight: 620;
}

.privacy-note {
  margin: 11px auto 0;
  max-width: 690px;
  font-size: clamp(23px, 2.35vmin, 26px);
  font-weight: 610;
  line-height: 1.42;
}

#booking-form {
  position: relative;
  display: grid;
  gap: clamp(12px, 1.5vmin, 16px);
}

.booking-step legend {
  margin-bottom: clamp(11px, 1.3vmin, 14px);
  font-size: clamp(30px, 3.15vmin, 34px);
  font-weight: 720;
  line-height: 1.2;
}

.slot-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(9px, 1.05vmin, 12px);
  max-height: clamp(344px, 36.5vmin, 394px);
  margin-top: clamp(10px, 1.2vmin, 13px);
  padding: 1px 8px 8px 1px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(67, 91, 74, 0.48) transparent;
  scrollbar-width: thin;
}

.slot-button {
  min-height: clamp(84px, 8.6vmin, 93px);
  border-width: 2px;
  border-radius: 20px;
  font-size: clamp(28px, 2.95vmin, 32px);
  font-weight: 720;
}

.slot-button--selected {
  border-color: #304638;
  background: #304638;
  box-shadow: 0 8px 18px rgba(48, 70, 56, 0.2);
}

.slot-button:disabled {
  color: #7f857e;
  opacity: 0.7;
}

.field-label {
  gap: 9px;
  color: #506159;
  font-size: clamp(25px, 2.6vmin, 29px);
  font-weight: 690;
}

.field,
.field--large {
  min-height: var(--touch-size);
  padding: 14px 19px;
  border-width: 2px;
  border-radius: 20px;
  font-size: clamp(26px, 2.75vmin, 30px);
  font-weight: 570;
}

.field--textarea {
  min-height: clamp(146px, 15vmin, 162px);
  line-height: 1.45;
}

.candidate-list {
  gap: 9px;
  max-height: clamp(220px, 25vmin, 270px);
  margin-top: 12px;
  padding-right: 6px;
  overflow-y: auto;
}

.candidate-button {
  min-height: clamp(76px, 8vmin, 87px);
  padding: 12px 18px;
  border-width: 2px;
  border-radius: 19px;
  font-size: clamp(24px, 2.55vmin, 28px);
}

.candidate-button small {
  font-size: clamp(19px, 2vmin, 22px);
}

.manual-identity {
  gap: 13px;
  margin-top: 12px;
  padding: 17px;
  border-width: 2px;
  border-radius: 22px;
}

.manual-identity p {
  font-size: clamp(20px, 2.1vmin, 23px);
  line-height: 1.4;
}

.text-button {
  min-height: clamp(62px, 6.4vmin, 70px);
  margin-top: 7px;
  font-size: clamp(24px, 2.5vmin, 27px);
  font-weight: 650;
}

.booking-review {
  gap: 11px;
  margin-top: 13px;
  padding: 18px 20px;
  border-width: 2px;
  border-radius: 22px;
}

.review-row {
  gap: 18px;
  font-size: clamp(24px, 2.55vmin, 28px);
  line-height: 1.4;
}

.review-row strong {
  max-width: 72%;
}

.booking-controls,
.urgent-controls {
  gap: clamp(12px, 1.4vmin, 16px);
}

.booking-controls {
  position: sticky;
  bottom: 0;
  justify-content: center;
  padding-top: 9px;
  background: linear-gradient(to bottom, rgba(244, 242, 235, 0), #f4f2eb 24%);
}

.button {
  min-width: clamp(210px, 23vmin, 248px);
  min-height: var(--touch-size);
  padding: 13px 24px;
  border-width: 2px;
  font-size: clamp(28px, 2.95vmin, 32px);
  font-weight: 760;
}

.form-error {
  padding: 14px 18px;
  border: 2px solid rgba(173, 69, 57, 0.16);
  border-radius: 18px;
  font-size: clamp(21px, 2.2vmin, 24px);
  font-weight: 650;
  line-height: 1.4;
}

.door-view--center.door-view--active {
  padding: 0 30px clamp(50px, 5.5vmin, 60px);
}

.door-view--center h2 {
  margin: 10px 0 0;
  max-width: 690px;
  font-size: clamp(48px, 5.2vmin, 57px);
  font-weight: 720;
  line-height: 1.14;
}

.door-view--center > p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px auto 32px;
  font-size: clamp(28px, 2.95vmin, 32px);
  font-weight: 570;
  line-height: 1.55;
  text-wrap: balance;
}

.success-mark,
.urgent-mark {
  width: clamp(118px, 12.5vmin, 136px);
  height: clamp(118px, 12.5vmin, 136px);
  margin-bottom: 22px;
  font-size: clamp(52px, 5.8vmin, 63px);
  font-weight: 730;
  box-shadow: 0 14px 30px rgba(54, 75, 60, 0.12);
}

.urgent-controls {
  justify-content: center;
}

.door-footer {
  width: max-content;
  max-width: var(--round-safe-width);
  min-height: 48px;
  justify-self: center;
  gap: 0;
  margin-bottom: 3px;
  padding: 0 7px 0 18px;
  border: 1px solid rgba(76, 96, 83, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 20px rgba(56, 72, 61, 0.07);
  font-size: clamp(22px, 2.25vmin, 24px);
  font-weight: 650;
  line-height: 1;
}

.door-footer button {
  min-width: 78px;
  min-height: 44px;
  margin-left: 13px;
  padding: 0 13px;
  border-left: 1px solid rgba(76, 96, 83, 0.2);
  border-radius: 999px;
  font-size: clamp(21px, 2.2vmin, 24px);
  font-weight: 720;
}

.toast {
  right: 50%;
  bottom: 8%;
  max-width: 650px;
  padding: 18px 24px;
  border-width: 2px;
  border-radius: 18px;
  transform: translateX(50%);
  font-size: clamp(22px, 2.3vmin, 26px);
  line-height: 1.4;
  text-align: center;
}

dialog {
  width: min(650px, calc(100vw - 80px));
  border-radius: 28px;
}

.dialog-body {
  gap: 20px;
  padding: 30px;
}

.dialog-body h2 {
  margin: 5px 0 0;
  font-size: 38px;
}

.settings-copy {
  font-size: 24px;
  line-height: 1.5;
}

.dialog-body .eyebrow {
  font-size: 24px;
}

.dialog-actions {
  gap: 14px;
}

/* The on-screen keyboard shortens the viewport, but the physical pixel scale
   does not change.  Keep width-based sizing and make the form area scroll. */
@media (max-height: 800px) and (min-width: 900px) {
  body {
    position: fixed;
    inset: 0;
    place-items: start center;
    overflow: clip;
  }

  .door-shell {
    width: 100vw;
    height: 100vw;
    min-width: 100vw;
    min-height: 100vw;
  }

  .door-frame {
    grid-template-rows: 86px minmax(0, 1fr) 0;
    padding-top: 30px;
  }

  .door-time time { font-size: 48px; }
  .door-time span { font-size: 20px; }
  .door-footer { display: none; }

  .door-view {
    height: calc(100vh - 116px);
    padding-bottom: 120px;
    overflow-y: auto;
  }

  .view-header {
    min-height: 72px;
    width: min(67vw, 724px);
    margin-bottom: 10px;
  }

  .view-header .icon-button {
    width: 72px;
    height: 72px;
  }

  .view-header h2 { font-size: 34px; }
  .view-header .eyebrow,
  .step-badge { font-size: 20px; }
  .booking-step legend { margin-bottom: 10px; }
  .candidate-list { max-height: 220px; }
  .booking-controls { bottom: 8px; }
}
