/* ══════════════════════════════════════════════════════════════════════
   b221 — VAULT + SHIPMENTS
   The markup for both pages existed but ZERO CSS was ever written for
   `loop-slab__*` or `sh-*`, so every element rendered unstyled/ragged.
   This file supplies the missing styles in the locked design language.
   ══════════════════════════════════════════════════════════════════════ */

/* ══ VAULT ═════════════════════════════════════════════════════════════ */
.loop-vault{padding-bottom:calc(24px + env(safe-area-inset-bottom))}

.loop-vault__hero{padding:18px 0 10px}
.loop-vault__hero .eyebrow{margin:0 0 8px;font:800 10px/1 'Geist Mono',monospace;
  letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.loop-vault__hero h1{margin:0 0 8px;font:800 clamp(24px,7vw,34px)/1.1 Orbitron,Inter,sans-serif;color:#fff}
.loop-vault__hero p{margin:0;font:400 14px/1.4 Inter,system-ui,sans-serif;color:rgba(255,255,255,.62)}

/* metrics strip */
.loop-vault__metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 0}
@media (min-width:760px){.loop-vault__metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
.loop-vault__metrics > *{padding:12px;border-radius:14px;background:rgba(255,255,255,.035);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);min-width:0}
.loop-vault__metrics b{display:block;font:800 clamp(16px,4.8vw,20px)/1 Orbitron,Inter,sans-serif;
  color:#fff;font-variant-numeric:tabular-nums}
.loop-vault__metrics span{display:block;margin-top:4px;font:800 9px/1 'Geist Mono',monospace;
  letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.55);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* grid of slabs */
.loop-vault__grid{display:grid;grid-template-columns:1fr;gap:12px;margin:14px 0 0}

.loop-slab{border-radius:16px;background:rgba(255,255,255,.035);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);overflow:hidden;min-width:0}
.loop-slab__top{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.055)}
.loop-slab__top .tag,.loop-slab__tier{font:800 9px/1 'Geist Mono',monospace;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(255,255,255,.62);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* art: silhouette only — glow behind, no frame/border/shadow on the figure */
.loop-slab__art,.loop-slab__image{display:grid;place-items:center;padding:14px 0 6px;
  background:transparent;border:0;box-shadow:none;min-height:0}
.loop-slab__image img,.loop-slab__art img{height:clamp(150px,26svh,220px);width:auto;max-width:58vw;
  object-fit:contain;display:block;border:0;border-radius:0;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.65))}

.loop-slab__body{padding:10px 14px 14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.loop-slab__body h3,.loop-slab__body h2{margin:0;font:600 15px/1.3 Inter,system-ui,sans-serif;
  color:#EDEAF6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.loop-slab__body p{margin:0;font:400 12.5px/1.4 Inter,system-ui,sans-serif;
  color:rgba(255,255,255,.58);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Eligibility is a policy notice, not a single-line card subtitle. */
html body p.shipping-minimum-note{display:block;margin:12px 0;padding:10px 12px;
  border:1px solid rgba(192,132,252,.28);border-radius:10px;background:rgba(168,85,247,.07);
  color:#d8d3e1;font:400 12.5px/1.6 Inter,system-ui,sans-serif;
  white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}

.loop-slab__value{display:flex;align-items:baseline;gap:8px;padding:10px 12px;border-radius:12px;
  background:rgba(255,255,255,.045);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.loop-slab__value b{font:800 clamp(18px,5vw,22px)/1 Orbitron,Inter,sans-serif;color:#fff;
  font-variant-numeric:tabular-nums}
.loop-slab__value span,.loop-slab__value small{font:800 9px/1.2 'Geist Mono',monospace;
  letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.62);white-space:nowrap}

/* action pair / rows — ONE primary per row, canonical geometry */
.loop-slab__actions,.loop-vault__actions,.vault-actions{display:grid;grid-template-columns:1fr 1fr;
  gap:8px;margin:2px 0 0;padding:0 14px 14px;align-items:stretch}
.loop-slab__actions > *,.loop-vault__actions > *,.vault-actions > *{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:40px;min-height:40px;padding:0 14px;border-radius:10px;
  font:700 13px/1 Inter,system-ui,sans-serif;letter-spacing:0;text-decoration:none;
  cursor:pointer;appearance:none;-webkit-appearance:none;white-space:nowrap;
  box-sizing:border-box;transition:background .14s,border-color .14s,color .14s,filter .14s}
/* primary */
.loop-slab__actions .btn,.loop-slab__sell,.loop-slab__view,.loop-vault__actions .btn,.vault-actions .btn{
  background:linear-gradient(135deg,#A855F7,#7C3AED);border:1px solid rgba(168,85,247,.6);color:#fff;
  box-shadow:0 10px 26px -10px rgba(168,85,247,.8);font-weight:800}
.loop-slab__actions .btn:hover,.loop-slab__sell:hover,.loop-slab__view:hover{filter:brightness(1.08)}
/* secondary */
.loop-slab__actions .ghost:not(.tert),.loop-slab__ship,.loop-vault__actions .ghost:not(.tert){
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.16);color:#EDEAF6}
.loop-slab__actions .ghost:not(.tert):hover,.loop-slab__ship:hover{border-color:rgba(168,85,247,.55);color:#fff}
/* tertiary */
.loop-slab__actions .ghost.tert,.loop-slab__list,.loop-vault__actions .ghost.tert{
  background:transparent;border:1px dashed rgba(255,255,255,.2);color:rgba(255,255,255,.72)}
.loop-slab__actions .ghost.tert:hover,.loop-slab__list:hover{border-color:rgba(168,85,247,.5);color:#fff}
.loop-slab__actions > *:focus-visible,.loop-vault__actions > *:focus-visible{
  outline:3px solid rgba(168,85,247,.75);outline-offset:2px}

.loop-wallet{padding:14px;border-radius:16px;background:rgba(255,255,255,.035);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);margin:14px 0 0}

/* phone: single column, full-width buttons */
@media (max-width:599px){
  .loop-vault__actions,.vault-actions,.loop-slab__actions{grid-template-columns:1fr}
  .loop-slab__actions > *,.loop-vault__actions > *,.vault-actions > *{height:38px;min-height:38px}
}
@media (min-width:900px){
  .loop-vault__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .loop-slab__actions,.loop-vault__actions,.vault-actions{grid-template-columns:1fr 1fr}
}

/* ══ SHIPMENTS ═════════════════════════════════════════════════════════ */
.sh{padding:0 0 calc(24px + env(safe-area-inset-bottom))}

.sh-hero{padding:18px 0 10px}
.sh-micro{margin:0;font:800 10px/1.3 'Geist Mono',ui-monospace,monospace;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(255,255,255,.55)}
.sh-h1{margin:10px 0 8px;font:800 clamp(24px,7vw,34px)/1.1 Orbitron,Inter,sans-serif;color:#fff;
  letter-spacing:-.01em}
.sh-lede{margin:0;font:400 14px/1.45 Inter,system-ui,sans-serif;color:rgba(255,255,255,.62);max-width:52ch}

/* KPI strip */
.sh-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:16px 0 0}
.sh-kpi{padding:12px;border-radius:14px;background:rgba(255,255,255,.035);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);min-width:0}
.sh-kpi b{display:block;font:800 clamp(18px,5vw,24px)/1 Orbitron,Inter,sans-serif;color:#fff;
  font-variant-numeric:tabular-nums}
.sh-kpi span,.sh-kpi .sh-micro{display:block;margin-top:5px}
/* KPI accents */
.sh-kpi--requested{box-shadow:inset 0 0 0 1px rgba(251,191,36,.28)}
.sh-kpi--requested b{color:#FBBF24}
.sh-kpi--packed{box-shadow:inset 0 0 0 1px rgba(94,168,255,.28)}
.sh-kpi--packed b{color:#5EA8FF}
.sh-kpi--shipped{box-shadow:inset 0 0 0 1px rgba(168,85,247,.32)}
.sh-kpi--shipped b{color:#A855F7}
.sh-kpi--delivered{box-shadow:inset 0 0 0 1px rgba(52,211,153,.28)}
.sh-kpi--delivered b{color:#34D399}

/* list + panel */
.sh-list{display:flex;flex-direction:column;gap:12px;margin:16px 0 0}
.sh-panel{border-radius:16px;background:rgba(255,255,255,.035);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);padding:16px;min-width:0}
.sh-head{display:flex;align-items:center;gap:12px;min-width:0}
/* silhouette-only thumb */
.sh-thumb{flex:0 0 auto;display:grid;place-items:center;width:64px;height:84px;
  background:transparent;border:0;box-shadow:none;border-radius:0}
.sh-thumb img{width:100%;height:100%;object-fit:contain;border:0;border-radius:0;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.6))}
.sh-thumb__none{width:64px;height:84px;display:grid;place-items:center;border-radius:10px;
  background:rgba(255,255,255,.04);color:rgba(255,255,255,.3);font:800 9px/1 'Geist Mono',monospace;
  letter-spacing:.14em;text-transform:uppercase}
.sh-copy{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.sh-name{margin:0;font:600 15px/1.3 Inter,system-ui,sans-serif;color:#EDEAF6;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-id{margin:0;font:700 10px/1.3 'Geist Mono',monospace;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(255,255,255,.45);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* state chips */
.sh-chip{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  padding:6px 9px;border-radius:999px;font:800 9.5px/1 'Geist Mono',monospace;
  letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.sh-chip--requested{color:#FBBF24;background:rgba(251,191,36,.14);box-shadow:inset 0 0 0 1px rgba(251,191,36,.42)}
.sh-chip--packed{color:#5EA8FF;background:rgba(94,168,255,.14);box-shadow:inset 0 0 0 1px rgba(94,168,255,.42)}
.sh-chip--shipped{color:#C084FC;background:rgba(168,85,247,.16);box-shadow:inset 0 0 0 1px rgba(168,85,247,.45)}
.sh-chip--delivered{color:#34D399;background:rgba(52,211,153,.14);box-shadow:inset 0 0 0 1px rgba(52,211,153,.42)}

/* facts */
.sh-facts{display:grid;grid-template-columns:1fr;gap:0;margin:12px 0 0}
.sh-fact{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:13px;min-width:0}
.sh-fact:last-child{border-bottom:0}
.sh-fact dt,.sh-fact > span:first-child{font:800 10px/1.3 'Geist Mono',monospace;letter-spacing:.16em;
  text-transform:uppercase;color:rgba(255,255,255,.55);flex:0 0 auto}
.sh-fact dd,.sh-fact > span:last-child{margin:0;color:#EDEAF6;text-align:right;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-fact--track dd,.sh-track{font-family:'Geist Mono',ui-monospace,monospace;font-size:12px;
  color:#EDEAF6;letter-spacing:.04em}
.sh-track--none{color:rgba(255,255,255,.4)!important}

/* steps timeline */
.sh-steps{display:flex;align-items:center;gap:6px;margin:12px 0 0;flex-wrap:wrap}
.sh-steps span,.sh-steps i{font:800 9px/1 'Geist Mono',monospace;letter-spacing:.12em;
  text-transform:uppercase;color:rgba(255,255,255,.4)}
.sh-steps .is-on,.sh-steps .is-now{color:#A855F7}

/* one primary action per shipment */
.sh-act{display:flex;gap:8px;margin:14px 0 0;align-items:stretch}
.sh-btn,.sh-act > a,.sh-act > button{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:var(--ctl-h);min-height:var(--ctl-h);padding:0 16px;border-radius:var(--ctl-r);text-decoration:none;cursor:pointer;
  font:var(--ctl-font);box-sizing:border-box;white-space:nowrap;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.16);color:#EDEAF6;
  transition:background .14s,border-color .14s,filter .14s}
.sh-btn--primary,.sh-act > .btn{background:linear-gradient(135deg,#A855F7,#7C3AED);
  border:1px solid rgba(168,85,247,.6);color:#fff;font-weight:800;
  box-shadow:0 10px 26px -10px rgba(168,85,247,.8)}
.sh-btn--primary:hover,.sh-act > .btn:hover{filter:brightness(1.08)}
.sh-btn:focus-visible,.sh-act > *:focus-visible{outline:3px solid rgba(168,85,247,.75);outline-offset:2px}

.sh-note{margin:12px 0 0;font:400 12px/1.45 Inter,system-ui,sans-serif;color:rgba(255,255,255,.45)}
.sh-num{font-variant-numeric:tabular-nums}
.sh-more{display:inline-flex;align-items:center;gap:6px;margin:10px 0 0;height:44px;
  font:700 12px/1 Inter,system-ui,sans-serif;color:#C084FC;text-decoration:none;
  border-bottom:1px solid rgba(168,85,247,.35)}

/* empty state — a designed panel, not bare text */
.sh-list:empty::after{content:none}
.sh .empty,.sh-empty{margin:16px 0 0;padding:28px 20px;border-radius:16px;text-align:center;
  background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
  display:flex;flex-direction:column;align-items:center;gap:10px}
.sh .empty b,.sh-empty b{font:800 clamp(18px,5vw,22px)/1.2 Orbitron,Inter,sans-serif;color:#fff}
.sh .empty p,.sh-empty p{margin:0;font:400 13.5px/1.45 Inter,system-ui,sans-serif;
  color:rgba(255,255,255,.62);max-width:34ch}
.sh .empty .btn,.sh-empty > a{display:inline-flex;align-items:center;justify-content:center;
  height:var(--ctl-h);margin-top:6px;padding:0 20px;border-radius:var(--ctl-r);text-decoration:none;
  background:linear-gradient(135deg,#A855F7,#7C3AED);border:1px solid rgba(168,85,247,.6);
  color:#fff;font:800 13px/1 Inter,system-ui,sans-serif;
  box-shadow:0 10px 26px -10px rgba(168,85,247,.8)}

@media (min-width:600px){
  .sh-kpis{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:900px){
  .sh-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .sh-panel{padding:20px}
  .sh-facts{grid-template-columns:1fr 1fr;column-gap:28px}
  .sh-thumb{width:76px;height:100px}
  .sh-lede{font-size:15px}
}

/* ══════════════════════════════════════════════════════════════════════
   b231 — VAULT: actions must never hide behind the fixed sticky bar
   or the card artwork. Three guards:
   1. page bottom padding clears the 65px fixed bar + safe area
   2. the actions row is lifted above the artwork and the bar
   3. the slab must not clip its own actions
   ══════════════════════════════════════════════════════════════════════ */
html body .loop-vault{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}

/* actions sit ON TOP of the artwork and any gradient veil */
html body .loop-slab{overflow:visible!important;position:relative;isolation:isolate}
html body .loop-slab__actions,html body .vault-actions,html body .loop-vault__actions{
  position:relative!important;z-index:6!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;
  width:100%!important;min-width:0!important;padding:0 14px 14px!important;margin:0!important;
  background:transparent!important;box-sizing:border-box!important}
/* let a lone action span the row so it never squeezes */
html body .loop-slab__actions > *:only-child{grid-column:1 / -1}
html body .loop-slab__actions > *,html body .vault-actions > *{
  height:var(--ctl-h)!important;min-height:var(--ctl-h)!important;width:100%!important;
  padding:0 12px!important;border-radius:10px!important;box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px;
  font:700 13px/1 Inter,system-ui,sans-serif!important;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
/* the artwork must never overlap the actions */
html body .loop-slab__art,html body .loop-slab__image,html body .loop-slab__body{position:relative;z-index:1!important}

@media (max-width:599px){
  html body .loop-slab__actions,html body .vault-actions,html body .loop-vault__actions{
    grid-template-columns:1fr!important}
  html body .loop-vault{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
}

/* ══════════════════════════════════════════════════════════════════════
   b233 — VAULT "List" BUTTON CUT OFF
   The slab has THREE actions (Sell back / Ship / List) but the row was a
   2-column grid, so the 3rd wrapped into a second row that the card's
   clipped height cut in half. Fix: explicit 2-up + full-width 3rd row,
   and never clip the actions row.
   ══════════════════════════════════════════════════════════════════════ */
html body .loop-slab{overflow:visible!important}
html body .loop-slab__body{overflow:visible!important}

html body .loop-slab__actions,html body .vault-actions,html body .loop-vault__actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  grid-auto-rows:minmax(var(--ctl-h),auto)!important;
  gap:8px!important;
  padding:10px 14px 14px!important;
  margin:0!important;
  width:100%!important;min-width:0!important;box-sizing:border-box!important;
  overflow:visible!important;
  background:transparent!important;
  position:relative!important;z-index:6!important}
/* the 3rd (and any later) action spans the full width so nothing is clipped */
html body .loop-slab__actions > *:nth-child(3),
html body .vault-actions > *:nth-child(3),
html body .loop-vault__actions > *:nth-child(3){
  grid-column:1 / -1!important}
/* all children keep the locked geometry and can never shrink away */
html body .loop-slab__actions > *,html body .vault-actions > *,html body .loop-vault__actions > *{
  height:var(--ctl-h)!important;min-height:var(--ctl-h)!important;width:100%!important;
  padding:0 12px!important;border-radius:10px!important;box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px;
  font:700 13px/1 Inter,system-ui,sans-serif!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 0 auto}

@media (max-width:360px){
  html body .loop-slab__actions,html body .vault-actions,html body .loop-vault__actions{
    grid-template-columns:1fr!important}
}

/* ══════════════════════════════════════════════════════════════════════
   b234 — the REAL vault action structure:
     .loop-slab__actions  (grid)
        ├ button.loop-slab__sell
        └ div.loop-slab__pair
             ├ button.loop-slab__ship
             └ button  (List)
   The "List" button was clipped because `.loop-slab__pair` had no layout
   rules of its own. Give it an explicit grid so all three render fully.
   ══════════════════════════════════════════════════════════════════════ */
html body .loop-slab__pair{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  width:100%!important;min-width:0!important;box-sizing:border-box!important;
  overflow:visible!important}
html body .loop-slab__pair > *{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px;
  width:100%!important;min-width:0!important;
  height:var(--ctl-h)!important;min-height:var(--ctl-h)!important;
  padding:0 10px!important;border-radius:10px!important;box-sizing:border-box!important;
  font:700 13px/1 Inter,system-ui,sans-serif!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background:rgba(255,255,255,.05)!important;
  border:1px solid rgba(255,255,255,.16)!important;color:#EDEAF6!important;
  box-shadow:none!important;text-decoration:none;cursor:pointer}
html body .loop-slab__pair > *:hover{border-color:rgba(168,85,247,.55)!important;color:#fff!important}
html body .loop-slab__pair > *:focus-visible{outline:2px solid #A855F7;outline-offset:2px}

/* the sell button is the row's single primary */
html body .loop-slab__sell{
  background:linear-gradient(135deg,#A855F7,#7C3AED)!important;
  border:1px solid rgba(168,85,247,.6)!important;color:#fff!important;font-weight:800!important;
  box-shadow:0 10px 26px -10px rgba(168,85,247,.8)!important}

/* on narrow phones: sell full width, then ship/list as a 2-up pair */
@media (max-width:560px){
  html body .loop-slab__actions,html body .vault-actions,html body .loop-vault__actions{
    grid-template-columns:1fr!important;gap:8px!important}
  html body .loop-slab__pair{grid-template-columns:1fr 1fr!important}
  html body .loop-slab__pair > *{font-size:12.5px!important}
}

/* ══ vault progressive loading — keep mobile memory bounded ══ */
html body .loop-vault__grid > .loop-slab:nth-child(n+13){content-visibility:auto;contain-intrinsic-size:auto 720px}
html body .loop-vault__more{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:8px;
  margin:16px auto 8px!important;height:var(--ctl-h)!important;min-height:var(--ctl-h)!important;
  max-width:340px;padding:0 18px!important;border-radius:12px!important;box-sizing:border-box;
  background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.16)!important;
  color:#EDEAF6!important;font:700 13px/1 Inter,system-ui,sans-serif!important;text-decoration:none}
html body .loop-vault__more:hover{border-color:rgba(168,85,247,.55)!important;color:#fff!important}
