.home-order-card {
  position: absolute;
  z-index: 3;
  inset: calc(var(--go-header-height) + 2 * var(--go-gutter)) auto auto var(--go-gutter);
  width: var(--go-order-width);
  max-height: calc(100% - var(--go-header-height) - 3 * var(--go-gutter));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 22px 18px;
  border-radius: var(--go-radius-sheet);
  background: var(--go-surface);
  box-shadow: var(--go-shadow-float);
}
.home-tracking .go-workspace > #parking-map { position: absolute; inset: 0; z-index: 1; pointer-events: none; visibility: visible; background: transparent; }
.home-tracking #parking-map > :not(.weather-rim) { visibility: hidden; }
.home-tracking .head-links [data-last-order], .home-tracking #menu-dialog [data-last-order] { display: none; }
.home-order-top { display: flex; justify-content: space-between; align-items: center; min-height: 22px; gap: 10px; }
#home-preview-types { display: inline-flex; padding: 2px; border-radius: 12px; background: var(--go-surface-secondary); }
#home-preview-types[hidden] { display: none; }
#home-preview-types a {
  display: grid; place-items: center; min-width: 50px; min-height: 34px; padding: 3px 10px;
  border-radius: 10px; color: var(--go-muted); font-size: 14px; font-weight: 550;
}
#home-preview-types a[aria-current] { background: var(--go-surface); color: var(--go-ink); box-shadow: 0 1px 4px #21201f22; }
#home-order-number, .home-order-label { color: var(--go-muted); font: var(--go-font-label); }
#home-order-picker { font: var(--go-font-label); }
#home-order-picker summary {
  display: flex; align-items: center; gap: 2px; padding: 4px 0 4px 8px;
  color: var(--go-link); font-weight: 550; list-style: none;
}
#home-order-picker summary svg { width: 14px; height: 14px; }
#home-order-picker summary::-webkit-details-marker { display: none; }
#home-order-list {
  position: absolute; z-index: 2; top: 46px; right: 14px; left: 14px; max-height: 180px; overflow: auto;
  padding: 4px; background: var(--go-surface); border: 1px solid var(--go-divider);
  border-radius: var(--go-radius-m); box-shadow: var(--go-shadow-float);
}
#home-order-list button { display: block; width: 100%; min-height: 44px; padding: 9px; text-align: left; border: 0; border-radius: 8px; background: transparent; }
#home-order-list button[aria-pressed="true"] { background: var(--go-surface-secondary); font-weight: 600; }
#home-order-title { margin: 9px 0 5px; font: 650 29px/1.07 var(--go-font-family); letter-spacing: -.035em; text-wrap: balance; }
#home-order-note { color: var(--go-muted); font-size: 15px; line-height: 1.38; }
.home-order-facts { margin: 20px 0 16px; border-top: 1px solid var(--go-divider); }
.home-order-facts > div { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; }
.home-order-facts > div + div { border-top: 1px solid var(--go-divider); }
.home-order-icon, .home-worker-avatar {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
}
.home-order-icon { background: #eef2ff; color: var(--go-control-primary); }
.home-order-icon svg { width: 19px; height: 19px; }
.home-worker-avatar { background: var(--go-surface-secondary); font-size: 13px; font-weight: 600; }
.home-worker-avatar.is-mascot { background: var(--go-control-primary) url('/media/snowman-tile.png') center/cover; border-radius: 10px; }
.home-order-facts strong { display: block; font-size: 16px; line-height: 20px; font-weight: 550; overflow-wrap: anywhere; }
.home-order-actions { display: flex; gap: 8px; }
.home-order-actions :is(a, button), #home-return-order {
  display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 46px;
  border-radius: var(--go-radius-m); text-align: center; font-size: 15px; font-weight: 550;
}
.home-order-primary { flex: 1.3; background: var(--go-control-primary); color: var(--go-on-primary); }
#home-replay, #home-review { border: 0; padding: 0 8px; }
.home-order-actions:has(#home-review:not([hidden])) { flex-wrap: wrap; }
#home-review { flex-basis: 100%; }
.home-order-actions:has(#home-review:not([hidden])) :is(#home-replay, #home-order-details) {
  background: var(--go-surface-selected); color: var(--go-ink);
}
.home-order-primary svg, #home-return-order svg { width: 16px; height: 16px; }
.home-order-secondary { flex: 1; background: var(--go-surface-selected); }
#home-order-alert { color: var(--go-muted); font: var(--go-font-label); padding-bottom: 10px; }
#home-return-order { margin-bottom: 8px; background: var(--go-surface); color: var(--go-link); box-shadow: var(--go-shadow-float); pointer-events: auto; }
.order-panel:has(#home-return-order:not([hidden])) #booking-form { max-height: calc(100% - 54px); }
@media (hover: hover) {
  .home-order-primary:hover { background: var(--go-control-primary-hover); }
  .home-order-secondary:hover, #home-order-list button:hover { background: var(--go-surface-pressed); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-order-card:not([hidden]) { animation: home-card-in .2s ease-out; }
  @keyframes home-card-in { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) and (orientation: portrait), (max-width: 479px) {
  .order-home.home-tracking .go-workspace { display: block; height: 100dvh; }
  .home-order-card {
    inset: auto 0 0; width: 100%; max-height: 56%; padding: 15px 18px max(14px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0; box-shadow: var(--go-shadow-sheet);
  }
  #home-order-title { font-size: 26px; margin-top: 5px; }
  .home-order-facts { margin: 12px 0 8px; }
  .home-order-facts > div { min-height: 45px; padding: 5px 0; }
  #home-return-order { margin: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--go-divider); }
  .order-panel:has(#home-return-order:not([hidden])) #booking-form { max-height: calc(var(--sheet-height) - env(safe-area-inset-bottom) - 46px); }
}
@media (min-width: 480px) and (max-height: 550px) and (orientation: landscape) {
  .home-order-card { top: 68px; left: 12px; width: clamp(248px, 42vw, 335px); max-height: calc(100% - 76px); padding: 12px 16px; }
  #home-order-title { font-size: 23px; }
  .home-order-facts { margin: 9px 0; }
}
