/* Fluid root scaling system - matched to home/shop */
@media (min-width: 48rem) {
  html {
    font-size: clamp(0.75rem, 1.1713vw, 2.8125rem);
  }
}

html.studio-open {
  font-size: clamp(12px, min(1.1713vw, 2.0833vh), 45px);
}

html.studio-open body {
  overflow: hidden;
}

#mob-toolbar {
  display: none;
}

/* ------------------------------------═
   Apple iOS 26 Liquid Glass — full system (matches index + corporate)
   ------------------------------------═ */
.glass-panel {
  position: relative;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(2rem) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(2rem) saturate(200%) brightness(1.08);
  border: 0.0625rem solid rgba(255,255,255,0.45);
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.90),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.08),
    0 0.125rem 0.5rem rgba(0,0,0,0.06),
    0 0.5rem 2rem rgba(0,0,0,0.08),
    0 1.5rem 3rem rgba(0,0,0,0.04);
  overflow: hidden;
}
.glass-panel::before {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 100% 45% at 50% 0%,rgba(255,255,255,0.45) 0%,rgba(255,255,255,0.12) 45%,transparent 70%);
  pointer-events:none;z-index:1;
}
.glass-panel::after {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 70% 30% at 50% 100%,rgba(255,255,255,0.15) 0%,transparent 70%);
  pointer-events:none;z-index:1;
}
.glass-panel.on-light{background:rgba(255,255,255,0.68);border-color:rgba(255,255,255,0.80);}

.ios26-liquid-pill {
  position:relative;
  background:rgba(255,255,255,0.01);
  backdrop-filter:blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter:blur(1.25rem) saturate(180%);
  border:0.0625rem solid rgba(255,255,255,0.1);
  box-shadow:inset 0 0.0625rem 0 rgba(255,255,255,0.1),0 0.125rem 0.25rem rgba(0,0,0,0.2);
  overflow:hidden;
}
.ios26-liquid-pill .ios26-liquid-pill__ring {
  position:absolute;top:0.0625rem;left:0.0625rem;right:0.0625rem;bottom:0.0625rem;
  border-radius:inherit;border:0.0625rem solid rgba(255,255,255,0.1);
  pointer-events:none;z-index:2;
}
.ios26-liquid-pill::before {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 100% 45% at 50% 0%,rgba(255,255,255,0.45) 0%,rgba(255,255,255,0.12) 45%,transparent 70%);
  pointer-events:none;z-index:1;
}
.ios26-liquid-pill::after {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 70% 30% at 50% 100%,rgba(255,255,255,0.15) 0%,transparent 70%);
  pointer-events:none;z-index:1;
}
.ios26-liquid-pill>*{position:relative;z-index:2;}
#smart-navbar .ios26-liquid-pill{overflow:visible;min-width:0;}

.glass-pill {
  position:relative;
  background:rgba(255,255,255,0.01);
  backdrop-filter:blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter:blur(1.25rem) saturate(180%);
  border:0.0625rem solid rgba(255,255,255,0.1);
  box-shadow:inset 0 0.0625rem 0 rgba(255,255,255,0.1),0 0.125rem 0.25rem rgba(0,0,0,0.2);
  overflow:hidden;
}
.glass-pill::before {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 100% 45% at 50% 0%,rgba(255,255,255,0.45) 0%,rgba(255,255,255,0.12) 45%,transparent 70%);
  pointer-events:none;z-index:1;
}
.glass-pill::after {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 70% 30% at 50% 100%,rgba(255,255,255,0.15) 0%,transparent 70%);
  pointer-events:none;z-index:1;
}
.glass-pill>*{position:relative;z-index:2;}

/* ------------------------------------═
   CART BUTTON — Liquid Glass (matches index + corporate)
   ------------------------------------═ */
.cart-btn-glass {
  position: relative;
  background: #4f46e5;
  backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 0.0625rem solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.10),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.15),
    0 0.125rem 0.25rem rgba(0,0,0,0.18),
    0 0.375rem 0.875rem rgba(79,70,229,0.35);
  color: #ffffff;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.25,1,0.5,1), box-shadow 0.25s ease, background 0.25s ease;
}
.cart-btn-glass::before {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 100% 45% at 50% 0%,rgba(255,255,255,0.15) 0%,rgba(255,255,255,0.05) 45%,transparent 70%);
  pointer-events:none;z-index:1;
}
.cart-btn-glass::after {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 70% 30% at 50% 100%,rgba(255,255,255,0.18) 0%,transparent 70%);
  pointer-events:none;z-index:1;
}
.cart-btn-glass>*{position:relative;z-index:2;}
.cart-btn-glass:hover {
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.15),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.18),
    0 0.25rem 0.5rem rgba(0,0,0,0.22),
    0 0.625rem 1.5rem rgba(79,70,229,0.50);
  transform: translateY(-0.0625rem);
}

/* ------------------------------------═
   PRODUCT / FEATURE CARD GLASS (carved glass look)
   ------------------------------------═ */
.product-card-glass {
  position: relative;
  backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 0.0625rem solid rgba(255,255,255,0.55) !important;
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.80),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.06),
    inset 0.0625rem 0 0 rgba(255,255,255,0.40),
    inset -0.0625rem 0 0 rgba(255,255,255,0.30),
    0 0.125rem 0.25rem rgba(0,0,0,0.10),
    0 0.5rem 1.5rem rgba(0,0,0,0.10),
    0 1.25rem 3rem rgba(0,0,0,0.06);
  overflow: visible !important;
  transform: translateZ(0);
  will-change: transform;
}
.product-card-glass::before {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 110% 42% at 50% 0%,rgba(255,255,255,0.62) 0%,rgba(255,255,255,0.18) 40%,transparent 68%);
  pointer-events:none;z-index:0;
}
.product-card-glass::after {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 72% 28% at 50% 102%,rgba(255,255,255,0.30) 0%,transparent 70%);
  pointer-events:none;z-index:0;
}
.product-card-glass>*{position:relative;z-index:1;}

/* ------------------------------------═
   CRYSTAL GLASS — matches index.html reel section
   ------------------------------------═ */
.crystal-glass {
  position: relative;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(1rem) saturate(160%) brightness(1.02);
  -webkit-backdrop-filter: blur(1rem) saturate(160%) brightness(1.02);
  border: 0.0625rem solid rgba(255,255,255,0.65);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.90),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.04),
    0 0.125rem 0.5rem rgba(0,0,0,0.05),
    0 0.5rem 1.5rem rgba(0,0,0,0.07);
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.crystal-glass img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  outline: 0.0625rem solid transparent;
}
.crystal-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 100% 35% at 50% 0%,
    rgba(255,255,255,0.40) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Layout ── */
.section-container{max-width:75rem;margin-left:auto;margin-right:auto;padding-left:1.5rem;padding-right:1.5rem;}
@media(max-width:47.9375rem){.section-container{padding-left:1rem;padding-right:1rem;}}
.nav-offset{padding-top:5rem;}
@media(max-width:47.9375rem){.nav-offset{padding-top:4.75rem;}}
@media(min-width:64rem){.nav-offset{padding-top:5.25rem;}}

.section-spacing { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 48rem) { .section-spacing { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 64rem) { .section-spacing { padding-top: 6rem; padding-bottom: 6rem; } }

/* ------------------------------------═
   NAVBAR LAYOUT
   ------------------------------------═ */
.nav-links-center{display:none;}
@media(min-width:75rem){.nav-links-center{display:flex;align-items:center;justify-content:center;gap:0.75rem;flex:0 1 auto;white-space:nowrap;pointer-events:auto;z-index:3;}}
@media(min-width:80rem){.nav-links-center{gap:1rem;}}
@media(min-width:90rem){.nav-links-center{gap:1.5rem;}}
.nav-links-center a{font-size:0.6875rem;white-space:nowrap;flex-shrink:0;transition:color 0.2s ease;}
@media(min-width:75rem){.nav-links-center a{font-size:0.71875rem;}}
@media(min-width:80rem){.nav-links-center a{font-size:0.78125rem;}}
@media(min-width:90rem){.nav-links-center a{font-size:0.84375rem;}}
.nav-logo-wrap{display:flex;align-items:center;margin-top:0.0625rem;justify-content:flex-start;flex:1 1 0%;min-width:max-content;z-index:3;}
.nav-actions-wrap{display:flex;align-items:center;justify-content:flex-end;gap:0.5rem;flex:1 1 0%;min-width:max-content;z-index:3;}

/* ------------------------------------═
   BRAND GLOW SEARCH BARS
   ------------------------------------═ */
.glow-search-wrap{position:relative;border-radius:6.1875rem;}
.glow-search-wrap .glow-search-inner{position:relative;z-index:1;border-radius:inherit;}
.glow-search-wrap input{transition:box-shadow 0.35s cubic-bezier(0.25,1,0.5,1),border-color 0.35s ease;}
.glow-search-wrap:focus-within input{border-color:transparent!important;box-shadow:0 0 0 0.0625rem rgba(255,255,255,0.5),0 0 0.625rem 0.125rem rgba(255,255,255,0.4),0 0 1.125rem 0.25rem rgba(70,70,175,0.4);outline:none;}
.mobile-glow-search-wrap{position:relative;border-radius:6.1875rem;}
.mobile-glow-search-wrap .mobile-glow-inner{position:relative;z-index:1;border-radius:inherit;}
#mobile-menu-search{background:rgba(255,255,255,0.12);border:0.0625rem solid rgba(255,255,255,0.2);border-radius:6.1875rem;padding:0.625rem 1rem 0.625rem 2.5rem;color:#fff;font-size:0.875rem;width:100%;outline:none;transition:box-shadow 0.35s cubic-bezier(0.25,1,0.5,1),border-color 0.35s ease;}
#mobile-menu-search::placeholder{color:rgba(255,255,255,0.5);}
#mobile-menu-search:focus{border-color:transparent!important;box-shadow:0 0 0 0.0625rem rgba(255,255,255,0.3),0 0 0.625rem 0.1875rem rgba(255,255,255,0.25),0 0 1.375rem 0.375rem rgba(70,70,175,0.5);}

/* ── Mobile menu drawer ── */
#mobile-menu{position:fixed;inset:0;z-index:200;pointer-events:none;visibility:hidden;transition:visibility 0s linear 0.40s;}
#mobile-menu.open{pointer-events:all;visibility:visible;transition-delay:0s;}
#mobile-menu.closing{pointer-events:none;visibility:visible;transition-delay:0s;}
#mobile-menu-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.35);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);opacity:0;transition:opacity 0.40s cubic-bezier(0.25,1,0.3,1);}
#mobile-menu.open #mobile-menu-backdrop{opacity:1;}
#mobile-menu.closing #mobile-menu-backdrop{opacity:0;}
#mobile-menu-panel{position:absolute;top:0;right:0;bottom:0;width:80%;max-width:20rem;transform:translateX(100%);transition:transform 0.40s cubic-bezier(0.25,1,0.3,1);background:rgba(255,255,255,0.1);backdrop-filter:blur(1.25rem) saturate(180%);-webkit-backdrop-filter:blur(1.25rem) saturate(180%);border-left:0.0625rem solid rgba(255,255,255,0.1);box-shadow:inset 0.0625rem 0 0 rgba(255,255,255,0.1),-0.25rem 0 2rem rgba(0,0,0,0.25);overflow:hidden;}
#mobile-menu-panel::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 100% 45% at 50% 0%,rgba(255,255,255,0.45) 0%,rgba(255,255,255,0.12) 45%,transparent 70%);pointer-events:none;z-index:1;}
#mobile-menu-panel::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 70% 30% at 50% 100%,rgba(255,255,255,0.15) 0%,transparent 70%);pointer-events:none;z-index:1;}
#mobile-menu-panel>*{position:relative;z-index:2;}
#mobile-menu.open #mobile-menu-panel{transform:translateX(0);}
#mobile-menu.closing #mobile-menu-panel{transform:translateX(100%);}
.mobile-nav-link{display:flex;align-items:center;gap:0.75rem;padding:0.875rem 0;font-size:1rem;font-weight:600;color:rgba(255,255,255,0.92);border-bottom:0.0625rem solid rgba(255,255,255,0.08);transition:color 0.2s;text-decoration:none;}
.mobile-nav-link:last-child{border-bottom:none;}
.mobile-nav-link:active{color:#fff;}
.mobile-nav-link .mat-icon{font-size:1.25rem;opacity:0.7;font-family:'Material Symbols Outlined';font-weight:300;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;font-feature-settings:'liga';}

/* ------------------------------------═
   GALLERY DIALOG / LIGHTBOX
   ------------------------------------═ */
#gallery-dialog {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  pointer-events: none; visibility: hidden;
  transition: visibility 0s linear 0.3s;
}
#gallery-dialog.open {
  pointer-events: all; visibility: visible; transition-delay: 0s;
}
#gallery-dialog-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(0.5rem); -webkit-backdrop-filter: blur(0.5rem);
  opacity: 0; transition: opacity 0.3s ease;
}
#gallery-dialog.open #gallery-dialog-backdrop { opacity: 1; }
#gallery-dialog-panel {
  position: relative; z-index: 2; width: 100%; max-width: 42.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(2rem) saturate(200%); -webkit-backdrop-filter: blur(2rem) saturate(200%);
  border: 0.0625rem solid rgba(255,255,255,0.4);
  border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.2);
  opacity: 0; transform: scale(0.95) translateY(0.625rem);
  transition: all 0.3s cubic-bezier(0.25,1,0.3,1);
  display: flex; flex-direction: column;
}
#gallery-dialog.open #gallery-dialog-panel {
  opacity: 1; transform: scale(1) translateY(0);
}

/* ------------------------------------═
   PRO DESIGN STUDIO MODAL — LIGHT GLASS REDESIGN
   ------------------------------------═ */
#studio-dialog {
  --studio-glass-fill: rgba(255,255,255,0.94);
  --studio-glass-line: rgba(226,232,240,0.80);
  --studio-glass-line-strong: rgba(255,255,255,0.95);
  --studio-text: #0f172a;
  --studio-muted: #64748b;
  --studio-soft: rgba(100,116,139,0.08);
  --studio-accent: #4f46e5;
  --studio-accent-strong: #4338ca;
  --studio-danger: #ef4444;
}
#studio-dialog {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh;
  pointer-events: none; visibility: hidden; transition: visibility 0s linear 0.3s;
}
#studio-dialog.open {
  pointer-events: all; visibility: visible; transition-delay: 0s;
}
#studio-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.40);
  backdrop-filter: blur(1.25rem) saturate(140%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(140%);
  opacity: 0; transition: opacity 0.3s ease;
}
#studio-dialog.open #studio-backdrop { opacity: 1; }

#studio-panel {
  position: relative; z-index: 2; width: 100%; height: 100%; max-height: 100%;
  height: 100dvh; max-height: 100dvh;
  background: rgba(248,250,252,0.97);
  backdrop-filter: blur(2.5rem) saturate(200%) brightness(1.02);
  -webkit-backdrop-filter: blur(2.5rem) saturate(200%) brightness(1.02);
  border: 0.0625rem solid rgba(255,255,255,0.92);
  opacity: 0; transform: scale(0.97) translateY(0.5rem);
  transition: all 0.3s cubic-bezier(0.25,1,0.5,1);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.98),
    inset 0 -0.0625rem 0 rgba(226,232,240,0.50),
    0 2.375rem 5.625rem rgba(0,0,0,0.14);
}
#studio-panel::before,
#studio-panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
}
#studio-panel::before {
  z-index: 0;
  background: radial-gradient(ellipse 120% 28% at 50% 0%, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.25) 50%, transparent 70%);
}
#studio-panel::after {
  z-index: 1;
  box-shadow: inset 0 0 0 0.0625rem rgba(255,255,255,0.80);
}
#studio-panel > * { position: relative; z-index: 2; }

#studio-dialog,
#studio-dialog input,
#studio-dialog textarea,
#studio-dialog select,
#studio-dialog button,
#studio-dialog label,
#studio-dialog span:not(.material-symbols-outlined):not(.studio-svg-icon),
#studio-dialog p,
#studio-dialog h2,
#studio-dialog h3 {
  font-family: 'Outfit', sans-serif;
}

@media(min-width:40rem) {
  #studio-panel { width: 97vw; max-width: none; height: 95%; max-height: 95%; height: 95dvh; max-height: 95dvh; border-radius: 1.75rem; }
}
/* ── 2K / 1920px+ : slightly taller border-radius ── */
@media(min-width:120rem) {
  #studio-panel { border-radius: 2rem; }
}
#studio-dialog.open #studio-panel { opacity: 1; transform: scale(1) translateY(0); }

/* ------------------------------------═
   Studio UI Capitalization (Title Case-like)
   Apply capitalization only to studio chrome/UI labels and controls
   Avoid transforming user content (inputs, canvas, layers list)
   ------------------------------------═ */
#studio-dialog .studio-tool-btn span.lbl,
#studio-dialog .props-section-title,
#studio-dialog .props-label,
#studio-dialog .props-btn,
#studio-dialog .props-slider-head,
#studio-dialog .props-value,
#studio-dialog #studio-header h2,
#studio-dialog #studio-header p,
#studio-dialog .studio-canvas-hint,
#studio-dialog .studio-shortcut-hint,
#studio-dialog #studio-obj-count,
#studio-dialog #studio-selection-info,
#studio-dialog .studio-hdr-btn,
#studio-dialog .cart-btn-glass,
#studio-dialog .studio-cancel-btn,
#studio-dialog .section-pill span,
#studio-dialog .ge-type-pill,
#studio-dialog .ge-tab {
  text-transform: capitalize;
}

/* Keep form controls, user-editable text, canvas and layers untouched */
#studio-dialog input,
#studio-dialog textarea,
#studio-dialog select,
#studio-dialog canvas,
#studio-dialog .studio-layers-list,
#studio-dialog .studio-layers-list * {
  text-transform: none !important;
}

/* ── Studio Header ── */
#studio-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 0.875rem 0.625rem 0;
  border-bottom: 0.0625rem solid rgba(226,232,240,0.70);
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(1.375rem) saturate(160%);
  -webkit-backdrop-filter: blur(1.375rem) saturate(160%);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.98),
    0 0.0625rem 0 rgba(226,232,240,0.50);
  flex-shrink: 0; gap: 0.5rem;
}
@media(min-width:40rem)  { #studio-header { padding: 0.75rem 1.25rem 0.75rem 0; } }
@media(min-width:90rem)  { #studio-header { height: 4rem; padding: 0.875rem 1.5rem 0.875rem 0; } }
@media(min-width:120rem) { #studio-header { height: 4.5rem; } }

.studio-bleed-note {
  position: relative;
  margin-left: auto;
  pointer-events: none;
}

.studio-brand-mark {
  width: 2.125rem; height: 2.125rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(79,70,229,0.10);
  border: 0.0625rem solid rgba(79,70,229,0.22);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.80),
    0 0.125rem 0.5rem rgba(79,70,229,0.10);
  color: #4f46e5;
}
@media(min-width:120rem) {
  .studio-brand-mark { width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; }
  .studio-brand-mark .material-symbols-outlined { font-size: 1.375rem; }
}
.studio-brand-mark .material-symbols-outlined {
  font-size: 1.125rem;
  font-variation-settings: 'wght' 300, 'FILL' 0;
}

#studio-header h2 { color: #0f172a !important; }
#studio-header p { color: #64748b !important; }
#studio-header #studio-size-lbl { color: #4f46e5 !important; }
#studio-header #studio-zoom-lbl { color: #64748b !important; }

.studio-zoom-control {
  background: rgba(248,250,252,0.90);
  border: 0.0625rem solid rgba(226,232,240,0.80);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.25rem rgba(0,0,0,0.04);
}
.studio-cancel-btn {
  color: #64748b;
  transition: color 0.18s ease, background 0.18s ease;
  border-radius: 0.625rem;
  font-family: 'Outfit', sans-serif;
}
.studio-cancel-btn:hover { color: #0f172a; background: rgba(226,232,240,0.45); }

/* ── Studio body layout ── */
#studio-body {
  flex: 1; display: flex; overflow: hidden; min-width: 0; min-height: 0;
}

/* ── Left Sidebar ── */
#studio-sidebar {
  width: 3.625rem;
  border-right: 0.0625rem solid rgba(226,232,240,0.70);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(1.375rem) saturate(150%);
  -webkit-backdrop-filter: blur(1.375rem) saturate(150%);
  box-shadow:
    0.0625rem 0 0 rgba(226,232,240,0.40),
    inset -0.0625rem 0 0 rgba(255,255,255,0.60);
  display: flex; flex-direction: column; align-items: center;
  padding: 0.625rem 0; gap: 0.375rem; flex-shrink: 0; overflow-y: auto;
}
@media(min-width:40rem)  { #studio-sidebar { width: 4.5rem; padding: 0.875rem 0; gap: 0.5rem; } }
@media(min-width:64rem)  { #studio-sidebar { width: 5.25rem; } }
@media(min-width:90rem)  { #studio-sidebar { width: 6rem; padding: 1.25rem 0; gap: 0.75rem; } }

.studio-tool-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.25rem; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: rgba(255,255,255,0.80);
  border: 0.0625rem solid rgba(226,232,240,0.80);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.95),
    0 0.0625rem 0.1875rem rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.25,1,0.5,1), background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  color: #94a3b8;
  position: relative; overflow: hidden;
}
@media(min-width:40rem)  { .studio-tool-btn { width: 2.875rem; height: 2.75rem; border-radius: 0.875rem; } }
@media(min-width:64rem)  { .studio-tool-btn { width: 3.375rem; height: 3.25rem; border-radius: 1rem; } }
@media(min-width:90rem)  { .studio-tool-btn { width: 3.875rem; height: 3.75rem; border-radius: 1.125rem; } }
.studio-tool-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 110% 50% at 50% 0%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.40) 55%, transparent 74%);
  pointer-events: none;
}
.studio-tool-btn:hover {
  transform: translateY(-0.0625rem);
  background: rgba(79,70,229,0.06);
  color: #4f46e5;
  border-color: rgba(79,70,229,0.28);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.95),
    0 0.25rem 0.75rem rgba(79,70,229,0.10),
    0 0 0 0.1875rem rgba(79,70,229,0.06);
}
.studio-tool-btn.active {
  background: linear-gradient(180deg, #5b4fee, #4f46e5);
  color: #ffffff;
  border-color: rgba(79,70,229,0.65);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.18),
    0 0.5rem 1.75rem rgba(79,70,229,0.22);
}
.studio-tool-btn .material-symbols-outlined,
.studio-tool-btn .studio-svg-icon {
  font-size: 0.9375rem; line-height: 1;
  font-variation-settings: 'wght' 300, 'FILL' 0;
}
@media(min-width:64rem) {
  .studio-tool-btn .material-symbols-outlined,
  .studio-tool-btn .studio-svg-icon { font-size: 1.0625rem; }
}
@media(min-width:90rem) {
  .studio-tool-btn .material-symbols-outlined,
  .studio-tool-btn .studio-svg-icon { font-size: 1.1875rem; }
  .studio-tool-btn span.lbl { font-size: 0.5rem; }
}
.studio-svg-icon {
  width: 1em; height: 1em; display: inline-block; vertical-align: middle;
  flex-shrink: 0; background-color: currentColor;
  -webkit-mask-image: var(--studio-icon);
  mask-image: var(--studio-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.icon-add-image { --studio-icon: url("../design-studio-icons/Add Image.svg"); }
.icon-adjustment { --studio-icon: url("../design-studio-icons/Adjustment.svg"); }
.icon-alignment-main { --studio-icon: url("../design-studio-icons/Alignment Main.svg"); }
.icon-bin { --studio-icon: url("../design-studio-icons/Bin.svg"); }
.icon-fill-bucket { --studio-icon: url("../design-studio-icons/Fill Bucket.svg"); }
.icon-fill { --studio-icon: url("../design-studio-icons/Fill.svg"); }
.icon-fit { --studio-icon: url("../design-studio-icons/Fit.svg"); }
.icon-flip-horizontal { --studio-icon: url("../design-studio-icons/Flip Horizontal.svg"); }
.icon-flip-vertical { --studio-icon: url("../design-studio-icons/Flip Vertical.svg"); }
.icon-horizontal-align-center { --studio-icon: url("../design-studio-icons/Horizontal Align Center.svg"); }
.icon-horizontal-align-left { --studio-icon: url("../design-studio-icons/Horizontal Align Left.svg"); }
.icon-horizontal-align-right { --studio-icon: url("../design-studio-icons/Horizontal Align Right.svg"); }
.icon-layers { --studio-icon: url("../design-studio-icons/Layers.svg"); }
.icon-select { --studio-icon: url("../design-studio-icons/Select.svg"); }
.icon-text { --studio-icon: url("../design-studio-icons/Text.svg"); }
.icon-vertical-align-bottom { --studio-icon: url("../design-studio-icons/Vertican Align Bottom.svg"); }
.icon-vertical-align-center { --studio-icon: url("../design-studio-icons/Vertican Align Center.svg"); }
.icon-vertical-align-top { --studio-icon: url("../design-studio-icons/Vertican Align Top.svg"); }

.studio-tool-btn.studio-delete-tool { 
  color: #ef4444; 
}
#studio-sidebar .studio-tool-btn.studio-delete-tool .studio-svg-icon,
#studio-sidebar .studio-tool-btn.studio-delete-tool:hover .studio-svg-icon { 
  color: currentColor; 
}
.studio-tool-btn.studio-delete-tool:hover {
  color: #dc2626; 
  border-color: rgba(220,38,38,0.30);
  background: rgba(220,38,38,0.08);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.95),
    0 0.25rem 0.75rem rgba(220,38,38,0.15);
}
.studio-tool-btn span.lbl {
  font-size: 0.4375rem; font-weight: 800; font-family: 'Outfit', sans-serif;
  letter-spacing: 0; line-height: 1; color: currentColor;
}

.studio-divider {
  width: 2.25rem; height: 0.0625rem;
  background: linear-gradient(90deg, transparent, rgba(226,232,240,0.90), transparent);
  margin: 0; flex-shrink: 0;
}
#studio-sidebar .studio-divider { display: none; margin: 0; height: 0; }

/* ── Canvas Area ── */
#studio-canvas-area {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; overflow: hidden; padding: 1.125rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,0.55) 0%, transparent 70%),
    linear-gradient(rgba(79,70,229,0.04) 0.0625rem, transparent 0.0625rem),
    linear-gradient(90deg, rgba(79,70,229,0.04) 0.0625rem, transparent 0.0625rem),
    #eef2f7;
  background-size: auto, 2rem 2rem, 2rem 2rem, auto;
  position: relative;
}

#studio-canvas-wrapper {
  position: relative; z-index: 0; flex-shrink: 0;
  border-radius: 0; overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translateZ(0);
  will-change: transform;
  touch-action: none;
}
#studio-canvas-wrapper .canvas-container,
#studio-canvas-wrapper canvas {
  border-radius: 0;
  touch-action: none;
}
#studio-bleed-overlay {
  display: none;
}

.studio-canvas-hint,
.studio-shortcut-hint {
  color: #64748b;
  font-family: 'Outfit', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  background: rgba(255,255,255,0.90);
  border: 0.0625rem solid rgba(226,232,240,0.80);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.95),
    0 0.0625rem 0.25rem rgba(0,0,0,0.04);
  backdrop-filter: blur(0.875rem) saturate(150%);
  -webkit-backdrop-filter: blur(0.875rem) saturate(150%);
}
.studio-canvas-hint {
  padding: 0.375rem 0.75rem; border-radius: 62.4375rem;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.studio-canvas-hint .material-symbols-outlined {
  font-size: 0.8125rem;
  color: #ef4444;
  font-variation-settings: 'wght' 300, 'FILL' 0;
}
.studio-shortcut-hint {
  padding: 0.3125rem 0.625rem; border-radius: 62.4375rem;
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.03em;
  color: #94a3b8;
}

/* ── Right Properties Panel ── */
#studio-props {
  width: 0;
  border-left: 0.0625rem solid rgba(226,232,240,0.70);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(1.375rem) saturate(160%);
  -webkit-backdrop-filter: blur(1.375rem) saturate(160%);
  box-shadow: inset 0.0625rem 0 0 rgba(255,255,255,0.70);
  overflow: hidden; transition: width 0.25s cubic-bezier(0.25,1,0.5,1);
  flex-shrink: 0; display: flex; flex-direction: column;
}
#studio-props.open { width: 13.375rem; }
@media(min-width:40rem)  { #studio-props.open { width: 14.875rem; } }
@media(min-width:64rem)  { #studio-props.open { width: 16.75rem; } }
@media(min-width:90rem)  { #studio-props.open { width: 19rem; } }
@media(min-width:120rem) { #studio-props.open { width: 21.5rem; } }

#studio-props-inner { width: 13.375rem; min-height: 0; padding: 1.125rem; display: flex; flex-direction: column; gap: 1.125rem; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
@media(min-width:40rem)  { #studio-props-inner { width: 14.875rem; } }
@media(min-width:64rem)  { #studio-props-inner { width: 16.75rem; } }
@media(min-width:90rem)  { #studio-props-inner { width: 19rem; } }
@media(min-width:120rem) { #studio-props-inner { width: 21.5rem; } }

/* ── Mobile: props panel becomes a right-side overlay drawer ── */
@media(max-width:47.9375rem) {
  #studio-dialog {
    align-items: stretch;
    justify-content: stretch;
  }

  #studio-panel {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  #studio-header {
    min-height: 5.3rem;
    padding: 0.78rem 1.1rem 0.78rem 0;
  }

  #studio-body {
    position: relative;
    flex-direction: column;
  }

  #studio-canvas-area {
    order: 1;
    flex: 1 1 auto;
    padding: 1.1rem;
    min-height: 0;
  }

  #studio-sidebar {
    order: 2;
    width: 100%;
    height: 5.25rem;
    flex: 0 0 5.25rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-top: 0.0625rem solid rgba(226,232,240,0.70);
    box-shadow:
      0 -0.0625rem 0 rgba(226,232,240,0.40),
      inset 0 0.0625rem 0 rgba(255,255,255,0.75);
  }

  .studio-tool-btn {
    width: 3.75rem;
    height: 3.75rem;
    flex: 0 0 3.75rem;
    border-radius: 1rem;
    gap: 0.3125rem;
  }

  .studio-tool-btn .material-symbols-outlined,
  .studio-tool-btn .studio-svg-icon {
    font-size: 1.25rem;
  }

  .studio-tool-btn span.lbl {
    font-size: 0.5625rem;
  }

  #studio-statusbar {
    display: none;
  }

  /* Compact properties bottom sheet inspired by Picsart */
  #studio-props,
  #studio-props.open {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 35dvh;
    z-index: 30;
    border-left: 0;
    border-top: 0.0625rem solid rgba(226,232,240,0.80);
    border-radius: 1.5rem 1.5rem 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25,1,0.5,1), box-shadow 0.3s ease;
    overflow: hidden;
  }

  #studio-props.open {
    transform: translateY(0);
    box-shadow: 0 -1.25rem 3.5rem rgba(15,23,42,0.22), 0 -0.25rem 1rem rgba(15,23,42,0.08), inset 0 0.0625rem 0 rgba(255,255,255,0.70);
  }

  #studio-props-inner {
    width: 100%;
    padding: 0.375rem 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  #studio-props::before {
    display: none; /* Hide drag indicator handle to save space */
  }
}

/* ── Tablet: props panel overlay mode transitions to constrained desktop at 48rem–64rem ── */
@media(min-width:48rem) and (max-width:63.9375rem) {
  #studio-props.open { width: 13.5rem; }
  #studio-props-inner { width: 13.5rem; }
  #studio-canvas-area { padding: 0.875rem; }
  .studio-zoom-control { display: none !important; }
}

/* ── Mobile dimmer overlay — suppressed ── */
@media (max-width: 47.9375rem) {
  #studio-body.props-open::after {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
  }
}

/* ── Status bar: larger text + spacing at 1920px+ ── */
@media(min-width:90rem) {
  #studio-statusbar { padding: 0.5rem 1.125rem; font-size: 0.6875rem; gap: 1rem; }
}

/* ── Header zoom control sizing at 1920px+ ── */
@media(min-width:90rem) {
  .studio-zoom-control { padding: 0.375rem 0.625rem; border-radius: 1rem; }
  .studio-hdr-btn { width: 2.375rem; height: 2.375rem; border-radius: 0.75rem; }
  .studio-hdr-btn .material-symbols-outlined,
  .studio-hdr-btn .studio-svg-icon { font-size: 1.1875rem; }
}

#props-select-section,
#props-image-section,
#props-text-section,
#props-bg-section,
#props-layers-section,
#props-image-controls {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.props-section-title {
  font-family: 'Outfit', sans-serif; font-size: 0.5625rem; font-weight: 800;
  letter-spacing: 0.10em; color: #4f46e5;
  margin-bottom: 0.375rem;
  padding-top: 0.25rem;
}
.props-row { display: flex; flex-direction: column; gap: 0.75rem; }
.props-row-inline { display: flex; gap: 0.75rem; align-items: stretch; }
.props-btn-row { display: flex; gap: 0.625rem; align-items: center; }

.props-input--compact { padding: 0.5rem 1.125rem 0.5rem 0.75rem; }
.props-row-inline .props-select { flex: 1; padding: 0.5rem 0.625rem; }
.props-inline-number-wrap { width: 5.25rem; flex: 0 0 5.25rem; position: relative; }
.props-inline-number-wrap--stepper::before,
.props-inline-number-wrap--stepper::after {
  position: absolute;
  right: 0.6875rem;
  color: #94a3b8;
  font-size: 0.5rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}
.props-inline-number-wrap--stepper::before {
  content: '▲';
  top: 0.6875rem;
}
.props-inline-number-wrap--stepper::after {
  content: '▼';
  bottom: 0.6875rem;
}

.props-input--compact {
  width: 100%; text-align: center;
  border-radius: 1rem !important;
  padding: 0.5rem 1.5rem 0.5rem 0.75rem;
  height: 2.625rem;
  line-height: 1;
}
.props-input--compact::-webkit-inner-spin-button,
.props-input--compact::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.props-input--compact {
  appearance: textfield;
  -moz-appearance: textfield;
}
#prop-fontsize {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,247,251,0.97)) !important;
  border: 0.0625rem solid rgba(226,232,240,0.96) !important;
  border-radius: 1rem !important;
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.96),
    0 0.5rem 1.375rem rgba(15,23,42,0.05) !important;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
#prop-fontsize:hover {
  border-color: rgba(79,70,229,0.26) !important;
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.98),
    0 0.625rem 1.5rem rgba(79,70,229,0.08) !important;
}
#prop-fontsize:focus {
  border-color: rgba(79,70,229,0.58) !important;
  box-shadow:
    0 0 0 0.1875rem rgba(79,70,229,0.10),
    inset 0 0.0625rem 0 rgba(255,255,255,0.98),
    0 0.75rem 1.75rem rgba(79,70,229,0.12) !important;
}

.props-row-inline .custom-select { flex: 1; min-width: 0; }
.props-row-inline .custom-select__trigger { height: 2.625rem; }
.props-label { font-family: 'Outfit', sans-serif; font-size: 0.625rem; font-weight: 700; color: #64748b; margin-bottom: 0.125rem; }
.props-slider-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-family: 'Outfit', sans-serif; font-size: 0.625rem; font-weight: 700; color: #64748b;
  margin-bottom: 0.25rem;
}
.props-slider-head span:last-child {
  color: #4f46e5;
  font-size: 0.5625rem;
  font-weight: 800;
  min-width: 1.5rem;
  text-align: right;
}
.props-value {
  text-align: right; font-size: 0.625rem; color: #4f46e5;
  font-family: 'Outfit', sans-serif; font-weight: 800;
}
.props-input {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,247,249,0.96)) !important;
  border: 0.0625rem solid rgba(226,232,240,0.95) !important;
  border-radius: 0.875rem !important; padding: 0.5rem 0.75rem; color: #0f172a;
  font-family: 'Outfit', sans-serif; font-size: 0.6875rem; font-weight: 700;
  outline: none !important; width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.98), 0 0.5rem 1.5rem rgba(0,0,0,0.04) !important;
}
.props-input:focus {
  border-color: rgba(79,70,229,0.6) !important;
  box-shadow: 0 0.75rem 2.5rem rgba(79,70,229,0.08), inset 0 0.0625rem 0 rgba(255,255,255,0.98) !important;
  background: #ffffff !important;
}

.custom-color-picker-wrap {
  width: 100%;
  height: 2.625rem;
  border-radius: 0.875rem;
  border: 0.0625rem solid rgba(226,232,240,0.90);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.95), 0 0.0625rem 0.1875rem rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.custom-color-picker-wrap .pickr { width: 100%; height: 100%; display: block; }

.custom-color-picker-wrap .pcr-button {
  width: 100%;
  height: 100%;
  border-radius: 0.8125rem;
  border: none !important;
}
.custom-color-picker-wrap .pcr-button::before,
.custom-color-picker-wrap .pcr-button::after {
  border-radius: 0.8125rem;
}

.pcr-app {
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(1.5rem) saturate(180%) !important;
  -webkit-backdrop-filter: blur(1.5rem) saturate(180%) !important;
  border: 0.0625rem solid rgba(226,232,240,0.9) !important;
  border-radius: 1rem !important;
  box-shadow: 0 0.75rem 2.5rem rgba(15,23,42,0.12) !important;
  font-family: 'Outfit', sans-serif !important;
  padding: 0.75rem !important;
  z-index: 100000 !important;
}

.pcr-app .pcr-selection .pcr-color-palette {
  border-radius: 0.625rem !important;
  overflow: hidden;
  border: 0.0625rem solid rgba(0,0,0,0.05);
}

.pcr-app .pcr-interaction input {
  border-radius: 0.5rem !important;
  border: 0.0625rem solid rgba(226,232,240,0.9) !important;
  color: #0f172a !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
}

.props-input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  height: 2.625rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.875rem;
  border: 0.0625rem solid rgba(226,232,240,0.90);
  background: var(--selected-color, #ffffff);
  box-shadow: 0 0.375rem 1.125rem rgba(0,0,0,0.04);
}
.props-input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; border-radius: inherit; }
.props-input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: inherit;
  background: transparent;
}
.props-input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: inherit;
}
.props-input[type="color"]:focus { outline: none; box-shadow: 0 0.625rem 2.25rem rgba(79,70,229,0.10); border-color: rgba(79,70,229,0.6); }

.props-row .props-input[type="color"] { width: 100%; }
.props-input[type="range"] { padding: 0; accent-color: #4f46e5; background: transparent; border-color: transparent; box-shadow: none; }
.props-select {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  border: 0.0625rem solid rgba(226,232,240,0.95);
  border-radius: 0.875rem; padding: 0.5rem 0.625rem; color: #0f172a;
  font-family: 'Outfit', sans-serif; font-size: 0.6875rem; font-weight: 600;
  outline: none; width: 100%; cursor: pointer; appearance: none;
  -webkit-appearance: none; -moz-appearance: none;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.375rem rgba(0,0,0,0.06);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.75rem;
  transition: box-shadow 180ms cubic-bezier(.25,1,.5,1), border-color 150ms ease, transform 120ms ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><path d='M3 5l4 4 4-4' stroke='%234f46e5' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.props-select:hover {
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.375rem 1.25rem rgba(79,70,229,0.06);
}
.props-select:focus {
  border-color: rgba(79,70,229,0.65);
  box-shadow: 0 0.5rem 2rem rgba(79,70,229,0.10), inset 0 0.0625rem 0 rgba(255,255,255,0.90);
}
.props-select::-ms-expand { display: none; }
.props-select option { background: #f8fafc; color: #0f172a; font-family: 'Outfit', sans-serif; font-weight: 600; }

@media (max-width: 32.5rem) {
  .props-select { padding-right: 2.125rem; }
}

.custom-select { position: relative; width: 100%; font-family: 'Outfit', sans-serif; }
.custom-select__trigger {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; cursor: pointer; user-select: none;
  padding: 0.5rem 0.75rem; border-radius: 0.875rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,247,249,0.96));
  border: 0.0625rem solid rgba(226,232,240,0.95);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.95), 0 0.5rem 1.5rem rgba(0,0,0,0.04);
  font-size: 0.6875rem; font-weight: 700; color: #0f172a;
  width: 100%; min-width: 0; 
}
.custom-select__trigger:focus { outline: none; box-shadow: 0 0.75rem 2.5rem rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.6); }
.custom-select__value { 
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 
  flex: 1; min-width: 0; text-align: left; 
}
.custom-select__chev { margin-left: 0.5rem; width: 1.125rem; height: 1.125rem; display: inline-flex; align-items: center; justify-content: center; }
.custom-select__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem);
  background: #fff; border: 0.0625rem solid rgba(226,232,240,0.95); border-radius: 0.75rem;
  box-shadow: 0 1.125rem 3rem rgba(0,0,0,0.12); z-index: 40; padding: 0.375rem; max-height: 15rem; overflow: auto;
}
.custom-select__item {
  padding: 0.5rem 0.625rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.8125rem; font-weight: 700; color: #0f172a;
}
.custom-select__item:hover, .custom-select__item[aria-selected='true'] { background: rgba(79,70,229,0.06); color: #4f46e5; }
.custom-select__item[aria-disabled='true'] { opacity: 0.5; cursor: default; }
.custom-select--hidden { display: none !important; }

.custom-select__list::-webkit-scrollbar { width: 0.5rem; }
.custom-select__list::-webkit-scrollbar-thumb { background: rgba(79,70,229,0.12); border-radius: 0.5rem; }

.range-wrap { position: relative; width: 100%; }
.range-wrap .props-input[type="range"] { width: 100%; display: block; }
.zero-tick {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 0.625rem; height: 0.625rem; background: radial-gradient(circle at 35% 35%, #ffffff22, #4f46e5 65%);
  border-radius: 62.4375rem; border: 0.125rem solid rgba(255,255,255,0.9);
  box-shadow: 0 0.375rem 1.125rem rgba(79,70,229,0.12), 0 0.0625rem 0 rgba(255,255,255,0.6) inset;
  pointer-events: none; z-index: 10;
}
.zero-tick::after {
  content: '';
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 1.375rem; height: 1.375rem; border-radius: 62.4375rem;
  box-shadow: 0 0 0 0.375rem rgba(79,70,229,0.04);
  pointer-events: none; z-index: -1;
}

.props-btn-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.props-btn-row:last-child { margin-bottom: 0; }
.props-btn {
  flex: 1; min-width: 0; height: 2.375rem; border-radius: 0.875rem;
  border: 0.0625rem solid rgba(226,232,240,0.90);
  background: rgba(248,250,252,0.90); color: #64748b; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 0.625rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.1875rem;
  transition: transform 0.18s cubic-bezier(0.25,1,0.5,1), background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.1875rem rgba(0,0,0,0.04);
}
.props-btn:hover {
  transform: translateY(-0.0625rem);
  background: rgba(79,70,229,0.06);
  color: #4f46e5;
  border-color: rgba(79,70,229,0.28);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.25rem 0.625rem rgba(79,70,229,0.10);
}
.props-btn.active {
  background: rgba(79,70,229,0.10);
  color: #4f46e5;
  border-color: rgba(79,70,229,0.38);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.80), 0 0.25rem 0.625rem rgba(79,70,229,0.12);
}
.props-btn .material-symbols-outlined,
.props-btn .studio-svg-icon {
  font-size: 1rem;
  font-variation-settings: 'wght' 300, 'FILL' 0;
}

#studio-props .props-btn .material-symbols-outlined,
#studio-props .props-btn .studio-svg-icon,
#studio-props .props-btn:hover .material-symbols-outlined,
#studio-props .props-btn:hover .studio-svg-icon,
#studio-props .props-btn.active .material-symbols-outlined,
#studio-props .props-btn.active .studio-svg-icon { color: #4f46e5; }

#studio-sidebar .studio-tool-btn .material-symbols-outlined,
#studio-sidebar .studio-tool-btn .studio-svg-icon { color: #4f46e5; transition: color 0.12s ease; }
#studio-sidebar .studio-tool-btn:hover .material-symbols-outlined,
#studio-sidebar .studio-tool-btn:hover .studio-svg-icon { color: #4f46e5; }
#studio-sidebar .studio-tool-btn.active .material-symbols-outlined,
#studio-sidebar .studio-tool-btn.active .studio-svg-icon,
#studio-sidebar .studio-tool-btn.active .lbl { color: #ffffff; }

.studio-hdr-btn .material-symbols-outlined,
.studio-hdr-btn .studio-svg-icon { color: #4f46e5; }
.studio-hdr-btn:disabled .material-symbols-outlined,
.studio-hdr-btn:disabled .studio-svg-icon { color: var(--studio-muted); }

.props-separator {
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, rgba(226,232,240,0.90), transparent);
  margin: 0;
}

/* ------------------------------------═
   DESIGN STUDIO LAYERS PANEL — PHOTOSHOP STYLE (SORTABLE.JS)
   ------------------------------------═ */

.studio-layers-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 2rem;
  margin-top: 0.5rem;
}

.studio-layer-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.375rem 1fr 1.375rem 1.375rem 1.375rem;
  align-items: center;
  gap: 0.3125rem;
  min-height: 2.125rem;
  padding: 0.3125rem;
  border: 0.0625rem solid rgba(226, 232, 240, 0.90);
  border-radius: 0.875rem;
  background: rgba(248, 250, 252, 0.90);
  color: #64748b;
  cursor: grab;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.1875rem rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.studio-layer-item:active { cursor: grabbing; }

.studio-layer-item.active {
  border-color: rgba(79, 70, 229, 0.38);
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
}
.studio-layer-item.is-hidden { opacity: 0.48; }

/* --- SORTABLE.JS SPECIFIC CLASSES --- */

.sortable-drag {
  opacity: 0.9 !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 0.75rem 2rem rgba(0,0,0,0.15), 0 0 0 0.125rem rgba(79,70,229,0.5) !important;
  transform: scale(1.02);
  cursor: grabbing !important;
  z-index: 100;
}

.sortable-ghost {
  opacity: 0.3;
  background: rgba(79,70,229,0.05);
  border: 0.125rem dashed rgba(79,70,229,0.4);
  box-shadow: none;
}

.sortable-ghost::before {
  content: '';
  position: absolute;
  top: -0.375rem;
  left: 0; 
  right: 0;
  height: 0.1875rem;
  background: #4f46e5;
  border-radius: 0.1875rem;
  box-shadow: 0 0 0.375rem rgba(79,70,229,0.6);
  z-index: 10;
  pointer-events: none;
}

.studio-layer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 800;
  pointer-events: none; 
}

/* Layer Buttons */
.studio-layer-btn {
  width: 1.375rem;
  height: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4375rem;
  color: #4f46e5;
  background: rgba(255,255,255,0.70);
  border: 0.0625rem solid rgba(226,232,240,0.90);
  transition: all 0.15s ease;
}
.studio-layer-btn:hover { background: rgba(79,70,229,0.10); }

/* Disabled state — used by ▲/▼ order buttons at the top/bottom of the stack */
.studio-layer-btn:disabled {
  opacity: 0.28;
  pointer-events: none;
  cursor: default;
}

/* Mobile layer items use the same 5-column grid but with ▲▼ instead of dup+lock */
.mob-layers-list .studio-layer-item {
  grid-template-columns: 1.375rem 1fr 1.375rem 1.375rem 1.375rem;
  cursor: default;
}
.mob-layers-list .studio-layer-item:active {
  cursor: default;
}

.studio-layer-btn.studio-layer-btn-danger { color: #94a3b8; }
.studio-layer-btn.studio-layer-btn-danger:hover {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border-color: rgba(239,68,68,0.30);
}

.studio-layer-btn .material-symbols-outlined {
  font-size: 0.8125rem;
  font-variation-settings: 'wght' 300, 'FILL' 0;
}

.studio-layer-empty {
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 0;
}

/* ── Bottom Status Bar ── */
#studio-statusbar {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.375rem 0.875rem;
  border-top: 0.0625rem solid rgba(226,232,240,0.70);
  background: rgba(255,255,255,0.92); flex-shrink: 0;
  backdrop-filter: blur(1.125rem) saturate(150%);
  -webkit-backdrop-filter: blur(1.125rem) saturate(150%);
  font-family: 'Outfit', sans-serif; font-size: 0.625rem; font-weight: 700; color: #94a3b8;
  flex-wrap: wrap;
}
#studio-statusbar span.sep { color: rgba(226,232,240,0.90); }

@media(max-width:47.9375rem) {
  #studio-statusbar {
    display: none !important;
  }

  #studio-statusbar > div.flex {
    display: none;
  }
}

/* ── Undo / Redo header buttons ── */
.studio-hdr-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.625rem;
  background: rgba(248,250,252,0.90);
  border: 0.0625rem solid rgba(226,232,240,0.80);
  color: #64748b; cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.25,1,0.5,1), background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.1875rem rgba(0,0,0,0.04);
}
.studio-hdr-btn:hover {
  transform: translateY(-0.0625rem);
  background: rgba(79,70,229,0.06);
  color: #4f46e5;
  border-color: rgba(79,70,229,0.28);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.25rem 0.625rem rgba(79,70,229,0.10);
}
.studio-hdr-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.studio-hdr-btn .material-symbols-outlined,
.studio-hdr-btn .studio-svg-icon { font-size: 1.0625rem; font-variation-settings: 'wght' 300, 'FILL' 0; }

/* Canvas container from Fabric */
.canvas-container { margin: 0 auto; }
#studio-canvas-wrapper .canvas-container {
  box-shadow: none;
}

/* ── Loading overlay ── */
#studio-loading {
  position: absolute; inset: 0; background: rgba(248,250,252,0.90);
  backdrop-filter: blur(0.875rem) saturate(160%);
  -webkit-backdrop-filter: blur(0.875rem) saturate(160%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; z-index: 10; border-radius: 0.875rem;
}
#studio-loading .spin {
  width: 2.125rem; height: 2.125rem; border: 0.1875rem solid rgba(79,70,229,0.16);
  border-top-color: #4f46e5; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#studio-loading span { color: #64748b !important; }

/* ── Confirm discard dialog ── */
#studio-confirm {
  position: absolute; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  background: rgba(248,250,252,0.82);
  backdrop-filter: blur(0.875rem) saturate(150%);
  -webkit-backdrop-filter: blur(0.875rem) saturate(150%);
}
#studio-confirm.show { display: flex; }
#studio-confirm-box {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(1.5rem) saturate(160%);
  -webkit-backdrop-filter: blur(1.5rem) saturate(160%);
  border: 0.0625rem solid rgba(226,232,240,0.90);
  border-radius: 1.25rem; padding: 1.5rem; max-width: 20rem; width: 90%;
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.95),
    0 1.5rem 3.25rem rgba(0,0,0,0.10);
}
#studio-confirm-box p:first-child { color: #0f172a !important; }
#studio-confirm-box p:nth-child(2) { color: #64748b !important; }
#studio-confirm-box button:first-of-type {
  border-color: rgba(226,232,240,0.90) !important;
  color: #64748b !important;
  background: rgba(248,250,252,0.90) !important;
}
#studio-confirm-box button:first-of-type:hover {
  background: rgba(226,232,240,0.50) !important;
  color: #0f172a !important;
}

/* ── Staggered fade-in ── */
[data-staggered-item]{opacity:0;transform:translateY(2.5rem);transition:opacity 1s cubic-bezier(0.25,0.1,0.25,1),transform 1s cubic-bezier(0.25,0.1,0.25,1);will-change:opacity,transform;}
[data-staggered-item].is-visible{opacity:1;transform:translateY(0);}

::-webkit-scrollbar{width:0.25rem;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:6.1875rem;}

/* ------------------------------------═
   PAGE HERO
   ------------------------------------═ */
.design-hero{position:relative;width:100%;border-radius:1.75rem;overflow:hidden;height:18.75rem;margin-bottom: 2rem;}
@media(min-width:48rem){.design-hero{height:22.5rem;border-radius:1.5rem;margin-bottom: 3rem;}}
@media(min-width:64rem){.design-hero{height:26.25rem;border-radius:1.5rem;margin-bottom: 4rem;}}

/* ------------------------------------═
   STEP BAR — frosted glass sticky header
   ------------------------------------═ */
#step-bar {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(2rem) saturate(200%);
  -webkit-backdrop-filter: blur(2rem) saturate(200%);
  border-bottom: 0.0625rem solid rgba(255,255,255,0.60);
  box-shadow:
    inset 0 -0.0625rem 0 rgba(226,232,240,0.55),
    0 0.25rem 1.25rem rgba(0,0,0,0.04),
    0 0.0625rem 0 rgba(255,255,255,0.80);
  transition: box-shadow 0.3s ease;
}

/* ------------------------------------═
   STEP INDICATOR
   ------------------------------------═ */
.step-indicator{display:flex;align-items:center;gap:0;}
.step-node{display:flex;flex-direction:column;align-items:center;gap:0.375rem;flex-shrink:0;}
.step-circle{width:2.25rem;height:2.25rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Outfit',sans-serif;font-size:0.8125rem;font-weight:800;transition:all 0.3s cubic-bezier(0.25,1,0.5,1);position:relative;flex-shrink:0;}
.step-circle.active{background:#4f46e5;color:#fff;box-shadow:0 0.25rem 1rem rgba(79,70,229,0.4);}
.step-circle.active::after{content:'';position:absolute;inset:-0.25rem;border-radius:50%;border:0.125rem solid rgba(79,70,229,0.3);animation:stepPulse 2s infinite;}
@keyframes stepPulse{0%,100%{opacity:1;transform:scale(1);}50%{opacity:0;transform:scale(1.4);}}
.step-circle.completed{background:#10b981;color:#fff;box-shadow:0 0.25rem 0.75rem rgba(16,185,129,0.3);}
.step-circle.pending{background:#f1f5f9;color:#94a3b8;border:0.09375rem solid #e2e8f0;}
.step-label{font-family:'Outfit',sans-serif;font-size:0.5625rem;font-weight:800;text-transform:uppercase;letter-spacing:0.08em;white-space:nowrap;transition:color 0.3s;}
.step-label.active-lbl{color:#4f46e5;}
.step-label.completed-lbl{color:#10b981;}
.step-label.pending-lbl{color:#94a3b8;}
.step-connector{flex:1;height:0.125rem;background:#e2e8f0;margin-bottom:1.375rem;min-width:1.25rem;transition:background 0.3s;}
.step-connector.done{background:#10b981;}

/* ------------------------------------═
   UPLOAD ZONE
   ------------------------------------═ */
.upload-zone{
  border:0.125rem dashed rgba(79,70,229,0.25);
  border-radius:1.25rem;
  background:rgba(79,70,229,0.03);
  transition:all 0.25s cubic-bezier(0.25,1,0.5,1);
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.upload-zone::before{
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 80% 40% at 50% 0%,rgba(79,70,229,0.06) 0%,transparent 70%);
  pointer-events:none;
}
.upload-zone:hover,.upload-zone.drag-over{
  border-color:rgba(79,70,229,0.55);
  background:rgba(79,70,229,0.06);
  box-shadow:0 0 0 0.25rem rgba(79,70,229,0.08),0 0.5rem 1.5rem rgba(79,70,229,0.12);
}
.upload-zone.has-file{
  border-style:solid;
  border-color:rgba(79,70,229,0.35);
  background:rgba(79,70,229,0.04);
}

/* ------------------------------------═
   CONFIGURATOR SECTION PANELS — crystal glass
   ------------------------------------═ */
.config-section {
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(1rem) saturate(160%) brightness(1.02);
  -webkit-backdrop-filter: blur(1rem) saturate(160%) brightness(1.02);
  border: 0.0625rem solid rgba(255,255,255,0.70);
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.95),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.04),
    0 0.125rem 0.5rem rgba(0,0,0,0.05),
    0 0.5rem 2rem rgba(0,0,0,0.07);
  overflow: hidden;
  transform: translateZ(0);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.config-section:focus-within {
  border-color: rgba(79,70,229,0.20);
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.95),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.04),
    0 0.125rem 0.5rem rgba(0,0,0,0.05),
    0 0.5rem 2rem rgba(79,70,229,0.08);
}
.config-section-header{
  padding:1rem 1.25rem;border-bottom:0.0625rem solid rgba(226,232,240,0.50);
  display:flex;align-items:center;gap:0.625rem;cursor:pointer;
  transition:background 0.15s;
  user-select:none;
}
.config-section-header:hover{background:rgba(79,70,229,0.025);}
.config-section-body{padding:1rem 1.25rem;}
.section-num{width:1.5rem;height:1.5rem;border-radius:0.5rem;background:#4f46e5;color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Outfit',sans-serif;font-size:0.6875rem;font-weight:800;flex-shrink:0;transition:background 0.3s;}
.section-num.done{background:#10b981;}
.section-title-text{font-family:'Outfit',sans-serif;font-size:0.8125rem;font-weight:800;color:#0f172a;}
.section-subtitle-text{font-family:'Outfit',sans-serif;font-size:0.625rem;font-weight:600;color:#64748b;margin-top:0.0625rem;}
.chevron-btn{margin-left:auto;transition:transform 0.25s cubic-bezier(0.25,1,0.5,1);}
.chevron-btn.open{transform:rotate(180deg);}
.section-content{max-height:0;overflow:hidden;transition:max-height 0.4s cubic-bezier(0.25,1,0.5,1);}
.section-content.open{max-height:60rem;}

/* ------------------------------------═
   LIVE PREVIEW CARD — product-card-glass style
   ------------------------------------═ */
.preview-card {
  position: relative;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 0.0625rem solid rgba(255,255,255,0.65);
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.90),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.05),
    inset 0.0625rem 0 0 rgba(255,255,255,0.45),
    inset -0.0625rem 0 0 rgba(255,255,255,0.35),
    0 0.125rem 0.375rem rgba(0,0,0,0.07),
    0 0.5rem 1.75rem rgba(0,0,0,0.09),
    0 1.25rem 3rem rgba(0,0,0,0.05);
  overflow: hidden;
  transform: translateZ(0);
}
.preview-card::before {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 110% 38% at 50% 0%,rgba(255,255,255,0.60) 0%,rgba(255,255,255,0.16) 42%,transparent 68%);
  pointer-events:none;z-index:0;
}
.preview-card>*{position:relative;z-index:1;}

.mousepad-canvas{
  position:relative;
  border-radius:0.875rem;
  overflow:hidden;
  background:#f8fafc;
  border:0.0625rem solid rgba(226,232,240,0.50);
  box-shadow:inset 0 0.125rem 0.5rem rgba(0,0,0,0.04),0 0.125rem 0.5rem rgba(0,0,0,0.04);
  transition:all 0.3s ease;
}
.mousepad-canvas img.user-artwork{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
}
.mousepad-canvas .logo-watermark{
  position:absolute;bottom:0.625rem;right:0.75rem;
  opacity:0.15;font-family:'Outfit',sans-serif;font-size:0.5625rem;font-weight:900;
  letter-spacing:0.12em;text-transform:uppercase;color:#0f172a;
  pointer-events:none;user-select:none;
}
.canvas-placeholder{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:0.625rem;padding:2rem;color:#94a3b8;
}
.canvas-placeholder .canvas-icon{font-size:2rem!important;opacity:0.4;}
.canvas-placeholder p{font-family:'Outfit',sans-serif;font-size:0.75rem;font-weight:600;text-align:center;line-height:1.4;opacity:0.7;}

/* ------------------------------------═
   SIZE SELECTOR CARDS
   ------------------------------------═ */
.size-card{
  border:0.09375rem solid rgba(226,232,240,0.9);
  border-radius:1rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  padding:0.75rem 0.625rem;cursor:pointer;
  transition:all 0.18s cubic-bezier(0.25,1,0.5,1);
  outline:none;text-align:center;position:relative;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.1875rem rgba(0,0,0,0.04);
}
.size-card:hover{border-color:rgba(79,70,229,0.35);background:rgba(79,70,229,0.04);transform:translateY(-0.125rem);box-shadow:inset 0 0.0625rem 0 rgba(255,255,255,0.90),0 0.25rem 0.75rem rgba(79,70,229,0.10);}
.size-card.active{
  border-color:#4f46e5;background:rgba(79,70,229,0.08);
  box-shadow:0 0 0 0.1875rem rgba(79,70,229,0.10),0 0.25rem 0.75rem rgba(79,70,229,0.15),inset 0 0.0625rem 0 rgba(255,255,255,0.90);
}
.size-card .size-name{font-family:'Outfit',sans-serif;font-size:0.6875rem;font-weight:800;color:#0f172a;letter-spacing:-0.01em;}
.size-card .size-dims{font-family:'Outfit',sans-serif;font-size:0.5625rem;font-weight:600;color:#94a3b8;margin-top:0.125rem;}
.size-card .size-use{font-family:'Outfit',sans-serif;font-size:0.5rem;font-weight:700;text-transform:uppercase;letter-spacing:0.07em;color:#64748b;margin-top:0.3125rem;opacity:0.8;}
.size-card.active .size-name{color:#4f46e5;}
.size-card.active .size-dims{color:#6366f1;}
.size-card .check-icon{position:absolute;top:0.375rem;right:0.375rem;width:1rem;height:1rem;border-radius:50%;background:#4f46e5;display:none;align-items:center;justify-content:center;}
.size-card.active .check-icon{display:flex;}
.size-card .check-icon span{font-size:0.625rem;color:#fff;font-family:'Material Symbols Outlined';font-variation-settings:'FILL' 1;}

/* ------------------------------------═
   SERIES SELECTOR CARDS
   ------------------------------------═ */
.series-card{
  border:0.09375rem solid rgba(226,232,240,0.9);
  border-radius:1rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  padding:0.875rem 0.75rem;cursor:pointer;
  transition:all 0.18s cubic-bezier(0.25,1,0.5,1);
  outline:none;position:relative;
  display:flex;flex-direction:column;gap:0.5rem;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.1875rem rgba(0,0,0,0.04);
}
.series-card:hover{border-color:rgba(79,70,229,0.35);transform:translateY(-0.125rem);box-shadow:inset 0 0.0625rem 0 rgba(255,255,255,0.90),0 0.25rem 1rem rgba(79,70,229,0.10);}
.series-card.active{border-color:#4f46e5;background:rgba(79,70,229,0.07);box-shadow:0 0 0 0.1875rem rgba(79,70,229,0.10),0 0.25rem 1rem rgba(79,70,229,0.15),inset 0 0.0625rem 0 rgba(255,255,255,0.90);}
.series-card .series-logo{height:1.125rem;width:auto;object-fit:contain;}
.series-card .series-name{font-family:'Outfit',sans-serif;font-size:0.6875rem;font-weight:800;color:#0f172a;}
.series-card .series-desc{font-family:'Outfit',sans-serif;font-size:0.59375rem;font-weight:500;color:#64748b;line-height:1.4;}
.series-card .series-tag{display:inline-flex;align-items:center;gap:0.1875rem;padding:0.125rem 0.4375rem 0.125rem 0.3125rem;border-radius:6.1875rem;font-family:'Outfit',sans-serif;font-size:0.46875rem;font-weight:800;text-transform:uppercase;letter-spacing:0.07em;}
.series-card .tag-weave{background:rgba(245,158,11,0.10);color:#b45309;border:0.0625rem solid rgba(245,158,11,0.20);}
.series-card .tag-glide{background:rgba(79,70,229,0.10);color:#4f46e5;border:0.0625rem solid rgba(79,70,229,0.20);}
.series-card .series-check{position:absolute;top:0.5rem;right:0.5rem;width:1.125rem;height:1.125rem;border-radius:50%;background:#4f46e5;display:none;align-items:center;justify-content:center;}
.series-card.active .series-check{display:flex;}
.series-card .series-check span{font-size:0.6875rem;color:#fff;font-family:'Material Symbols Outlined';font-variation-settings:'FILL' 1;}

/* ------------------------------------═
   SURFACE / EDGE OPTION PILLS
   ------------------------------------═ */
.option-pill{
  display:flex;align-items:center;gap:0.5rem;padding:0.625rem 0.875rem;
  border-radius:0.875rem;border:0.09375rem solid rgba(226,232,240,0.9);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  cursor:pointer;transition:all 0.18s ease;outline:none;
  font-family:'Outfit',sans-serif;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.1875rem rgba(0,0,0,0.04);
}
.option-pill:hover{border-color:rgba(79,70,229,0.35);background:rgba(79,70,229,0.03);box-shadow:inset 0 0.0625rem 0 rgba(255,255,255,0.90),0 0.1875rem 0.625rem rgba(79,70,229,0.08);}
.option-pill.active{border-color:#4f46e5;background:rgba(79,70,229,0.07);box-shadow:0 0 0 0.1875rem rgba(79,70,229,0.08),inset 0 0.0625rem 0 rgba(255,255,255,0.90);}
.option-pill .pill-icon{width:1.75rem;height:1.75rem;border-radius:0.5625rem;background:rgba(79,70,229,0.08);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.18s;}
.option-pill.active .pill-icon{background:rgba(79,70,229,0.15);}
.option-pill .pill-icon span{font-size:0.9375rem;color:#4f46e5;}
.option-pill .pill-name{font-size:0.75rem;font-weight:700;color:#0f172a;}
.option-pill .pill-sub{font-size:0.625rem;font-weight:500;color:#64748b;margin-top:0.0625rem;}
.option-pill .pill-check{margin-left:auto;width:1rem;height:1rem;border-radius:50%;background:#4f46e5;display:none;align-items:center;justify-content:center;flex-shrink:0;}
.option-pill.active .pill-check{display:flex;}
.option-pill .pill-check span{font-size:0.625rem;color:#fff;font-family:'Material Symbols Outlined';font-variation-settings:'FILL' 1;}

/* ------------------------------------═
   COLOR SWATCH
   ------------------------------------═ */
.color-swatch{width:1.75rem;height:1.75rem;border-radius:50%;cursor:pointer;transition:all 0.18s ease;position:relative;flex-shrink:0;outline:none;border:0.125rem solid transparent;}
.color-swatch:hover{transform:scale(1.15);}
.color-swatch.active{border-color:#4f46e5;box-shadow:0 0 0 0.1875rem rgba(79,70,229,0.25);}
.color-swatch.active::after{content:'';position:absolute;inset:0.125rem;border-radius:50%;border:0.09375rem solid rgba(255,255,255,0.8);}

/* ------------------------------------═
   TEXT TOOL
   ------------------------------------═ */
.text-tool-input{
  width:100%;background:rgba(255,255,255,0.90);
  border:0.09375rem solid rgba(226,232,240,0.9);
  border-radius:0.75rem;padding:0.625rem 0.875rem;
  font-family:'Outfit',sans-serif;font-size:0.8125rem;font-weight:600;
  color:#0f172a;outline:none;transition:border-color 0.2s,box-shadow 0.2s;
  resize:none;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90);
}
.text-tool-input:focus{border-color:#4f46e5;box-shadow:0 0 0 0.1875rem rgba(79,70,229,0.08),inset 0 0.0625rem 0 rgba(255,255,255,0.90);}
.text-tool-input::placeholder{color:#94a3b8;font-weight:500;}

/* ------------------------------------═
   PRICE SUMMARY CARD — enhanced glass
   ------------------------------------═ */
.price-summary{
  position: relative;
  border-radius:1.5rem;
  background: rgba(79,70,229,0.05);
  backdrop-filter: blur(1rem) saturate(180%);
  -webkit-backdrop-filter: blur(1rem) saturate(180%);
  border: 0.09375rem solid rgba(79,70,229,0.20);
  padding:1.25rem;
  overflow:hidden;
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.65),
    inset 0 -0.0625rem 0 rgba(79,70,229,0.06),
    0 0.25rem 1rem rgba(79,70,229,0.08),
    0 0.5rem 2rem rgba(79,70,229,0.04);
}
.price-summary::before{
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 100% 55% at 50% 0%,rgba(79,70,229,0.08) 0%,transparent 70%);
  pointer-events:none;
}
.price-row{display:flex;justify-content:space-between;align-items:center;padding:0.375rem 0;}
.price-row-label{font-family:'Outfit',sans-serif;font-size:0.6875rem;font-weight:600;color:#64748b;}
.price-row-val{font-family:'Outfit',sans-serif;font-size:0.75rem;font-weight:800;color:#0f172a;}
.price-total-row{display:flex;justify-content:space-between;align-items:baseline;padding-top:0.75rem;margin-top:0.5rem;border-top:0.0625rem dashed rgba(79,70,229,0.22);}
.price-total-label{font-family:'Outfit',sans-serif;font-size:0.75rem;font-weight:800;text-transform:uppercase;letter-spacing:0.08em;color:#4f46e5;}
.price-total-val{font-family:'Outfit',sans-serif;font-size:1.5rem;font-weight:900;color:#0f172a;letter-spacing:-0.02em;}

/* ------------------------------------═
   TABS
   ------------------------------------═ */
.tool-tab{
  display:flex;align-items:center;gap:0.3125rem;padding:0.4375rem 0.875rem;border-radius:6.1875rem;
  font-family:'Outfit',sans-serif;font-size:0.6875rem;font-weight:700;
  border:0.09375rem solid rgba(226,232,240,0.9);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  color:#64748b;cursor:pointer;transition:all 0.18s ease;outline:none;white-space:nowrap;flex-shrink:0;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90);
}
.tool-tab:hover{border-color:rgba(79,70,229,0.35);color:#4f46e5;}
.tool-tab.active{background:rgba(79,70,229,0.10);border-color:#4f46e5;color:#4f46e5;box-shadow:0 0.0625rem 0.375rem rgba(79,70,229,0.15),inset 0 0.0625rem 0 rgba(255,255,255,0.90);}
.tool-tab span.material-symbols-outlined{font-size:0.875rem;}

/* ------------------------------------═
   FONT SELECTOR
   ------------------------------------═ */
.font-chip{
  padding:0.3125rem 0.75rem;border-radius:6.1875rem;
  border:0.09375rem solid rgba(226,232,240,0.9);
  background: rgba(255,255,255,0.85);
  font-size:0.6875rem;font-weight:700;color:#64748b;cursor:pointer;
  transition:all 0.18s ease;outline:none;flex-shrink:0;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90);
}
.font-chip:hover{border-color:rgba(79,70,229,0.35);color:#4f46e5;}
.font-chip.active{border-color:#4f46e5;background:rgba(79,70,229,0.08);color:#4f46e5;box-shadow:inset 0 0.0625rem 0 rgba(255,255,255,0.90);}

/* ------------------------------------═
   TRUST BADGES — glass panel light style
   ------------------------------------═ */
.trust-badge{
  display:flex;align-items:center;gap:0.5rem;padding:0.625rem 0.875rem;
  border-radius:0.875rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(0.75rem) saturate(160%);
  -webkit-backdrop-filter: blur(0.75rem) saturate(160%);
  border: 0.0625rem solid rgba(255,255,255,0.70);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.95),
    0 0.125rem 0.5rem rgba(0,0,0,0.05),
    0 0.25rem 1rem rgba(0,0,0,0.04);
  transition:all 0.2s ease;
}
.trust-badge:hover{
  border-color:rgba(79,70,229,0.20);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255,255,255,0.95),
    0 0.25rem 0.875rem rgba(79,70,229,0.08),
    0 0.5rem 1.5rem rgba(79,70,229,0.05);
  transform: translateY(-0.0625rem);
}
.trust-icon{width:2rem;height:2rem;border-radius:0.625rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.trust-name{font-family:'Outfit',sans-serif;font-size:0.6875rem;font-weight:800;color:#0f172a;line-height:1.2;}
.trust-sub{font-family:'Outfit',sans-serif;font-size:0.5625rem;font-weight:500;color:#64748b;margin-top:0.0625rem;}

/* ------------------------------------═
   PREVIEW MODE BUTTONS
   ------------------------------------═ */
.preview-mode-btn{
  width:2.25rem;height:2.25rem;border-radius:0.625rem;
  display:flex;align-items:center;justify-content:center;
  border:0.09375rem solid rgba(226,232,240,0.9);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  cursor:pointer;transition:all 0.18s ease;outline:none;color:#64748b;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90);
}
.preview-mode-btn:hover{border-color:rgba(79,70,229,0.35);color:#4f46e5;}
.preview-mode-btn.active{background:rgba(79,70,229,0.10);border-color:#4f46e5;color:#4f46e5;box-shadow:inset 0 0.0625rem 0 rgba(255,255,255,0.90);}

/* ------------------------------------═
   HOW IT WORKS CARDS — feature-card glass (matches corporate)
   ------------------------------------═ */
.how-card{
  position: relative;
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(1rem) saturate(160%) brightness(1.02);
  -webkit-backdrop-filter: blur(1rem) saturate(160%) brightness(1.02);
  border: 0.0625rem solid rgba(255,255,255,0.65);
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.95),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.04),
    0 0.125rem 0.5rem rgba(0,0,0,0.05),
    0 0.5rem 1.5rem rgba(0,0,0,0.07);
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.15,0,0.2,1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.how-card::before {
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(ellipse 110% 42% at 50% 0%,rgba(255,255,255,0.60) 0%,rgba(255,255,255,0.18) 40%,transparent 68%);
  pointer-events:none;z-index:0;
}
.how-card>*{position:relative;z-index:1;}
.how-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(255,255,255,0.80);
  box-shadow:
    inset 0 0.09375rem 0 rgba(255,255,255,0.98),
    inset 0 -0.0625rem 0 rgba(0,0,0,0.04),
    0 0.5rem 2rem rgba(79,70,229,0.12),
    0 1rem 3rem rgba(0,0,0,0.08);
}
.how-num{font-family:'Outfit',sans-serif;font-size:2.5rem;font-weight:900;letter-spacing:-0.04em;line-height:1;background:linear-gradient(135deg,#4f46e5,#a855f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:0.75rem;}
.how-title{font-family:'Outfit',sans-serif;font-size:1rem;font-weight:800;color:#0f172a;margin-bottom:0.5rem;}
.how-desc{font-family:'Outfit',sans-serif;font-size:0.8125rem;font-weight:500;color:#64748b;line-height:1.6;}

/* ------------------------------------═
   GALLERY GRID — reel-style crystal-glass cards matching index.html community section
   ------------------------------------═ */
.gallery-item{
  border-radius:2rem;overflow:hidden;cursor:pointer;
  transition:all 0.35s cubic-bezier(0.15,0,0.2,1);
  will-change:transform;position:relative;
}
.gallery-item:hover{transform:scale(1.02) translateY(-0.25rem);box-shadow:0 1.25rem 2.5rem rgba(0,0,0,0.12);}
.gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity 0.35s;}
.gallery-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,0.6) 0%,transparent 60%);opacity:0;transition:opacity 0.3s;display:flex;align-items:flex-end;padding:0.75rem;}
.gallery-item:hover .gallery-overlay{opacity:1;}
.gallery-overlay-text{font-family:'Outfit',sans-serif;font-size:0.625rem;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:0.08em;}

/* ------------------------------------═
   ADD TO CART PULSE — preserves cart-btn-glass insets
   ------------------------------------═ */
@keyframes pulseGlow{
  0%,100%{
    box-shadow:
      inset 0 0.0625rem 0 rgba(255,255,255,0.10),
      inset 0 -0.0625rem 0 rgba(0,0,0,0.15),
      0 0.25rem 0.625rem rgba(0,0,0,0.15),
      0 0.375rem 1rem rgba(79,70,229,0.35),
      0 0 0 0 rgba(79,70,229,0.40);
  }
  70%{
    box-shadow:
      inset 0 0.0625rem 0 rgba(255,255,255,0.10),
      inset 0 -0.0625rem 0 rgba(0,0,0,0.15),
      0 0.25rem 0.625rem rgba(0,0,0,0.15),
      0 0.375rem 1rem rgba(79,70,229,0.35),
      0 0 0 0.875rem rgba(79,70,229,0);
  }
}
.cta-pulse{animation:pulseGlow 2.5s infinite;}

/* ── hero gradient text ── */
.hero-gradient-text{background:linear-gradient(135deg,#4f46e5 0%,#a855f7 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}

/* ── cursor override ── */
.cursor-upload{cursor:copy;}

/* ── Section label pill ── */
.section-pill{display:inline-flex;align-items:center;gap:0.375rem;padding:0.3125rem 0.75rem;border-radius:6.1875rem;background:rgba(79,70,229,0.08);border:0.0625rem solid rgba(79,70,229,0.18);}
.section-pill span:not(.material-symbols-outlined){font-family:'Outfit',sans-serif;font-size:0.625rem;font-weight:800;text-transform:uppercase;letter-spacing:0.10em;color:#4f46e5;}
/* ── no-scrollbar helper ── */
.no-scrollbar::-webkit-scrollbar{display:none;}
.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none;}

/* ------------------------------------═
   FAQ — identical to corporate.html
   ------------------------------------═ */
.faq-item {
  border-bottom: 0.0625rem solid rgba(226, 232, 240, 0.7);
  overflow: visible;
}
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; background: none; border: none; cursor: pointer; outline: none;
  font-family: 'Outfit', sans-serif; font-size: 0.9375rem; font-weight: 700;
  color: #0f172a; text-align: left; gap: 1rem;
  transition: color 0.3s ease;
}
.faq-trigger:hover { color: #4f46e5; }
.faq-trigger .faq-icon {
  position: relative;
  width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.25),
    0 0.125rem 0.25rem rgba(0, 0, 0, 0.18),
    0 0.25rem 0.75rem rgba(0, 0, 0, 0.14);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease, box-shadow 0.3s ease,
              transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq-trigger .faq-icon::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 100% 45% at 50% 0%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.12) 45%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.faq-trigger .faq-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 70% 30% at 50% 100%, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.faq-trigger .faq-icon .material-symbols-outlined { font-size: 1rem; color: #4f46e5; position: relative; z-index: 2; }
.faq-trigger:hover .faq-icon {
  background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.35), 0 0.25rem 0.5rem rgba(0,0,0,0.20), 0 0.5rem 1.25rem rgba(79,70,229,0.18);
}
.faq-item.open .faq-trigger .faq-icon {
  background: rgba(255,255,255,0.16); border: 0.15625rem solid rgba(79,70,229,0.70);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.30), 0 0.125rem 0.375rem rgba(0,0,0,0.16), 0 0.375rem 1rem rgba(79,70,229,0.28);
  transform: rotate(45deg);
}
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.25,1,0.5,1); }
.faq-item.open .faq-body { max-height: 18.75rem; }

/* ------------------------------------═
   GRADIENT EDITOR — Background tab panel
   ------------------------------------═ */

/* Mode toggle tabs */
.ge-mode-tabs {
  display: flex; gap: 0.25rem; padding: 0.1875rem; border-radius: 0.75rem;
  background: rgba(241,245,249,0.7); border: 0.0625rem solid rgba(226,232,240,0.90);
}
.ge-tab {
  flex: 1; padding: 0.3125rem 0.5rem; border-radius: 0.5625rem; border: none; cursor: pointer;
  background: transparent; color: #64748b;
  font-family: 'Outfit', sans-serif; font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap; outline: none;
}
.ge-tab:hover { background: rgba(79,70,229,0.05); color: #4f46e5; }
.ge-tab.active { background: #fff; color: #4f46e5; box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.1875rem rgba(79,70,229,0.12); }

/* Gradient type pills (Linear / Radial) */
.ge-type-row { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.ge-type-pill {
  flex: 1; min-width: 0; padding: 0.3125rem 0.5rem; border-radius: 0.625rem;
  border: 0.0625rem solid rgba(226,232,240,0.90); background: rgba(248,250,252,0.90);
  color: #64748b; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 0.5625rem; font-weight: 700;
  text-align: center; letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.90), 0 0.0625rem 0.125rem rgba(0,0,0,0.03);
  outline: none;
}
.ge-type-pill:hover { background: rgba(79,70,229,0.06); color: #4f46e5; border-color: rgba(79,70,229,0.28); }
.ge-type-pill.active { background: rgba(79,70,229,0.10); color: #4f46e5; border-color: rgba(79,70,229,0.38); box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.80), 0 0.0625rem 0.25rem rgba(79,70,229,0.10); }

/* Professional Visual Track & Preview */
.ge-preview-box {
  width: 100%; height: 3rem; border-radius: 0.875rem 0.875rem 0 0; overflow: hidden;
  border: 0.0625rem solid rgba(226,232,240,0.90); border-bottom: none;
  box-shadow: inset 0 0.0625rem 0.125rem rgba(0,0,0,0.05);
  transition: background 0.1s ease;
}
.ge-track-area {
  position: relative; height: 1.5rem; background: #fff;
  border: 0.0625rem solid rgba(226,232,240,0.90); border-radius: 0 0 0.875rem 0.875rem;
  cursor: crosshair;
  box-shadow: inset 0 0.125rem 0.25rem rgba(0,0,0,0.04);
  margin-bottom: 0.25rem;
}

/* Draggable Handles */
.ge-handle {
  position: absolute; top: -0.1875rem; bottom: -0.1875rem; width: 0.875rem;
  transform: translateX(-50%); border-radius: 0.25rem;
  background: #ffffff; border: 0.09375rem solid #ffffff;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0,0,0,0.3), inset 0 0 0 0.0625rem rgba(0,0,0,0.1);
  cursor: grab; z-index: 5;
  display: flex; flex-direction: column;
}
.ge-handle:hover {
  box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.4), inset 0 0 0 0.0625rem rgba(0,0,0,0.1);
}
.ge-handle.active {
  z-index: 10;
  border-color: #ffffff;
  cursor: grabbing;
  box-shadow: 0 0 0 0.125rem #4f46e5, 0 0.125rem 0.375rem rgba(0,0,0,0.3), inset 0 0 0 0.0625rem rgba(0,0,0,0.1);
}
.ge-handle-color {
  flex: 1; border-radius: 0.125rem; box-shadow: inset 0 0 0 0.0625rem rgba(0,0,0,0.15);
  pointer-events: none;
}

/* Standard row */
.ge-row label {
  font-family: 'Outfit', sans-serif; font-size: 0.625rem; font-weight: 700; color: #64748b; margin-bottom: 0.1875rem; display: block;
}
.ge-row input[type="range"] { width: 100%; accent-color: #4f46e5; }

/* Reset button */
.ge-reset-btn {
  width: 100%; padding: 0.3125rem 0.625rem; border-radius: 0.625rem;
  border: 0.0625rem solid rgba(226,232,240,0.85); background: rgba(248,250,252,0.85);
  color: #64748b; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 0.5625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.ge-reset-btn:hover { background: rgba(79,70,229,0.06); color: #4f46e5; border-color: rgba(79,70,229,0.28); }

/* Angle knob display */
.ge-angle-display {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-size: 0.6875rem; font-weight: 800;
  color: #4f46e5; min-width: 2.25rem; text-align: center;
}

.faq-body p {
  font-family: 'Outfit', sans-serif; font-size: 0.875rem; font-weight: 500; color: #64748b;
  line-height: 1.65; padding-bottom: 1.25rem;
}

/* --- Horizontal Sub-Tabs --- */
.sub-tabs-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-tabs-wrapper::-webkit-scrollbar {
  display: none;
}
.sub-tab-btn {
  padding: 0.4375rem 1rem;
  border-radius: 6.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(226,232,240,0.5);
  color: #64748b;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  cursor: pointer;
}
.sub-tab-btn.active {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(79,70,229,0.25);
}
.sub-tab-pane {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
}
.sub-tab-pane.active {
  display: flex;
}

/* ==========================================================================
   STUDIO ACCORDION SYSTEM (Figma / Canva Layout Paradigm)
   ========================================================================== */
.studio-accordion-group {
  border: 0.0625rem solid rgba(226, 232, 240, 0.85);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.015);
}

.studio-accordion-group:hover {
  border-color: rgba(79, 70, 229, 0.22);
  background: rgba(255, 255, 255, 0.7);
}

.studio-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6875rem 0.875rem;
  background: rgba(248, 250, 252, 0.7);
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.studio-accordion-header:hover {
  background: rgba(241, 245, 249, 0.9);
  color: #4f46e5;
}

.studio-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1), padding 0.35s ease;
  padding: 0 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.studio-accordion-content.open {
  max-height: 60rem;
  padding: 1rem 0.875rem;
  border-top: 0.0625rem solid rgba(226, 232, 240, 0.6);
}

.studio-accordion-header span {
  text-transform: uppercase;
}

/* ==========================================================================
   MOBILE BOTTOM SHEET — Drag Handle, Color Row, Enhanced Shell
   ========================================================================== */

/* ── Drag handle pill (only renders on mobile) ── */
.mobile-sheet-handle {
  display: none;
}
@media (max-width: 47.9375rem) {
  .mobile-sheet-handle {
    display: block;
    width: 2.75rem;
    height: 0.25rem;
    background: rgba(15, 23, 42, 0.2);
    border-radius: 9999px;
    margin: 0.25rem auto 0.125rem;
    flex-shrink: 0;
    pointer-events: auto;
    cursor: pointer;
    align-self: center;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
  }
  .mobile-sheet-handle:active {
    background: rgba(15, 23, 42, 0.4);
  }
}

/* ── Mobile text color-picker row ── */
.mobile-text-colors-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.25rem 0.125rem 0.375rem;
  flex-shrink: 0;
}
.mobile-color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.mobile-color-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.4375rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
/* Pickr wrapper sizing inside mobile color row */
.mobile-color-pickr-wrap {
  width: 100%;
  height: 2rem;
  border-radius: 0.625rem;
  border: 0.0625rem solid rgba(226,232,240,0.90);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,0.95), 0 0.0625rem 0.125rem rgba(0,0,0,0.04);
  overflow: hidden;
}
.mobile-color-pickr-wrap .pickr {
  width: 100%;
  height: 100%;
  display: block;
}
.mobile-color-pickr-wrap .pcr-button {
  width: 100%;
  height: 100%;
  border-radius: 0.5625rem;
  border: none !important;
}
.mobile-color-pickr-wrap .pcr-button::before,
.mobile-color-pickr-wrap .pcr-button::after {
  border-radius: 0.5625rem;
}

/* ── Mobile toolbar (sidebar) ── */
@media (max-width: 47.9375rem) {
  #studio-sidebar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(1rem) saturate(150%);
    -webkit-backdrop-filter: blur(1rem) saturate(150%);
  }
  .studio-tool-btn {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;
    gap: 0.25rem;
    border-radius: 0.875rem;
  }
  .studio-tool-btn span.lbl {
    font-size: 0.4375rem;
    letter-spacing: 0.02em;
  }
  .studio-tool-btn.active {
    box-shadow:
      inset 0 0.0625rem 0 rgba(255,255,255,0.95),
      0 0.25rem 0.75rem rgba(79,70,229,0.28),
      0 0 0 0.125rem rgba(79,70,229,0.15);
  }
}

/* ── Mobile dimmer overlay — suppressed ── */
@media (max-width: 47.9375rem) {
  #studio-body.props-open::after {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
  }
}

/* ── Mobile chip sub-tabs ── */
@media (max-width: 47.9375rem) {
  .sub-tab-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.625rem;
    border-radius: 62.5rem;
    flex-shrink: 0;
  }
  .sub-tabs-wrapper {
    gap: 0.375rem;
    padding-bottom: 0.375rem;
    margin-bottom: 0.125rem;
  }
  .props-section-title {
    font-size: 0.5rem;
    margin-bottom: 0.1875rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE TOOLBAR — PicsArt-style contextual bottom bar (Rule-aligned)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 47.9375rem) {

  /* ── Hide legacy desktop/old-mobile pieces ── */
  #studio-sidebar  { display: none !important; }
  #studio-props    { display: none !important; }
  #studio-statusbar{ display: none !important; }

  /* ── Canvas area fills the space above the toolbar ── */
  #studio-body {
    flex-direction: column;
    height: 100%;
    position: relative;
  }

  #studio-canvas-area {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.75rem;
    /* Leave room for bottom bar + safe area inset */
    padding-bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px));
    transition: padding-bottom 0.28s cubic-bezier(0.25,1,0.5,1);
  }

  /* ── Shrink and shift canvas upward above Layers Panel when open ── */
  #studio-panel:has(#mob-layers-panel.open) #studio-canvas-area {
    padding-bottom: calc(35dvh + 5.3rem + env(safe-area-inset-bottom, 0px));
  }

  /* ── Mob toolbar root ── */
  #mob-toolbar {
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: transparent;
    pointer-events: none;
  }

  /* ── Scale Header & Buttons for Mobile UI Touch Targets ── */
  #studio-header h2 {
    font-size: 1.1rem !important;
  }
  #studio-header p {
    font-size: 0.78rem !important;
  }
  .studio-brand-mark {
    width: 2.75rem !important;
    height: 2.75rem !important;
    border-radius: 0.875rem !important;
  }
  .studio-brand-mark .material-symbols-outlined {
    font-size: 1.4rem !important;
  }
  .studio-hdr-btn {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 0.75rem !important;
  }
  .studio-hdr-btn .material-symbols-outlined {
    font-size: 1.35rem !important;
  }
  .studio-cancel-btn {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  #studio-header .cart-btn-glass {
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.875rem !important;
  }

  /* Crop Mode Bar overrides for tactile feedback */
  #crop-control-bar {
    padding: 0.75rem 1.25rem !important;
    gap: 1rem !important;
    border-radius: 1.25rem !important;
  }
  #crop-control-bar span {
    font-size: 0.875rem !important;
  }
  #crop-control-bar button {
    padding: 0.5rem !important;
  }
  #crop-control-bar button span {
    font-size: 1.375rem !important;
  }

  /* ── Color picker popup: fixed above the bottom toolbar ──────────────────
     Pickr is initialised with appendToBody:true on mobile, so .pcr-app is a
     direct child of <body>. We override Pickr's inline positioning and pin
     the popup above the scaled toolbar, centred horizontally.
     ──────────────────────────────────────────────────────────────────────── */
  body > .pcr-app {
    position: fixed !important;
    bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px) + 0.78rem) !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    max-width: calc(100vw - 2rem) !important;
    z-index: 999999 !important;
    border-radius: 1rem !important;
    box-shadow:
      0 -0.25rem 2rem rgba(15,23,42,0.14),
      0 0.125rem 0.5rem rgba(15,23,42,0.08),
      0 0 0 0.0625rem rgba(226,232,240,0.9) !important;
  }

  /* ── Layers overlay ── */
  #mob-layers-panel {
    pointer-events: auto;
    position: absolute;
    bottom: 5.3rem;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-radius: 1.25rem 1.25rem 0 0;
    border-top: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 -4px 24px rgba(15,23,42,0.13);
    max-height: 35dvh;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.25,1,0.5,1);
  }
  #mob-layers-panel.open {
    display: flex;
    transform: translateY(0);
  }
  .mob-layers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.78rem 1.25rem 0.625rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(226,232,240,0.6);
  }
  .mob-layers-close {
    background: none; border: none; cursor: pointer; padding: 0.25rem;
    color: #64748b; line-height: 1; display: flex; align-items: center;
  }
  .mob-layers-close .material-symbols-outlined { font-size: 1.4rem; }
  .mob-layers-list {
    display: flex;
    flex-direction: column;
    gap: 0.78rem;
    flex: 1; 
    overflow-y: auto; 
    overflow-x: hidden;
    padding: 0.78rem 0.94rem 0.94rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Scale canvas layer items inside the list for easier sorting/touching */
  .mob-layers-list .studio-layer-item {
    grid-template-columns: 1.72rem 1fr 1.72rem 1.72rem 1.72rem !important;
    gap: 0.45rem !important;
    min-height: 2.85rem !important;
    padding: 0.45rem !important;
    border-radius: 1.1rem !important;
  }
  .mob-layers-list .studio-layer-name {
    font-size: 0.78rem !important;
  }
  .mob-layers-list .studio-layer-btn {
    width: 1.72rem !important;
    height: 1.72rem !important;
    border-radius: 0.55rem !important;
  }
  .mob-layers-list .studio-layer-btn .material-symbols-outlined {
    font-size: 1.05rem !important;
  }

  /* ── Gradient editor overlay ── */
  #mob-ge-panel {
    pointer-events: auto;
    position: absolute;
    bottom: 5.3rem;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-radius: 1.25rem 1.25rem 0 0;
    border-top: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 -4px 24px rgba(15,23,42,0.13);
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.25,1,0.5,1);
    padding-bottom: 0.78rem;
  }
  #mob-ge-panel.open {
    display: flex;
    transform: translateY(0);
  }
  .mob-ge-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.78rem 0.94rem 0.625rem;
    border-bottom: 1px solid rgba(226,232,240,0.5);
    font-family: 'Outfit', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
  }
  .mob-ge-header span { flex: 1; }
  .mob-ge-back {
    background: none; border: none; cursor: pointer; padding: 0.25rem 0.375rem 0.25rem 0.125rem;
    color: #4f46e5; display: flex; align-items: center;
  }
  .mob-ge-back .material-symbols-outlined { font-size: 1.1rem; }
  .mob-ge-type-row { display: flex; gap: 0.25rem; }
  .mob-ge-type {
    background: rgba(79,70,229,0.08); border: none; cursor: pointer;
    border-radius: 0.625rem; padding: 0.31rem 0.78rem;
    font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 700;
    color: #4f46e5; transition: all 0.15s ease;
  }
  .mob-ge-type.active {
    background: #4f46e5; color: #fff;
  }
  .mob-ge-preview-strip {
    height: 3.125rem;
    margin: 0.47rem 0.94rem 0;
    border-radius: 0.625rem 0.625rem 0 0;
    flex-shrink: 0;
  }
  .mob-ge-track-area {
    height: 1.72rem;
    margin: 0 0.94rem;
    background: #f8fafc;
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 0 0 0.625rem 0.625rem;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    overflow: visible;
  }
  .mob-ge-stop-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.47rem 0.94rem;
    flex-shrink: 0;
  }
  .mob-ge-stop-label {
    font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 700;
    color: #64748b; flex: 1;
  }
  .mob-ge-pos-input {
    width: 4.375rem; height: 2.5rem;
    border: 1px solid rgba(226,232,240,0.9); border-radius: 0.5rem;
    text-align: center; font-family: 'Outfit', sans-serif; font-size: 0.94rem;
    font-weight: 700; color: #1e293b; outline: none;
    background: rgba(248,250,252,0.9);
  }
  .mob-ge-stop-pct {
    font-family: 'Outfit', sans-serif; font-size: 0.78rem; color: #94a3b8; margin-left: -0.375rem;
  }
  .mob-ge-del-btn {
    background: rgba(239,68,68,0.08); border: none; cursor: pointer;
    border-radius: 0.5rem; width: 2.5rem; height: 2.5rem;
    display: flex; align-items: center; justify-content: center; color: #ef4444;
  }
  .mob-ge-del-btn .material-symbols-outlined { font-size: 1.1rem; }
  .mob-ge-angle-row {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0 0.94rem 0.16rem; flex-shrink: 0;
  }
  .mob-ge-angle-label {
    font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 700;
    color: #64748b; width: 3.125rem; flex-shrink: 0;
  }
  .mob-ge-range {
    flex: 1; height: 2px; accent-color: #4f46e5;
    -webkit-appearance: none; appearance: none;
    background: linear-gradient(to right, #4f46e5 var(--mob-range-pct, 50%), rgba(226,232,240,0.9) var(--mob-range-pct, 50%));
    border-radius: 1px;
  }
  .mob-ge-angle-val {
    font-family: 'Outfit', sans-serif; font-size: 0.94rem; font-weight: 700;
    color: #4f46e5; width: 3.125rem; text-align: right; flex-shrink: 0;
  }
  .mob-ge-footer { padding: 0.31rem 0.94rem 0; }
  .mob-ge-reset-btn {
    width: 100%; padding: 0.625rem;
    background: rgba(79,70,229,0.07); border: 1px solid rgba(79,70,229,0.18);
    border-radius: 0.625rem; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 700;
    color: #4f46e5; transition: background 0.15s;
  }
  .mob-ge-reset-btn:hover { background: rgba(79,70,229,0.13); }

  /* ── Slider rail ── */
  #mob-slider-rail {
    pointer-events: auto;
    position: absolute;
    bottom: 5.3rem;
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid rgba(226,232,240,0.6);
    padding: 0.625rem 1.25rem 0.47rem;
    display: none;
    box-shadow: 0 -2px 12px rgba(15,23,42,0.06);
  }
  #mob-slider-rail.visible { display: block; }
  .mob-sr-inner {
    display: flex; align-items: center; gap: 0.78rem;
  }
  .mob-sr-param-name {
    font-family: 'Outfit', sans-serif; font-size: 0.6875rem; font-weight: 700;
    color: #4f46e5; white-space: nowrap; min-width: 4.375rem;
    text-transform: capitalize;
  }
  #mob-slider-rail .range-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
  }
  .mob-sr-range {
    flex: 1; height: 3px; -webkit-appearance: none; appearance: none;
    outline: none; cursor: pointer; border-radius: 2px;
    accent-color: #4f46e5;
    background: linear-gradient(to right, #4f46e5 0%, #c7d2fe 0%);
  }
  .mob-sr-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    border-radius: 50%; background: #4f46e5;
    box-shadow: 0 1px 6px rgba(79,70,229,0.35);
    border: 2px solid #fff; cursor: pointer;
  }
  .mob-sr-range::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: #4f46e5; box-shadow: 0 1px 6px rgba(79,70,229,0.35);
    border: 2px solid #fff; cursor: pointer;
  }
  .mob-sr-value {
    font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 700;
    color: #4f46e5; min-width: 3.125rem; text-align: right;
  }

  /* ── The bar container ── */
  #mob-bar {
    pointer-events: auto;
    position: relative;
    bottom: 0; left: 0; right: 0;
    height: 5.3rem;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(226,232,240,0.7);
    box-shadow: 0 -1px 0 rgba(226,232,240,0.4), inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ── Each bar row ── */
  .mob-row {
    position: absolute; inset: 0;
    display: none;
    align-items: center;
    height: 5.3rem;
    padding: 0 0.25rem;
    gap: 0;
    opacity: 0;
    transition: opacity 0.18s ease;
  }
  .mob-row.active {
    display: flex;
    opacity: 1;
  }

  /* ── Scrollable strip inside a row ── */
  .mob-scroll-strip {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 0;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mob-scroll-strip::-webkit-scrollbar { display: none; }

  /* ── Individual toolbar button ── */
  .mob-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex-shrink: 0;
    min-width: 4.375rem; height: 4.375rem;
    padding: 0.31rem 0.47rem;
    background: none; border: none; cursor: pointer; outline: none;
    border-radius: 0.75rem;
    gap: 0.16rem;
    transition: background 0.13s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .mob-btn:active { transform: scale(0.91); background: rgba(79,70,229,0.07); }
  .mob-btn .material-symbols-outlined,
  .mob-btn .studio-svg-icon {
    font-size: 1.72rem; color: #4f46e5; line-height: 1;
    font-variation-settings: 'wght' 300, 'FILL' 0;
  }
  .mob-lbl {
    font-family: 'Outfit', sans-serif; font-size: 0.625rem; font-weight: 700;
    color: #64748b; white-space: nowrap; line-height: 1; text-align: center;
    letter-spacing: 0.01em;
  }

  /* Active tool button */
  .mob-tool-btn.active .material-symbols-outlined,
  .mob-tool-btn.active .studio-svg-icon { color: #fff; }
  .mob-tool-btn.active .mob-lbl { color: rgba(255,255,255,0.75); }
  .mob-tool-btn.active {
    background: #4f46e5;
    box-shadow: 0 2px 8px rgba(79,70,229,0.30);
  }

  /* Toggle buttons */
  .mob-toggle-btn.active .material-symbols-outlined,
  .mob-toggle-btn.active .studio-svg-icon { color: #4f46e5; }
  .mob-toggle-btn.active {
    background: rgba(79,70,229,0.1);
  }

  /* Param buttons */
  .mob-param-btn.active .material-symbols-outlined,
  .mob-param-btn.active .studio-svg-icon { color: #4f46e5; }
  .mob-param-btn.active { background: rgba(79,70,229,0.1); }

  /* Delete button */
  .mob-btn-delete {
    flex-shrink: 0; min-width: 3.44rem;
    border-left: 1px solid rgba(226,232,240,0.6);
    margin-left: 0.125rem; padding-left: 0.625rem;
    height: 3.28rem; border-radius: 0;
  }
  .mob-btn-delete .material-symbols-outlined,
  .mob-btn-delete .studio-svg-icon { color: #ef4444; font-size: 1.56rem; }

  /* Back button */
  .mob-btn-back {
    flex-shrink: 0; min-width: 3.125rem;
    border-right: 1px solid rgba(226,232,240,0.5);
    height: 3.28rem; border-radius: 0; padding: 0 0.625rem;
  }
  .mob-btn-back .material-symbols-outlined,
  .mob-btn-back .studio-svg-icon { color: #4f46e5; font-size: 1.1rem; }

  /* Small icon button */
  .mob-btn-icon-sm { min-width: 3.44rem; flex-shrink: 0; }
  .mob-btn-icon-sm .material-symbols-outlined { font-size: 1.4rem; }

  /* Add text button */
  .mob-btn-add-text .material-symbols-outlined,
  .mob-btn-add-text .studio-svg-icon { color: #4f46e5; }
  .mob-btn-add-text .mob-lbl { color: #4f46e5; }

  /* Bar section title */
  .mob-bar-section-title {
    flex: 1; padding-left: 0.94rem;
    font-family: 'Outfit', sans-serif; font-size: 1.0rem; font-weight: 700;
    color: #1e293b;
  }

  /* ── Adjustment chip buttons ── */
  .mob-adj-btn {
    flex-shrink: 0;
    padding: 0 1.1rem;
    height: 2.65rem;
    background: rgba(241,245,249,0.9);
    border: 1px solid rgba(226,232,240,0.8);
    border-radius: 2rem;
    cursor: pointer; outline: none;
    font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 700;
    color: #475569;
    white-space: nowrap;
    transition: all 0.14s ease;
    -webkit-tap-highlight-color: transparent;
    margin: 0 0.23rem;
  }
  .mob-adj-btn:active { transform: scale(0.93); }
  .mob-adj-btn.active {
    background: #4f46e5; color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79,70,229,0.28);
  }

  /* ── Color swatch wrapper — stable container ── */
  .mob-colors-strip { gap: 0.5rem; padding: 0 0.375rem; }
  .mob-color-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    flex-shrink: 0; cursor: pointer;
    padding: 0.25rem;
  }
  .mob-color-swatch-wrap {
    width: 2.95rem; height: 2.95rem;
    border-radius: 0.625rem;
    border: 2px solid rgba(226,232,240,0.9);
    overflow: hidden; flex-shrink: 0;
    position: relative;
  }
  .mob-color-swatch-wrap .pickr {
    width: 100% !important; height: 100% !important;
    display: block;
  }
  .mob-color-swatch-wrap .pcr-button {
    width: 100% !important; height: 100% !important;
    border-radius: 0.5rem !important; border: none !important;
  }
  .mob-color-swatch-wrap .pcr-button::after { border-radius: 0.5rem !important; }

  /* ── Font select in toolbar ── */
  .mob-font-sel {
    flex: 1; height: 3.125rem; min-width: 3.125rem;
    border: 1px solid rgba(226,232,240,0.9); border-radius: 0.75rem;
    padding: 0 0.78rem;
    font-family: 'Outfit', sans-serif; font-size: 0.94rem; font-weight: 600;
    color: #1e293b; background: rgba(248,250,252,0.97); outline: none;
    margin: 0 0.375rem;
    -webkit-appearance: none; appearance: none;
    cursor: pointer;
  }

  /* ── Adjustment row variant ── */
  .mob-row-adj { height: 5.3rem; }
  .mob-row-adj .mob-scroll-strip { gap: 0; }

  /* ── BG mode buttons highlight ── */
  #mob-bg-solid-btn.active,
  #mob-bg-grad-btn.active {
    background: rgba(79,70,229,0.1);
  }
  #mob-bg-solid-btn.active .material-symbols-outlined,
  #mob-bg-grad-btn.active .material-symbols-outlined {
    color: #4f46e5;
    font-variation-settings: 'FILL' 1;
  }

}