/* Giftlister web companion. Wrap cream, cranberry, pine, ribbon gold. */

:root {
  --cranberry: #c2304a;
  --mulberry: #8e1b3b;
  --pine: #1f5d4c;
  --pine-2: #2e7d66;
  --gold: #f4c35a;
  --cream: #fff7ee;
  --ink: #2a1a1f;

  --bg: var(--cream);
  --surface: #ffffff;
  --surface-2: #fdeee2;
  --text: var(--ink);
  --muted: #6e5a60;
  --line: rgba(42, 26, 31, 0.1);
  --primary: var(--cranberry);
  --primary-press: var(--mulberry);
  --on-primary: #fff;
  --claimed: var(--pine);
  --claimed-bg: #e2f1eb;
  --focus: #f4c35a;
  --danger: #b4232f;
  --shadow: 0 1px 2px rgba(90, 14, 36, 0.06), 0 10px 28px -8px rgba(90, 14, 36, 0.16);
  --shadow-lg: 0 24px 60px -12px rgba(60, 10, 26, 0.35);
  --radius: 20px;
  --radius-sm: 14px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light dark;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 112.5%; /* 18px base: readable on a grandparent's phone, scales with browser text size */
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1114;
    --surface: #261a1e;
    --surface-2: #322227;
    --text: #fbefe6;
    --muted: #c2adb2;
    --line: rgba(255, 240, 230, 0.12);
    --primary: #e14c66;
    --primary-press: #c2304a;
    --claimed: #79cdb0;
    --claimed-bg: rgba(46, 125, 102, 0.24);
    --danger: #ff6b76;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -8px rgba(0, 0, 0, 0.55);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 110% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at -20% -5%, color-mix(in srgb, var(--cranberry) 10%, transparent), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.sheet-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 1.85rem;
  font-weight: 800;
}
h2 {
  font-size: 1.2rem;
  font-weight: 750;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
p {
  margin: 0;
}
a {
  color: var(--primary);
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}
h1:focus {
  outline: none;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.lede {
  color: var(--muted);
  font-size: 1.02rem;
}
.fineprint {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 18px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------------------------------------------------------------- layout */

.view {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: view-in 0.42s var(--ease-out) both;
}
.view.center {
  min-height: 80dvh;
  justify-content: center;
  align-items: stretch;
  padding-top: 24px;
}
.boot {
  align-items: center !important;
  text-align: center;
  gap: 10px;
}
.boot-mark {
  animation: bob 1.6s ease-in-out infinite;
}
.noscript {
  text-align: center;
  padding: 40px 20px;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-6px) rotate(-3deg);
  }
}

/* Children of .anim fade/slide in, staggered. */
.anim > * {
  animation: rise 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.anim > :nth-child(2) {
  --i: 1;
}
.anim > :nth-child(3) {
  --i: 2;
}
.anim > :nth-child(4) {
  --i: 3;
}
.anim > :nth-child(5) {
  --i: 4;
}
.anim > :nth-child(n + 6) {
  --i: 5;
}
.people.anim > *,
.wishes.anim > * {
  /* these set --i inline per row */
  animation-delay: calc(min(var(--i, 0), 10) * 45ms + 60ms);
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 -18px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar > :last-child {
  justify-self: end;
}
.topbar-title {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50vw;
  opacity: 0.9;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  min-height: 44px;
}
.brand img {
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(90, 14, 36, 0.25);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding-right: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
}
.back .icon {
  margin-left: -6px;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn:active {
  transform: scale(0.92);
}
.badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
  animation: pop-in 0.5s var(--spring) both 0.3s;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s var(--spring),
    background 0.15s,
    box-shadow 0.2s,
    opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}
.btn:active:not(:disabled) {
  transform: scale(0.96);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.block {
  width: 100%;
}
.btn.small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
}
.btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary));
  color: var(--on-primary);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn.primary:hover:not(:disabled) {
  background: var(--primary-press);
}
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow);
}
.btn.ghost {
  background: transparent;
  color: var(--primary);
}
.btn.ghost:hover:not(:disabled) {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.btn.danger {
  background: var(--danger);
  color: #fff;
}
.btn.apple {
  background: #000;
  color: #fff;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .btn.apple {
    background: #fff;
    color: #000;
  }
}
.btn.on-dark {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.btn.on-dark:hover {
  background: rgba(255, 255, 255, 0.26);
}
.link-btn {
  border: 0;
  background: none;
  font: inherit;
  color: var(--primary);
  font-weight: 650;
  cursor: pointer;
  padding: 10px 6px;
  min-height: 44px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.actions > .btn {
  flex: 1 1 140px;
  padding: 0 16px;
}

/* ---------------------------------------------------------------- cards & forms */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.label {
  font-weight: 700;
  font-size: 0.92rem;
}
.label small,
.field small {
  font-weight: 500;
  color: var(--muted);
}
.hint {
  color: var(--muted);
  font-size: 0.88rem;
}
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem; /* ≥16px so iOS doesn't zoom */
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
textarea.input {
  resize: vertical;
  min-height: 0;
  line-height: 1.4;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.input:disabled {
  opacity: 0.6;
}
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.code-input {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.code-input::placeholder {
  color: color-mix(in srgb, var(--muted) 45%, transparent);
}
.row-inputs {
  display: flex;
  gap: 10px;
}
.row-inputs > .input:first-child {
  flex: 1;
}
.row-inputs .currency {
  width: 108px;
  flex: none;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 360px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.form-error {
  color: var(--danger);
  font-weight: 600;
}
.notice {
  background: color-mix(in srgb, var(--gold) 22%, var(--surface));
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  border-left: 4px solid var(--gold);
}
.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  min-height: 1.4em;
}
.source-line {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  word-break: break-all;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: 0.15em;
  letter-spacing: 0.02em;
}
.tag.soft {
  background: color-mix(in srgb, var(--gold) 35%, var(--surface));
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--pine) 40%, transparent);
  background: var(--claimed-bg);
  color: var(--claimed);
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
}

/* switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-weight: 700;
  cursor: pointer;
}
.switch-row > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.switch {
  position: relative;
  width: 54px;
  height: 32px;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  transition: background 0.2s;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s var(--spring);
}
.switch input:checked + .switch-ui {
  background: var(--pine-2);
}
.switch input:checked + .switch-ui::after {
  transform: translateX(22px);
}
.switch input:focus-visible + .switch-ui {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
}
.stepper .icon-btn {
  background: var(--surface);
  box-shadow: var(--shadow);
}
.qty-value {
  min-width: 40px;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

/* segmented */
.seg {
  display: flex;
  padding: 4px;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 999px;
}
.seg-btn {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.seg-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------- join */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 40px 0 8px;
}
.hero.small {
  padding-top: 28px;
}
.hero h1 {
  font-size: 2.2rem;
}
.hero-mark {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: linear-gradient(145deg, #e5484d, var(--cranberry) 55%, var(--mulberry));
  box-shadow:
    0 20px 40px -14px rgba(142, 27, 59, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
  animation: mark-in 0.8s var(--spring) both;
}
.hero.small .hero-mark {
  width: 104px;
  height: 104px;
  border-radius: 28px;
}
.hero-mark img {
  animation: bob 3.2s ease-in-out infinite 0.8s;
}
@keyframes mark-in {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
  }
}
.join .card h2 {
  font-size: 1.15rem;
}
.dev-signin {
  gap: 10px;
}
.dev-signin .btn {
  flex: none;
}

.signed-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 26%, var(--surface));
  font-size: 0.95rem;
}
.signed-in > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.signed-in strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invite {
  text-align: center;
  align-items: stretch;
}
.big-code {
  font-size: 2.6rem;
  font-weight: 850;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.link-line {
  color: var(--muted);
  font-size: 0.88rem;
  word-break: break-all;
}

/* ---------------------------------------------------------------- people */

.event-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
}
.event-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.family-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.event-name .icon {
  color: var(--muted);
}

.people {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.2s var(--spring),
    box-shadow 0.2s;
}
.person-row:hover {
  transform: translateY(-1px);
}
.person-row:active {
  transform: scale(0.98);
}
.person-row > .icon {
  transform: rotate(180deg);
  color: var(--muted);
  margin-left: auto;
}
.person-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.person-name {
  font-weight: 750;
  font-size: 1.15rem;
}
.person-meta {
  color: var(--muted);
  font-size: 0.98rem;
}

.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--av) 70%, #fff), var(--av) 70%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 3px var(--surface),
    0 4px 10px -2px color-mix(in srgb, var(--av) 60%, transparent);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.action-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------- list */

.list-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.sizes-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, #1f5d4c, #2e7d66);
  box-shadow: 0 14px 30px -14px rgba(31, 93, 76, 0.7);
}
.sizes-card::after {
  /* ribbon */
  content: "";
  position: absolute;
  right: 26px;
  top: -10px;
  bottom: -10px;
  width: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 70%, transparent), color-mix(in srgb, var(--gold) 30%, transparent));
  opacity: 0.35;
  transform: rotate(8deg);
  pointer-events: none;
}
.sizes-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.sizes-head p {
  opacity: 0.85;
  font-size: 0.9rem;
  margin-top: 2px;
}
.sizes {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.size-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}
.size-row dt {
  font-weight: 600;
}
.size-row dd {
  margin: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.size-row dd strong {
  font-size: 1.15rem;
  color: #ffe7b0;
}
.size-note {
  font-size: 0.82rem;
  opacity: 0.85;
}
.sizes-empty {
  margin-top: 10px;
  opacity: 0.9;
}

.list-toolbar {
  display: flex;
}
.add-wish {
  min-height: 58px;
  font-size: 1.08rem;
}

.wishes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wish-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.wish-card.is-claimed {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--claimed) 55%, transparent),
    var(--shadow);
}
.wish-card.highlight {
  animation: highlight 2.2s ease-out;
}
@keyframes highlight {
  0%,
  40% {
    box-shadow:
      0 0 0 4px var(--gold),
      var(--shadow);
  }
}
.wish-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.wish-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--primary) 55%, transparent);
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--gold) 14%, transparent) 18px 36px),
    var(--surface-2);
}
.wish-card .wish-cover {
  aspect-ratio: 16 / 9;
}
.wish-card .wish-cover:has(.cover-placeholder) {
  aspect-ratio: 16 / 5;
}
.more-pics {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.wish-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wish-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.wish-title-row h3 {
  flex: 1;
  padding-top: 8px;
  overflow-wrap: anywhere;
}
.wish-title-row .more {
  margin: 0 -8px 0 0;
}
.my-claim h3 {
  overflow-wrap: anywhere;
}
.wish-price {
  font-weight: 700;
  color: var(--primary);
}
.wish-remark {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.98rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.clothing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--claimed-bg);
  color: var(--text);
}
.size-to-buy {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.size-to-buy span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--claimed);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.size-to-buy strong {
  font-size: 1.35rem;
}
.clothing-bits {
  font-weight: 600;
}
.brand-note {
  font-size: 0.92rem;
  color: var(--muted);
}
.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 40px;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.claim-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.claim-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.claim-lines:empty {
  display: none;
}
.claim-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.claim-lines:empty + .claim-actions {
  flex: 1;
}
.claim-lines:empty + .claim-actions .claim-btn {
  flex: 1;
}
.claim-btn {
  min-width: 140px;
}
.claim-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: var(--claimed-bg);
  color: var(--claimed);
  font-weight: 750;
}
.claim-status.mine {
  background: var(--pine);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .claim-status.mine {
    background: var(--pine-2);
  }
}
.open-count {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}
.changed {
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 24%, var(--surface));
  border-left: 4px solid var(--gold);
  font-size: 0.95rem;
}

.reveal {
  align-self: center;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 36px 20px;
  color: var(--muted);
  font-size: 1.05rem;
}
.empty img {
  width: 96px;
  height: 96px;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(145deg, #e5484d, var(--cranberry) 55%, var(--mulberry));
  opacity: 0.9;
}

.page-title {
  padding-top: 6px;
}
.page-sub {
  margin-top: -8px;
}
.group-title {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.group-title a {
  color: inherit;
  text-decoration: none;
}
.claim-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question .q-text {
  font-size: 1.05rem;
  font-weight: 600;
}
.q-quote {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.question {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 5px solid var(--gold);
}
.message.unread {
  border-left: 5px solid var(--primary);
}
.message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------------------------------------------------------------- review sheet */

.img-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 8px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
}
.tile {
  position: relative;
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 16px;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform 0.2s var(--spring);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.tile.selected {
  box-shadow: inset 0 0 0 3px var(--primary);
}
.tile.selected img {
  opacity: 1;
}
.tile:active {
  transform: scale(0.94);
}
.tile-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 2px rgba(42, 26, 31, 0.3);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}
.tile.selected .tile-check {
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.tile-cover {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}
.add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface-2);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 35%, transparent);
  border: 0;
}
.tile.loading {
  display: grid;
  place-items: center;
  background: var(--surface-2);
}
.review .clothing-fields {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--claimed-bg);
  animation: rise 0.35s var(--ease-out) both;
}
.sheet-footer {
  position: sticky;
  bottom: calc(-1 * (18px + env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px -20px calc(-1 * (18px + env(safe-area-inset-bottom)));
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--surface) 22%);
}

.size-edit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.size-edit-row {
  display: grid;
  grid-template-columns: 1fr 90px 46px;
  grid-template-areas:
    "label size del"
    "note note note";
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.size-edit-row > :nth-child(1) {
  grid-area: label;
}
.size-edit-row .size-in {
  grid-area: size;
  text-align: center;
  font-weight: 700;
}
.size-edit-row .note-in {
  grid-area: note;
  min-height: 46px;
  font-size: 0.98rem;
}
.size-edit-row .icon-btn {
  grid-area: del;
  align-self: center;
  color: var(--muted);
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.menu-item:hover {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-2));
}
.menu-item.danger {
  color: var(--danger);
}

.switch-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.switch-item > span {
  display: flex;
  flex-direction: column;
}
.switch-item small {
  color: var(--muted);
}
.switch-item.current {
  box-shadow: inset 0 0 0 2px var(--primary);
}
.switch-item.current .icon {
  color: var(--primary);
}

.reveal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reveal-list li {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

/* ---------------------------------------------------------------- sheets */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(30, 10, 16, 0);
  transition: background 0.28s ease;
}
.sheet-backdrop.open {
  background: rgba(30, 10, 16, 0.45);
}
.sheet {
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(105%);
  transition: transform 0.42s var(--ease-out);
}
.sheet-backdrop.open .sheet {
  transform: none;
}
.sheet-grip {
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 8px auto 0;
  flex: none;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px 6px 20px;
  flex: none;
}
.sheet-title {
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
.sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 20px calc(18px + env(safe-area-inset-bottom));
}
@media (min-width: 700px) {
  .sheet-backdrop {
    align-items: center;
    padding: 24px;
  }
  .sheet {
    max-width: 480px;
    border-radius: 26px;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition:
      transform 0.36s var(--spring),
      opacity 0.2s;
  }
  .sheet.wide {
    max-width: 580px;
  }
  .sheet-backdrop.open .sheet {
    opacity: 1;
  }
  .sheet-grip {
    display: none;
  }
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 80;
  max-width: min(92vw, 520px);
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition:
    transform 0.45s var(--spring),
    opacity 0.25s;
  pointer-events: none;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .toast {
    background: #fbefe6;
    color: var(--ink);
  }
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast.error {
  background: var(--danger);
  color: #fff;
}

/* ---------------------------------------------------------------- celebration */

.pop {
  animation: pop 0.55s var(--spring);
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.88);
  }
  65% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes pop-in {
  from {
    transform: scale(0);
  }
}
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}
.confetti,
.sparkle {
  position: absolute;
  width: 9px;
  height: 14px;
  margin: -7px 0 0 -4px;
  border-radius: 2px;
  background: var(--c);
  animation: burst 0.95s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}
.sparkle {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 0;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@keyframes burst {
  0% {
    transform: translate(0, 0) rotate(0) scale(0.4);
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), calc(var(--dy) + 70px)) rotate(var(--rot)) scale(1);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------- motion preferences */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* selection ring drawn above the picture */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.tile.selected::after {
  box-shadow: inset 0 0 0 3.5px var(--primary);
}
.tile-check,
.tile-cover {
  z-index: 1;
}
.img-strip {
  scrollbar-width: none;
}
.img-strip::-webkit-scrollbar {
  display: none;
}

.list-toolbar .seg {
  flex: 1;
}
.seg-btn {
  white-space: nowrap;
}
.wish-card {
  position: relative;
}
.wish-card.is-claimed {
  box-shadow: var(--shadow);
}
.wish-card.is-claimed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--claimed) 60%, transparent);
}

.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.action-grid .btn {
  min-width: 0;
  padding: 0 12px;
  gap: 6px;
  font-size: 0.98rem;
}

/* ---------------------------------------------------------------- language toggle */

.banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.lang-btn {
  min-width: 40px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.lang-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.lang-row {
  display: flex;
  justify-content: center;
}
.signed-in {
  padding-right: 6px;
}

.signed-in .who {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.who-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.action-grid .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}
@media (max-width: 400px) {
  .signed-in {
    font-size: 0.9rem;
    padding-left: 12px;
  }
  .signed-in .link-btn {
    padding: 10px 4px;
  }
}

/* ---------------------------------------------------------------- garment catalog: size picker */

.size-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.size-systems {
  overflow-x: auto;
  scrollbar-width: none;
}
.size-systems .seg-btn {
  flex: 1 0 auto;
  padding: 0 12px;
  font-size: 0.92rem;
}
.size-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}
.size-chip {
  min-height: 48px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.18s var(--spring);
}
.size-chip:active {
  transform: scale(0.94);
}
.size-chip[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.other-chip {
  align-self: flex-start;
  border-style: dashed;
  font-weight: 650;
  padding: 0 16px;
}
.other-chip[aria-pressed="true"] {
  border-style: solid;
}
.composite {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.composite-preview {
  min-width: 84px;
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 14px;
  background: var(--claimed-bg);
  color: var(--claimed);
  font-weight: 850;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.composite-preview:empty::before {
  content: "–";
  opacity: 0.5;
}

/* ---------------------------------------------------------------- garment catalog: type picker */

.input.search {
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7076' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 20px;
}
.type-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.type-group {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
}
.type-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.type-group summary::-webkit-details-marker {
  display: none;
}
.type-group summary small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 650;
}
.type-group summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease-out);
}
.type-group[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  padding: 0 8px 10px;
  animation: rise 0.3s var(--ease-out) both;
}
.type-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.type-btn[aria-current="true"] {
  box-shadow: inset 0 0 0 2px var(--primary);
}
.type-btn[aria-current="true"] .icon {
  color: var(--primary);
  margin-left: auto;
}
.type-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.type-name {
  flex: 1;
  min-width: 0;
}
.type-taken {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--claimed);
  white-space: nowrap;
}
.type-emoji {
  font-size: 1.35rem;
  line-height: 1;
  flex: none;
  width: 1.6rem;
  text-align: center;
}
.custom-type {
  border: 1.5px dashed color-mix(in srgb, var(--primary) 40%, transparent);
}
.no-results {
  padding: 8px 4px;
}

/* ---------------------------------------------------------------- usual sizes editor */

.size-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.size-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 12px 8px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  animation: rise 0.35s var(--ease-out) both;
}
.size-item > .icon {
  transform: rotate(180deg);
  color: var(--muted);
  flex: none;
}
.size-item-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.size-item-text small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.size-item-size {
  font-weight: 850;
  font-size: 1.1rem;
  color: var(--claimed);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sizes-none {
  text-align: center;
  padding: 10px;
}
.btn.danger-text {
  color: var(--danger);
}

/* wish editor: garment button */
.garment-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.garment-btn.empty .garment-btn-name {
  color: var(--muted);
  font-weight: 550;
}
.garment-btn-name {
  flex: 1;
}
.garment-btn .icon {
  color: var(--muted);
}
.review .clothing-fields .size-chip {
  background: var(--surface);
}
.review .clothing-fields .size-chip[aria-pressed="true"] {
  background: var(--pine);
}

.sheet:focus {
  outline: none;
}

/* ---------------------------------------------------------------- catalog v2: regional systems */

/* More than three systems: a horizontally scrollable row of pills (iOS uses capsules there too). */
.pill-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 2px 20px 4px;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}
.pill-tabs::-webkit-scrollbar {
  display: none;
}
.pill-tab {
  flex: none;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.18s var(--spring);
}
.pill-tab:active {
  transform: scale(0.94);
}
.pill-tab[aria-pressed="true"] {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary));
  color: #fff;
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--primary) 70%, transparent);
}
.size-chips.wide {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

/* ≈ line: the same size in the garment's other systems */
.equiv {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: var(--claimed);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  animation: rise 0.3s var(--ease-out) both;
}
.equiv-slot:empty {
  display: none;
}
.equiv.on-dark {
  color: #d6efe5;
  font-size: 0.82rem;
  font-weight: 650;
  justify-content: flex-end;
  text-align: right;
}
.clothing .equiv {
  font-size: 0.9rem;
}
.clothing-fields .pill-tabs,
.size-picker .pill-tabs {
  margin: 0 -14px;
  padding: 2px 14px 4px;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent);
}
