:root {
  color-scheme: light;
  --hero-progress: 0;
  --hero-fade: 1;
  --hero-lift: 0px;
  --hero-scale: 1;
  --hero-eyebrow-drift: 0px;
  --hero-eyebrow-scale: 1;
  --hero-title-drift: 0px;
  --hero-copy-drift: 0px;
  --hero-eyebrow-fade: 1;
  --hero-title-scale: 1;
  --hero-copy-scale: 1;
  --hero-title-fade: 1;
  --hero-copy-fade: 1;
  --hero-bg-drift: 0px;
  --hero-glow-drift: 0px;
  --hero-rule-drift: 0px;
  --scroll-cue-opacity: 1;
  --scroll-cue-drift: 0px;
  --content-head-shift: 44px;
  --content-cards-shift: 68px;
  --content-form-shift: 52px;
  --content-head-scale: 0.965;
  --content-cards-scale: 0.94;
  --content-form-scale: 0.955;
  --content-head-opacity: 0;
  --content-cards-opacity: 0;
  --content-form-opacity: 0;
  --bg: #f8fbff;
  --panel: #ffffff;
  --ink: #20242d;
  --muted: #6c7484;
  --line: #e7edf5;
  --accent: #f05f92;
  --accent-strong: #c83370;
  --accent-soft: #fff0f7;
  --blue: #4f8df7;
  --navy: #27344f;
  --gold: #f6bd60;
  --rose: #f05f92;
  --mint: #41c7b9;
  --warn: #c66b12;
  --danger: #b42318;
  --shadow: 0 14px 32px rgba(81, 96, 124, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 216, 236, 0.78), transparent 26rem),
    radial-gradient(circle at 88% 24%, rgba(214, 234, 255, 0.86), transparent 28rem),
    radial-gradient(circle at 54% 78%, rgba(222, 249, 245, 0.8), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 42%, #fff9fd 74%, #ffffff 100%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid rgba(231, 237, 245, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
nav,
.album-title,
.album-title h3 {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7fb, #eef8ff);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  object-position: center;
}

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

h1 {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.topbar p {
  margin-top: 4px;
  font-size: 13px;
}

.topbar p,
.section-head span,
.muted {
  color: var(--muted);
}

nav,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  transform: translateZ(0);
  transition:
    background-color 180ms linear,
    border-color 180ms linear,
    box-shadow 180ms linear,
    color 180ms linear,
    opacity 180ms linear,
    transform 180ms linear;
}

.nav,
.tab,
.ghost {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.topbar .nav {
  min-width: 132px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 900;
}

.admin-route .topbar {
  justify-content: center;
}

.admin-route .topbar nav {
  display: none;
}

.admin-route .brand {
  width: min(520px, calc(100% - 32px));
}

.nav.active,
.tab.active,
.primary {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
}

.primary {
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
  min-width: 132px;
  box-shadow: 0 10px 22px rgba(240, 95, 146, 0.18);
}

.small {
  min-height: 36px;
  min-width: 104px;
  padding: 0 12px;
  font-size: 14px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary:hover {
  background: linear-gradient(135deg, #ff6fa0, #5b98ff);
  box-shadow: 0 14px 28px rgba(240, 95, 146, 0.23);
  transform: translateY(-1px);
}

.primary:active,
.nav:active,
.tab:active,
.ghost:active {
  transform: translateY(0) scale(0.985);
}

main {
  width: 100%;
  margin: 0 auto 56px;
}

#lookup.active {
  display: grid;
}

.lookup-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 24px);
  justify-items: center;
  width: min(560px, calc(100% - 32px));
  margin: clamp(32px, 7vw, 74px) auto 0;
}

.lookup-title,
.lookup-panel {
  min-width: 0;
}

.lookup-title {
  width: 100%;
  text-align: center;
}

.lookup-title h2 {
  margin-top: 8px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.1;
}

.hero-runway {
  position: relative;
  height: clamp(1800px, 260svh, 3000px);
  margin-bottom: clamp(18px, 4vw, 42px);
}

.hero {
  position: sticky;
  top: 68px;
  margin-bottom: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(520px, calc(100svh - 74px), 760px);
  padding: clamp(52px, 8vw, 92px) clamp(20px, 6vw, 80px);
  background:
    radial-gradient(circle at 50% calc(24% + var(--hero-bg-drift) * 0.1), rgba(255, 255, 255, 0.98), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 251, 255, 0.24) 48%, rgba(255, 255, 255, 0) 100%);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 6% 5% auto;
  height: 72%;
  background:
    radial-gradient(ellipse at 30% 52%, rgba(255, 226, 241, 0.82), transparent 58%),
    radial-gradient(ellipse at 70% 42%, rgba(219, 236, 255, 0.88), transparent 60%),
    radial-gradient(ellipse at 52% 74%, rgba(221, 250, 246, 0.72), transparent 64%);
  filter: blur(7px);
  opacity: calc(var(--hero-fade) * 0.9);
  transform: translate3d(0, var(--hero-glow-drift), 0) scale(calc(1 + var(--hero-progress) * 0.1));
  pointer-events: none;
  will-change: transform, opacity;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(72px, 14vh, 132px);
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--blue), var(--mint));
  transform: translate3d(-50%, var(--hero-rule-drift), 0) scaleX(calc(1 - var(--hero-progress) * 0.28));
  opacity: var(--hero-fade);
  will-change: transform, opacity;
}

.hero-main {
  position: relative;
  z-index: 1;
  max-width: 780px;
  min-width: 0;
  text-align: center;
  transform: translate3d(0, var(--hero-lift), 0) scale(var(--hero-scale));
  transform-origin: center;
  opacity: 1;
  transition: opacity 180ms linear, transform 180ms linear;
  will-change: transform, opacity;
}

.hero h2 {
  max-width: none;
  margin-top: 18px;
  font-size: clamp(54px, 10vw, 118px);
  line-height: 0.96;
  font-weight: 900;
  transform: translate3d(0, var(--hero-title-drift), 0) scale(var(--hero-title-scale));
  transform-origin: center;
  opacity: var(--hero-title-fade);
  will-change: transform, opacity;
}

.eyebrow {
  display: inline-block;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  opacity: calc(var(--hero-eyebrow-fade) * 0.78);
  transform: translate3d(0, var(--hero-eyebrow-drift), 0) scale(var(--hero-eyebrow-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.hero-copy {
  max-width: 660px;
  margin-top: 18px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  transform: translate3d(0, var(--hero-copy-drift), 0) scale(var(--hero-copy-scale));
  transform-origin: center;
  opacity: var(--hero-copy-fade);
  will-change: transform, opacity;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  color: rgba(39, 52, 79, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: var(--scroll-cue-opacity);
  transform: translate3d(-50%, var(--scroll-cue-drift), 0);
  pointer-events: none;
  will-change: transform, opacity;
}

.scroll-cue span {
  white-space: nowrap;
}

.scroll-cue i,
.scroll-cue i::after {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(240, 95, 146, 0.66);
  border-bottom: 2px solid rgba(79, 141, 247, 0.62);
  transform: rotate(45deg);
}

.scroll-cue i {
  position: relative;
  animation: cueDrop 1200ms linear infinite;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0.38;
}

#shop .announcement-bar,
#shop .category-filter,
#shop .section-head,
#shop .album-grid,
#shop #orderForm {
  width: min(1080px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
  transform-origin: center top;
  transition: opacity 240ms linear, transform 240ms linear;
}

.view,
.tab-view {
  display: none;
}

.view.active,
.tab-view.active {
  display: block;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

#shop .announcement-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(240, 95, 146, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(81, 96, 124, 0.07);
  opacity: var(--content-head-opacity);
  transform: translateY(var(--content-head-shift)) scale(var(--content-head-scale));
}

#shop .announcement-bar.hidden {
  display: none;
}

#shop .category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  opacity: var(--content-head-opacity);
  transform: translateY(var(--content-head-shift)) scale(var(--content-head-scale));
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(222, 230, 245, 0.95);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.84);
  color: #4b5871;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(81, 96, 124, 0.06);
  cursor: pointer;
  transition:
    border-color 180ms linear,
    background-color 180ms linear,
    box-shadow 180ms linear,
    transform 180ms linear;
}

.category-chip:hover {
  border-color: rgba(240, 95, 146, 0.32);
  transform: translateY(-1px);
}

.category-chip.active {
  border-color: rgba(240, 95, 146, 0.38);
  background: linear-gradient(135deg, #fff0f8, #eef7ff);
  color: #c8337f;
  box-shadow: 0 10px 22px rgba(240, 95, 146, 0.12);
}

.category-chip strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: inherit;
  font-size: 12px;
}

.announcement-bar span {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff0f7;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.announcement-window {
  min-width: 0;
  height: 28px;
  overflow: hidden;
}

.announcement-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0.5rem;
}

.announcement-track.scrolling {
  animation: announcement-marquee var(--announcement-duration, 24s) linear infinite;
}

.announcement-track p {
  flex: 0 0 auto;
  min-height: 28px;
  color: var(--navy);
  font-size: 14px;
  line-height: 28px;
  overflow-wrap: anywhere;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes announcement-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 0.25rem), 0, 0);
  }
}

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

.announcement-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.announcement-admin-item span {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#shop .section-head {
  opacity: var(--content-head-opacity);
  transform: translateY(var(--content-head-shift)) scale(var(--content-head-scale));
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  gap: 12px;
}

#shop .album-grid {
  opacity: var(--content-cards-opacity);
  transform: translateY(var(--content-cards-shift)) scale(var(--content-cards-scale));
}

#shop #orderForm {
  opacity: var(--content-form-opacity);
  transform: translateY(var(--content-form-shift)) scale(var(--content-form-scale));
}

.album-card,
.panel,
.row,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.album-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  cursor: pointer;
  transform: translateY(calc(var(--card-offset, 0px) + var(--card-lift, 0px)));
  transition:
    transform 260ms linear,
    box-shadow 260ms linear,
    border-color 260ms linear;
}

.album-grid .album-card {
  height: 100%;
  animation: productCardIn 420ms linear both;
}

.album-grid .album-card:nth-child(2) {
  animation-delay: 45ms;
}

.album-grid .album-card:nth-child(3) {
  animation-delay: 90ms;
}

.album-grid .album-card:nth-child(4) {
  animation-delay: 135ms;
}

.album-grid .album-card:nth-child(n + 5) {
  animation-delay: 160ms;
}

.album-card:hover {
  --card-lift: -1px;
  border-color: #dce7ff;
  box-shadow: 0 16px 32px rgba(81, 96, 124, 0.12);
}

.album-card:focus-visible {
  outline: 3px solid rgba(240, 95, 146, 0.2);
  outline-offset: 3px;
}

.album-card.expanded {
  border-color: rgba(240, 95, 146, 0.28);
  box-shadow: 0 20px 42px rgba(81, 96, 124, 0.14);
  transform: translateY(calc(var(--card-offset, 0px) - 2px)) scale(1.018);
}

body.detail-open {
  overflow: hidden;
}

.product-detail-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(248, 251, 255, 0);
  opacity: 0;
  transition: opacity 320ms linear, background-color 320ms linear;
}

.product-detail-shell.open {
  background: rgba(248, 251, 255, 0.98);
  opacity: 1;
}

.product-detail-shell.closing {
  pointer-events: none;
}

.product-detail-shell .album-card {
  position: fixed;
  z-index: 81;
  display: grid;
  grid-template-rows: minmax(0, 57%) minmax(0, 43%);
  max-width: none;
  max-height: none;
  margin: 0;
  cursor: default;
  overflow: hidden;
  overscroll-behavior: none;
  border: 0;
  border-radius: 0;
  background: #fff;
  transform: none;
  will-change: left, top, width, height;
  transition: left 420ms linear, top 420ms linear, width 420ms linear, height 420ms linear, box-shadow 420ms linear, border-color 420ms linear;
}

.product-detail-shell .album-card.expanded {
  transform: none;
  box-shadow: 0 24px 64px rgba(81, 96, 124, 0.18);
}

.product-detail-shell .album-card .cover {
  aspect-ratio: 1 / 0.72;
  min-height: 0;
  height: 100%;
  max-height: none;
  border-radius: 0;
}

.product-detail-shell .album-card .cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72) 46%, #fff 100%);
}

.product-detail-shell .album-card .album-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  align-content: start;
  gap: 9px;
  margin-top: 0;
  padding: 16px 18px max(22px, env(safe-area-inset-bottom));
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.product-detail-shell .album-title,
.product-detail-shell .qty-field,
.product-detail-shell .product-detail,
.product-detail-shell .desc-wrap,
.product-detail-shell .desc,
.product-detail-shell .source-link,
.product-detail-shell .muted {
  min-width: 0;
  max-width: 100%;
}

.product-detail-shell .album-title h3,
.product-detail-shell .price,
.product-detail-shell .desc,
.product-detail-shell .muted,
.product-detail-shell .detail-list dd {
  overflow-wrap: anywhere;
}

.product-detail-shell .muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.product-detail-shell .desc-wrap {
  min-height: 0;
}

.product-detail-shell .desc-wrap.has-long-desc {
  display: grid;
  gap: 8px;
}

.product-detail-shell .desc-wrap.has-long-desc .desc {
  display: -webkit-box;
  max-height: 10.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.product-detail-shell .desc-wrap.has-long-desc.desc-expanded .desc {
  display: block;
  max-height: min(34vh, 280px);
  overflow-y: auto;
  padding-right: 6px;
  -webkit-line-clamp: unset;
}

.product-detail-shell .desc-toggle,
.product-detail-shell .detail-toggle {
  justify-self: start;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(240, 95, 146, 0.22);
  border-radius: 8px;
  background: #fff0f7;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.product-detail-shell .product-detail {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (min-width: 860px) {
  .product-detail-shell .album-card {
    grid-template-columns: minmax(0, 50%) minmax(380px, 50%);
    grid-template-rows: minmax(0, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
  }

  .product-detail-shell .album-card .cover {
    --detail-image-inset: clamp(26px, 3.2vw, 44px);
    background: #090605;
    height: 100%;
    border-radius: 22px 0 0 22px;
  }

  .product-detail-shell .album-card .cover img {
    top: var(--detail-image-inset);
    right: auto;
    bottom: auto;
    left: var(--detail-image-inset);
    object-fit: contain;
    object-position: center;
    width: calc(100% - (var(--detail-image-inset) * 2));
    height: calc(100% - (var(--detail-image-inset) * 2));
    border-radius: 14px;
  }

  .product-detail-shell .album-card .cover::after {
    top: 0;
    left: auto;
    bottom: 0;
    width: 42px;
    height: auto;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
  }

  .product-detail-shell .album-card .album-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    margin-top: 0;
    margin-left: -16px;
    padding: 28px 26px 26px 30px;
    border-radius: 22px;
    box-shadow: -18px 0 32px rgba(255, 255, 255, 0.78);
  }

  .product-detail-shell .album-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .product-detail-shell .price {
    text-align: left;
    font-size: 18px;
  }

  .product-detail-shell .qty-field {
    margin-top: auto;
    padding-top: 6px;
  }

  .product-detail-shell .detail-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 859px) {
  .product-detail-shell .album-card {
    grid-template-rows: minmax(0, 42%) minmax(0, 58%);
  }

  .product-detail-shell .album-card .album-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    padding: 15px 24px max(20px, env(safe-area-inset-bottom));
  }

  .product-detail-shell .category-pill {
    width: fit-content;
  }

  .product-detail-shell .album-title h3 {
    font-size: 18px;
  }

  .product-detail-shell .price {
    font-size: 17px;
  }

  .product-detail-shell .desc {
    line-height: 1.35;
  }

  .product-detail-shell .desc-wrap.has-long-desc .desc {
    max-height: 4.05em;
    -webkit-line-clamp: 3;
  }

  .product-detail-shell .desc-wrap.has-long-desc.desc-expanded .desc {
    max-height: 12vh;
  }

  .product-detail-shell .source-link {
    display: block;
    width: max-content;
    line-height: 1.25;
  }

  .product-detail-shell .product-detail {
    flex: 0 1 auto;
    max-height: clamp(150px, 24svh, 220px);
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
  }

  .detail-value-wrap.has-long-detail .detail-value-text {
    max-height: 7.25em;
    -webkit-line-clamp: 5;
  }

  .detail-value-wrap.has-long-detail.detail-expanded .detail-value-text {
    max-height: none;
  }

  .product-detail-shell .detail-list {
    gap: 10px;
  }

  .product-detail-shell .detail-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .product-detail-shell .detail-list dt,
  .product-detail-shell .detail-list dd {
    font-size: 14px;
    line-height: 1.45;
  }

  .product-detail-shell .qty-field {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(223, 228, 223, 0.72);
    background: #fff;
  }

  .product-detail-shell .product-detail-hint {
    display: none;
  }
}

.product-detail-hint {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 82;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(39, 52, 79, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, 6px, 0);
  transition: opacity 260ms linear, transform 260ms linear;
  backdrop-filter: blur(10px);
}

.product-detail-shell.open .product-detail-hint {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.product-detail-shell.closing .product-detail-hint {
  opacity: 0;
}

.cover {
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.6;
  min-height: 150px;
  overflow: hidden;
  background: #fff;
  color: var(--accent-strong);
  font-size: 48px;
  font-weight: 800;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eef2f7, #e9f2ec);
}

.cover span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.cover img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.album-body,
.row,
.panel {
  padding: 14px;
}

.album-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  background: #fff;
}

.album-grid .album-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.category-pill {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f3edf0;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.album-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.album-title h3 {
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.album-grid .album-title h3 {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 800;
}

.desc {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.desc-wrap {
  min-width: 0;
}

.album-grid .desc-toggle {
  display: none;
}

.album-grid .desc {
  display: -webkit-box;
  min-height: 4.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-detail {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(240, 95, 146, 0.16);
  border-radius: 8px;
  background: #fbfdff;
  cursor: default;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-head strong {
  color: var(--ink);
  font-size: 14px;
}

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

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.detail-value-wrap.has-long-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.detail-value-wrap.has-long-detail .detail-value-text {
  display: -webkit-box;
  max-height: 12.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
  white-space: pre-wrap;
}

.detail-value-wrap.has-long-detail.detail-expanded .detail-value-text {
  display: block;
  max-height: min(32vh, 260px);
  overflow-y: auto;
  padding-right: 6px;
  -webkit-line-clamp: unset;
}

.source-link {
  width: fit-content;
  max-width: 100%;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.album-grid .qty-field {
  margin-top: auto;
}

.qty-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
}

.qty-field > span {
  min-width: 0;
  line-height: 1.25;
}

.stepper {
  display: grid;
  grid-template-columns: 40px 56px 40px;
  justify-self: end;
  width: 136px;
  min-width: 136px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(81, 96, 124, 0.07);
  transition:
    border-color 180ms linear,
    box-shadow 180ms linear,
    background-color 180ms linear;
}

.stepper input {
  width: 56px;
  min-width: 0;
  height: 100%;
  min-height: 0;
  border: 0;
  border-left: 1px solid #e3ebf6;
  border-right: 1px solid #e3ebf6;
  border-radius: 0;
  padding: 0 6px;
  background: #fff;
  text-align: center;
  font-weight: 800;
  appearance: textfield;
  transition:
    background-color 180ms linear,
    color 180ms linear,
    transform 180ms linear;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.stepper-btn {
  width: 40px;
  height: 100%;
  min-width: 40px;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #fff0f7;
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transform: none;
  transform-origin: center;
  touch-action: manipulation;
  transition:
    background-color 180ms linear,
    color 180ms linear,
    box-shadow 180ms linear,
    transform 180ms linear;
}

.stepper-btn:hover {
  background: #eaf4ff;
}

.stepper-btn:active {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.08);
  transform: none;
}

.stepper.changed input {
  background: #fff;
  color: var(--ink);
  animation: qty-line 240ms linear;
}

.stepper.changed {
  border-color: rgba(240, 95, 146, 0.34);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(240, 95, 146, 0.1), 0 6px 14px rgba(81, 96, 124, 0.08);
}

.stepper-btn.pressed {
  background: var(--accent-strong);
  color: #fff;
  animation: stepper-line 220ms linear;
}

@keyframes qty-line {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(1.08);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes stepper-line {
  0% {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0);
  }

  50% {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.1);
  }

  100% {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0);
  }
}

@keyframes cueDrop {
  0% {
    opacity: 0.25;
    transform: translateY(-3px) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(5px) rotate(45deg);
  }

  100% {
    opacity: 0.25;
    transform: translateY(13px) rotate(45deg);
  }
}

@keyframes productCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(calc(var(--card-offset, 0px) + var(--card-lift, 0px)));
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

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

  .hero-main,
  .hero h2,
  .hero-copy,
  .scroll-cue,
  .section-head,
  .album-grid,
  #orderForm {
    transition: none;
    animation: none;
  }

  .stepper.changed input,
  .stepper-btn.pressed,
  .album-grid .album-card,
  .modal,
  .modal-card {
    animation: none;
  }
}

.panel {
  margin-top: 20px;
  padding: clamp(16px, 2.5vw, 22px);
}

.panel.narrow {
  max-width: 520px;
}

.admin-route:not(.admin-logged-in) main {
  min-height: calc(100svh - 88px);
  margin-bottom: 0;
}

.admin-route:not(.admin-logged-in) #admin.active {
  display: grid;
  min-height: calc(100svh - 88px);
  place-items: center;
  padding: clamp(20px, 5vw, 54px) 16px;
}

.admin-route:not(.admin-logged-in) #loginForm {
  display: grid;
  gap: 16px;
  width: min(720px, 100%);
  margin-top: 0;
  padding: clamp(30px, 5vw, 46px);
}

.admin-route:not(.admin-logged-in) #loginForm h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.admin-route:not(.admin-logged-in) #loginForm label {
  gap: 8px;
  font-size: 16px;
}

.admin-route:not(.admin-logged-in) #loginForm input {
  min-height: 52px;
  font-size: 17px;
}

.admin-route:not(.admin-logged-in) #loginForm .primary {
  width: 180px;
  min-height: 52px;
  margin-top: 4px;
  font-size: 17px;
}

.admin-route:not(.admin-logged-in) #loginResult {
  margin-top: 0;
}

.admin-route.admin-logged-in #admin.active {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.lookup-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  width: 100%;
  margin-top: 0;
  padding: clamp(22px, 4vw, 32px);
}

.lookup-panel label {
  color: var(--ink);
  font-weight: 800;
}

.lookup-panel input {
  min-height: 48px;
  margin-top: 2px;
  font-weight: 600;
}

.lookup-panel .primary {
  width: fit-content;
  min-width: 150px;
  min-height: 48px;
  margin-top: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  transition:
    border-color 180ms linear,
    box-shadow 180ms linear,
    background-color 180ms linear;
}

.phone-field {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 180ms linear, box-shadow 180ms linear;
}

.phone-field span {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid var(--line);
  background: #f4f9ff;
  color: var(--accent-strong);
  font-weight: 900;
}

.phone-field input {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding-left: 12px;
}

.phone-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 95, 146, 0.16);
}

.phone-field:has(input:invalid:not(:placeholder-shown)) {
  border-color: #d92d20;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(240, 95, 146, 0.16);
}

.phone-field input:focus {
  outline: 0;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:invalid:not(:placeholder-shown) {
  border-color: #d92d20;
}

.phone-field input:invalid:not(:placeholder-shown) {
  border-color: transparent;
}

.cropper {
  margin: 10px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.crop-frame {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #edf5ff;
  touch-action: none;
}

.crop-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
}

.crop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.crop-controls label {
  min-width: min(220px, 100%);
}

.cropper p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.deposit-terms {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 14px;
  border: 1px solid rgba(246, 189, 96, 0.32);
  border-radius: 8px;
  background: #fffaf5;
  transition:
    border-color 220ms linear,
    box-shadow 220ms linear,
    background-color 220ms linear;
}

.deposit-terms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deposit-terms h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.deposit-terms-head span {
  flex: 0 0 auto;
  color: var(--warn);
  font-size: 13px;
  font-weight: 800;
}

.deposit-terms-scroll {
  max-height: 124px;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid rgba(246, 189, 96, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.58;
  overscroll-behavior: contain;
  transition:
    border-color 180ms linear,
    box-shadow 180ms linear;
}

.deposit-terms-scroll:focus {
  outline: 3px solid rgba(246, 189, 96, 0.2);
}

.deposit-terms-scroll ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.deposit-confirm {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.deposit-confirm input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  transition: transform 180ms linear, opacity 180ms linear;
}

.deposit-confirm input:checked {
  transform: translateY(-1px);
}

.deposit-confirm:has(input:checked) {
  color: var(--accent-strong);
}

.deposit-confirm input:disabled + span {
  color: var(--muted);
}

.order-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

#orderForm .order-submit-row .primary:disabled {
  background: #ccd5e3;
  color: #fff;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

.order-cart-count {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(240, 95, 146, 0.18);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    background-color 180ms linear,
    border-color 180ms linear,
    color 180ms linear,
    transform 180ms linear;
}

.result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #fff0f7;
  color: var(--accent-strong);
  line-height: 1.55;
}

.result:empty {
  display: none;
}

.admin-result {
  border: 2px solid #79d6cc;
  background: #effdfa;
  color: #18746b;
  font-size: 17px;
  font-weight: 700;
}

.admin-result span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 50;
  width: min(620px, calc(100% - 28px));
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(81, 96, 124, 0.2);
}

.toast.error {
  background: var(--danger);
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 40, 0.58);
  animation: modalFadeIn 220ms linear both;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(81, 96, 124, 0.24);
  text-align: center;
  animation: modalCardIn 320ms linear both;
}

.modal-mark {
  margin: 0 auto 12px;
}

.modal-card h2 {
  margin: 4px 0 16px;
  font-size: 28px;
}

.order-no-box {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 16px;
  border: 2px solid #79d6cc;
  border-radius: 8px;
  background: #effdfa;
}

.order-no-box span {
  color: var(--muted);
  font-size: 14px;
}

.order-no-box strong {
  max-width: 100%;
  color: var(--accent-strong);
  font-size: 22px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modal-note {
  margin-bottom: 18px;
  color: var(--muted);
}

.admin-area {
  margin-top: 20px;
}

.admin-route.admin-logged-in .admin-tabs {
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.admin-route.admin-logged-in .admin-tabs::before,
.admin-route.admin-logged-in .admin-tabs::after {
  content: "";
  flex: 1 1 120px;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 95, 146, 0.28));
}

.admin-route.admin-logged-in .admin-tabs::after {
  background: linear-gradient(90deg, rgba(79, 141, 247, 0.26), transparent);
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-product-tools,
.admin-order-tools {
  display: grid;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(39, 52, 79, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(81, 96, 124, 0.07);
}

.admin-product-tools {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
}

.admin-order-tools {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.admin-product-tools label,
.admin-order-tools label {
  min-width: 0;
}

.admin-product-tools .muted,
.admin-order-tools .muted {
  min-height: 40px;
  display: grid;
  place-items: center end;
  white-space: nowrap;
  font-weight: 800;
}

.admin-empty {
  margin-top: 0;
  color: var(--muted);
}

.row {
  display: grid;
  gap: 10px;
}

.admin-product-row,
.admin-order-row {
  position: relative;
  border-color: rgba(39, 52, 79, 0.1);
  transition: transform 120ms linear, border-color 120ms linear, box-shadow 120ms linear, opacity 120ms linear;
}

.admin-product-row.state-changing,
.admin-order-row.state-changing {
  opacity: 0.78;
  transform: translateY(1px);
}

.admin-product-row.state-changed,
.admin-order-row.state-changed {
  animation: admin-row-line 320ms linear;
}

@keyframes admin-row-line {
  0% {
    border-color: rgba(39, 52, 79, 0.1);
    box-shadow: inset 0 0 0 0 rgba(39, 52, 79, 0);
  }
  38% {
    border-color: rgba(240, 95, 146, 0.38);
    box-shadow: inset 0 0 0 2px rgba(240, 95, 146, 0.12);
  }
  100% {
    border-color: rgba(39, 52, 79, 0.1);
    box-shadow: inset 0 0 0 0 rgba(39, 52, 79, 0);
  }
}

.row-head,
.row-actions,
.order-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 14px 0;
}

.flow-steps span {
  position: relative;
  display: grid;
  flex: 1 1 0;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.flow-steps span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 2px;
  background: #e4ecf7;
  z-index: 0;
}

.flow-steps span:first-child::before {
  left: 50%;
}

.flow-steps span:last-child::before {
  right: 50%;
}

.flow-steps i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #e4ecf7;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-style: normal;
  line-height: 1;
}

.flow-steps b {
  font-weight: 800;
}

.flow-steps span.done,
.flow-steps span.current {
  color: var(--accent-strong);
}

.flow-steps span.done::before {
  background: #a7e8e1;
}

.flow-steps span.done i {
  border-color: #79d6cc;
  background: var(--accent-strong);
  color: #fff;
}

.flow-steps span.current i {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.check-pill {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.check-pill.checked {
  border-color: #79d6cc;
  background: #effdfa;
  color: var(--accent-strong);
}

.admin-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}

.check-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.check-pill input {
  width: 16px;
  min-height: 16px;
}

.badge {
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff0f7;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.badge.closed {
  background: #fff4e5;
  color: var(--warn);
}

.badge.neutral {
  background: #f3f4f6;
  color: var(--muted);
}

.badge.status-active {
  background: #eef5ff;
  color: #2f5fb3;
}

.badge.status-done {
  background: #effdfa;
  color: var(--accent-strong);
}

.badge.status-cancelled {
  background: #f3f4f6;
  color: var(--muted);
}

.stat-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-detail-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-detail-line span {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.stat-flow span {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 13px;
}

.product-metrics span {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 13px;
}

.stat-flow strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 18px;
}

.product-metrics strong {
  color: var(--ink);
}

.section-subhead {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 150px);
  align-items: center;
  gap: 10px;
}

.danger {
  color: var(--danger);
}

.ghost.danger {
  border-color: rgba(180, 35, 24, 0.25);
}

.ghost.danger:hover {
  border-color: rgba(180, 35, 24, 0.55);
  background: #fff7f7;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.success-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  padding: 18px;
  border: 2px solid #79d6cc;
  border-radius: 8px;
  background: #effdfa;
  color: var(--ink);
  overflow: hidden;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.success-label {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.success-main,
.success-items,
.success-total,
.order-line {
  min-width: 0;
}

.success-main h3 {
  margin: 4px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.success-main p {
  max-width: 100%;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.payment-note {
  margin-top: 8px;
  padding: 10px;
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  background: #fff7ed;
  color: #7a3b07 !important;
  font-weight: 700;
}

.copy-order {
  display: inline-flex;
  align-items: center;
  width: min(100%, 420px);
  height: auto;
  min-height: 36px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #79d6cc;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-strong);
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.success-items {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid #d9f3ef;
}

.success-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 22px;
  }

  .topbar p {
    font-size: 12px;
  }

  nav,
  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  }

  .topbar .nav {
    min-width: 0;
    min-height: 50px;
    padding: 0 10px;
    font-size: 16px;
  }

  .nav,
  .tab {
    min-width: 0;
    padding: 0 8px;
  }

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

  .hero {
    top: 126px;
    min-height: calc(100svh - 140px);
    padding: 48px 18px 40px;
  }

  .hero-runway {
    height: clamp(1760px, 250svh, 2800px);
  }

  .hero h2 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .hero-copy {
    max-width: 22em;
    font-size: 16px;
  }

  .scroll-cue {
    bottom: max(86px, env(safe-area-inset-bottom));
  }

  main {
    width: 100%;
    margin-top: 0;
  }

  .lookup-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .lookup-title h2 {
    font-size: 34px;
  }

  .lookup-panel {
    gap: 14px;
    padding: 18px;
  }

  .lookup-panel input {
    min-height: 50px;
  }

  .admin-route:not(.admin-logged-in) #loginForm {
    width: min(560px, 100%);
    padding: 24px;
  }

  .admin-route.admin-logged-in .admin-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-product-tools,
  .admin-order-tools {
    grid-template-columns: 1fr;
  }

  .admin-product-tools .muted,
  .admin-order-tools .muted {
    place-items: center start;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-card {
    min-height: 0;
  }

  .cover {
    min-height: 0;
    aspect-ratio: 1 / 0.74;
  }

  .album-body {
    padding: 12px;
  }

  .album-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .album-title h3 {
    font-size: 16px;
  }

  .price {
    padding-top: 1px;
    font-size: 15px;
    text-align: left;
  }

  .qty-field {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .stepper {
    width: 132px;
    min-width: 132px;
    grid-template-columns: 40px 52px 40px;
    height: 42px;
  }

  .stepper-btn {
    width: 40px;
    min-width: 40px;
    min-height: 42px;
  }

  .stepper input {
    width: 52px;
    min-height: 42px;
  }

  .success-card {
    grid-template-columns: 1fr;
  }

  .primary {
    width: 100%;
  }

  .admin-flow,
  .stat-flow,
  .product-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-row {
    grid-template-columns: 1fr;
  }
}

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

  .deposit-terms-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .deposit-terms-scroll {
    max-height: 148px;
  }

  .order-submit-row {
    align-items: stretch;
  }

  .order-cart-count {
    flex: 1 1 auto;
    justify-content: center;
  }

  .order-submit-row .primary {
    flex: 1 1 auto;
  }

  .cover {
    aspect-ratio: 1 / 0.68;
  }

  .album-title h3 {
    font-size: 18px;
  }

  .price {
    font-size: 16px;
  }
}
