:root {
  --paper: #efe9dd;
  --paper-light: #f8f4ec;
  --ink: #29302d;
  --ink-soft: #4e5952;
  --muted: #778079;
  --stone-blue: #587989;
  --cinnabar: #a75a48;
  --orpiment: #c3a457;
  --moss: #6f836c;
  --mineral-dark: #263b3e;
  --line: rgba(41, 48, 45, 0.14);
  --line-strong: rgba(41, 48, 45, 0.24);
  --glass: rgba(248, 244, 236, 0.72);
  --shadow: 0 22px 70px rgba(38, 59, 62, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #d8ded4;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(88, 121, 137, 0.24), transparent 36%),
    linear-gradient(300deg, rgba(111, 131, 108, 0.26), transparent 32%),
    linear-gradient(180deg, #d8ded4, var(--paper) 48%, #dde2d5);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(41, 48, 45, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 48, 45, 0.035) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--stone-blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.28;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.prototype-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 0 auto;
  padding: 18px 0;
}

.public-release .prototype-shell {
  width: min(430px, calc(100% - 32px));
  grid-template-columns: minmax(0, 430px);
  justify-content: center;
}

.public-release .phone-stage {
  position: relative;
  top: auto;
}

.phone-stage {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(41, 48, 45, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(248, 244, 236, 0.94), rgba(239, 233, 221, 0.96)),
    var(--paper);
  box-shadow: var(--shadow);
}

.app-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  background: rgba(248, 244, 236, 0.86);
  border-bottom: 1px solid rgba(41, 48, 45, 0.08);
  backdrop-filter: blur(18px);
}

.brand-button {
  min-width: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.brand-button strong,
.brand-button small {
  display: block;
}

.brand-button strong {
  font-size: 16px;
}

.brand-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.brand-seal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: var(--paper-light);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), transparent 36%),
    var(--stone-blue);
  font-family: "STKaiti", KaiTi, serif;
  font-size: 22px;
  font-weight: 700;
}

.soft-button,
.primary-button,
.text-link,
.emotion-chip,
.bottom-tab {
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.soft-button,
.primary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.soft-button {
  color: var(--stone-blue);
  background: rgba(88, 121, 137, 0.1);
  border-color: rgba(88, 121, 137, 0.16);
}

.soft-button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.primary-button {
  width: 100%;
  color: var(--paper-light);
  background: var(--stone-blue);
  border-color: rgba(38, 59, 62, 0.18);
  box-shadow: 0 12px 28px rgba(88, 121, 137, 0.24);
}

.soft-button:hover,
.primary-button:hover,
.emotion-chip:hover,
.bottom-tab:hover {
  transform: translateY(-1px);
}

.text-link {
  min-height: 34px;
  border: 0;
  display: inline-flex;
  align-items: center;
  margin: 6px 0 14px;
  padding: 0;
  color: var(--stone-blue);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.phone-screen {
  position: absolute;
  inset: 68px 0 66px;
  display: none;
  overflow-y: auto;
  padding: 16px 14px 20px;
  scrollbar-width: thin;
}

.phone-screen.active {
  display: block;
  animation: screenIn 520ms ease both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.collection-hero {
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.hero-copy-panel {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--paper-light);
  background:
    linear-gradient(160deg, rgba(38, 59, 62, 0.9), rgba(88, 121, 137, 0.66)),
    var(--hero-bg, url("https://images.unsplash.com/photo-1528360983277-13d401cdc186?w=900&h=1100&fit=crop&auto=format")) center/cover;
}

.hero-copy-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(248, 244, 236, 0.11) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, transparent, rgba(38, 59, 62, 0.36));
  opacity: 0.66;
  pointer-events: none;
}

.vertical-kicker {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-bottom: auto;
  color: rgba(248, 244, 236, 0.76);
  font-size: 12px;
  line-height: 1.4;
  writing-mode: vertical-rl;
}

.hero-copy-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  animation: heroTextIn 1100ms cubic-bezier(0.18, 0.84, 0.2, 1) both;
}

.hero-kicker {
  color: rgba(248, 244, 236, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.collection-hero h1 {
  max-width: 8em;
  font-size: 27px;
}

.hero-copy-stack p {
  max-width: 18em;
  margin-bottom: 0;
  color: rgba(248, 244, 236, 0.78);
  font-size: 13px;
  line-height: 1.8;
}

.hero-copy-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.hero-copy-meta span {
  border: 1px solid rgba(248, 244, 236, 0.22);
  border-radius: var(--radius);
  padding: 5px 8px;
  color: rgba(248, 244, 236, 0.84);
  background: rgba(248, 244, 236, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.hero-enter-button {
  width: fit-content;
  min-height: 36px;
  border: 1px solid rgba(248, 244, 236, 0.28);
  border-radius: var(--radius);
  padding: 8px 11px;
  color: var(--mineral-dark);
  background: rgba(248, 244, 236, 0.88);
  font-weight: 800;
  transition:
    transform 260ms ease,
    background-color 260ms ease;
}

.hero-enter-button:hover {
  background: var(--paper-light);
  transform: translateY(-1px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 16px 34px rgba(41, 48, 45, 0.12);
  cursor: grab;
  touch-action: pan-y;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroImageIn 1400ms cubic-bezier(0.18, 0.84, 0.2, 1) both;
}

.hero-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(41, 48, 45, 0.12), transparent 34%, rgba(41, 48, 45, 0.74)),
    linear-gradient(90deg, rgba(248, 244, 236, 0.16) 0 1px, transparent 1px 18px);
}

.hero-slide-number,
.hero-slide-caption {
  position: absolute;
  z-index: 1;
  color: var(--paper-light);
}

.hero-slide-number {
  top: 10px;
  left: 10px;
  color: rgba(248, 244, 236, 0.74);
  font-size: 11px;
  font-weight: 800;
}

.hero-slide-caption {
  right: 10px;
  bottom: 58px;
  left: 10px;
  font-size: 13px;
  line-height: 1.5;
  animation: heroCaptionIn 900ms ease both;
}

.hero-controls {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  z-index: 2;
  display: grid;
  justify-items: center;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: min(148px, 100%);
  border: 1px solid rgba(248, 244, 236, 0.16);
  border-radius: 999px;
  padding: 6px 7px;
  background: rgba(38, 59, 62, 0.34);
  backdrop-filter: blur(10px);
}

.hero-dot {
  position: relative;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  display: block;
  overflow: hidden;
  padding: 0;
  background: rgba(248, 244, 236, 0.32);
  transition:
    width 320ms ease,
    background-color 320ms ease;
}

.hero-dot.active {
  width: 42px;
  background: rgba(248, 244, 236, 0.32);
}

.hero-dot.active::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: var(--paper-light);
  transform-origin: left center;
  animation: heroDotProgress 7200ms linear both;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(1.08) translateX(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes heroDotProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes heroCaptionIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emotion-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.emotion-chip {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 6px 12px;
  color: var(--muted);
  background: rgba(248, 244, 236, 0.8);
  border-color: var(--line);
  font-size: 13px;
  font-weight: 700;
}

.emotion-chip.active {
  color: var(--paper-light);
  background: var(--cinnabar);
  border-color: rgba(167, 90, 72, 0.42);
}

.gift-list {
  display: grid;
  gap: 12px;
}

.gift-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  background: rgba(248, 244, 236, 0.78);
  box-shadow: 0 14px 34px rgba(41, 48, 45, 0.08);
  animation: giftCardIn 720ms ease both;
  transition:
    border-color 280ms ease,
    transform 280ms ease,
    box-shadow 280ms ease;
}

.gift-card:hover,
.gift-card.is-featured {
  border-color: rgba(88, 121, 137, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(41, 48, 45, 0.12);
}

.gift-card.is-featured {
  background:
    linear-gradient(90deg, rgba(88, 121, 137, 0.12), transparent 42%),
    rgba(248, 244, 236, 0.86);
}

@keyframes giftCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gift-image {
  min-height: 162px;
  background-color: var(--moss);
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 13px;
}

.gift-copy header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.gift-copy strong {
  min-width: 0;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gift-copy p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.gift-copy small,
.selected-meta,
.price-row span,
.record-card small,
.order-card small {
  color: var(--muted);
  font-size: 12px;
}

.gift-price {
  flex: 0 0 auto;
  color: var(--cinnabar);
  font-weight: 700;
  white-space: nowrap;
}

.gift-copy button {
  width: fit-content;
  min-height: 34px;
  padding: 7px 10px;
  box-shadow: none;
  font-size: 13px;
}

.selected-gift {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--glass);
}

.selected-image {
  height: 220px;
  background: var(--mineral-dark);
}

.selected-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-body {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.selected-body h2 {
  font-size: 24px;
}

.selected-body p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.selected-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.selected-meta span {
  border: 1px solid rgba(88, 121, 137, 0.18);
  border-radius: var(--radius);
  padding: 5px 8px;
  color: var(--stone-blue);
  background: rgba(88, 121, 137, 0.08);
}

.compose-form,
.address-form,
.verify-card-form,
.card-import-form {
  display: grid;
  gap: 14px;
}

fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  background: rgba(248, 244, 236, 0.76);
}

legend {
  padding: 0 7px;
  color: var(--stone-blue);
  font-weight: 700;
}

.preset-list {
  display: grid;
  gap: 8px;
}

.preset-button {
  min-height: 42px;
  border: 1px solid rgba(88, 121, 137, 0.16);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.46);
  text-align: left;
}

.preset-button.active {
  border-color: rgba(195, 164, 87, 0.55);
  color: var(--ink);
  background: rgba(195, 164, 87, 0.14);
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

.flow-actions {
  display: grid;
  gap: 10px;
}

.envelope-preview {
  display: grid;
  place-items: center;
  min-height: 390px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(88, 121, 137, 0.1), transparent),
    rgba(248, 244, 236, 0.74);
}

.mineral-envelope {
  position: relative;
  width: min(310px, 100%);
  min-height: 292px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(88, 121, 137, 0.28);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--paper-light);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(28deg, transparent 0 44%, rgba(195, 164, 87, 0.42) 45% 55%, transparent 56%),
    var(--stone-blue);
  box-shadow: 0 18px 46px rgba(38, 59, 62, 0.22);
}

.mineral-envelope::before,
.mineral-envelope::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.mineral-envelope::before {
  inset: 12px;
  border: 1px solid rgba(248, 244, 236, 0.38);
  border-radius: var(--radius);
}

.mineral-envelope::after {
  right: -40px;
  bottom: 38px;
  width: 190px;
  height: 56px;
  background: rgba(167, 90, 72, 0.48);
  transform: rotate(-18deg);
  filter: blur(0.4px);
}

.envelope-line {
  width: 68px;
  height: 2px;
  background: rgba(248, 244, 236, 0.68);
}

.mineral-envelope strong {
  z-index: 1;
  max-width: 8em;
  text-align: center;
  font-size: 30px;
  line-height: 1.35;
}

.mineral-envelope p {
  z-index: 1;
  max-width: 15em;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.9;
}

.mineral-envelope small {
  z-index: 1;
  color: rgba(248, 244, 236, 0.78);
}

.payment-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(248, 244, 236, 0.86);
  box-shadow: 0 16px 38px rgba(38, 59, 62, 0.1);
  backdrop-filter: blur(18px);
}

.payment-confirm-card {
  min-height: 330px;
  border: 1px solid rgba(88, 121, 137, 0.18);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 13px;
  margin-bottom: 14px;
  padding: 20px;
  color: var(--paper-light);
  background:
    linear-gradient(180deg, rgba(38, 59, 62, 0.08), rgba(38, 59, 62, 0.78)),
    url("https://images.unsplash.com/photo-1494438639946-1ebd1d20bf85?w=900&h=1200&fit=crop&auto=format") center/cover;
  box-shadow: 0 18px 46px rgba(38, 59, 62, 0.16);
}

.payment-confirm-card > span {
  width: fit-content;
  border: 1px solid rgba(248, 244, 236, 0.34);
  border-radius: var(--radius);
  padding: 6px 9px;
  color: rgba(248, 244, 236, 0.78);
  background: rgba(38, 59, 62, 0.34);
  font-size: 12px;
}

.payment-confirm-card h2 {
  color: var(--paper-light);
  font-size: 30px;
}

.payment-confirm-card p {
  margin-bottom: 0;
  color: rgba(248, 244, 236, 0.84);
  line-height: 1.9;
}

.payment-confirm-card .price-row {
  color: rgba(248, 244, 236, 0.84);
}

.payment-methods {
  display: grid;
  gap: 8px;
}

.payment-method {
  min-height: 58px;
  border: 1px solid rgba(88, 121, 137, 0.15);
  border-radius: var(--radius);
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  text-align: left;
}

.payment-method.active {
  border-color: rgba(88, 121, 137, 0.42);
  background: rgba(88, 121, 137, 0.12);
}

.payment-method small {
  color: var(--muted);
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.price-row strong {
  text-align: right;
}

.share-card,
.receive-hero,
.logistics-panel,
.record-card,
.order-card,
.ops-panel,
.ops-grid article,
.batch-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}

.share-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px;
  color: var(--paper-light);
  background:
    linear-gradient(180deg, rgba(41, 48, 45, 0.04), rgba(41, 48, 45, 0.7)),
    url("https://images.unsplash.com/photo-1465146344425-f00d5f5c8f07?w=900&h=1200&fit=crop&auto=format") center/cover;
}

.share-card.is-open {
  animation: unfold 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes unfold {
  from {
    clip-path: inset(42% 4% 42%);
    opacity: 0;
  }

  to {
    clip-path: inset(0 0 0);
    opacity: 1;
  }
}

.share-card span {
  width: fit-content;
  border: 1px solid rgba(248, 244, 236, 0.34);
  border-radius: var(--radius);
  padding: 6px 9px;
  background: rgba(38, 59, 62, 0.34);
  font-size: 12px;
}

.share-card h2 {
  max-width: 9em;
  color: var(--paper-light);
  font-size: 30px;
}

.share-card p {
  margin-bottom: 0;
  color: rgba(248, 244, 236, 0.82);
  line-height: 1.7;
}

.share-link {
  border: 1px solid rgba(248, 244, 236, 0.28);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(248, 244, 236, 0.16);
  color: rgba(248, 244, 236, 0.82);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.receive-hero {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 20px;
  color: var(--paper-light);
  background:
    linear-gradient(180deg, rgba(38, 59, 62, 0.04), rgba(38, 59, 62, 0.76)),
    var(--receive-image, url("https://images.unsplash.com/photo-1544787219-7f47ccb76574?w=900&h=1200&fit=crop&auto=format")) center/cover;
  transition: transform 680ms ease, box-shadow 680ms ease;
}

.receive-hero::before,
.receive-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.receive-hero::before {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(248, 244, 236, 0.08), transparent 36%),
    linear-gradient(28deg, transparent 0 45%, rgba(195, 164, 87, 0.28) 46% 54%, transparent 55%);
  opacity: 0.72;
}

.receive-hero::after {
  top: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(248, 244, 236, 0.44);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(248, 244, 236, 0.26), transparent 58%),
    rgba(167, 90, 72, 0.82);
  box-shadow: 0 12px 24px rgba(38, 59, 62, 0.2);
}

.receive-hero > * {
  position: relative;
  z-index: 1;
}

.receive-hero.is-unpacking {
  animation: receiveBreath 2360ms ease both;
}

.receive-hero.revealed {
  animation: receiveReveal 1320ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.receive-hero.revealed::after {
  animation: receiveSealLift 1320ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.receive-hero span {
  color: rgba(248, 244, 236, 0.72);
  font-size: 13px;
}

.receive-hero h2 {
  color: var(--paper-light);
  font-size: 30px;
}

.receive-hero p {
  margin-bottom: 0;
  color: rgba(248, 244, 236, 0.84);
  line-height: 1.9;
}

.receive-hero.revealed p {
  animation: handwriting 1800ms cubic-bezier(0.16, 0.86, 0.2, 1) 260ms both;
  overflow: hidden;
  white-space: normal;
}

@keyframes handwriting {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.28;
  }

  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

@keyframes receiveBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 16px 34px rgba(41, 48, 45, 0.12);
  }

  44% {
    transform: translateY(-2px) scale(1.012);
    box-shadow: 0 24px 52px rgba(38, 59, 62, 0.18);
  }
}

@keyframes receiveReveal {
  from {
    transform: translateY(14px) scale(0.985);
    filter: saturate(0.86);
  }

  to {
    transform: translateY(0) scale(1);
    filter: saturate(1.04);
  }
}

@keyframes receiveSealLift {
  from {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-34px) rotate(-10deg) scale(0.86);
  }
}

.unpack-panel {
  position: sticky;
  right: -14px;
  bottom: -20px;
  left: -14px;
  display: grid;
  gap: 10px;
  margin: 0 -14px -20px;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(88, 121, 137, 0.14);
  background: rgba(248, 244, 236, 0.92);
  box-shadow: 0 -18px 34px rgba(38, 59, 62, 0.1);
  backdrop-filter: blur(18px);
}

.unpack-ceremony {
  min-height: 104px;
  display: grid;
  place-items: center;
}

.unpack-envelope {
  position: relative;
  width: min(236px, 82%);
  min-height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(88, 121, 137, 0.18);
  border-radius: var(--radius);
  color: var(--paper-light);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(28deg, transparent 0 45%, rgba(195, 164, 87, 0.36) 46% 54%, transparent 55%),
    var(--stone-blue);
  box-shadow: 0 18px 36px rgba(38, 59, 62, 0.18);
  transform-origin: center bottom;
}

.unpack-envelope::before,
.unpack-envelope::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.unpack-envelope::before {
  inset: 10px;
  border: 1px solid rgba(248, 244, 236, 0.34);
  border-radius: 6px;
}

.unpack-envelope::after {
  inset: 0;
  background:
    linear-gradient(150deg, transparent 0 48%, rgba(248, 244, 236, 0.14) 49% 51%, transparent 52%),
    linear-gradient(30deg, transparent 0 48%, rgba(248, 244, 236, 0.16) 49% 51%, transparent 52%);
  transform-origin: top center;
}

.unpack-envelope span {
  position: absolute;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 244, 236, 0.44);
  border-radius: 999px;
  background: rgba(167, 90, 72, 0.82);
  box-shadow: 0 10px 18px rgba(38, 59, 62, 0.18);
}

.unpack-envelope strong {
  position: relative;
  z-index: 1;
  max-width: 9em;
  padding-top: 34px;
  text-align: center;
  font-size: 18px;
  line-height: 1.35;
}

.unpack-copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.unpack-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.unpack-copy strong {
  font-size: 17px;
}

.unpack-copy small {
  color: var(--muted);
  line-height: 1.65;
}

.unpack-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.unpack-checks span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 121, 137, 0.14);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  font-weight: 800;
}

.unpack-panel.is-unpacking .unpack-envelope {
  animation: unpackEnvelopeOpen 2360ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.unpack-panel.is-unpacking .unpack-envelope::after {
  animation: unpackEnvelopeFlap 2360ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.unpack-panel.is-unpacking .unpack-envelope span {
  animation: unpackSealBreak 2360ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.unpack-panel.is-unpacking .unpack-checks span {
  animation: unpackCheckOn 560ms ease both;
}

.unpack-panel.is-unpacking .unpack-checks span:nth-child(2) {
  animation-delay: 620ms;
}

.unpack-panel.is-unpacking .unpack-checks span:nth-child(3) {
  animation-delay: 1240ms;
}

.unpack-panel.is-unpacking button {
  opacity: 0.78;
}

.unpack-panel button:disabled {
  cursor: wait;
}

@keyframes unpackEnvelopeOpen {
  0% {
    transform: translateY(8px) scale(0.96);
    clip-path: inset(46% 6% 46%);
  }

  36% {
    transform: translateY(0) scale(1);
    clip-path: inset(22% 4% 22%);
  }

  72% {
    transform: translateY(-4px) scale(1.012);
    clip-path: inset(0);
  }

  100% {
    transform: translateY(0) scale(1);
    clip-path: inset(0);
  }
}

@keyframes unpackEnvelopeFlap {
  0%,
  42% {
    opacity: 1;
    transform: rotateX(0deg);
  }

  100% {
    opacity: 0.66;
    transform: rotateX(58deg) translateY(-10px);
  }
}

@keyframes unpackSealBreak {
  0%,
  48% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.72);
  }
}

@keyframes unpackCheckOn {
  from {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.34);
    transform: translateY(6px);
  }

  to {
    color: var(--stone-blue);
    background: rgba(88, 121, 137, 0.12);
    transform: translateY(0);
  }
}

.receive-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.receive-stepper span {
  min-height: 32px;
  border: 1px solid rgba(88, 121, 137, 0.14);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  font-weight: 700;
}

.receive-stepper span.active {
  color: var(--paper-light);
  background: var(--stone-blue);
  border-color: rgba(88, 121, 137, 0.4);
}

.receive-stepper span.done {
  color: var(--stone-blue);
  background: rgba(88, 121, 137, 0.12);
}

.receive-proof-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(88, 121, 137, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(88, 121, 137, 0.13), transparent 52%),
    rgba(248, 244, 236, 0.84);
  animation: receiveProofIn 780ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.receive-proof-panel header {
  display: grid;
  gap: 4px;
}

.receive-proof-panel header span {
  color: var(--stone-blue);
  font-size: 12px;
  font-weight: 800;
}

.receive-proof-panel header strong {
  font-size: 18px;
}

.receive-proof-panel header small,
.receive-proof-track small {
  color: var(--muted);
  line-height: 1.6;
}

.receive-proof-track {
  display: grid;
  gap: 8px;
}

.receive-proof-track span {
  position: relative;
  min-height: 58px;
  display: grid;
  gap: 2px;
  padding: 8px 10px 8px 32px;
  border: 1px solid rgba(88, 121, 137, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.32);
}

.receive-proof-track span::before {
  position: absolute;
  top: 13px;
  left: 10px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(88, 121, 137, 0.34);
  border-radius: 999px;
  content: "";
  background: rgba(248, 244, 236, 0.9);
}

.receive-proof-track span.done::before,
.receive-proof-track span.active::before {
  border-color: var(--stone-blue);
  background: var(--stone-blue);
  box-shadow: 0 0 0 5px rgba(88, 121, 137, 0.1);
}

.receive-proof-track span.active {
  border-color: rgba(195, 164, 87, 0.34);
  background: rgba(195, 164, 87, 0.1);
}

.receive-proof-track b {
  font-size: 13px;
}

@keyframes receiveProofIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verify-card-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(195, 164, 87, 0.12), transparent),
    rgba(248, 244, 236, 0.78);
}

.verify-card-form h2,
.verify-card-form p {
  margin-bottom: 0;
}

.verify-card-form p,
.verify-card-form small,
.security-note span,
.imported-card code {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.verify-card-form small {
  display: block;
}

.address-form,
.logistics-panel {
  padding: 14px;
}

.address-form:not(.hidden) {
  animation: addressFormIn 900ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.address-form h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.logistics-panel {
  display: grid;
  gap: 12px;
}

.logistics-panel h2 {
  font-size: 21px;
}

@keyframes addressFormIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 1px;
  content: "";
  background: rgba(88, 121, 137, 0.28);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border: 2px solid var(--stone-blue);
  border-radius: 50%;
  background: var(--paper-light);
}

.timeline-row:first-child .timeline-dot {
  background: var(--stone-blue);
}

.timeline-row strong,
.timeline-row small {
  display: block;
}

.timeline-row strong {
  font-size: 14px;
  line-height: 1.6;
}

.timeline-row small {
  color: var(--muted);
  font-size: 12px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head p,
.ops-header p {
  margin-bottom: 5px;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 700;
}

.record-list,
.order-list,
.batch-list {
  display: grid;
  gap: 10px;
}

.record-card,
.order-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
}

.record-card {
  background: var(--glass);
}

.record-card:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 121, 137, 0.28);
}

.record-card header,
.order-card header,
.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.status-pill {
  min-height: 28px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  color: var(--stone-blue);
  background: rgba(88, 121, 137, 0.12);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.good {
  color: var(--moss);
  background: rgba(111, 131, 108, 0.16);
}

.status-pill.warn {
  color: #9a6e1f;
  background: rgba(195, 164, 87, 0.2);
}

.gift-ritual {
  position: absolute;
  inset: 68px 0 66px;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(38, 59, 62, 0.22), rgba(38, 59, 62, 0.34)),
    var(--ritual-image, url("https://images.unsplash.com/photo-1465146344425-f00d5f5c8f07?w=900&h=1200&fit=crop&auto=format")) center/cover;
  pointer-events: none;
}

.gift-ritual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(248, 244, 236, 0.72), rgba(248, 244, 236, 0.2)),
    rgba(38, 59, 62, 0.18);
  backdrop-filter: blur(8px);
}

.gift-ritual-card {
  position: relative;
  width: min(308px, 100%);
  min-height: 236px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(88, 121, 137, 0.26);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--paper-light);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(28deg, transparent 0 45%, rgba(195, 164, 87, 0.36) 46% 54%, transparent 55%),
    var(--stone-blue);
  box-shadow: 0 26px 58px rgba(38, 59, 62, 0.28);
  transform-origin: center bottom;
  animation: ritualCardIn 1500ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.gift-ritual-card::before,
.gift-ritual-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.gift-ritual-card::before {
  inset: 12px;
  border: 1px solid rgba(248, 244, 236, 0.36);
  border-radius: var(--radius);
}

.gift-ritual-card::after {
  top: 26px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(248, 244, 236, 0.44);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(248, 244, 236, 0.28), transparent 58%),
    rgba(167, 90, 72, 0.82);
  box-shadow: 0 10px 18px rgba(38, 59, 62, 0.18);
}

.gift-ritual-card span,
.gift-ritual-card strong,
.gift-ritual-card small {
  position: relative;
  z-index: 1;
  text-align: center;
}

.gift-ritual-card span {
  margin-top: 42px;
  color: rgba(248, 244, 236, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.gift-ritual-card strong {
  max-width: 8em;
  font-size: 27px;
  line-height: 1.34;
}

.gift-ritual-card small {
  color: rgba(248, 244, 236, 0.76);
  line-height: 1.7;
}

.gift-ritual.closing .gift-ritual-card {
  animation: ritualCardOut 820ms ease both;
}

@keyframes ritualCardIn {
  0% {
    clip-path: inset(49% 10% 49%);
    opacity: 0;
    transform: translateY(24px) scale(0.93);
  }

  46% {
    clip-path: inset(28% 7% 28%);
    opacity: 1;
    transform: translateY(8px) scale(0.98);
  }

  78% {
    clip-path: inset(0 0 0);
    opacity: 1;
    transform: translateY(0) scale(1.012);
  }

  100% {
    clip-path: inset(0 0 0);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ritualCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-18px) scale(1.018);
  }
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(41, 48, 45, 0.1);
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(16px);
}

.bottom-tab {
  min-height: 50px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.bottom-tab span {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(88, 121, 137, 0.1);
  font-size: 12px;
  line-height: 1;
}

.bottom-tab strong {
  font-size: 12px;
  line-height: 1.1;
}

.bottom-tab.active {
  color: var(--stone-blue);
  background: transparent;
}

.bottom-tab.active span {
  color: var(--paper-light);
  background: var(--stone-blue);
}

.tab-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  border: 1.5px solid rgba(248, 244, 236, 0.96);
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: #e84b3c;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(232, 75, 60, 0.26);
}

.ops-stage {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.ops-header {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(41, 48, 45, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--paper-light);
  background:
    linear-gradient(135deg, rgba(38, 59, 62, 0.92), rgba(88, 121, 137, 0.76)),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?w=1200&h=600&fit=crop&auto=format") center/cover;
  box-shadow: var(--shadow);
}

.ops-header p {
  color: rgba(248, 244, 236, 0.7);
}

.ops-header h2 {
  color: var(--paper-light);
  font-size: 28px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ops-grid article,
.ops-metric-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(248, 244, 236, 0.78);
}

.ops-metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
}

.ops-metric-card.active {
  border-color: rgba(88, 121, 137, 0.36);
  background: rgba(88, 121, 137, 0.12);
}

.ops-grid span {
  font-size: 28px;
  font-weight: 700;
}

.ops-grid small {
  color: var(--muted);
}

.ops-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(248, 244, 236, 0.74);
  box-shadow: 0 14px 42px rgba(41, 48, 45, 0.08);
}

.ops-detail-panel {
  background:
    linear-gradient(180deg, rgba(88, 121, 137, 0.08), transparent),
    rgba(248, 244, 236, 0.74);
}

.ops-detail-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.ops-detail-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.38);
}

.ops-detail-row strong,
.ops-detail-row small,
.ops-detail-row code {
  display: block;
}

.ops-detail-row small,
.empty-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.ops-detail-row code {
  grid-column: 1 / -1;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.panel-title h3 {
  font-size: 17px;
}

.batch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.38);
}

.card-import-form textarea {
  min-height: 136px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.security-note {
  border: 1px dashed rgba(88, 121, 137, 0.28);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  background: rgba(88, 121, 137, 0.07);
}

.security-note strong {
  color: var(--stone-blue);
  font-size: 13px;
}

.import-result-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.imported-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.38);
}

.imported-card.is-used {
  opacity: 0.72;
}

.imported-card strong,
.imported-card small,
.imported-card code {
  display: block;
}

.imported-card code {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.batch-card strong,
.batch-card small {
  display: block;
}

.batch-card small {
  margin-top: 3px;
  color: var(--muted);
}

.copy-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.auth-dialog {
  width: min(380px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.auth-dialog::backdrop {
  background: rgba(38, 59, 62, 0.36);
}

.auth-dialog form {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.auth-dialog h2 {
  font-size: 21px;
}

.auth-dialog p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.record-dialog form {
  max-height: min(82vh, 720px);
  overflow: auto;
}

.record-detail {
  display: grid;
  gap: 12px;
}

.record-detail-image {
  height: 170px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mineral-dark);
}

.record-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-detail > p:first-of-type {
  margin-bottom: -6px;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 700;
}

.detail-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-lines div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(88, 121, 137, 0.06);
}

.detail-lines span {
  color: var(--muted);
  font-size: 12px;
}

.detail-lines strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.detail-story {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.timeline.mini {
  padding-top: 2px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 44px));
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--paper-light);
  background: var(--mineral-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .prototype-shell {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .phone-stage {
    position: relative;
    top: auto;
    width: min(430px, 100%);
    height: 100vh;
    min-height: 100vh;
    margin: 0 auto;
    border-radius: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .ops-stage {
    display: none;
  }
}

@media (max-width: 480px) {
  .collection-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy-panel {
    min-height: 220px;
  }

  .hero-card {
    height: 150px;
    min-height: 150px;
  }

  .gift-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .gift-image {
    min-height: 176px;
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }
}

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