/* Full-width desktop canvas and fixed mobile studio regions. */
body.magcryst-theme .page{max-width:none;width:100%;padding-left:clamp(24px,5vw,96px);padding-right:clamp(24px,5vw,96px)}
body.magcryst-theme .hero-grid{max-width:1600px;margin:0 auto}
body.magcryst-theme .hero-model{position:absolute;inset:8% 8% 4%;width:84%;height:88%;z-index:3;--poster-color:transparent;background:transparent}
body.magcryst-theme .hero-stage .bracelet-orbit{z-index:1;opacity:.2}
body.magcryst-theme .feature-strip,body.magcryst-theme .home-section{max-width:1600px;margin-left:auto;margin-right:auto}
body.magcryst-theme .studio-vertical{max-width:1600px;margin:0 auto}
body.magcryst-theme .studio-vertical .canvas-panel{position:sticky;top:88px;z-index:8}
body.magcryst-theme .studio-vertical .bracelet-canvas{min-height:clamp(380px,58vh,720px)}
body.magcryst-theme .studio-vertical .parts-panel{position:relative}
body.magcryst-theme .studio-vertical .parts-workbench{height:clamp(420px,58vh,720px);min-height:0}
body.magcryst-theme .studio-vertical .parts-content{overflow:hidden;display:flex;flex-direction:column}
body.magcryst-theme .studio-vertical .bead-grid{flex:1;max-height:none;overflow-y:auto;overscroll-behavior:contain}
body.magcryst-theme .preview-bead{overflow:hidden;padding:0;background:var(--stone,#c89cbd)}
body.magcryst-theme .preview-bead img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
body.magcryst-theme .bead-swatch img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
body.magcryst-theme .bead-flight img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
body.magcryst-theme .shop-art img{display:block;width:100%;height:100%;object-fit:cover}
@media (min-width:901px){body.magcryst-theme .studio-vertical .parts-panel{margin-top:24px}body.magcryst-theme .studio-vertical .canvas-panel{display:grid;grid-template-rows:auto 1fr auto}body.magcryst-theme .studio-vertical .bracelet-canvas{min-height:560px}}
@media (max-width:900px){body.magcryst-theme .site-header{position:sticky;top:0}body.magcryst-theme .page{padding-left:14px;padding-right:14px}body.magcryst-theme .studio-vertical{padding-top:calc(100vh - 74px + 18px)}body.magcryst-theme .studio-vertical .canvas-panel{position:fixed;top:74px;left:0;right:0;height:calc(100vh - 74px);z-index:20;margin:0;border-left:0;border-right:0;display:grid;grid-template-rows:58px 1fr auto;overflow:hidden}body.magcryst-theme .studio-vertical .bracelet-canvas{min-height:0;height:auto}body.magcryst-theme .studio-vertical .parts-panel{margin-left:-14px;margin-right:-14px}body.magcryst-theme .studio-vertical .parts-workbench{height:clamp(430px,55vh,700px)}body.magcryst-theme .studio-vertical .category-rail{position:sticky;left:0;top:0;z-index:2;background:var(--surface)}}
@media (max-width:900px){body.magcryst-theme .page[data-page="design"]{height:calc(100vh - 74px);min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:18px;padding-bottom:10px}body.magcryst-theme .page[data-page="design"] .page-heading{flex:0 0 auto;margin-bottom:14px}body.magcryst-theme .studio-vertical{height:100%;min-height:0;padding-top:0;display:flex!important;flex-direction:column}body.magcryst-theme .studio-vertical .canvas-panel{position:relative;top:auto;left:auto;right:auto;height:auto;flex:0 0 min(46vh,410px);margin:0;border-left:0;border-right:0;display:grid;grid-template-rows:58px 1fr auto;z-index:1;overflow:hidden}body.magcryst-theme .studio-vertical .bracelet-canvas{min-height:0;height:auto}body.magcryst-theme .studio-vertical .parts-panel{flex:1;min-height:0;margin:14px 0 0;overflow:hidden}body.magcryst-theme .studio-vertical .parts-workbench{height:100%;min-height:0}}
@media (max-width:900px){body.magcryst-theme .page[data-page="design"] .page-heading{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}body.magcryst-theme .page[data-page="design"] .page-heading h1{font-size:clamp(1.75rem,7vw,2.5rem);line-height:1;margin:0}body.magcryst-theme .page[data-page="design"] .page-heading .eyebrow{margin-bottom:6px}body.magcryst-theme .page[data-page="design"] .page-heading .button{align-self:auto;padding:0 13px;font-size:11px;min-height:38px}}
@media (max-width:520px){body.magcryst-theme .studio-vertical .canvas-panel{top:74px}body.magcryst-theme .studio-vertical .parts-workbench{height:58vh;min-height:410px}body.magcryst-theme .studio-vertical .bead-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
body.magcryst-theme .preview-bracelet{aspect-ratio:1/1;height:auto;position:relative}
body.magcryst-theme .preview-bracelet::before{content:'';position:absolute;inset:0;border:1px dashed rgba(218,205,211,.62);border-radius:50%;pointer-events:none;z-index:0}
body.magcryst-theme .preview-bracelet.empty{width:min(70%,420px);height:auto;aspect-ratio:1/1;background:transparent;border:0}
body.magcryst-theme .preview-bead{background:transparent!important;border:0;box-shadow:none;overflow:hidden;padding:0;filter:none!important}
body.magcryst-theme .preview-bead img{object-fit:contain;border-radius:0}
body.magcryst-theme .bead-swatch{background:transparent!important;box-shadow:none!important}
body.magcryst-theme .bead-swatch.placeholder::after{display:none}
body.magcryst-theme .bead-swatch img{object-fit:contain;border-radius:0}
body.magcryst-theme .ai-strip{display:none!important}
body:not(.magcryst-theme) .preview-bracelet{aspect-ratio:1/1;height:auto;position:relative}
body:not(.magcryst-theme) .preview-bracelet::before{content:'';position:absolute;inset:0;border:1px dashed rgba(218,205,211,.62);border-radius:50%;pointer-events:none;z-index:0}
body:not(.magcryst-theme) .preview-bracelet.empty{width:min(70%,420px);height:auto;aspect-ratio:1/1;background:transparent;border:0}
body:not(.magcryst-theme) .preview-bead{background:transparent!important;border:0;box-shadow:none;overflow:hidden;padding:0;filter:none!important}
body:not(.magcryst-theme) .preview-bead img{object-fit:contain;border-radius:0}
body:not(.magcryst-theme) .bead-swatch{background:transparent!important;box-shadow:none!important}
body:not(.magcryst-theme) .bead-swatch.placeholder::after{display:none}
body:not(.magcryst-theme) .bead-swatch img{object-fit:contain;border-radius:0}
body:not(.magcryst-theme) .ai-strip{display:none!important}

/* Final responsive studio geometry. */
body.magcryst-theme .preview-bracelet,
body:not(.magcryst-theme) .preview-bracelet{width:min(72%,520px);max-width:520px;aspect-ratio:1/1;height:auto;position:relative}
body.magcryst-theme .preview-bracelet::before,
body:not(.magcryst-theme) .preview-bracelet::before{content:'';inset:5%;z-index:0;border:1px solid rgba(120,102,112,.72);border-radius:50%;pointer-events:none}
body.magcryst-theme .preview-bracelet > .preview-bead,
body:not(.magcryst-theme) .preview-bracelet > .preview-bead{z-index:1}
body.magcryst-theme .preview-bead,
body:not(.magcryst-theme) .preview-bead{animation:none!important}
body.magcryst-theme .bead-flight,
body:not(.magcryst-theme) .bead-flight{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;filter:none!important;overflow:visible}
body.magcryst-theme .bead-flight img,
body:not(.magcryst-theme) .bead-flight img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0!important}
@media (min-width:901px){
  body.magcryst-theme .studio-vertical .bead-grid,
  body:not(.magcryst-theme) .studio-vertical .bead-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
}
@media (max-width:900px){
  body.magcryst-theme .page[data-page="design"],body:not(.magcryst-theme) .page[data-page="design"]{height:calc(100vh - 74px);min-height:0;overflow:hidden}
  body.magcryst-theme .studio-vertical,body:not(.magcryst-theme) .studio-vertical{height:100%;min-height:0;display:flex!important;flex-direction:column}
  body.magcryst-theme .studio-vertical .canvas-panel,body:not(.magcryst-theme) .studio-vertical .canvas-panel{flex:0 0 min(62vh,500px);min-height:440px}
  body.magcryst-theme .studio-vertical .canvas-panel,body:not(.magcryst-theme) .studio-vertical .canvas-panel{position:relative;top:auto;left:auto;right:auto;height:auto;margin:0;display:grid;grid-template-rows:58px 1fr auto;z-index:1;overflow:hidden}
  body.magcryst-theme .studio-vertical .canvas-panel,body:not(.magcryst-theme) .studio-vertical .canvas-panel{grid-template-columns:minmax(0,1fr)}
  body.magcryst-theme .studio-vertical .canvas-top,body:not(.magcryst-theme) .studio-vertical .canvas-top{min-width:0;overflow:hidden}
  body.magcryst-theme .studio-vertical .bracelet-canvas,body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{min-height:0;height:auto;align-self:stretch}
  body.magcryst-theme .studio-vertical .bracelet-canvas,body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{min-width:0;width:100%;box-sizing:border-box}
  body.magcryst-theme .studio-vertical .parts-panel,body:not(.magcryst-theme) .studio-vertical .parts-panel{flex:1;min-height:0}
  body.magcryst-theme .studio-vertical .parts-workbench,body:not(.magcryst-theme) .studio-vertical .parts-workbench{height:100%;min-height:0}
  body.magcryst-theme .studio-vertical .parts-content,body:not(.magcryst-theme) .studio-vertical .parts-content{min-height:0;overflow:hidden}
  body.magcryst-theme .studio-vertical .parts-content,body:not(.magcryst-theme) .studio-vertical .parts-content{display:flex;flex:1;flex-direction:column}
  body.magcryst-theme .studio-vertical .bead-grid,body:not(.magcryst-theme) .studio-vertical .bead-grid{flex:1;max-height:none}
  body.magcryst-theme .studio-vertical .bead-grid,body:not(.magcryst-theme) .studio-vertical .bead-grid{grid-template-columns:repeat(3,minmax(0,1fr));height:220px;min-height:220px;flex:0 0 220px;overflow-y:auto;overflow-x:hidden}
  body.magcryst-theme .studio-vertical .category-rail,body:not(.magcryst-theme) .studio-vertical .category-rail{overflow-y:auto;overflow-x:hidden}
}

/* Five live design metrics: stacked and right-aligned on phones, compact and
 * fluid on desktop. The first metric is the actual fit range inferred from
 * the current occupied length; the material-specific bead ceiling is its note. */
.design-metrics{grid-template-columns:repeat(5,minmax(0,1fr));align-items:start}
.design-metrics .metric{min-width:0;gap:5px}
.design-metrics .metric span{font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.design-metrics .metric strong{font-size:18px;line-height:1.15;white-space:nowrap}
.design-metrics .metric small{display:block;color:var(--muted);font-size:9px;line-height:1.25;min-height:1.25em}
@media (max-width:900px){
  .design-metrics{position:absolute;z-index:3;top:64px;right:18px;width:112px;display:flex;flex-direction:column;gap:13px;padding:0;border:0;background:transparent;text-align:right}
  .design-metrics .metric{align-items:flex-end;text-align:right}
  .design-metrics .metric span{font-size:9px}
  .design-metrics .metric strong{font-size:15px}
  .design-metrics .metric small{font-size:8px;max-width:112px}
  .studio-vertical .bracelet-canvas{padding-right:128px}
}
@media (max-width:520px){
  .design-metrics{right:16px;width:104px;gap:11px}
  .design-metrics .metric strong{font-size:14px}
  .design-metrics .metric small{font-size:7.5px}
  .studio-vertical .bracelet-canvas{padding-right:116px}
}

.design-metrics .metric-fit strong{color:var(--pink-soft)}
.design-metrics .metric:nth-child(2) strong{color:var(--blue)}
.design-metrics .metric:nth-child(3) strong{color:var(--mint)}
.design-metrics .metric:nth-child(4) strong{color:var(--lavender)}
.design-metrics .metric:nth-child(5) strong{color:var(--gold)}

/* Studio polish: denser bracelet geometry, a calmer selection cue, and a
   balanced desktop split that gives the catalogue more working room. */
body.magcryst-theme .preview-bead.selected,
body:not(.magcryst-theme) .preview-bead.selected{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  animation:magcryst-selected-breathe 1.8s ease-in-out infinite!important;
  filter:none!important;
}
@keyframes magcryst-selected-breathe{
  0%,100%{transform:translate(-50%,-50%) rotate(var(--rotation,0deg)) scale(1);opacity:.88}
  50%{transform:translate(-50%,-50%) rotate(var(--rotation,0deg)) scale(1.18);opacity:1}
}
@media (prefers-reduced-motion:reduce){
  body.magcryst-theme .preview-bead.selected,
  body:not(.magcryst-theme) .preview-bead.selected{animation:none!important;filter:none!important}
}

@media (min-width:901px){
  body.magcryst-theme .page[data-page="design"] .page-heading,
  body:not(.magcryst-theme) .page[data-page="design"] .page-heading{
    margin-bottom:32px;
    align-items:center;
  }
  body.magcryst-theme .page[data-page="design"] .page-heading h1,
  body:not(.magcryst-theme) .page[data-page="design"] .page-heading h1{
    max-width:820px;
    font-size:clamp(44px,4.2vw,76px);
    line-height:.94;
  }
  body.magcryst-theme .studio-vertical,
  body:not(.magcryst-theme) .studio-vertical{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
  }
  body.magcryst-theme .studio-vertical .parts-workbench,
  body:not(.magcryst-theme) .studio-vertical .parts-workbench{grid-template-columns:92px minmax(0,1fr)}
  body.magcryst-theme .studio-vertical .category-rail,
  body:not(.magcryst-theme) .studio-vertical .category-rail{padding-left:7px;padding-right:7px}
}

/* Uploaded bead art is the source of truth. Do not synthesize a bead hole,
   radial highlight, or black shadow behind transparent artwork. The fixed
   center line in the bracelet preview is the only threading guide. */
body.magcryst-theme .preview-bead,
body:not(.magcryst-theme) .preview-bead,
body.magcryst-theme .bead-swatch,
body:not(.magcryst-theme) .bead-swatch,
body.magcryst-theme .bead-flight,
body:not(.magcryst-theme) .bead-flight{
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
body.magcryst-theme .preview-bead img,
body:not(.magcryst-theme) .preview-bead img,
body.magcryst-theme .bead-swatch img,
body:not(.magcryst-theme) .bead-swatch img,
body.magcryst-theme .bead-flight img,
body:not(.magcryst-theme) .bead-flight img{
  background:transparent!important;
  border-radius:0!important;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

/* The current material is indicated only by its gentle scale animation.
   Suppress browser focus rings and legacy card outlines around bead artwork. */
body.magcryst-theme .preview-bead:focus,
body.magcryst-theme .preview-bead:focus-visible,
body:not(.magcryst-theme) .preview-bead:focus,
body:not(.magcryst-theme) .preview-bead:focus-visible,
body.magcryst-theme .bead-card:focus,
body.magcryst-theme .bead-card:focus-visible,
body:not(.magcryst-theme) .bead-card:focus,
body:not(.magcryst-theme) .bead-card:focus-visible{
  outline:0!important;
  border-color:var(--line)!important;
}

/* Design review modal and shared-gallery details. */
.design-summary{width:min(980px,100%);max-height:min(900px,92vh);overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--line);padding:clamp(22px,4vw,42px);position:relative;box-shadow:0 24px 90px #0009}
.design-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-right:34px}
.design-summary-head h2{font-size:clamp(28px,4vw,46px);margin-bottom:10px}
.summary-status{border:1px solid var(--mint);color:var(--mint);padding:7px 12px;border-radius:999px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
.summary-status[data-status="insufficient"]{border-color:var(--gold);color:var(--gold)}
.summary-status[data-status="exceeds"]{border-color:var(--pink);color:var(--pink)}
.design-summary-layout{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(300px,1.1fr);gap:28px;margin-top:28px}
.summary-preview-wrap{min-width:0}.summary-preview{aspect-ratio:1;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);overflow:hidden}.summary-preview svg{display:block;width:100%;height:100%}.summary-preview .summary-bracelet{width:82%;height:auto;aspect-ratio:1;pointer-events:none}.summary-preview .summary-bracelet::before{inset:5%}.summary-preview .summary-bracelet .preview-bead{animation:none!important}
.summary-preview-actions{display:flex;gap:8px;margin-top:12px}.summary-preview-actions .button{flex:1;min-height:40px;padding:0 12px;font-size:11px}
.summary-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-bottom:1px solid var(--line);padding-bottom:18px}.summary-metrics div{display:flex;flex-direction:column;gap:5px}.summary-metrics span,.summary-section-label{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.summary-metrics strong{font-size:18px;color:var(--pink-soft);white-space:nowrap}.summary-materials{padding-top:18px}.summary-section-label{margin-bottom:8px}.summary-material-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid rgba(255,255,255,.08);padding:10px 0;font-size:12px}.summary-material-row strong{color:var(--mint);font-size:11px;white-space:nowrap}.summary-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px;padding-top:18px;border-top:1px solid var(--line)}.summary-actions .button{min-height:42px;font-size:11px}
.gallery-art-image{background:var(--surface)!important}.gallery-design-orbit{width:76%;height:76%;display:grid;place-items:center}.gallery-design-orbit svg{width:100%;height:100%}.gallery-specs{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin:-4px 0 12px}.gallery-specs span{border:1px solid var(--line);padding:4px 7px}.cart-thumb-design{background:var(--surface)!important;border-radius:50%;overflow:hidden;display:grid;place-items:center}.cart-thumb-design svg{width:100%;height:100%;display:block}
.summary-actions .button:disabled,.summary-actions .button.is-disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
.cart-thumb-image{overflow:hidden;display:grid;place-items:center}.cart-thumb-image img{width:100%;height:100%;object-fit:cover;display:block}

/* WooCommerce checkout surface. The form, payment gateways and validation
   remain WooCommerce-owned; these rules only give their official markup the
   MagCryst layout and visual language. */
.magcryst-checkout-page{max-width:1480px!important}
.commerce-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:42px}
.commerce-heading h1{font-size:clamp(3rem,6vw,6rem);margin:0 0 14px}
.commerce-intro{max-width:520px;color:var(--muted);line-height:1.6;margin:0}
.commerce-shell{background:var(--surface);border:1px solid var(--line);padding:clamp(22px,4vw,56px)}
.woocommerce form .form-row{padding:0;margin:0 0 18px}
.woocommerce form .form-row label{display:block;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin:0 0 7px}
.woocommerce form .form-row label .required{color:var(--pink);text-decoration:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce form .select2-container .select2-selection--single{width:100%;min-height:48px;border:1px solid var(--line);border-radius:0;background:var(--bg);color:var(--text);padding:12px 13px;font:inherit;outline:0}
.woocommerce form .form-row textarea{min-height:110px;resize:vertical}
.woocommerce form .form-row input:focus,.woocommerce form .form-row textarea:focus,.woocommerce form .form-row select:focus,.woocommerce form .select2-container--open .select2-selection--single{border-color:var(--pink);box-shadow:0 0 0 2px rgba(244,91,145,.12)}
.woocommerce form .form-row .woocommerce-input-wrapper{display:block}
.woocommerce .col2-set,.woocommerce-page .col2-set{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:clamp(28px,5vw,76px);margin:0}
.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{float:none;width:auto}
.woocommerce h3#order_review_heading,.woocommerce h3{font-size:18px;line-height:1.2;color:var(--text);margin:0 0 18px}
.woocommerce-checkout-review-order{border:1px solid var(--line);padding:22px;background:rgba(0,0,0,.08)}
.woocommerce table.shop_table{width:100%;border-collapse:collapse;border:0;margin:0 0 20px;color:var(--text);font-size:12px}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border:0;border-bottom:1px solid var(--line);padding:12px 0;vertical-align:top;text-align:left}
.woocommerce table.shop_table th:last-child,.woocommerce table.shop_table td:last-child{text-align:right}
.woocommerce table.shop_table tfoot th,.woocommerce table.shop_table tfoot td{font-size:13px}
.woocommerce table.shop_table tfoot .order-total th,.woocommerce table.shop_table tfoot .order-total td{border-bottom:0;color:var(--pink-soft);font-size:18px;padding-top:18px}
.woocommerce #payment{background:transparent;border-top:1px solid var(--line);padding-top:18px}
.woocommerce #payment ul.payment_methods{border:0;padding:0 0 14px;margin:0;list-style:none}
.woocommerce #payment ul.payment_methods li{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:12px}
.woocommerce #payment div.payment_box{background:var(--bg);color:var(--muted);font-size:11px;line-height:1.5;padding:12px;margin:10px 0 0}
.woocommerce #payment div.payment_box:before{display:none}
.woocommerce #payment .place-order{padding:14px 0 0;margin:0}
.woocommerce #payment .woocommerce-terms-and-conditions-wrapper{color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:16px}
.woocommerce #payment .woocommerce-privacy-policy-text{color:var(--muted);font-size:11px;line-height:1.5}
.woocommerce #payment #place_order{width:100%;min-height:50px;border:0;border-radius:999px;background:var(--pink);color:#1c1518;font-weight:700;cursor:pointer;transition:.2s}
.woocommerce #payment #place_order:hover{background:#ff79a7;transform:translateY(-1px)}
.woocommerce .woocommerce-info,.woocommerce .woocommerce-message,.woocommerce .woocommerce-error{border:1px solid var(--line);background:var(--bg);color:var(--text);padding:14px 16px;font-size:12px;line-height:1.5}
.woocommerce .woocommerce-error{border-color:rgba(244,91,145,.65);list-style:none;margin:0 0 22px}
.woocommerce .woocommerce-error::before,.woocommerce .woocommerce-info::before,.woocommerce .woocommerce-message::before{display:none}
.woocommerce .woocommerce-form-coupon-toggle{margin-bottom:16px}
.woocommerce .woocommerce-form-coupon-toggle a,.woocommerce a{color:var(--pink-soft)}
.woocommerce .woocommerce-form-coupon{border:1px solid var(--line);padding:16px;background:var(--bg);margin:0 0 24px}
.woocommerce .woocommerce-form-coupon .form-row-first{width:65%;float:left}.woocommerce .woocommerce-form-coupon .form-row-last{width:32%;float:right}
.woocommerce .woocommerce-form-coupon::after{content:'';display:table;clear:both}
@media(max-width:900px){.commerce-heading{align-items:flex-start;flex-direction:column;margin-bottom:28px}.commerce-heading .button{align-self:flex-start}.commerce-shell{padding:20px 16px}.woocommerce .col2-set,.woocommerce-page .col2-set{grid-template-columns:1fr;gap:30px}.woocommerce .woocommerce-form-coupon .form-row-first,.woocommerce .woocommerce-form-coupon .form-row-last{width:100%;float:none}.woocommerce .woocommerce-form-coupon .button{width:100%}}
.magcryst-order-preview{display:inline-grid;width:72px;height:72px;place-items:center;vertical-align:middle;margin-right:10px;background:var(--bg);border:1px solid var(--line);overflow:hidden}
.magcryst-order-preview-svg{display:block;width:100%;height:100%}
.magcryst-order-preview-image{display:block;width:100%;height:100%;object-fit:contain}
.magcryst-order-preview-svg-fallback{display:none;width:100%;height:100%}
.magcryst-order-item-name{vertical-align:middle}
.magcryst-cart-page{max-width:1480px!important}
.magcryst-my-designs-page{max-width:1480px!important}
.saved-design-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.saved-design-card{border:1px solid var(--line);background:var(--surface);min-width:0}
.saved-design-preview{aspect-ratio:1;display:grid;place-items:center;padding:22px;background:var(--bg);border-bottom:1px solid var(--line)}
.saved-design-preview .magcryst-order-preview{width:100%;height:100%;margin:0;border:0;background:transparent}
.saved-design-content{padding:20px}.saved-design-content h2{font-size:19px;line-height:1.2;margin:6px 0 16px}
.saved-design-metrics{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px}.saved-design-metrics strong{color:var(--pink-soft);margin-left:auto;font-size:16px}
.saved-design-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}.saved-design-actions .button{min-height:42px;padding:0 10px;font-size:11px;white-space:nowrap}
@media(max-width:900px){.saved-design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.saved-design-grid{grid-template-columns:1fr}.saved-design-preview{max-height:360px}.saved-design-content{padding:16px}}
.magcryst-cart-shell{overflow:hidden}
.woocommerce-cart-form table.shop_table{table-layout:fixed}
.woocommerce-cart-form .product-thumbnail{width:92px}
.woocommerce-cart-form .product-name{font-weight:600}
.woocommerce-cart-form .product-price,.woocommerce-cart-form .product-subtotal{text-align:right}
.woocommerce-cart-form .product-quantity{width:120px;text-align:center}
.woocommerce-cart-form .quantity .qty{width:64px;min-height:38px;border:1px solid var(--line);background:var(--bg);color:var(--text);text-align:center}
.woocommerce .cart-collaterals{margin-top:28px;display:flex;justify-content:flex-end}
.woocommerce .cart-collaterals .cart_totals{float:none;width:min(430px,100%);border:1px solid var(--line);background:var(--bg);padding:22px}
.woocommerce .cart_totals h2{font-size:20px;margin:0 0 16px}
.woocommerce .cart_totals .checkout-button{display:block;width:100%;text-align:center;background:var(--pink);color:#1c1518;border-radius:999px;padding:14px 18px;font-weight:700}
.woocommerce .cart_totals .checkout-button:hover{background:#ff79a7}
.woocommerce .coupon{display:flex;gap:8px;align-items:center}
.woocommerce .coupon .input-text{min-height:42px;min-width:0;border:1px solid var(--line);background:var(--bg);color:var(--text);padding:10px}
@media(max-width:700px){.woocommerce-cart-form table.shop_table{display:block;overflow-x:auto;white-space:nowrap}.woocommerce-cart-form .product-thumbnail{width:70px}.woocommerce .cart-collaterals{display:block}.woocommerce .cart-collaterals .cart_totals{width:100%}.woocommerce .coupon{flex-wrap:wrap}.woocommerce .coupon .input-text{flex:1 1 160px}}
.woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);column-gap:clamp(30px,5vw,78px);align-items:start}
.woocommerce-checkout form.checkout>#customer_details{grid-column:1;grid-row:1 / span 2;min-width:0}
.woocommerce-checkout form.checkout>#customer_details{display:block}
.woocommerce-checkout form.checkout>#customer_details>.col-1,.woocommerce-checkout form.checkout>#customer_details>.col-2{float:none;width:100%}
.woocommerce-checkout form.checkout>.magcryst-mobile-order-summary{display:contents}
.woocommerce-checkout form.checkout>#order_review_heading,
.woocommerce-checkout form.checkout>.magcryst-mobile-order-summary>#order_review_heading{grid-column:2;grid-row:1;margin-top:0}
.woocommerce-checkout form.checkout>#order_review,
.woocommerce-checkout form.checkout>.magcryst-mobile-order-summary>#order_review{grid-column:2;grid-row:2;min-width:0;position:sticky;top:106px}
.woocommerce-checkout form.checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout .woocommerce-notices-wrapper{grid-column:1 / -1}
.woocommerce-checkout form.checkout .woocommerce-privacy-policy-text{max-width:58ch}
.woocommerce-checkout #order_review .shop_table{margin-bottom:18px}
@media(max-width:900px){
  .woocommerce-checkout form.checkout{display:flex;flex-direction:column}
  .woocommerce-checkout form.checkout>.woocommerce-form-coupon-toggle,
  .woocommerce-checkout form.checkout>.woocommerce-notices-wrapper{order:0;width:100%}
  .woocommerce-checkout form.checkout>#customer_details{order:1;width:100%}
  .woocommerce-checkout form.checkout>#order_review_heading{order:2;width:100%;margin:28px 0 12px;position:static;background:transparent;padding:0}
  .woocommerce-checkout form.checkout>#order_review{order:3;width:100%;position:static;margin:0 0 24px;padding:16px;background:var(--surface);border:1px solid var(--line);box-shadow:none}
  .woocommerce-checkout form.checkout>.woocommerce-form-coupon-toggle,
  .woocommerce-checkout form.checkout>.woocommerce-notices-wrapper{position:static}
  .magcryst-order-preview{width:58px;height:58px;margin-right:7px}
}
.gallery-materials{font-size:10px!important;color:var(--muted);line-height:1.45;margin:0 0 12px!important;min-height:1.45em}
@media(max-width:700px){.design-summary-layout{grid-template-columns:1fr;gap:18px}.summary-preview{max-height:58vh}.summary-preview-actions{position:sticky;bottom:0;background:var(--surface);padding-top:8px}.summary-actions{flex-direction:column}.summary-actions .button{width:100%}.design-summary{padding:22px 16px}.design-summary-head{gap:12px}.summary-status{font-size:9px;padding:6px 8px}}
@media (min-width:1400px){
  body.magcryst-theme .studio-vertical .bead-grid,
  body:not(.magcryst-theme) .studio-vertical .bead-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}

@media (max-width:900px){
  body.magcryst-theme .studio-vertical .canvas-panel::after,
  body:not(.magcryst-theme) .studio-vertical .canvas-panel::after{
    content:'';
    position:absolute;
    z-index:2;
    top:66px;
    right:14px;
    bottom:14px;
    width:82px;
    border-left:1px solid rgba(255,255,255,.09);
    background:linear-gradient(90deg,transparent,rgba(23,23,23,.64));
    pointer-events:none;
  }
  body.magcryst-theme .studio-vertical .bracelet-canvas,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{padding-right:104px}
  body.magcryst-theme .studio-vertical .preview-bracelet,
  body.magcryst-theme .studio-vertical .preview-bracelet.empty,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet.empty{
    width:min(70vw,270px);
    max-width:270px;
  }
  body.magcryst-theme .studio-vertical #studio-status,
  body:not(.magcryst-theme) .studio-vertical #studio-status{
    top:78px;
    right:22px;
    width:68px;
    font-size:9px;
    line-height:1.35;
  }
  body.magcryst-theme .studio-vertical .canvas-caption,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption{
    top:136px;
    right:22px;
    width:68px;
    gap:16px;
    font-size:9px;
    line-height:1.35;
  }
  body.magcryst-theme .studio-vertical .canvas-caption span,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption span{gap:4px}
  body.magcryst-theme .studio-vertical .canvas-caption svg,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption svg{width:12px;height:12px;flex:0 0 12px}
  body.magcryst-theme .studio-vertical .totals,
  body:not(.magcryst-theme) .studio-vertical .totals{
    top:248px;
    right:22px;
    width:68px;
    gap:15px;
  }
  body.magcryst-theme .studio-vertical .totals span,
  body:not(.magcryst-theme) .studio-vertical .totals span{font-size:9px;line-height:1.2}
  body.magcryst-theme .studio-vertical .totals strong,
  body:not(.magcryst-theme) .studio-vertical .totals strong{font-size:14px;line-height:1.15}
}
@media (max-width:380px){
  body.magcryst-theme .studio-vertical .canvas-panel::after,
  body:not(.magcryst-theme) .studio-vertical .canvas-panel::after{right:10px;width:76px}
  body.magcryst-theme .studio-vertical .bracelet-canvas,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{padding-right:94px}
  body.magcryst-theme .studio-vertical #studio-status,
  body.magcryst-theme .studio-vertical .canvas-caption,
  body.magcryst-theme .studio-vertical .totals,
  body:not(.magcryst-theme) .studio-vertical #studio-status,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption,
  body:not(.magcryst-theme) .studio-vertical .totals{right:17px;width:64px}
}
@media (max-width:520px){
  body.magcryst-theme .studio-vertical .canvas-panel,body:not(.magcryst-theme) .studio-vertical .canvas-panel{flex-basis:min(58vh,460px);min-height:410px}
  body.magcryst-theme .studio-vertical .bead-grid,body:not(.magcryst-theme) .studio-vertical .bead-grid{height:210px;min-height:210px;flex-basis:210px;padding:10px 8px;gap:7px}
}

/* Final metric placement wins over legacy mobile overrides above. */
@media (max-width:900px){
  body.magcryst-theme .studio-vertical .design-metrics,
  body:not(.magcryst-theme) .studio-vertical .design-metrics{
    top:64px;right:18px;width:112px;display:flex;flex-direction:column;gap:13px;padding:0;border:0;background:transparent;text-align:right;
  }
  body.magcryst-theme .studio-vertical .design-metrics .metric,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric{align-items:flex-end;text-align:right;min-width:0}
  body.magcryst-theme .studio-vertical .design-metrics .metric span,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric span{font-size:9px}
  body.magcryst-theme .studio-vertical .design-metrics .metric strong,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric strong{font-size:15px;white-space:nowrap}
  body.magcryst-theme .studio-vertical .design-metrics .metric small,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric small{font-size:8px;max-width:112px}
  body.magcryst-theme .studio-vertical .bracelet-canvas,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{padding-right:128px}
}
@media (max-width:520px){
  body.magcryst-theme .studio-vertical .design-metrics,
  body:not(.magcryst-theme) .studio-vertical .design-metrics{right:18px;width:106px;gap:11px}
  body.magcryst-theme .studio-vertical .design-metrics .metric strong,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric strong{font-size:14px}
  body.magcryst-theme .studio-vertical .design-metrics .metric small,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric small{font-size:7.5px;max-width:106px}
  body.magcryst-theme .studio-vertical .bracelet-canvas,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{padding-right:120px}
}

/* Homepage hero uses the GLB bracelet as the only bracelet visual. */
body.magcryst-theme .hero-stage .hero-model,
body:not(.magcryst-theme) .hero-stage .hero-model{
  position:absolute;
  inset:2% 2% 0;
  width:96%;
  height:96%;
  z-index:2;
  display:block;
  background:transparent;
  --poster-color:transparent;
}
body.magcryst-theme .hero-stage .stage-label,
body:not(.magcryst-theme) .hero-stage .stage-label{z-index:4;pointer-events:none}
body.magcryst-theme .hero-stage > .bracelet-orbit,
body:not(.magcryst-theme) .hero-stage > .bracelet-orbit{display:none!important}
@media (max-width:900px){
  body.magcryst-theme .hero-stage .hero-model,
  body:not(.magcryst-theme) .hero-stage .hero-model{inset:5% 4% 0;width:92%;height:92%}
}

/* Final workspace layout and clean catalogue viewport. */
body.magcryst-theme .preview-bead.settling,
body:not(.magcryst-theme) .preview-bead.settling{visibility:hidden!important}
body.magcryst-theme .parts-panel,
body.magcryst-theme .parts-content,
body.magcryst-theme .bead-grid,
body:not(.magcryst-theme) .parts-panel,
body:not(.magcryst-theme) .parts-content,
body:not(.magcryst-theme) .bead-grid{background:var(--surface);box-shadow:none!important}
body.magcryst-theme .bead-grid::before,
body.magcryst-theme .bead-grid::after,
body:not(.magcryst-theme) .bead-grid::before,
body:not(.magcryst-theme) .bead-grid::after{display:none!important;content:none!important}

@media (min-width:901px){
  body.magcryst-theme .page[data-page="design"],body:not(.magcryst-theme) .page[data-page="design"]{max-width:none;padding-left:clamp(24px,3.2vw,64px);padding-right:clamp(24px,3.2vw,64px)}
  body.magcryst-theme .studio-vertical,body:not(.magcryst-theme) .studio-vertical{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(500px,.85fr);gap:20px;max-width:none;align-items:stretch}
  body.magcryst-theme .studio-vertical .canvas-panel,body:not(.magcryst-theme) .studio-vertical .canvas-panel{position:relative;top:auto;min-width:0;height:clamp(650px,76vh,840px);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:58px minmax(0,1fr) auto;overflow:hidden}
  body.magcryst-theme .studio-vertical .bracelet-canvas,body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{min-width:0;min-height:0;height:auto;width:100%}
  body.magcryst-theme .studio-vertical .parts-panel,body:not(.magcryst-theme) .studio-vertical .parts-panel{margin-top:0;height:clamp(650px,76vh,840px);min-height:0;overflow:hidden}
  body.magcryst-theme .studio-vertical .parts-workbench,body:not(.magcryst-theme) .studio-vertical .parts-workbench{height:calc(100% - 69px);min-height:0}
  body.magcryst-theme .studio-vertical .parts-content,body:not(.magcryst-theme) .studio-vertical .parts-content{height:100%;min-height:0;overflow:hidden}
  body.magcryst-theme .studio-vertical .bead-grid,body:not(.magcryst-theme) .studio-vertical .bead-grid{height:auto;min-height:0;max-height:none;flex:1;grid-template-columns:repeat(5,minmax(0,1fr));overflow-y:auto;overflow-x:hidden}

  body.magcryst-theme .page[data-page="home"],body:not(.magcryst-theme) .page[data-page="home"]{max-width:none;padding:0 0 110px;width:100%}
  body.magcryst-theme .hero-grid,body:not(.magcryst-theme) .hero-grid{width:100%;max-width:none;min-height:calc(100vh - 88px);padding:clamp(48px,6vw,112px);grid-template-columns:minmax(0,1fr) minmax(480px,1fr);gap:clamp(40px,7vw,130px)}
  body.magcryst-theme .feature-strip,body.magcryst-theme .home-section,body:not(.magcryst-theme) .feature-strip,body:not(.magcryst-theme) .home-section{width:calc(100% - clamp(48px,10vw,192px));max-width:1600px;margin-left:auto;margin-right:auto}
}

@media (max-width:900px){
  body.magcryst-theme .page[data-page="design"],body:not(.magcryst-theme) .page[data-page="design"]{height:auto;min-height:calc(100vh - 74px);overflow:visible;padding-bottom:22px}
  body.magcryst-theme .studio-vertical,body:not(.magcryst-theme) .studio-vertical{height:auto;min-height:0;overflow:visible}
  body.magcryst-theme .studio-vertical .canvas-panel,body:not(.magcryst-theme) .studio-vertical .canvas-panel{flex:0 0 500px;height:500px;min-height:500px}
  body.magcryst-theme .studio-vertical .parts-panel,body:not(.magcryst-theme) .studio-vertical .parts-panel{flex:0 0 420px;height:420px;min-height:420px;margin-top:12px;overflow:hidden;background:var(--surface)}
  body.magcryst-theme .studio-vertical .parts-workbench,body:not(.magcryst-theme) .studio-vertical .parts-workbench{height:351px;min-height:0;overflow:hidden;background:var(--surface)}
  body.magcryst-theme .studio-vertical .parts-content,body:not(.magcryst-theme) .studio-vertical .parts-content{height:351px;min-height:0;background:var(--surface);overflow:hidden;isolation:isolate}
  body.magcryst-theme .studio-vertical .bead-grid,body:not(.magcryst-theme) .studio-vertical .bead-grid{height:293px;min-height:293px;max-height:293px;flex:0 0 293px;padding:9px 8px 12px;overflow-y:auto;overflow-x:hidden;background:var(--surface);box-shadow:none!important}
  body.magcryst-theme .bead-card,body:not(.magcryst-theme) .bead-card{box-shadow:none;contain:paint}
  body.magcryst-theme .preview-bracelet,body.magcryst-theme .preview-bracelet.empty,body:not(.magcryst-theme) .preview-bracelet,body:not(.magcryst-theme) .preview-bracelet.empty{width:min(86%,380px)}
}
@media (max-width:520px){
  body.magcryst-theme .studio-vertical .canvas-panel,body:not(.magcryst-theme) .studio-vertical .canvas-panel{flex-basis:480px;height:480px;min-height:480px}
}

/* Wider desktop working area while preserving readable gutters. */
@media (min-width:901px){
  body.magcryst-theme .page[data-page="design"],body:not(.magcryst-theme) .page[data-page="design"]{padding-left:clamp(16px,2vw,40px);padding-right:clamp(16px,2vw,40px)}
  body.magcryst-theme .studio-vertical,body:not(.magcryst-theme) .studio-vertical{grid-template-columns:minmax(0,1.55fr) minmax(560px,.95fr);gap:22px}
  body.magcryst-theme .studio-vertical .parts-panel,body:not(.magcryst-theme) .studio-vertical .parts-panel{min-width:0}
}

/* Mobile studio: transparent full-bleed workspace with a compact circular preview. */
@media (max-width:900px){
  body.magcryst-theme .page[data-page="design"],
  body:not(.magcryst-theme) .page[data-page="design"]{
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
    padding-left:0;
    padding-right:0;
    overflow-x:hidden;
  }
  body.magcryst-theme .page[data-page="design"] .page-heading,
  body:not(.magcryst-theme) .page[data-page="design"] .page-heading{padding-left:16px;padding-right:16px}
  body.magcryst-theme .studio-vertical,
  body:not(.magcryst-theme) .studio-vertical{width:100%;max-width:none;padding:0;gap:0}
  body.magcryst-theme .studio-vertical .canvas-panel,
  body.magcryst-theme .studio-vertical .parts-panel,
  body:not(.magcryst-theme) .studio-vertical .canvas-panel,
  body:not(.magcryst-theme) .studio-vertical .parts-panel{background:transparent;border:0;box-shadow:none}
  body.magcryst-theme .studio-vertical .canvas-panel,
  body:not(.magcryst-theme) .studio-vertical .canvas-panel{flex-basis:clamp(350px,46vh,430px);height:clamp(350px,46vh,430px);min-height:350px}
  body.magcryst-theme .studio-vertical .canvas-top,
  body:not(.magcryst-theme) .studio-vertical .canvas-top{padding-left:16px;padding-right:16px;background:transparent;border-bottom-color:rgba(255,255,255,.1)}
  body.magcryst-theme .studio-vertical .bracelet-canvas,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{background:transparent;color:var(--text);min-height:0;padding-right:72px}
  body.magcryst-theme .studio-vertical .bracelet-canvas:before,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas:before{display:none}
  body.magcryst-theme .studio-vertical .preview-bracelet,
  body.magcryst-theme .studio-vertical .preview-bracelet.empty,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet.empty{width:min(72vw,230px);max-width:230px}
  body.magcryst-theme .studio-vertical .canvas-caption,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption{top:50%;bottom:auto;left:auto;right:8px;width:58px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:18px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
  body.magcryst-theme .studio-vertical .canvas-caption span:first-child,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption span:first-child{position:static;max-width:100%;text-align:right;justify-content:flex-end;line-height:1.35}
  body.magcryst-theme .studio-vertical .canvas-caption span:last-child,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption span:last-child{position:static;max-width:100%;text-align:right;justify-content:flex-end;line-height:1.35}
  body.magcryst-theme .studio-vertical .totals,
  body:not(.magcryst-theme) .studio-vertical .totals{padding:12px 16px;background:transparent;border-top-color:rgba(255,255,255,.1)}
  body.magcryst-theme .studio-vertical .parts-panel,
  body:not(.magcryst-theme) .studio-vertical .parts-panel{height:430px;min-height:430px;margin-top:8px}
  body.magcryst-theme .studio-vertical .material-tabs,
  body.magcryst-theme .studio-vertical .parts-toolbar,
  body:not(.magcryst-theme) .studio-vertical .material-tabs,
  body:not(.magcryst-theme) .studio-vertical .parts-toolbar{background:transparent;border-color:rgba(255,255,255,.1)}
  body.magcryst-theme .studio-vertical .parts-workbench,
  body:not(.magcryst-theme) .studio-vertical .parts-workbench{height:calc(100% - 69px);background:transparent}
  body.magcryst-theme .studio-vertical .category-rail,
  body:not(.magcryst-theme) .studio-vertical .category-rail{background:transparent;border-right-color:rgba(255,255,255,.1)}
  body.magcryst-theme .studio-vertical .parts-content,
  body.magcryst-theme .studio-vertical .bead-grid,
  body:not(.magcryst-theme) .studio-vertical .parts-content,
  body:not(.magcryst-theme) .studio-vertical .bead-grid{background:transparent}
  body.magcryst-theme .studio-vertical .bead-grid,
  body:not(.magcryst-theme) .studio-vertical .bead-grid{height:340px;min-height:340px;max-height:340px;flex-basis:340px;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 10px 18px;gap:8px;overflow-y:auto;overscroll-behavior:contain}
  body.magcryst-theme .studio-vertical .bead-card,
  body:not(.magcryst-theme) .studio-vertical .bead-card{background:transparent;border-color:rgba(255,255,255,.12);padding:7px}
  body.magcryst-theme .studio-vertical .bead-card .bead-swatch,
  body:not(.magcryst-theme) .studio-vertical .bead-card .bead-swatch{margin-bottom:6px}
}
@media (max-width:520px){
  body.magcryst-theme .studio-vertical .canvas-panel,
  body:not(.magcryst-theme) .studio-vertical .canvas-panel{flex-basis:360px;height:360px;min-height:360px}
  body.magcryst-theme .studio-vertical .preview-bracelet,
  body.magcryst-theme .studio-vertical .preview-bracelet.empty,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet.empty{width:min(72vw,230px);max-width:230px}
  body.magcryst-theme .studio-vertical .parts-panel,
  body:not(.magcryst-theme) .studio-vertical .parts-panel{height:410px;min-height:410px}
  body.magcryst-theme .studio-vertical .bead-grid,
  body:not(.magcryst-theme) .studio-vertical .bead-grid{height:320px;min-height:320px;max-height:320px;flex-basis:320px}
}

/* Keep every live metric in a narrow right rail on phones. */
@media (max-width:900px){
  body.magcryst-theme .studio-vertical .canvas-panel,
  body:not(.magcryst-theme) .studio-vertical .canvas-panel{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:58px minmax(0,1fr);
    height:430px;
    min-height:430px;
    flex-basis:430px;
  }
  body.magcryst-theme .studio-vertical .bracelet-canvas,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{
    grid-column:1;
    grid-row:2;
    padding-right:84px;
  }
  body.magcryst-theme .studio-vertical .preview-bracelet,
  body.magcryst-theme .studio-vertical .preview-bracelet.empty,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet.empty{
    width:min(68vw,250px);
    max-width:250px;
  }
  body.magcryst-theme .studio-vertical .canvas-caption,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption{
    top:76px;
    right:8px;
    width:62px;
    transform:none;
    gap:14px;
  }
  body.magcryst-theme .studio-vertical .totals,
  body:not(.magcryst-theme) .studio-vertical .totals{
    position:absolute;
    z-index:3;
    top:228px;
    right:8px;
    width:62px;
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:0;
    border:0;
    background:transparent;
  }
  body.magcryst-theme .studio-vertical .totals div,
  body:not(.magcryst-theme) .studio-vertical .totals div{
    min-width:0;
    gap:3px;
    align-items:flex-end;
    text-align:right;
  }
  body.magcryst-theme .studio-vertical .totals span,
  body:not(.magcryst-theme) .studio-vertical .totals span{font-size:9px;line-height:1.1}
  body.magcryst-theme .studio-vertical .totals strong,
  body:not(.magcryst-theme) .studio-vertical .totals strong{font-size:13px;line-height:1.1;white-space:nowrap}
  body.magcryst-theme .studio-vertical .canvas-top .status-dot,
  body:not(.magcryst-theme) .studio-vertical .canvas-top .status-dot{display:none}
  body.magcryst-theme .studio-vertical #studio-status,
  body:not(.magcryst-theme) .studio-vertical #studio-status{
    position:absolute;
    z-index:4;
    top:66px;
    right:8px;
    width:62px;
    color:var(--muted);
    font-size:9px;
    line-height:1.35;
    text-align:right;
  }
}
@media (max-width:520px){
  body.magcryst-theme .studio-vertical .canvas-panel,
  body:not(.magcryst-theme) .studio-vertical .canvas-panel{height:410px;min-height:410px;flex-basis:410px}
  body.magcryst-theme .studio-vertical .totals,
  body:not(.magcryst-theme) .studio-vertical .totals{top:220px}
}

/* Homepage composition: the 3D model is the single, dominant hero image. */
/* WordPress adds the class `page` to the body on static Pages. The base
   `.page` component styles must only apply to the inner page sections; reset
   the body here so that class does not create an artificial max-width and
   padded gutters around the whole site. */
body.magcryst-theme.page{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}
body.magcryst-theme .page[data-page="home"],
body:not(.magcryst-theme) .page[data-page="home"]{
  width:100%;
  max-width:none;
  padding:0 0 110px;
}
body.magcryst-theme .page[data-page="home"] .hero-grid,
body:not(.magcryst-theme) .page[data-page="home"] .hero-grid{
  width:100%;
  max-width:none;
  min-height:calc(100vh - 88px);
  padding:clamp(44px,5vw,88px) clamp(28px,6vw,120px);
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(32px,5vw,104px);
  align-items:stretch;
}
body.magcryst-theme .page[data-page="home"] .hero-copy,
body:not(.magcryst-theme) .page[data-page="home"] .hero-copy{
  max-width:590px;
  align-self:center;
  justify-self:end;
  margin-right:clamp(0px,2vw,28px);
}
body.magcryst-theme .page[data-page="home"] .hero-lede,
body:not(.magcryst-theme) .page[data-page="home"] .hero-lede{max-width:540px;font-size:17px;line-height:1.65}
body.magcryst-theme .page[data-page="home"] .hero-actions,
body:not(.magcryst-theme) .page[data-page="home"] .hero-actions{margin:32px 0 28px}
body.magcryst-theme .page[data-page="home"] .hero-stage,
body:not(.magcryst-theme) .page[data-page="home"] .hero-stage{
  min-height:clamp(560px,78vh,860px);
  height:100%;
  border-color:transparent;
  background:var(--bg);
}
body.magcryst-theme .page[data-page="home"] .hero-stage .hero-model,
body:not(.magcryst-theme) .page[data-page="home"] .hero-stage .hero-model{
  inset:0;
  width:100%;
  height:100%;
  z-index:2;
}
body.magcryst-theme .page[data-page="home"] .stage-label,
body:not(.magcryst-theme) .page[data-page="home"] .stage-label{left:28px;top:26px;z-index:4}
@media (max-width:1100px) and (min-width:901px){
  body.magcryst-theme .page[data-page="home"] .hero-grid,
  body:not(.magcryst-theme) .page[data-page="home"] .hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px;padding-left:42px;padding-right:42px}
}
@media (max-width:900px){
  body.magcryst-theme .page[data-page="home"],
  body:not(.magcryst-theme) .page[data-page="home"]{padding-bottom:70px}
  body.magcryst-theme .page[data-page="home"] .hero-grid,
  body:not(.magcryst-theme) .page[data-page="home"] .hero-grid{
    min-height:0;
    padding:34px 20px 0;
    grid-template-columns:1fr;
    gap:28px;
  }
  body.magcryst-theme .page[data-page="home"] .hero-stage,
  body:not(.magcryst-theme) .page[data-page="home"] .hero-stage{order:-1;min-height:clamp(380px,64vh,560px);height:clamp(380px,64vh,560px)}
  body.magcryst-theme .page[data-page="home"] .hero-stage .hero-model,
  body:not(.magcryst-theme) .page[data-page="home"] .hero-stage .hero-model{inset:3% 0 0;width:100%;height:97%}
  body.magcryst-theme .page[data-page="home"] .hero-copy,
  body:not(.magcryst-theme) .page[data-page="home"] .hero-copy{max-width:none;padding:0 4px}
}

/* Mobile metric rail: remove the unused drag hint and keep every label/value
   on one line with a deliberate gutter from the screen edge. */
@media (max-width:900px){
  body.magcryst-theme .studio-vertical .canvas-caption,
  body:not(.magcryst-theme) .studio-vertical .canvas-caption,
  body.magcryst-theme .studio-vertical #studio-status,
  body:not(.magcryst-theme) .studio-vertical #studio-status{display:none!important}
  body.magcryst-theme .studio-vertical .design-metrics,
  body:not(.magcryst-theme) .studio-vertical .design-metrics{
    top:72px;
    right:16px;
    width:136px;
    gap:12px;
    overflow:visible;
  }
  body.magcryst-theme .studio-vertical .design-metrics .metric,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric{
    width:100%;
    gap:3px;
    overflow:visible;
  }
  body.magcryst-theme .studio-vertical .design-metrics .metric span,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric span{
    width:100%;
    font-size:8px;
    line-height:1.1;
    letter-spacing:.02em;
    white-space:nowrap;
  }
  body.magcryst-theme .studio-vertical .design-metrics .metric strong,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric strong{
    width:100%;
    font-size:14px;
    line-height:1.1;
    white-space:nowrap;
  }
  body.magcryst-theme .studio-vertical .design-metrics .metric small,
  body:not(.magcryst-theme) .studio-vertical .design-metrics .metric small{
    width:100%;
    max-width:none;
    min-height:0;
    font-size:7px;
    line-height:1.1;
    white-space:nowrap;
  }
  body.magcryst-theme .studio-vertical .bracelet-canvas,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{padding-right:154px}
  body.magcryst-theme .studio-vertical .preview-bracelet,
  body.magcryst-theme .studio-vertical .preview-bracelet.empty,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet,
  body:not(.magcryst-theme) .studio-vertical .preview-bracelet.empty{
    width:min(60vw,250px);
    max-width:250px;
  }
}
@media (max-width:380px){
  body.magcryst-theme .studio-vertical .design-metrics,
  body:not(.magcryst-theme) .studio-vertical .design-metrics{right:14px;width:126px}
  body.magcryst-theme .studio-vertical .bracelet-canvas,
  body:not(.magcryst-theme) .studio-vertical .bracelet-canvas{padding-right:144px}
}

/* Mobile bead scale: keep the mathematically calculated centers on the ring,
   but enlarge every transparent bead uniformly so neighboring beads sit closer
   together like a worn bracelet. Desktop sizing is intentionally untouched. */
@media (max-width:900px){
  body.magcryst-theme .studio-vertical .preview-bead,
  body:not(.magcryst-theme) .studio-vertical .preview-bead{
    transform:translate(-50%,-50%) rotate(var(--rotation,0deg)) scale(1.16);
    transform-origin:center;
  }
  body.magcryst-theme .studio-vertical .preview-bead:hover,
  body:not(.magcryst-theme) .studio-vertical .preview-bead:hover{
    transform:translate(-50%,-50%) rotate(var(--rotation,0deg)) scale(1.22);
  }
}
@keyframes magcryst-selected-breathe-mobile{
  0%,100%{transform:translate(-50%,-50%) rotate(var(--rotation,0deg)) scale(1.16);opacity:.88}
  50%{transform:translate(-50%,-50%) rotate(var(--rotation,0deg)) scale(1.34);opacity:1}
}
@media (max-width:900px){
  body.magcryst-theme .studio-vertical .preview-bead.selected,
  body:not(.magcryst-theme) .studio-vertical .preview-bead.selected{
    animation:magcryst-selected-breathe-mobile 1.8s ease-in-out infinite!important;
  }
}

/* The workbook artwork is transparent PNG/JPEG content placed on a square
   canvas. Enlarge the artwork inside its calculated slot so transparent outer
   pixels do not create a false gap between neighboring beads. The slot center,
   ring radius, bead count and length calculations remain unchanged. */
body.magcryst-theme .preview-bead,
body:not(.magcryst-theme) .preview-bead{overflow:visible!important}
body.magcryst-theme .preview-bead img,
body:not(.magcryst-theme) .preview-bead img{
  width:158%!important;
  height:158%!important;
  max-width:none!important;
  margin:-29% 0 0 -29%;
  object-fit:contain;
}
@media (max-width:900px){
  body.magcryst-theme .studio-vertical .preview-bead img,
  body:not(.magcryst-theme) .studio-vertical .preview-bead img{
    width:145%!important;
    height:145%!important;
    margin:-22.5% 0 0 -22.5%;
  }
}

/* Shared language and currency preferences dialog. It is also used on
   WooCommerce pages where the designer app is not loaded. */
.locale-backdrop{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.72);
}
.locale-panel{
  width:min(460px,100%);
  max-height:calc(100vh - 40px);
  overflow:auto;
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--line);
  padding:32px;
  position:relative;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
}
.locale-panel h2{margin:0 0 10px;font-size:clamp(28px,5vw,42px);line-height:1}
.locale-note,.locale-footnote{color:var(--muted);line-height:1.5;font-size:12px}
.locale-label{display:block;margin:22px 0 7px;color:var(--muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.locale-select{width:100%;min-height:46px;border:1px solid var(--line);background:var(--bg);color:var(--text);padding:10px 12px;font:inherit}
.locale-select:focus{outline:0;border-color:var(--pink);box-shadow:0 0 0 2px rgba(244,91,145,.14)}
.locale-done{width:100%;margin-top:18px}
.locale-panel .modal-close{font-size:25px;line-height:1}
@media(max-width:520px){.locale-panel{padding:28px 22px}.locale-panel h2{font-size:31px}}
