/* Mobile product system. Loaded last so the desktop visual direction stays intact. */
@media (max-width: 639px) {
  :root {
    --mobile-gutter: 1rem;
  }

  html {
    scroll-padding-top: calc(var(--header) + 0.75rem);
  }

  body {
    overflow-x: clip;
  }

  section[id],
  #braceletBuilder {
    scroll-margin-top: calc(var(--header) + 0.75rem);
  }

  #braceletBuilder {
    scroll-margin-top: 0;
  }

  .studio.reveal {
    transform: none;
  }

  button,
  a,
  input,
  select {
    touch-action: manipulation;
  }

  /* Compact but complete mobile navigation. */
  .site-header {
    min-height: calc(var(--header) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-right: max(0.7rem, env(safe-area-inset-right));
    padding-left: max(0.7rem, env(safe-area-inset-left));
  }

  .brand {
    gap: 0.5rem;
  }

  .brand img {
    width: 2rem;
    height: 2rem;
  }

  .brand span {
    font-size: 0.78rem;
  }

  .header-tools {
    gap: 0.35rem;
    padding-right: 3rem;
  }

  .language-switch {
    gap: 0;
  }

  .lang-button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.12rem;
    font-size: 0.58rem;
  }

  .header-cta {
    display: none !important;
  }

  body:not(.diy-page) > .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  body:not(.diy-page) > .site-header .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  body:not(.diy-page) > .site-header .brand span {
    display: none;
  }

  body:not(.diy-page) > .site-header .desktop-nav {
    display: none;
  }

  body:not(.diy-page) > .site-header .header-tools {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    padding-right: 0;
  }

  .quick-cart-button {
    top: calc(0.52rem + env(safe-area-inset-top));
    right: max(0.7rem, env(safe-area-inset-right));
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
  }

  .quick-cart-total {
    display: none;
  }

  /* Preserve all six members while keeping the active character dominant. */
  .hero.hero-carousel {
    height: 100svh;
    min-height: 42rem;
  }

  .hero.hero-carousel .hero-wordmark {
    top: 18.5%;
    font-size: clamp(4.1rem, 18vw, 5.4rem);
  }

  .hero.hero-carousel .hero-character[data-role="front"] {
    bottom: 17%;
    height: 68%;
  }

  .hero.hero-carousel .hero-character[data-role="near-left"],
  .hero.hero-carousel .hero-character[data-role="near-right"] {
    bottom: 36%;
    height: 23%;
  }

  .hero.hero-carousel .hero-character[data-role="near-left"] {
    left: 16%;
  }

  .hero.hero-carousel .hero-character[data-role="near-right"] {
    left: 84%;
  }

  .hero.hero-carousel .hero-character[data-role="far-left"],
  .hero.hero-carousel .hero-character[data-role="far-right"] {
    bottom: 53%;
    height: 13.5%;
  }

  .hero.hero-carousel .hero-character[data-role="far-left"] {
    left: 5%;
  }

  .hero.hero-carousel .hero-character[data-role="far-right"] {
    left: 95%;
  }

  .hero.hero-carousel .hero-character[data-role="back"] {
    left: 50%;
    bottom: 82%;
    height: 8.5%;
    opacity: 0.9;
    filter: blur(1.2px) saturate(0.9);
  }

  .hero.hero-carousel .hero-interface {
    right: var(--mobile-gutter);
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: var(--mobile-gutter);
    align-items: end;
  }

  .hero.hero-carousel .hero-arrow {
    width: 3.15rem;
    height: 3.15rem;
  }

  .hero.hero-carousel .hero-discover {
    min-height: 3rem;
    align-items: center;
    padding-bottom: 0;
  }

  /* Product story becomes a concise editorial stack. */
  .manifesto {
    min-height: 0;
  }

  .manifesto-copy {
    min-height: 0;
    padding: 5.75rem 1.25rem 4rem;
  }

  .manifesto h2 {
    max-width: 7.5ch;
    font-size: clamp(3.15rem, 15vw, 4.65rem);
  }

  .manifesto-line {
    margin-top: 1.65rem;
  }

  .text-link {
    min-height: 2.75rem;
    margin-top: 1.8rem;
  }

  .product-film,
  .product-film img {
    min-height: 0;
  }

  .product-film {
    aspect-ratio: 3 / 2;
  }

  .product-film-photo .manifesto-product-shot {
    object-fit: contain;
    object-position: center;
  }

  .product-film-photo .manifesto-identity-overlay {
    transform: none;
  }

  /* Purpose-built mobile DIY lab: preview first, horizontal categories, large taps. */
  .studio {
    padding: 5.5rem 0 4rem;
  }

  .studio > .section-intro {
    margin-bottom: 1.25rem;
    padding: 0 var(--mobile-gutter);
  }

  .studio > .section-intro h2 {
    max-width: 9ch;
    font-size: clamp(2.9rem, 14vw, 3.65rem);
  }

  #braceletBuilder.builder-shell {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.4);
  }

  #braceletBuilder .builder-app-head {
    min-height: 3rem;
  }

  #braceletBuilder .builder-app-head button,
  #braceletBuilder .builder-actionbar button,
  #braceletBuilder .library-toolbar button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  #braceletBuilder .builder-statusbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding-inline: 0.7rem;
  }

  #braceletBuilder .wrist-guide-entry {
    min-width: 0;
    gap: 0.48rem;
  }

  #braceletBuilder .guide-button {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  #braceletBuilder .build-metrics {
    gap: 0.65rem;
    font-size: 0.58rem;
  }

  #braceletBuilder .builder-tip {
    min-height: 2.5rem;
    padding-inline: 0.75rem;
    font-size: 0.64rem;
  }

  .wrist-guide-dialog {
    width: 100vw;
    height: calc(100dvh - max(0.45rem, env(safe-area-inset-top)));
    margin: auto 0 0;
    border-radius: 1rem 1rem 0 0;
  }

  .wrist-guide-header {
    padding-top: max(0.85rem, env(safe-area-inset-top));
    padding-right: max(0.8rem, env(safe-area-inset-right));
    padding-left: max(0.9rem, env(safe-area-inset-left));
  }

  .wrist-guide-header h2 {
    font-size: 1.3rem;
  }

  .wrist-guide-close {
    width: 2.75rem;
    height: 2.75rem;
  }

  .wrist-guide-scroll {
    padding: 0.8rem max(0.75rem, env(safe-area-inset-right)) max(6.5rem, calc(env(safe-area-inset-bottom) + 5.5rem)) max(0.75rem, env(safe-area-inset-left));
    scroll-padding-bottom: max(8rem, calc(env(safe-area-inset-bottom) + 7rem));
  }

  .wrist-guide-intro {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  .wrist-guide-illustration {
    min-height: 7.8rem;
  }

  .wrist-guide-steps {
    grid-template-columns: 1fr;
  }

  .wrist-guide-step {
    padding: 0.9rem;
  }

  .wrist-guide-conversion {
    align-items: start;
  }

  .wrist-guide-fit-explainer {
    padding: 0.9rem;
    scroll-margin-top: 0.75rem;
    scroll-margin-bottom: 8rem;
  }

  .wrist-guide-fit-cards {
    gap: 0.4rem;
  }

  .wrist-guide-fit-cards article {
    min-width: 0;
    padding: 0.65rem 0.5rem;
  }

  .wrist-guide-fit-cards strong,
  .wrist-guide-fit-cards b,
  .wrist-guide-fit-cards small {
    overflow-wrap: anywhere;
  }

  .wrist-guide-done {
    position: sticky;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    z-index: 2;
    width: 100%;
    min-height: 3rem;
    margin-top: 1.1rem;
    box-shadow: 0 0.55rem 1.5rem rgba(24, 22, 19, 0.24);
  }

  #braceletBuilder .builder-stage {
    height: min(42svh, 21rem);
    min-height: 19rem;
  }

  #braceletBuilder .builder-actionbar {
    min-height: 3.6rem;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
  }

  #braceletBuilder .actionbar-left {
    gap: 0.3rem;
  }

  #braceletBuilder .builder-actionbar button {
    padding-inline: 0.7rem;
    font-size: 0.6rem;
    white-space: nowrap;
  }

  #braceletBuilder .builder-actionbar .complete-build-button {
    padding-inline: 0.8rem;
  }

  #braceletBuilder .builder-controls {
    height: 20.5rem;
    grid-template-rows: 2.7rem minmax(0, 1fr);
  }

  #braceletBuilder .library-toolbar {
    min-height: 2.7rem;
    padding-inline: 0.7rem;
  }

  #braceletBuilder .library-body {
    grid-template-columns: 1fr;
    grid-template-rows: 3.45rem minmax(0, 1fr);
  }

  #braceletBuilder .category-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #efede7;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #braceletBuilder .category-tabs::-webkit-scrollbar {
    display: none;
  }

  #braceletBuilder .category-tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 2.75rem;
    padding: 0 0.8rem 0 1.65rem;
    border: 1px solid rgba(24, 23, 21, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.66rem;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  #braceletBuilder .category-tab::before {
    display: none;
  }

  #braceletBuilder .category-tab::after {
    left: 0.72rem;
  }

  #braceletBuilder .category-tab.active {
    border-color: #181817;
    background: #181817;
    color: #fff;
    box-shadow: none;
  }

  #braceletBuilder .piece-library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    padding: 0.55rem;
  }

  #braceletBuilder .library-piece,
  #braceletBuilder .library-piece:hover,
  #braceletBuilder .library-piece:focus-visible,
  #braceletBuilder .library-piece.active {
    grid-template-rows: 2.9rem minmax(1.32rem, auto) auto;
    min-height: 6.35rem;
    padding: 0.42rem 0.2rem 0.38rem;
    border-radius: 12px;
  }

  #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.35rem), 2.65rem);
    height: max(var(--library-size, 2.35rem), 2.65rem);
  }

  #braceletBuilder .library-piece strong {
    display: grid;
    min-height: 1.32rem;
    align-items: center;
    font-size: 0.59rem;
    line-height: 1.08;
  }

  #braceletBuilder .library-piece small {
    font-size: 0.62rem;
  }

  #braceletBuilder .function-sheet {
    right: 0.55rem;
    bottom: 24.4rem;
  }

  #braceletBuilder .guide-sheet {
    top: 6.4rem;
  }

  /* Character gallery: no long blank white runway before the portrait. */
  .pack-section {
    padding: 5.5rem 0.75rem 4rem;
  }

  .pack-heading {
    display: block;
  }

  .pack-heading h2 {
    font-size: clamp(3.05rem, 14vw, 4.25rem);
  }

  .pack-expanding {
    margin-top: 1rem;
  }

  .pack-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.6rem;
    overflow: visible;
  }

  .pack-tab {
    min-width: 0;
    min-height: 3.85rem;
    padding-inline: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    font-size: 0.64rem;
  }

  .pack-feature {
    min-height: 0;
  }

  .pack-portrait {
    height: min(126vw, 31rem);
    min-height: 0;
    border-right: 0;
  }

  .pack-portrait img {
    height: 100%;
    min-height: 0;
    padding: 1rem 0.35rem 0;
    object-fit: contain;
    object-position: center bottom;
  }

  .pack-portrait span {
    left: 0.8rem;
    bottom: 0.25rem;
    font-size: 4.5rem;
  }

  .pack-copy {
    min-height: 0;
    padding: 2.25rem 1rem 3rem;
  }

  .pack-copy h3 {
    font-size: clamp(3.3rem, 16vw, 4.8rem);
  }

  .pack-copy > p:not(.micro) {
    margin-top: 1.25rem;
    font-size: 0.92rem;
  }

  .pack-token {
    margin: 2rem 0 1.5rem;
  }

  /* Mobile forms stay zoom-free and easy to tap. */
  .wrist-measure-input input,
  .wrist-measure-input select,
  .checkout-form input,
  .checkout-form select,
  .library-search-panel input {
    font-size: 16px;
  }

  /* Checkout summary is compact enough to reach delivery details quickly. */
  .checkout-header {
    min-height: calc(4rem + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .checkout-order,
  .checkout-form {
    padding: 1.5rem 1rem 2.5rem;
  }

  .checkout-order-head h2 {
    font-size: 2.45rem;
  }

  .checkout-preview {
    width: min(19rem, 78vw);
    margin: 1.15rem auto;
  }

  .checkout-items {
    max-height: 7rem;
    margin-top: 0.85rem;
  }

  .checkout-totals {
    margin-top: 1rem;
    padding-top: 0.9rem;
  }

  .checkout-form-intro {
    margin-bottom: 1.75rem;
  }

  .checkout-form-intro h2 {
    font-size: 2.6rem;
  }

  .checkout-form input,
  .checkout-form select {
    min-height: 3.5rem;
  }

  .checkout-options > :is(label, div) {
    min-height: 4.25rem;
  }

  .checkout-pay {
    min-height: 4rem;
    margin-bottom: env(safe-area-inset-bottom);
  }

  .site-footer {
    grid-template-areas:
      "brand top"
      "policies policies"
      "tagline tagline";
    grid-template-columns: 1fr auto;
    min-height: 11rem;
    padding: 1.25rem 1rem max(1.25rem, env(safe-area-inset-bottom));
  }

  .site-footer p {
    display: block;
    justify-self: start;
  }

  .footer-policy-links {
    justify-content: flex-start;
    gap: 0.75rem 1rem;
  }
}

/* Email-gated 30% welcome offer and mobile Save & Preview funnel. */
.welcome-offer-dialog {
  width:min(30rem,calc(100vw - 1rem)); max-height:calc(100svh - 1rem); overflow:auto; border:0; border-radius:1rem;
  padding:2rem 1.25rem 1.2rem; background:linear-gradient(160deg,#ffd7b7 0%,#f3b9d4 54%,#caefd5 100%);
  color:#18181b; box-shadow:0 2rem 5.5rem rgba(0,0,0,.32); text-align:center;
}
.welcome-offer-dialog::backdrop { background:rgba(19,20,24,.72); backdrop-filter:blur(.35rem); }
.welcome-offer-close {
  position:absolute; top:.8rem; right:.8rem; display:grid; width:2.75rem; height:2.75rem; place-items:center;
  border:1px solid rgba(24,24,27,.12); border-radius:50%; background:rgba(255,255,255,.38); cursor:pointer;
}
.welcome-offer-kicker { color:#5d4237; font-size:.62rem; font-weight:800; letter-spacing:.14em; }
.welcome-offer-dialog h2 { margin:.75rem 0 .45rem; font-family:var(--display); font-size:2.35rem; line-height:1; }
.welcome-offer-dialog > p { margin:0 auto 1.15rem; color:#443a36; font-size:.88rem; line-height:1.5; }
.welcome-offer-dialog > p strong { font-variant-numeric:tabular-nums; }
.welcome-offer-confetti { position:relative; width:7rem; height:4.7rem; margin:0 auto .25rem; }
.welcome-offer-confetti i { position:absolute; width:.48rem; height:1.35rem; border-radius:99px; background:#ec4899; transform:rotate(28deg); animation:gp-offer-confetti 1.35s ease-in-out infinite alternate; }
.welcome-offer-confetti i:nth-child(2n) { width:1.05rem; height:.42rem; background:#1887b7; transform:rotate(-22deg); }
.welcome-offer-confetti i:nth-child(3n) { background:#ee9814; transform:rotate(62deg); }
.welcome-offer-confetti i:nth-child(4n) { background:#168e50; }
.welcome-offer-confetti i:nth-child(1) { top:.5rem; left:.75rem; }
.welcome-offer-confetti i:nth-child(2) { top:.3rem; left:2.7rem; }
.welcome-offer-confetti i:nth-child(3) { top:.55rem; right:.5rem; }
.welcome-offer-confetti i:nth-child(4) { top:2.15rem; left:0; }
.welcome-offer-confetti i:nth-child(5) { top:2.2rem; left:1.9rem; }
.welcome-offer-confetti i:nth-child(6) { top:2.5rem; left:3.65rem; }
.welcome-offer-confetti i:nth-child(7) { top:2.05rem; right:.25rem; }
.welcome-offer-confetti i:nth-child(8) { bottom:0; left:1.2rem; }
.welcome-offer-confetti i:nth-child(9) { bottom:0; left:3rem; }
.welcome-offer-confetti i:nth-child(10) { bottom:.12rem; right:1.45rem; }
.welcome-offer-confetti i:nth-child(11) { top:1.2rem; left:4.75rem; }
.welcome-offer-confetti i:nth-child(12) { bottom:.25rem; right:0; }
.welcome-offer-dialog form,.welcome-offer-unlocked {
  border-radius:.9rem; padding:1.1rem; background:#fff; text-align:left; box-shadow:0 .5rem 1.5rem rgba(80,45,55,.08);
}
.welcome-offer-dialog form > span,.welcome-offer-unlocked > span { color:#71717a; font-size:.58rem; font-weight:800; letter-spacing:.12em; }
.welcome-offer-dialog form label { display:block; margin-top:.75rem; font-size:.8rem; font-weight:750; }
.welcome-offer-dialog form > p { margin:.22rem 0 .75rem; color:#52525b; font-size:.8rem; line-height:1.45; }
.welcome-offer-dialog input {
  width:100%; height:3.15rem; border:1px solid #dedde1; border-radius:.75rem; padding:0 .85rem; background:#f7f7f8;
  color:#18181b; font-size:1rem;
}
.welcome-offer-dialog input:focus-visible { border-color:#18181b; outline:.2rem solid rgba(236,72,153,.2); }
.welcome-offer-dialog form > button {
  width:100%; min-height:3.1rem; margin-top:.75rem; border:0; border-radius:999px; background:#18181b; color:#fff;
  cursor:pointer; font-size:.86rem; font-weight:800;
}
.welcome-offer-dialog form small { display:block; margin-top:.7rem; color:#52525b; font-size:.62rem; line-height:1.5; }
.welcome-offer-dialog form small a { text-decoration:underline; text-underline-offset:.12rem; }
.welcome-offer-status { min-height:1.1rem; color:#9f1239 !important; }
.welcome-offer-unlocked { text-align:center; }
.welcome-offer-unlocked strong { display:block; margin:.45rem 0; font-size:1.9rem; letter-spacing:.1em; }
.welcome-offer-unlocked p { margin:0; color:#52525b; font-size:.78rem; }
.welcome-offer-skip { min-height:2.75rem; margin-top:.55rem; border:0; background:transparent; color:#3f3f46; cursor:pointer; font-size:.75rem; text-decoration:underline; text-underline-offset:.16rem; }
.checkout-add-cart {
  width:100%; min-height:3.5rem; margin:.4rem 0 .7rem; border:1px solid #18181b; border-radius:0; background:#fff;
  color:#18181b; cursor:pointer; font-size:.72rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase;
}
.checkout-add-cart:hover,.checkout-add-cart:focus-visible { background:#f1f1f0; outline:.18rem solid rgba(236,72,153,.24); }
body.welcome-offer-open { overflow:hidden; }

@keyframes gp-offer-confetti { to { transform:translateY(.25rem) rotate(-12deg); } }

@media (max-width:639px) {
  html.diy-route #braceletBuilder #saveButton { display:none !important; }
  html.diy-route #braceletBuilder .actionbar-left {
    grid-template-areas:"functions reset" !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  html.diy-route #braceletBuilder .builder-actionbar .save-preview-button {
    min-width:9.5rem; min-height:2.75rem; margin-left:auto; border:0; border-radius:999px; padding:0 1rem;
    background:#18181b; color:#fff; box-shadow:0 .28rem .9rem rgba(25,24,21,.18);
  }
  html.diy-route #braceletBuilder .builder-actionbar .save-preview-button .button-icon { width:1rem; height:1rem; }
  .welcome-offer-dialog { padding:1.45rem 1rem 1rem; }
  .checkout-add-cart { min-height:3.25rem; }
}

@media (max-width:360px) {
  html.diy-route #braceletBuilder .builder-actionbar .save-preview-button { min-width:8.65rem; padding:0 .72rem; font-size:.58rem; }
}

@media (prefers-reduced-motion:reduce) {
  .welcome-offer-confetti i { animation:none; }
}

@media (max-width: 340px) {
  .brand span {
    display: none;
  }

  .header-cta {
    padding-inline: 0.55rem;
  }

  #braceletBuilder .builder-actionbar button {
    padding-inline: 0.55rem;
    font-size: 0.56rem;
  }

  #braceletBuilder .quick-reset-button {
    padding-inline: 0;
  }

  #braceletBuilder .quick-reset-label {
    display: none;
  }

  #braceletBuilder .piece-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 341px) and (max-width: 370px) {
  #braceletBuilder .build-metrics {
    display: grid;
    gap: 0.15rem;
    justify-items: end;
    line-height: 1.15;
  }

  #braceletBuilder .build-metrics span + span::before {
    display: none;
  }
}

@media (min-width: 340px) and (max-width: 433px) {
  #braceletBuilder .action-label-short {
    display: inline;
  }

  #braceletBuilder .action-label-long {
    display: none;
  }

  #braceletBuilder .builder-actionbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.12rem, 0.7vw, 0.28rem);
    min-height: 3.6rem;
    padding: 0.4rem clamp(0.25rem, 1.4vw, 0.5rem);
  }

  #braceletBuilder .actionbar-left {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    gap: clamp(0.1rem, 0.6vw, 0.25rem);
  }

  #braceletBuilder .builder-actionbar button {
    width: auto;
    min-width: 2.75rem;
    max-width: 100%;
    flex: 0 1 auto;
    justify-content: center;
    gap: clamp(0.12rem, 0.5vw, 0.24rem);
    padding-inline: clamp(0.18rem, 1.2vw, 0.6rem);
    font-size: clamp(0.72rem, 3vw, 0.78rem);
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  #braceletBuilder .builder-actionbar .complete-build-button {
    flex: 0 1 auto;
    padding-inline: clamp(0.2rem, 1.4vw, 0.7rem);
  }

  #braceletBuilder .builder-actionbar .button-icon {
    font-size: clamp(0.62rem, 2.6vw, 0.78rem);
  }
}

@media (max-width: 639px) and (orientation: landscape) and (max-height: 540px) {
  .hero.hero-carousel {
    min-height: 34rem;
  }

  .hero.hero-carousel .hero-character[data-role="front"] {
    bottom: 7%;
    height: 78%;
  }

  #braceletBuilder .builder-stage {
    height: 18rem;
    min-height: 18rem;
  }
}

/* Dedicated DIY route: the same builder and checkout, without the marketing-page runway. */
html.diy-route {
  min-height: 100%;
  scroll-padding-top: 0;
  background: #050505;
}

html.diy-route body {
  min-height: 100dvh;
  overflow-x: clip;
  background: #050505;
}

html.diy-route .diy-site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(18px);
}

html.diy-route .quick-cart-button {
  z-index: 170;
}

html.diy-route body.builder-focus .diy-site-header {
  pointer-events: auto;
  transform: none;
}

html.diy-route .diy-home-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-self: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

html.diy-route .diy-home-link:hover,
html.diy-route .diy-home-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

html.diy-route .diy-main {
  min-height: calc(100svh - var(--header));
}

html.diy-route .diy-studio {
  min-height: calc(100svh - var(--header));
  padding: clamp(0.75rem, 2vh, 1.25rem) clamp(0.75rem, 2vw, 2rem) 1.5rem;
}

html.diy-route .diy-studio > .section-intro {
  display: none;
}

html.diy-route #braceletBuilder.builder-shell {
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

html.diy-route .diy-footer {
  min-height: 8rem;
  border-top-color: rgba(255, 255, 255, 0.16);
}

@media (min-width: 1100px) {
  html.diy-route .diy-studio {
    display: block;
  }

  html.diy-route #braceletBuilder.builder-shell {
    width: min(1680px, calc(100vw - 2rem));
    height: min(64rem, calc(100svh - var(--header) - 1.5rem));
    min-height: 34rem;
  }
}

@media (max-width: 639px) {
  html.diy-route .diy-site-header {
    grid-template-columns: auto minmax(2.75rem, 1fr) auto;
  }

  html.diy-route .diy-site-header .header-tools {
    padding-right: 2.9rem;
  }

  html.diy-route .diy-home-link {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.55rem;
  }

  html.diy-route .diy-studio {
    min-height: 0;
    padding: 0 0 max(1rem, env(safe-area-inset-bottom));
  }

  html.diy-route #braceletBuilder.builder-shell {
    min-height: calc(100svh - var(--header));
    border-top: 0;
    box-shadow: none;
  }

  /* The dedicated page already has brand, back and menu controls in its
     site header. Removing the duplicate app chrome recovers valuable mobile
     height without removing any builder function. */
  html.diy-route #braceletBuilder .builder-app-head,
  html.diy-route #braceletBuilder .builder-tip {
    display: none;
  }

  html.diy-route #braceletBuilder .builder-statusbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9;
    min-height: 3.2rem;
    padding: 0.35rem 0.7rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(245, 244, 240, 0.94), rgba(245, 244, 240, 0));
  }

  html.diy-route #braceletBuilder .builder-statusbar button {
    pointer-events: auto;
  }

  html.diy-route #braceletBuilder .builder-stage {
    height: min(40svh, 20rem);
    min-height: 17.75rem;
  }

  html.diy-route .diy-footer {
    min-height: 10rem;
  }
}

@media (max-width: 370px) {
  html.diy-route .diy-site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  /* The brand mark already returns home. On the narrowest phones the second
     back control is redundant and otherwise crowds language + cart targets. */
  html.diy-route .diy-home-link {
    display: none;
  }

  html.diy-route .diy-site-header .header-tools {
    min-width: 0;
    justify-self: end;
  }

  html.diy-route .diy-home-link span:last-child {
    display: none;
  }
}

/* Social-app browsers reserve a large top toolbar, leaving a short content
   viewport. Keep every 44px control intact while bringing the library into
   the first screen sooner. The bead library remains vertically scrollable. */
@media (max-width: 639px) and (max-height: 760px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(13.75rem, 31dvh, 15.25rem);
    min-height: 13.75rem;
  }

  html.diy-route #braceletBuilder .builder-actionbar {
    min-height: 3.25rem;
    padding-block: 0.25rem;
  }

  html.diy-route #braceletBuilder .builder-controls {
    height: 18.25rem;
    grid-template-rows: 2.55rem minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .library-toolbar {
    min-height: 2.55rem;
  }

  html.diy-route #braceletBuilder .library-body {
    grid-template-rows: 3.15rem minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .category-tabs {
    padding-block: 0.2rem;
  }

  html.diy-route #braceletBuilder .piece-library {
    padding-top: 0.42rem;
  }
}

@media (max-width: 639px) and (max-height: 620px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(11.75rem, 29dvh, 13.25rem);
    min-height: 11.75rem;
  }

  html.diy-route #braceletBuilder .builder-controls {
    height: 17.25rem;
  }
}

@media (max-width: 639px) and (max-height: 520px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(9.75rem, 27dvh, 11.25rem);
    min-height: 9.75rem;
  }

  html.diy-route #braceletBuilder .builder-controls {
    height: 16.5rem;
  }
}

/* 2026-08 launch surgery: luxury header, editorial stone product, clearer
   sizing education and a materially larger dedicated design workspace. */
:root {
  --announcement-height: 2.25rem;
}

.announcement-bar {
  position: fixed;
  z-index: 190;
  inset: 0 0 auto;
  height: var(--announcement-height);
  color: #eee9df;
  background: #2a2825;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.announcement-bar a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-inline: 1rem;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.announcement-bar span {
  color: rgba(255, 255, 255, 0.58);
  font-family: "IBM Plex Mono", monospace;
}

.announcement-bar strong {
  font-weight: 600;
}

body:not(.diy-page) > .site-header {
  top: var(--announcement-height);
}

body:not(.diy-page) > .quick-cart-button {
  top: calc(var(--announcement-height) + 0.72rem + env(safe-area-inset-top));
}

@media (min-width: 900px) {
  body:not(.diy-page) > .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  body:not(.diy-page) > .site-header .desktop-nav {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
    gap: clamp(1.25rem, 2.1vw, 2.6rem);
  }

  body:not(.diy-page) > .site-header .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  body:not(.diy-page) > .site-header .header-tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

.hero-discover {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.hero-discover > small {
  color: rgba(255, 255, 255, 0.74);
  font: 600 0.68rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-discover > span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-discover b {
  font: inherit;
}

.product-film-photo .manifesto-product-shot {
  object-fit: contain;
  object-position: center;
  filter: saturate(0.78) contrast(1.04);
}

.product-film-photo .manifesto-identity-overlay[hidden] {
  display: none !important;
}

.wrist-guide-dialog {
  width: min(48rem, calc(100vw - 2rem));
  height: min(54rem, calc(100dvh - 2rem));
  border-radius: 1.15rem;
}

.wrist-guide-header {
  position: relative;
  justify-content: center;
  padding: 1.35rem 4.2rem 1.1rem;
  text-align: center;
}

.wrist-guide-header .wrist-guide-kicker {
  display: none;
}

.wrist-guide-header h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.wrist-guide-header .wrist-guide-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border-color: transparent;
  background: transparent;
}

.wrist-guide-scroll {
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 5vw, 3.25rem) max(2rem, env(safe-area-inset-bottom));
}

.wrist-sizing-lead > p {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  color: #5b6474;
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
}

.wrist-circle-figure {
  display: grid;
  gap: 0.8rem;
  max-width: 27rem;
  margin: 0 auto;
  padding: 1.25rem;
  background: #f0f0ee;
  border-radius: 1rem;
}

.wrist-circle-visual {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f1e9;
  border-radius: 0.8rem;
}

.wrist-circle-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrist-circle-measure {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54%;
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  color: #222321;
  background: rgba(255, 253, 248, 0.82);
  border: 2px dashed rgba(42, 42, 40, 0.78);
  border-radius: 50%;
  box-shadow: inset 0 0 1.5rem rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
}

.wrist-circle-measure strong {
  font: 650 clamp(0.72rem, 2.4vw, 1rem)/1.1 "DM Sans", sans-serif;
  letter-spacing: 0.05em;
}

.wrist-circle-measure small {
  margin-top: 0.35rem;
  color: #777a76;
  font: 500 clamp(0.58rem, 1.8vw, 0.72rem)/1.2 "DM Sans", sans-serif;
}

.wrist-circle-figure figcaption {
  color: #667083;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.wrist-diagram-title {
  fill: #222321;
  font: 650 17px "DM Sans", sans-serif;
  letter-spacing: 0.05em;
}

.wrist-diagram-sub {
  fill: #777a76;
  font: 12px "DM Sans", sans-serif;
}

.wrist-measure-section,
.wrist-size-table-section,
.wrist-guide-fit-explainer {
  margin-top: 1.25rem;
  padding: clamp(1rem, 2.6vw, 1.4rem);
  background: #fff;
  border: 1px solid #ddd9d0;
  border-radius: 0.8rem;
}

.wrist-tape-visual {
  margin: 1rem 0;
  overflow: hidden;
  background: #f4f3f0;
  border-radius: 0.7rem;
}

.wrist-tape-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.wrist-measure-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.35rem;
  color: #656c78;
  font-size: 0.76rem;
  line-height: 1.55;
}

.wrist-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid #dfdcd5;
  border-radius: 0.6rem;
}

.wrist-size-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  color: #4e5869;
  font-size: 0.74rem;
  text-align: left;
}

.wrist-size-table th,
.wrist-size-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e4e1db;
}

.wrist-size-table thead th {
  color: #2c3441;
  background: #f1f1ef;
  font-weight: 700;
}

.wrist-size-table tbody tr:nth-child(even) {
  background: #f7f7f5;
}

.wrist-size-table tbody tr:last-child > * {
  border-bottom: 0;
}

@media (min-width: 1100px) {
  html.diy-route .diy-main,
  html.diy-route .diy-studio {
    min-height: calc(100svh - var(--header));
  }

  html.diy-route .diy-studio {
    padding: 0.6rem 0.75rem 1.25rem;
  }

  html.diy-route #braceletBuilder.builder-shell {
    width: min(1880px, calc(100vw - 1.5rem));
    height: auto;
    min-height: 0;
    max-width: none;
  }

  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(38rem, calc(100svh - var(--header) - 5rem), 52rem);
  }

  html.diy-route #braceletBuilder .bracelet-core {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@media (max-width: 899px) {
  :root {
    --announcement-height: 2rem;
  }

  .announcement-bar a {
    gap: 0.4rem;
    padding-inline: 0.65rem;
    font-size: 0.56rem;
  }

  .announcement-bar span {
    display: none;
  }
}

@media (max-width: 639px) {
  .hero-discover {
    gap: 0.3rem;
  }

  .hero-discover > small {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
  }

  .wrist-guide-dialog {
    inset: auto 0 0;
    width: 100%;
    height: min(92dvh, 52rem);
    margin: 0;
    border-radius: 1rem 1rem 0 0;
  }

  .wrist-guide-scroll {
    padding-inline: 0.85rem;
  }

  .wrist-circle-figure {
    padding: 0.75rem;
  }

  .wrist-measure-section,
  .wrist-size-table-section,
  .wrist-guide-fit-explainer {
    padding: 0.85rem;
  }

  .wrist-size-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 0.7rem;
  }

  .wrist-size-table th,
  .wrist-size-table td {
    padding: 0.65rem 0.45rem;
    overflow-wrap: anywhere;
  }

  .wrist-size-table th:first-child,
  .wrist-size-table td:first-child {
    width: 14%;
  }

  .wrist-size-table th:nth-child(2),
  .wrist-size-table td:nth-child(2) {
    width: 42%;
  }

  .wrist-size-table th:nth-child(3),
  .wrist-size-table td:nth-child(3) {
    width: 44%;
  }

  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(20rem, 44dvh, 25rem);
    min-height: 20rem;
  }
}

html.diy-route .diy-site-header {
  top: 0;
}

html.diy-route .quick-cart-button {
  top: calc(0.72rem + env(safe-area-inset-top));
}

@media (max-width: 639px) and (max-height: 760px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(15rem, 36dvh, 18rem);
    min-height: 15rem;
  }
}

@media (max-width: 639px) and (max-height: 620px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(12.5rem, 31dvh, 15rem);
    min-height: 12.5rem;
  }
}

/* Fixed viewport DIY lab: the page never becomes the scroll container.
   The catalog rail and bead grid own their scrolling, matching a dedicated
   product-configurator workspace while preserving Groovypawz interaction. */
html.diy-route .brand img,
body:not(.diy-page) > .site-header .brand img {
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.guide-button-label {
  display: none;
}

@media (min-width: 1100px) {
  html.diy-route {
    --header: 3.25rem;
    height: 100dvh;
    overflow: hidden;
  }

  html.diy-route body {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  html.diy-route .diy-site-header {
    position: relative;
    height: var(--header);
    min-height: var(--header);
    padding-block: 0;
    background: #0b0b0b;
  }

  html.diy-route .diy-main,
  html.diy-route .diy-studio {
    width: 100%;
    height: calc(100dvh - var(--header));
    min-height: 0;
    overflow: hidden;
  }

  html.diy-route .diy-studio {
    padding: 0;
  }

  html.diy-route #braceletBuilder.builder-shell {
    display: grid;
    grid-template-columns: clamp(28rem, 36vw, 34rem) minmax(0, 1fr) clamp(16rem, 18vw, 19rem);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  html.diy-route #braceletBuilder .builder-app-head,
  html.diy-route #braceletBuilder .builder-tip {
    display: none;
  }

  html.diy-route #braceletBuilder .builder-controls {
    grid-row: 1;
    grid-column: 1;
    grid-template-rows: 3rem minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--line);
  }

  html.diy-route #braceletBuilder .library-toolbar {
    min-height: 3rem;
    padding-inline: 0.8rem;
    background: #fbfaf7;
    border-bottom: 1px solid var(--line);
  }

  html.diy-route #braceletBuilder .library-body {
    grid-template-columns: 8rem minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  html.diy-route #braceletBuilder .category-tabs,
  html.diy-route #braceletBuilder .piece-library {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b5b1a8 transparent;
  }

  html.diy-route #braceletBuilder .category-tabs {
    padding-block: 0.3rem 1rem;
  }

  html.diy-route #braceletBuilder .category-tab {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.65rem 0.75rem 0.65rem 1.85rem;
    overflow: visible;
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
  }

  html.diy-route #braceletBuilder .piece-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem;
    align-content: start;
    background: #f7f6f2;
  }

  html.diy-route #braceletBuilder .library-piece,
  html.diy-route #braceletBuilder .library-piece:hover,
  html.diy-route #braceletBuilder .library-piece:focus-visible,
  html.diy-route #braceletBuilder .library-piece.active {
    grid-template-rows: 4.25rem minmax(2.5em, auto) minmax(1.45rem, auto);
    min-height: 9rem;
    padding: 0.55rem 0.6rem 0.5rem;
    border-radius: 0.65rem;
  }

  html.diy-route #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.5rem), 3.35rem);
    height: max(var(--library-size, 2.5rem), 3.35rem);
  }

  html.diy-route #braceletBuilder .library-piece strong {
    width: 100%;
    font-size: 0.72rem;
    line-height: 1.22;
    display: block;
    min-height: 2.3em;
    overflow: visible;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  html.diy-route #braceletBuilder .library-piece small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0.08rem 0.38rem;
    overflow: visible;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: normal;
  }

  html.diy-route #braceletBuilder .library-piece small > span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html.diy-route #braceletBuilder .library-piece small > b {
    min-width: 0;
    font-size: 0.72rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  html.diy-route #braceletBuilder .builder-stage {
    grid-row: 1;
    grid-column: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background: radial-gradient(circle at 50% 50%, #fff 0 28%, #f9f8f5 72%, #f1efe9 100%);
  }

  html.diy-route #braceletBuilder .bracelet-core {
    transform: translate(-50%, -50%) scale(1.08);
  }

  html.diy-route #braceletBuilder .builder-statusbar {
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    grid-row: 1;
    grid-column: 3;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    height: 100%;
    padding: 1rem 1rem 11.5rem;
    pointer-events: auto;
    background: #f8f7f3;
    border-left: 1px solid var(--line);
  }

  html.diy-route #braceletBuilder .build-metrics {
    display: grid;
    order: 1;
    gap: 0.45rem;
    justify-items: center;
    padding: 1rem 0.75rem;
    color: #20241f;
    background: #edf6ed;
    border: 1px solid #bdd9bd;
    border-radius: 0.85rem;
    font-family: "IBM Plex Mono", monospace;
    line-height: 1.25;
    text-align: center;
  }

  html.diy-route #braceletBuilder .build-metrics span:first-child {
    font-size: 0.78rem;
    font-weight: 600;
  }

  html.diy-route #braceletBuilder .build-metrics span:last-child {
    font-size: 0.9rem;
    font-weight: 700;
  }

  html.diy-route #braceletBuilder .build-metrics span + span::before {
    display: none;
  }

  html.diy-route #braceletBuilder .wrist-guide-entry {
    position: relative;
    z-index: 2;
    top: auto;
    right: auto;
    align-self: center;
    order: 2;
    margin: 0.85rem auto 0;
  }

  html.diy-route #braceletBuilder .guide-button {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 0.65rem;
    color: #fff !important;
    background: #a83f37 !important;
    box-shadow: 0 0.5rem 1.35rem rgba(67, 24, 20, 0.22);
  }

  html.diy-route #braceletBuilder .guide-button-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  html.diy-route #braceletBuilder .guide-button > span {
    width: 100%;
    height: 100%;
    font-size: 1rem;
  }

  html.diy-route #braceletBuilder .builder-actionbar {
    position: relative;
    z-index: 3;
    display: flex;
    grid-row: 1;
    grid-column: 3;
    align-self: end;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    min-height: 0;
    padding: 1rem;
    background: linear-gradient(to top, #f8f7f3 82%, rgba(248, 247, 243, 0));
    border: 0;
    border-left: 1px solid var(--line);
  }

  html.diy-route #braceletBuilder .actionbar-left {
    display: grid;
    grid-template-areas:
      "save save"
      "functions reset";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }

  html.diy-route #braceletBuilder #functionButton { grid-area: functions; }
  html.diy-route #braceletBuilder #saveButton { grid-area: save; }
  html.diy-route #braceletBuilder #quickResetButton { grid-area: reset; }

  html.diy-route #braceletBuilder .builder-actionbar button {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    justify-content: center;
    padding-inline: 0.55rem;
    border: 1px solid #d8d4cb;
    border-radius: 0.65rem;
    background: #fff;
    white-space: nowrap;
  }

  html.diy-route #braceletBuilder .builder-actionbar .save-build-button {
    color: #1d1d1b;
    background: #eceae5;
  }

  html.diy-route #braceletBuilder .builder-actionbar .complete-build-button {
    min-height: 3.25rem;
    color: #fff;
    background: #181817;
    border-color: #181817;
  }

  html.diy-route #braceletBuilder .function-sheet {
    right: calc(clamp(16rem, 18vw, 19rem) + 0.75rem);
    bottom: 1rem;
  }

  html.diy-route .diy-footer {
    display: none;
  }
}

/* 2026-08-18 mobile studio polish: a clean white configurator, a materially
   larger editing stage and compact secondary chrome. Desktop and mobile share
   one count-independent physical bracelet track. */
@media (max-width: 639px) {
  html.diy-route {
    --header: 3.25rem;
    background: #fff;
  }

  html.diy-route body,
  html.diy-route .diy-main,
  html.diy-route .diy-studio,
  html.diy-route #braceletBuilder.builder-shell,
  html.diy-route #braceletBuilder .builder-controls,
  html.diy-route #braceletBuilder .library-body,
  html.diy-route #braceletBuilder .piece-library {
    background: #fff;
  }

  html.diy-route .diy-site-header {
    height: var(--header);
    min-height: var(--header);
    padding-block: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: none;
  }

  html.diy-route .diy-site-header .brand img {
    width: 1.65rem;
    height: 1.65rem;
  }

  html.diy-route .diy-site-header .brand span {
    font-size: 0.72rem;
  }

  html.diy-route .quick-cart-button {
    top: calc(0.25rem + env(safe-area-inset-top));
  }

  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(20rem, 52dvh, 24rem);
    min-height: 20rem;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e8e7e2;
  }

  html.diy-route #braceletBuilder .bracelet-ring {
    border-color: #d8d8d4;
    box-shadow: 0 0.15rem 0.55rem rgba(20, 20, 18, 0.045);
  }

  html.diy-route #braceletBuilder .bracelet-core {
    transform: translate(-50%, -50%) scale(1.08);
  }

  html.diy-route #braceletBuilder .builder-statusbar {
    top: 0.45rem;
    right: 0.55rem;
    left: 0.55rem;
    min-height: 2.75rem;
    padding: 0;
    background: transparent;
  }

  html.diy-route #braceletBuilder .build-metrics {
    padding: 0.42rem 0.62rem;
    color: #676761;
    background: rgba(255, 255, 255, 0.94);
    border-color: #deddd8;
    box-shadow: 0 0.25rem 0.8rem rgba(20, 20, 18, 0.055);
    backdrop-filter: none;
  }

  html.diy-route #braceletBuilder .guide-button {
    border-color: #a83f37;
    border-radius: 0.65rem;
    box-shadow: 0 0.28rem 0.75rem rgba(80, 28, 24, 0.18);
  }

  html.diy-route #braceletBuilder .builder-actionbar {
    min-height: 3.15rem;
    padding: 0.3rem 0.45rem;
    background: #fff;
    border-top: 0;
    border-bottom: 1px solid #e8e7e2;
  }

  html.diy-route #braceletBuilder .builder-actionbar button {
    min-height: 2.75rem;
    border-color: #d7d6d1;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
  }

  html.diy-route #braceletBuilder .builder-actionbar .save-build-button {
    color: #fff;
    background: #a83f37;
    border-color: #a83f37;
  }

  html.diy-route #braceletBuilder .builder-actionbar .complete-build-button {
    color: #171715;
    background: #fff;
    border-color: #171715;
  }

  html.diy-route #braceletBuilder .builder-actionbar .complete-build-button.is-empty-blocked {
    color: #9a9993;
    background: #f4f3ef;
    border-color: #deddd8;
  }

  html.diy-route #braceletBuilder .builder-controls {
    grid-template-rows: 2.45rem minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .library-toolbar {
    min-height: 2.45rem;
    padding-inline: 0.65rem;
    background: #fff;
    border-bottom-color: #e8e7e2;
  }

  html.diy-route #braceletBuilder .library-body {
    grid-template-rows: 3.15rem minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .category-tabs {
    gap: 0.32rem;
    padding: 0.3rem 0.5rem;
    background: #fff;
    border-bottom-color: #e8e7e2;
  }

  html.diy-route #braceletBuilder .category-tab {
    min-height: 2.55rem;
    padding-right: 0.72rem;
    padding-left: 1.55rem;
    background: #f7f7f4;
    border-color: #e2e1dc;
  }

  /* Mobile color palette: keep action categories readable, but turn the ten
     material colors into generous swatch controls. The original button text
     remains in the DOM as the accessible name while the visual label is
     suppressed at this breakpoint. */
  html.diy-route #braceletBuilder .category-tab:not([data-category="used"]):not([data-category="metal"]) {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    color: transparent;
    background: #fff;
    border-color: #d9d7d0;
    border-radius: 999px;
    box-shadow: 0 0.12rem 0.42rem rgba(24, 23, 20, 0.06);
    font-size: 0;
    line-height: 0;
    text-align: center;
    touch-action: manipulation;
  }

  html.diy-route #braceletBuilder .category-tab:not([data-category="used"]):not([data-category="metal"])::after {
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(20, 19, 17, 0.24), 0 0.12rem 0.32rem rgba(24, 23, 20, 0.16);
    transform: translate(-50%, -50%);
  }

  html.diy-route #braceletBuilder .category-tab:not([data-category="used"]):not([data-category="metal"]).active {
    background: #fff;
    border-color: #171715;
    box-shadow: inset 0 0 0 1px #171715, 0 0.2rem 0.6rem rgba(24, 23, 20, 0.12);
  }

  html.diy-route #braceletBuilder .category-tab:not([data-category="used"]):not([data-category="metal"]).active::after {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #171715;
    transform: translate(-50%, -50%) scale(0.82);
  }

  html.diy-route #braceletBuilder .category-tab:not([data-category="used"]):not([data-category="metal"]):focus-visible {
    outline: 3px solid #a83f37;
    outline-offset: 2px;
  }

  html.diy-route #braceletBuilder .category-tab[data-category="used"],
  html.diy-route #braceletBuilder .category-tab[data-category="metal"] {
    min-height: 2.75rem;
    padding-right: 0.8rem;
    padding-left: 1.65rem;
    font-size: 0.66rem;
    touch-action: manipulation;
  }

  html.diy-route #braceletBuilder .piece-library {
    gap: 0.38rem;
    padding: 0.48rem;
  }

  html.diy-route #braceletBuilder .library-piece,
  html.diy-route #braceletBuilder .library-piece:hover,
  html.diy-route #braceletBuilder .library-piece:focus-visible,
  html.diy-route #braceletBuilder .library-piece.active {
    min-height: 7.25rem;
    border-color: #e5e4df;
    border-radius: 0.72rem;
    background: #fff;
    box-shadow: 0 0.16rem 0.55rem rgba(22, 22, 20, 0.035);
  }
}

@media (max-width: 639px) and (max-height: 760px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(18.75rem, 50dvh, 22rem);
    min-height: 18.75rem;
  }
}

@media (max-width: 639px) and (max-height: 620px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(17.25rem, 48dvh, 19.5rem);
    min-height: 17.25rem;
  }
}

@media (max-width: 639px) and (max-height: 520px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(15.5rem, 46dvh, 17rem);
    min-height: 15.5rem;
  }
}

/* 2026-08-17 conversion pass: a real studio entry on the homepage, a visible
   sizing affordance, launch offer hierarchy and a 150% dedicated preview. */
.announcement-bar em {
  padding-left: 0.75rem;
  color: rgba(255, 255, 255, 0.66);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-style: normal;
  font-weight: 500;
}

body:not(.diy-page) > .site-header .brand {
  transform: translateY(-0.22rem);
}

body:not(.diy-page) #studio {
  min-height: 0;
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1rem, 3vw, 3.5rem);
  background: #080808;
}

body:not(.diy-page) #studio > .section-intro,
body:not(.diy-page) #studio > #braceletBuilder {
  display: none;
}

.studio-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
  width: min(92rem, 100%);
  min-height: min(44rem, 76dvh);
  margin: 0 auto;
  overflow: hidden;
  color: #151513;
  background: #f2f0e9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.35rem;
  box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, 0.42);
}

.studio-entry-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5.5vw, 5.75rem);
}

.studio-entry-copy > span {
  color: #9f3f37;
  font: 700 0.7rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
}

.studio-entry-copy h3 {
  max-width: 12.5ch;
  margin: 1.35rem 0 1.15rem;
  font-size: clamp(3rem, 5.35vw, 5.35rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.018em;
}

.studio-entry-copy p {
  max-width: 31rem;
  margin: 0;
  color: #68675f;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.55;
}

.studio-entry-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.85rem 1.25rem;
  color: #fff;
  background: #171716;
  border: 1px solid #171716;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.studio-entry-cta:hover,
.studio-entry-cta:focus-visible {
  color: #171716;
  background: transparent;
  transform: translateY(-2px);
}

.studio-entry-copy small {
  margin-top: 0.85rem;
  color: #87857c;
  font-size: 0.72rem;
}

.studio-entry-visual {
  position: relative;
  min-height: 32rem;
  margin: 0;
  overflow: hidden;
  background: #d7d6d0;
}

.studio-entry-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.04);
  transform: scale(1.02);
}

.studio-entry-visual figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  color: #fff;
  background: rgba(16, 16, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  backdrop-filter: blur(14px);
  font: 600 0.65rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
}

html.diy-route .studio-entry {
  display: none;
}

@media (min-width: 1100px) {
  html.diy-route #braceletBuilder.builder-shell {
    /* Canvas-first desktop split. From 1366px upward the stage owns at least
       75% of the viewport; compact rails retain readable, scrollable content. */
    grid-template-columns: clamp(10.5rem, 14vw, 17rem) minmax(0, 1fr) clamp(8.5rem, 11vw, 13.5rem);
  }

  html.diy-route #braceletBuilder .bracelet-core {
    transform: translate(-50%, -50%) scale(1.28);
  }
}

@media (min-width: 1600px) {
  html.diy-route #braceletBuilder.builder-shell {
    grid-template-columns: clamp(10.5rem, 14vw, 17rem) minmax(0, 1fr) clamp(8.5rem, 11vw, 13.5rem);
  }

  html.diy-route #braceletBuilder .function-sheet {
    right: calc(clamp(8.5rem, 11vw, 13.5rem) + 0.75rem);
  }
}

@media (max-width: 1099px) {
  html.diy-route #braceletBuilder .builder-statusbar {
    position: absolute;
    z-index: 12;
    top: 0.55rem;
    right: 0.55rem;
    left: 0.55rem;
    display: flex;
    min-height: 2.75rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0;
    pointer-events: none;
    background: transparent;
    border: 0;
  }

  html.diy-route #braceletBuilder .wrist-guide-entry {
    display: block;
    margin: 0;
    pointer-events: auto;
  }

  html.diy-route #braceletBuilder .guide-button {
    display: grid;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    place-items: center;
    color: #fff;
    background: #a83f37;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 0.65rem;
    box-shadow: 0 0.45rem 1.25rem rgba(67, 24, 20, 0.22);
  }

  html.diy-route #braceletBuilder .guide-button .guide-button-label {
    position: absolute !important;
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  html.diy-route #braceletBuilder .build-metrics {
    padding: 0.45rem 0.65rem;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(26, 26, 24, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 899px) {
  .announcement-bar em {
    display: none;
  }
}

@media (max-width: 639px) {
  body:not(.diy-page) > .site-header .brand {
    transform: translateY(-0.38rem);
  }

  body:not(.diy-page) #studio {
    padding: 3rem 0.75rem;
  }

  .studio-entry {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 1rem;
  }

  .studio-entry-copy {
    padding: 2rem 1.25rem 2.25rem;
  }

  .studio-entry-copy h3 {
    margin-top: 1rem;
    font-size: clamp(2.8rem, 14vw, 4.15rem);
    line-height: 0.98;
    letter-spacing: -0.016em;
  }

  .studio-entry-cta {
    width: 100%;
    min-height: 3.25rem;
  }

  .studio-entry-visual {
    min-height: 20rem;
    aspect-ratio: 1 / 1;
  }

  .studio-entry-visual figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  html.diy-route #braceletBuilder .build-metrics {
    font-size: 0.54rem;
  }
}

@media (min-width: 1100px) and (max-width: 1599px) {
  html.diy-route #braceletBuilder .library-body {
    grid-template-columns: clamp(4.25rem, 5vw, 5rem) minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .piece-library {
    grid-template-columns: minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .builder-statusbar {
    padding-bottom: 15.5rem;
  }

  html.diy-route #braceletBuilder .actionbar-left {
    grid-template-areas:
      "save"
      "functions"
      "reset";
    grid-template-columns: minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .library-piece,
  html.diy-route #braceletBuilder .library-piece:hover,
  html.diy-route #braceletBuilder .library-piece:focus-visible,
  html.diy-route #braceletBuilder .library-piece.active {
    min-height: 9rem;
    padding-inline: 0.6rem;
  }

  html.diy-route #braceletBuilder .library-piece strong {
    font-size: 0.75rem;
  }

  html.diy-route #braceletBuilder .library-piece small {
    font-size: 0.68rem;
  }
}

@media (min-width: 1600px) {
  html.diy-route #braceletBuilder.builder-shell {
    grid-template-columns: clamp(10.5rem, 14vw, 17rem) minmax(0, 1fr) clamp(8.5rem, 11vw, 13.5rem);
  }

  html.diy-route #braceletBuilder .library-body {
    grid-template-columns: clamp(4.5rem, 5vw, 6rem) minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .piece-library {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.8rem;
  }

  html.diy-route #braceletBuilder .library-piece strong {
    font-size: 0.76rem;
  }

  html.diy-route #braceletBuilder .library-piece small {
    font-size: 0.7rem;
  }

  html.diy-route #braceletBuilder .library-piece small > b {
    font-size: 0.75rem;
  }

  html.diy-route #braceletBuilder .function-sheet {
    right: calc(clamp(8.5rem, 11vw, 13.5rem) + 0.75rem);
  }
}

/* Two-column desktop library without giving back the 75% design canvas.
   The catalog, summary and actions now share the left 25% rail; the stage
   remains a clean, unobstructed 75% of the viewport. */
@media (min-width: 1100px) {
  html.diy-route #braceletBuilder.builder-shell {
    grid-template-columns: minmax(0, 25vw) minmax(0, 75vw);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  html.diy-route #braceletBuilder .builder-statusbar {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    height: auto;
    min-height: 4.1rem;
    padding: 0.6rem 0.7rem;
    background: #f8f7f3;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  html.diy-route #braceletBuilder .build-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
    gap: 0.2rem 0.55rem;
    min-width: 0;
    padding: 0.65rem 0.55rem;
  }

  html.diy-route #braceletBuilder .wrist-guide-entry {
    flex: 0 0 auto;
    margin: 0;
  }

  html.diy-route #braceletBuilder .builder-controls {
    grid-column: 1;
    grid-row: 2;
    height: 100%;
    min-height: 0;
  }

  html.diy-route #braceletBuilder .library-body {
    grid-template-columns: clamp(4rem, 5vw, 5.5rem) minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .piece-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.55rem;
  }

  html.diy-route #braceletBuilder .library-piece,
  html.diy-route #braceletBuilder .library-piece:hover,
  html.diy-route #braceletBuilder .library-piece:focus-visible,
  html.diy-route #braceletBuilder .library-piece.active {
    grid-template-rows: 3.35rem minmax(2.5em, auto) minmax(1.4rem, auto);
    min-height: 8.25rem;
    padding: 0.48rem 0.4rem 0.45rem;
  }

  html.diy-route #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.5rem), 3rem);
    height: max(var(--library-size, 2.5rem), 3rem);
  }

  html.diy-route #braceletBuilder .builder-stage {
    grid-column: 2;
    grid-row: 1 / -1;
  }

  html.diy-route #braceletBuilder .builder-actionbar {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: 1;
    grid-row: 3;
    align-self: stretch;
    gap: 0.45rem;
    width: 100%;
    padding: 0.55rem 0.7rem 0.7rem;
    background: #f8f7f3;
    border: 0;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  html.diy-route #braceletBuilder .actionbar-left {
    grid-template-areas: "save functions reset";
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.diy-route #braceletBuilder .function-sheet {
    right: auto;
    bottom: 7.5rem;
    left: calc(clamp(4rem, 5vw, 5.5rem) + 0.65rem);
  }
}

/* Homepage CTA hierarchy: the attitude line belongs above the action. */
.hero.hero-carousel .hero-discover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.52rem;
  width: max-content;
  max-width: min(31rem, 46vw);
  text-align: left;
}

.hero.hero-carousel .hero-discover > small {
  display: block;
  order: 1;
  color: #fff;
  font: 700 clamp(0.88rem, 0.9vw, 1rem)/1.25 "IBM Plex Mono", monospace;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  width: 100%;
  white-space: nowrap;
}

.hero.hero-carousel .hero-discover > span {
  display: inline-flex;
  order: 2;
  align-items: center;
  gap: 0.8rem;
}

@media (max-width: 639px) {
  .hero.hero-carousel .hero-discover {
    gap: 0.38rem;
    width: auto;
    max-width: none;
  }

  .hero.hero-carousel .hero-discover > small {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: 0.045em;
  }

  html.diy-route,
  html.diy-route body {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  html.diy-route .diy-main,
  html.diy-route .diy-studio {
    height: calc(100dvh - var(--header));
    min-height: 0;
    overflow: hidden;
  }

  html.diy-route #braceletBuilder.builder-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  html.diy-route #braceletBuilder .builder-controls {
    height: auto;
    min-height: 0;
    grid-template-rows: 2.55rem minmax(0, 1fr);
    overflow: hidden;
  }

  html.diy-route #braceletBuilder .library-body,
  html.diy-route #braceletBuilder .piece-library {
    height: 100%;
    min-height: 0;
    overscroll-behavior: contain;
  }

  html.diy-route #braceletBuilder .piece-library {
    overflow-x: hidden;
    overflow-y: auto;
  }

  html.diy-route #braceletBuilder .library-piece,
  html.diy-route #braceletBuilder .library-piece:hover,
  html.diy-route #braceletBuilder .library-piece:focus-visible,
  html.diy-route #braceletBuilder .library-piece.active {
    grid-template-rows: 2.9rem minmax(3.24em, auto) minmax(1.35rem, auto);
    min-height: 7.65rem;
  }

  html.diy-route #braceletBuilder .library-piece strong {
    display: block;
    min-height: 3.24em;
    overflow: visible;
    white-space: normal;
    text-wrap: balance;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }

  html.diy-route #braceletBuilder .guide-button .guide-button-label {
    display: inline !important;
  }

  html.diy-route .diy-home-link {
    gap: 0.2rem;
    white-space: nowrap;
  }

  html.diy-route .diy-footer {
    display: none;
  }
}

/* 2026-08-20 mobile conversion polish: TikTok and social-webview visitors get
   a larger editing stage, readable three-column catalog cards and an explicit
   empty-state instruction. This layer intentionally changes presentation only;
   bracelet geometry, pricing, drag physics and checkout data stay untouched. */
@media (max-width: 639px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(21.25rem, 54dvh, 26rem);
    min-height: 21.25rem;
  }

  html.diy-route #braceletBuilder .empty-ring-hint {
    top: calc(50% + 4.2rem);
    max-width: calc(100% - 7rem);
    padding: 0.24rem 0.58rem;
    color: #66645e;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(29, 28, 25, 0.09);
    border-radius: 999px;
    box-shadow: 0 0.2rem 0.65rem rgba(25, 24, 21, 0.05);
    font-size: 0.68rem;
    line-height: 1.25;
    letter-spacing: 0.025em;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
  }

  html.diy-route #braceletBuilder .library-toolbar,
  html.diy-route #braceletBuilder .library-tools button {
    font-size: 0.7rem;
  }

  html.diy-route #braceletBuilder .library-tools button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding-inline: 0.55rem;
  }

  html.diy-route #braceletBuilder .library-piece strong {
    font-size: clamp(0.66rem, 2.85vw, 0.72rem);
    line-height: 1.16;
  }

  html.diy-route #braceletBuilder .library-piece small {
    gap: 0.1rem 0.28rem;
    font-size: clamp(0.64rem, 2.7vw, 0.69rem);
    line-height: 1.2;
  }

  html.diy-route #braceletBuilder .builder-actionbar button,
  html.diy-route #braceletBuilder .category-tab,
  html.diy-route #braceletBuilder .library-piece {
    -webkit-tap-highlight-color: rgba(168, 63, 55, 0.12);
  }

  html.diy-route #braceletBuilder #quickResetButton,
  html.diy-route #braceletBuilder #quickResetButton:hover,
  html.diy-route #braceletBuilder #quickResetButton:focus-visible,
  html.diy-route #braceletBuilder #quickResetButton:active {
    color: #34312d;
    background: #f8f7f3;
    border-color: #aaa49a;
  }

  html.diy-route #braceletBuilder #librarySearchInput {
    min-height: 2.75rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  html.diy-route #braceletBuilder .builder-actionbar button:active,
  html.diy-route #braceletBuilder .library-piece:active {
    filter: brightness(0.96);
  }

  html.diy-route #braceletBuilder .piece-library {
    scroll-padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 639px) and (max-height: 760px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(19rem, 51dvh, 22.75rem);
    min-height: 19rem;
  }
}

@media (max-width: 639px) and (max-height: 620px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(17.5rem, 49dvh, 20rem);
    min-height: 17.5rem;
  }
}

@media (max-width: 639px) and (max-height: 520px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(14.5rem, 45dvh, 16rem);
    min-height: 14.5rem;
  }
}

/* 2026-08-21 mobile care pass: keep the clean, large fixed canvas while
   reclaiming the action-row height for the independently scrolling catalog.
   The result follows proven mobile configurator ergonomics without copying a
   competitor's brand treatment: three dense product columns, compact swatch
   filters, fixed physical bead scale and a one-tap purchase path. */
@media (max-width: 639px) {
  html.diy-route #braceletBuilder.builder-shell {
    grid-template-rows: auto 0 minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(21rem, 52dvh, 25rem);
    min-height: 21rem;
    background: #fff;
  }

  html.diy-route #braceletBuilder .builder-actionbar {
    position: relative;
    z-index: 24;
    align-self: start;
    width: calc(100% - 0.9rem);
    min-height: 3rem;
    margin: 0 0.45rem;
    padding: 0;
    background: transparent;
    border: 0;
    transform: translateY(calc(-100% - 0.45rem));
  }

  html.diy-route #braceletBuilder .builder-actionbar button {
    min-height: 2.75rem;
    background: rgba(255,255,255,.96);
    border-color: #cfcac0;
    box-shadow: 0 .28rem .9rem rgba(25,24,21,.08);
  }

  html.diy-route #braceletBuilder .button-icon {
    width: 1rem;
    height: 1rem;
  }

  html.diy-route #braceletBuilder .builder-controls {
    grid-template-rows: 2.35rem minmax(0, 1fr);
    background: #fff;
    border-top: 1px solid #e4e2dc;
  }

  html.diy-route #braceletBuilder .library-toolbar {
    min-height: 2.35rem;
    padding-inline: 0.55rem;
  }

  html.diy-route #braceletBuilder .library-body {
    grid-template-rows: 3rem minmax(0, 1fr);
  }

  html.diy-route #braceletBuilder .category-tabs {
    height: 3rem;
    gap: 0.28rem;
    padding: 0.2rem 0.45rem;
  }

  html.diy-route #braceletBuilder .category-tab:not([data-category="used"]):not([data-category="metal"]) {
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    min-height: 2.55rem;
  }

  html.diy-route #braceletBuilder .category-tab:not([data-category="used"]):not([data-category="metal"])::after {
    width: 1.34rem;
    height: 1.34rem;
  }

  html.diy-route #braceletBuilder .category-tab[data-category="used"],
  html.diy-route #braceletBuilder .category-tab[data-category="metal"] {
    min-height: 2.55rem;
  }

  html.diy-route #braceletBuilder .piece-library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.34rem;
    padding: 0.38rem;
  }

  html.diy-route #braceletBuilder .library-piece,
  html.diy-route #braceletBuilder .library-piece:hover,
  html.diy-route #braceletBuilder .library-piece:focus-visible,
  html.diy-route #braceletBuilder .library-piece.active {
    grid-template-rows: 2.55rem minmax(2.32em, auto) minmax(1.15rem, auto);
    min-height: 6.85rem;
    padding: 0.34rem 0.28rem 0.32rem;
    border-radius: 0.68rem;
  }

  html.diy-route #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.1rem), 2.35rem);
    height: max(var(--library-size, 2.1rem), 2.35rem);
  }

  html.diy-route #braceletBuilder .library-piece strong {
    min-height: 2.32em;
    font-size: clamp(0.61rem, 2.62vw, 0.68rem);
    line-height: 1.12;
  }

  html.diy-route #braceletBuilder .library-piece small {
    font-size: clamp(0.59rem, 2.55vw, 0.65rem);
  }

  html.diy-route .gp-support-launcher {
    bottom: calc(3.65rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 639px) and (max-height: 760px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(18.75rem, 49dvh, 22rem);
    min-height: 18.75rem;
  }
}

@media (max-width: 639px) and (max-height: 620px) {
  html.diy-route #braceletBuilder .builder-stage {
    height: clamp(17rem, 47dvh, 19rem);
    min-height: 17rem;
  }
}

@media (max-width: 350px) {
  html.diy-route #braceletBuilder .piece-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* P0 mobile catalog row containment. Product cards gained a three-line
   specification block (axial thickness/length, outside diameter, price).
   Let the grid row own that full block instead of letting text escape the old
   fixed-height card into the next row in Android/TikTok WebViews. */
@media (max-width: 639px) {
  html.diy-route #braceletBuilder .piece-library {
    grid-auto-rows: minmax(9.2rem, auto);
    align-items: stretch;
    row-gap: 0.5rem;
  }

  html.diy-route #braceletBuilder .library-piece,
  html.diy-route #braceletBuilder .library-piece:hover,
  html.diy-route #braceletBuilder .library-piece:focus-visible,
  html.diy-route #braceletBuilder .library-piece.active {
    grid-template-rows: 2.7rem minmax(1.8rem, auto) minmax(2.5rem, auto);
    row-gap: 0.3rem;
    align-self: stretch;
    min-height: 9.2rem;
    height: 100%;
    padding: 0.42rem 0.3rem 0.4rem;
    overflow: visible;
  }

  html.diy-route #braceletBuilder .library-piece strong {
    display: block;
    min-height: 2.4em;
    font-size: clamp(0.62rem, 2.68vw, 0.69rem);
    line-height: 1.2;
    overflow: visible;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  html.diy-route #braceletBuilder .library-piece small {
    display: grid;
    grid-template-rows: minmax(2.35em, auto) minmax(1.15em, auto);
    align-content: start;
    justify-items: center;
    gap: 0.16rem;
    min-height: 3.65em;
    overflow: visible;
    line-height: 1.18;
    white-space: normal;
  }

  html.diy-route #braceletBuilder .library-piece .piece-spec {
    display: grid;
    grid-template-rows: repeat(2, minmax(1.08em, auto));
    gap: 0.08rem;
    min-height: 2.35em;
    align-content: start;
  }

  html.diy-route #braceletBuilder .library-piece .piece-spec-primary,
  html.diy-route #braceletBuilder .library-piece .piece-spec-secondary,
  html.diy-route #braceletBuilder .library-piece small > b {
    min-height: 1.08em;
    line-height: 1.18;
    white-space: nowrap;
  }
}
