/* ==========================================================================
   Order Progress & Encrypted Credential Vault (/order)
   Apple Wallet Pass + iCloud Keychain Liquid Glass Architecture
   ========================================================================== */

/* Header Active Pill & Nav Icon Alignment */
[hidden] {
  display: none !important;
}

.site-menu a svg {
  flex-shrink: 0;
  opacity: 0.78;
}

.site-menu a[aria-current="page"] svg {
  opacity: 1;
}

/* Page Intro Refinement */
.order-intro {
  align-items: flex-end;
  margin-block-end: 20px;
}

.order-intro h1 {
  color: var(--ink);
}

.order-intro p {
  margin-block-start: 8px;
  max-inline-size: 66ch;
  color: var(--ink-secondary);
  font-size: 14.5px;
}

.order-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ==================== SCULPTED LIQUID GLASS LOOKUP CONSOLE ==================== */
.lookup-console {
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--radius-xl);
  margin-block-end: 24px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 251, 255, 0.74) 54%,
    rgba(241, 247, 255, 0.84) 100%
  );
  box-shadow:
    0 22px 48px -14px rgba(15, 28, 52, 0.1),
    0 4px 14px -2px rgba(15, 28, 52, 0.04),
    inset 0 1.5px 0 0 #ffffff,
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.52);
}

.lookup-console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lookup-field {
  min-inline-size: 0;
}

.lookup-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 720;
  color: var(--ink);
}

.lookup-field label svg {
  color: var(--brand);
  flex-shrink: 0;
}

.lookup-input {
  min-block-size: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 34, 60, 0.16);
  background: rgba(255, 255, 255, 0.92);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 2px rgba(15, 28, 52, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.lookup-input::placeholder {
  color: #58657a;
  letter-spacing: 0;
}

.lookup-code-field {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 650;
}

.lookup-code-field::placeholder {
  text-transform: none;
  font-weight: 400;
}

.lookup-console-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-block-start: 4px;
}

.recent-orders-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-inline-size: 0;
}

.recent-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.recent-empty-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(15, 28, 52, 0.045);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.recent-order-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 32px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.92);
  outline: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: 0 2px 6px rgba(15, 28, 52, 0.04), inset 0 1px 0 #ffffff;
  transition:
    transform 180ms var(--ease-spring),
    background-color 150ms ease,
    color 150ms ease,
    outline-color 150ms ease;
}

.recent-order-chip:hover {
  background: #ffffff;
  color: var(--brand);
  outline-color: var(--brand-border);
}

@media (prefers-reduced-motion: no-preference) {
  .recent-order-chip:hover {
    transform: translateY(-1px);
  }
}

.lookup-submit-btn {
  min-block-size: 44px;
  padding-inline: 22px;
  flex-shrink: 0;
}

#lookup-error:empty {
  display: none;
}

#lookup-error {
  margin-block-start: 14px;
}

/* ==================== QUERIED ORDER VIEW CONTAINER ==================== */
#order-result {
  min-inline-size: 0;
}

.order-vault-shell {
  display: grid;
  gap: 18px;
  min-inline-size: 0;
}

/* Order Top Identity Bar + 4-Node Stepper Card */
.order-progress-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-inline-size: 0;
}

.order-pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.5vw, 26px);
  border-block-end: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.order-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-inline-size: 0;
}

.order-brand-emblem {
  flex-shrink: 0;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--product-soft, rgba(0, 113, 227, 0.1));
  color: var(--product-tone, var(--brand));
  border: 1px solid rgba(255, 255, 255, 0.88);
  outline: 1px solid rgba(15, 28, 52, 0.07);
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 16px -4px rgba(15, 28, 52, 0.08);
}

.order-title-group {
  min-inline-size: 0;
}

.order-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-title-row h2 {
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  overflow-wrap: anywhere;
}

.icon-copy-btn {
  display: inline-grid;
  place-items: center;
  inline-size: 28px;
  block-size: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-secondary);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.icon-copy-btn:hover {
  background: #ffffff;
  color: var(--brand);
  border-color: var(--brand-border);
}

.order-meta-sub {
  margin-block-start: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.order-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== 4-NODE ILLUMINATED HORIZONTAL PROGRESS STEPPER ==================== */
.stepper-stage {
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(246, 250, 255, 0.68) 100%);
}

.stepper-frame {
  position: relative;
}

.order-stepper {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

/* Connecting Track Groove & Illuminated Progress Fill */
.stepper-track {
  position: absolute;
  inset-block-start: 18px;
  inset-inline: 12.5%;
  block-size: 4px;
  border-radius: var(--radius-pill);
  background: rgba(18, 34, 60, 0.09);
  box-shadow: inset 0 1px 1px rgba(15, 28, 52, 0.08);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.stepper-track-fill {
  block-size: 100%;
  inline-size: var(--step-fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #0066cc 0%, #0a84ff 55%, #087a68 100%);
  transition: inline-size 420ms var(--ease-out-quart), background 280ms ease;
}

.stepper-frame[data-tone="completed"] .stepper-track-fill {
  background: linear-gradient(90deg, #0066cc 0%, #087a68 52%, #10a37f 100%);
}

.stepper-frame[data-tone="warn"] .stepper-track-fill {
  background: linear-gradient(90deg, #087a68 0%, #0066cc 48%, #d97706 100%);
}

.stepper-frame[data-tone="danger"] .stepper-track-fill {
  background: linear-gradient(90deg, #087a68 0%, #0066cc 48%, #dc2626 100%);
}

.step-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-inline-size: 0;
}

.step-circle {
  position: relative;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(18, 34, 60, 0.15);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 3px 10px rgba(15, 28, 52, 0.06), inset 0 1px 0 #ffffff;
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms var(--ease-spring),
    box-shadow 240ms ease;
}

.step-node[data-state="done"] .step-circle {
  background: linear-gradient(145deg, #0d9480 0%, #077463 100%);
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
  box-shadow:
    0 6px 16px -3px rgba(8, 122, 104, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.step-node[data-state="active"] .step-circle {
  background: linear-gradient(145deg, #0a84ff 0%, #0062cc 100%);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  box-shadow:
    0 8px 20px -3px rgba(0, 102, 204, 0.38),
    0 0 0 5px rgba(0, 119, 237, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.step-node[data-state="warn"] .step-circle {
  background: linear-gradient(145deg, #d97706 0%, #b45309 100%);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  box-shadow:
    0 8px 20px -3px rgba(180, 83, 9, 0.34),
    0 0 0 5px rgba(217, 119, 6, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.step-node[data-state="danger"] .step-circle {
  background: linear-gradient(145deg, #e11d48 0%, #be123c 100%);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  box-shadow:
    0 8px 20px -3px rgba(190, 18, 60, 0.34),
    0 0 0 5px rgba(225, 29, 72, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@keyframes step-halo-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.32);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .step-node:is([data-state="active"], [data-state="warn"]) .step-circle::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-color: rgba(0, 119, 237, 0.42);
    animation: step-halo-pulse 2.2s var(--ease-out-quart) infinite;
    pointer-events: none;
  }

  .step-node[data-state="warn"] .step-circle::after {
    border-color: rgba(217, 119, 6, 0.48);
  }
}

.step-label {
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1.25;
  color: var(--ink);
}

.step-node[data-state="upcoming"] .step-label {
  color: var(--ink-muted);
  font-weight: 620;
}

.step-sub {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink-muted);
  background: rgba(15, 28, 52, 0.045);
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

.step-node[data-state="done"] .step-sub {
  color: #065f50;
  background: rgba(8, 122, 104, 0.1);
}

.step-node[data-state="active"] .step-sub {
  color: #0052a3;
  background: rgba(0, 113, 227, 0.11);
}

.step-node[data-state="warn"] .step-sub {
  color: #8a4b04;
  background: rgba(217, 136, 20, 0.15);
}

.step-node[data-state="danger"] .step-sub {
  color: #9e1c2b;
  background: rgba(218, 56, 74, 0.12);
}

/* ==================== ICLOUD KEYCHAIN ENCRYPTED CREDENTIAL VAULT ==================== */
.credential-vault {
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(8, 122, 104, 0.28);
  outline: 1px solid rgba(8, 122, 104, 0.08);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.93) 0%,
    rgba(236, 253, 248, 0.78) 54%,
    rgba(242, 249, 255, 0.88) 100%
  );
  box-shadow:
    0 22px 48px -14px rgba(8, 122, 104, 0.14),
    0 4px 12px -2px rgba(15, 28, 52, 0.04),
    inset 0 1.5px 0 #ffffff;
  display: grid;
  gap: 16px;
  min-inline-size: 0;
}

.vault-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vault-head-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-inline-size: 0;
}

.vault-emblem {
  flex-shrink: 0;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0d9480 0%, #066959 100%);
  color: #ffffff;
  box-shadow:
    0 8px 18px -4px rgba(8, 122, 104, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.vault-title-wrap {
  min-inline-size: 0;
}

.vault-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-title-row h3 {
  font-size: 1.12rem;
  color: #064e40;
}

.vault-summary-text {
  margin-block-start: 3px;
  font-size: 13.5px;
  color: #1f4b43;
}

.vault-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-chamber {
  padding: 15px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 122, 104, 0.2);
  box-shadow: inset 0 1px 3px rgba(15, 28, 52, 0.04);
  display: grid;
  gap: 12px;
  min-inline-size: 0;
}

.vault-chamber-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 650;
  color: #215249;
}

.vault-chamber-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-inline-size: 0;
}

.vault-secret-well {
  position: relative;
  flex: 1 1 240px;
  min-inline-size: 0;
  min-block-size: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #f4faf8;
  border: 1px solid rgba(8, 122, 104, 0.24);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.vault-secret-code {
  display: block;
  inline-size: 100%;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #073b31;
  overflow-wrap: anywhere;
  word-break: break-all;
  transition:
    filter 320ms var(--ease-out-quart),
    opacity 260ms ease,
    transform 320ms var(--ease-spring);
}

.vault-secret-well.is-masked .vault-secret-code {
  filter: blur(6px);
  opacity: 0.52;
  user-select: none;
}

.vault-secret-well.is-revealed .vault-secret-code {
  filter: none;
  opacity: 1;
  transition: none;
  user-select: all;
}

.vault-blur-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 14px;
  background: linear-gradient(
    90deg,
    rgba(241, 250, 247, 0.78) 0%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(241, 250, 247, 0.78) 100%
  );
  -webkit-backdrop-filter: blur(9px) saturate(160%);
  backdrop-filter: blur(9px) saturate(160%);
  color: #1c5348;
  font-size: 12.5px;
  font-weight: 650;
  transition:
    opacity 280ms var(--ease-out-quart),
    backdrop-filter 280ms var(--ease-out-quart),
    -webkit-backdrop-filter 280ms var(--ease-out-quart),
    visibility 280ms;
}

.vault-secret-well.is-revealed .vault-blur-veil {
  display: none;
}

.vault-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-foot-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-block-start: 4px;
  font-size: 13px;
  color: #1f5147;
}

/* Non-Completed Fulfillment Status Deck Cards (Unpaid / Active / Pending-Verify / Failed) */
.vault-state-card {
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 18px;
  flex-wrap: wrap;
  min-inline-size: 0;
}

.vault-state-main {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  flex: 1 1 260px;
  min-inline-size: 0;
}

.vault-state-icon {
  flex-shrink: 0;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}

.vault-state-copy {
  display: grid;
  gap: 5px;
  min-inline-size: 0;
}

.vault-state-copy h3 {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.vault-state-copy p {
  font-size: 13.5px;
  line-height: 1.58;
}

.vault-state-card.state-brand {
  border-color: var(--brand-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 245, 255, 0.82));
}

.vault-state-card.state-brand .vault-state-icon {
  background: rgba(0, 102, 204, 0.12);
  color: var(--brand);
}

.vault-state-card.state-brand h3 {
  color: #083972;
}

.vault-state-card.state-brand p {
  color: #1e4675;
}

.vault-state-card.state-warn {
  border-color: var(--warn-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 232, 0.86));
}

.vault-state-card.state-warn .vault-state-icon {
  background: rgba(217, 136, 20, 0.15);
  color: var(--warn);
}

.vault-state-card.state-warn h3 {
  color: #6e3b03;
}

.vault-state-card.state-warn p {
  color: #7c4508;
}

.vault-state-card.state-danger {
  border-color: var(--danger-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(255, 239, 242, 0.86));
}

.vault-state-card.state-danger .vault-state-icon {
  background: rgba(218, 56, 74, 0.13);
  color: var(--danger);
}

.vault-state-card.state-danger h3 {
  color: #7f1422;
}

.vault-state-card.state-danger p {
  color: #8c1d2b;
}

/* ==================== 2-COLUMN DETAIL BENTO ==================== */
.order-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bento-right-stack {
  display: grid;
  gap: 18px;
  min-inline-size: 0;
}

/* Left: Locked Order Snapshot Pass */
.snapshot-pass {
  border-radius: var(--radius-xl);
  padding: clamp(18px, 2.4vw, 26px);
  display: grid;
  gap: 16px;
  min-inline-size: 0;
}

.pass-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pass-sku-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-inline-size: 0;
}

.pass-sku-title {
  min-inline-size: 0;
}

.pass-sku-title h3 {
  font-size: 1.08rem;
  color: var(--ink);
}

.pass-sku-spec {
  margin-block-start: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-secondary);
}

.pass-price-well {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(244, 248, 254, 0.92), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #ffffff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pass-price-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-secondary);
}

.pass-price-breakdown {
  font-size: 12px;
  color: var(--ink-muted);
  margin-block-start: 2px;
}

.pass-price-total {
  font-size: 1.56rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.1;
}

.pass-divider {
  border: 0;
  border-block-start: 1px dashed var(--line-strong);
  margin: 0;
}

.pass-kv-list {
  display: grid;
  gap: 11px;
  margin: 0;
}

.pass-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  font-size: 13.5px;
  padding-block-end: 10px;
  border-block-end: 1px solid rgba(18, 34, 60, 0.06);
}

.pass-kv-row:last-child {
  padding-block-end: 0;
  border-block-end: 0;
}

.pass-kv-row dt {
  flex-shrink: 0;
  color: var(--ink-muted);
  font-weight: 600;
}

.pass-kv-row dd {
  margin: 0;
  text-align: right;
  color: var(--ink);
  font-weight: 620;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

/* Right Top: Connected Vertical Glass Timeline */
.timeline-card,
.ticket-desk-card {
  border-radius: var(--radius-xl);
  padding: clamp(18px, 2.4vw, 24px);
  display: grid;
  gap: 15px;
  min-inline-size: 0;
}

.card-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.card-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-section-title svg {
  color: var(--brand);
  flex-shrink: 0;
}

.glass-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 2px 0 2px 26px;
  display: grid;
  gap: 14px;
}

.glass-timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  inset-block: 10px;
  inline-size: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(0, 102, 204, 0.28) 0%,
    rgba(8, 122, 104, 0.34) 100%
  );
}

.glass-timeline-item {
  position: relative;
  min-inline-size: 0;
}

.glass-timeline-dot {
  position: absolute;
  inset-inline-start: -24px;
  inset-block-start: 4px;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.glass-timeline-item[data-tone="ok"] .glass-timeline-dot {
  border-color: var(--ok);
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(8, 122, 104, 0.16);
}

.glass-timeline-item[data-tone="warn"] .glass-timeline-dot {
  border-color: var(--warn);
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(217, 136, 20, 0.18);
}

.glass-timeline-item[data-tone="danger"] .glass-timeline-dot {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(218, 56, 74, 0.16);
}

.glass-timeline-msg {
  font-size: 13.8px;
  font-weight: 620;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.glass-timeline-meta {
  margin-block-start: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.timeline-state-hop {
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(15, 28, 52, 0.055);
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.timeline-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(247, 250, 254, 0.8);
  border: 1px dashed var(--line-strong);
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* Right Bottom: Structured After-Sales Ticket Desk */
.ticket-records-stack {
  display: grid;
  gap: 0;
  border-block-start: 1px solid var(--line);
}

.ticket-record {
  padding-block: 11px;
  border-block-end: 1px solid var(--line);
  display: grid;
  gap: 5px;
  min-inline-size: 0;
}

.ticket-record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-record-title {
  font-size: 13.5px;
  font-weight: 720;
  color: var(--ink);
}

.ticket-record-no {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-inline-start: 4px;
}

.ticket-record-desc {
  font-size: 13.5px;
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
}

.ticket-admin-reply {
  margin-block-start: 2px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  background: rgba(0, 113, 227, 0.075);
  border: 1px solid rgba(0, 102, 204, 0.16);
  font-size: 12.8px;
  color: #084284;
}

.ticket-empty-row {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.ticket-form {
  padding-block-start: 12px;
  border-block-start: 1px solid var(--line);
}

.ticket-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-sla-note {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==================== RESPONSIVE BREAKPOINTS (ZERO MOBILE OVERFLOW) ==================== */
@media (max-width: 980px) {

.order-bento-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .lookup-console-grid {
    grid-template-columns: 1fr;
  }

  .lookup-submit-btn {
    inline-size: 100%;
  }

  .order-pass-head {
    align-items: flex-start;
  }

  .order-header-badges {
    inline-size: 100%;
  }

  .stepper-stage {
    padding-inline: 12px;
  }

  .order-stepper {
    gap: 4px;
  }

  .stepper-track {
    inset-block-start: 16px;
  }

  .step-circle {
    inline-size: 34px;
    block-size: 34px;
    font-size: 12px;
  }

  .step-label {
    font-size: 12px;
  }

  .step-sub {
    font-size: 10.5px;
    padding: 2px 5px;
  }

  .vault-controls {
    inline-size: 100%;
  }

  .vault-controls .btn {
    flex: 1 1 auto;
  }

  .pass-kv-row {
    flex-direction: column;
    gap: 3px;
  }

  .pass-kv-row dd {
    text-align: left;
  }
}

/* Apple Order Lookup Layout */
body {
  background: #f5f5f7;
}

.order-main {
  padding-block: clamp(32px, 5vw, 68px);
}

.order-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(28px, 4.5vw, 72px);
  padding: 0 0 clamp(28px, 4vw, 52px);
}

.order-intro {
  display: grid;
  align-items: start;
  gap: 16px;
  margin: 0;
  padding: 6px 0 0;
}

.order-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.042em;
  color: var(--ink);
}

.order-intro p {
  max-width: 26em;
  color: var(--ink-secondary);
  font-size: 15.5px;
  line-height: 1.68;
}

.lookup-console {
  margin: 0;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  background: #ffffff;
}

.lookup-console-grid {
  gap: 18px;
}

.lookup-input {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
}

.lookup-submit-btn {
  background: #0071e3;
}

#order-result:not(:empty) {
  margin-block-start: 8px;
}

@media (max-width: 800px) {
  .order-entry {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .order-main {
    padding-block-start: 24px;
  }
}

@media (max-width: 550px) {
  .lookup-console {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .lookup-console-grid {
    gap: 13px;
  }
}
