.shipments-page {
  --ship-card: #19181e; --ship-line: #35323d; --ship-muted: #aaa7b3; --ship-purple: #b09aff;
  width: 100%; max-width: 720px; margin-inline: auto; color: #faf9fc;
}
.shipments-page .ship-header .back { color: var(--ship-muted); margin: 0 0 8px; }
.ship-header :is(h1,h2), .ship-sheet h1 { font-size: 24px; line-height: 1.2; font-weight: 800; }
.ship-header p, .ship-empty p, .ship-sheet-intro { margin: 5px 0 0; color: var(--ship-muted); line-height: 1.45; }
.ship-tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; padding: 5px 2px; margin: 12px 0 8px; scrollbar-width: none; }
.ship-tabs::-webkit-scrollbar { display: none; }
.ship-tab { flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ship-muted); }
.ship-tab[aria-current] { background: rgb(255 255 255 / 12%); color: #fff; }
.ship-orders { display: grid; gap: 16px; }
.ship-empty, .ship-row { border: 1px solid var(--ship-line); border-radius: 24px; background: var(--ship-card); }
.ship-empty { display: flex; gap: 14px; align-items: center; padding: 20px; }
.ship-empty h2 { font-size: 17px; }
.ship-empty p, .ship-sheet-intro { font-size: 14px; }
.ship-clock { font: 22px/1 'Checkout Icons'; color: var(--ship-purple); }
.ship-row { position: relative; isolation: isolate; overflow: hidden; --stage-color: #8dc5fb; }
.ship-row:is([data-stage="pending"], [data-stage="processing"], [data-stage="issue"]) { --stage-color: #e7bd64; }
.ship-row[data-stage="delivered"] { --stage-color: #84cf99; }
.ship-row[data-stage="denied"] { --stage-color: #f3939c; }
.ship-row[data-stage="unknown"] { --stage-color: var(--ship-muted); }
.ship-row .ship-open {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 20px 16px;
  position: static; border: 0; background: none; border-radius: 0; overflow: visible;
}
.ship-open::after { position: absolute; inset: 0; z-index: 1; content: ''; }
.ship-open:focus-visible { outline: 0; }
.ship-open:focus-visible::after { outline: 2px solid var(--ship-purple); outline-offset: -3px; border-radius: 24px; }
.ship-glow { position: absolute; inset: -42px 0 auto; width: 100%; height: 128px; object-fit: cover; filter: blur(38px); opacity: .2; pointer-events: none; z-index: -1; }
.ship-photo { flex: none; width: 64px; aspect-ratio: 175/260; object-fit: contain; }
.ship-product { min-width: 0; flex: 1; }
.ship-open .ship-product h3 { margin: 0; color: inherit; font: 750 17px/1.35 Manrope,sans-serif; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship-open .ship-requested { margin: 5px 0; font-size: 12px; color: var(--ship-muted); }
.ship-stage { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; border: 1px solid color-mix(in srgb,var(--stage-color) 47%,transparent); color: var(--stage-color); background: color-mix(in srgb,var(--stage-color) 9%,transparent); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 750; letter-spacing: .025em; }
.ship-status-icon { font: 12px/1 'Checkout Icons'; }
.ship-progress { display: flex; list-style: none; padding: 0 16px 12px; margin: 0; }
.ship-progress li { flex: 1; min-width: 0; position: relative; text-align: center; color: #88858f; font-size: 11px; line-height: 1.35; }
.ship-progress li:first-child { text-align: left; }
.ship-progress li:last-child { text-align: right; }
.ship-progress li::before { content: ''; display: block; position: relative; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: #45434c; margin: 0 auto 5px; }
.ship-progress li:first-child::before { margin-left: 3px; }
.ship-progress li:last-child::before { margin-right: 3px; }
.ship-progress li:not(:first-child)::after { content: ''; position: absolute; top: 4px; left: -50%; right: 50%; background: #45434c; height: 2px; }
.ship-progress li:nth-child(2)::after { left: calc(-100% + 8px); }
.ship-progress li:last-child::after { right: 8px; }
.ship-progress .reached { color: #e6e3ed; }
.ship-progress li:not(.reached)::before { border: 2px solid #45434c; background: var(--ship-card); }
.ship-progress li.reached::before, .ship-progress li.reached:not(:first-child)::after { background: #7a45fd; }
.ship-progress small { display: block; color: var(--ship-muted); font-size: 10px; margin-top: 2px; }
.ship-denied { margin: 0 16px 12px; color: var(--stage-color); }
.ship-address { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid var(--ship-line); padding: 12px 16px; font-size: 14px; }
.ship-address > div { flex: 1; min-width: 0; }
.ship-address p { font-size: 13px; color: var(--ship-muted); line-height: 1.45; }
.ship-detail-note { flex-basis: 100%; }
.ship-change, .ship-tracking { position: relative; z-index: 2; }
.ship-change, .ship-sheet .actions button, .ship-add, .ship-previous { border: 0; border-radius: 999px; background: #f3f2f5; color: #18161c; font-weight: 750; }
.ship-change { font-size: 12px; padding: 7px 14px; }
.ship-tracking { flex-basis: 100%; color: var(--ship-purple); font-size: 13px; font-weight: 650; }
.ship-note, .ship-more { margin-top: 16px; font-size: 12px; color: var(--ship-muted); }
.ship-more { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ship-more a { padding: 7px 0; }
.ship-more a:hover { text-decoration: underline; }
.ship-more .ship-page-link { font-weight: 750; color: #f3f2f5; }
.ship-sheet { color: inherit; background: var(--ship-card); border: 1px solid var(--ship-line); border-radius: 24px 24px 0 0; width: min(100%,480px); max-width: 100%; max-height: min(86dvh,740px); margin: auto auto 0; padding: 0; overscroll-behavior: contain; }
.ship-sheet::backdrop { background: rgb(0 0 0 / 62%); }
html:has(.ship-sheet[open]) { overflow: hidden; }
.ship-sheet-body { position: relative; padding: 25px 20px max(20px,env(safe-area-inset-bottom)); }
.ship-sheet-body::before { content: ''; position: absolute; top: 8px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: 99px; background: #625e69; }
.ship-sheet h1 { padding-right: 38px; }
.ship-close { position: absolute; right: 12px; top: 14px; width: 40px; height: 40px; background: transparent; border: 0; color: var(--ship-muted); font-size: 24px; }
.ship-saved, .ship-scopes label { display: flex; gap: 3px; width: 100%; margin-top: 12px; border: 1px solid var(--ship-line); border-radius: 14px; padding: 12px 16px; background: #232128; color: inherit; font-size: 14px; }
.ship-saved { flex-direction: column; text-align: left; }
.ship-saved span { color: var(--ship-muted); }
.ship-sheet button.ship-saved:hover { border-color: var(--ship-purple); }
.ship-add { display: block; margin-top: 16px; padding: 11px; text-align: center; }
.ship-scopes, .ship-sheet .controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.ship-scopes label { flex-direction: row; align-items: center; gap: 10px; font-weight: 650; cursor: pointer; }
.ship-scopes label:has(:checked) { border-color: var(--ship-purple); }
.ship-scopes input { flex: none; width: 18px; height: 18px; accent-color: var(--ship-purple); margin: 0; }
.ship-sheet .model-form { margin: 16px 0 0; }
.ship-sheet .controls { display: block; background: none; }
.ship-sheet .actions { display: flex; gap: 12px; margin: 0; }
.ship-sheet .actions button { flex: 1; min-height: 44px; padding: 8px; font-size: 14px; }
.ship-sheet .actions .ship-previous { background: #35323a; color: #faf9fc; }
.ship-sheet .form-status:empty { display: none; }
