:root {
  --ink: #1f1d1a;
  --muted: #746d63;
  --soft: #f7f3eb;
  --paper: #fffdf8;
  --line: #e5dccd;
  --gold: #b88a3d;
  --red: #9f2f28;
  --jade: #6f9477;
  --charcoal: #151515;
  --shadow: 0 18px 60px rgba(54, 43, 25, 0.14);
  --font-sans-cn: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Heiti SC", "SimHei", Arial, sans-serif;
  --font-serif-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-home-sans: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-announcement {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: #fff;
  background: #111;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    var(--font-sans-cn);
}

.home-template-page,
.home-template-page button,
.home-template-page input,
.home-template-page select,
.home-template-page textarea {
  font-family: var(--font-home-sans);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 220, 205, 0.78);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--charcoal);
  font-weight: 750;
}

.brand-mark-ovelira {
  position: relative;
  display: block;
  flex: 0 0 42px;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
}

.brand-orbit {
  position: absolute;
  inset: 8px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(22deg);
}

.brand-thread {
  position: absolute;
  top: 20px;
  left: 8px;
  width: 29px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--gold);
  transform: rotate(42deg);
  transform-origin: center;
}

.brand-bead {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.bead-1 {
  top: 4px;
  left: 22px;
}

.bead-2 {
  top: 9px;
  right: 5px;
}

.bead-3 {
  top: 22px;
  right: 2px;
}

.bead-4 {
  right: 9px;
  bottom: 5px;
}

.bead-5 {
  bottom: 2px;
  left: 18px;
}

.bead-6 {
  top: 22px;
  left: 2px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

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

.home-template-page .brand-copy strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.home-template-page .brand-copy small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
}

.topnav a:hover {
  color: var(--ink);
}

.home-template-page {
  background: #fffdf8;
}

.home-template-page .topbar {
  top: 38px;
}

.home-template-page .topnav {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.template-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(100vh - 118px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #15110d;
}

.template-hero-media {
  position: absolute;
  inset: 0;
  min-height: 100%;
  padding: 0;
}

.template-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 12, 9, 0.1) 0%, rgba(16, 12, 9, 0.18) 42%, rgba(246, 241, 232, 0.74) 68%, rgba(246, 241, 232, 0.9) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.template-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 118px);
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  box-shadow: none;
}

.template-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(45vw, 640px);
  min-height: calc(100vh - 118px);
  margin-left: auto;
  padding: clamp(42px, 6vw, 96px) clamp(14px, 2.2vw, 36px) clamp(42px, 6vw, 96px) clamp(28px, 5vw, 76px);
}

.template-kicker,
.template-section-head span,
.belief-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-template-page .template-hero h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(54px, 6.4vw, 96px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.template-hero p {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.7;
}

.template-primary-action {
  display: inline-flex;
  width: min(100%, 420px);
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.template-section {
  padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.template-section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.template-section-head h2 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.04;
}

.template-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.home-materials {
  padding: clamp(58px, 7vw, 104px) clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.home-materials-intro,
.home-material-group-head {
  max-width: 920px;
}

.home-materials-intro > span,
.home-material-group-head > span,
.home-materials-closing > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-materials-intro h2,
.home-material-group-head h3,
.home-materials-closing p {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}

.home-materials-intro h2 {
  font-size: clamp(44px, 5.6vw, 76px);
}

.home-materials-intro p,
.home-material-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.home-materials-intro p {
  max-width: 820px;
}

.home-material-group {
  margin-top: clamp(54px, 6vw, 82px);
}

.home-material-group-head {
  margin-bottom: 26px;
}

.home-material-group-head h3 {
  font-size: clamp(36px, 4.2vw, 58px);
}

.home-material-carousel {
  position: relative;
}

.home-material-track {
  display: grid;
  grid-auto-columns: calc((100% - 64px) / 5);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 22px;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-material-track::-webkit-scrollbar {
  display: none;
}

.home-material-card {
  min-width: 0;
  color: var(--ink);
  scroll-snap-align: start;
}

.home-material-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f2eee7;
}

.home-material-card h4 {
  margin: 14px 0 7px;
  overflow: hidden;
  font-family: var(--font-home-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-material-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.home-material-card span b {
  font-size: 15px;
  font-weight: 500;
}

.home-material-card.is-coming-soon span {
  color: var(--muted);
}

.home-material-card:not(.is-coming-soon):hover img {
  filter: brightness(0.98);
}

.home-material-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 32px rgba(31, 29, 26, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
}

.home-material-nav.is-prev {
  left: -23px;
}

.home-material-nav.is-next {
  right: -23px;
}

.home-material-nav:disabled {
  cursor: default;
  opacity: 0.32;
}

.home-material-page {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
}

.home-materials-closing {
  margin-top: clamp(52px, 6vw, 82px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.home-materials-closing p {
  font-size: clamp(30px, 3.4vw, 48px);
}

.home-accessories {
  padding: clamp(64px, 7vw, 108px) clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}

.home-accessories-head {
  max-width: 980px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.home-accessories-head > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-accessories-head h2 {
  max-width: 940px;
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 74px);
  font-weight: 600;
  line-height: 0.98;
}

.home-accessories-head p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.home-accessory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.home-accessory-card {
  min-width: 0;
  color: var(--ink);
  scroll-snap-align: start;
}

.home-accessory-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f3ede2;
  transition: transform 220ms ease;
}

.home-accessory-card h3 {
  margin: 16px 0 8px;
  overflow: hidden;
  font-family: var(--font-home-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-accessory-card > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.home-accessory-card > span span {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  transition: transform 180ms ease;
}

.home-accessory-card:hover .home-accessory-image {
  transform: translateY(-2px);
}

.home-accessory-card:hover > span span {
  transform: translateX(3px);
}

.home-accessory-card:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.belief-grid h3 {
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.08;
}

.belief-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.template-beliefs {
  background: #f8f4ed;
}

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

.belief-grid article {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 253, 248, 0.78);
}

.template-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 54px);
  padding: 34px 18px 46px;
  color: var(--muted);
  background: #111;
}

.template-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 720;
}

.template-footer a:hover {
  color: #fff;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #151515;
}

.hero-carousel,
.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  animation: heroSlide 15s infinite;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 76px);
  padding: clamp(24px, 4vw, 50px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 58%);
}

.hero-chrome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-chrome strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-chrome span {
  display: block;
  width: min(240px, 34vw);
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 50%, #111 0 5px, transparent 6px),
    radial-gradient(circle at 36% 50%, #111 0 5px, transparent 6px),
    radial-gradient(circle at 44% 50%, #111 0 5px, transparent 6px),
    linear-gradient(90deg, transparent 0 53%, rgba(0, 0, 0, 0.16) 53% 54%, transparent 54% 70%, rgba(0, 0, 0, 0.16) 70% 71%, transparent 71%),
    rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.hero-story {
  width: min(760px, 100%);
  padding-bottom: clamp(10px, 2vw, 24px);
}

.story-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 16px;
  font-weight: 720;
}

.story-pill::before {
  margin-right: 8px;
  content: "✦";
}

.hero-story h1 {
  max-width: 840px;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.34);
}

.hero-story p {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.72;
}

.hero-start {
  display: flex;
  width: min(100%, 760px);
  min-height: 74px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  color: #26231f;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.25);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 760;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(100%, 760px);
  margin-top: 18px;
}

.hero-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dots span:nth-child(1) {
  animation: heroDot1 15s infinite;
}

.hero-dots span:nth-child(2) {
  animation: heroDot2 15s infinite;
}

.hero-dots span:nth-child(3) {
  animation: heroDot3 15s infinite;
}

@keyframes heroSlide {
  0%,
  28% {
    transform: translateX(0);
  }
  33%,
  61% {
    transform: translateX(-100%);
  }
  66%,
  94% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 860px) {
  .home-template-page .topbar {
    top: 38px;
  }

  .template-hero {
    min-height: calc(100vh - 92px);
    align-items: flex-end;
    justify-content: flex-start;
  }

  .template-hero-media {
    min-height: 100%;
  }

  .template-hero-media::after {
    background:
      linear-gradient(180deg, rgba(16, 12, 9, 0.1) 0%, rgba(16, 12, 9, 0.22) 38%, rgba(246, 241, 232, 0.88) 72%, rgba(246, 241, 232, 0.96) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 58%);
  }

  .template-hero-image {
    min-height: calc(100vh - 92px);
    object-position: 28% center;
  }

  .template-hero-copy {
    width: 100%;
    min-height: calc(100vh - 92px);
    justify-content: flex-end;
    padding: 42px 18px;
  }

  .home-template-page .template-hero h1 {
    font-size: clamp(48px, 14vw, 76px);
    line-height: 0.94;
  }

  .home-template-page .brand-copy small {
    letter-spacing: 0.12em;
  }

  .template-hero p {
    font-size: 18px;
  }

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

  .template-section {
    padding: 44px 18px;
  }

  .home-accessories {
    overflow: hidden;
    padding: 52px 18px 60px;
  }

  .home-accessories-head {
    margin-bottom: 28px;
  }

  .home-accessories-head h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .home-accessory-grid {
    grid-template-columns: none;
    grid-auto-columns: min(78vw, 360px);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    padding: 0 18px 18px 0;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-accessory-grid::-webkit-scrollbar {
    display: none;
  }

}

@keyframes heroDot1 {
  0%,
  28% {
    width: 34px;
    background: #fff;
  }
  33%,
  100% {
    width: 10px;
    background: rgba(255, 255, 255, 0.48);
  }
}

@keyframes heroDot2 {
  0%,
  28%,
  66%,
  100% {
    width: 10px;
    background: rgba(255, 255, 255, 0.48);
  }
  33%,
  61% {
    width: 34px;
    background: #fff;
  }
}

@keyframes heroDot3 {
  0%,
  61%,
  100% {
    width: 10px;
    background: rgba(255, 255, 255, 0.48);
  }
  66%,
  94% {
    width: 34px;
    background: #fff;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.hero-copy,
.section-heading p,
.panel-copy,
.ritual-panel p,
.fine-print {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 590px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  font-weight: 760;
}

.primary-action {
  color: #fff;
  background: var(--charcoal);
}

.secondary-action {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
}

.full {
  width: 100%;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span,
.module-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.76);
  font-size: 12px;
}

.workshop-flow {
  padding: clamp(44px, 6vw, 86px) clamp(18px, 4vw, 56px) clamp(32px, 5vw, 72px);
  background: #fffdf8;
}

.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.flow-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 520;
  line-height: 1.1;
}

.flow-mini-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.flow-mini-dots span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(31, 29, 26, 0.18);
}

.flow-mini-dots .active {
  width: 24px;
  height: 5px;
  background: var(--charcoal);
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 34px;
  overflow-x: auto;
  padding: 0 0 8px;
  scroll-snap-type: x proximity;
}

.flow-step {
  position: relative;
  min-width: 0;
  scroll-snap-align: start;
}

.flow-step::before {
  position: absolute;
  top: 42px;
  left: 78px;
  width: calc(100% + 34px);
  border-top: 2px dashed rgba(31, 29, 26, 0.12);
  content: "";
}

.flow-step:last-child::before {
  display: none;
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: rgba(31, 29, 26, 0.48);
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(54, 43, 25, 0.08);
  font-size: 25px;
}

.flow-step.active .flow-node {
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 22px 44px rgba(21, 21, 21, 0.16);
}

.flow-node span {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--charcoal);
}

.flow-step p {
  margin: 30px 0 12px;
  color: rgba(31, 29, 26, 0.34);
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.flow-step h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 560;
  line-height: 1.1;
}

.flow-step small {
  color: rgba(31, 29, 26, 0.46);
  font-size: 17px;
  line-height: 1.55;
}

.flow-entry {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  padding: 0 28px;
  color: #fff;
  background: var(--charcoal);
  font-size: 18px;
  font-weight: 760;
}

.entry-section {
  padding: clamp(34px, 5vw, 74px) clamp(18px, 4vw, 56px) clamp(48px, 7vw, 96px);
  background:
    linear-gradient(180deg, #fffdf8, #f7f3eb);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.entry-card {
  overflow: hidden;
  border: 1px solid rgba(229, 220, 205, 0.82);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(54, 43, 25, 0.08);
}

.entry-cover {
  position: relative;
  height: clamp(180px, 22vw, 280px);
  overflow: hidden;
  background: #d8d1bf;
}

.entry-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
}

.entry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-cover span {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 760;
}

.entry-body {
  padding: clamp(22px, 3vw, 34px);
}

.entry-body h3 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 560;
}

.entry-body p {
  min-height: 70px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.entry-stats span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fffdf8;
}

.entry-stats small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.entry-stats strong {
  font-size: 27px;
}

.entry-action {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: #26302a;
  font-size: 18px;
  font-weight: 760;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  min-height: calc(100vh - 76px);
  align-items: center;
  padding: clamp(46px, 8vw, 110px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #fffdf8 0%, #f7f3eb 100%);
}

.contact-page h1 {
  margin-bottom: 18px;
}

.contact-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.contact-grid {
  display: grid;
  gap: 14px;
}

.contact-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 52px rgba(54, 43, 25, 0.08);
}

.contact-grid span {
  color: var(--red);
  font-size: 13px;
  font-weight: 760;
}

.contact-grid h3 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.contact-response-time {
  margin: 12px 0 0;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 650;
}

.contact-form-card h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

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

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

.contact-field label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
  background: #fff;
}

.contact-field textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 138, 61, 0.14);
}

.contact-form button {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--charcoal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.contact-form button:hover {
  background: #2a2825;
}

.contact-form-note {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.contact-form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.studio-page {
  background: #fff;
}

.studio-page .topbar {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.94);
}

.diy-main {
  background: #fff;
}

.diy-app {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 34px) 48px;
  background: #fff;
}

.diy-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #9ca1a8;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 720;
}

.diy-price-line {
  color: #b9675d;
}

.diy-price-line,
.diy-wrist-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.diy-guide-open {
  justify-self: end;
  border: 0;
  padding: 0;
  color: #9ca1a8;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.diy-status #price {
  font-size: clamp(24px, 3vw, 34px);
}

.diy-settings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  background: #faf7f1;
}

.diy-settings[hidden] {
  display: none;
}

.studio-page .bracelet-stage {
  min-height: clamp(560px, 74vw, 760px);
  border: 0;
  border-radius: 0;
  background: #fff;
}

.studio-page .bracelet-stage::before {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(72vw, 640px);
  height: min(72vw, 640px);
  background:
    radial-gradient(circle at 38% 26%, rgba(255, 255, 255, 0.96), transparent 25%),
    radial-gradient(circle at 52% 56%, rgba(255, 255, 255, 0.58), transparent 47%),
    radial-gradient(circle at 50% 64%, rgba(119, 96, 62, 0.1), transparent 63%),
    linear-gradient(145deg, #fbf8f1, #e9dfcf);
  border: 1px solid rgba(120, 101, 73, 0.22);
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 14px 28px rgba(255, 255, 255, 0.86),
    inset 0 -24px 42px rgba(90, 70, 42, 0.14),
    inset 0 0 0 10px rgba(255, 255, 255, 0.45),
    0 18px 40px rgba(65, 49, 31, 0.16);
}

.studio-page .bracelet-stage::after {
  position: absolute;
  z-index: 1;
  top: 48%;
  left: 50%;
  width: 120px;
  height: 58px;
  content: "OVELIRA";
  transform: translate(-50%, -50%);
  color: rgba(70, 64, 55, 0.13);
  font-size: 24px;
  font-weight: 760;
  line-height: 1;
  text-align: center;
}

html[data-lang="en"] .studio-page .bracelet-stage::after {
  content: "OVELIRA";
}

.studio-page .bracelet-preview {
  width: min(72vw, 640px);
  height: min(72vw, 640px);
}

.studio-page .bracelet-preview::before {
  inset: 0;
  border: 1px solid rgba(128, 108, 78, 0.16);
  box-shadow:
    inset 0 8px 22px rgba(255, 255, 255, 0.72),
    inset 0 -18px 36px rgba(84, 69, 48, 0.09);
}

.studio-page .bracelet-preview::after {
  inset: 19%;
  background: radial-gradient(circle, rgba(255, 253, 249, 0.24), rgba(232, 222, 205, 0.08));
  filter: blur(0.5px);
}

.stage-panel {
  position: absolute;
  z-index: 6;
  display: grid;
  gap: 12px;
  width: clamp(150px, 16vw, 176px);
  pointer-events: auto;
}

.stage-panel-left {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.stage-panel-right {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.stage-icon-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.tool-pill,
.tool-circle,
.dark-action,
.search-pill {
  min-height: 48px;
  border: 1px solid #e4ddd2;
  border-radius: 999px;
  background: #fff;
  color: #27302b;
  font-weight: 780;
}

.tool-circle {
  display: grid;
  width: 48px;
  place-items: center;
  justify-self: center;
  font-size: 20px;
}

.dark-action {
  border-color: #26302a;
  color: #fff;
  background: #26302a;
  font-size: 16px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  color: #b0aaa0;
  overflow: hidden;
  white-space: nowrap;
}

.search-pill input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search-pill input::placeholder {
  color: #aaa59c;
}

.toolbar-action {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid #e4ddd2;
  border-radius: 999px;
  padding: 0 14px;
  color: #27302b;
  background: #fff;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
}

.toolbar-action.toolbar-primary {
  border-color: #26302a;
  color: #fff;
  background: #26302a;
}

.toolbar-action.active:not(.toolbar-primary),
.toolbar-action.active {
  border-color: #bd7168;
  box-shadow: 0 0 0 2px rgba(189, 113, 104, 0.16);
}

.toolbar-search {
  grid-template-columns: auto minmax(54px, 1fr);
  gap: 8px;
  padding-inline: 12px;
}

.toolbar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.toolbar-search input::placeholder {
  color: #aaa59c;
}

.studio-page .mode-strip {
  display: none;
}

.studio-page .editor-tabs {
  justify-content: space-around;
  margin-top: 16px;
  border-bottom: 1px solid #eee8dd;
  padding-bottom: 0;
}

.studio-page .tab {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #868a84;
  font-size: 20px;
  font-weight: 780;
}

.studio-page .tab.active {
  color: #1f1d1a;
  background: transparent;
  box-shadow: inset 0 -4px 0 #bd665d;
}

.material-dock {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  margin-top: 14px;
  border: 1px solid #eee8dd;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background: #fff;
}

.dock-categories {
  display: grid;
  align-content: start;
  gap: 0;
  background: #faf8f3;
}

.dock-categories span,
.dock-categories button {
  padding: 24px 18px;
  border: 0;
  color: #8d918b;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 760;
  text-align: left;
  font-family: inherit;
}

.dock-categories .active {
  border-left: 6px solid #bd665d;
  color: #26302a;
  background: #fff;
}

.studio-page .material-grid {
  max-height: 430px;
  overflow-y: auto;
  padding: 18px;
  margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}

.studio-page .material-card {
  min-height: 210px;
  border-color: #eee8dd;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(54, 43, 25, 0.06);
}

.studio-page .material-swatch {
  width: 72px;
  height: 72px;
}

.studio-page .material-card strong {
  min-height: 34px;
  font-size: 15px;
}

.studio-page .design-sidebar {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-page .sidebar-card {
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: none;
}

.modules-section,
.ritual-panel,
.studio-layout {
  padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

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

.module-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.module-card.active {
  border-color: rgba(184, 138, 61, 0.75);
  box-shadow: var(--shadow);
}

.module-tag {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--red);
  border-color: rgba(159, 47, 40, 0.2);
}

.module-tag.muted {
  color: var(--muted);
}

.module-card p {
  color: var(--muted);
  line-height: 1.55;
}

.ritual-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1.22fr);
  gap: 26px;
  align-items: start;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.ritual-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
}

select,
input {
  height: 48px;
  padding: 0 12px;
}

input[type="range"] {
  accent-color: var(--red);
}

textarea {
  padding: 12px;
  resize: vertical;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  background: #fffdf8;
}

.studio-main,
.sidebar-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: 0 10px 34px rgba(54, 43, 25, 0.06);
}

.studio-main {
  padding: clamp(18px, 3vw, 28px);
}

.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.price-box {
  min-width: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: right;
  background: var(--paper);
}

.price-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.price-box strong {
  display: block;
  margin-top: 2px;
  font-size: 28px;
}

.bracelet-stage {
  position: relative;
  display: grid;
  min-height: clamp(360px, 58vw, 620px);
  place-items: center;
  border: 1px solid rgba(229, 220, 205, 0.8);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 253, 248, 0.95) 0 34%, rgba(236, 225, 205, 0.92) 34.5% 35.5%, transparent 36%),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.86) 0 46%, rgba(216, 202, 177, 0.34) 47% 48%, rgba(255, 253, 248, 0.12) 51%),
    linear-gradient(145deg, #fffaf1, #ebe1cf);
  overflow: hidden;
}

.bracelet-stage::before {
  position: absolute;
  inset: 8%;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.92), transparent 26%),
    radial-gradient(circle at 52% 58%, rgba(122, 97, 55, 0.11), transparent 58%),
    #fbf5e9;
  box-shadow:
    inset 0 18px 44px rgba(255, 255, 255, 0.72),
    inset 0 -22px 42px rgba(108, 87, 49, 0.12),
    0 24px 54px rgba(76, 58, 34, 0.12);
}

.bracelet-preview {
  position: relative;
  isolation: isolate;
  z-index: 2;
  width: min(76vw, 520px);
  height: min(76vw, 520px);
  max-width: 100%;
  max-height: 100%;
}

.bracelet-preview::before {
  position: absolute;
  z-index: 0;
  inset: 5%;
  content: "";
  border: 4px double rgba(89, 86, 79, 0.28);
  border-radius: 50%;
  box-shadow:
    inset 0 8px 15px rgba(255, 255, 255, 0.74),
    inset 0 -12px 20px rgba(61, 55, 44, 0.1),
    0 7px 20px rgba(82, 55, 31, 0.1);
}

.bracelet-preview::after {
  position: absolute;
  z-index: 0;
  inset: 25%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 248, 0.28), rgba(232, 219, 194, 0.18));
  filter: blur(1px);
}

.bracelet-string-guide {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: var(--bracelet-diameter, 0%);
  height: var(--bracelet-diameter, 0%);
  border: 1.5px solid rgba(118, 102, 75, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.bead,
.charm-node {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg));
  transform-origin: var(--strand-anchor-x, 50%) var(--strand-anchor-y, 50%);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.bead {
  z-index: 3;
  width: var(--bead-width, var(--size));
  height: var(--bead-height, var(--size));
  overflow: hidden;
  border: 1px solid rgba(81, 64, 41, 0.1);
  background:
    radial-gradient(circle at 27% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.3) 18%, transparent 34%),
    radial-gradient(circle at 66% 73%, rgba(0, 0, 0, 0.19), transparent 46%),
    linear-gradient(var(--bead-rotate), rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.08) 52%, rgba(255, 255, 255, 0.2)),
    var(--bead-color);
  box-shadow:
    inset 4px 7px 10px rgba(255, 255, 255, 0.34),
    inset -8px -9px 14px rgba(0, 0, 0, 0.16),
    0 13px 22px rgba(73, 54, 36, 0.18);
}

.bead.image-bead {
  background-image: var(--bead-image);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-color: transparent;
  box-shadow:
    inset 5px 7px 10px rgba(255, 255, 255, 0.16),
    inset -8px -9px 14px rgba(0, 0, 0, 0.12),
    0 10px 15px rgba(36, 30, 22, 0.2);
  filter: saturate(1.05) contrast(1.03);
}

.bead.image-bead.round-edge-safe-bead {
  overflow: visible;
  background-size: contain;
  box-shadow: none;
  filter:
    drop-shadow(0 10px 12px rgba(73, 54, 36, 0.15))
    saturate(1.04)
    contrast(1.02);
}

.bead.image-bead.natural-shape-bead {
  overflow: visible;
  border-radius: 0;
  background-size: contain;
  background-color: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 8px 10px rgba(36, 30, 22, 0.12))
    saturate(1.05)
    contrast(1.03);
}

.bead.charm-bead {
  z-index: 5;
  width: var(--bead-width, var(--size));
  height: var(--charm-height);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background-size: contain;
  box-shadow: none;
  filter: none;
}

.bead::before {
  position: absolute;
  inset: 18%;
  content: "";
  border-radius: 50%;
  background:
    linear-gradient(var(--bead-rotate), transparent 0 28%, rgba(255, 255, 255, 0.28) 34% 40%, transparent 48%),
    linear-gradient(calc(var(--bead-rotate) + 72deg), transparent 0 45%, rgba(58, 45, 31, 0.13) 50% 53%, transparent 62%);
  opacity: 0.75;
}

.bead.image-bead::before {
  display: none;
}

.bead.charm-bead::before {
  display: none;
}

.bead.selected,
.charm-node.selected {
  box-shadow:
    0 0 0 5px rgba(159, 47, 40, 0.16),
    0 0 0 2px rgba(159, 47, 40, 0.72),
    inset 4px 7px 10px rgba(255, 255, 255, 0.34),
    inset -8px -9px 14px rgba(0, 0, 0, 0.16),
    0 15px 25px rgba(73, 54, 36, 0.22);
}

.bead.image-bead.selected {
  box-shadow:
    0 0 0 5px rgba(159, 47, 40, 0.16),
    0 0 0 2px rgba(159, 47, 40, 0.72),
    inset 5px 7px 10px rgba(255, 255, 255, 0.16),
    inset -8px -9px 14px rgba(0, 0, 0, 0.12),
    0 15px 25px rgba(73, 54, 36, 0.24);
}

.bead.image-bead.round-edge-safe-bead.selected {
  box-shadow: none;
  filter:
    drop-shadow(0 0 2px rgba(159, 47, 40, 0.7))
    drop-shadow(0 0 7px rgba(159, 47, 40, 0.2))
    drop-shadow(0 10px 12px rgba(73, 54, 36, 0.16))
    saturate(1.04)
    contrast(1.02);
}

.bead.image-bead.natural-shape-bead.selected {
  box-shadow: none;
  filter:
    saturate(1.05) contrast(1.03)
    drop-shadow(0 0 2px rgba(159, 47, 40, 0.78))
    drop-shadow(0 0 7px rgba(159, 47, 40, 0.24))
    drop-shadow(0 10px 12px rgba(73, 54, 36, 0.18));
}

.bead.charm-bead.selected {
  filter: drop-shadow(0 0 8px rgba(159, 47, 40, 0.28));
  box-shadow: none;
}

.bead:hover,
.charm-node:hover {
  transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg)) scale(1.08);
}

.bead[data-just-added="true"] {
  animation: bead-drop-in 720ms cubic-bezier(0.14, 0.86, 0.2, 1.08) both;
}

.bead[data-gathering="true"] {
  animation: bead-gather-pop 760ms cubic-bezier(0.2, 0.86, 0.22, 1) both;
  animation-delay: var(--gather-delay, 0ms);
}

.bead[data-scattering="true"] {
  animation: bead-scatter-out 640ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
  animation-delay: var(--scatter-delay, 0ms);
}

.bead[data-floating="true"] {
  animation: bead-float var(--float-duration, 3200ms) ease-in-out infinite;
  animation-delay: var(--float-delay, 0ms);
}

@keyframes bead-drop-in {
  0% {
    opacity: 0;
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%) + var(--drop-x, 0px)), calc(-1 * var(--strand-anchor-y, 50%) + var(--drop-y, 0px))) rotate(var(--item-rotate, 0deg)) scale(0.48);
    filter: blur(1.4px);
  }
  64% {
    opacity: 1;
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg)) scale(1.12);
    filter: blur(0);
  }
  82% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg)) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg)) scale(1);
    filter: blur(0);
  }
}

@keyframes bead-gather-pop {
  0% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%) + var(--gather-x, 0px)), calc(-1 * var(--strand-anchor-y, 50%) + var(--gather-y, 0px))) rotate(var(--item-rotate, 0deg)) scale(0.94);
  }
  58% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg)) scale(1.06);
  }
  100% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg)) scale(1);
  }
}

@keyframes bead-scatter-out {
  0% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%) + var(--scatter-x, 0px)), calc(-1 * var(--strand-anchor-y, 50%) + var(--scatter-y, 0px))) rotate(var(--item-rotate, 0deg)) scale(1.02);
  }
  72% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg)) scale(0.96);
  }
  100% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg)) scale(1);
  }
}

@keyframes bead-float {
  0%,
  100% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%)), calc(-1 * var(--strand-anchor-y, 50%))) rotate(var(--item-rotate, 0deg));
  }
  50% {
    transform: translate(calc(-1 * var(--strand-anchor-x, 50%) + var(--float-x, 0px)), calc(-1 * var(--strand-anchor-y, 50%) + var(--float-y, 0px))) rotate(var(--item-rotate, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bead[data-just-added="true"],
  .bead[data-gathering="true"],
  .bead[data-scattering="true"],
  .bead[data-floating="true"] {
    animation: none;
  }
}

.bead-index {
  display: none;
}

.charm-node {
  display: none;
}

.charm-node.image-charm {
  z-index: 5;
  display: block;
  width: 58px;
  height: 72px;
  border-radius: 0;
  background-image: var(--charm-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}

.mode-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid rgba(184, 138, 61, 0.26);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
}

.mode-strip span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: var(--charcoal);
  font-size: 12px;
  font-weight: 760;
}

.mode-strip p {
  margin: 0;
  line-height: 1.45;
  font-size: 13px;
}

.bead-cap-fit-warning {
  margin: 8px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(184, 138, 61, 0.25);
  border-radius: 6px;
  color: #5d554d;
  background: rgba(255, 251, 242, 0.88);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.bead-cap-fit-warning[data-status="too-small"],
.bead-cap-fit-warning[data-status="too-large"] {
  border-color: rgba(165, 83, 56, 0.34);
  color: #8c4d3b;
  background: rgba(255, 246, 240, 0.92);
}

.bead.image-bead.charm-bead.bead-cap-bead {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  filter:
    drop-shadow(0 4px 5px rgba(36, 30, 22, 0.16))
    saturate(1.02)
    contrast(1.02);
}

.bead.image-bead.charm-bead.bead-cap-bead.selected {
  box-shadow: none;
  filter:
    drop-shadow(0 0 2px rgba(159, 47, 40, 0.75))
    drop-shadow(0 0 6px rgba(159, 47, 40, 0.22))
    drop-shadow(0 4px 5px rgba(36, 30, 22, 0.16));
}

.editor-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  color: #fff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.material-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
}

.material-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px 0;
  background: var(--paper);
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}

.material-card strong,
.material-card span {
  min-width: 0;
}

.material-card:hover,
.material-card.active {
  border-color: rgba(159, 47, 40, 0.55);
}

.material-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  width: 100%;
}

.material-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 70% 75%, rgba(0, 0, 0, 0.14), transparent 48%),
    var(--bead-color);
  box-shadow:
    inset 3px 5px 9px rgba(255, 255, 255, 0.35),
    inset -7px -8px 12px rgba(0, 0, 0, 0.14),
    0 8px 16px rgba(73, 54, 36, 0.12);
}

.material-swatch.image-swatch {
  background-image: var(--bead-image);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.material-swatch.image-swatch.natural-shape-swatch {
  border-radius: 0;
  background-size: contain;
  box-shadow: none;
}

.material-swatch.image-swatch.round-edge-safe-swatch {
  background-size: contain;
  box-shadow: none;
  filter: drop-shadow(0 8px 12px rgba(73, 54, 36, 0.12));
}

.material-swatch.charm-swatch {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background-size: contain;
  box-shadow: none;
}

.bead-detail-sheet[hidden],
.spacer-picker-sheet[hidden],
.wrist-guide-sheet[hidden] {
  display: none;
}

.bead-detail-sheet,
.spacer-picker-sheet,
.wrist-guide-sheet {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.bead-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 20, 17, 0.34);
}

.bead-detail-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(620px, 100%);
  max-height: min(84vh, 760px);
  gap: 14px;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  padding: 18px;
  background: #fffdf9;
  box-shadow: 0 -18px 48px rgba(31, 26, 19, 0.24);
}

.spacer-picker-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(620px, 100%);
  max-height: min(84vh, 760px);
  gap: 16px;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  padding: 18px;
  background: #fffdf9;
  box-shadow: 0 -18px 48px rgba(31, 26, 19, 0.24);
}

.spacer-picker-header {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-right: 40px;
}

.spacer-picker-cover {
  display: block;
  width: 128px;
  height: 128px;
  border: 1px solid #ece8df;
  border-radius: 12px;
  background: var(--bead-color, #ddd);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.spacer-picker-cover.image-swatch {
  background-image: var(--bead-image);
}

.spacer-picker-header h2 {
  margin: 0 0 8px;
  color: #191815;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.spacer-picker-header p {
  margin: 0;
  color: #777168;
  font-size: 18px;
  line-height: 1.5;
}

.spacer-picker-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spacer-picker-option {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #ece3d6;
  border-radius: 10px;
  padding: 12px;
  color: #191815;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.spacer-picker-option:hover {
  border-color: rgba(159, 47, 40, 0.55);
}

.spacer-picker-swatch {
  display: block;
  width: 76px;
  height: 42px;
  border-radius: 8px;
  background: var(--bead-color, #ddd);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.spacer-picker-swatch.image-swatch {
  background-image: var(--bead-image);
}

.spacer-picker-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.spacer-picker-copy strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spacer-picker-copy small {
  color: #81796e;
  font-size: 15px;
  font-weight: 650;
}

.wrist-guide-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(680px, 100%);
  max-height: min(84vh, 780px);
  gap: 16px;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  padding: 20px;
  background: #fffdf9;
  box-shadow: 0 -18px 48px rgba(31, 26, 19, 0.24);
}

.wrist-guide-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-right: 40px;
}

.wrist-guide-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid #ece8df;
  border-radius: 50%;
  background: #faf7f1;
  font-size: 32px;
}

.wrist-guide-header h2 {
  margin: 0 0 6px;
  color: #191815;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
}

.wrist-guide-header p,
.wrist-guide-method p,
.wrist-guide-note {
  margin: 0;
  color: #7f8581;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.wrist-guide-method {
  display: grid;
  gap: 8px;
  border-radius: 14px;
  padding: 18px;
  background: #f8f8f7;
}

.wrist-guide-method h3 {
  margin: 0;
  color: #141312;
  font-size: 22px;
}

.bracelet-size-explain {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid #ece8df;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.bracelet-size-visual {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 45%, #f7f3ec 46% 100%);
}

.bracelet-size-visual::before {
  position: absolute;
  inset: 45px;
  border: 2px dashed #bd665d;
  border-radius: 50%;
  content: "";
}

.bracelet-size-visual strong {
  position: relative;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #1f1d1a;
  background: rgba(255, 253, 249, 0.92);
  font-size: 13px;
  text-transform: uppercase;
}

.size-bead {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), transparent 32%),
    radial-gradient(circle at 74% 76%, rgba(0, 0, 0, 0.14), transparent 46%),
    #d8c09a;
  box-shadow: 0 9px 18px rgba(58, 45, 31, 0.14);
}

.size-bead.b1 { transform: translate(0, -76px); }
.size-bead.b2 { transform: translate(54px, -54px); }
.size-bead.b3 { transform: translate(76px, 0); }
.size-bead.b4 { transform: translate(54px, 54px); }
.size-bead.b5 { transform: translate(0, 76px); }
.size-bead.b6 { transform: translate(-54px, 54px); }
.size-bead.b7 { transform: translate(-76px, 0); }
.size-bead.b8 { transform: translate(-54px, -54px); }

.size-inner-line {
  position: absolute;
  width: 84px;
  height: 2px;
  background: #bd665d;
}

.size-inner-line::before,
.size-inner-line::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #bd665d;
  border-right: 2px solid #bd665d;
  content: "";
}

.size-inner-line::before {
  left: 0;
  transform: translateY(-50%) rotate(-135deg);
}

.size-inner-line::after {
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

.bracelet-size-copy {
  display: grid;
  gap: 8px;
}

.bracelet-size-copy h3 {
  margin: 0;
  color: #141312;
  font-size: 22px;
}

.bracelet-size-copy p {
  margin: 0;
  color: #7f8581;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}

.size-formula {
  border-radius: 12px;
  padding: 12px;
  color: #1f1d1a;
  background: #faf7f1;
  font-size: 15px;
  font-weight: 760;
}

.bracelet-size-copy .size-example {
  color: #9f2f28;
}

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

.wrist-size-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid #ece8df;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: #fff;
}

.wrist-size-grid strong {
  color: #1f1d1a;
  font-size: 34px;
  line-height: 1;
}

.wrist-size-grid span {
  color: #8a918c;
  font-size: 14px;
  font-weight: 720;
}

.wrist-guide-note {
  border-left: 4px solid #bd665d;
  padding-left: 12px;
}

.bead-detail-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #6f6a61;
  background: rgba(236, 230, 219, 0.78);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bead-detail-hero {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.bead-detail-image {
  display: block;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 27% 24%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.22) 28%, transparent 40%),
    radial-gradient(circle at 68% 78%, rgba(0, 0, 0, 0.16), transparent 46%),
    var(--bead-color, #ddd);
  box-shadow: 0 16px 28px rgba(47, 39, 30, 0.18);
}

.bead-detail-image.image-swatch {
  background-image: var(--bead-image);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.bead-detail-image.image-swatch.natural-shape-swatch {
  border-radius: 0;
  background-size: contain;
  box-shadow: none;
}

.bead-detail-image.image-swatch.round-edge-safe-swatch {
  background-size: contain;
  box-shadow: none;
  filter: drop-shadow(0 12px 18px rgba(47, 39, 30, 0.14));
}

.bead-detail-hero h2 {
  margin: 0 38px 8px 0;
  color: #191815;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
}

.bead-detail-hero strong {
  display: block;
  margin-bottom: 12px;
  color: #9aa2aa;
  font-size: 28px;
  font-weight: 650;
}

.bead-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bead-detail-badges span {
  min-width: 74px;
  border: 1px solid #ece8df;
  border-radius: 6px;
  padding: 8px 12px;
  color: #9aa2aa;
  background: #faf9f6;
  font-size: 22px;
  line-height: 1;
}

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

.bead-detail-grid div,
.bead-detail-meaning {
  border-radius: 12px;
  padding: 18px;
  background: #f8f8f7;
}

.bead-detail-grid span,
.bead-detail-meaning h3 {
  display: block;
  margin: 0 0 10px;
  color: #141312;
  font-size: 24px;
  font-weight: 700;
}

.bead-detail-grid strong,
.bead-detail-meaning p {
  margin: 0;
  color: #9aa2aa;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .bead-detail-sheet,
  .wrist-guide-sheet {
    padding: 10px;
  }

  .wrist-guide-card {
    padding: 16px;
  }

  .wrist-guide-header {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .wrist-guide-icon {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .bracelet-size-explain {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .bracelet-size-visual {
    width: 168px;
    height: 168px;
  }

  .size-bead {
    width: 34px;
    height: 34px;
  }

  .size-bead.b1 { transform: translate(0, -67px); }
  .size-bead.b2 { transform: translate(47px, -47px); }
  .size-bead.b3 { transform: translate(67px, 0); }
  .size-bead.b4 { transform: translate(47px, 47px); }
  .size-bead.b5 { transform: translate(0, 67px); }
  .size-bead.b6 { transform: translate(-47px, 47px); }
  .size-bead.b7 { transform: translate(-67px, 0); }
  .size-bead.b8 { transform: translate(-47px, -47px); }

  .wrist-size-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .wrist-size-grid strong {
    font-size: 28px;
  }

  .bead-detail-hero {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .bead-detail-image {
    width: 116px;
    height: 116px;
  }

  .bead-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bead-detail-grid span,
  .bead-detail-meaning h3 {
    font-size: 20px;
  }

  .bead-detail-grid strong,
  .bead-detail-meaning p {
    font-size: 18px;
  }
}

.material-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 30px;
  font-size: 12px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.material-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.28;
}

.material-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  align-items: center;
  width: calc(100% + 16px);
  margin: 2px -8px 0;
  border-top: 1px solid var(--line);
}

.material-size-display {
  display: block;
  min-width: 0;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.material-size-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.material-price-display {
  display: grid;
  min-width: 58px;
  min-height: 32px;
  place-items: center;
  border-inline: 1px solid var(--line);
  background: rgba(247, 243, 235, 0.58);
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

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

.material-actions.material-actions-single .material-count {
  width: 100%;
  border-inline: 0;
}

.material-actions.material-actions-multiline .material-count {
  min-height: 46px;
  height: auto;
  padding: 5px 6px;
  white-space: normal;
}

.material-meta-lines {
  display: grid;
  gap: 1px;
}

.material-meta-lines > span {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.quantity-action,
.choose-action {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-weight: 760;
}

.quantity-action {
  min-height: 32px;
  font-size: 18px;
}

.quantity-action:hover,
.choose-action:hover {
  background: rgba(184, 138, 61, 0.1);
}

.material-count {
  display: grid;
  min-width: 66px;
  height: 26px;
  place-items: center;
  border-inline: 1px solid var(--line);
  background: rgba(247, 243, 235, 0.58);
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.choose-action {
  grid-column: 1 / -1;
  min-height: 38px;
  margin: 8px -12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.design-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sidebar-card {
  padding: 22px;
}

#reading-text {
  color: var(--muted);
  line-height: 1.7;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.summary-grid div,
.brief-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
  overflow-wrap: anywhere;
}

.summary-grid span,
.brief-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.fine-print {
  margin: 14px 0 0;
  font-size: 12px;
}

.confirmation {
  margin-top: 12px;
  border: 1px solid rgba(111, 148, 119, 0.45);
  border-radius: 8px;
  padding: 12px;
  color: #36583d;
  background: #eef6ee;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .hero-section,
  .ritual-panel,
  .studio-layout,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-media {
    min-height: 460px;
  }

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

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

  .material-grid {
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  }
}

@media (max-width: 680px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
    font-size: 13px;
  }

  .brand small {
    white-space: normal;
  }

  .hero-section,
  .hero-overlay {
    min-height: calc(100vh - 132px);
  }

  .hero-section {
    border-radius: 0 0 8px 8px;
  }

  .hero-chrome span {
    width: 118px;
    height: 42px;
  }

  .story-pill {
    min-height: 34px;
    margin-bottom: 14px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero-story p {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .hero-start {
    min-height: 58px;
    border-radius: 12px;
    font-size: 22px;
  }

  .workshop-flow {
    padding: 42px 16px 34px;
  }

  .entry-section {
    padding-inline: 16px;
  }

  .entry-card {
    border-radius: 24px;
  }

  .entry-cover {
    height: 210px;
  }

  .entry-body p {
    min-height: 0;
    font-size: 16px;
  }

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

  .flow-head {
    margin-bottom: 28px;
  }

  .flow-rail {
    grid-template-columns: repeat(4, minmax(185px, 78vw));
    gap: 28px;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .flow-step::before {
    left: 74px;
    width: calc(100% + 28px);
  }

  .flow-node {
    width: 78px;
    height: 78px;
  }

  .flow-step p {
    margin-top: 26px;
    font-size: 13px;
  }

  .flow-step h3 {
    font-size: 28px;
  }

  .flow-step small {
    font-size: 16px;
  }

  .hero-section,
  .hero-overlay {
    width: 100%;
    max-width: 100vw;
  }

  .hero-overlay,
  .modules-section,
  .ritual-panel,
  .studio-layout {
    padding-inline: 16px;
  }

  h1 {
    width: 100%;
    max-width: calc(100vw - 32px);
    font-size: 34px;
    line-height: 1.04;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  h2 {
    font-size: 30px;
  }

  .module-grid,
  .ritual-controls,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .material-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 7px;
  }

  .material-card {
    min-height: 122px;
  }

  .workbench-header {
    align-items: stretch;
    flex-direction: column;
  }

  .price-box {
    text-align: left;
  }

  .bracelet-stage {
    min-height: 390px;
  }

  .bracelet-preview {
    width: min(88vw, 360px);
    height: min(88vw, 360px);
  }

  .studio-page .topbar {
    display: none;
  }

  .diy-app {
    padding: 16px 0 0;
  }

  .diy-status {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 18px;
    font-size: 15px;
  }

  .diy-status #price {
    font-size: 24px;
  }

  .diy-settings {
    margin: 0 16px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-page .bracelet-stage {
    min-height: 520px;
  }

  .studio-page .bracelet-stage::before {
    width: min(92vw, 430px);
    height: min(92vw, 430px);
  }

  .studio-page .bracelet-preview {
    width: min(92vw, 430px);
    height: min(92vw, 430px);
  }

  .toolbar-action {
    min-height: 44px;
    font-size: 13px;
  }

  .stage-panel {
    width: auto;
    transform: none;
  }

  .stage-panel-left {
    top: auto;
    right: 18px;
    bottom: 78px;
    left: 18px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
  }

  .stage-panel-right {
    top: auto;
    right: 18px;
    bottom: 18px;
    left: 18px;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .stage-icon-row {
    gap: 6px;
  }

  .tool-pill,
  .tool-circle,
  .dark-action,
  .search-pill {
    min-height: 52px;
    font-size: 14px;
  }

  .tool-circle {
    width: 52px;
  }

  .dark-action {
    font-size: 16px;
  }

  .studio-page .editor-tabs {
    margin-inline: 18px;
  }

  .studio-page .tab {
    font-size: 18px;
  }

  .material-dock {
    grid-template-columns: 112px minmax(0, 1fr);
    margin-top: 10px;
    border-radius: 24px 24px 0 0;
    border-inline: 0;
  }

  .dock-categories span,
  .dock-categories button {
    padding: 22px 16px;
    font-size: 16px;
  }

  .studio-page .material-grid {
    max-height: 390px;
    grid-template-columns: repeat(2, minmax(118px, 1fr));
    gap: 10px;
    padding: 14px;
  }

  .studio-page .material-card {
    min-height: 194px;
  }

  .studio-page .material-swatch {
    width: 64px;
    height: 64px;
  }

  .studio-page .design-sidebar {
    grid-template-columns: 1fr;
    padding: 0 18px 24px;
  }

  /* DIY mobile responsive contract */
  html,
  body.studio-page,
  .studio-page .app-shell,
  .studio-page .diy-main,
  .studio-page .diy-app {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .studio-page .diy-status {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 10px 14px 8px;
    font-size: 13px;
  }

  .studio-page .diy-price-line {
    justify-self: start;
  }

  .studio-page .diy-wrist-line {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .studio-page .diy-guide-open {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .studio-page .bracelet-stage {
    min-height: min(100vw, 430px);
    padding: 0;
  }

  .studio-page .bracelet-stage::before,
  .studio-page .bracelet-preview {
    width: min(92vw, 396px);
    height: min(92vw, 396px);
  }

  .studio-page .bracelet-preview {
    overflow: visible;
  }

  .studio-page .mode-strip {
    margin-inline: 14px;
  }

  .studio-page .editor-tabs {
    margin: 10px 14px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .studio-page .editor-tabs::-webkit-scrollbar {
    display: none;
  }

  .studio-page .tab {
    min-width: max-content;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 15px;
  }

  .studio-page .material-dock {
    grid-template-columns: 92px minmax(0, 1fr);
    margin-top: 0;
    border-radius: 18px 18px 0 0;
  }

  .studio-page .dock-categories span,
  .studio-page .dock-categories button {
    min-height: 44px;
    padding: 14px 10px;
    font-size: 13px;
  }

  .studio-page .material-grid {
    max-height: 54vh;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .studio-page .material-card {
    min-width: 0;
    min-height: 190px;
  }
}

.policy-template-page {
  background: var(--paper);
}

.policy-template-page .topbar {
  top: 0;
}

.policy-page {
  color: var(--ink);
}

.policy-hero {
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(64px, 9vw, 128px) clamp(20px, 6vw, 86px) clamp(48px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.policy-hero .eyebrow {
  margin: 9px 0 0;
  color: #8f6428;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.policy-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.policy-hero div > p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 108px);
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) clamp(20px, 6vw, 86px);
}

.policy-index {
  position: sticky;
  top: 108px;
  display: grid;
  align-self: start;
}

.policy-index a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.policy-index a:first-child {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.policy-index a:hover {
  color: var(--ink);
}

.policy-content {
  display: grid;
  gap: 36px;
  min-width: 0;
}

.policy-content section {
  scroll-margin-top: 112px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.policy-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-content h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.policy-content p {
  margin: 0 0 14px;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

.policy-content ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.policy-content a,
.policy-support a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-updated {
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.policy-support {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(40px, 6vw, 76px) clamp(20px, 6vw, 86px);
  color: #fff;
  background: var(--charcoal);
}

.policy-support div {
  display: grid;
  gap: 8px;
}

.policy-support span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.policy-support h2,
.policy-support p {
  margin: 0;
}

.policy-support h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 600;
}

.policy-support p {
  color: rgba(255, 255, 255, 0.68);
}

.policy-support > a {
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
}

@media (max-width: 760px) {
  .policy-hero,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-index {
    position: static;
  }

  .policy-support {
    align-items: flex-start;
    flex-direction: column;
  }
}

.cart-page {
  margin: 0;
  color: #1a1815;
  background: #f5f1e9;
}

.cart-page .app-shell {
  min-height: 100vh;
}

.cart-main {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.cart-heading {
  margin-bottom: 32px;
}

.cart-heading > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.cart-heading h1,
.cart-empty h1 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.95;
}

.cart-eyebrow,
.order-summary-eyebrow {
  margin: 0;
  color: #b68235;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.cart-edit-link {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-underline-offset: 5px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.cart-layout[hidden] {
  display: none;
}

.cart-items-panel {
  min-width: 0;
  padding: 36px;
  border: 1px solid #ded6c8;
  background: #fbf8f2;
}

.order-summary-panel {
  position: sticky;
  top: 24px;
  padding: 42px;
  color: #f6f1e8;
  background: #171715;
}

.cart-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 42px;
}

.cart-meta span {
  padding: 16px 0;
  border-top: 1px solid #d8cfc0;
}

.cart-meta strong,
.cart-meta small {
  display: block;
}

.cart-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.cart-meta small {
  margin-top: 5px;
  color: #756e63;
}

.cart-items-panel > h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 130px 72px;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #ded6c8;
}

.cart-item-image {
  aspect-ratio: 1;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8e1d6;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cart-item-details p,
.cart-item-details h3 {
  margin: 0;
}

.cart-item-details p {
  color: #a66d22;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-item-details h3 {
  margin: 7px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.cart-item-details span,
.cart-item-price span,
.cart-item-quantity {
  color: #756e63;
  font-size: 13px;
}

.cart-item-price {
  text-align: right;
}

.cart-item-price span,
.cart-item-price strong {
  display: block;
}

.cart-item-price strong {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.cart-item-quantity {
  text-align: right;
}

.order-summary-panel h2 {
  margin: 22px 0 46px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 400;
}

#order-totals {
  margin: 0;
}

#order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #3b3a36;
}

#order-totals dt,
#order-totals dd {
  margin: 0;
}

#order-totals dd {
  text-align: right;
}

#order-totals .order-total {
  align-items: end;
  padding: 28px 0;
  border-bottom: 0;
}

#order-totals .order-total dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
}

#checkout-button,
.cart-primary-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 24px;
  border: 0;
  color: #171715;
  background: #d8a64f;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

.order-summary-note {
  color: #b8b4ad;
  font-size: 13px;
  line-height: 1.65;
}

.order-summary-links {
  display: flex;
  gap: 26px;
  margin: 26px 0;
}

.order-summary-links a {
  color: #f6f1e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.order-trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #3b3a36;
}

.order-trust-list span {
  padding: 16px 10px;
  color: #c4c0ba;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.order-trust-list span + span {
  border-left: 1px solid #3b3a36;
}

.cart-empty {
  max-width: 680px;
  padding: 64px 0;
}

.cart-empty > p:not(.cart-eyebrow) {
  color: #655f56;
  font-size: 18px;
  line-height: 1.7;
}

.cart-empty .cart-primary-link {
  width: fit-content;
  margin-top: 30px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .cart-main {
    width: min(100% - 40px, 1060px);
    padding: 56px 0 72px;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  }

  .cart-items-panel {
    padding: 24px;
  }

  .order-summary-panel {
    padding: 28px;
  }

  .cart-item-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
  }

  .cart-item-price,
  .cart-item-quantity {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .cart-main {
    width: min(100% - 32px, 720px);
    padding-top: 48px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .order-summary-panel {
    position: static;
  }

  .cart-item-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .cart-item-price,
  .cart-item-quantity {
    grid-column: 2;
    text-align: left;
  }
}

/* OVELIRA checkout preview */
.checkout-page {
  min-height: 100vh;
  color: #24211d;
  background: #f8f4ec;
}

.checkout-page .app-shell {
  min-height: 100vh;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid #ddd4c6;
  background: #fffdf8;
}

.checkout-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #756e64;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.checkout-header-actions a {
  color: #24211d;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.checkout-main {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(430px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.checkout-layout[hidden],
.checkout-empty[hidden] {
  display: none;
}

.checkout-products-panel,
.checkout-form-panel {
  min-width: 0;
  border: 1px solid #ddd4c6;
  background: #fffdf8;
}

.checkout-products-panel {
  padding: clamp(30px, 4vw, 54px);
}

.checkout-eyebrow {
  margin: 0;
  color: #ae792e;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.checkout-products-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 12px 0 34px;
}

.checkout-products-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 400;
  line-height: 0.98;
}

.checkout-products-heading p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #71695f;
  line-height: 1.65;
}

.checkout-products-heading > a {
  flex: 0 0 auto;
  padding-bottom: 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.checkout-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
  border-block: 1px solid #ded6ca;
}

.checkout-meta > span {
  padding: 17px 18px;
}

.checkout-meta > span + span {
  border-left: 1px solid #ded6ca;
}

.checkout-meta strong,
.checkout-meta small {
  display: block;
}

.checkout-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.checkout-meta small {
  margin-top: 5px;
  color: #776f65;
  font-size: 11px;
}

.checkout-products {
  border-top: 1px solid #ded6ca;
}

.checkout-product-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 68px 112px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #ded6ca;
}

.checkout-product-image {
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid #e7dfd4;
  background: #fff;
}

.checkout-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-product-details p,
.checkout-product-details h3 {
  margin: 0;
}

.checkout-product-details p {
  color: #a66d22;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.checkout-product-details h3 {
  margin: 7px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.checkout-product-details span,
.checkout-product-quantity,
.checkout-product-price span {
  color: #776f65;
  font-size: 12px;
}

.checkout-product-price {
  text-align: right;
}

.checkout-product-price span,
.checkout-product-price strong {
  display: block;
}

.checkout-product-price strong {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}

.checkout-natural-note {
  margin: 28px 0 0;
  color: #71695f;
  font-size: 12px;
  line-height: 1.7;
}

.checkout-form-panel {
  padding: clamp(28px, 3vw, 42px);
}

.checkout-form-panel > h2 {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
}

.checkout-form-intro {
  margin: 0 0 30px;
  color: #71695f;
  font-size: 13px;
  line-height: 1.6;
}

.checkout-form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid #ded6ca;
}

.checkout-form-section legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.checkout-field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #38342f;
  font-size: 12px;
  font-weight: 650;
}

.checkout-field label span {
  color: #847c71;
  font-weight: 400;
}

.checkout-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cfc5b6;
  border-radius: 0;
  color: #24211d;
  background: #fff;
  outline: none;
}

.checkout-field input:focus {
  border-color: #9f712d;
  box-shadow: 0 0 0 2px rgba(184, 138, 61, 0.14);
}

.checkout-field input.is-invalid {
  border-color: #9f2f28;
}

.checkout-field-error,
.checkout-field-hint {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.45;
}

.checkout-field-error {
  min-height: 14px;
  color: #942d27;
}

.checkout-field-hint {
  color: #797166;
}

.checkout-field-hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-delivery-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-block: 1px solid #ded6ca;
}

.checkout-delivery-card p,
.checkout-delivery-card span {
  margin: 0;
}

.checkout-delivery-card p {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkout-delivery-card span {
  display: block;
  margin-top: 6px;
  color: #746c61;
  font-size: 11px;
}

.checkout-review-button {
  width: 100%;
  min-height: 54px;
  padding: 15px 18px;
  border: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.checkout-review-button {
  margin-top: 22px;
  color: #fffdf8;
  background: #24211d;
  cursor: pointer;
}

.checkout-review-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: #746c61;
  font-size: 11px;
  line-height: 1.5;
}

.checkout-order-summary,
.checkout-payment-status {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #ded6ca;
}

.checkout-order-summary h3,
.checkout-payment-status h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

#checkout-totals {
  margin: 18px 0 0;
}

#checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

#checkout-totals dt,
#checkout-totals dd {
  margin: 0;
  font-size: 13px;
}

#checkout-totals dd {
  text-align: right;
}

#checkout-totals .checkout-total {
  align-items: end;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid #ded6ca;
}

#checkout-totals .checkout-total dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.checkout-payment-status {
  padding: 26px;
  color: #f7f2e9;
  background: #191918;
}

.checkout-payment-label {
  margin: 0 0 10px;
  color: #dda951;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.checkout-payment-status > p:not(.checkout-payment-label) {
  color: #bbb6ad;
  font-size: 11px;
  line-height: 1.6;
}

#paypal-button-container {
  min-height: 46px;
  margin-top: 18px;
}

.checkout-payment-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: #d1cbc1;
  font-size: 11px;
  line-height: 1.55;
}

.checkout-payment-message[data-state="error"] {
  color: #f0b7ac;
}

.checkout-payment-message[data-state="ready"] {
  color: #d9aa58;
}

.checkout-payment-confirmation {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(217, 170, 88, 0.52);
  color: #f7f2e9;
  background: rgba(217, 170, 88, 0.08);
}

.checkout-payment-confirmation[hidden] {
  display: none;
}

.checkout-payment-confirmation strong {
  color: #dda951;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.checkout-payment-confirmation span,
.checkout-payment-confirmation small {
  color: #d1cbc1;
  font-size: 11px;
  line-height: 1.5;
}

.checkout-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 24px;
}

.checkout-policy-links a {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.checkout-empty {
  max-width: 720px;
  padding: 72px 0 120px;
}

.checkout-empty h1 {
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 400;
  line-height: 1;
}

.checkout-empty > p:not(.checkout-eyebrow) {
  color: #71695f;
  font-size: 16px;
  line-height: 1.7;
}

.checkout-empty > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.checkout-empty a {
  padding: 15px 20px;
  border: 1px solid #24211d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.checkout-empty a:last-child {
  color: #fffdf8;
  background: #24211d;
}

.checkout-footer {
  justify-content: space-between;
  gap: 24px;
  color: #71695f;
  font-size: 10px;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .checkout-main {
    width: min(100% - 40px, 1080px);
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  }

  .checkout-product-row {
    grid-template-columns: 82px minmax(0, 1fr) 92px;
  }

  .checkout-product-quantity {
    grid-column: 2;
  }

  .checkout-product-price {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 900px) {
  .checkout-header {
    align-items: flex-start;
  }

  .checkout-header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
    text-align: right;
  }

  .checkout-main {
    width: min(100% - 28px, 720px);
    padding-top: 30px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-form-panel {
    position: static;
  }

  .checkout-products-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .checkout-products-panel,
  .checkout-form-panel {
    padding: 24px 18px;
  }

  .checkout-meta {
    grid-template-columns: 1fr;
  }

  .checkout-meta > span + span {
    border-top: 1px solid #ded6ca;
    border-left: 0;
  }

  .checkout-product-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 15px;
  }

  .checkout-product-quantity,
  .checkout-product-price {
    grid-column: 2;
    text-align: left;
  }

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

  .checkout-field-wide {
    grid-column: auto;
  }

  .checkout-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* OVELIRA order confirmation */
.order-confirmation-page {
  background: #f6f2ea;
  color: #181714;
}

.order-confirmation-main {
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
  padding: 88px 0 72px;
}

.order-confirmation-loading,
.order-confirmation-error {
  min-height: 480px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
}

.order-confirmation-error h1,
.order-confirmation-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.98;
}

.order-confirmation-error a {
  color: #181714;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.order-confirmation-hero {
  padding-bottom: 64px;
  border-bottom: 1px solid #d9cfbf;
}

.order-confirmation-hero > p:last-of-type {
  margin: 30px 0 0;
  font-size: 18px;
}

.order-confirmation-status {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px solid #b78737;
  color: #8b6225;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.order-confirmation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.7fr);
  gap: 72px;
  padding-top: 64px;
}

.order-confirmation-section-heading h2,
.order-confirmation-summary h2 {
  margin: 8px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
}

.order-confirmation-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid #d9cfbf;
}

.order-confirmation-item:last-child {
  border-bottom: 1px solid #d9cfbf;
}

.order-confirmation-item-image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fbf8f2;
}

.order-confirmation-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-confirmation-item-details p,
.order-confirmation-item-details h3,
.order-confirmation-item-details span {
  margin: 0;
}

.order-confirmation-item-details p {
  color: #9a6d2c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.order-confirmation-item-details h3 {
  margin-top: 7px;
  font-size: 18px;
}

.order-confirmation-item-details span {
  display: block;
  margin-top: 8px;
  color: #70695f;
}

.order-confirmation-item-price {
  white-space: nowrap;
}

.order-confirmation-summary {
  align-self: start;
  padding: 36px;
  background: #181714;
  color: #f7f2e9;
}

.order-confirmation-summary dl {
  margin: 0;
}

.order-confirmation-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.order-confirmation-summary dt,
.order-confirmation-summary dd {
  margin: 0;
}

.order-confirmation-summary .order-confirmation-total {
  margin-top: 16px;
  padding-top: 22px;
  border-top: 1px solid #b78737;
  border-bottom: 0;
  font-size: 22px;
}

.order-confirmation-summary > p {
  color: #c8c0b5;
  line-height: 1.55;
}

.order-confirmation-sandbox {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #b78737;
  color: #e2b45f !important;
}

.order-confirmation-links {
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto 48px;
}

@media (max-width: 900px) {
  .order-confirmation-main,
  .order-confirmation-links {
    width: min(100% - 32px, 720px);
  }

  .order-confirmation-main {
    padding-top: 48px;
  }

  .order-confirmation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .order-confirmation-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .order-confirmation-item-price {
    grid-column: 2;
  }
}
/* DIY onboarding popup */
.studio-page .arrange-actions.toolbar-card {
  display: block;
  margin: 16px 0 12px;
  border: 1px solid #e7ddcf;
  border-radius: 22px;
  padding: 18px 20px 14px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 34px rgba(50, 42, 30, 0.06);
}

.toolbar-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.toolbar-action-row .toolbar-action,
.toolbar-search-row .toolbar-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-inline: 20px;
}

.toolbar-action-row .toolbar-action > span[aria-hidden="true"],
.toolbar-search-row .toolbar-action > span[aria-hidden="true"] {
  color: #9a8e7e;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.toolbar-action-row .toolbar-primary > span[aria-hidden="true"],
.toolbar-search-row .toolbar-primary > span[aria-hidden="true"] {
  color: #f1e9db;
}

.toolbar-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  border-top: 1px solid #eee5d8;
  padding-top: 14px;
}

.toolbar-search-row .toolbar-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: stretch;
  padding-inline: 18px;
}

.toolbar-search-row .toolbar-search input {
  font-weight: 560;
}

.toolbar-clear-all {
  border-color: rgba(164, 95, 82, 0.58);
  color: #a45f52;
  background: #fffaf7;
}

@media (max-width: 900px) {
  .studio-page .arrange-actions.toolbar-card {
    margin-inline: 18px;
    padding: 16px;
  }

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

  .toolbar-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 640px) {
  .studio-page .arrange-actions.toolbar-card {
    margin-inline: 14px;
    border-radius: 18px;
    padding: 12px;
  }

  .toolbar-action-row,
  .toolbar-search-row { gap: 8px; }
  .toolbar-action-row .toolbar-action,
  .toolbar-search-row .toolbar-action { min-height: 44px; padding-inline: 12px; }
  .toolbar-search-row { grid-template-columns: 1fr; }
}

.onboarding-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.onboarding-sheet[hidden] {
  display: none;
}

.onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 17, 0.58);
  backdrop-filter: blur(7px);
}

.onboarding-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(680px, 100%);
  max-height: min(860px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(184, 138, 61, 0.28);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 28px 80px rgba(21, 17, 14, 0.28);
  animation: onboarding-enter 240ms ease-out both;
}

.onboarding-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.onboarding-eyebrow {
  margin: 0 0 5px;
  color: #9a6d28;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.onboarding-header h2,
.onboarding-section h3,
.onboarding-header p,
.onboarding-section p {
  margin-top: 0;
}

.onboarding-header h2 {
  margin-bottom: 5px;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.05;
}

.onboarding-header > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.onboarding-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 25px;
  cursor: pointer;
}

.onboarding-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 28px 24px;
  scrollbar-gutter: stable;
}

.onboarding-section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.onboarding-section:last-child {
  border-bottom: 0;
}

.onboarding-section h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.onboarding-section p {
  margin-bottom: 9px;
  color: #4d4740;
  line-height: 1.55;
}

.onboarding-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.onboarding-note {
  color: var(--muted) !important;
  font-size: 13px;
}

.diy-guide-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: diy-guide-step;
}

.diy-guide-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  counter-increment: diy-guide-step;
}

.diy-guide-steps li::before {
  content: counter(diy-guide-step);
  grid-row: 1 / span 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #9a6d28;
  font-size: 11px;
  font-weight: 800;
}

.diy-guide-steps strong {
  color: var(--ink);
  font-size: 13px;
}

.diy-guide-steps span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.onboarding-wrist-visual {
  margin: 12px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 61, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(145deg, #fbf6ef, #f2e5d6);
}

.onboarding-inside-fit-svg {
  display: block;
  width: 100%;
  height: auto;
}

.inside-fit-title {
  fill: #503a25;
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.inside-fit-caption {
  fill: #755f49;
  font-family: inherit;
  font-size: 18px;
  font-weight: 650;
}

.onboarding-wrist-photo {
  display: block;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: center;
}

.onboarding-fit-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.onboarding-fit-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.onboarding-fit-grid span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.onboarding-fit-grid .recommended {
  border-color: rgba(184, 138, 61, 0.65);
  background: rgba(184, 138, 61, 0.08);
}

.onboarding-fit-grid em {
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #9a6d28;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.onboarding-example,
.onboarding-tip {
  margin-top: 12px !important;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f7f3eb;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 700;
}

.onboarding-fit-visual {
  margin: 12px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 61, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.96), rgba(247, 239, 247, 0.74) 48%, transparent 70%),
    #f7f3eb;
}

.inside-fit-subtitle {
  fill: #8a708f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diameter-svg-label {
  fill: #7d5b25;
  font-family: inherit;
  font-size: 18px;
  font-weight: 750;
}

.onboarding-bead-comparison {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 61, 0.16);
  border-radius: 14px;
  background: #f8f2e9;
}

.onboarding-bead-comparison > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.92 / 1;
  object-fit: cover;
  object-position: center 28%;
}

.onboarding-bead-scale {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(184, 138, 61, 0.16);
  background: rgba(184, 138, 61, 0.12);
}

.onboarding-bead-scale > span {
  min-width: 0;
  padding: 9px 3px 8px;
  background: #fffdf9;
  text-align: center;
}

.onboarding-bead-scale strong { display: block; font-size: 11px; white-space: nowrap; }

.onboarding-bead-scale small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.onboarding-bead-scale .quarter-label { background: #f5eee3; }

.onboarding-footer {
  position: sticky;
  bottom: 0;
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fffdf9;
}

.onboarding-footer button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.onboarding-close:focus-visible,
.onboarding-footer button:focus-visible {
  outline: 3px solid rgba(184, 138, 61, 0.55);
  outline-offset: 3px;
}

html.onboarding-open,
body.onboarding-open {
  overflow: hidden;
}

@keyframes onboarding-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .onboarding-sheet { padding: 10px; }
  .onboarding-modal { max-height: calc(100dvh - 20px); border-radius: 20px; }
  .onboarding-header, .onboarding-body, .onboarding-footer { padding-inline: 18px; }
  .onboarding-header { padding-top: 20px; }
  .onboarding-section { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .onboarding-number { width: 28px; height: 28px; }
  .onboarding-fit-grid > div { display: grid; }
  .onboarding-fit-grid span { text-align: left; }
  .onboarding-bead-comparison > img { aspect-ratio: 1.72 / 1; }
  .onboarding-bead-scale { grid-template-columns: repeat(3, 1fr); }
  .onboarding-bead-scale .quarter-label { grid-column: span 3; }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-modal { animation: none; }
}
