﻿/* ===== Theme tokens ===== */
:root{
  --ink:#0e1116;
  --panel:#11151c;
  --surface-0:#0b1017;
  --surface-1:#0f141d;
  --surface-2:#111826;
  --surface-3:#162030;
  --muted:#2a2f3a;
  --line:#222734;
  --edge:#2a3446;
  --accent:#50e3a4;
  --accent2:#67b3ff;
  --danger:#ff6b6b;
  --warn:#ffd166;
  --ok:#95f985;
  --text:#e6edf3;
  --headline:#f2f7ff;
  --sub:#a8b3bd;
  --text-soft:#c9d8ea;
  --ghost:#7a8591;
  --chip:#1b2230;
  --chip2:#273044;
  --app-bg:linear-gradient(180deg,#0b1017,#0e131b 40%,#0b1119);
  --hdr-bg:linear-gradient(180deg,var(--surface-1),var(--surface-0));
  --btn-bg-start:#172033;
  --btn-bg-end:#111827;
  --btn-border:#223145;
  --btn-text:#cfe4ff;
  --btn-ghost-border:#2b3952;
  --btn-ghost-text:#bbcee9;
  --btn-ghost-hover-bg:rgba(30,44,70,.45);
  --btn-ghost-hover-border:#3c5279;
  --style-callout-bg-start:#101828;
  --style-callout-bg-end:#0c121d;
  --style-callout-border:rgba(103,179,255,.45);
  --style-callout-shadow:0 14px 32px rgba(4,9,18,.55);
  --style-callout-inner-highlight:inset 0 1px 0 rgba(255,255,255,.04);
  --style-callout-glow-a:radial-gradient(240px 140px at 18% 0%,rgba(103,179,255,.18),transparent 60%);
  --style-callout-glow-b:radial-gradient(220px 160px at 88% 20%,rgba(80,227,164,.14),transparent 62%);
  --style-callout-glow-opacity:.85;
  --style-callout-select-bg:#0d1624;
  --style-callout-select-border:#3c4f6a;
  --style-callout-select-shadow:0 6px 18px rgba(2,6,14,.4);
  --toggle-bg:rgba(17,24,38,.85);
  --toggle-border:#223145;
  --toggle-text:#d4e4f6;
  --toggle-hover-bg:rgba(20,30,46,.92);
  --toggle-hover-border:#31507a;
  --toggle-track-bg:rgba(33,45,64,.9);
  --toggle-track-ring:rgba(64,90,128,.55);
  --toggle-thumb:#5f7ca6;
  --toggle-label:#c5d6ec;
  --toggle-active-bg:rgba(27,42,66,.95);
  --toggle-active-border:#3f6bbd;
  --toggle-active-shadow:0 16px 28px rgba(11,18,30,.35);
  --toggle-active-track-bg:linear-gradient(180deg,rgba(111,178,255,.55),rgba(73,121,201,.75));
  --toggle-active-track-ring:rgba(118,168,255,.75);
  --toggle-active-thumb:var(--accent);
  --segment-label:#9fb3c8;
  --segment-group-bg:rgba(17,26,43,.92);
  --segment-group-border:#223145;
  --segment-option-text:#b7c7dd;
  --segment-option-active-bg:linear-gradient(180deg,#1f2a3d,#152030);
  --segment-option-active-border:#3a516d;
  --segment-option-active-text:#e5f0ff;
  --segment-option-active-shadow:0 12px 26px rgba(15,22,36,.45);
  --segment-hint:#7e8fa8;
  --viewer-scene-bg:#0b0f14;
  --viewer-grid-major:#2a3b55;
  --viewer-grid-minor:#1a2638;
  --viewer-grid-opacity:.35;
  --focus-ring:2px solid var(--accent2);
  --dock-width:300px;
  --appbar-height:60px;
}

:root[data-theme="dark"]{
  --app-bg:linear-gradient(180deg,#0b1017,#0e131b 40%,#0b1119);
  --hdr-bg:linear-gradient(180deg,var(--surface-1),var(--surface-0));
}

:root[data-theme="light"]{
  --ink:#f5f8fc;
  --panel:#ffffff;
  --surface-0:#edf2f8;
  --surface-1:#ffffff;
  --surface-2:#f6f9fd;
  --surface-3:#edf2f9;
  --muted:#e2eaf6;
  --line:#d7e1ef;
  --edge:#bdccdf;
  --text:#1f2f45;
  --headline:#0d223c;
  --sub:#4d6280;
  --text-soft:#526a8a;
  --ghost:#5f7494;
  --accent:#2f7ea8;
  --ok:#2f7ea8;
  --chip:#eaf0f9;
  --chip2:#dde8f8;
  --app-bg:linear-gradient(180deg,#f5f8fc,#edf2f8 42%,#f2f6fc);
  --hdr-bg:linear-gradient(180deg,#f5f8fc,#ecf2fa);
  --btn-bg-start:#2f7ea8;
  --btn-bg-end:#235f88;
  --btn-border:#2a6f99;
  --btn-text:#f4fbff;
  --btn-ghost-border:#b9c8dd;
  --btn-ghost-text:#2d4768;
  --btn-ghost-hover-bg:rgba(79,115,163,.14);
  --btn-ghost-hover-border:#8fa6c7;
  --style-callout-bg-start:#fbfdff;
  --style-callout-bg-end:#e6eef9;
  --style-callout-border:#97b2d3;
  --style-callout-shadow:0 10px 20px rgba(48,80,120,.14), 0 0 0 1px rgba(140,170,206,.2);
  --style-callout-inner-highlight:inset 0 1px 0 rgba(255,255,255,.74);
  --style-callout-glow-a:radial-gradient(220px 130px at 16% 0%,rgba(95,151,219,.13),transparent 62%);
  --style-callout-glow-b:radial-gradient(220px 160px at 86% 20%,rgba(84,161,214,.11),transparent 64%);
  --style-callout-glow-opacity:.76;
  --style-callout-select-bg:#ffffff;
  --style-callout-select-border:#8eaace;
  --style-callout-select-shadow:0 5px 12px rgba(47,82,124,.11), inset 0 1px 0 rgba(255,255,255,.74);
  --toggle-bg:rgba(247,251,255,.95);
  --toggle-border:#b9cde4;
  --toggle-text:#2c486b;
  --toggle-hover-bg:rgba(241,248,255,.98);
  --toggle-hover-border:#92b0d3;
  --toggle-track-bg:rgba(197,214,234,.92);
  --toggle-track-ring:rgba(138,164,197,.65);
  --toggle-thumb:#5a7ea8;
  --toggle-label:#406084;
  --toggle-active-bg:rgba(226,238,252,.98);
  --toggle-active-border:#6f97ca;
  --toggle-active-shadow:0 10px 22px rgba(55,92,136,.18);
  --toggle-active-track-bg:linear-gradient(180deg,rgba(109,159,220,.5),rgba(82,127,188,.72));
  --toggle-active-track-ring:rgba(86,132,195,.75);
  --toggle-active-thumb:#f4fbff;
  --segment-label:#5a7393;
  --segment-group-bg:rgba(243,249,255,.96);
  --segment-group-border:#b7cbe4;
  --segment-option-text:#4a6486;
  --segment-option-active-bg:linear-gradient(180deg,#2f7ea8,#235f88);
  --segment-option-active-border:#2a6f99;
  --segment-option-active-text:#f4fbff;
  --segment-option-active-shadow:0 10px 22px rgba(35,88,136,.24);
  --segment-hint:#667f9f;
  --viewer-scene-bg:#edf3fb;
  --viewer-grid-major:#9aaecb;
  --viewer-grid-minor:#c7d6ea;
  --viewer-grid-opacity:.56;
}

:root[data-theme="light"] .btn-toggle.is-active {
  background:
    linear-gradient(180deg, rgba(47,126,168,.95), rgba(35,95,136,.95));
  border-color: #235f88;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    inset 0 -2px 0 #50e3a4,
    0 10px 22px rgba(35,88,136,.22);
}

*,
*::before,
*::after{box-sizing:border-box}
html,body{height:100%;margin:0;max-width:100%;overflow-x:hidden}
body{
  display:grid;grid-template-rows:auto 1fr;
  width:100%;
  min-height:100dvh;
  background:var(--app-bg);
  color:var(--text);
  font:14px/1.2 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
}

body[data-embed-estimator="1"]{
  grid-template-rows:1fr;
  overflow:hidden;
  background:radial-gradient(120% 120% at 50% 0%,rgba(103,179,255,.1),transparent 40%),var(--app-bg);
}

body[data-embed-estimator="1"] > #dockToggle,
body[data-embed-estimator="1"] > .appbar,
body[data-embed-estimator="1"] > .quick-start,
body[data-embed-estimator="1"] > .custom-request,
body[data-embed-estimator="1"] > .cart-panel,
body[data-embed-estimator="1"] > .admin-panel{
  display:none!important;
}

body[data-embed-estimator="1"] .row{
  display:block;
  min-height:100dvh;
}

body[data-embed-estimator="1"] .row > aside,
body[data-embed-estimator="1"] .design-save-hud,
body[data-embed-estimator="1"] #viewportInfo,
body[data-embed-estimator="1"] #droptarget{
  display:none!important;
}

body[data-embed-estimator="1"] main{
  min-height:100dvh!important;
  height:100dvh;
}

body[data-embed-estimator="1"] #viewer{
  inset:0;
}

body[data-embed-estimator="1"] .embed-open-image{
  position:absolute;
  top:12px;
  left:12px;
  z-index:42;
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  min-height:0;
  padding:.48rem .72rem;
  border-radius:999px;
  border:1px solid rgba(95,138,207,.5);
  background:rgba(11,17,27,.82);
  color:#eaf3ff;
  box-shadow:0 12px 26px rgba(0,0,0,.28);
  backdrop-filter:blur(12px);
}

body[data-embed-estimator="1"] .embed-open-image:hover,
body[data-embed-estimator="1"] .embed-open-image:focus-visible{
  border-color:rgba(109,225,193,.72);
  background:rgba(19,29,42,.94);
  color:#ffffff;
}

body[data-embed-estimator="1"] .embed-open-image span[aria-hidden="true"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1rem;
  height:1rem;
  font-size:1rem;
  font-weight:700;
  line-height:1;
}

body[data-embed-estimator="1"] .viewport-toolbar-stack{
  display:none!important;
}

body[data-embed-estimator="1"] .viewport-controls,
body[data-embed-estimator="1"] #adminPanelToggleSlot{
  display:none!important;
}

body[data-embed-estimator="1"] #cartToggle,
body[data-embed-estimator="1"] #cartPanel{
  display:none!important;
}

body[data-embed-estimator="1"] .viewport-empty__badge,
body[data-embed-estimator="1"] .viewport-empty__ai,
body[data-embed-estimator="1"] .viewport-empty__footer{
  display:none!important;
}

body[data-embed-estimator="1"] .viewport-empty__panel{
  width:min(340px,calc(100% - 28px));
  padding:18px 16px;
  border-radius:18px;
}

body[data-embed-estimator="1"] .viewport-empty__hero{
  gap:.45rem;
  margin-bottom:.75rem;
}

body[data-embed-estimator="1"] .viewport-empty__title{
  font-size:clamp(18px,2.4vw,24px);
}

body[data-embed-estimator="1"] .viewport-empty__copy{
  max-width:280px;
  font-size:12.5px;
  line-height:1.45;
}

body[data-embed-estimator="1"] .viewport-empty__actions{
  display:block!important;
  margin:0;
}

body[data-embed-estimator="1"] .viewport-empty__action{
  display:none!important;
}

body[data-embed-estimator="1"] .viewport-empty__action[data-empty-state-action="open-image"]{
  display:flex!important;
  min-height:76px;
  padding:12px 14px;
  border-radius:16px;
  align-items:center;
}

body[data-embed-estimator="1"] .viewport-empty__action[data-empty-state-action="open-image"] .viewport-empty__action-copy{
  display:block;
  font-size:12px;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

body.cart-open{overflow:hidden;}
body.feedback-open{overflow:hidden;}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible{
  outline:var(--focus-ring);
  outline-offset:2px;
}

/* ===== Header ===== */
header{
  display:flex;gap:.75rem;align-items:center;
  padding:.6rem .8rem;
  border-bottom:1px solid var(--line);
  background:var(--hdr-bg);
}
header h1{font-size:14px;margin:0;letter-spacing:.4px;color:var(--sub);font-weight:600}
.badge{font-size:12px;background:var(--chip2);color:var(--accent2);padding:.15rem .45rem;border:1px solid var(--btn-ghost-border);border-radius:999px}
.appbar .btn--theme-icon{margin-inline:.15rem;}

/* Mobile header optimizations */
@media (max-width:760px){
  header{
    padding:.5rem .6rem;
    gap:.5rem;
  }
  .appbar .brand{
    font-size:16px;
    gap:.5rem;
  }
  .badge{
    font-size:11px;
    padding:.12rem .4rem;
  }
}

@media (max-width:520px){
  header{
    padding:.45rem .5rem;
    gap:.4rem;
  }
  .appbar .brand{
    font-size:15px;
  }
  .appbar .btn,
  #exportstl{
    padding:.38rem .5rem;
    font-size:12px;
  }
}
.purchase-action-proxy{
  display:none !important;
}

@media (min-width:781px){
  [data-printed-mobile-slot] > #printedControls{
    display:none;
  }
}

/* ===== Two-column layout ===== */
.row{
  display:grid;
  grid-template-columns:var(--dock-width) 1fr;
  gap:0;
  /* let the content flow under whatever header height we have */
  min-height:0;
}
/* Make the dock column able to shrink and its content scroll on tablets */
aside{
  border-right:1px solid var(--line);
  background:radial-gradient(1200px 400px at -400px -200px,#131b28,transparent),linear-gradient(180deg,var(--surface-1),#0c1118);
  display:flex;               /* allow a flex child (#dock) to fill & scroll */
  flex-direction:column;
  min-height:0;               /* critical so inner overflow works */
}
main{position:relative}

/* ===== Left dock ===== */
#dock{
  display:flex;flex-direction:column;
  /* replaced rigid 100% height with flexible, scrollable container */
  flex:1 1 auto;
  height:auto;
  min-height:0;               /* let it shrink inside grid/flex parents */
  overflow-y:auto;            /* scroll when panels exceed viewport */
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;       /* hide scrollbar in Firefox */
  -ms-overflow-style:none;    /* hide scrollbar in legacy Edge */
  padding-bottom:env(safe-area-inset-bottom,12px);
}
#dock::-webkit-scrollbar{display:none}

body.drag-scroll-active{user-select:none}

#dock.drag-scroll-active{cursor:grabbing}
.panel{padding:.8rem;border-bottom:1px solid var(--line)}
.panel h3{margin:.2rem 0 .6rem;font-size:12px;color:var(--ghost);letter-spacing:.4px;text-transform:uppercase}

/* Buttons / chips / helpers */
button,.btn{
  background:var(--surface-3);border:1px solid var(--btn-border);color:var(--btn-text);
  padding:.4rem .6rem;border-radius:.5rem;cursor:pointer;font-size:13px;display:inline-block;text-align:center
}
.btn.primary,button.primary{
  background:linear-gradient(180deg,#3ba980,#2c7d93);
  border-color:#45cba0;
  color:#041116;
  font-weight:600;
  box-shadow:0 10px 24px rgba(27,202,150,.22);
}
.btn.ghost{
  background:transparent;
  border-color:var(--btn-ghost-border);
  color:var(--btn-ghost-text);
}
.btn.ghost:hover{border-color:var(--btn-ghost-hover-border);background:var(--btn-ghost-hover-bg);}
.btn--theme-icon{
  width:34px;
  height:34px;
  min-width:34px;
  padding:0;
  border-radius:.6rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn--theme-icon [data-theme-toggle-icon]{
  line-height:1;
  font-size:14px;
}
.btn.emphasis{
  background:linear-gradient(180deg,#355a9c,#27487d);
  border-color:#3f6bbd;
  color:#f2f6ff;
  font-weight:600;
  box-shadow:0 14px 28px rgba(54,104,193,.28);
}
.btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:.35rem;
  font-size:15px;
}
.btn-icon + .btn-label{display:inline-block;}
.dock-toggle{display:none}
.dock-close{display:none}
.btn{ display:inline-flex; align-items:center; margin:0; position:relative; }
.btn[hidden],button[hidden]{display:none!important;}

/* --- UPDATED: Smooth Racing Orange Trail Animation --- */
@keyframes rotate-trail {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-pulse-orange {
  position: relative;
  overflow: hidden;          /* Clips the spinning gradient outside the button */
  border-color: transparent !important; /* Hide actual border so gradient shows */
  background: var(--surface-3);       /* Fallback background */
  z-index: 1;                /* Create stacking context */
  transition: transform 0.2s ease;
}

/* The Trail (Spinning Gradient) */
.btn-pulse-orange::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  /* Massive size ensures corners are covered even on wide buttons */
  width: 150vmax;
  height: 150vmax;
  /*
     The Effect:
     1. Tail starts fading in at 50% (180deg behind head) for a long, smooth streak.
     2. Ramps to bright orange, then White hot at the front (100%).
  */
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 50%,
    rgba(255, 153, 0, 0.2) 65%,
    rgba(255, 153, 0, 0.9) 95%,
    #ffffff 100%
  );
  /* Center and spin */
  transform: translate(-50%, -50%);
  /* 1s is fast enough to hide the speed difference between corners and straight edges */
  animation: rotate-trail 1s linear infinite;
  will-change: transform;
  z-index: -2;
}

/* The Mask (Inner button color) */
.btn-pulse-orange::after {
  content: '';
  position: absolute;
  /* inset defines border thickness. Increased to 2px for better visibility on corners */
  inset: 2px;
  background: var(--surface-3); /* Match your theme's button background color */
  border-radius: inherit;
  z-index: -1;
}

/* Ensure text/icon sits on top of the animation effects */
.btn-pulse-orange .btn-icon,
.btn-pulse-orange .btn-label {
  position: relative;
  z-index: 2;
}

/* Shiny sweep animation for buttons */
.btn--pulse {
  position: relative;
  overflow: hidden;
}
.btn--pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%);
  animation: shine 3s infinite;
}
@keyframes shine {
  20% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

button:hover,.btn:hover{border-color:#2f4a71}
button[data-kind=danger]{border-color:#704040;color:#ff7f7f}
.help{font-size:12px;color:#7f8b98;margin-top:.4rem}
.kbd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:#141b26;border:1px solid var(--edge);padding:.1rem .25rem;border-radius:.3rem;color:#a8c6ff}
.chip{display:inline-flex;align-items:center;gap:.35rem;background:var(--chip);border:1px solid var(--btn-ghost-border);border-radius:999px;padding:.1rem .5rem;color:var(--text-soft);font-size:12px}
.sep{height:1px;background:#222a3a;margin:.5rem 0}
.switch{display:inline-flex;gap:.5rem;align-items:center;border:1px solid var(--btn-border);background:var(--surface-3);color:var(--btn-text);padding:.3rem .6rem;border-radius:.5rem}
.switch input{accent-color:var(--accent)}

/* Inputs */
label{display:block;color:#a1adba;font-size:12px;margin:.4rem 0 .2rem}
input[type=text],input[type=number],input[type=search],select{
  width:100%;box-sizing:border-box;background:var(--surface-2);border:1px solid var(--edge);color:var(--text);
  border-radius:.4rem;padding:.38rem .5rem;font-size:13px
}
.style-callout{
  position:relative;
  margin:0 0 .95rem;
  padding:.9rem .95rem;
  background:linear-gradient(180deg,var(--style-callout-bg-start),var(--style-callout-bg-end));
  border:1px solid var(--style-callout-border);
  border-radius:.9rem;
  box-shadow:var(--style-callout-shadow),var(--style-callout-inner-highlight);
  overflow:hidden;
}
.style-callout[hidden]{
  display:none !important;
}
.style-callout::before{
  content:'';
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background:var(--style-callout-glow-a),var(--style-callout-glow-b);
  opacity:var(--style-callout-glow-opacity);
}
.style-callout > *{position:relative;z-index:1;}
.style-callout__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin-bottom:.35rem;
}
.style-callout__eyebrow{
  font-size:11px;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:#9fb2cd;
}
.style-callout__badge{
  font-size:11px;
  color:var(--accent);
  background:rgba(80,227,164,.14);
  border:1px solid rgba(80,227,164,.42);
  padding:.18rem .55rem;
  border-radius:999px;
  white-space:nowrap;
}
.style-callout__label{
  display:block;
  color:#dce7f5;
  font-weight:600;
  font-size:13px;
  margin:.2rem 0 .25rem;
}
.style-callout__label-sub{
  display:block;
  color:#9ab2cf;
  font-size:12px;
  font-weight:500;
  margin-top:.1rem;
}
.style-callout__select{
  margin-top:.15rem;
  border-color:var(--style-callout-select-border);
  background:var(--style-callout-select-bg);
  color:var(--text);
  box-shadow:var(--style-callout-select-shadow);
  font-weight:600;
}
.style-callout__select option{
  background:var(--style-callout-select-bg);
  color:var(--text);
}
.style-callout__select:focus{
  outline:2px solid var(--accent2);
  box-shadow:0 0 0 2px rgba(103,179,255,.35),0 8px 20px rgba(8,19,35,.65);
}
.style-callout__actions{
  margin-top:.55rem;
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}
.style-callout__actions .btn{
  flex:1 1 48%;
  width:auto;
  min-width:0;
}
.style-callout__actions--solo{
  justify-content:flex-start;
}
.style-callout__actions--solo .btn{
  flex:0 0 auto;
  width:auto;
  min-width:0;
}
.style-callout__hint{
  color:#90a4bd;
  font-size:12px;
  margin:.45rem 0 0;
  line-height:1.45;
}
input[type=range]{width:100%}
.advanced-size-card{
  margin:.55rem 0 .85rem;
  border:1px solid rgba(82,118,168,.5);
  border-radius:8px;
  background:linear-gradient(180deg, rgba(12,20,33,.72), rgba(9,15,25,.62));
  overflow:hidden;
}
.advanced-size-card[hidden]{
  display:none !important;
}
.advanced-size-card__units{
  margin:0;
  padding:.65rem .7rem .25rem;
  align-items:center;
  gap:.45rem;
}
.advanced-size-card__title{
  flex:1 1 auto;
  min-width:0;
  margin:0;
  color:#d7e6fa;
  font-size:13px;
  font-weight:800;
  line-height:1.1;
}
.advanced-size-card__units .size-adjust-note{
  flex:0 1 auto;
}
.advanced-size-card__overall{
  padding:.3rem .7rem .72rem;
}
.advanced-size-card__overall .size-label-row{
  margin-top:0;
  margin-bottom:.28rem;
}
.advanced-size-card__overall input[type=range]{
  margin-bottom:0;
}
.advanced-size-card__details{
  margin:0 .55rem .55rem;
  border:1px solid rgba(82,118,168,.34);
  border-radius:7px;
  padding:0;
  overflow:hidden;
}
.advanced-size-card__details[hidden]{
  display:none !important;
}
.advanced-size-card__heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  min-height:34px;
  margin:0;
  padding:.5rem .7rem;
  color:#b9cbe4;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  list-style:none;
}
.advanced-size-card__heading::-webkit-details-marker{
  display:none;
}
.advanced-size-card__chevron{
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:transform .16s ease;
  opacity:.82;
}
.advanced-size-card__details[open] .advanced-size-card__chevron{
  transform:rotate(225deg) translate(-2px,-2px);
}
.advanced-size-card__body{
  display:grid;
  gap:.45rem;
  padding:0 .7rem .7rem;
}
.layer-size-target{
  display:grid;
  grid-template-columns:minmax(64px,.85fr) minmax(72px,1fr) 38px;
  align-items:center;
  gap:.45rem;
  margin:0;
}
.layer-size-target__label{
  color:#a9bad0;
  font-size:12px;
  font-weight:700;
}
.layer-size-target__control{
  display:block;
  min-width:0;
}
.layer-size-target__dims-toggle{
  justify-content:center;
  width:38px;
  min-width:38px;
  min-height:30px;
  padding:.25rem;
}
.layer-size-target__dims-toggle .toggle-control__track{
  width:30px;
  height:17px;
}
.layer-size-target__dims-toggle .toggle-control__thumb{
  width:13px;
  height:13px;
}
.layer-size-target__dims-toggle.is-active .toggle-control__thumb{
  transform:translateX(13px);
}
.hidden-file{position:fixed;left:-9999px;top:auto;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}

/* ===== Viewport area ===== */
#viewer{position:absolute;inset:0;background:var(--viewer-scene-bg)}
#viewer > canvas#viewport{position:absolute;inset:0;display:block}

/* Non-interactive overlay strip (optional; empty by default) */
#overlay{
  position:absolute;left:0;top:0;right:0;
  pointer-events:none;
  padding:.6rem;
  display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
}
#overlay .chip{backdrop-filter:blur(6px);background:rgba(21,29,44,.72);border-color:var(--btn-ghost-border)}

.design-save-hud{
  position:absolute;
  top:clamp(8px,1.8vw,14px);
  left:clamp(8px,1.8vw,14px);
  display:grid;
  grid-template-columns:1fr auto auto;
  grid-auto-rows:auto;
  align-items:center;
  gap:clamp(4px,1vw,10px);
  padding:clamp(6px,1.2vw,10px) clamp(10px,1.6vw,16px);
  background:rgba(12,17,26,.78);
  backdrop-filter:blur(14px) saturate(1.1);
  border:1px solid rgba(82,118,168,.45);
  border-radius:12px;
  box-shadow:0 12px 28px rgba(2,6,14,.5);
  max-width:min(94vw,360px);
  z-index:40;
  pointer-events:auto;
}
.mobile-quick-actions{
  display:none;
  align-items:center;
  gap:0;
  overflow:hidden;
  border:1px solid rgba(96,135,190,.52);
  border-radius:999px;
  background:rgba(13,20,31,.84);
  box-shadow:0 10px 24px rgba(3,8,17,.32);
  backdrop-filter:blur(14px);
  pointer-events:auto;
}
.mobile-quick-actions[hidden]{display:none!important;}
.mobile-quick-actions__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:32px;
  padding:.36rem .52rem;
  border:0;
  border-radius:0;
  background:transparent;
  color:#dcecff;
  font-size:11.5px;
  font-weight:700;
  box-shadow:none;
}
.mobile-quick-actions__btn + .mobile-quick-actions__btn{
  border-left:1px solid rgba(96,135,190,.36);
}
.mobile-quick-actions__btn:hover,
.mobile-quick-actions__btn:focus-visible{
  background:rgba(21,32,49,.94);
  color:#ffffff;
}
.style-selector-hud{
  position:absolute;
  top:clamp(8px,1.8vw,14px);
  left:50%;
  z-index:35;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:48px;
  max-width:min(92vw,430px);
  padding:.48rem .62rem .48rem .82rem;
  border:1px solid rgba(76,113,166,.62);
  border-radius:12px;
  background:linear-gradient(135deg, rgba(17,24,38,.88), rgba(20,33,53,.78));
  box-shadow:0 12px 28px rgba(2,6,14,.46), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(12px) saturate(1.08);
  transform:translateX(-50%);
  pointer-events:auto;
}
.style-selector-hud::before{
  content:'';
  position:absolute;
  inset:1px;
  border-radius:11px;
  pointer-events:none;
  background:radial-gradient(140px 38px at 22% 0%, rgba(103,179,255,.14), transparent 70%);
}
.style-selector-hud__label,
.style-selector-hud__select{
  position:relative;
  z-index:1;
}
.style-selector-hud__label{
  display:inline-flex;
  align-items:center;
  margin:0;
  color:var(--text);
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
  line-height:1.1;
  white-space:nowrap;
}
.style-selector-hud__select{
  width:auto;
  min-width:180px;
  max-width:230px;
  min-height:34px;
  padding:.42rem 2rem .42rem .62rem;
  border:1px solid var(--style-callout-select-border);
  border-radius:.45rem;
  background:var(--style-callout-select-bg);
  color:var(--text);
  box-shadow:var(--style-callout-select-shadow);
  font-size:12.5px;
  font-weight:700;
  line-height:1.15;
  cursor:pointer;
}
.style-selector-hud__select:focus{
  outline:none;
  border-color:rgba(103,179,255,.95);
  box-shadow:0 0 0 2px rgba(103,179,255,.35),0 8px 20px rgba(8,19,35,.65);
}
.style-selector-hud__select option{
  background:var(--style-callout-select-bg);
  color:var(--text);
}
@media (min-width:761px) and (max-width:1400px){
  .style-selector-hud{
    top:56px;
  }
}
@media (max-width:760px){
  .design-save-hud{
    top:8px;
    left:8px;
    padding:8px 12px;
    gap:6px;
    grid-template-columns:minmax(0,1fr) auto auto auto;
    max-width:calc(100vw - 16px);
  }
  .design-save-hud input{
    font-size:12px;
    padding:.3rem .5rem;
  }
  .mobile-quick-actions{
    display:flex;
  }
  .style-selector-hud{
    display:none;
  }
}
@media (max-width:520px){
  .design-save-hud{
    top:6px;
    left:6px;
    padding:6px 10px;
    gap:5px;
    border-radius:10px;
  }
  .design-save-hud input{
    font-size:11px;
    padding:.28rem .45rem;
  }
  #designSaveButton,
  #designShareButton{
    width:28px;
    height:28px;
    min-width:28px;
  }
  .mobile-quick-actions{
    align-self:center;
  }
  .mobile-quick-actions__btn{
    min-height:28px;
    padding:.3rem .42rem;
    font-size:10.75px;
    gap:4px;
  }
}
.design-save-hud[data-state="saved"]{
  border-color:rgba(69,203,160,.55);
  box-shadow:0 14px 32px rgba(27,202,150,.18);
}
.design-save-hud input{
  flex:1 1 auto;
  min-width:0;
  background:rgba(15,23,37,.92);
  color:#e8f1ff;
  border:1px solid rgba(74,108,160,.55);
  border-radius:10px;
  padding:.35rem .55rem;
  font-size:12.75px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.design-save-hud input::placeholder{color:rgba(180,198,222,.6);}
.design-save-hud input:hover{border-color:rgba(102,146,210,.7);background:rgba(17,26,40,.95);}
.design-save-hud input:focus-visible{
  outline:2px solid rgba(102,173,255,.65);
  outline-offset:2px;
  border-color:rgba(110,170,255,.95);
  box-shadow:0 0 0 2px rgba(80,140,220,.25);
  background:rgba(18,28,46,.98);
}
.artwork-persist-alert{
  margin:8px 0 0;
  padding:.65rem .85rem;
  border-radius:12px;
  border:1px solid rgba(255,136,154,.45);
  background:rgba(255,136,154,.15);
  color:#ffe2e7;
  font-size:.9rem;
  line-height:1.35;
  display:flex;
  flex-direction:column;
  gap:.25rem;
}
.artwork-persist-alert[hidden]{display:none;}
.artwork-persist-alert__title{font-weight:600;font-size:.95rem;}
.artwork-persist-alert__body{margin:0;color:#ffe2e7;opacity:.9;font-size:.85rem;}
.design-overwrite-confirm{
  margin:8px 0 0;
  padding:.75rem .95rem;
  border-radius:14px;
  border:1px solid rgba(128,167,255,.4);
  background:rgba(61,93,145,.25);
  color:#e7eeff;
  display:flex;
  flex-direction:column;
  gap:.4rem;
}
.design-overwrite-confirm[hidden]{display:none;}
.design-overwrite-confirm__title{font-weight:600;font-size:.95rem;}
.design-overwrite-confirm__body{margin:0;font-size:.85rem;color:rgba(231,238,255,.9);}
.design-overwrite-confirm{grid-column:1 / -1; margin-left:1px; margin-right:1px;}
.design-overwrite-confirm__actions{display:flex;gap:.4rem;flex-wrap:wrap;}
.design-overwrite-confirm__actions .btn{flex:0 0 auto;}
.design-save-hud.design-save-hud--confirm{
  box-shadow:0 16px 32px rgba(2,6,14,.65);
}
#designSaveButton,
#designShareButton{
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  border:1px solid rgba(82,118,168,.55);
  background:rgba(17,26,42,.9);
  color:var(--btn-text);
  font-size:16px;
  transition:background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
  cursor:pointer;
}
#designSaveButton .design-save-button-icon,
#designShareButton .design-share-button-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:1.2em;
  height:1.2em;
  line-height:1;
}

#designShareButton[data-state="success"]{
  border-color:rgba(69,203,160,.75);
  color:#c8ffe9;
}
#designShareButton[data-state="error"]{
  border-color:rgba(203,96,96,.75);
  color:#ffc4c4;
}
#designShareButton[data-state="loading"] .design-share-button-icon{
  animation:design-save-spin 1s linear infinite;
}

#designShareButton .design-share-button-icon svg{
  width:18px;
  height:18px;
  filter:drop-shadow(0 0 4px rgba(0,255,153,.45));
}
#printedControlsDesktopSlot{
  display:flex;
  margin-right:auto;
}

#printedControlsDesktopSlot[data-printed-empty="true"]{
  display:none;
}

.printed-controls{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin-right:auto;
  pointer-events:auto;
  padding:.35rem .55rem;
  border-radius:.75rem;
  border:1px solid rgba(56,72,98,.65);
  background:linear-gradient(135deg, rgba(17,24,38,.88), rgba(20,33,53,.78));
  backdrop-filter:blur(6px);
  max-width:100%;
  overflow:visible;
}
.printed-controls__price{
  display:flex;
  align-items:center;
  gap:.4rem;
  min-width:0;
}
.printed-price{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  min-width:0;
  position:relative;
  overflow:visible;
}
.printed-price__chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:35px;
  padding:.34rem .82rem;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(28,42,63,.95), rgba(32,48,70,.88));
  border:1px solid rgba(58,88,132,.8);
  color:var(--text);
  font-size:12.5px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.01em;
  transition:background .22s ease,border-color .22s ease,box-shadow .22s ease,color .22s ease,transform .18s ease,border-radius .18s ease,padding .24s ease;
  position:relative;
  z-index:2;
  overflow:visible;
}
.printed-price__chip:focus-visible{
  outline:none;
}
.printed-price__chip:disabled{
  opacity:.55;
  cursor:default;
  box-shadow:none;
}
.printed-price__summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.42rem;
  width:100%;
}
.printed-price__value{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.25rem;
  white-space:nowrap;
  font-size:13px;
  font-weight:700;
  line-height:1.1;
  text-align:center;
}
.printed-price__arrow{
  flex:0 0 auto;
  width:0;
  height:0;
  border-left:4.5px solid transparent;
  border-right:4.5px solid transparent;
  border-top:6.5px solid rgba(255,153,0,.9);
  transition:transform .22s ease;
}
.printed-price--expandable .printed-price__chip{
  cursor:pointer;
}
.printed-price--expandable .printed-price__chip:not(:disabled):hover,
.printed-price--expandable .printed-price__chip:not(:disabled):focus-visible,
.printed-price.is-expanded .printed-price__chip{
  border-color:rgba(255,153,0,.85);
  background:linear-gradient(135deg, rgba(32,46,68,.98), rgba(36,56,84,.9));
  color:var(--text);
}
.printed-price.is-expanded .printed-price__arrow{
  transform:rotate(180deg);
}
.printed-price__breakdown{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.65rem;
  font-size:12px;
  letter-spacing:.01em;
  line-height:1.2;
  opacity:0;
  transform:translateY(-8px);
  transition:opacity .22s ease,transform .24s ease,padding .24s ease,border-color .24s ease,gap .24s ease;
  pointer-events:none;
  padding:0;
  margin:0;
  align-self:stretch;
  border-top:0;
  position:absolute;
  left:0;
  right:0;
  top:100%;
  z-index:1;
  border-radius:0 0 .95rem .95rem;
}
.printed-price__breakdown::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  background:linear-gradient(135deg, rgba(26,40,60,.95), rgba(30,46,68,.9));
  box-shadow:0 16px 34px rgba(4,9,16,.5);
  opacity:0;
  transition:opacity .22s ease;
  pointer-events:none;
  z-index:-2;
  border-radius:inherit;
}
.printed-price__breakdown::after{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  top:-1px;
  bottom:-1px;
  border:1px solid rgba(255,153,0,.7);
  border-top:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
  border-bottom-left-radius:.85rem;
  border-bottom-right-radius:.85rem;
  opacity:0;
  transition:opacity .22s ease,border-color .24s ease;
  pointer-events:none;
  z-index:-1;
}
.printed-price.is-expanded{
  z-index:20;
}
.printed-price.is-expanded .printed-price__breakdown{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
  padding:.75rem .95rem .55rem;
  gap:.75rem;
}
.printed-price.is-expanded .printed-price__breakdown::before{
  opacity:1;
}
.printed-price.is-expanded .printed-price__breakdown::after{
  opacity:1;
  border-color:rgba(255,153,0,.85);
}
.printed-price__breakdown-title{
  display:block;
  font-size:10.75px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(157,184,223,.7);
}
.printed-price__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  padding:.4rem 0;
  border-bottom:1px solid rgba(255,213,154,.16);
}
.printed-price__row:last-of-type{
  border-bottom:0;
  padding-bottom:0;
}
.printed-price__row-heading{
  display:flex;
  flex-direction:column;
  gap:.15rem;
  min-width:0;
  flex:1;
  align-items:flex-start;
  text-align:left;
}
.printed-price__row-value{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:.12rem;
  min-width:0;
  flex:0 0 auto;
  text-align:right;
  padding-right:0;
  margin-right:0;
}
.printed-price__value-label{
  font-size:10.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(157,184,223,.58);
}
.printed-price__label{
  font-weight:700;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,213,154,.9);
}
.printed-price__metric{
  color:#d1e4ff;
  font-weight:600;
  font-size:11.5px;
  white-space:nowrap;
}
.printed-price__metric--sub{
  font-size:11px;
  font-weight:500;
  color:rgba(157,184,223,.78);
}
.printed-price__amount{
  color:#ffe6c2;
  font-weight:700;
  font-size:12px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.printed-price__piece--muted{
  color:rgba(157,184,223,.55);
}
#printedPriceDisplay .chip,
.printed-controls__price .chip{
  font-size:12px;
  white-space:nowrap;
}
#printedPriceDisplay .chip:not(.printed-price__chip),
.printed-controls__price .chip:not(.printed-price__chip){
  color:#fff;
}
.printed-controls__actions{
  display:flex;
  align-items:center;
  gap:.4rem;
  flex-wrap:wrap;
  position:relative;
}
.printed-controls__actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12.5px;
  min-height:34px;
  padding:.35rem .7rem;
  border-radius:.65rem;
  box-shadow:none;
  line-height:1.2;
}
.printed-controls__entry{
  position:relative;
  z-index:2;
  white-space:nowrap;
  padding-left:.82rem !important;
  padding-right:1.78rem !important;
  background:linear-gradient(180deg,#2f8f79,#256d78);
  border-color:rgba(69,203,160,.78);
  color:#f4fbff;
  font-weight:700;
  letter-spacing:.01em;
  text-shadow:0 1px 0 rgba(3,14,18,.24);
  transition:background .22s ease,border-color .22s ease,box-shadow .22s ease,color .22s ease,transform .18s ease,border-radius .18s ease,padding .24s ease;
}
.printed-controls__entry::after{
  content:"";
  position:absolute;
  right:.8rem;
  top:50%;
  width:0;
  height:0;
  margin-top:-2px;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:6px solid rgba(255,196,104,.78);
  transition:transform .22s ease;
}
.printed-controls__entry:hover,
.printed-controls__entry:focus-visible,
.printed-controls--chooser-open .printed-controls__entry{
  border-color:rgba(255,153,0,.85) !important;
}
.printed-controls__actions .btn.primary{
  box-shadow:none;
}
.printed-controls__actions .btn.primary:disabled{
  box-shadow:none;
}
.purchase-chooser{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.42rem;
  width:100%;
  max-width:none;
  padding:0;
  margin:0;
  transition:opacity .18s ease;
}
.purchase-chooser[hidden]{
  display:none !important;
}
.purchase-chooser__title{
  display:none;
}
.purchase-chooser__option{
  appearance:none;
  width:100%;
  display:grid;
  grid-template-columns:2rem minmax(0,1fr);
  align-items:flex-start;
  gap:.12rem .64rem;
  padding:.56rem .62rem;
  border-radius:.48rem;
  border:1px solid rgba(120,151,198,.32);
  background:rgba(18,28,44,.68);
  color:#edf4ff;
  text-align:left;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  transition:border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}
.purchase-chooser__option:not(:disabled):hover,
.purchase-chooser__option:not(:disabled):focus-visible{
  outline:none;
  color:#ffffff;
  border-color:rgba(255,188,90,.62);
  background:rgba(24,38,59,.86);
  transform:translateY(-1px);
}
.purchase-chooser__option:not(:disabled):hover .purchase-chooser__option-body,
.purchase-chooser__option:not(:disabled):focus-visible .purchase-chooser__option-body{
  color:#c1d3e9;
}
.purchase-chooser__option:not(:disabled):hover .purchase-chooser__option-meta,
.purchase-chooser__option:not(:disabled):focus-visible .purchase-chooser__option-meta{
  color:#ffffff;
}
.purchase-chooser__option:last-child{
  border-bottom:1px solid rgba(120,151,198,.32);
}
.purchase-chooser__option:disabled{
  opacity:.62;
  cursor:not-allowed;
  transform:none;
}
.purchase-chooser__option-icon{
  grid-row:1 / span 3;
  width:2rem;
  height:2rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  border-radius:.44rem;
  border:1px solid rgba(133,164,208,.34);
  background:rgba(9,17,29,.48);
  color:#ffd59a;
  flex:0 0 auto;
}
.purchase-chooser__option-icon--download::before{
  content:"";
  position:absolute;
  left:50%;
  top:.42rem;
  width:2px;
  height:.74rem;
  border-radius:999px;
  background:currentColor;
  transform:translateX(-50%);
}
.purchase-chooser__option-icon--download::after{
  content:"";
  position:absolute;
  left:50%;
  top:1rem;
  width:.56rem;
  height:.56rem;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateX(-50%) rotate(45deg);
}
.purchase-chooser__option-icon--order::before{
  content:"";
  position:absolute;
  left:.46rem;
  top:.58rem;
  width:1.02rem;
  height:.86rem;
  border:2px solid currentColor;
  border-radius:.12rem;
}
.purchase-chooser__option-icon--order::after{
  content:"";
  position:absolute;
  left:.72rem;
  top:.58rem;
  width:.44rem;
  height:.32rem;
  border-left:2px solid currentColor;
  border-right:2px solid currentColor;
  opacity:.82;
}
.purchase-chooser__option-head{
  width:100%;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.55rem;
  grid-column:2;
}
.purchase-chooser__option-title{
  font-weight:700;
  font-size:11.75px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,213,154,.92);
}
.purchase-chooser__option-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:auto;
  padding:0;
  border-radius:0;
  background:transparent;
  border:0;
  color:rgba(157,184,223,.78);
  font-size:10px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  white-space:nowrap;
}
.purchase-chooser__option-body{
  font-size:11.25px;
  line-height:1.35;
  color:#aec3de;
  grid-column:2;
}
.purchase-chooser__option-meta{
  font-size:11.75px;
  line-height:1.35;
  color:#f1f6ff;
  font-weight:600;
  grid-column:2;
}
.purchase-chooser__option:disabled .purchase-chooser__option-meta{
  color:#96aac4;
}
.purchase-chooser__option[data-loading="true"]{
  color:#ffffff;
}
.purchase-chooser__option[data-loading="true"] .purchase-chooser__option-badge{
  position:relative;
  padding-left:.95rem;
}
.purchase-chooser__option[data-loading="true"] .purchase-chooser__option-badge::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:.48rem;
  height:.48rem;
  margin-top:-.24rem;
  border-radius:999px;
  border:2px solid rgba(157,184,223,.34);
  border-top-color:currentColor;
  animation:purchaseChooserSpin .8s linear infinite;
}
@keyframes purchaseChooserSpin{
  to{transform:rotate(360deg);}
}
.printed-controls{
  transition:border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.printed-controls:not(.printed-controls--panel-open){
  align-items:center;
  gap:.5rem;
}
.printed-controls:not(.printed-controls--panel-open) .printed-controls__panel{
  display:none;
}
.printed-controls--panel-open{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:.56rem .5rem;
}
.printed-controls--panel-open .printed-controls__price{
  grid-column:1;
  align-self:start;
}
.printed-controls--panel-open .printed-controls__actions{
  grid-column:2;
  justify-self:end;
  align-self:start;
}
.printed-controls__panel{
  grid-column:1 / -1;
  width:100%;
  display:grid;
  max-height:0;
  opacity:0;
  overflow:hidden;
  pointer-events:none;
  border-top:1px solid transparent;
  padding-top:0;
  transition:max-height .34s cubic-bezier(.2,.78,.18,1), opacity .22s ease, padding-top .28s ease, border-color .28s ease;
}
.printed-controls--panel-open{
  border-color:rgba(255,153,0,.85);
}
.printed-controls--panel-open .printed-controls__panel{
  max-height:19.4rem;
  opacity:1;
  pointer-events:auto;
  padding-top:.68rem;
  border-top-color:rgba(255,213,154,.16);
}
.printed-controls--price-open .printed-price__chip,
.printed-controls--chooser-open .printed-controls__entry{
  border-color:rgba(255,153,0,.85) !important;
}
.printed-controls--price-open .printed-price__arrow,
.printed-controls--chooser-open .printed-controls__entry::after{
  transform:rotate(180deg);
}
.printed-controls__panel .printed-price__breakdown{
  position:static;
  display:flex;
  width:100%;
  max-width:none;
  opacity:1;
  transform:none;
  pointer-events:auto;
  padding:0;
  margin:0;
  align-self:auto;
  border-radius:0;
}
.printed-controls__panel .printed-price__breakdown::before,
.printed-controls__panel .printed-price__breakdown::after{
  display:none;
}
.printed-controls__panel .printed-price__breakdown[hidden]{
  display:none !important;
}
.printed-controls__panel .purchase-chooser{
  position:static;
  display:flex;
  width:100%;
  max-width:none;
  padding:0 0 .36rem;
  margin:0;
  opacity:1;
  pointer-events:auto;
}
.printed-controls__panel .purchase-chooser[hidden]{
  display:none !important;
}
.printed-controls--mobile{
  background:none;
  border:none;
  box-shadow:none;
  padding:0;
  margin-right:0;
  gap:.3rem .3rem;
  align-items:center;
  width:100%;
}

.printed-controls--mobile .printed-controls__price{
  order:0;
  flex:1 1 auto;
  min-width:0;
}

.printed-controls--mobile .printed-price{
  width:100%;
}

.printed-controls--mobile .printed-price__chip{
  width:100%;
}

.printed-controls--mobile .printed-price__summary{
  width:100%;
  min-width:0;
}

.printed-controls--mobile .printed-price__value{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.printed-controls--mobile .printed-controls__actions{
  order:1;
  width:auto;
}

.printed-controls--mobile .printed-controls__actions .btn{
  box-shadow:none;
  font-size:11.5px;
  padding:.28rem .55rem;
  white-space:nowrap;
}
.printed-controls--mobile .purchase-chooser{
  width:100%;
  max-width:none;
}
.printed-controls__buy.btn.ghost{
  border-color:rgba(60,82,113,.6);
  color:#9fb4ce;
  background:rgba(18,28,44,.6);
}
.printed-controls__buy.btn.ghost:hover{
  border-color:var(--btn-ghost-hover-border);
  background:rgba(32,46,68,.75);
  color:var(--btn-text);
}

@media (max-width:780px){
  .printed-controls{
    align-items:flex-start;
    gap:.4rem .45rem;
    padding:.4rem .5rem;
    font-size:12px;
  }
  .printed-price{
    width:100%;
  }
  .printed-controls--mobile{
    align-items:center;
    padding:0;
    gap:.3rem .3rem;
  }
  .printed-controls--mobile .printed-price{
    width:100%;
  }
  .printed-price__chip{
    font-size:11px;
    padding:.25rem .5rem;
  }
  .printed-price__value{
    font-size:11.5px;
  }
  .printed-price__breakdown{
    flex-wrap:wrap;
  }
  .printed-controls__actions{
    width:auto;
    justify-content:flex-end;
  }
  .printed-controls__actions .btn{
    font-size:11.5px;
    padding:.3rem .6rem;
  }
  .purchase-chooser{
    width:100%;
    max-width:none;
  }
  .printed-controls--mobile .printed-controls__actions{
    width:auto;
  }
  .printed-controls--mobile .printed-controls__actions .btn{
    padding:.28rem .55rem;
  }
}

/* Even more compact on very small screens */
@media (max-width:520px){
  .printed-controls{
    padding:.35rem .45rem;
    gap:.35rem;
  }
  .printed-price__chip{
    font-size:10.5px;
    padding:.2rem .45rem;
  }
  .printed-controls__actions .btn{
    font-size:11px;
    padding:.28rem .55rem;
  }
  .purchase-chooser{
    width:100%;
    max-width:none;
  }
  .purchase-chooser__option{
    grid-template-columns:1.82rem minmax(0,1fr);
    padding:.46rem .5rem;
    gap:.1rem .5rem;
  }
  .purchase-chooser__option-icon{
    width:1.82rem;
    height:1.82rem;
  }
  .purchase-chooser__option-title{
    font-size:11.5px;
  }
  .purchase-chooser__option-body{
    font-size:11px;
  }
  .purchase-chooser__option-meta{
    font-size:11.5px;
  }
}

/* ===== Cart button ===== */
.cart-button{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  background:var(--chip);
  border:1px solid #273142;
  color:#d5e6ff;
  padding:.45rem .8rem;
  border-radius:.55rem;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:0 10px 24px rgba(15,24,37,.22);
}
.cart-button:hover{
  border-color:#3a4f6a;
  box-shadow:0 14px 28px rgba(15,24,37,.32);
  background:rgba(27,36,53,.92);
}
.cart-button--fab{
  position:fixed;
  bottom:1.6rem;
  right:1.6rem;
  z-index:110;
  border-radius:999px;
  padding:.65rem 1rem;
  background:linear-gradient(135deg, rgba(26,41,66,.95), rgba(33,53,84,.88));
  box-shadow:0 20px 46px rgba(11,18,30,.48);
}
.cart-button--fab:hover{
  background:linear-gradient(135deg, rgba(30,48,78,.98), rgba(42,66,105,.9));
}
.cart-button--fab .cart-button__icon{font-size:18px;}
.cart-button--fab .cart-button__count{background:rgba(80,227,164,.25);}
@media (max-width:640px){
  .cart-button--fab{
    bottom:calc(env(safe-area-inset-bottom, 0px) + .9rem);
    right:.9rem;
    padding:.58rem .82rem;
  }
}
@media (max-width:520px){
  .cart-button--fab{
    gap:.35rem;
  }
  .cart-button--fab .cart-button__label{
    display:none;
  }
}
.cart-button__icon{font-size:16px;line-height:1;}
.cart-button__label{letter-spacing:.2px;}
.cart-button__count{
  min-width:1.6em;
  padding:.1rem .4rem;
  border-radius:999px;
  background:rgba(80,227,164,.18);
  color:var(--accent);
  border:1px solid rgba(80,227,164,.4);
  text-align:center;
  font-size:12px;
}

.acct-strip__printed .cart-button{
  flex:0 0 auto;
}

/* ===== Cart panel ===== */
.cart-panel{
  position:fixed;
  inset:0;
  z-index:120;
  display:flex;
  justify-content:flex-end;
  pointer-events:none;
  overflow:hidden;
}
.cart-panel__scrim{
  flex:1;
  background:rgba(6,9,15,.65);
  opacity:0;
  transition:opacity .24s ease;
}
.cart-panel__drawer{
  width:min(420px,100%);
  max-width:100%;
  background:linear-gradient(180deg,var(--surface-1),#0b1119);
  border-left:1px solid var(--line);
  transform:translateX(100%);
  transition:transform .28s ease, box-shadow .28s ease;
  display:flex;
  flex-direction:column;
  gap:0;
  pointer-events:auto;
}
.cart-panel.is-open{pointer-events:auto;}
.cart-panel.is-open .cart-panel__scrim{opacity:1;}
.cart-panel.is-open .cart-panel__drawer{transform:translateX(0);box-shadow:-24px 0 48px rgba(2,6,14,.65);}
.cart-panel__header{
  display:flex;
  justify-content:space-between;
  gap:.9rem;
  padding:.85rem 1.1rem .75rem;
  border-bottom:1px solid var(--line);
}
.cart-panel__header h2{
  margin:.1rem 0 0;
  font-size:1.25rem;
  line-height:1.2;
}
.cart-panel__eyebrow{
  margin:0;
  font-size:11px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:#7d8a9b;
}
.cart-panel__sub{
  margin:.25rem 0 0;
  font-size:11px;
  color:#8093ad;
  max-width:28ch;
  line-height:1.35;
}
.cart-panel__close{
  background:#151d2b;
  border:1px solid #273142;
  color:#9fb2c9;
  width:32px;
  height:32px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  cursor:pointer;
}
.cart-panel__close:hover{border-color:#3a4f6a;color:var(--btn-text);}
.cart-panel__content{
  padding:.75rem 1.1rem;
  overflow-y:auto;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.cart-panel__hint{
  margin:.35rem 0 0;
  color:#e9f1ff;
  font-size:11px;
  line-height:1.35;
}
.cart-panel__hint[hidden]{display:none!important;}
.cart-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.65rem;
}
.cart-item{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:.65rem;
  padding:.65rem;
  border:1px solid rgba(55,69,96,.45);
  border-radius:12px;
  background:rgba(14,20,31,.65);
  box-shadow:0 10px 20px rgba(2,6,14,.35);
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.cart-item:not([data-cart-kind="custom_fee"]){
  cursor:pointer;
}
.cart-item:not([data-cart-kind="custom_fee"]):hover,
.cart-item:not([data-cart-kind="custom_fee"]):focus-within{
  border-color:rgba(103,179,255,.68);
  background:rgba(16,24,37,.78);
  box-shadow:0 12px 24px rgba(2,6,14,.42);
}
.cart-item__thumb{
  width:64px;
  height:64px;
  border-radius:10px;
  overflow:hidden;
  background:#101722;
  border:1px solid rgba(80,99,132,.4);
}
.cart-item__thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.cart-item__body{display:flex;flex-direction:column;gap:.35rem;min-width:0;}
.cart-item__title{font-size:14px;font-weight:600;color:#e9f1ff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.cart-item__meta{font-size:11px;color:#8da2bb;display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;}
.cart-item__dot{color:#41516a;}
.cart-item__lock{display:inline-flex;align-items:center;gap:.3rem;padding:.18rem .5rem;border-radius:999px;border:1px solid rgba(98,126,170,.45);background:rgba(20,32,48,.7);color:#a9c1ff;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;}
.cart-item__lock::before{content:'\1f512';font-size:12px;}
.cart-item__controls{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;}
.cart-item__price{
  align-self:center;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:.2rem;
  text-align:right;
}
.cart-item__price-total{font-weight:600;color:#f2f6ff;font-size:13px;line-height:1.2;}
.cart-item__price-original{font-size:12px;color:#9aa9c6;text-decoration:line-through;}
.cart-item__discount-note{
  font-size:11px;
  color:#88d9a0;
  line-height:1.3;
  max-width:220px;
  white-space:normal;
}
.cart-qty{
  display:inline-flex;
  align-items:center;
  background:#131b28;
  border:1px solid rgba(66,92,134,.55);
  border-radius:999px;
  padding:.08rem;
  gap:.25rem;
}
.cart-qty__btn{
  background:transparent;
  border:none;
  color:var(--btn-text);
  width:24px;
  height:24px;
  border-radius:999px;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
.cart-qty__btn:hover{background:rgba(103,179,255,.15);}
.cart-qty__value{
  min-width:1.6em;
  text-align:center;
  font-weight:600;
  color:#e9f1ff;
  font-variant-numeric:tabular-nums;
}
.cart-rename{
  background:rgba(103,179,255,.12);
  border:1px solid rgba(103,179,255,.35);
  color:var(--btn-text);
  height:26px;
  padding:0 .6rem;
  border-radius:8px;
  font-size:12px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  white-space:nowrap;
}
.cart-rename:hover{background:rgba(103,179,255,.18);border-color:rgba(103,179,255,.55);}
.cart-rename[hidden]{display:none!important;}
.cart-remove{
  background:rgba(255,107,107,.12);
  border:1px solid rgba(255,107,107,.35);
  color:var(--danger);
  width:26px;
  height:26px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.cart-remove:hover{background:rgba(255,107,107,.18);border-color:rgba(255,107,107,.55);}
.cart-remove__icon{font-size:14px;}
.cart-remove--hidden{display:none!important;}

.cart-item--readonly .cart-qty__btn{opacity:.45;cursor:default;}
.cart-item--readonly .cart-item__price-total{color:#cbd6eb;}
.cart-item--readonly .cart-item__discount-note{color:#9aa9c6;}
.cart-panel[data-cart-readonly="true"] .cart-panel__sub::after{content:'Shared cart preview (read-only)';display:block;font-size:11px;color:#8fa2ba;margin-top:.2rem;}
.cart-panel[data-cart-readonly="true"] [data-cart-kind="custom_fee"] [data-cart-lock],
.cart-panel[data-cart-readonly="true"] [data-cart-kind="custom_fee"] [data-cart-qty-group]{display:none!important;}

.cart-panel__admin-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-bottom:.9rem;}
.cart-panel__admin-actions[hidden]{display:none!important;}
.cart-panel__admin-btn{font-size:13px;padding:.45rem .75rem;line-height:1.2;}

.cart-empty{
  margin:auto;
  text-align:center;
  padding:2rem 1rem 3rem;
  max-width:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.6rem;
  color:#92a6c1;
}
.cart-empty--hidden{display:none!important;}
.cart-empty__icon{font-size:32px;line-height:1;}
.cart-empty__title{margin:0;font-size:16px;font-weight:600;color:#dde8ff;}
.cart-empty__body{margin:0;font-size:13px;color:#8fa0b6;}

.cart-panel__footer{
  padding:.75rem 1.1rem 1.05rem;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:.6rem;
  background:rgba(9,13,20,.85);
}
.cart-panel__summary{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:.65rem;
  row-gap:.25rem;
  font-size:12px;
  color:#9dadc6;
  align-items:center;
}
.cart-panel__row{
  display:contents;
}
.cart-panel__row[hidden]{
  display:none !important;
}
.cart-panel__summary span,
.cart-panel__summary strong{
  line-height:1.3;
}
.cart-panel__summary span:first-child{color:inherit;opacity:.92;}
.cart-panel__summary span:last-child,
.cart-panel__summary strong{
  justify-self:end;
  text-align:right;
}
.cart-panel__summary [data-cart-item-count]{font-weight:600;color:#d6e4ff;}
.cart-panel__row--subtotal{color:#e5edff;font-size:13px;}
.cart-panel__row--subtotal strong{font-size:16px;}
.cart-panel__row--discount{font-size:12px;color:#88d9a0;}
.cart-panel__row--discount span:last-child{color:#7ec894;font-weight:600;}
.cart-panel__row--shipping{font-size:12px;color:#c8d9f2;}
.cart-panel__row--shipping span:last-child{font-weight:600;color:#e4efff;}
.cart-panel__row--total{font-size:14px;color:#f0f5ff;font-weight:600;}
.cart-panel__row--total strong{font-size:17px;}
.cart-panel__promo-badges{display:flex;flex-wrap:wrap;gap:.35rem;margin:.25rem 0 0;}
.cart-panel__promo-badges[hidden]{display:none!important;}
.cart-panel__promo-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.cart-panel__promo-badge--shipping{
  background:rgba(86,204,139,.14);
  border:1px solid rgba(86,204,139,.38);
  color:#98e2b1;
}
.cart-panel__free-note{margin:.2rem 0 0;font-size:11px;color:#8dd2a8;font-weight:600;line-height:1.35;}
.cart-panel__shipping{display:flex;flex-direction:column;gap:.5rem;padding:.8rem .85rem;border-radius:12px;border:1px solid rgba(135,178,255,.18);background:rgba(9,14,24,.55);}
.cart-panel__shipping[hidden]{display:none!important;}
.cart-panel__shipping--disabled .cart-panel__shipping-form{
  opacity:.58;
}
.cart-panel__shipping-head{display:flex;justify-content:space-between;gap:.5rem;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#a9bddb;}
.cart-panel__shipping-form{display:flex;gap:.5rem;align-items:center;}
.cart-panel__shipping-input{flex:1;padding:6px 10px;border-radius:6px;border:1px solid rgba(143,169,201,.35);background:#0f1724;color:#e9f1ff;font-size:12px;}
.cart-panel__shipping-input::placeholder{color:rgba(207,228,255,.45);}
.cart-panel__shipping-input:focus{outline:none;border-color:#87b2ff;box-shadow:0 0 0 2px rgba(135,178,255,.25);}
.cart-panel__shipping-estimate{padding:6px 12px;font-size:12px;}
.cart-panel__shipping-options{display:flex;flex-direction:column;gap:.35rem;}
.cart-panel__shipping-loading{display:flex;align-items:center;justify-content:center;min-height:30px;padding:.1rem 0;}
.cart-panel__shipping-spinner{width:18px;height:18px;border-radius:50%;border:2px solid rgba(160,198,255,.22);border-top-color:#88b5ff;animation:cart-shipping-spin .8s linear infinite;}
.cart-panel__shipping-option{display:flex;align-items:flex-start;gap:.55rem;font-size:12px;color:#deebff;cursor:pointer;}
.cart-panel__shipping-option input{margin-top:.15rem;}
.cart-panel__shipping-free{font-size:12px;color:#8dd2a8;font-weight:600;}
.cart-panel__shipping-message{font-size:11px;margin:0;color:#a9bddb;}
.cart-panel__shipping-message[data-error="true"]{color:#ffb7c1;}
.cart-panel__shipping-message[data-error="false"]{color:#8dd2a8;}
@keyframes cart-shipping-spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
.cart-panel__coupon{
  margin:4px 0;
  border:1px solid rgba(143,169,201,.18);
  border-radius:9px;
  padding:.55rem .7rem;
  background:rgba(12,19,32,.45);
  box-shadow:none;
  display:flex;
  flex-direction:column;
  gap:.55rem;
}
.cart-panel__coupon-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:none;color:var(--btn-text);font-weight:600;font-size:12px;padding:0;cursor:pointer;letter-spacing:.04em;text-transform:uppercase;gap:.4rem;}
.cart-panel__coupon-toggle:focus{outline:2px solid rgba(135,178,255,.45);outline-offset:3px;}
.cart-panel__coupon-icon{display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease;color:#8aa7cb;font-size:14px;}
.cart-panel__coupon-toggle[aria-expanded="true"] .cart-panel__coupon-icon{transform:rotate(90deg);}
.cart-panel__coupon-body{margin-top:0;display:flex;flex-direction:column;gap:.45rem;}
.cart-panel__coupon-body[hidden]{display:none!important;}
.cart-panel__coupon--expanded .cart-panel__coupon-body{display:flex;}
.cart-panel__coupon-form{display:flex;gap:.5rem;align-items:center;}
.cart-panel__coupon-input{flex:1;padding:6px 10px;border-radius:6px;border:1px solid rgba(143,169,201,.35);background:#0f1724;color:#e9f1ff;font-size:12px;}
.cart-panel__coupon-input::placeholder{color:rgba(207,228,255,.45);}
.cart-panel__coupon-input:focus{outline:none;border-color:#87b2ff;box-shadow:0 0 0 2px rgba(135,178,255,.25);}
.cart-panel__coupon-apply{padding:6px 12px;font-size:12px;}
.cart-panel__coupon-message{font-size:11px;margin:0;color:var(--btn-text);}
.cart-panel__coupon-message[data-success="true"]{color:#8dd2a8;}
.cart-panel__coupon-message[data-success="false"]{color:#ffb7c1;}
.cart-panel__coupon-chip{margin-top:0;display:flex;align-items:center;justify-content:space-between;gap:.6rem;}
.cart-panel__coupon-chip[hidden]{display:none!important;}
.cart-panel__coupon:not(.cart-panel__coupon--expanded) .cart-panel__coupon-chip{display:none;}
.cart-panel__coupon-pill{display:inline-flex;align-items:center;gap:6px;background:rgba(135,178,255,.16);border:1px solid rgba(135,178,255,.4);color:#e0ecff;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:600;}
.cart-panel__coupon-remove{font-size:11px;padding:6px 10px;}
.cart-panel__checkout-wrap{
  position:relative;
  align-self:center;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
}
.cart-panel__checkout-wrap:focus-visible{
  outline:2px solid rgba(135,178,255,.52);
  outline-offset:4px;
  border-radius:18px;
}
.cart-panel__checkout{
  align-self:center;
  font-size:13px;
  letter-spacing:.26px;
  padding:.55rem 1.6rem;
  width:auto;
  max-width:100%;
  justify-content:center;
  transition:opacity .2s ease,color .2s ease;
}
.cart-panel__checkout--stripe{
  background:linear-gradient(135deg,#635bff,#5146ff);
  border-color:#7268ff;
  color:#fff;
  font-weight:600;
  box-shadow:0 12px 24px rgba(70,59,200,.28);
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.6rem 1.75rem;
  letter-spacing:.32px;
}
.cart-panel__checkout-logo{
  width:22px;
  height:22px;
  border-radius:6px;
  display:block;
  box-shadow:0 4px 12px rgba(12,9,50,.26);
  flex-shrink:0;
}
.cart-panel__checkout-label{display:inline-flex;align-items:center;}
.cart-panel__checkout--stripe:hover{
  border-color:#8077ff;
  box-shadow:0 18px 38px rgba(70,59,200,.42);
}
.cart-panel__checkout--stripe[disabled]{
  background:linear-gradient(135deg,#5146ff,#453ac8);
  border-color:#5b52e5;
  box-shadow:none;
  color:rgba(255,255,255,.78);
}
.cart-panel__checkout--stripe[data-loading]{
  box-shadow:none;
}
.cart-panel__checkout[disabled]{opacity:.75;cursor:not-allowed;}
.cart-panel__checkout:not([disabled]){opacity:1;cursor:pointer;}
.cart-panel__checkout-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translate(-50%, 6px);
  min-width:220px;
  max-width:min(280px, calc(100vw - 48px));
  padding:.55rem .7rem;
  border-radius:12px;
  border:1px solid rgba(255,138,160,.38);
  background:rgba(26,12,18,.96);
  box-shadow:0 18px 34px rgba(0,0,0,.3);
  color:#ffe5eb;
  font-size:12px;
  line-height:1.35;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  z-index:4;
}
.cart-panel__checkout-tooltip::after{
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  width:12px;
  height:12px;
  transform:translateX(-50%) rotate(45deg);
  background:rgba(26,12,18,.96);
  border-right:1px solid rgba(255,138,160,.38);
  border-bottom:1px solid rgba(255,138,160,.38);
}
.cart-panel__checkout-wrap[data-tooltip-active="true"] .cart-panel__checkout[disabled]{
  pointer-events:none;
}
.cart-panel__checkout-wrap[data-tooltip-active="true"]:hover .cart-panel__checkout-tooltip,
.cart-panel__checkout-wrap[data-tooltip-active="true"]:focus-visible .cart-panel__checkout-tooltip,
.cart-panel__checkout-wrap[data-tooltip-active="true"]:focus-within .cart-panel__checkout-tooltip{
  opacity:1;
  transform:translate(-50%, 0);
}

/* ===== Feedback prompt ===== */
.feedback-pill{
  position:fixed;
  right:1.6rem;
  bottom:5.25rem;
  z-index:115;
  pointer-events:auto;
}
@media (max-width:640px){
  .feedback-pill{
    right:1rem;
    bottom:4.75rem;
  }
}
.feedback-pill[hidden]{display:none!important;}
.feedback-pill__btn{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  max-width:min(84vw, 340px);
  text-align:left;
  background:linear-gradient(135deg, rgba(104,193,255,0.20), rgba(80,227,164,0.18));
  border:1px solid rgba(135,178,255,.45);
  color:#eaf3ff;
  padding:.55rem .8rem;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  box-shadow:0 18px 44px rgba(5,10,18,.52);
  cursor:pointer;
  transition:transform .18s ease, filter .18s ease, border-color .18s ease;
}
.feedback-pill__btn:hover{filter:brightness(1.06);transform:translateY(-1px);border-color:rgba(135,178,255,.65);}
.feedback-pill.is-attention .feedback-pill__btn{
  animation:feedback-pill-pulse 2.2s ease-in-out 3;
}

@keyframes feedback-pill-pulse{
  0%,100%{transform:translateY(0);box-shadow:0 18px 44px rgba(5,10,18,.52);}
  35%{transform:translateY(-2px) scale(1.01);box-shadow:0 0 0 0 rgba(80,227,164,.26),0 22px 54px rgba(5,10,18,.58);}
  70%{transform:translateY(0);box-shadow:0 0 0 10px rgba(80,227,164,0),0 18px 44px rgba(5,10,18,.52);}
}

.feedback-panel{
  position:fixed;
  inset:0;
  z-index:125;
  display:flex;
  justify-content:flex-end;
  pointer-events:none;
  overflow:hidden;
}
.feedback-panel__scrim{
  flex:1;
  background:rgba(6,9,15,.65);
  opacity:0;
  transition:opacity .24s ease;
}
.feedback-panel__drawer{
  width:min(420px,100%);
  max-width:100%;
  background:linear-gradient(180deg,var(--surface-1),#0b1119);
  border-left:1px solid var(--line);
  transform:translateX(100%);
  transition:transform .28s ease, box-shadow .28s ease;
  display:flex;
  flex-direction:column;
  gap:0;
  pointer-events:auto;
}
.feedback-panel.is-open{pointer-events:auto;}
.feedback-panel.is-open .feedback-panel__scrim{opacity:1;}
.feedback-panel.is-open .feedback-panel__drawer{transform:translateX(0);box-shadow:-24px 0 48px rgba(2,6,14,.65);}
.feedback-panel__header{
  display:flex;
  justify-content:space-between;
  gap:.9rem;
  padding:.85rem 1.1rem .75rem;
  border-bottom:1px solid var(--line);
}
.feedback-panel__header h2{
  margin:.1rem 0 0;
  font-size:1.25rem;
  line-height:1.2;
}
.feedback-panel__eyebrow{
  margin:0;
  font-size:11px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:#7d8a9b;
}
.feedback-panel__sub{
  margin:.25rem 0 0;
  font-size:11px;
  color:#8093ad;
  max-width:32ch;
  line-height:1.35;
}
.feedback-panel__close{
  background:#151d2b;
  border:1px solid #273142;
  color:#9fb2c9;
  width:32px;
  height:32px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  cursor:pointer;
}
.feedback-panel__close:hover{border-color:#3a4f6a;color:var(--btn-text);}
.feedback-panel__content{
  padding:.75rem 1.1rem;
  overflow-y:auto;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.feedback-panel__footer{
  padding:.75rem 1.1rem 1rem;
  border-top:1px solid var(--line);
}

.feedback-stack{display:flex;flex-direction:column;gap:.75rem;}
.feedback-muted{margin:0;color:#cfd8e3;font-size:13px;line-height:1.45;}
.feedback-actions{display:flex;flex-wrap:wrap;gap:.55rem;justify-content:flex-end;}
.feedback-btn{font-size:13px;padding:.55rem .9rem;border-radius:.65rem;}
.feedback-btn--primary{background:linear-gradient(180deg,#3ba980,#2c7d93);border:1px solid rgba(80,227,164,0.7);color:#041116;font-weight:700;}

.feedback-offer-card{border:1px solid rgba(55,69,96,.35);border-radius:14px;overflow:hidden;background:rgba(14,20,31,.55);box-shadow:0 18px 40px rgba(0,0,0,.35);}
.feedback-offer-hero{position:relative;border-bottom:1px solid rgba(55,69,96,.35);background:#0f1724;}
.feedback-offer-hero__img{width:100%;height:170px;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.05);}
.feedback-offer-hero__scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 0%,rgba(0,0,0,.45) 60%,rgba(0,0,0,.72) 100%);}
.feedback-offer-hero__copy{position:absolute;left:14px;right:14px;bottom:12px;display:flex;flex-direction:column;gap:4px;}
.feedback-offer-hero__kicker{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(210,226,255,.85);}
.feedback-offer-hero__title{font-size:17px;font-weight:800;color:#f2f7ff;}
.feedback-offer-content{padding:.85rem .9rem;display:flex;flex-direction:column;gap:.7rem;}
.feedback-offer-points{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.45rem;color:#cfd8e3;font-size:13px;line-height:1.35;}
.feedback-offer-points li{display:flex;gap:.55rem;align-items:flex-start;}
.feedback-offer-points li::before{content:'';width:7px;height:7px;border-radius:50%;margin-top:.42rem;background:rgba(80,227,164,.65);box-shadow:0 0 0 2px rgba(80,227,164,.12);}

.feedback-loading{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;padding:1.1rem .6rem;}
.feedback-loading__label{color:var(--sub);font-size:13px;line-height:1.4;text-align:center;}
.feedback-loading .ai-picker__spinner{width:44px;height:44px;border-width:3px;}

.feedback-q{display:flex;flex-direction:column;gap:.45rem;padding:.65rem;border:1px solid rgba(55,69,96,.35);border-radius:12px;background:rgba(14,20,31,.55);}
.feedback-q__text{font-size:13px;font-weight:700;color:#e9f1ff;}
.feedback-rating{display:flex;gap:.45rem;flex-wrap:wrap;}
.feedback-rating__btn{
  width:2.2rem;
  height:2.2rem;
  border-radius:10px;
  border:1px solid rgba(135,178,255,.25);
  background:rgba(18,27,44,0.75);
  color:#d7e7ff;
  font-weight:700;
  cursor:pointer;
}
.feedback-rating__btn.is-on{background:rgba(80,227,164,.22);border-color:rgba(80,227,164,.55);color:#eafff5;}
.feedback-mcq{display:flex;flex-direction:column;gap:.4rem;}
.feedback-mcq__row{display:flex;gap:.55rem;align-items:flex-start;font-size:13px;color:#cfd8e3;}
.feedback-text{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  display:block;
  padding:.6rem .7rem;
  border-radius:10px;
  border:1px solid rgba(143,169,201,.35);
  background:#0f1724;
  color:#e9f1ff;
  font-size:13px;
  resize:vertical;
}
.feedback-text:focus{outline:none;border-color:#87b2ff;box-shadow:0 0 0 2px rgba(135,178,255,.25);}
.cart-panel__checkout[data-loading]{cursor:progress;}
.cart-panel__note{margin:0;font-size:10.5px;color:#6f809a;line-height:1.3;text-align:center;}

.admin-free{border:1px solid rgba(120,145,175,.28);border-radius:.85rem;background:rgba(10,16,26,.4);padding:.85rem;display:flex;flex-direction:column;gap:.65rem;}
.admin-free__head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;}
.admin-free__title{margin:0;font-size:15px;color:#e5efff;}
.admin-free__status{font-size:12px;color:#9fb2cd;background:rgba(15,22,34,.65);border:1px dashed rgba(120,145,175,.35);padding:.6rem .75rem;border-radius:.65rem;}
.admin-free__status[data-kind="error"]{color:#ffb3b3;border-color:rgba(255,99,99,.35);background:rgba(40,12,16,.6);}
.admin-free__current{font-size:12px;color:#dce9ff;background:rgba(12,20,30,.75);border:1px solid rgba(120,145,175,.2);border-radius:.65rem;padding:.55rem .65rem;display:flex;gap:.6rem;align-items:center;min-height:48px;}
.admin-free__current img{max-width:64px;max-height:64px;width:auto;height:auto;display:block;border-radius:.45rem;border:1px solid rgba(120,145,175,.25);}
.admin-free__actions{display:flex;gap:.5rem;flex-wrap:wrap;}
.admin-free__list{display:flex;flex-direction:column;gap:.4rem;}
.admin-free__item{display:flex;gap:.5rem;align-items:center;padding:.45rem .5rem;border:1px solid rgba(120,145,175,.28);border-radius:.6rem;background:rgba(8,12,18,.6);}
.admin-free__item img{width:44px;height:44px;object-fit:cover;border-radius:.4rem;border:1px solid rgba(120,145,175,.28);}
.admin-free__item-title{font-size:13px;color:#e5efff;margin:0;}
.admin-free__id{font-size:11px;color:#8fa6c0;}
.admin-free__empty{font-size:12px;color:#8fa6c0;}
.admin-free-wrapper{display:flex;flex-direction:column;gap:0;border:1px solid rgba(120,145,175,.28);border-radius:.85rem;background:rgba(10,16,26,.4);overflow:hidden;max-height:none;}
.admin-free-wrapper .admin-panel__tool{border:none;border-radius:0;border-bottom:1px solid rgba(120,145,175,.2);background:transparent;flex-shrink:0;}
.admin-free-wrapper .admin-panel__tool:hover{background:rgba(20,30,45,.5);}
.admin-free-wrapper .admin-panel__tool[aria-expanded="true"]{background:rgba(15,25,40,.6);}
.admin-free-wrapper .admin-free{border:none;border-radius:0;background:transparent;overflow-y:auto;overflow-x:hidden;max-height:400px;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;}
.admin-free-wrapper .admin-free::-webkit-scrollbar{display:none;}
.admin-free-wrapper .admin-free[hidden]{display:none;}

.admin-panel{
  position:fixed;
  inset:0;
  z-index:110;
  display:flex;
  justify-content:flex-end;
  pointer-events:none;
  overflow:hidden;
}
.admin-panel__scrim{
  flex:1;
  background:rgba(6,9,15,.5);
  opacity:0;
  transition:opacity .24s ease;
}
.admin-panel__drawer{
  width:min(320px,100%);
  max-width:100%;
  background:linear-gradient(180deg,#101723,#0c131d);
  border-left:1px solid var(--line);
  transform:translateX(100%);
  transition:transform .24s ease, box-shadow .24s ease;
  display:flex;
  flex-direction:column;
  gap:0;
  pointer-events:auto;
}
.admin-panel.is-open{pointer-events:auto;}
.admin-panel.is-open .admin-panel__scrim{opacity:1;}
.admin-panel.is-open .admin-panel__drawer{transform:translateX(0);box-shadow:-20px 0 40px rgba(3,8,18,.55);}
.admin-panel__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 1.25rem;
  border-bottom:1px solid var(--line);
}
.admin-panel__titles{display:flex;flex-direction:column;gap:.35rem;}
.admin-panel__eyebrow{
  margin:0;
  font-size:11px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:#7d8a9b;
}
.admin-panel__header h2{
  margin:0;
  font-size:18px;
  color:#e5efff;
}
.admin-panel__close{
  background:#151d2b;
  border:1px solid #273142;
  color:#9fb2c9;
  width:30px;
  height:30px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  cursor:pointer;
}
.admin-panel__close:hover{border-color:#3a4f6a;color:var(--btn-text);}
.admin-panel__content{
  padding:1rem 1.25rem 1.4rem;
  display:flex;
  flex-direction:column;
  gap:.75rem;
  overflow-y:auto;
  overflow-x:hidden;
  flex:1;
  touch-action:pan-y;
  -webkit-overflow-scrolling:touch;
}
.admin-panel__tool{
  display:flex;
  align-items:center;
  gap:.75rem;
  justify-content:flex-start;
  width:100%;
  text-align:left;
}
.admin-panel__tool-icon{
  font-size:20px;
  line-height:1;
}
.admin-panel__tool-text{
  flex:1;
  font-size:14px;
}
.admin-panel__tool.btn{padding:.55rem .8rem;}
.admin-panel__tool.btn.ghost{border:1px solid rgba(120,145,175,.32);background:rgba(15,23,35,.55);}
.admin-panel__tool.btn.ghost:hover{border-color:rgba(150,180,215,.6);color:#e2edff;}
.admin-panel__tool.is-active{border-color:rgba(150,180,215,.75);background:rgba(58,108,228,.22);color:#e8f0ff;}
.admin-panel__preset-wrapper{
  display:flex;
  flex-direction:column;
  gap:0;
  border:1px solid rgba(120,145,175,.28);
  border-radius:.85rem;
  background:rgba(10,16,26,.4);
  overflow:hidden;
  max-height:none;
}
.admin-panel__preset-wrapper .admin-panel__tool{
  border:none;
  border-radius:0;
  border-bottom:1px solid rgba(120,145,175,.2);
  background:transparent;
  flex-shrink:0;
}
.admin-panel__preset-wrapper .admin-panel__tool:hover{
  background:rgba(20,30,45,.5);
}
.admin-panel__preset-wrapper .admin-panel__tool[aria-expanded="true"]{
  background:rgba(15,25,40,.6);
}
.admin-panel__preset{
  border:none;
  border-radius:0;
  background:transparent;
  padding:.85rem;
  display:flex;
  flex-direction:column;
  gap:.65rem;
  overflow-y:auto;
  overflow-x:hidden;
  max-height:400px;
  overscroll-behavior:contain;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.admin-panel__preset::-webkit-scrollbar{
  display:none;
}
.admin-panel__preset[hidden]{
  display:none;
}
.admin-panel__preset-fields{
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.admin-panel__preset .admin-field span{
  font-size:12px;
  color:#9fb2cd;
}
.admin-panel__preset .admin-field input{
  width:100%;
}
.admin-panel__preset-status{
  font-size:12px;
  color:#9fb2cd;
}
.admin-panel__preset textarea{
  min-height:160px;
  border:1px solid rgba(120,145,175,.4);
  border-radius:.6rem;
  background:#050a12;
  color:#e9f2ff;
  padding:.65rem;
  font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Monaco,'Roboto Mono','Source Code Pro',monospace;
  resize:vertical;
}
.admin-panel__preset-actions{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}
.admin-panel__preset-actions .btn{
  flex:0 0 auto;
}

.admin-export-wrapper{
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
  gap:0;
  border:1px solid rgba(120,145,175,.28);
  border-radius:.85rem;
  background:rgba(10,16,26,.4);
  overflow:hidden;
}
.admin-export-wrapper .admin-panel__tool{
  border:none;
  border-radius:0;
  border-bottom:1px solid rgba(120,145,175,.2);
  background:transparent;
  flex-shrink:0;
}
.admin-export-wrapper .admin-panel__tool:hover{
  background:rgba(20,30,45,.5);
}
.admin-export-wrapper .admin-panel__tool[aria-expanded="true"]{
  background:rgba(15,25,40,.6);
}
.admin-export{
  border:none;
  border-radius:0;
  background:transparent;
  padding:.85rem;
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.admin-export[hidden]{
  display:none;
}
.admin-export__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
  flex-wrap:wrap;
}
.admin-export__title{
  margin:0;
  font-size:15px;
  color:#e5efff;
}
.admin-export__sub{
  margin:.25rem 0 0;
  font-size:12px;
  color:#8fa6c0;
  max-width:32ch;
}
.admin-export__actions{
  display:flex;
  gap:.5rem;
  align-items:center;
  flex-wrap:wrap;
}
.admin-export__row{
  display:flex;
  gap:.65rem;
  align-items:flex-start;
}
.admin-export__label{
  min-width:72px;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#9fb2cd;
  padding-top:.35rem;
}
.admin-export__chips{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}
.admin-export__chip{
  padding:.45rem .7rem;
  font-size:13px;
}
.admin-export__chip.is-active,
.admin-export__chip[aria-pressed="true"]{
  border-color:rgba(150,180,215,.75);
  background:rgba(58,108,228,.18);
  color:#e8f0ff;
}
.admin-export__options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.45rem;
  border-top:1px solid rgba(120,145,175,.2);
  padding-top:.6rem;
}
.admin-export__toggle{
  display:flex;
  align-items:center;
  gap:.5rem;
  min-width:0;
  width:100%;
  min-height:31px;
  font-size:12.5px;
  line-height:1.2;
  color:var(--toggle-label);
  background-color:var(--toggle-bg);
  border:1px solid var(--toggle-border);
  border-radius:.6rem;
  padding:.35rem .5rem;
  cursor:pointer;
  transition:border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.admin-export__toggle:hover{
  border-color:var(--toggle-hover-border);
  background-color:var(--toggle-hover-bg);
}
.admin-export__toggle:has(input:checked){
  border-color:var(--toggle-active-border);
  background-color:var(--toggle-active-bg);
  box-shadow:var(--toggle-active-shadow);
}
.admin-export__toggle input{
  flex:0 0 auto;
  position:relative;
  width:32px;
  height:18px;
  margin:0;
  appearance:none;
  border:0;
  border-radius:999px;
  background:var(--toggle-track-bg);
  box-shadow:inset 0 0 0 1px var(--toggle-track-ring);
  cursor:pointer;
  transition:background .2s ease, box-shadow .2s ease;
}
.admin-export__toggle input::before{
  content:"";
  position:absolute;
  inset:2px auto 2px 2px;
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--toggle-thumb);
  transform:translateX(0);
  transition:transform .2s ease, background .2s ease;
}
.admin-export__toggle input:checked{
  background:var(--toggle-active-track-bg);
  box-shadow:inset 0 0 0 1px var(--toggle-active-track-ring);
}
.admin-export__toggle input:checked::before{
  transform:translateX(14px);
  background:var(--toggle-active-thumb);
}
.admin-export__toggle input:focus-visible{
  outline:2px solid #6489ff;
  outline-offset:2px;
}
.admin-export__toggle span{
  flex:1;
  min-width:0;
  text-align:left;
  overflow-wrap:normal;
}

.admin-free{
  border:1px solid rgba(120,145,175,.28);
  border-radius:.85rem;
  background:rgba(10,16,26,.4);
  padding:.85rem;
  display:flex;
  flex-direction:column;
  gap:.65rem;
}
.admin-free__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
}
.admin-free__title{
  margin:0;
  font-size:15px;
  color:#e5efff;
}
.admin-free__controls{
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.admin-free__field select{
  width:100%;
}
.admin-free__actions{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}
.admin-free__status{
  font-size:12px;
  color:#9fb2cd;
  background:rgba(15,22,34,.65);
  border:1px dashed rgba(120,145,175,.35);
  padding:.6rem .75rem;
  border-radius:.65rem;
}
.admin-free__status[data-kind="error"]{
  color:#ffb3b3;
  border-color:rgba(255,99,99,.35);
  background:rgba(40,12,16,.6);
}
.admin-free__list{
  display:flex;
  flex-direction:column;
  gap:.4rem;
}
.admin-free__item{
  display:flex;
  gap:.5rem;
  align-items:center;
  padding:.45rem .5rem;
  border:1px solid rgba(120,145,175,.28);
  border-radius:.6rem;
  background:rgba(8,12,18,.6);
}
.admin-free__item img{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:.4rem;
  border:1px solid rgba(120,145,175,.28);
}
.admin-free__item-title{font-size:13px;color:#e5efff;margin:0;}
.admin-free__id{font-size:11px;color:#8fa6c0;}
.admin-free__empty{font-size:12px;color:#8fa6c0;}

.admin-orbit-overlay{
  position:absolute;
  top:1.2rem;
  right:1.2rem;
  width:min(320px,calc(100% - 2.4rem));
  padding:1rem 1.1rem 1.1rem;
  border-radius:.9rem;
  background:linear-gradient(180deg,rgba(19,27,38,.95),rgba(11,17,27,.92));
  border:1px solid var(--line);
  box-shadow:0 22px 46px rgba(6,12,24,.55);
  display:flex;
  flex-direction:column;
  gap:.85rem;
  color:var(--text);
  z-index:90;
  pointer-events:none;
  opacity:0;
  transform:translateY(-12px);
  transition:opacity .22s ease,transform .22s ease;
}
.admin-orbit-overlay.is-open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.admin-orbit-overlay[hidden]{display:none;}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .admin-orbit-overlay{
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    background:linear-gradient(180deg,rgba(17,24,35,.82),rgba(11,17,27,.78));
  }
}
.admin-orbit-overlay__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.admin-orbit-overlay__titles{display:flex;flex-direction:column;gap:.2rem;}
.admin-orbit-overlay__eyebrow{
  margin:0;
  font-size:10.5px;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:rgba(155,178,208,.75);
}
.admin-orbit-overlay__title{
  margin:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:.4px;
  color:#f3f6ff;
}
.admin-orbit-overlay__close{
  background:rgba(20,28,40,.65);
  border:1px solid rgba(120,145,175,.32);
  color:#d9e6ff;
  width:32px;
  height:32px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,color .2s ease,transform .2s ease;
}
.admin-orbit-overlay__close:hover{
  border-color:rgba(150,185,230,.6);
  background:rgba(32,44,64,.8);
  color:#fff;
  transform:translateY(-1px);
}
.admin-orbit-overlay__close:focus-visible{
  outline:2px solid var(--accent2);
  outline-offset:2px;
}
.admin-orbit-overlay__body{
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.admin-orbit-overlay__hint{
  margin:0;
  font-size:12.5px;
  color:rgba(171,189,211,.8);
  line-height:1.5;
}
.admin-orbit-overlay__axis{
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.admin-orbit-overlay__axis-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  font-weight:600;
  color:#f0f6ff;
}
.admin-orbit-overlay__axis-name{
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(158,179,204,.85);
}
.admin-orbit-overlay__value{
  font-size:13px;
  color:var(--accent2);
  min-width:3.5ch;
  text-align:right;
}
.admin-orbit-overlay__slider{
  position:relative;
  display:flex;
  align-items:center;
  padding:.35rem .5rem;
  border-radius:999px;
  border:1px solid rgba(120,145,175,.3);
  background:rgba(12,18,30,.65);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.admin-orbit-overlay__slider:focus-within{
  border-color:rgba(118,170,255,.75);
  box-shadow:0 0 0 3px rgba(103,179,255,.2);
}
.admin-orbit-overlay__slider input[type=range]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  background:transparent;
  height:20px;
  cursor:pointer;
}
.admin-orbit-overlay__slider input[type=range]:focus{outline:none;}
.admin-orbit-overlay__slider input[type=range]::-webkit-slider-runnable-track{
  height:6px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(80,227,164,.6),rgba(103,179,255,.85));
}
.admin-orbit-overlay__slider input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  border:3px solid rgba(103,179,255,.9);
  box-shadow:0 8px 18px rgba(103,179,255,.35);
  margin-top:-6px;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.admin-orbit-overlay__slider input[type=range]::-webkit-slider-thumb:hover{
  transform:scale(1.05);
}
.admin-orbit-overlay__slider input[type=range]::-moz-range-track{
  height:6px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(80,227,164,.6),rgba(103,179,255,.85));
}
.admin-orbit-overlay__slider input[type=range]::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  border:3px solid rgba(103,179,255,.9);
  box-shadow:0 8px 18px rgba(103,179,255,.35);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.admin-orbit-overlay__slider input[type=range]::-moz-range-thumb:hover{
  transform:scale(1.05);
}
.admin-orbit-overlay__footer{
  display:flex;
  justify-content:flex-end;
}
.admin-orbit-overlay__reset.btn{
  font-size:12.5px;
  padding:.45rem .9rem;
  border-radius:.6rem;
  border-color:rgba(120,145,175,.35);
  background:rgba(14,21,32,.55);
}
.admin-orbit-overlay__reset.btn:hover{
  border-color:rgba(150,185,230,.55);
}
@media (max-width:720px){
  .admin-orbit-overlay{
    top:auto;
    bottom:1.2rem;
    right:1.2rem;
    left:1.2rem;
    width:auto;
  }
}

@media (max-width:720px){
  .cart-item{
    grid-template-columns:100px 1fr;
    grid-template-rows:auto auto;
  }
  .cart-item__price{grid-column:2/3;justify-self:flex-end;}
}
#designSaveButton:hover:not(:disabled){
  background:rgba(26,38,62,.95);
  border-color:rgba(118,170,255,.7);
  box-shadow:0 8px 20px rgba(4,12,26,.4);
}
#designSaveButton:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}
#designSaveButton[data-state="dirty"],
#designSaveButton[data-state="saving"]{
  border-color:rgba(248,196,90,.8);
  color:#ffd97a;
}
#designSaveButton[data-state="saving"] .design-save-button-icon{animation:design-save-spin 1.2s linear infinite;}
#designSaveButton[data-state="saved"]{
  background:linear-gradient(180deg,#3ba980,#2c7d93);
  border-color:#45cba0;
  color:#041116;
  box-shadow:0 10px 24px rgba(27,202,150,.22);
}
#designSaveButton[data-state="error"],
#designSaveButton[data-state="offline"]{
  border-color:rgba(255,119,119,.75);
  color:#ff9b9b;
}
#designSaveButton[data-state="requires-auth"]{
  border-color:rgba(122,158,255,.78);
  color:#bfd3ff;
}

@keyframes design-save-spin{to{transform:rotate(360deg);}}

/* Drag target & placeholder text */
#droptarget{position:absolute;inset:.6rem;border:1px dashed #334058;border-radius:.75rem;display:none;place-content:center;color:var(--sub);background:rgba(22,28,40,.35);z-index:32}
#droptarget.show{display:grid}
#placeholder{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:clamp(20px,4vw,40px);
  color:var(--sub);
  text-align:center;
  pointer-events:none;
  z-index:18;
}
#placeholder[data-placeholder-state="hidden"]{display:none !important;}
:root[data-ccc-initial-restore="1"] #placeholder{display:none !important;}
.viewport-empty__shell,
.viewport-empty__status{
  width:100%;
  display:grid;
  place-items:center;
}
.viewport-empty__shell{pointer-events:none;}
.viewport-empty__panel,
.viewport-empty__status-card{
  pointer-events:auto;
}
#placeholder[data-placeholder-state="status"] .viewport-empty__shell,
#placeholder[data-placeholder-state="error"] .viewport-empty__shell,
#placeholder[data-placeholder-state="hidden"] .viewport-empty__shell{
  display:none;
}
#placeholder[data-placeholder-state="empty"] .viewport-empty__status,
#placeholder[data-placeholder-state="hidden"] .viewport-empty__status{
  display:none;
}
.viewport-empty__panel{
  position:relative;
  width:min(100%, 720px);
  max-height:calc(100% - 8px);
  padding:clamp(22px,3vw,30px);
  border-radius:28px;
  border:1px solid rgba(90,118,166,.34);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(103,179,255,.12) 0%, rgba(103,179,255,0) 48%),
    radial-gradient(100% 110% at 100% 100%, rgba(80,227,164,.08) 0%, rgba(80,227,164,0) 52%),
    linear-gradient(180deg, rgba(12,18,29,.94) 0%, rgba(10,15,24,.9) 100%);
  box-shadow:
    0 28px 90px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(18px) saturate(1.08);
  overflow:hidden;
}
.viewport-empty__panel::-webkit-scrollbar{width:10px}
.viewport-empty__panel::-webkit-scrollbar-thumb{
  background:rgba(103,179,255,.18);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
.viewport-empty__panel{
  scrollbar-width:thin;
  scrollbar-color:rgba(103,179,255,.24) transparent;
}
.viewport-empty__panel::before{
  content:'';
  position:absolute;
  inset:18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.03);
  pointer-events:none;
}
.viewport-empty__badge{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  margin-bottom:1.15rem;
  padding:.38rem .8rem;
  border-radius:999px;
  border:1px solid rgba(103,179,255,.26);
  background:rgba(14,24,40,.72);
  color:#b8cae4;
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.viewport-empty__hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.7rem;
  margin-bottom:1.2rem;
}
.viewport-empty__title{
  margin:0;
  color:var(--headline);
  font-size:clamp(24px,3.4vw,38px);
  line-height:1.02;
  letter-spacing:-.04em;
}
.viewport-empty__copy{
  margin:0;
  max-width:560px;
  color:#a8b8cc;
  font-size:14px;
  line-height:1.55;
}
.viewport-empty__actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin:0 0 1.3rem;
}
.viewport-empty__action{
  display:flex;
  align-items:flex-start;
  gap:14px;
  width:100%;
  min-height:102px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(74,99,138,.4);
  background:linear-gradient(180deg, rgba(22,31,47,.9), rgba(15,22,34,.92));
  color:var(--text);
  text-align:left;
  box-shadow:0 16px 36px rgba(4,8,16,.28);
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.viewport-empty__action:hover{
  transform:translateY(-2px);
  border-color:rgba(103,179,255,.52);
  background:linear-gradient(180deg, rgba(26,38,58,.96), rgba(17,25,38,.95));
  box-shadow:0 20px 42px rgba(4,8,16,.34);
}
.viewport-empty__action--primary{
  border-color:rgba(80,227,164,.42);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(80,227,164,.18) 0%, rgba(80,227,164,0) 44%),
    linear-gradient(180deg, rgba(26,57,71,.96), rgba(17,35,48,.96));
}
.viewport-empty__action--primary:hover{
  border-color:rgba(80,227,164,.64);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(80,227,164,.24) 0%, rgba(80,227,164,0) 44%),
    linear-gradient(180deg, rgba(30,67,82,.98), rgba(20,41,56,.98));
}
.viewport-empty__action-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.05);
  font-size:20px;
  line-height:1;
  flex:0 0 44px;
}
.viewport-empty__action-body{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.viewport-empty__action-title{
  color:var(--headline);
  font-size:16px;
  font-weight:700;
  line-height:1.2;
}
.viewport-empty__action-copy{
  color:#8fa0b6;
  font-size:12.5px;
  line-height:1.45;
}
.viewport-empty__ai{
  margin-top:.2rem;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(79,100,138,.36);
  background:rgba(10,16,26,.62);
  text-align:left;
}
.viewport-empty__ai-label{
  margin:0 0 10px;
  color:#9cb0cb;
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.viewport-empty__ai-controls{
  display:flex;
  gap:10px;
  align-items:center;
}
.viewport-empty__ai-input{
  flex:1 1 auto;
  min-width:0;
  border-radius:14px;
  background:rgba(15,23,36,.92);
  border:1px solid rgba(70,96,140,.46);
  color:#e6edf3;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.viewport-empty__ai-input:focus{
  border-color:rgba(103,179,255,.72);
  box-shadow:0 0 0 1px rgba(103,179,255,.28);
}
.viewport-empty__ai-submit{
  min-width:132px;
  justify-content:center;
}
.viewport-empty__ai-hint{
  margin:10px 0 0;
  color:#8395ac;
  font-size:12px;
  line-height:1.5;
}
.viewport-empty__footer{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:.85rem;
}
.viewport-empty__footer-chip{
  display:inline-flex;
  align-items:center;
  padding:.46rem .8rem;
  border-radius:999px;
  border:1px solid rgba(82,110,156,.28);
  background:rgba(14,21,33,.66);
  color:#94a8c4;
  font-size:11.5px;
}
.viewport-empty__status-card{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:min(100%, 320px);
  max-width:440px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(83,111,156,.38);
  background:rgba(12,18,28,.9);
  color:var(--headline);
  box-shadow:0 18px 48px rgba(0,0,0,.32);
  backdrop-filter:blur(14px);
}
.viewport-empty__status-icon{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.05);
  color:#a8c8ff;
  font-size:24px;
  line-height:1;
}
.viewport-empty__status-message{
  margin:0;
  color:#d9e5f6;
  font-size:14px;
  line-height:1.45;
  text-align:left;
}
#placeholder[data-placeholder-state="error"] .viewport-empty__status-card{
  border-color:rgba(255,125,125,.34);
  background:rgba(29,16,20,.92);
}
#placeholder[data-placeholder-state="error"] .viewport-empty__status-icon{
  color:#ffb1b1;
}
@media (max-width:900px){
  .viewport-empty__panel{
    width:min(100%, 640px);
    border-radius:24px;
  }
  .viewport-empty__actions{
    grid-template-columns:1fr;
  }
}
@media (max-width:640px){
  #placeholder{
    align-items:center;
    padding:64px 10px 76px;
  }
  .viewport-empty__panel{
    width:min(100%, 360px);
    max-height:100%;
    padding:14px 12px;
    border-radius:20px;
  }
  .viewport-empty__panel::before{
    inset:12px;
    border-radius:14px;
  }
  .viewport-empty__hero{
    gap:.45rem;
    margin-bottom:.8rem;
  }
  .viewport-empty__badge{
    margin-bottom:.65rem;
    padding:.3rem .65rem;
    font-size:10px;
    letter-spacing:.16em;
  }
  .viewport-empty__title{
    font-size:clamp(17px, 6vw, 24px);
  }
  .viewport-empty__copy{
    max-width:300px;
    font-size:12.25px;
    line-height:1.4;
  }
  .viewport-empty__actions{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    margin-bottom:.85rem;
  }
  .viewport-empty__action{
    min-height:76px;
    padding:12px 10px;
    gap:10px;
    border-radius:14px;
    align-items:center;
  }
  .viewport-empty__action-icon{
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:17px;
    flex-basis:34px;
  }
  .viewport-empty__action-body{
    gap:2px;
  }
  .viewport-empty__action-title{
    font-size:13.5px;
    line-height:1.15;
  }
  .viewport-empty__action-copy{
    display:none;
  }
  .viewport-empty__ai{
    margin-top:0;
    padding:12px 10px 10px;
    border-radius:14px;
  }
  .viewport-empty__ai-label{
    margin-bottom:8px;
    font-size:10px;
    letter-spacing:.15em;
  }
  .viewport-empty__ai-controls{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .viewport-empty__ai-input{
    border-radius:12px;
    padding:.58rem .72rem;
    font-size:13px;
  }
  .viewport-empty__ai-submit{
    width:100%;
    min-width:0;
    padding:.62rem .85rem;
    font-size:13px;
  }
  .viewport-empty__ai-hint{
    display:none;
  }
  .viewport-empty__footer{
    display:none;
  }
}
@media (max-width:520px){
  #placeholder{
    padding:58px 10px 72px;
  }
  .viewport-empty__panel{
    width:min(100%, 352px);
    border-radius:18px;
  }
  .viewport-empty__title{
    font-size:17px;
    line-height:1.08;
  }
  .viewport-empty__copy{
    max-width:290px;
    display:none;
  }
  .viewport-empty__action{
    min-height:70px;
    padding:10px 9px;
  }
  .viewport-empty__action-title{
    font-size:12.75px;
  }
  .viewport-empty__ai-submit{
    font-size:12.5px;
  }
}
@media (max-height:800px){
  .viewport-empty__panel{
    padding-bottom:18px;
  }
.viewport-empty__footer{
    display:none;
  }
}

/* ===== Custom request overlay ===== */
.custom-request{position:fixed;inset:0;z-index:9000;display:none;align-items:center;justify-content:center;padding:20px;background:radial-gradient(140% 120% at 50% 50%,rgba(8,13,22,.86) 0,rgba(8,13,22,.72) 42%,rgba(8,13,22,0) 78%);pointer-events:none;backdrop-filter:blur(2px);overflow:hidden;}
.custom-request.is-hidden{display:none}
.custom-request.is-visible{display:flex}
.custom-request__panel{position:relative;width:min(94vw,980px);max-height:min(94vh,820px);padding:28px;background:linear-gradient(180deg,rgba(16,24,40,.98),rgba(9,15,26,.96));border:1px solid rgba(92,130,190,.5);border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.58),0 0 0 1px rgba(255,255,255,.045) inset;display:flex;flex-direction:column;gap:22px;overflow-y:auto;overflow-x:hidden;pointer-events:auto;backdrop-filter:blur(20px);}
.custom-request.is-visible .custom-request__panel{animation:custom-request-panel-in .24s ease-out both;}
.custom-request__panel::before{display:none;}
.custom-request__close{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:999px;background:rgba(20,30,46,.92);border:1px solid rgba(76,105,150,.48);color:#8fa2c0;font-size:17px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;z-index:10;}
.custom-request__close:hover{color:#fff;border-color:rgba(118,167,255,.85);background:rgba(24,38,62,.98);transform:scale(1.05);}
.custom-request__header{position:relative;z-index:1;text-align:center;max-width:760px;margin:0 auto;}
.custom-request__eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-size:11px;color:#81b2ff;font-weight:700;margin:0 0 10px;}
.custom-request__title{margin:0;font-size:22px;line-height:1.22;font-weight:700;color:#f3f7ff;letter-spacing:0;}
.custom-request__lede{margin:10px auto 0;max-width:62ch;color:#aebfd7;font-size:13.5px;line-height:1.5;}
.custom-request__layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.88fr) minmax(360px,1.12fr);gap:22px;align-items:start;}
.custom-request__summary{display:flex;flex-direction:column;gap:14px;}
.custom-request__price{position:relative;display:grid;gap:6px;padding:17px 18px;border:1px solid rgba(92,130,190,.5);border-radius:16px;background:linear-gradient(180deg,rgba(20,32,52,.94),rgba(12,20,32,.92));box-shadow:0 12px 26px rgba(4,12,20,.3);overflow:hidden;}
.custom-request__price::after{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,rgba(120,169,255,0),rgba(120,169,255,.64),rgba(120,169,255,0));opacity:.75;}
.custom-request__price-label{text-transform:uppercase;letter-spacing:1.2px;font-size:10px;font-weight:700;color:#9fbbe8;}
.custom-request__price strong{font-size:16px;line-height:1.25;color:#f4fbff;}
.custom-request__price span:last-child{color:#a7bbd5;font-size:12.5px;line-height:1.45;}
.custom-request__cards{display:grid;gap:18px;}
.custom-request__card{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:16px;align-items:center;padding:15px 16px;border:1px solid rgba(70,102,150,.44);border-radius:14px;background:linear-gradient(180deg,rgba(19,30,48,.92),rgba(14,23,38,.92));box-shadow:0 8px 22px rgba(7,11,20,.34);transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;overflow:visible;}
.custom-request__card::after{content:"";position:absolute;left:54px;top:18px;bottom:18px;width:1px;background:linear-gradient(180deg,rgba(129,177,244,0),rgba(129,177,244,.28),rgba(129,177,244,0));pointer-events:none;}
.custom-request__card:not(:last-child)::before{content:"";position:absolute;left:25px;bottom:-19px;width:20px;height:20px;background:linear-gradient(180deg,rgba(147,194,255,.92),rgba(84,132,214,.64));clip-path:polygon(50% 78%,14% 38%,29% 24%,50% 48%,71% 24%,86% 38%);animation:custom-request-flow 1.7s ease-in-out infinite;pointer-events:none;}
.custom-request__card:nth-child(2)::before{animation-delay:.2s;}
.custom-request__card:hover{transform:translateY(-2px);border-color:rgba(118,168,255,.6);background:linear-gradient(180deg,rgba(23,36,58,.96),rgba(16,26,43,.96));box-shadow:0 12px 26px rgba(7,11,20,.42);}
.custom-request__card-step{position:relative;z-index:1;width:28px;height:28px;border-radius:999px;background:linear-gradient(180deg,#6bb3ff,#4a82e8);border:1px solid rgba(158,199,255,.42);display:grid;place-content:center;font-weight:800;color:#061833;font-size:12px;box-shadow:none;}
.custom-request__card-body{position:relative;z-index:1;}
.custom-request__card h3{margin:0 0 4px;font-size:13.5px;color:#f4f7ff;letter-spacing:0;line-height:1.25;}
.custom-request__card p{margin:0;color:#a9bad2;font-size:12px;line-height:1.45;}
.custom-request__form{display:flex;flex-direction:column;gap:14px;padding:18px;border:1px solid rgba(92,130,190,.46);border-radius:16px;background:linear-gradient(180deg,rgba(14,24,40,.92),rgba(10,17,29,.9));box-shadow:0 16px 36px rgba(5,11,20,.42);}
.custom-request__field{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0;}
.custom-request__label{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;font-weight:700;color:#d7e6fb;}
.custom-request__dropzone{position:relative;min-height:126px;display:flex;align-items:center;justify-content:center;padding:18px;border:1px dashed rgba(129,177,244,.58);border-radius:14px;background:linear-gradient(180deg,rgba(8,15,26,.78),rgba(8,14,24,.9));transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;overflow:hidden;}
.custom-request__dropzone::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 0,transparent 40%,rgba(120,169,255,.08) 50%,transparent 60%,transparent 100%);transform:translateX(-120%);transition:transform .45s ease;pointer-events:none;}
.custom-request__dropzone:hover::after,.custom-request__dropzone.is-drag::after{transform:translateX(120%);}
.custom-request__dropzone input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;}
.custom-request__drop-inner{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;pointer-events:none;}
.custom-request__drop-icon{width:34px;height:34px;border-radius:12px;display:grid;place-content:center;background:rgba(120,169,255,.12);border:1px solid rgba(120,169,255,.22);color:#9ebdf5;font-size:22px;font-weight:500;line-height:1;}
.custom-request__drop-main{font-size:14px;font-weight:700;color:#f4f7ff;}
.custom-request__drop-sub{max-width:300px;color:#8ea2bf;font-size:12px;line-height:1.35;}
.custom-request__dropzone.is-drag{border-color:rgba(118,167,255,.85);box-shadow:0 0 0 1px rgba(118,167,255,.42) inset,0 18px 38px rgba(6,19,29,.48);transform:translateY(-1px);}
.custom-request__dropzone.has-file{border-style:solid;border-color:rgba(129,177,244,.78);background:rgba(14,26,42,.9);}
.custom-request__remove{align-self:flex-start;background:transparent;border:1px solid rgba(111,159,217,.4);color:#b7c9e4;border-radius:999px;padding:.24rem .7rem;font-size:11px;text-transform:uppercase;letter-spacing:.06em;cursor:pointer;}
.custom-request__remove:hover{border-color:rgba(111,159,217,.7);color:#fff;}
.custom-request__file-info{margin:0;color:#8396b2;font-size:11.5px;}
.custom-request__input,.custom-request__textarea{width:100%;border:1px solid rgba(111,159,217,.36);border-radius:12px;padding:.72rem .85rem;background:rgba(8,15,24,.88);color:#e5efff;font-size:13px;font-family:inherit;transition:border-color .2s ease,box-shadow .2s ease;}
.custom-request__input:focus,.custom-request__textarea:focus{outline:none;border-color:rgba(103,179,255,.8);box-shadow:0 0 0 2px rgba(103,179,255,.18);}
.custom-request__textarea{min-height:116px;resize:vertical;line-height:1.45;}
.custom-request__actions{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;}
.custom-request__submit.btn.primary{min-height:42px;font-size:13.5px;font-weight:800;text-align:center;justify-content:center;box-shadow:none;}
.custom-request__submit.btn.primary:hover{box-shadow:none;}
.custom-request__details{min-height:42px;padding:.6rem .95rem;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;border-color:rgba(92,130,190,.58);background:rgba(20,31,50,.72);color:#dce8fb;box-shadow:none;}
.custom-request__details:hover{border-color:rgba(118,168,255,.68);background:rgba(28,42,67,.82);color:#fff;text-decoration:none;box-shadow:none;}
.custom-request__status{min-height:1.2em;margin:0;color:#97aac5;font-size:12.5px;line-height:1.4;}
.custom-request__status[data-state="pending"]{color:#bcd3ee;}
.custom-request__status[data-state="success"]{color:#8dc8ff;}
.custom-request__status[data-state="error"]{color:#ff908a;}
.custom-request [disabled]{cursor:wait;opacity:.78;}
.custom-request-inline{justify-content:center;gap:.35rem;background:rgba(30,42,64,.6);border-color:#334665;color:#dbe7ff;font-weight:600;box-shadow:none;}
.custom-request-inline:hover{border-color:#3c5279;background:rgba(30,44,70,.45);box-shadow:0 0 0 2px rgba(103,179,255,.12);}

@keyframes custom-request-panel-in{
  from{opacity:0;transform:translateY(10px) scale(.985);}
  to{opacity:1;transform:translateY(0) scale(1);}
}

@keyframes custom-request-flow{
  0%,100%{opacity:.42;transform:translateY(-2px);}
  50%{opacity:1;transform:translateY(3px);}
}

@media (prefers-reduced-motion:reduce){
  .custom-request.is-visible .custom-request__panel,
  .custom-request__card:not(:last-child)::before{
    animation:none;
  }
  .custom-request__dropzone::after{
    display:none;
  }
}

@media (max-width:820px){
  .custom-request__panel{width:min(92vw,560px);max-height:min(90vh,720px);padding:20px 16px;gap:16px;}
  .custom-request__layout{grid-template-columns:1fr;gap:16px;}
  .custom-request__summary{display:grid;grid-template-columns:1fr;gap:12px;}
  .custom-request__cards{grid-template-columns:1fr;}
  .custom-request__title{font-size:18px;}
  .custom-request__lede{font-size:12.5px;}
  .custom-request__price strong{font-size:16px;}
  .custom-request__dropzone{min-height:108px;}
}

@media (max-width:480px){
  .custom-request{padding:12px;}
  .custom-request__panel{width:min(94vw,370px);max-height:min(91vh,680px);padding:16px 12px;gap:12px;border-radius:16px;}
  .custom-request__eyebrow{font-size:9.5px;letter-spacing:1.2px;margin-bottom:6px;}
  .custom-request__title{font-size:16px;}
  .custom-request__lede{font-size:12px;margin-top:6px;}
  .custom-request__form{padding:14px;gap:12px;}
  .custom-request__cards{gap:16px;}
  .custom-request__card{grid-template-columns:26px minmax(0,1fr);gap:14px;padding:12px;}
  .custom-request__card::after{left:44px;top:12px;bottom:12px;}
  .custom-request__card:not(:last-child)::before{left:16px;bottom:-17px;}
  .custom-request__card-step{width:24px;height:24px;font-size:11px;}
  .custom-request__card h3{font-size:12.5px;}
  .custom-request__card p{font-size:11.5px;}
  .custom-request__actions{grid-template-columns:1fr;}
  .custom-request__details{width:100%;}
}

/* ===== Quick start overlay ===== */
/* --- Mini Quick Start Overlay --- */
.quick-start{position:fixed;inset:0;z-index:9000;display:none;align-items:center;justify-content:center;padding:20px;background:radial-gradient(140% 120% at 50% 50%,rgba(8,13,22,.85) 0,rgba(8,13,22,.7) 40%,rgba(8,13,22,0) 76%);pointer-events:none;backdrop-filter:blur(2px);overflow:hidden;}
.quick-start.is-hidden{display:none}
.quick-start.is-visible{display:flex}

/* Mini panel - compact & centered */
.quick-start__mini-panel{position:relative;width:min(95vw,1100px);max-height:min(96vh,950px);background:linear-gradient(180deg,rgba(15,22,38,.96),rgba(10,16,28,.94));border:1px solid rgba(84,112,160,.45);border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04) inset;padding:30px 32px 20px;display:flex;flex-direction:column;gap:22px;overflow-y:auto;overflow-x:hidden;pointer-events:auto;backdrop-filter:blur(20px);}
.quick-start__mini-panel::before{content:"";position:absolute;inset:-180px -140px 60% -140px;background:radial-gradient(closest-side,rgba(62,126,255,.18),rgba(62,126,255,0));opacity:.75;pointer-events:none;mix-blend-mode:screen;}

/* Close button */
.quick-start__close{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:999px;background:rgba(20,30,46,.92);border:1px solid rgba(76,105,150,.48);color:#8fa2c0;font-size:17px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;z-index:10;}
.quick-start__close:hover{color:#fff;border-color:rgba(118,167,255,.85);background:rgba(24,38,62,.98);transform:scale(1.05);}

/* Header */
.quick-start__mini-header{text-align:center;margin-bottom:10px;}
.quick-start__eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-size:11px;color:#81b2ff;font-weight:600;margin:0 0 10px;}
.quick-start__mini-title{margin:0;font-size:17px;line-height:1.35;font-weight:600;color:#e8f0ff;letter-spacing:.2px;}

/* Three horizontal panels container */
.quick-start__mini-panels{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;grid-auto-rows:minmax(0,1fr);gap:20px;align-items:stretch;flex:1;min-height:0;overflow-y:visible;padding:12px 8px 12px;}
.quick-start__mini-panels::-webkit-scrollbar{width:6px}
.quick-start__mini-panels::-webkit-scrollbar-thumb{background:rgba(114,148,206,.35);border-radius:999px}
.quick-start__mini-panels{scrollbar-width:thin;scrollbar-color:rgba(114,148,206,.45) transparent}

/* Individual instruction card */
.quick-start__mini-card{position:relative;display:flex;flex-direction:column;gap:12px;padding:20px 18px;background:rgba(18,28,44,.88);border:1px solid rgba(70,102,150,.42);border-radius:14px;box-shadow:0 8px 24px rgba(7,11,20,.45);transition:all .25s ease;justify-content:space-between;flex:1;min-height:0;}
.quick-start__mini-card:hover{transform:translateY(-3px);border-color:rgba(118,168,255,.65);box-shadow:0 14px 32px rgba(7,12,22,.6);}

/* Step badge */
.quick-start__mini-step-badge{position:absolute;top:-10px;left:14px;width:28px;height:28px;border-radius:999px;background:linear-gradient(180deg,#5baeff,#3f7dff);display:grid;place-content:center;font-weight:700;color:#03122b;font-size:12px;box-shadow:0 8px 18px rgba(57,122,255,.42);letter-spacing:.3px;z-index:2;}

/* Card title */
.quick-start__mini-card-title{margin:0;font-size:14.5px;font-weight:600;color:#f4f7ff;letter-spacing:.15px;line-height:1.3;}
.quick-start__mini-card-title--center{text-align:center;}

/* Feature list */
.quick-start__mini-features{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:12.5px;color:#b0c2db;}
.quick-start__mini-features li{display:flex;gap:8px;align-items:center;line-height:1.4;}
.quick-start__mini-features li span{flex-shrink:0;font-size:14px;}
.quick-start__mini-icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:18px;line-height:1;}

/* Mini hero image */
.quick-start__mini-hero{margin:6px 0 0;padding:0;border-radius:12px;overflow:hidden;background:rgba(10,18,32,.8);border:1px solid rgba(92,130,190,.38);}
.quick-start__mini-hero-img{width:100%;height:160px;object-fit:cover;display:block;border-radius:12px 12px 0 0;}
.quick-start__mini-hero-caption{font-size:11px;color:#95adc8;text-align:center;padding:8px 10px;margin:0;background:rgba(8,14,26,.9);}

/* Hint text (Panels 2 & 3) */
.quick-start__mini-hint{margin:6px 0 0;font-size:10.5px;line-height:1.45;color:#8ca5c4;font-style:italic;}

/* Actions */
.quick-start__mini-actions{display:flex;flex-direction:column;gap:8px;margin-top:8px;}
.quick-start__mini-actions .btn-sm{padding:.5rem .8rem;font-size:12px;font-weight:600;border-radius:8px;}

/* Neon-green arrow */
.quick-start__mini-arrow{display:flex;align-items:center;justify-content:center;color:#00ff88;font-size:32px;flex-shrink:0;filter:drop-shadow(0 0 12px rgba(0,255,136,.6));align-self:center;}
.quick-start__mini-arrow svg{width:32px;height:32px;stroke:currentColor;animation:pulse-arrow 2s ease-in-out infinite;}

@keyframes pulse-arrow{
  0%,100%{opacity:1;transform:translateX(0)}
  50%{opacity:.7;transform:translateX(4px)}
}

/* Footer */
.quick-start__mini-footer{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;padding-top:10px;border-top:1px solid rgba(70,102,150,.3);}
.quick-start__mini-cta{padding:.65rem 1.5rem;font-size:13.5px;font-weight:600;}
.quick-start__mini-secondary{padding:.6rem 1.3rem;font-size:12.5px;font-weight:600;color:#d0dcf6;}

/* Inline trigger button */
.quick-start-inline{
  justify-content:center;
  gap:.35rem;
}

/* Carousel navigation arrows (mobile only) */
.quick-start__carousel-nav{display:none;}

/* Responsive - Mobile carousel */
@media (max-width:768px){
  .quick-start__mini-panel{width:min(92vw,400px);max-height:min(88vh,520px);padding:18px 16px;gap:12px;}
  .quick-start__mini-header{margin-bottom:6px;}
  .quick-start__eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:6px;}
  .quick-start__mini-title{font-size:14.5px;}

  /* Carousel container */
  .quick-start__mini-panels{
    position:relative;
    display:flex;
    gap:0;
    padding:0;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .quick-start__mini-panels::-webkit-scrollbar{display:none;}

  /* Cards in carousel */
  .quick-start__mini-card{
    flex:0 0 100%;
    scroll-snap-align:center;
    padding:16px 14px;
    gap:10px;
  }
  .quick-start__mini-arrow{display:none;}

  /* Navigation arrows */
  .quick-start__carousel-nav{
    display:flex;
    gap:10px;
    justify-content:center;
    align-items:center;
    margin-top:8px;
  }
  .quick-start__carousel-btn{
    width:36px;
    height:36px;
    border-radius:50%;
    background:rgba(30,45,70,.85);
    border:1px solid rgba(90,120,170,.5);
    color:#a0b8d8;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all .2s ease;
  }
  .quick-start__carousel-btn:hover{
    background:rgba(40,58,88,.95);
    border-color:rgba(118,167,255,.75);
    color:#fff;
  }
  .quick-start__carousel-btn:disabled{
    opacity:.3;
    cursor:not-allowed;
  }

  /* Dots indicator */
  .quick-start__carousel-dots{
    display:flex;
    gap:8px;
  }
  .quick-start__carousel-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:rgba(100,130,180,.4);
    border:1px solid rgba(100,130,180,.3);
    transition:all .3s ease;
    cursor:pointer;
  }
  .quick-start__carousel-dot.active{
    width:24px;
    border-radius:4px;
    background:rgba(91,174,255,.85);
    border-color:rgba(91,174,255,.6);
  }

  /* Adjust sizes */
  .quick-start__mini-card-title{font-size:13.5px;}
  .quick-start__mini-step-badge{width:26px;height:26px;font-size:11px;top:-9px;left:12px;}
  .quick-start__mini-features{gap:7px;font-size:12px;}
  .quick-start__mini-icon{width:20px;height:20px;font-size:17px;}
  .quick-start__mini-hero-img{height:130px;}
  .quick-start__mini-hero-caption{font-size:10.5px;padding:7px 9px;}
  .quick-start__mini-footer{gap:10px;padding-top:10px;}
  .quick-start__mini-cta{padding:.6rem 1.3rem;font-size:13px;}
  .quick-start__mini-secondary{padding:.55rem 1.1rem;font-size:12px;}
}

/* Responsive - Very small screens */
@media (max-width:480px){
  .quick-start__mini-panel{width:min(94vw,360px);max-height:min(90vh,480px);padding:14px 12px;gap:10px;}
  .quick-start__eyebrow{font-size:9.5px;letter-spacing:1.2px;margin-bottom:5px;}
  .quick-start__mini-title{font-size:13.5px;}
  .quick-start__mini-card{padding:14px 12px;gap:8px;}
  .quick-start__mini-card-title{font-size:12.5px;}
  .quick-start__mini-step-badge{width:24px;height:24px;font-size:10.5px;top:-8px;left:10px;}
  .quick-start__mini-features{font-size:11px;gap:6px;}
  .quick-start__mini-icon{width:18px;height:18px;font-size:15px;}
  .quick-start__mini-hero-img{height:110px;}
  .quick-start__mini-hero-caption{font-size:9.5px;padding:6px 7px;}
  .quick-start__mini-footer{gap:8px;padding-top:8px;}
  .quick-start__mini-cta{padding:.5rem 1.1rem;font-size:12px;}
  .quick-start__mini-secondary{padding:.45rem .9rem;font-size:11px;}
  .quick-start__mini-hint{font-size:10px;}
  .quick-start__carousel-btn{width:32px;height:32px;font-size:16px;}
  .quick-start__carousel-dot{width:7px;height:7px;}
  .quick-start__carousel-dot.active{width:20px;}
}

/* --- Accordion panels (left dock) --- */
#dock details.panel {
  margin: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface-2);
  overflow: visible;          /* avoid clipping helper text / checkboxes */
  padding: 0;
}
#dock details.panel > summary {
  list-style: none;
  cursor: pointer;
  padding: .62rem .8rem;
  min-height: 42px;
  display: flex; align-items: center; gap: .55rem;
  color: #8b99aa; font-size: 12px; line-height: 1.15; letter-spacing: .42px; text-transform: uppercase;
  /* Match the credits pill ("chip") so the headers read as clear buttons */
  background: var(--chip);
  box-shadow: inset 0 0 0 1px #273142;
  border-radius: .55rem;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#dock details.panel > summary .sum-icon:empty{display:none;}
#dock details.panel > summary:hover{filter:brightness(1.06);}
#dock details.panel[open] > summary{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
#dock details.panel > summary::-webkit-details-marker { display: none; }
#dock details.panel > summary::before {
  content: "\25B8"; color: var(--ghost);
  font-size: 12px;
  width: 1em;
  transform: rotate(0deg);
  transition: transform .15s ease;
}
#dock details.panel[open] > summary::before { transform: rotate(90deg); }
#dock details.panel .panel-body {
  padding: .6rem .8rem .8rem;
  border-top: 1px solid var(--line);
}
#panel-file .toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:.45rem;
}
#panel-file .toolbar--primary{
  margin-bottom:.55rem;
}
#panel-file .toolbar--primary .btn,
#panel-file .toolbar--primary label.btn{
  flex:1 1 150px;
  justify-content:center;
}
#panel-file .toolbar--secondary{
  gap:.5rem;
}
#panel-file .toolbar--secondary .btn{
  flex:1 1 150px;
  justify-content:center;
}
#panel-file .toolbar--secondary .btn:first-child{
  min-width:0;
}
#panel-file .toolbar--secondary #tbSave{
  min-width:0;
}
#panel-file .toolbar--secondary #tbSave .btn-icon{margin-right:.3rem;}
#dock .help.small { font-size: 11.5px; color: var(--ghost); }

/* Slightly tighter gaps in grid triplets */
#dock .grid-3 input[type="number"],
#dock .grid-3 input[type="range"] { margin-top: .15rem; }

.ai-generate {
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .45rem;
}
.ai-generate label {
  font-size: 12px;
  letter-spacing: .35px;
  text-transform: uppercase;
  color: #8b99aa;
}
.ai-generate__controls {
  display: grid;
  grid-template-columns: 1fr; /* stack input and button; button below */
  gap: .5rem;
  align-items: stretch;
}
.ai-generate__controls input[type="search"] {
  flex: 1;
  width: 100%;
  background: #0d1522;
  border: 1px solid var(--edge);
  color: var(--text);
  border-radius: .55rem;
  padding: .45rem .7rem;
  font-size: 14px;
}
.ai-generate__controls input[type="search"]:focus {
  outline: none;
  border-color: #3c5b8f;
  box-shadow: 0 0 0 1px rgba(60, 91, 143, .45);
}
.ai-generate__controls button {
  min-width: 0;      /* allow full-width on small layouts */
  width: 100%;       /* place button on its own row */
  justify-content: center;
}
.ai-generate__hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--ghost);
  line-height: 1.4;
}


.layer-control {
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: .35rem;
}

.layer-control__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .35rem 0 0;
}

.layer-control__header:first-child {
  margin-top: 0;
}

.layer-control__header .layer-color-chip {
  margin-left: auto;
}

.layer-control input[type="number"],
.layer-control input[type="range"] {
  margin-top: 0;
}

.layer-control__slider-row {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.layer-control__slider-row input[type="range"] {
  flex: 1;
}

.layer-control__chip {
  display: none;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(143, 162, 186, .16);
  color: #a8bfd8;
  white-space: nowrap;
  pointer-events: none;
}

.layer-control__chip.is-visible {
  display: inline-flex;
  align-items: center;
}

.layer-control__header label {
  flex: 1;
  margin: 0;
}

.layer-color-chip {
  --chip-width: 1.4rem;
  --chip-height: .85rem;
  width: var(--chip-width);
  height: var(--chip-height);
  border-radius: .4rem;
  border: 1px solid rgba(255, 255, 255, .32);
  background: var(--chip-color, #1565c0);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), 0 0 0 1px rgba(6, 12, 20, .75);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .2s ease;
  position: relative;
}

.layer-color-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .45);
  pointer-events: none;
}

.layer-color-chip:hover {
  transform: scale(1.05);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), 0 0 0 1px rgba(120, 190, 255, .45);
}

.layer-color-chip:focus-visible {
  outline: 2px solid #5aa5ff;
  outline-offset: 2px;
}

.panel-section + .panel-section {
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}

.toggle-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.segmented-field {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.segmented-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--segment-label);
}

.segmented-field__group {
  display: flex;
  gap: .4rem;
  padding: .35rem;
  border-radius: .7rem;
  border: 1px solid var(--segment-group-border);
  background: var(--segment-group-bg);
}

.segmented-field__option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .4rem .65rem;
  border-radius: .55rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--segment-option-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.segmented-field__option[aria-checked="true"] {
  background: var(--segment-option-active-bg);
  border-color: var(--segment-option-active-border);
  color: var(--segment-option-active-text);
  box-shadow: var(--segment-option-active-shadow);
}

.segmented-field__option:focus-visible {
  outline: 2px solid #6489ff;
  outline-offset: 2px;
}

.segmented-field__hint {
  margin: 0;
  font-size: 12px;
  color: var(--segment-hint);
  line-height: 1.4;
}

/* Compact alignment toggle (Size & Options) */
#alignField .segmented-field__group{
  gap: .3rem;
  padding: .28rem;
  border-radius: .6rem;
}
#alignField .segmented-field__option{
  padding: .32rem .55rem;
  border-radius: .5rem;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.size-unit-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin: .15rem 0 .45rem;
}

.size-unit-toggle__caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--segment-hint);
}

.size-unit-toggle__group {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem;
  border-radius: 999px;
  border: 1px solid var(--segment-group-border);
  background: var(--segment-group-bg);
}

.size-unit-toggle__option {
  min-width: 40px;
  padding: .26rem .55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--segment-option-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.size-unit-toggle__option.is-active,
.size-unit-toggle__option[aria-checked="true"] {
  background: var(--segment-option-active-bg);
  border-color: var(--segment-option-active-border);
  color: var(--segment-option-active-text);
  box-shadow: var(--segment-option-active-shadow);
}

.size-label-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  justify-content: space-between;
}

.size-label-row > label {
  margin: 0;
  min-width: 0;
}

.size-adjust-note {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: max-width .25s ease, opacity .25s ease, visibility .25s ease;
  pointer-events: none;
}

.size-adjust-note.is-visible {
  max-width: 240px;
  opacity: 1;
  visibility: visible;
}

.style-specific-field {
  display: grid;
  gap: .45rem;
  margin-top: .7rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(103,179,255,.22);
  border-radius: .9rem;
  background: linear-gradient(180deg, rgba(13,22,36,.82), rgba(10,16,27,.9));
}

.style-specific-field[hidden] {
  display: none !important;
}

.style-specific-field--embedded {
  margin-top: .55rem;
  padding: .65rem 0 0;
  border: 0;
  border-top: 1px solid rgba(103,179,255,.2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.style-specific-field__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.style-specific-field__header label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--headline);
}

.style-specific-field__hint {
  font-size: 11px;
  color: var(--segment-hint);
  text-align: right;
}

.multi-cutter-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.multi-cutter-setting {
  display: grid;
  gap: .42rem;
  min-width: 0;
}

.multi-cutter-setting__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.multi-cutter-setting__label-row label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--headline);
}

.multi-cutter-setting__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--headline);
}

.multi-cutter-setting--wide {
  margin-top: .75rem;
}

.multi-cutter-basis-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.multi-cutter-center-spacing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.multi-cutter-axis-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .4rem;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.multi-cutter-axis-input input {
  min-width: 0;
}

.multi-cutter-join-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .multi-cutter-settings-grid {
    grid-template-columns: 1fr;
  }
}

.toggle-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  margin-top: .65rem;
}

.toggle-stack--style-card {
  margin-top: 0;
}

.toggle-control {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .35rem .5rem;
  border-radius: .6rem;
  border: 1px solid var(--toggle-border);
  background-color: var(--toggle-bg);
  color: var(--toggle-text);
  cursor: pointer;
  font-size: 12px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.toggle-control:hover {
  border-color: var(--toggle-hover-border);
  background-color: var(--toggle-hover-bg);
}

.toggle-control__track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--toggle-track-bg);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--toggle-track-ring);
  transition: background .2s ease, box-shadow .2s ease;
}

.toggle-control__thumb {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--toggle-thumb);
  transform: translateX(0);
  transition: transform .2s ease, background .2s ease;
}

.toggle-control__label {
  flex: 1;
  min-width: 0;
  text-align: left;
  color: var(--toggle-label);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.checkbox-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.toggle-control.is-active {
  border-color: var(--toggle-active-border);
  background-color: var(--toggle-active-bg);
  box-shadow: var(--toggle-active-shadow);
}

.toggle-control.is-active .toggle-control__track {
  background: var(--toggle-active-track-bg);
  box-shadow: inset 0 0 0 1px var(--toggle-active-track-ring);
}

.toggle-control.is-active .toggle-control__thumb {
  transform: translateX(14px);
  background: var(--toggle-active-thumb);
}

.connector-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  align-items: start;
  margin-bottom: .7rem;
}

.connector-mode-row .btn {
  position: relative;
  overflow: hidden;
}

.btn-toggle {
  background: transparent;
  border-color: var(--btn-ghost-border);
  color: var(--btn-ghost-text);
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.btn-toggle .btn-icon {
  margin-right: .35rem;
  font-size: 15px;
}

.btn-toggle.is-active {
  background:
    linear-gradient(180deg, rgba(103,179,255,.26), rgba(103,179,255,.14)),
    var(--btn-ghost-hover-bg);
  border-color: rgba(103,179,255,.9);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    inset 0 -2px 0 var(--accent),
    0 8px 18px rgba(35,88,136,.2);
}

.btn-toggle.is-active .btn-icon {
  color: currentColor;
}

.connector-auto-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, auto);
  gap: .45rem;
  align-items: center;
  margin: -.1rem 0 .65rem;
}

.connector-auto-options[hidden] {
  display: none;
}

.connector-auto-options label {
  margin: 0;
  font-size: 12px;
}

.connector-auto-options select {
  min-height: 30px;
  padding: .25rem .45rem;
}

/* App bar cleanup */
.appbar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.appbar .spacer{margin-left:auto}
.appbar .help-pop{display:none}

@media (min-width:1100px){
  .appbar{flex-wrap:nowrap}
}

/* App page brand: same size as homepage */
.appbar .brand {
  font-weight: 800;
  color: var(--headline);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 18px;
  text-decoration: none;
}
.appbar .brand__accent {
  color: var(--accent2);
}
.appbar .spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Account strip layout (mobile-first: stacked) */
.acct-strip{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.55rem;
  padding:.55rem .65rem;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:.9rem;
  width:min(340px,100%);
  min-width:0;
  box-shadow:0 16px 34px rgba(8,12,20,.28);
  margin-left:-.15rem;
}
.acct-strip__info,
.acct-strip__auth{
  display:flex;
  align-items:center;
  gap:.35rem;
  width:100%;
  justify-content:flex-start;
  flex-wrap:nowrap;
  min-width:0;
}
.acct-strip__auth[data-printed-placement="mobile"]{
  gap:.4rem;
}
.acct-strip__auth[data-printed-placement="mobile"]>*{
  flex:0 0 auto;
}
.acct-strip__auth[data-printed-placement="mobile"] .printed-controls{
  order:0;
  flex:1 1 auto;
  min-width:0;
}
.acct-strip__auth[data-printed-placement="mobile"] #creditBadge{
  order:1;
}
.acct-strip__auth[data-printed-placement="mobile"] #acctAuthSlot{
  order:2;
}
.acct-strip__auth[data-printed-placement="mobile"] #btnSignOut{
  order:3;
}
.acct-strip__actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.35rem;
  width:100%;
}
.acct-strip__actions>button{width:100%;}
.mobile-style-picker{
  display:none;
}
.mobile-style-picker__select{
  width:100%;
  min-width:0;
  border:1px solid #4f9fff;
  border-radius:.5rem;
  background:var(--surface-3);
  color:var(--btn-text);
  font-size:12px;
  padding:.35rem .4rem;
  box-shadow:0 0 0 1px rgba(91,166,255,.42);
}
.mobile-style-picker__select:focus{
  outline:none;
  box-shadow:0 0 0 2px rgba(91,166,255,.58);
}
.mobile-style-picker__select:focus-visible{
  outline:none;
}

.acct-strip__credit{
  font-size:11.5px;
  padding:.45rem .6rem;
  white-space:nowrap;
}
.acct-strip__credit.is-clickable{cursor:pointer; user-select:none;}
.acct-strip__credit.is-clickable:hover{border-color:#3a4f6f;background:rgba(17,24,39,.9);color:#e7f0ff;}
.acct-strip__credit.is-clickable:focus{outline:none;}
.acct-strip__credit.is-clickable:focus-visible{outline:2px solid var(--accent2);outline-offset:2px;}

.acct-strip__auth-slot{
  display:flex;
  align-items:center;
}

.acct-strip__auth-slot button,
.acct-strip__signout{
  font-size:11.5px;
  padding:.45rem .6rem;
  border-radius:.65rem;
  white-space:nowrap;
}
/* Printed row now: [Printed price][Order Printed Cutter] */
.acct-strip__printed{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
}

/* Make primary action stand out; secondary keeps compact width */
#acctStrip #orderPrintedBtn.btn.primary{
  font-weight:600;
}
#btnBuy.btn{
  /* optional: slightly quieter than primary */
  opacity:.9;
}

#buyCreditsStandalone{
  display:flex;
  flex:0 0 auto;
  width:100%;
}

#buyCreditsStandalone .btn{
  width:100%;
}

/* On very narrow screens, keep chip on its own line if needed */
@media (max-width:420px){
  .acct-strip__printed{
    gap:.4rem;
  }
  #acctStrip #printedPriceChip{
    flex-basis:100%;
  }
}

/* Desktop: compact row so header stays short */
@media (min-width:1100px){
  .acct-strip{
    flex-direction:row;
    align-items:center;
    gap:.5rem;
    padding:.4rem .55rem;
    width:auto;
    margin-left:0;
  }
  .acct-strip__info,
  .acct-strip__auth,
  .acct-strip__actions{
    flex-direction:row;
    align-items:center;
    gap:.4rem;
    width:auto;
  }
  .acct-strip__actions .btn{width:auto;}
}

@media (min-width:1100px){
  #buyCreditsStandalone{
    width:auto;
    align-items:center;
  }
  #buyCreditsStandalone .btn{
    width:auto;
  }
}

@media (max-width: 920px){
  .acct-strip{
    width:100%;
    margin-left:0;
  }
}

@media (max-width:760px){
  .appbar{
    align-content:start;
  }
  .appbar .spacer{
    flex:1 1 auto;
  }
  .acct-strip{
    flex:1 0 100%;
    max-width:100%;
    padding:.5rem .55rem;
    gap:.45rem;
  }
  .acct-strip__auth{
    gap:.3rem;
  }
  .acct-strip__actions{
    flex-direction:row;
    align-items:center;
    gap:.4rem;
  }
  .mobile-style-picker{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:.2rem;
    flex:1 1 0;
    min-width:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .mobile-style-picker__select{
    flex:1 1 auto;
    font-size:11.5px;
    padding:.24rem .34rem;
    min-height:30px;
  }
  .acct-strip__actions button,
  #exportstl{
    font-size:12px;
    padding:.32rem .55rem;
  }
  #exportstl{
    flex:1 1 auto;
    min-width:0;
    width:auto;
    min-height:36px;
    justify-content:center;
  }
  .acct-strip__credit{
    font-size:11px;
    padding:.16rem .5rem;
  }
  .acct-strip__auth-slot button,
  .acct-strip__signout{
    font-size:11px;
    padding:.28rem .5rem;
  }
  .chip{
    font-size:11px;
    padding:.08rem .45rem;
  }
}

@media (max-width:520px){
  .acct-strip{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    padding:.4rem .45rem;
    gap:.4rem;
  }
  .acct-strip__auth[data-printed-placement="mobile"],
  .acct-strip__actions{
    display:contents;
  }
  .acct-strip__auth[data-printed-placement="mobile"] .printed-controls{
    grid-column:1 / -1;
    grid-row:1;
    width:100%;
  }
  .acct-strip__auth[data-printed-placement="mobile"] #creditBadge{
    grid-column:2;
    grid-row:2;
    justify-self:end;
  }
  .acct-strip__auth[data-printed-placement="mobile"] #acctAuthSlot,
  .acct-strip__auth[data-printed-placement="mobile"] #btnSignOut{
    grid-column:3;
    grid-row:2;
    justify-self:end;
  }
  .printed-controls--mobile{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(118px,.8fr);
    gap:.4rem;
  }
  .printed-controls--mobile .printed-controls__price,
  .printed-controls--mobile .printed-controls__actions{
    width:100%;
  }
  .printed-controls--mobile .printed-controls__actions .btn{
    width:100%;
    justify-content:center;
  }
  .mobile-style-picker{
    grid-column:1;
    grid-row:2;
    width:100%;
    align-self:stretch;
    flex:1 1 100%;
    min-width:0;
    padding:0;
  }
  .mobile-style-picker__select{
    font-size:11px;
    padding:.22rem .3rem;
    min-height:28px;
  }
  .acct-strip__actions button,
  #exportstl{
    font-size:11.5px;
    padding:.3rem .5rem;
    min-height:34px;
  }
}

/* === Tablet polish === */

/* 1) Let the app bar wrap on smaller widths so the big button never gets cut off */
#exportstl { flex: 0 0 auto; }                 /* don't shrink the buttons */
/* compact header sizing; matches existing toolbar button style */
.appbar .btn,
#exportstl {
  padding:.45rem .6rem;
  border-radius:.5rem;
}
@media (max-width: 920px) {
  #exportstl { flex: 0 0 auto; }
}
@media (max-width:760px){
  #exportstl { flex: 1 1 auto; }
}

/* 2) Grid children must be allowed to shrink inside .row to avoid clipping */
.row > aside, .row > main { min-width: 0; }

/* 3) Make the 3-column slider grids more robust across tablets */
.grid-3 { 
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  align-items: start;
}
/* collapse to 2 cols on medium tablets, 1 col on phones */
@media (max-width: 1100px){
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px){
  .grid-3 { grid-template-columns: 1fr; }
}

/* === Phone drawer for the left dock === */
@media (max-width: 760px){
  /* Keep grid one-column; make main tall so viewer can fill */
  .row{
    grid-template-columns: 1fr;
    min-height: calc(100dvh - var(--appbar-height, 60px));
  }
  main{
    order:1;
    /* Match the remaining viewport height after accounting for the header */
    min-height: calc(100dvh - var(--appbar-height, 60px));
    height: calc(100dvh - var(--appbar-height, 60px));
  }
  aside{
    order:2;
    /* Don't use display:none - it prevents the fixed #dock drawer from rendering */
    /* The drawer is hidden off-screen by default via transform: translateX(-102%) */
  }

  /* Turn #dock into a slide-in drawer that sits above the viewport */
  #dock{
    position: fixed;
    inset: 0 auto 0 0;               /* left edge */
    width: min(88vw, 400px);
    max-width: 100%;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 70;                      /* above toolbar */
    box-shadow: 4px 0 32px rgba(0,0,0,.55);
    background: var(--surface-1);             /* same as aside theme */
    border-right: 1px solid var(--line);
  }
  #dock.open{
    transform: translateX(0);
  }

  /* Tap target to close: top-right "X" button we'll add in HTML */
  #dock .dock-close{
    position: sticky;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    padding: .6rem .7rem;
    z-index: 2;
    background: linear-gradient(180deg,var(--surface-1),#0c1118);
    border-bottom: 1px solid var(--line);
  }
  #dock .dock-close .btn{
    font-size: 13px;
    padding: .4rem .65rem;
  }

  /* Dim the app behind the drawer using a backdrop on <body> */
  body.mobile-drawer-open::after{
    content:""; position: fixed; inset: 0;
    background: rgba(0,0,0,.42); z-index: 60;
  }

  /* Floating Tools button (we'll add in HTML) */
  .dock-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    position: fixed; left: .9rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 4.25rem);
    z-index: 65;
    background:#141b26; border:1px solid var(--edge); color:var(--btn-text);
    border-radius: .7rem; padding: .62rem .82rem; font-size: 14px;
    box-shadow:0 10px 24px rgba(15,24,37,.32);
    transition:background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .dock-toggle:hover{
    background:#1a2538;
    border-color:#2f4a71;
    box-shadow:0 14px 28px rgba(15,24,37,.42);
  }

  .dock-close{display:flex}
}

/* Additional mobile refinements for very small screens */
@media (max-width: 520px){
  #dock{
    width: min(92vw, 360px);
  }

  /* Move viewport-info up to avoid Tools button */
  .viewport-info{
    bottom: 3.2rem;
    left: .5rem;
  }

  /* Make panels more compact */
  .panel{
    padding: .6rem;
  }
  .panel h3{
    margin: .15rem 0 .5rem;
    font-size: 11px;
  }
}

/* Full-width drawer on extra small screens */
@media (max-width: 400px){
  #dock{
    width: 100%;
    max-width: calc(100vw - 40px);
  }
}

/* 4) If the toolbar inside the viewer ever overflows, allow wrapping */
.viewport-toolbar button { flex: 0 0 auto; }


/* Popover chip */
.help-pop{position:relative}
.help-pop > summary{list-style:none;cursor:pointer}
.help-pop > summary::-webkit-details-marker{display:none}
.help-pop > summary.chip{padding:.25rem .55rem;border:1px solid var(--line);border-radius:999px}
.help-pop[open] > summary.chip{background:var(--surface-2)}

/* Popover panel */
.help-pop .pop{
  position:absolute;right:0;top:calc(100% + 8px);
  min-width:280px;max-width:360px;
  background:#0f1622;border:1px solid var(--line);border-radius:.6rem;
  padding:.6rem .75rem;box-shadow:0 10px 25px rgba(0,0,0,.45);z-index:20
}
.help-pop .pop-row{font-size:12.5px;color:#cbd5e1;margin:.2rem 0}
.help-pop .pop-row strong{color:#9fb0c4;font-weight:600}

/* Global tooltip/help system */
.ccc-help-layer{
  position:fixed;
  inset:0;
  z-index:1600;
  pointer-events:none;
}
.ccc-help-surface{
  position:fixed;
  max-width:min(320px, calc(100vw - 20px));
  color:var(--text);
  pointer-events:auto;
  opacity:0;
  transform:translateY(4px) scale(.985);
  transform-origin:center;
  transition:opacity .16s ease, transform .16s ease;
  filter:drop-shadow(0 18px 34px rgba(0,0,0,.34));
}
.ccc-help-surface[hidden]{display:none!important;}
.ccc-help-surface.is-open{
  opacity:1;
  transform:translateY(0) scale(1);
}
.ccc-help-surface--popover{
  max-width:min(420px, calc(100vw - 20px));
}
.ccc-help-inner{
  position:relative;
  z-index:1;
  border:1px solid rgba(102,142,198,.34);
  background:
    radial-gradient(180px 90px at 18% 0%, rgba(103,179,255,.16), transparent 68%),
    linear-gradient(180deg, rgba(18,27,43,.98), rgba(10,16,26,.98));
  border-radius:14px;
  box-shadow:0 20px 46px rgba(2,6,14,.48), inset 0 1px 0 rgba(255,255,255,.05);
  padding:.62rem .76rem;
  backdrop-filter:blur(14px);
}
.ccc-help-surface--tooltip .ccc-help-inner{
  border-radius:13px;
}
.ccc-help-surface--popover .ccc-help-inner{
  padding:.82rem .92rem .88rem;
}
.ccc-help-title{
  margin:0 0 .3rem;
  color:var(--headline);
  font-size:12.5px;
  font-weight:750;
  line-height:1.25;
}
.ccc-help-surface--popover .ccc-help-title{
  font-size:14px;
  margin-bottom:.45rem;
}
.ccc-help-body{
  display:grid;
  gap:.35rem;
  color:#c7d6ea;
  font-size:12.5px;
  line-height:1.42;
}
.ccc-help-body p{
  margin:0;
}
.ccc-help-list{
  margin:0;
  padding-left:1rem;
  display:grid;
  gap:.32rem;
}
.ccc-help-note{
  color:#9fb6d4;
  font-size:12px;
}
.ccc-help-links{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-top:.65rem;
}
.ccc-help-links a{
  color:var(--accent2);
  font-size:12px;
  text-decoration:none;
  border-bottom:1px solid rgba(103,179,255,.38);
}
.ccc-help-links a:hover,
.ccc-help-links a:focus-visible{
  color:#d9ecff;
  border-bottom-color:currentColor;
}
.ccc-help-arrow{
  position:absolute;
  width:12px;
  height:12px;
  background:rgba(10,16,26,.98);
  border:1px solid rgba(102,142,198,.34);
  transform:rotate(45deg);
  pointer-events:none;
}
.ccc-help-surface[data-side="top"] .ccc-help-arrow{
  left:50%;
  bottom:-5px;
  transform:translateX(-50%) rotate(45deg);
  border-left:0;
  border-top:0;
}
.ccc-help-surface[data-side="bottom"] .ccc-help-arrow{
  left:50%;
  top:-5px;
  transform:translateX(-50%) rotate(45deg);
  border-right:0;
  border-bottom:0;
}
.ccc-help-surface[data-side="left"] .ccc-help-arrow{
  right:-5px;
  top:50%;
  transform:translateY(-50%) rotate(45deg);
  border-left:0;
  border-bottom:0;
}
.ccc-help-surface[data-side="right"] .ccc-help-arrow{
  left:-5px;
  top:50%;
  transform:translateY(-50%) rotate(45deg);
  border-right:0;
  border-top:0;
}
label.has-help,
.panel h3.has-help,
.size-unit-toggle__caption.has-help,
.segmented-field__label.has-help,
.multi-cutter-setting__label.has-help{
  cursor:help;
  text-decoration:underline dotted rgba(103,179,255,.42);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
label.has-help:hover,
label.has-help:focus-visible,
.panel h3.has-help:hover,
.panel h3.has-help:focus-visible,
.size-unit-toggle__caption.has-help:hover,
.segmented-field__label.has-help:hover,
.multi-cutter-setting__label.has-help:hover{
  color:var(--text);
  text-decoration-color:rgba(80,227,164,.72);
}
.toggle-control.has-help:hover .toggle-control__label,
.segmented-field.has-help:hover > .segmented-field__label{
  color:var(--text);
}
.ccc-help-trigger{
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  min-width:20px;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(103,179,255,.38);
  background:rgba(17,26,43,.82);
  color:#bcd3ef;
  font-size:12px;
  line-height:1;
}
.ccc-help-trigger::before{
  content:"?";
  font-weight:800;
}
.ccc-help-trigger:hover,
.ccc-help-trigger:focus-visible{
  border-color:rgba(80,227,164,.68);
  color:#eff8ff;
  outline:none;
}

:root[data-theme="light"] .ccc-help-surface{
  filter:drop-shadow(0 16px 30px rgba(31,62,100,.18));
}
:root[data-theme="light"] .ccc-help-inner{
  background:
    radial-gradient(180px 90px at 18% 0%, rgba(95,151,219,.15), transparent 68%),
    linear-gradient(180deg, rgba(252,254,255,.98), rgba(237,244,252,.98));
  border-color:rgba(128,158,198,.62);
  box-shadow:0 16px 34px rgba(31,62,100,.16), inset 0 1px 0 rgba(255,255,255,.82);
}
:root[data-theme="light"] .ccc-help-body{
  color:#3e5877;
}
:root[data-theme="light"] .ccc-help-note{
  color:#607b9d;
}
:root[data-theme="light"] .ccc-help-arrow{
  background:rgba(237,244,252,.98);
  border-color:rgba(128,158,198,.62);
}
:root[data-theme="light"] label.has-help,
:root[data-theme="light"] .panel h3.has-help,
:root[data-theme="light"] .size-unit-toggle__caption.has-help,
:root[data-theme="light"] .segmented-field__label.has-help,
:root[data-theme="light"] .multi-cutter-setting__label.has-help{
  text-decoration-color:rgba(47,126,168,.45);
}
:root[data-help-tips="off"] label.has-help,
:root[data-help-tips="off"] .panel h3.has-help,
:root[data-help-tips="off"] .size-unit-toggle__caption.has-help,
:root[data-help-tips="off"] .segmented-field__label.has-help,
:root[data-help-tips="off"] .multi-cutter-setting__label.has-help{
  cursor:inherit;
  text-decoration:none;
}

@media (max-width:640px){
  .ccc-help-surface,
  .ccc-help-surface--popover{
    max-width:calc(100vw - 24px);
  }
  .ccc-help-inner{
    border-radius:13px;
  }
}

@media (prefers-reduced-motion: reduce){
  .ccc-help-surface{
    transition:none;
    transform:none;
  }
  .ccc-help-surface.is-open{
    transform:none;
  }
  .viewport-controls__help-toggle-switch::after{
    transition:none;
  }
}


/* Brand link behaves like homepage logo */
.appbar .brand a { color: inherit; text-decoration: none; }

/* Hide legacy acct strip chips except Credits */
#acctStrip #acctEmail,
#acctStrip #btnSignOut { display:none !important; }




/* ===== In-viewport toolbar & HUD ===== */
.viewport-toolbar-stack{
  position:absolute;
  top:.6rem;
  right:.6rem;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:.45rem;
  pointer-events:none;
  z-index:20;
  max-width:calc(100% - 1.2rem);
}
.viewport-toolbar{
  display:flex;
  flex-direction:column;
  gap:.3rem;
  flex-wrap:nowrap;
  align-items:flex-end;
  justify-content:flex-end;
  pointer-events:auto;
  width:100%;
  max-width:100%;
}
.viewport-toolbar button{
  background:var(--surface-2);
  border:1px solid var(--edge);
  color:var(--btn-text);
  border-radius:.4rem;
  padding:.3rem .45rem;
  font-size:13px;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,color .2s ease;
}
.viewport-toolbar button.is-on,
.viewport-toolbar button[aria-pressed="true"]{
  color:var(--btn-text);
  border-color:rgba(255,153,0,.85);
  background:var(--surface-3);
  box-shadow:0 0 0 1px rgba(255,153,0,.38),0 0 14px rgba(255,136,0,.52);
}
#adminPanelToggleSlot{
  display:flex;
  pointer-events:auto;
  position:relative;
  z-index:40;
}
.viewport-controls{position:relative;z-index:40;display:flex;flex-direction:column;align-items:flex-end;gap:.4rem;pointer-events:auto;flex:0 0 auto;margin-left:0}
.viewport-controls__toggle{padding:.35rem .55rem;min-width:0}
.viewport-controls__menu{position:absolute;top:calc(100% + 4px);right:0;display:flex;flex-direction:column;gap:.35rem;padding:.6rem;border-radius:.7rem;border:1px solid var(--edge);background:linear-gradient(180deg,var(--surface-1),var(--surface-0));box-shadow:0 14px 32px rgba(0,0,0,.45);z-index:41}
.viewport-controls__menu[hidden]{display:none}
.viewport-controls__menu .btn{width:180px;justify-content:flex-start}
.viewport-controls__help-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between!important;
  gap:.65rem;
}
.viewport-controls__help-toggle-switch{
  position:relative;
  width:30px;
  height:17px;
  flex:0 0 auto;
  border-radius:999px;
  border:1px solid rgba(93,123,166,.72);
  background:rgba(15,22,34,.88);
  box-shadow:inset 0 1px 4px rgba(0,0,0,.28);
}
.viewport-controls__help-toggle-switch::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:#7f93ad;
  transition:transform .16s ease, background .16s ease;
}
.viewport-controls__help-toggle[aria-checked="true"] .viewport-controls__help-toggle-switch{
  border-color:rgba(80,227,164,.68);
  background:linear-gradient(180deg,rgba(36,127,111,.72),rgba(24,88,102,.82));
}
.viewport-controls__help-toggle[aria-checked="true"] .viewport-controls__help-toggle-switch::after{
  transform:translateX(13px);
  background:#e9fff6;
}
.viewport-dim-menu{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  width:180px;
  padding-top:.15rem;
}
.viewport-controls__menu .viewport-dim-menu__main{
  width:100%;
}
.viewport-dim-menu__layers{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.25rem;
}
.viewport-controls__menu .viewport-dim-menu__layer{
  width:auto;
  min-width:0;
  justify-content:center;
  padding:.24rem .2rem;
  font-size:11px;
  line-height:1.1;
}
.viewport-dim-targets{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.25rem;
  padding:.1rem 0 .15rem;
}
.viewport-dim-targets[hidden]{display:none}
.viewport-dim-targets label{
  display:flex;
  flex-direction:column;
  gap:.12rem;
  min-width:0;
  color:var(--ghost);
  font-size:9px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:0;
}
.viewport-dim-targets input{
  width:100%;
  min-width:0;
  height:24px;
  padding:.12rem .22rem;
  border-radius:.32rem;
  border:1px solid var(--edge);
  background:var(--surface-2);
  color:var(--btn-text);
  font-size:11px;
}
.viewport-dim-targets input:focus{
  outline:none;
  border-color:rgba(255,153,0,.9);
  box-shadow:0 0 0 1px rgba(255,153,0,.28);
}
.viewport-info{position:absolute;bottom:.6rem;left:.6rem;font-size:12px;color:var(--ghost);z-index:15}

/* Make viewport toolbar more compact on mobile */
@media (max-width:760px){
  .viewport-toolbar-stack{
    top:.5rem;
    right:.5rem;
    gap:.35rem;
    max-width:calc(100% - 1rem);
  }
  .viewport-toolbar{
    gap:.25rem;
  }
  .viewport-controls{
    gap:.3rem;
  }
  .viewport-toolbar button{
    padding:.25rem .38rem;
    font-size:12px;
    border-radius:.35rem;
  }
  .viewport-controls__menu .viewport-dim-menu__layer{
    padding:.22rem .15rem;
    font-size:10px;
  }
  .viewport-dim-targets input{
    height:22px;
    font-size:10px;
    padding:.1rem .16rem;
  }
  .viewport-info{
    bottom:.5rem;
    left:.5rem;
    font-size:11px;
  }
}

@media (max-width:520px){
  .viewport-toolbar button{
    padding:.22rem .35rem;
    font-size:11px;
  }
}

/* ===== Details elements (if used) ===== */
details{border:1px solid var(--edge);background:var(--surface-2);border-radius:.6rem;margin:.5rem 0}
details summary{cursor:pointer;font-weight:700;color:var(--btn-text);padding:.5rem .6rem;list-style:none}
details > *:not(summary){padding:.6rem}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .row{grid-template-columns:1fr}
  aside{order:2}
  main{order:1;min-height:60vh}
}

/* === Cookie Cutter Designs overlay ===================================== */
.designs-overlay { position: fixed; inset: 0; z-index: 60; display: none; }
.designs-overlay.open { display: grid; }

.designs-scrim {
  position: absolute; inset: 0;
  background: rgba(7,10,16,.72);
  backdrop-filter: blur(6px);
}

.designs-panel {
  position: relative; z-index: 1;
  margin: 5vh auto;
  max-width: 980px;
  width: calc(100% - 32px);
  height: min(90vh, calc(100vh - 40px));
  max-height: calc(100vh - 20px);
  background: linear-gradient(180deg,var(--surface-1),var(--surface-0));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.designs-head {
  display:flex; align-items:center; gap:.6rem;
  padding:.7rem .8rem; border-bottom:1px solid var(--line);
}
.designs-head h3 {
  margin:0; font-size:14px; color:var(--sub); letter-spacing:.4px; text-transform:uppercase;
}
.designs-head .spacer { margin-left:auto; }
.designs-head input[type="search"] {
  width: 280px; max-width: 40vw;
  background:var(--surface-2); border:1px solid var(--edge); color:var(--text);
  border-radius:.5rem; padding:.42rem .55rem; font-size:13px;
}
.designs-close {
  background:var(--surface-3); border:1px solid var(--btn-border); color:var(--btn-text);
  border-radius:.5rem; padding:.35rem .6rem; font-size:13px; cursor:pointer;
}

.designs-grid {
  padding:.8rem;
  overflow:auto;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6rem;
  height: 100%;
  min-height: 0;
}
@media (max-width:980px){ .designs-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:680px){ .designs-grid{ grid-template-columns:repeat(2,1fr); } }

/* Keep rows packed at the top; don't stretch them vertically */
.designs-grid{
  align-content: start;   /* key line */
  /* optional: also keep columns packed to the left */
  justify-content: start; /* or use: place-content: start; */
}



.design-card {
  display:flex; flex-direction:column; gap:.45rem;
  background:var(--surface-2); border:1px solid var(--edge); border-radius:.6rem; padding:.5rem;
  cursor:pointer; transition:border-color .15s ease, transform .06s ease;
}
.design-card:hover { border-color:#2f4a71; transform: translateY(-1px); }

/* Square thumbnail tiles (new) */
.design-card .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;          /* force a square tile */
  background: var(--surface-3); /* neutral pad behind art */
  border-radius: .4rem;
  overflow: hidden;
  display: grid;
  place-items: center;           /* center the image if it does not fill */
}
.design-card__badge-row{
  min-height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.design-card__badge{
  background:#1d9b63;
  color:#f5fff7;
  font-size:11px;
  font-weight:700;
  padding:.25rem .6rem;
  border-radius:999px;
  letter-spacing:.03em;
  box-shadow:0 2px 4px rgba(0,0,0,.2);
}
.design-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;           /* no cropping; keep aspect */
  image-rendering: auto;
  display: block;
  background: transparent;
}

/* Prevent tall stretching of single-row grids */
.designs-grid{
  padding:.8rem; overflow:auto;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6rem;
  align-items: start;              /* cards keep intrinsic height */
}

/* Fallback: keep images square even without .thumb wrapper */
.design-card img{
  width:100%;
  aspect-ratio:1 / 1;
  height:auto;
  object-fit:contain;
  border-radius:.4rem;
  background:#0b1119;
  display:block;
}


.design-card .title {
  font-size:13px; color:#cfe1fb; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.designs-empty { padding:1rem; color:var(--ghost); }

/* === Designs overlay: two-column layout (sidebar + grid) === */
.designs-panel { display: grid; grid-template-rows: auto minmax(0,1fr); }
.designs-body {
  display: grid;
  grid-template-columns: 220px 1fr;           /* sidebar | grid */
  gap: .8rem;
  padding: .8rem;
  min-height: 320px;
  overflow: hidden;
}

@media (max-width: 760px){
  .designs-body { grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .designs-overlay{
    z-index:140;
  }
  .designs-panel{
    width:calc(100% - 18px);
    height:calc(100dvh - 24px);
    max-height:calc(100dvh - 24px);
    margin:12px auto;
    border-radius:12px;
  }
  .designs-head{
    gap:.45rem;
    padding:.55rem .65rem;
  }
  .designs-head h3{
    font-size:12px;
    line-height:1.15;
    flex:0 0 auto;
  }
  .designs-head input[type="search"]{
    flex:1 1 auto;
    width:auto;
    max-width:none;
    min-width:0;
    padding:.38rem .48rem;
  }
  .designs-close{
    flex:0 0 auto;
    padding:.34rem .52rem;
    font-size:12px;
  }
  .designs-body{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:minmax(0,1fr) auto;
    gap:.5rem;
    min-height:0;
    padding:.55rem;
  }
  .designs-grid{
    grid-row:1;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.55rem;
    padding:.15rem .1rem .45rem;
    min-height:0;
    height:100%;
    justify-content:stretch;
    scrollbar-width:thin;
  }
  .design-card{
    gap:.35rem;
    padding:.42rem;
    border-radius:.55rem;
  }
  .design-card__badge-row{
    min-height:18px;
  }
  .design-card__badge{
    font-size:10px;
    line-height:1.05;
    padding:.22rem .45rem;
  }
  .design-card .title{
    font-size:12px;
    min-height:2.35em;
    line-height:1.15;
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  .designs-nav{
    grid-row:2;
    max-height:92px;
    border-radius:.55rem;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-rows:auto;
    align-items:center;
    gap:.45rem;
    padding:.45rem;
    overflow:hidden;
  }
  .designs-nav .nav-head{
    grid-column:1;
    padding:0;
    border:0;
    background:transparent;
    font-size:10px;
    letter-spacing:.08em;
    white-space:nowrap;
  }
  .cat-all{
    grid-column:1;
    margin:0;
    width:auto;
    min-height:30px;
    padding:.28rem .5rem;
    white-space:nowrap;
  }
}

/* Sidebar styled like your left dock panels */
.designs-nav {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: .6rem;
  overflow: hidden;
}

.designs-nav .nav-head {
  padding: .55rem .7rem;
  color: #8b99aa;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,var(--surface-2),#0f1622);
}

.trace-tuner { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 28px); }
.trace-tuner.is-open { display: flex; }
.trace-tuner__scrim { position: absolute; inset: 0; background: rgba(6,10,18,.78); backdrop-filter: blur(10px); }
.trace-tuner__panel { position: relative; z-index: 1; width: min(1520px, calc(100% - 32px)); max-height: calc(100vh - 32px); height: min(860px, calc(100vh - 32px)); background: radial-gradient(140% 120% at 14% 0%, rgba(38,86,126,.18) 0%, rgba(9,14,22,.96) 50%, rgba(7,12,20,.98) 100%); border: 1px solid rgba(92,138,214,.55); border-radius: 20px; box-shadow: 0 34px 80px rgba(4,8,20,.7); padding: clamp(22px,2.2vw,32px); display: grid; gap: 18px; overflow: hidden; }
.trace-tuner__head { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.trace-tuner__eyebrow { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .2px; font-size: 11px; color: rgba(210,224,255,.72); }
.trace-tuner__title { margin: 0; font-size: 16px; color: #f4f7ff; letter-spacing: .2px; }
.trace-tuner__close { position: absolute; top: clamp(14px, 1.8vw, 18px); right: clamp(14px, 1.8vw, 18px); border: 1px solid rgba(116,156,228,.55); width: 38px; height: 38px; border-radius: 14px; background: rgba(12,18,30,.92); color: #e7efff; display: grid; place-items: center; font-size: 22px; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .2s ease; box-shadow: 0 16px 32px rgba(6,10,20,.55); }
.trace-tuner__close:hover { transform: translateY(-1px); border-color: rgba(156,198,255,.85); background: rgba(22,32,48,.96); color: #fff; }
.trace-tuner__preset { display: grid; gap: 6px; flex: 1 1 360px; min-width: 260px; }
.trace-tuner__preset-label { margin: 0; font-size: 11px; letter-spacing: .3px; text-transform: uppercase; color: rgba(200,218,248,.76); }
.trace-tuner__preset-select { max-width: 520px; }
.trace-tuner__preset-desc { font-size: 12px; line-height: 1.35; color: rgba(210,224,255,.72); max-width: 680px; }
.trace-tuner__preset-card { padding: 14px; border-radius: 14px; border: 1px solid rgba(80,120,200,.24); background: rgba(12,18,30,.6); box-shadow: inset 0 0 0 1px rgba(96,142,224,.12); }
.trace-tuner__summary-hint { font-size: 12px; font-weight: 500; color: rgba(200,218,248,.62); }
.trace-tuner__top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.trace-tuner__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px,2.2vw,22px); align-items: stretch; min-height: 0; height: 100%; }
.trace-tuner__preview-card { background: linear-gradient(154deg, rgba(26,34,54,.92) 0%, rgba(18,24,40,.98) 100%); border: 1px solid rgba(76,120,194,.5); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(96,142,224,.15); padding: 14px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; }
.trace-tuner__settings-card { grid-template-rows: auto minmax(0, 1fr) auto; }
.trace-tuner__settings-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; display: grid; gap: 14px; align-content: start; align-items: start; scrollbar-width: none; -ms-overflow-style: none; }
.trace-tuner__settings-scroll::-webkit-scrollbar { display: none; }
.trace-tuner__preview-label { font-size: 12px; letter-spacing: .3px; color: rgba(213,226,255,.72); text-transform: uppercase; }
.trace-tuner__preview-frame { position: relative; min-height: 0; height: 100%; background: radial-gradient(120% 120% at 40% 10%, rgba(46,72,118,.2) 0%, rgba(14,20,36,.95) 42%, rgba(10,14,24,.98) 100%); border: 1px dashed rgba(108,148,220,.35); border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.trace-tuner__preview-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 16px 40px rgba(4,10,24,.55); }
.trace-tuner__preview-status { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; color: rgba(210,224,255,.72); font-size: 13px; text-align: center; padding: 6px 10px; pointer-events: none; }
.trace-tuner__preview-status:empty { display: none; }
.trace-tuner__svg { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; border-radius: 12px; box-shadow: 0 16px 40px rgba(4,10,24,.55); }
.trace-tuner__controls { background: linear-gradient(164deg, rgba(20,30,50,.92) 0%, rgba(14,20,32,.98) 100%); border: 1px solid rgba(74,118,192,.55); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(122,168,248,.08), 0 18px 40px rgba(4,8,20,.6); padding: 16px 18px; display: grid; gap: 14px; }
.trace-tuner__section { display: grid; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(80,120,200,.24); background: rgba(12,18,30,.6); }
.trace-tuner__section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.trace-tuner__section-title { font-size: 11px; letter-spacing: .3px; text-transform: uppercase; color: rgba(214,227,255,.78); }
.trace-tuner__section-sub { font-size: 12px; color: rgba(200,218,248,.62); }
.trace-tuner__advanced { border-radius: 12px; border: 1px solid rgba(80,120,200,.24); background: rgba(12,18,30,.5); overflow: hidden; }
.trace-tuner__advanced-summary { padding: 10px 12px; cursor: pointer; color: var(--btn-text); font-weight: 700; font-size: 13px; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.trace-tuner__advanced-summary::-webkit-details-marker { display: none; }
.trace-tuner__advanced[open] .trace-tuner__advanced-summary { border-bottom: 1px solid rgba(80,120,200,.22); }
.trace-tuner__advanced-body { padding: 12px; display: grid; gap: 12px; }
.trace-tuner__group { padding: 10px 10px 12px; border-radius: 12px; border: 1px solid rgba(80,120,200,.22); background: rgba(10,14,24,.55); display: grid; gap: 10px; }
.trace-tuner__group-title { font-size: 11px; letter-spacing: .3px; text-transform: uppercase; color: rgba(200,218,248,.7); }
.trace-tuner__mode { display: grid; gap: 8px; }
.trace-tuner__mode-label { font-size: 12px; letter-spacing: .2px; color: rgba(200,218,248,.76); }
.trace-tuner__mode-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 2px; border-radius: 12px; background: rgba(12,18,30,.9); border: 1px solid rgba(96,138,216,.4); }
.trace-tuner__mode-btn { border: 0; padding: 8px 10px; border-radius: 10px; background: transparent; color: #d6e4ff; font-size: 12px; letter-spacing: .1px; cursor: pointer; transition: background .16s ease, transform .12s ease, color .16s ease; }
.trace-tuner__mode-btn:hover { background: rgba(44,72,128,.35); color: #fff; transform: translateY(-1px); }
.trace-tuner__mode-btn.is-active { background: linear-gradient(135deg, #3d7be0 0%, #2e64c6 100%); color: #fff; box-shadow: 0 12px 26px rgba(40,90,190,.45); }
.trace-tuner__slider-row { display: grid; gap: 6px; }
.trace-tuner__slider-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.trace-tuner__slider-header label { color: #e4edff; font-size: 14px; }
.trace-tuner__value { font-size: 13px; color: rgba(206,222,255,.78); }
.trace-tuner__controls input[type=range] { width: 100%; accent-color: #6aa4ff; }
.trace-tuner__toggle { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(210,226,255,.8); cursor: pointer; }
.trace-tuner__toggle input { width: 16px; height: 16px; accent-color: #6ea8ff; }
.trace-tuner__fill-toggle { width: max-content; justify-self: start; align-self: flex-start; max-width: 100%; }
.trace-tuner__fill-toggle .toggle-control__label { flex: 0 0 auto; white-space: nowrap; overflow: visible; text-overflow: clip; }
.trace-tuner__actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.trace-tuner__action-group { display: flex; gap: 10px; align-items: center; }
.trace-tuner.is-busy .trace-tuner__panel { opacity: .96; }
.trace-tuner-open #dock { pointer-events: none; }
@media (max-width: 1100px) {
  .trace-tuner__body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .trace-tuner__panel { padding: 14px; max-height: calc(100vh - 14px); height: calc(100vh - 14px); overflow: auto; }
  .trace-tuner__head { flex-direction: column; align-items: flex-start; }
  .trace-tuner__actions { flex-direction: column; align-items: stretch; }
  .trace-tuner__top-actions { justify-content: flex-start; }
}
body.trace-tuner-open { overflow: hidden; }

.ai-picker { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: clamp(20px,4vw,36px); }
.ai-picker.is-open { display: flex; }
.ai-picker__scrim { position: absolute; inset: 0; background: rgba(7,10,16,.78); backdrop-filter: blur(10px); }
.ai-picker__panel { position: relative; z-index: 1; width: min(1320px, calc(100% - 64px)); max-height: calc(100vh - 64px); background: radial-gradient(160% 160% at 50% 0%, rgba(28,46,96,.22) 0%, rgba(12,18,34,.96) 42%, rgba(6,10,20,.98) 100%); border: 1px solid rgba(72,114,194,.5); border-radius: 24px; box-shadow: 0 42px 96px rgba(4,8,20,.68); padding: clamp(22px,2.2vw,30px); display: grid; grid-template-rows: auto 1fr; gap: clamp(18px,1.8vh,24px); overflow: hidden; }
.ai-picker__head { position: relative; display: grid; gap: clamp(12px,1.4vh,18px); }
.ai-picker__close { position: absolute; top: -6px; right: -6px; width: 38px; height: 38px; border-radius: 14px; border: 1px solid rgba(90,130,206,.6); background: rgba(14,22,38,.92); color: #e4ecff; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .12s ease; box-shadow: 0 16px 32px rgba(6,10,20,.55); }
.ai-picker__close:focus-visible { outline: none; border-color: rgba(146,188,255,.85); box-shadow: 0 0 0 3px rgba(80,120,210,.4); }
.ai-picker__close:hover { background: rgba(32,46,78,.96); border-color: rgba(130,172,244,.75); color: #fff; transform: translateY(-1px); }
.ai-picker__head-main { display: flex; flex-wrap: wrap; gap: clamp(12px,1.8vw,18px); align-items: center; justify-content: space-between; padding-right: 44px; }
.ai-picker__headings { display: grid; gap: 6px; }
.ai-picker__head h3 { margin: 0; font-size: 15px; letter-spacing: 0; text-transform: none; color: #e6efff; font-weight: 600; }
.ai-picker__title-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: rgba(96,132,210,.22); border: 1px solid rgba(134,178,255,.45); box-shadow: inset 0 0 0 1px rgba(134,178,255,.2), 0 12px 28px rgba(12,20,46,.45); text-transform: uppercase; letter-spacing: .5px; color: inherit; }
.ai-picker__title-chip::before { content: "\2728"; font-size: 14px; }
.ai-picker__subtitle { margin: 0; font-size: 13px; color: rgba(214,227,255,.75); letter-spacing: .2px; }
.ai-picker__headings { flex: 1 1 clamp(280px, 40vw, 520px); }
.ai-picker__search { margin: 0; flex: 0 1 clamp(320px, 32vw, 420px); }
.ai-picker__search-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 14px; background: rgba(20,28,48,.92); border: 1px solid rgba(90,130,206,.45); box-shadow: inset 0 0 0 1px rgba(58,94,166,.2), 0 14px 28px rgba(6,10,20,.5); }
.ai-picker__search-field input[type=search] { flex: 1; min-width: 0; background: transparent; border: 0; color: #f1f6ff; font-size: 13px; outline: none; padding: 6px 0; }
.ai-picker__search-field:focus-within { border-color: rgba(132,172,246,.75); box-shadow: inset 0 0 0 1px rgba(92,138,222,.55), 0 0 0 4px rgba(72,118,216,.28), 0 22px 46px rgba(6,10,20,.6); }
.ai-picker__search-field input[type=search]::placeholder { color: rgba(205,219,243,.55); }
.ai-picker__refresh { padding: 0; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; box-shadow: 0 16px 32px rgba(49,95,255,.28); }
.ai-picker__grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-auto-rows: 1fr;
  gap: clamp(18px,1.6vw,22px);
  align-items: stretch;
  justify-items: stretch;
  padding: 0 clamp(6px,1vw,18px) clamp(20px,4vh,32px);
  overflow-y: auto;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
}
.ai-picker__tile { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto auto; gap: 14px; padding: 18px; background: linear-gradient(184deg, rgba(24,36,60,.96) 0%, rgba(14,22,40,.99) 100%); border: 1px solid rgba(66,104,170,.6); border-radius: 20px; box-shadow: 0 26px 52px rgba(4,8,20,.62); transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease; }
.ai-picker__tile.is-ready:hover { border-color: rgba(118,168,255,.8); box-shadow: 0 22px 48px rgba(10,20,40,.65); transform: translateY(-2px); }
.ai-picker__thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: rgba(240,245,255,.9); border: 1px solid rgba(174,196,232,.5); box-shadow: inset 0 0 0 1px rgba(208,222,248,.45); }
.ai-picker__preview { width: 100%; height: 100%; display: none; align-items: center; justify-content: center; background: transparent; }
.ai-picker__preview > svg,
.ai-picker__preview > img,
.ai-picker__preview > canvas { max-width: 90%; max-height: 90%; width: auto; height: auto; display: block; filter: drop-shadow(0 8px 18px rgba(17,27,44,.28)); }
.ai-picker__tile.is-ready .ai-picker__preview { display: flex; }
.ai-picker__tile.is-switching .ai-picker__preview { opacity: .45; }
.ai-picker__spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(160,198,255,.22); border-top-color: #88b5ff; animation: ai-picker-spin .8s linear infinite; }
.ai-picker__tile:not(.is-loading) .ai-picker__spinner { display: none; }
.ai-picker__tile.is-switching .ai-picker__spinner { display: block; }
.ai-picker__retry { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 12px; background: rgba(13,20,34,.92); border: 1px solid rgba(118,158,228,.6); color: #d6e4ff; font-size: 16px; display: none; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease,border-color .2s ease,color .2s ease; }
.ai-picker__retry:hover { background: rgba(24,34,53,.95); border-color: rgba(148,188,248,.75); color: #fff; }
.ai-picker__tile.is-error .ai-picker__retry { display: flex; }
.ai-picker__status { font-size: 12px; color: rgba(199,214,239,.8); min-height: 32px; display: flex; align-items: center; justify-content: center; text-align: center; }
.ai-picker__status:empty::after { content: '\00a0'; }
.ai-picker__tile.is-error .ai-picker__status { color: #f6bcbc; }
.ai-picker__tile.is-ready .ai-picker__status { color: #d9e6ff; }
.ai-picker__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; align-items: center; justify-items: stretch; }
.ai-picker__actions .btn { min-width: 0; padding: 8px 12px; font-size: 12px; line-height: 1.2; justify-content: center; }
.ai-picker__status { grid-column: 1 / -1; min-height: 24px; }
.ai-picker__draw[aria-busy="true"] { opacity: .65; pointer-events: none; }
.ai-picker__tile.is-loading .ai-picker__select,
.ai-picker__tile.is-error .ai-picker__select { opacity: .55; pointer-events: none; }
.ai-picker__tile.is-loading .ai-picker__draw,
.ai-picker__tile.is-error .ai-picker__draw { opacity: .55; pointer-events: none; }
.ai-picker__modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 2px; background: rgba(14,22,38,.88); border-radius: 999px; border: 1px solid rgba(74,118,196,.45); }
.ai-picker__mode { position: relative; flex: 1 1 auto; min-width: 0; padding: 6px 10px; font-size: 11px; line-height: 1.3; border-radius: 999px; border: 1px solid transparent; background: transparent; color: #cfe1fb; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .12s ease; letter-spacing: .2px; }
.ai-picker__mode:hover:not([disabled]) { background: rgba(36,52,82,.96); color: #fff; transform: translateY(-1px); }
.ai-picker__mode.is-active { background: rgba(58,108,228,.95); border-color: rgba(108,148,228,.8); color: #fff; box-shadow: inset 0 0 0 1px rgba(162,192,255,.5); }
.ai-picker__mode:disabled { opacity: .45; cursor: default; transform: none; }
.ai-picker__mode[aria-busy="true"] { opacity: .6; cursor: progress; }
.ai-picker__mode[data-mode-state="error"]:not(.is-active) { border-color: rgba(214,92,92,.75); color: #f6c7c7; }
.ai-picker__mode[data-mode-state="error"]:not(.is-active):hover:not([disabled]) { background: rgba(86,26,30,.85); border-color: rgba(230,124,124,.85); color: #fff; }

@media (max-width: 960px){
  .ai-picker__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px){
  .ai-picker { align-items: flex-start; }
  .ai-picker__panel { width: calc(100% - 32px); max-height: calc(100vh - 32px); height: calc(100vh - 32px); padding: 20px; }
}

@media (max-width: 560px){
  .ai-picker { padding: 16px; }
  .ai-picker__panel {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    height: calc(100vh - 16px);
    padding: 18px;
    gap: 16px;
  }
  .ai-picker__head-main { flex-direction: column; align-items: stretch; padding-right: 0; }
  .ai-picker__close { top: -4px; right: -4px; }
  .ai-picker__headings { flex-basis: auto; }
  .ai-picker__search { flex: 1 1 auto; }
  .ai-picker__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
    padding: 0 clamp(6px,4vw,18px) clamp(20px,10vh,36px);
  }
  .ai-picker__actions { grid-template-columns: 1fr; }
}

@keyframes ai-picker-spin { to { transform: rotate(360deg); } }

body.ai-picker-open { overflow: hidden; }

.designs-tree {
  padding: .4rem .4rem .6rem;
  display: grid;
  gap: .35rem;
}

/* Top-level groups mimic <details.panel>/<summary> look */
.cat-top {
  border: 1px solid var(--line);
  background: #0f1622;
  border-radius: .5rem;
  overflow: hidden;
}
.cat-top summary {
  cursor: pointer;
  list-style: none;
  padding: .45rem .55rem;
  color: #cfe1fb;
  display: flex; align-items: center; gap: .4rem;
}
.cat-top summary::-webkit-details-marker { display: none; }
.cat-top summary .count {
  margin-left: auto;
  color: var(--ghost);
  font-size: 12px;
}

/* Subcategory list */
.cat-sub {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: .35rem;
  display: grid; gap: .3rem;
}
.cat-sub button {
  text-align: left;
  background: #141b26;
  border: 1px solid var(--edge);
  color: #cfe1fb;
  border-radius: .4rem;
  padding: .32rem .45rem;
  font-size: 13px;
  cursor: pointer;
}
.cat-sub button:hover { border-color:#2f4a71; }
.cat-sub button.is-active {
  border-color:#2f4a71;
  box-shadow: 0 0 0 1px rgba(103,179,255,.15) inset;
}

@media (max-width: 760px){
  .designs-tree{
    grid-column:2;
    grid-row:1 / span 2;
    display:flex;
    align-items:center;
    gap:.4rem;
    overflow-x:auto;
    overflow-y:hidden;
    min-width:0;
    padding:.05rem 0 .2rem;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .designs-tree::-webkit-scrollbar{
    display:none;
  }
  .designs-tree .cat-top{
    margin:0;
    flex:0 0 auto;
    border:0;
    border-radius:0;
    background:transparent;
    overflow:visible;
  }
  .designs-tree .cat-top summary{
    min-height:30px;
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    padding:.32rem .55rem;
    border:1px solid var(--edge);
    border-radius:999px;
    background:#141b26;
    color:#cfe1fb;
    font-size:12px;
    white-space:nowrap;
  }
  .designs-tree .cat-top[open] > summary{
    border-color:#2f4a71;
    background:var(--surface-3);
    box-shadow:0 0 0 1px rgba(103,179,255,.15) inset;
  }
  .designs-tree .cat-top summary .count{
    margin-left:0;
    font-size:11px;
  }
  .designs-tree .cat-sub{
    display:none;
  }
}

/* "All" filter button */
.cat-all {
  margin: .35rem .35rem 0;
  display: block;
  width: calc(100% - .7rem);
  text-align: center;
  background:var(--surface-3);
  border:1px solid var(--btn-border);
  color:var(--btn-text);
  border-radius:.45rem;
  padding:.35rem .45rem;
  font-size:13px;
  cursor:pointer;
}
.cat-all:hover { border-color:#2f4a71; }

/* Grid keeps cards at intrinsic height (no tall stretch) */
.designs-grid {
  align-items: start; /* already added earlier; repeat here for clarity */
}

/* Square thumbnail wrapper (already added; kept for completeness) */
.design-card .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0b1119;
  border-radius: .4rem;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.design-card .thumb img{
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* Account menu should never show until logged in */
.acctMenuRoot { display: none !important; }

/* Only show it when it's inside our strip AND marked as logged in */
#acctStrip .acctMenuRoot.logged-in { display: inline-flex !important; }

/* We only want Credits visible next to the auth control; keep email & the old Sign out hidden */
#acctStrip #acctEmail,
#acctStrip #btnSignOut { display: none !important; }

.export-confirm{display:flex;flex-direction:column;gap:1.1rem;}
.export-confirm__card{display:flex;gap:1rem;align-items:flex-start;padding:1rem;border-radius:16px;background:linear-gradient(165deg,rgba(17,27,43,.94),rgba(10,16,28,.94));border:1px solid rgba(102,142,198,.28);box-shadow:inset 0 0 0 1px rgba(38,58,92,.35);flex-wrap:wrap;}
.export-confirm__thumb{width:152px;max-width:100%;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:radial-gradient(circle at 30% 30%,rgba(92,143,211,.38),rgba(14,22,36,.9));border:1px solid rgba(116,166,233,.3);box-shadow:0 14px 30px rgba(5,9,18,.45);display:flex;align-items:center;justify-content:center;}
.export-confirm__thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.export-confirm__thumb--empty{font-size:12px;color:#8da2bb;letter-spacing:.02em;text-transform:uppercase;background:rgba(18,28,44,.72);border-style:dashed;}
.export-confirm__details{display:flex;flex-direction:column;gap:.5rem;min-width:0;flex:1 1 220px;}
.export-confirm__eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#7fa8e0;font-weight:600;}
.export-confirm__title{margin:0;font-size:18px;font-weight:600;color:#f4f8ff;letter-spacing:-.01em;}
.export-confirm__meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:12.5px;color:var(--sub);align-items:center;}
.export-confirm__meta-sep{color:#41516a;}
.export-confirm__meta-item--free{display:inline-flex;gap:.4rem;align-items:center;color:#72f0b5;}
.export-confirm__summary{display:flex;flex-wrap:wrap;gap:.9rem;padding:.9rem 1rem;border-radius:14px;background:rgba(14,22,36,.78);border:1px solid rgba(87,128,189,.28);box-shadow:inset 0 0 0 1px rgba(32,49,78,.32);}
.export-confirm__summary-item{display:flex;flex-direction:column;gap:.25rem;min-width:140px;}
.export-confirm__summary-label{font-size:12px;color:#7f97b7;text-transform:uppercase;letter-spacing:.08em;}
.export-confirm__summary-value{font-size:16px;color:#e8f1ff;font-weight:600;}
.export-confirm__summary-value--free{color:#72f0b5;}
.export-confirm__strike{text-decoration:line-through;opacity:.55;}
.export-confirm__free{font-weight:700;}
.export-confirm__checklist{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.35rem;}
.export-confirm__check{display:flex;gap:.45rem;align-items:flex-start;padding:.4rem .6rem;border-radius:10px;background:rgba(15,23,38,.65);border:1px solid rgba(71,108,168,.26);}
.export-confirm__check-icon{display:inline-flex;width:20px;height:20px;border-radius:999px;background:rgba(74,191,141,.16);color:#66f1b6;font-size:12px;font-weight:700;align-items:center;justify-content:center;margin-top:.15rem;line-height:1;}
.export-confirm__check-icon::before{content:"\2713";}
.export-confirm__check-icon--warn{background:transparent;color:#ffd034;font-size:14px;font-weight:700;width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;margin-top:.15rem;margin-left:0;padding:0;}
.export-confirm__check-icon--warn::before{content:"\26A0";}
.export-confirm__check-text{font-size:12px;color:var(--sub);line-height:1.35;}
.export-confirm__check-text strong{display:inline;font-size:12px;color:#f1f6ff;font-weight:600;margin-right:.3rem;}
.export-flow__slot{display:grid;}
.export-flow__panel{grid-area:1 / 1;transition:opacity 180ms ease, transform 180ms ease;opacity:0;transform:translateY(6px);pointer-events:none;}
.export-flow__panel.is-active{opacity:1;transform:translateY(0);pointer-events:auto;}
.export-flow__status-card{flex-direction:column;align-items:flex-start;gap:.55rem;}
.export-flow__status-title{font-size:16px;font-weight:600;color:#f1f6ff;letter-spacing:-.01em;}
.export-flow__status-sub{font-size:12px;color:var(--sub);}
.export-flow__status-free{font-size:12px;color:#72f0b5;}
.export-flow__status-ref{font-size:12px;color:var(--sub);}
.export-flow__status-card--error{border-color:rgba(255,208,52,0.28);}
.buy-credits{display:flex;flex-direction:column;gap:1rem;max-width:560px;width:100%;}
.buy-credits__hero{padding:1.15rem 1.1rem;border-radius:20px;background:linear-gradient(165deg,rgba(18,30,50,.98),rgba(6,11,20,.94));border:1px solid rgba(92,139,207,.3);box-shadow:inset 0 0 0 1px rgba(36,57,96,.34);}
.buy-credits__hero-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.6rem;}
.buy-credits__eyebrow{display:block;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#8fb3e6;}
.buy-credits__hero-pill,
.buy-credits__option-badge{display:inline-flex;align-items:center;gap:.45rem;text-align:left;background:linear-gradient(135deg, rgba(104,193,255,0.20), rgba(80,227,164,0.18));border:1px solid rgba(135,178,255,.45);color:#eaf3ff;border-radius:999px;box-shadow:0 18px 44px rgba(5,10,18,.28);text-transform:uppercase;}
.buy-credits__hero-pill{min-height:32px;padding:.28rem .85rem;font-size:11.5px;font-weight:800;letter-spacing:.1em;}
.buy-credits__title{margin:0 0 .45rem;font-size:24px;font-weight:700;color:#f4f8ff;letter-spacing:-.03em;line-height:1.08;}
.buy-credits__text{margin:0;font-size:13.5px;color:#b5c7de;line-height:1.58;}
.buy-credits__section{display:flex;flex-direction:column;gap:.45rem;}
.buy-credits__section-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;}
.buy-credits__section-label{font-size:12px;color:#8ea4c0;text-transform:uppercase;letter-spacing:.14em;}
.buy-credits__options{display:flex;flex-direction:column;gap:.7rem;}
.buy-credits__option{display:block;cursor:pointer;position:relative;}
.buy-credits__option-input{position:absolute;opacity:0;pointer-events:none;}
.buy-credits__option-body{display:flex;gap:.85rem;align-items:flex-start;padding:1rem 1.05rem;border-radius:18px;background:rgba(13,20,34,.92);border:1px solid rgba(68,104,164,.42);box-shadow:inset 0 0 0 1px rgba(25,38,64,.7);transition:background .2s,border-color .2s,box-shadow .2s,transform .2s;}
.buy-credits__option:hover .buy-credits__option-body{border-color:rgba(118,167,244,.76);transform:translateY(-1px);}
.buy-credits__option-indicator{width:18px;height:18px;border-radius:999px;border:2px solid rgba(118,152,205,.72);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:.25rem;position:relative;}
.buy-credits__option-indicator::after{content:'';width:8px;height:8px;border-radius:999px;background:#7ed3ff;opacity:0;transition:opacity .2s;}
.buy-credits__option-input:checked + .buy-credits__option-body{border-color:rgba(127,208,255,.92);box-shadow:0 0 0 1px rgba(111,195,255,.36),0 18px 34px rgba(7,15,28,.32),inset 0 0 0 1px rgba(33,56,96,.92);}
.buy-credits__option-input:checked + .buy-credits__option-body .buy-credits__option-indicator{border-color:#7ed3ff;}
.buy-credits__option-input:checked + .buy-credits__option-body .buy-credits__option-indicator::after{opacity:1;}
.buy-credits__option-content{flex:1;display:flex;flex-direction:column;gap:.45rem;min-width:0;}
.buy-credits__option-top{display:flex;gap:.8rem;align-items:flex-start;justify-content:space-between;}
.buy-credits__option-copy{display:flex;flex-direction:column;gap:.25rem;min-width:0;}
.buy-credits__option-line{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;}
.buy-credits__option-title{font-size:17px;font-weight:700;color:#f2f7ff;}
.buy-credits__option-badge{min-height:24px;padding:.14rem .55rem;font-size:11px;font-weight:700;letter-spacing:.08em;}
.buy-credits__option-sub{font-size:12.5px;color:#a8bdd7;line-height:1.45;}
.buy-credits__option-price-block{display:flex;flex-direction:column;align-items:flex-end;gap:.18rem;text-align:right;flex-shrink:0;}
.buy-credits__option-price{font-size:22px;font-weight:700;color:#d4ecff;letter-spacing:-.02em;}
.buy-credits__option-unit{font-size:11.5px;color:#7fa3ca;text-transform:uppercase;letter-spacing:.08em;}
.buy-credits__note{margin:0;padding:.8rem .9rem;border-radius:16px;background:rgba(11,18,30,.74);border:1px solid rgba(61,92,135,.32);font-size:12.5px;color:#9eb3cf;line-height:1.5;}
.buy-credits__note strong{color:#eef5ff;font-weight:700;}
@media (max-width:600px){
  .export-confirm__card{padding:.85rem;gap:.85rem;}
  .export-confirm__thumb{width:100%;max-height:180px;}
  .export-confirm__summary{flex-direction:column;gap:.7rem;}
  .buy-credits__hero{padding:1rem .95rem;}
  .buy-credits__hero-head,
  .buy-credits__option-top,
  .buy-credits__section-head{flex-direction:column;align-items:flex-start;}
  .buy-credits__option-price-block{align-items:flex-start;text-align:left;}
}

.toast-stack{position:fixed;top:16px;right:16px;display:flex;flex-direction:column;gap:.6rem;z-index:120;pointer-events:none;}
.toast{min-width:220px;max-width:320px;background:rgba(15,22,32,.95);color:#e6edf7;border:1px solid #2f4059;border-radius:12px;padding:.75rem 1rem;box-shadow:0 18px 38px rgba(0,0,0,.35);font-size:13px;line-height:1.45;pointer-events:auto;opacity:0;transform:translateY(-10px);animation:toast-in .25s ease forwards;}
.toast--success{border-color:#2d8f66;color:#dff9ee;}
.toast--error{border-color:#bf4a52;color:#ffd6d6;}
.toast__headline{margin:0;font-weight:600;font-size:13.5px;}
.toast__body{margin:.35rem 0 0;font-size:12.5px;color:#a9b7c8;}
.toast[data-leaving="true"]{animation:toast-out .18s ease forwards;}
@keyframes toast-in{to{opacity:1;transform:translateY(0);}}
@keyframes toast-out{to{opacity:0;transform:translateY(-8px);}}

.order-items {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.4;
}
.order-items li + li {
  margin-top: 0.25rem;
}

/* ===== Custom Color Picker Popover ===== */
.color-picker-popover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: none; /* keep app sharp when picker is open */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.color-picker-popover[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.color-picker-popover__content {
  background: linear-gradient(180deg, #1a2332, #141c28);
  border: 1px solid rgba(114, 150, 205, 0.25);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 340px;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.color-picker-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2ebf8;
  font-weight: 600;
  font-size: 15px;
}

.color-picker-popover__close {
  background: transparent;
  border: none;
  color: var(--sub);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.color-picker-popover__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.color-picker-popover__body {
  padding: 18px;
}

/* Preview & Hex Input */
.color-picker-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.color-picker-preview__swatch {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.color-picker-preview__hex {
  flex: 1;
  background: #0c1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e8f0fa;
  font-size: 16px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  padding: 12px 14px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.color-picker-preview__hex::placeholder {
  color: #5a6b7e;
  opacity: 1;
}

.color-picker-preview__hex:focus {
  outline: none;
  border-color: rgba(103, 179, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(103, 179, 255, 0.15);
  background: #0f141b;
}

.color-picker-preview__hex.error {
  border-color: rgba(255, 100, 100, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.15);
}

/* Saturation/Lightness Gradient Picker */
.color-picker-gradient {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 8px;
  margin-bottom: 14px;
  cursor: crosshair;
  background: linear-gradient(to bottom, transparent, #000),
              linear-gradient(to right, #fff, transparent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.color-picker-gradient__handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4),
              inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.08s ease;
}

.color-picker-gradient:active .color-picker-gradient__handle {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Hue Slider */
.color-picker-hue {
  margin-bottom: 16px;
  height: 14px;
  border-radius: 7px;
  position: relative;
  background: linear-gradient(to right,
    #ff0000 0%, #ffff00 17%, #00ff00 33%,
    #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.color-picker-hue input[type="range"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.color-picker-hue::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  top: 50%;
  left: var(--hue-position, 0%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* RGB Inputs */
.color-picker-rgb {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.color-picker-rgb__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-picker-rgb__group label {
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-picker-rgb__group input {
  background: #0c1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e8f0fa;
  font-size: 14px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  padding: 8px 10px;
  text-align: center;
  transition: all 0.2s ease;
}

.color-picker-rgb__group input:focus {
  outline: none;
  border-color: rgba(103, 179, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(103, 179, 255, 0.12);
  background: #0f141b;
}

/* Remove spinners for number inputs */
.color-picker-rgb__group input::-webkit-outer-spin-button,
.color-picker-rgb__group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.color-picker-rgb__group input[type=number] {
  -moz-appearance: textfield;
}

/* ===== Light Theme Component Overrides ===== */
:root[data-theme="light"] .export-confirm__card,
:root[data-theme="light"] .buy-credits__hero,
:root[data-theme="light"] .buy-credits__option-body,
:root[data-theme="light"] .export-confirm__summary,
:root[data-theme="light"] .toast,
:root[data-theme="light"] .color-picker-popover__content{
  background:linear-gradient(180deg,var(--surface-1),var(--surface-2));
  border-color:var(--edge);
  box-shadow:0 12px 28px rgba(20,42,74,.14);
}

:root[data-theme="light"] .export-confirm__summary-value,
:root[data-theme="light"] .export-flow__status-title,
:root[data-theme="light"] .export-confirm__title,
:root[data-theme="light"] .export-confirm__check-text strong,
:root[data-theme="light"] .buy-credits__title,
:root[data-theme="light"] .buy-credits__option-title,
:root[data-theme="light"] .buy-credits__option-price,
:root[data-theme="light"] .buy-credits__note strong,
:root[data-theme="light"] .color-picker-popover__header{
  color:#122b49;
}

:root[data-theme="light"] .export-confirm__check,
:root[data-theme="light"] .color-picker-preview__hex,
:root[data-theme="light"] .color-picker-rgb__group input{
  background:var(--surface-2);
  border-color:var(--edge);
  color:var(--text);
}

:root[data-theme="light"] .export-confirm__check-text,
:root[data-theme="light"] .export-flow__status-sub,
:root[data-theme="light"] .buy-credits__text,
:root[data-theme="light"] .buy-credits__option-sub,
:root[data-theme="light"] .buy-credits__option-unit,
:root[data-theme="light"] .buy-credits__note,
:root[data-theme="light"] .buy-credits__eyebrow,
:root[data-theme="light"] .buy-credits__section-label,
:root[data-theme="light"] .export-confirm__eyebrow,
:root[data-theme="light"] .export-confirm__summary-label,
:root[data-theme="light"] .toast__body,
:root[data-theme="light"] .order-items,
:root[data-theme="light"] .color-picker-rgb__group label{
  color:var(--sub);
}

:root[data-theme="light"] .buy-credits__hero-pill{
  background:linear-gradient(135deg,#2f7ea8,#235f88);
  border-color:#2a6f99;
  color:#f4fbff;
  box-shadow:0 18px 38px rgba(35,88,136,.28);
}

:root[data-theme="light"] .buy-credits__note{
  background:#ffffff;
  border-color:#c5d6ea;
  color:#45617f;
}

:root[data-theme="light"] .buy-credits__option-badge{
  background:linear-gradient(135deg,#2f7ea8,#235f88);
  border-color:#2a6f99;
  color:#f4fbff;
  box-shadow:0 18px 38px rgba(35,88,136,.22);
}

:root[data-theme="light"] .buy-credits__option-indicator{
  border-color:#97b3d5;
  background:#ffffff;
}

:root[data-theme="light"] .buy-credits__option-indicator::after{
  background:#2f7ea8;
}

:root[data-theme="light"] .buy-credits__option-input:checked + .buy-credits__option-body{
  border-color:#7f9fc5;
  box-shadow:0 0 0 1px rgba(95,140,196,.28), inset 0 0 0 1px rgba(120,160,210,.2);
}

:root[data-theme="light"] .buy-credits__option-input:checked + .buy-credits__option-body .buy-credits__option-indicator{
  border-color:#2f7ea8;
}

:root[data-theme="light"] .export-confirm__meta-sep{
  color:#6f86a6;
}

:root[data-theme="light"] .color-picker-popover{
  background:rgba(15,32,56,.2);
}

:root[data-theme="light"] .color-picker-popover__close{
  color:var(--sub);
}

:root[data-theme="light"] .color-picker-popover__close:hover{
  background:rgba(48,86,133,.12);
  color:var(--headline);
}

:root[data-theme="light"] .color-picker-hue::after{
  border-color:#ffffff;
  box-shadow:0 2px 8px rgba(20,42,74,.2);
}

:root[data-theme="light"] #overlay .chip{
  background:rgba(255,255,255,.86);
  color:var(--text);
}

:root[data-theme="light"] .style-selector-hud{
  background:linear-gradient(135deg, rgba(255,255,255,.92), rgba(229,239,252,.86));
  border-color:#9bb7d8;
  box-shadow:0 10px 22px rgba(48,80,120,.16), inset 0 1px 0 rgba(255,255,255,.78);
}
:root[data-theme="light"] .style-selector-hud::before{
  background:radial-gradient(140px 38px at 22% 0%, rgba(95,151,219,.16), transparent 70%);
}
:root[data-theme="light"] .style-selector-hud__label{
  color:var(--text);
}
:root[data-theme="light"] .style-selector-hud__select{
  background:linear-gradient(135deg, #ffffff, #eaf2fb);
  border-color:#8eaace;
  color:#142035;
  box-shadow:0 0 0 1px rgba(92,132,184,.16);
}

:root[data-theme="light"] .design-save-hud{
  background:rgba(247,251,255,.92);
  border-color:rgba(126,156,194,.52);
  box-shadow:0 12px 28px rgba(47,80,122,.16);
}

:root[data-theme="light"] .design-save-hud input{
  background:rgba(255,255,255,.95);
  color:var(--text);
  border-color:rgba(132,162,198,.56);
}

:root[data-theme="light"] .design-save-hud input::placeholder{
  color:rgba(82,110,145,.66);
}

:root[data-theme="light"] .design-save-hud input:hover{
  border-color:rgba(96,138,188,.78);
  background:rgba(255,255,255,.98);
}

:root[data-theme="light"] #designSaveButton,
:root[data-theme="light"] #designShareButton{
  background:rgba(255,255,255,.96);
  border-color:rgba(120,152,194,.58);
  color:#23405f;
}

:root[data-theme="light"] .printed-controls{
  border-color:rgba(128,156,192,.56);
  background:linear-gradient(135deg,rgba(249,252,255,.96),rgba(237,244,252,.9));
}

:root[data-theme="light"] .printed-price__chip{
  background:linear-gradient(135deg,#ffffff,#eef4fb);
  border-color:rgba(120,149,188,.72);
  color:#000000;
}

:root[data-theme="light"] .printed-price--expandable .printed-price__chip:not(:disabled):hover,
:root[data-theme="light"] .printed-price--expandable .printed-price__chip:not(:disabled):focus-visible,
:root[data-theme="light"] .printed-price.is-expanded .printed-price__chip{
  background:linear-gradient(135deg,#ffffff,#e8f1fc);
  color:#000000;
}

:root[data-theme="light"] .printed-price__breakdown::before{
  background:linear-gradient(135deg,#ffffff,#edf4fd);
  box-shadow:0 14px 28px rgba(58,90,132,.2);
}

:root[data-theme="light"] .printed-price__breakdown-title{
  color:#5b7496;
}

:root[data-theme="light"] .printed-price__row{
  border-bottom-color:rgba(140,168,205,.4);
}

:root[data-theme="light"] .printed-price__value-label{
  color:#617a9c;
}

:root[data-theme="light"] .printed-price__label{
  color:#36577f;
}

:root[data-theme="light"] .printed-price__metric{
  color:#1f3d60;
}

:root[data-theme="light"] .printed-price__metric--sub,
:root[data-theme="light"] .printed-price__piece--muted{
  color:#6682a5;
}

:root[data-theme="light"] .printed-price__amount{
  color:#1d3858;
}

:root[data-theme="light"] .printed-controls__buy.btn.ghost{
  border-color:rgba(120,152,194,.55);
  color:#3a5678;
  background:rgba(233,242,252,.92);
}

:root[data-theme="light"] .printed-controls__buy.btn.ghost:hover{
  border-color:rgba(88,128,180,.72);
  background:rgba(225,237,251,.98);
}

:root[data-theme="light"] .purchase-chooser{
  box-shadow:none;
}

:root[data-theme="light"] .purchase-chooser__option:not(:disabled):hover,
:root[data-theme="light"] .purchase-chooser__option:not(:disabled):focus-visible{
  color:#173452;
  border-color:rgba(219,149,46,.62);
  background:rgba(255,255,255,.98);
}

:root[data-theme="light"] .purchase-chooser__option-title{
  color:#8a5a10;
}

:root[data-theme="light"] .purchase-chooser__option-body{
  color:#5a7595;
}

:root[data-theme="light"] .purchase-chooser__option-meta{
  color:#173452;
}

:root[data-theme="light"] .purchase-chooser__option-badge{
  color:#6f86a5;
}

:root[data-theme="light"] .purchase-chooser__option-icon{
  border-color:rgba(120,152,194,.4);
  background:rgba(235,244,253,.92);
  color:#9a6412;
}

:root[data-theme="light"] .purchase-chooser__option:disabled .purchase-chooser__option-meta{
  color:#8aa0bb;
}

:root[data-theme="light"] .printed-controls--chooser-open .printed-controls__entry{
  border-color:rgba(219,149,46,.82) !important;
}
:root[data-theme="light"] .printed-controls__entry{
  background:linear-gradient(180deg,#2d7ca4,#235f88);
  border-color:#2a6f99;
  color:#f4fbff;
  text-shadow:none;
}
:root[data-theme="light"] .printed-controls__entry:hover,
:root[data-theme="light"] .printed-controls__entry:focus-visible,
:root[data-theme="light"] .printed-controls--chooser-open .printed-controls__entry{
  background:linear-gradient(180deg,#2d7ca4,#235f88);
  border-color:rgba(219,149,46,.82) !important;
  color:#f4fbff;
}
:root[data-theme="light"] .printed-controls__entry::after{
  border-top-color:rgba(255,196,104,.82);
}
:root[data-theme="light"] .export-confirm__strike{
  color:#5f7694;
  opacity:.75;
}
:root[data-theme="light"] .export-confirm__free{
  color:#122b49;
}

:root[data-theme="light"] .purchase-chooser__option{
  border-color:rgba(181,202,229,.64);
  background:rgba(248,252,255,.9);
}
:root[data-theme="light"] .printed-controls--panel-open{
  border-color:rgba(219,149,46,.82);
}

:root[data-theme="light"] .viewport-controls__menu{
  box-shadow:0 12px 24px rgba(44,74,112,.16);
}
:root[data-theme="light"] .viewport-controls__help-toggle-switch{
  border-color:rgba(128,158,198,.68);
  background:rgba(228,237,248,.94);
}
:root[data-theme="light"] .viewport-controls__help-toggle-switch::after{
  background:#6f839c;
}
:root[data-theme="light"] .viewport-controls__help-toggle[aria-checked="true"] .viewport-controls__help-toggle-switch{
  border-color:rgba(36,151,112,.72);
  background:linear-gradient(180deg,rgba(67,188,148,.9),rgba(35,132,140,.88));
}

:root[data-theme="light"] .viewport-toolbar button{
  background:rgba(255,255,255,.94);
  border-color:rgba(128,158,198,.58);
  color:#264463;
}

:root[data-theme="light"] .viewport-toolbar button:hover{
  background:rgba(244,249,255,.98);
  border-color:rgba(99,137,188,.75);
}
:root[data-theme="light"] .viewport-toolbar .printed-controls__entry:hover,
:root[data-theme="light"] .viewport-toolbar .printed-controls__entry:focus-visible,
:root[data-theme="light"] .viewport-toolbar .printed-controls--chooser-open .printed-controls__entry{
  background:linear-gradient(180deg,#2d7ca4,#235f88) !important;
  border-color:rgba(219,149,46,.82) !important;
  color:#f4fbff !important;
}

:root[data-theme="light"] .viewport-toolbar button.is-on,
:root[data-theme="light"] .viewport-toolbar button[aria-pressed="true"]{
  color:#5c3900;
  border-color:rgba(219,149,46,.9);
  background:rgba(255,248,237,.96);
  box-shadow:0 0 0 1px rgba(219,149,46,.32),0 0 0 4px rgba(255,172,74,.2);
}

:root[data-theme="light"] .btn.primary,
:root[data-theme="light"] button.primary{
  background:linear-gradient(180deg,#2f7ea8,#235f88);
  border-color:#2a6f99;
  color:#f4fbff;
  box-shadow:0 10px 22px rgba(32,95,144,.24);
}

:root[data-theme="light"] .custom-request{
  background:radial-gradient(140% 120% at 50% 50%,rgba(236,244,253,.84) 0,rgba(236,244,253,.58) 42%,rgba(236,244,253,0) 78%);
}

:root[data-theme="light"] .custom-request__panel{
  background:linear-gradient(180deg,rgba(252,254,255,.98),rgba(239,246,253,.97));
  border-color:rgba(135,165,205,.58);
  box-shadow:0 30px 70px rgba(32,64,104,.24),0 0 0 1px rgba(255,255,255,.75) inset;
}

:root[data-theme="light"] .custom-request__panel::before{
  background:radial-gradient(closest-side,rgba(103,179,255,.18),rgba(103,179,255,0));
  opacity:.54;
  mix-blend-mode:normal;
}

:root[data-theme="light"] .custom-request__close{
  background:rgba(255,255,255,.94);
  border-color:rgba(132,163,201,.64);
  color:#365679;
}

:root[data-theme="light"] .custom-request__close:hover{
  color:#183656;
  border-color:rgba(95,136,187,.8);
  background:rgba(248,252,255,.98);
}

:root[data-theme="light"] .custom-request__eyebrow{
  color:#4f77a7;
}

:root[data-theme="light"] .custom-request__title{
  color:#15304f;
}

:root[data-theme="light"] .custom-request__lede,
:root[data-theme="light"] .custom-request__price span:last-child,
:root[data-theme="light"] .custom-request__card p{
  color:#4e6b8f;
}

:root[data-theme="light"] .custom-request__price,
:root[data-theme="light"] .custom-request__card,
:root[data-theme="light"] .custom-request__form{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(244,249,254,.92));
  border-color:rgba(135,165,205,.52);
  box-shadow:0 10px 24px rgba(32,64,104,.14);
}

:root[data-theme="light"] .custom-request__price{
  border-color:rgba(135,165,205,.56);
}

:root[data-theme="light"] .custom-request__price-label{
  color:#4f77a7;
}

:root[data-theme="light"] .custom-request__price strong,
:root[data-theme="light"] .custom-request__card h3,
:root[data-theme="light"] .custom-request__label,
:root[data-theme="light"] .custom-request__drop-main{
  color:#163454;
}

:root[data-theme="light"] .custom-request__dropzone{
  background:#f4f8fe;
  border-color:rgba(130,161,201,.58);
}

:root[data-theme="light"] .custom-request__drop-sub,
:root[data-theme="light"] .custom-request__file-info,
:root[data-theme="light"] .custom-request__status{
  color:#58779c;
}

:root[data-theme="light"] .custom-request__input,
:root[data-theme="light"] .custom-request__textarea{
  background:#ffffff;
  border-color:rgba(130,161,201,.6);
  color:#102a47;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 4px 10px rgba(29,58,92,.07);
}

:root[data-theme="light"] .custom-request__input::placeholder,
:root[data-theme="light"] .custom-request__textarea::placeholder{
  color:#6a85a5;
}

:root[data-theme="light"] .custom-request__remove{
  border-color:rgba(120,161,205,.55);
  color:#315377;
  background:rgba(255,255,255,.72);
}

:root[data-theme="light"] .custom-request__details{
  color:#2a4c72;
  border-color:rgba(128,159,198,.58);
  background:rgba(255,255,255,.9);
}

:root[data-theme="light"] .custom-request-inline{
  background:rgba(255,255,255,.9);
  border-color:rgba(128,159,198,.58);
  color:#2a4c72;
  box-shadow:none;
}

:root[data-theme="light"] .quick-start{
  background:radial-gradient(140% 120% at 50% 50%,rgba(236,244,253,.82) 0,rgba(236,244,253,.56) 40%,rgba(236,244,253,0) 78%);
}

:root[data-theme="light"] .quick-start__mini-panel{
  background:linear-gradient(180deg,rgba(252,254,255,.98),rgba(239,246,253,.96));
  border-color:rgba(135,165,205,.56);
  box-shadow:0 30px 70px rgba(32,64,104,.24),0 0 0 1px rgba(255,255,255,.75) inset;
}

:root[data-theme="light"] .quick-start__mini-panel::before{
  background:radial-gradient(closest-side,rgba(103,179,255,.2),rgba(103,179,255,0));
  opacity:.5;
  mix-blend-mode:normal;
}

:root[data-theme="light"] .quick-start__close{
  background:rgba(255,255,255,.94);
  border-color:rgba(132,163,201,.64);
  color:#365679;
}

:root[data-theme="light"] .quick-start__close:hover{
  color:#183656;
  border-color:rgba(95,136,187,.8);
  background:rgba(248,252,255,.98);
}

:root[data-theme="light"] .quick-start__eyebrow{
  color:#4f77a7;
}

:root[data-theme="light"] .quick-start__mini-title{
  color:#15304f;
}

:root[data-theme="light"] .quick-start__mini-card{
  background:rgba(255,255,255,.9);
  border-color:rgba(135,165,205,.5);
  box-shadow:0 10px 24px rgba(32,64,104,.16);
}

:root[data-theme="light"] .quick-start__mini-card:hover{
  border-color:rgba(99,141,194,.72);
  box-shadow:0 16px 30px rgba(32,64,104,.2);
}

:root[data-theme="light"] .quick-start__mini-step-badge{
  color:#0f2f55;
}

:root[data-theme="light"] .quick-start__mini-card-title{
  color:#163454;
}

:root[data-theme="light"] .quick-start__mini-features{
  color:#456487;
}

:root[data-theme="light"] .quick-start__mini-hero{
  background:#f4f8fe;
  border-color:rgba(130,161,201,.54);
}

:root[data-theme="light"] .quick-start__mini-hero-caption{
  color:#4e6b8f;
  background:rgba(243,248,254,.98);
}

:root[data-theme="light"] .quick-start__mini-hint{
  color:#58779c;
}

:root[data-theme="light"] .quick-start__mini-arrow{
  color:#2f7ea8;
  filter:drop-shadow(0 0 8px rgba(79,143,209,.34));
}

:root[data-theme="light"] .quick-start__mini-footer{
  border-top-color:rgba(135,165,205,.42);
}

:root[data-theme="light"] .quick-start__mini-secondary{
  color:#2a4c72;
  border-color:rgba(128,159,198,.58);
  background:rgba(255,255,255,.9);
}

:root[data-theme="light"] .quick-start__mini-secondary:hover{
  border-color:rgba(92,134,186,.78);
  color:#173859;
  background:rgba(247,251,255,.98);
}

:root[data-theme="light"] .quick-start__carousel-btn{
  background:rgba(255,255,255,.94);
  border-color:rgba(129,160,199,.58);
  color:#3a5b80;
}

:root[data-theme="light"] .quick-start__carousel-btn:hover{
  background:rgba(246,251,255,.98);
  border-color:rgba(95,136,188,.76);
  color:#1e3e63;
}

:root[data-theme="light"] .quick-start__carousel-dot{
  background:rgba(120,154,196,.44);
  border-color:rgba(120,154,196,.34);
}

:root[data-theme="light"] .quick-start__carousel-dot.active{
  background:rgba(47,126,168,.84);
  border-color:rgba(47,126,168,.64);
}

:root[data-theme="light"] .trace-tuner__scrim{
  background:rgba(24,40,64,.28);
}

:root[data-theme="light"] .trace-tuner__panel{
  background:radial-gradient(140% 120% at 14% 0%, rgba(103,179,255,.18) 0%, rgba(247,251,255,.98) 46%, rgba(239,246,253,.96) 100%);
  border-color:rgba(131,165,205,.66);
  box-shadow:0 34px 80px rgba(27,58,96,.28);
}

:root[data-theme="light"] .trace-tuner__eyebrow{
  color:#5276a3;
}

:root[data-theme="light"] .trace-tuner__title{
  color:#173452;
}

:root[data-theme="light"] .trace-tuner__close{
  border-color:rgba(128,160,199,.62);
  background:rgba(255,255,255,.95);
  color:#35577b;
  box-shadow:0 12px 26px rgba(31,62,100,.2);
}

:root[data-theme="light"] .trace-tuner__close:hover{
  border-color:rgba(92,134,186,.82);
  background:rgba(247,252,255,.98);
  color:#1a3b60;
}

:root[data-theme="light"] .trace-tuner__summary-hint,
:root[data-theme="light"] .trace-tuner__preset-label,
:root[data-theme="light"] .trace-tuner__preset-desc,
:root[data-theme="light"] .trace-tuner__section-sub,
:root[data-theme="light"] .trace-tuner__group-title,
:root[data-theme="light"] .trace-tuner__mode-label,
:root[data-theme="light"] .trace-tuner__value,
:root[data-theme="light"] .trace-tuner__toggle{
  color:#587497;
}

:root[data-theme="light"] .trace-tuner__preset-card{
  border-color:rgba(126,158,197,.45);
  background:rgba(255,255,255,.8);
  box-shadow:inset 0 0 0 1px rgba(174,201,235,.42);
}

:root[data-theme="light"] .trace-tuner__preview-card{
  background:linear-gradient(154deg, rgba(251,254,255,.96) 0%, rgba(241,247,254,.95) 100%);
  border-color:rgba(126,158,197,.55);
  box-shadow:inset 0 0 0 1px rgba(174,201,235,.36),0 12px 26px rgba(31,62,100,.14);
}

:root[data-theme="light"] .trace-tuner__preview-label{
  color:#4d6f9a;
}

:root[data-theme="light"] .trace-tuner__preview-frame{
  background:radial-gradient(120% 120% at 40% 10%, rgba(115,160,220,.18) 0%, rgba(245,249,255,.96) 44%, rgba(238,246,254,.98) 100%);
  border-color:rgba(132,165,206,.46);
}

:root[data-theme="light"] .trace-tuner__preview-img,
:root[data-theme="light"] .trace-tuner__svg{
  box-shadow:0 12px 26px rgba(31,62,100,.18);
}

:root[data-theme="light"] .trace-tuner__preview-status{
  color:#5b7597;
}

:root[data-theme="light"] .trace-tuner__controls{
  background:linear-gradient(164deg, rgba(249,253,255,.97) 0%, rgba(240,247,254,.96) 100%);
  border-color:rgba(126,158,197,.58);
  box-shadow:inset 0 0 0 1px rgba(166,196,232,.28),0 14px 30px rgba(31,62,100,.16);
}

:root[data-theme="light"] .trace-tuner__section{
  border-color:rgba(126,158,197,.4);
  background:rgba(255,255,255,.78);
}

:root[data-theme="light"] .trace-tuner__section-title{
  color:#34587f;
}

:root[data-theme="light"] .trace-tuner__advanced{
  border-color:rgba(126,158,197,.4);
  background:rgba(255,255,255,.72);
}

:root[data-theme="light"] .trace-tuner__advanced-summary{
  color:#173452;
}

:root[data-theme="light"] .trace-tuner__advanced[open] .trace-tuner__advanced-summary{
  border-bottom-color:rgba(131,165,205,.42);
}

:root[data-theme="light"] .trace-tuner__group{
  border-color:rgba(126,158,197,.36);
  background:rgba(247,251,255,.82);
}

:root[data-theme="light"] .trace-tuner__mode-buttons{
  background:rgba(246,251,255,.96);
  border-color:rgba(126,158,197,.48);
}

:root[data-theme="light"] .trace-tuner__mode-btn{
  color:#2a4b71;
}

:root[data-theme="light"] .trace-tuner__mode-btn:hover{
  background:rgba(223,236,251,.85);
  color:#16395f;
}

:root[data-theme="light"] .trace-tuner__mode-btn.is-active{
  background:linear-gradient(135deg,#3f93d1 0%, #2f78b4 100%);
  color:#f4fbff;
  box-shadow:0 10px 22px rgba(32,95,144,.24);
}

:root[data-theme="light"] .trace-tuner__slider-header label{
  color:#1f3f63;
}

:root[data-theme="light"] .trace-tuner__controls input[type=range]{
  accent-color:#2f7ea8;
}

:root[data-theme="light"] .trace-tuner__toggle input{
  accent-color:#2f7ea8;
}

:root[data-theme="light"] .appbar .brand__accent{
  color:var(--btn-bg-start);
}

:root[data-theme="light"] #dock details.panel > summary{
  color:#4f6686;
  box-shadow:inset 0 0 0 1px #c8d6ea;
}

:root[data-theme="light"] .ai-generate label{
  color:#5a7191;
}

:root[data-theme="light"] .ai-generate__controls input[type="search"]{
  background:#ffffff;
  border-color:#bdd0e6;
  color:#1f324c;
  box-shadow:0 6px 16px rgba(47,82,124,.1);
}

:root[data-theme="light"] .ai-generate__controls input[type="search"]::placeholder{
  color:#7d95b6;
}

:root[data-theme="light"] .ai-generate__controls input[type="search"]:focus{
  border-color:#7395c2;
  box-shadow:0 0 0 1px rgba(70,118,177,.32),0 8px 20px rgba(47,82,124,.12);
}

:root[data-theme="light"] .viewport-empty__panel{
  border-color:rgba(124,156,197,.42);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(103,179,255,.18) 0%, rgba(103,179,255,0) 48%),
    radial-gradient(100% 110% at 100% 100%, rgba(47,126,168,.08) 0%, rgba(47,126,168,0) 52%),
    linear-gradient(180deg, rgba(251,253,255,.96) 0%, rgba(239,245,252,.96) 100%);
  box-shadow:
    0 24px 60px rgba(34,62,98,.18),
    inset 0 1px 0 rgba(255,255,255,.7);
}

:root[data-theme="light"] .viewport-empty__badge{
  border-color:rgba(109,151,204,.3);
  background:rgba(255,255,255,.82);
  color:#527198;
}

:root[data-theme="light"] .viewport-empty__copy{
  color:#5b7597;
}

:root[data-theme="light"] .viewport-empty__action{
  border-color:rgba(184,203,227,.76);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(243,248,254,.96));
  box-shadow:0 10px 28px rgba(34,62,98,.1);
}

:root[data-theme="light"] .viewport-empty__action:hover{
  border-color:rgba(111,145,193,.74);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,245,253,.98));
  box-shadow:0 14px 32px rgba(34,62,98,.14);
}

:root[data-theme="light"] .viewport-empty__action--primary{
  border-color:rgba(74,176,153,.42);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(47,126,168,.08) 0%, rgba(47,126,168,0) 44%),
    linear-gradient(180deg, rgba(242,251,249,.98), rgba(230,245,243,.98));
}

:root[data-theme="light"] .viewport-empty__action-title{
  color:#173452;
}

:root[data-theme="light"] .viewport-empty__action-copy,
:root[data-theme="light"] .viewport-empty__ai-hint,
:root[data-theme="light"] .viewport-empty__footer-chip{
  color:#34597f;
}

:root[data-theme="light"] .viewport-empty__footer-chip{
  border-color:rgba(110,145,188,.62);
  background:rgba(236,244,253,.98);
  box-shadow:0 8px 18px rgba(34,62,98,.12);
}

:root[data-theme="light"] .viewport-empty__ai{
  border-color:rgba(184,203,227,.7);
  background:rgba(255,255,255,.82);
}

:root[data-theme="light"] .viewport-empty__ai-label{
  color:#567698;
}

:root[data-theme="light"] .viewport-empty__ai-input{
  background:#ffffff;
  border-color:#bdd0e6;
  color:#1f324c;
}

:root[data-theme="light"] .viewport-empty__status-card{
  border-color:rgba(184,203,227,.76);
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 28px rgba(34,62,98,.14);
}

:root[data-theme="light"] .viewport-empty__status-message{
  color:#1f3a5b;
}

:root[data-theme="light"] #placeholder[data-placeholder-state="error"] .viewport-empty__status-card{
  border-color:rgba(202,126,136,.44);
  background:rgba(255,248,248,.98);
}

:root[data-theme="light"] .style-callout__eyebrow{
  color:#4f6787;
}

:root[data-theme="light"] .style-callout__select{
  color:#1f324c;
}

:root[data-theme="light"] .style-callout__select option{
  background:#ffffff;
  color:#1f324c;
}

:root[data-theme="light"] .style-callout__select:focus{
  box-shadow:0 0 0 2px rgba(88,129,184,.24),0 8px 18px rgba(47,82,124,.12);
}

:root[data-theme="light"] #dock .panel-body label{
  color:var(--ghost);
  white-space:nowrap;
}

:root[data-theme="light"] #panel-dimensions .panel-body label{
  white-space:normal;
  line-height:1.25;
}

:root[data-theme="light"] .acct-strip__auth-slot button,
:root[data-theme="light"] .acct-strip__signout{
  background:#ffffff;
  border-color:#b8cbe3;
  color:#2d4768;
}

:root[data-theme="light"] .acct-strip__auth-slot button:hover,
:root[data-theme="light"] .acct-strip__signout:hover{
  border-color:#8ea9ca;
  background:#f2f7fd;
  color:#1e3552;
}

:root[data-theme="light"] .mobile-style-picker__select{
  background:#ffffff;
  border-color:#4f8fd8;
  color:#1f324c;
  box-shadow:0 0 0 1px rgba(79,143,216,.34);
}

:root[data-theme="light"] aside{
  background:linear-gradient(180deg,#f5f8fc,#ecf2fa);
}

:root[data-theme="light"] #designSaveButton[data-state="saved"]{
  background:linear-gradient(180deg,#2f7ea8,#235f88);
  border-color:#2a6f99;
  color:#f4fbff;
  box-shadow:0 10px 24px rgba(35,88,136,.24);
}

:root[data-theme="light"] #designShareButton .design-share-button-icon svg{
  filter:drop-shadow(0 0 4px rgba(79,143,209,.52));
}

:root[data-theme="light"] #undoBtn,
:root[data-theme="light"] #redoBtn{
  background:#ffffff;
  border-color:#b7cbe4;
  color:#2d4768;
}

:root[data-theme="light"] #undoBtn:hover,
:root[data-theme="light"] #redoBtn:hover{
  background:#f2f7fd;
  border-color:#8ea9ca;
  color:#1e3552;
}

:root[data-theme="light"] .cart-button{
  background:#ffffff;
  border-color:#b8cbe3;
  color:#2d4768;
  box-shadow:0 10px 24px rgba(35,68,104,.14);
}

:root[data-theme="light"] .cart-button:hover{
  border-color:#8ea9ca;
  box-shadow:0 12px 28px rgba(35,68,104,.2);
  background:#f3f8fd;
}

:root[data-theme="light"] .cart-button--fab{
  background:linear-gradient(135deg,#2f7ea8,#235f88);
  border-color:#2a6f99;
  color:#f4fbff;
  box-shadow:0 20px 42px rgba(35,88,136,.3);
}

:root[data-theme="light"] .cart-button--fab:hover{
  background:linear-gradient(135deg,#378cba,#286a98);
}

:root[data-theme="light"] .cart-button__count{
  background:rgba(212,230,250,.95);
  color:#1f4f78;
  border-color:rgba(109,151,204,.65);
}

:root[data-theme="light"] .cart-panel__scrim{
  background:rgba(24,40,64,.26);
}

:root[data-theme="light"] .cart-panel__drawer{
  background:linear-gradient(180deg,#f9fcff,#edf3fb);
  border-left:1px solid #c7d8ec;
}

:root[data-theme="light"] .cart-panel.is-open .cart-panel__drawer{
  box-shadow:-24px 0 48px rgba(34,62,98,.2);
}

:root[data-theme="light"] .cart-panel__eyebrow{
  color:#6d86a6;
}

:root[data-theme="light"] .cart-panel__sub{
  color:#6d84a4;
}

:root[data-theme="light"] .cart-panel__hint{
  color:#1f3a5b;
}

:root[data-theme="light"] .cart-panel__close{
  background:#ffffff;
  border-color:#b8cbe3;
  color:#2d4768;
}

:root[data-theme="light"] .cart-panel__close:hover{
  border-color:#8ea9ca;
  color:#1e3552;
  background:#f2f7fd;
}

:root[data-theme="light"] .cart-item{
  border-color:#c7d8ec;
  background:rgba(255,255,255,.88);
  box-shadow:0 8px 18px rgba(34,62,98,.12);
}

:root[data-theme="light"] .cart-item:not([data-cart-kind="custom_fee"]):hover,
:root[data-theme="light"] .cart-item:not([data-cart-kind="custom_fee"]):focus-within{
  border-color:#8fb3d8;
  background:#ffffff;
  box-shadow:0 12px 24px rgba(34,62,98,.18);
}

:root[data-theme="light"] .cart-item__thumb{
  background:#f4f8fe;
  border-color:#c7d8ec;
}

:root[data-theme="light"] .cart-item__title{
  color:#1f3a5b;
}

:root[data-theme="light"] .cart-item__meta{
  color:#667f9f;
}

:root[data-theme="light"] .cart-item__price-total{
  color:#1f3a5b;
}

:root[data-theme="light"] .cart-item__price-original{
  color:#7e94b1;
}

:root[data-theme="light"] .cart-item__discount-note{
  color:#2d6fa3;
}

:root[data-theme="light"] .designs-scrim{
  background:rgba(24,40,64,.26);
}

:root[data-theme="light"] .designs-panel{
  background:linear-gradient(180deg,#fbfdff,#eef4fc);
  border-color:#c4d5e9;
  box-shadow:0 18px 42px rgba(34,62,98,.18);
}

:root[data-theme="light"] .designs-head{
  border-bottom-color:#cfdeef;
}

:root[data-theme="light"] .designs-head h3{
  color:#315174;
}

:root[data-theme="light"] .designs-head input[type="search"]{
  background:#ffffff;
  border-color:#b8cbe3;
  color:#1f324c;
  box-shadow:0 6px 14px rgba(35,68,104,.08);
}

:root[data-theme="light"] .designs-close{
  background:#ffffff;
  border-color:#b8cbe3;
  color:#2d4768;
}

:root[data-theme="light"] .designs-close:hover{
  border-color:#8ea9ca;
  background:#f2f7fd;
  color:#1e3552;
}

:root[data-theme="light"] .designs-nav{
  border-color:#c7d8ec;
  background:linear-gradient(180deg,#f5f9ff,#edf3fb);
}

:root[data-theme="light"] .designs-nav .nav-head{
  color:#5f7899;
  border-bottom-color:#cfdeef;
  background:linear-gradient(180deg,#edf4fc,#dfeaf7);
}

:root[data-theme="light"] .cat-top{
  border-color:#c6d8ee;
  background:#ffffff;
}

:root[data-theme="light"] .cat-top summary{
  color:#2b496b;
}

:root[data-theme="light"] .cat-top summary .count{
  color:#5e789a;
}

:root[data-theme="light"] .cat-sub{
  border-top-color:#d5e2f1;
  background:#f4f8fd;
}

:root[data-theme="light"] .cat-sub button{
  background:#ffffff;
  border-color:#b7cbe4;
  color:#2d4768;
}

:root[data-theme="light"] .cat-sub button:hover{
  border-color:#8ea9ca;
  background:#f2f7fd;
  color:#1f3856;
}

:root[data-theme="light"] .cat-sub button.is-active{
  border-color:#7f9fc5;
  background:linear-gradient(180deg,#e9f2fc,#dce9f8);
  box-shadow:inset 0 0 0 1px rgba(100,140,193,.28);
  color:#1f3c5f;
}

:root[data-theme="light"] .cat-all{
  background:#ffffff;
  border-color:#b7cbe4;
  color:#2d4768;
}

:root[data-theme="light"] .cat-all:hover{
  border-color:#8ea9ca;
  background:#f2f7fd;
  color:#1f3856;
}

:root[data-theme="light"] .design-card{
  background:#ffffff;
  border-color:#c7d8ec;
  box-shadow:0 8px 16px rgba(34,62,98,.1);
}

:root[data-theme="light"] .design-card:hover{
  border-color:#8ea9ca;
  box-shadow:0 12px 22px rgba(34,62,98,.14);
}

:root[data-theme="light"] .design-card .thumb{
  background:#f4f8fe;
  border:1px solid #d1e0f0;
}

:root[data-theme="light"] .design-card img{
  background:#f4f8fe;
}

:root[data-theme="light"] .design-card .title{
  color:#2a4668;
  font-weight:600;
}

:root[data-theme="light"] .designs-empty{
  color:#5b7596;
}

:root[data-theme="light"] .cart-qty{
  background:#f0f6fd;
  border-color:#b7cbe4;
}

:root[data-theme="light"] .cart-qty__btn{
  color:#2d4768;
}

:root[data-theme="light"] .cart-qty__btn:hover{
  background:rgba(109,151,204,.18);
}

:root[data-theme="light"] .cart-qty__value{
  color:#1f3a5b;
}

:root[data-theme="light"] .cart-rename{
  background:rgba(109,151,204,.14);
  border-color:rgba(109,151,204,.42);
  color:#2d4768;
}

:root[data-theme="light"] .cart-rename:hover{
  background:rgba(109,151,204,.22);
  border-color:rgba(109,151,204,.62);
}

:root[data-theme="light"] .cart-empty{
  color:#7a93b3;
}

:root[data-theme="light"] .cart-empty__title{
  color:#23405f;
}

:root[data-theme="light"] .cart-empty__body{
  color:#6983a6;
}

:root[data-theme="light"] .cart-panel__footer{
  background:linear-gradient(180deg,rgba(240,247,255,.95),rgba(226,237,250,.96));
  border-top-color:#c7d8ec;
}

:root[data-theme="light"] .cart-panel__summary{
  color:#5f789a;
}

:root[data-theme="light"] .cart-panel__summary [data-cart-item-count]{
  color:#20466f;
}

:root[data-theme="light"] .cart-panel__row--subtotal{
  color:#26486f;
}

:root[data-theme="light"] .cart-panel__row--discount{
  color:#2b72a7;
}

:root[data-theme="light"] .cart-panel__row--discount span:last-child{
  color:#2b72a7;
}

:root[data-theme="light"] .cart-panel__row--shipping{
  color:#4d6484;
}

:root[data-theme="light"] .cart-panel__row--shipping span:last-child{
  color:#26486f;
}

:root[data-theme="light"] .cart-panel__promo-badge--shipping{
  background:rgba(76,165,109,.14);
  border-color:rgba(76,165,109,.34);
  color:#32694a;
}

:root[data-theme="light"] .cart-panel__free-note{
  color:#26486f;
}

:root[data-theme="light"] .cart-panel__row--total{
  color:#18375a;
}

:root[data-theme="light"] .cart-panel__shipping{
  border-color:rgba(131,160,199,.24);
  background:rgba(244,249,255,.92);
}

:root[data-theme="light"] .cart-panel__shipping-head{
  color:#58799f;
}

:root[data-theme="light"] .cart-panel__shipping-input{
  border-color:#b7cbe4;
  background:#ffffff;
  color:#1f324c;
}

:root[data-theme="light"] .cart-panel__shipping-input::placeholder{
  color:#7a93b3;
}

:root[data-theme="light"] .cart-panel__shipping-option{
  color:#23405f;
}

:root[data-theme="light"] .cart-panel__shipping-spinner{
  border-color:rgba(109,151,204,.22);
  border-top-color:#2f7ea8;
}

:root[data-theme="light"] .cart-panel__shipping-message{
  color:#58799f;
}

:root[data-theme="light"] .cart-panel__coupon{
  border-color:rgba(131,160,199,.32);
  background:rgba(244,249,255,.92);
}

:root[data-theme="light"] .cart-panel__coupon-toggle{
  color:#2d4768;
}

:root[data-theme="light"] .cart-panel__coupon-icon{
  color:#58799f;
}

:root[data-theme="light"] .cart-panel__coupon-input{
  border-color:#b7cbe4;
  background:#ffffff;
  color:#1f324c;
}

:root[data-theme="light"] .cart-panel__coupon-input::placeholder{
  color:#7a93b3;
}

:root[data-theme="light"] .cart-panel__coupon-pill{
  background:rgba(109,151,204,.16);
  border-color:rgba(109,151,204,.45);
  color:#2a4f79;
}

:root[data-theme="light"] .cart-panel__checkout--stripe{
  background:linear-gradient(135deg,#2f7ea8,#235f88);
  border-color:#2a6f99;
  box-shadow:0 12px 24px rgba(35,88,136,.26);
}

:root[data-theme="light"] .cart-panel__checkout--stripe:hover{
  border-color:#3b87b4;
  box-shadow:0 16px 32px rgba(35,88,136,.34);
}

:root[data-theme="light"] .cart-panel__checkout--stripe[disabled]{
  background:linear-gradient(135deg,#4f8fbf,#3b739f);
  border-color:#4f8fbf;
}

:root[data-theme="light"] .cart-panel__checkout-tooltip{
  border-color:rgba(184,103,117,.35);
  background:rgba(255,247,248,.98);
  box-shadow:0 14px 30px rgba(63,42,53,.16);
  color:#8a3143;
}

:root[data-theme="light"] .cart-panel__checkout-tooltip::after{
  background:rgba(255,247,248,.98);
  border-right-color:rgba(184,103,117,.35);
  border-bottom-color:rgba(184,103,117,.35);
}

:root[data-theme="light"] .cart-panel__checkout-wrap:focus-visible{
  outline-color:rgba(47,126,168,.4);
}

:root[data-theme="light"] .cart-panel__note{
  color:#6e86a6;
}

:root[data-theme="light"] .feedback-pill__btn{
  background:linear-gradient(135deg,#2f7ea8,#235f88);
  border-color:#2a6f99;
  color:#f4fbff;
  box-shadow:0 18px 38px rgba(35,88,136,.28);
}

:root[data-theme="light"] .feedback-pill__btn:hover{
  border-color:#3b87b4;
}

:root[data-theme="light"] .feedback-panel__scrim{
  background:rgba(24,40,64,.26);
}

:root[data-theme="light"] .feedback-panel__drawer{
  background:linear-gradient(180deg,#f9fcff,#edf3fb);
  border-left-color:#c7d8ec;
}

:root[data-theme="light"] .feedback-panel.is-open .feedback-panel__drawer{
  box-shadow:-24px 0 48px rgba(34,62,98,.2);
}

:root[data-theme="light"] .feedback-panel__header{
  border-bottom-color:#c7d8ec;
}

:root[data-theme="light"] .feedback-panel__eyebrow{
  color:#6d86a6;
}

:root[data-theme="light"] .feedback-panel__header h2{
  color:#1f3a5b;
}

:root[data-theme="light"] .feedback-panel__sub{
  color:#6d84a4;
}

:root[data-theme="light"] .feedback-panel__close{
  background:#ffffff;
  border-color:#b8cbe3;
  color:#2d4768;
}

:root[data-theme="light"] .feedback-panel__close:hover{
  border-color:#8ea9ca;
  color:#1e3552;
  background:#f2f7fd;
}

:root[data-theme="light"] .feedback-panel__footer{
  border-top-color:#c7d8ec;
}

:root[data-theme="light"] .feedback-muted{
  color:#5f789a;
}

:root[data-theme="light"] .feedback-offer-card{
  border-color:#c7d8ec;
  background:rgba(255,255,255,.88);
  box-shadow:0 12px 28px rgba(34,62,98,.12);
}

:root[data-theme="light"] .feedback-offer-hero{
  border-bottom-color:#c7d8ec;
  background:#f4f8fe;
}

:root[data-theme="light"] .feedback-offer-hero__kicker{
  color:#6d84a4;
}

:root[data-theme="light"] .feedback-offer-hero__title{
  color:#1f3a5b;
}

:root[data-theme="light"] .feedback-offer-points{
  color:#5f789a;
}

:root[data-theme="light"] .feedback-offer-points li::before{
  background:rgba(47,126,168,.68);
  box-shadow:0 0 0 2px rgba(47,126,168,.14);
}

:root[data-theme="light"] .feedback-q{
  border-color:#c7d8ec;
  background:rgba(255,255,255,.88);
}

:root[data-theme="light"] .feedback-q__text{
  color:#1f3a5b;
}

:root[data-theme="light"] .feedback-rating__btn{
  border-color:rgba(109,151,204,.4);
  background:rgba(241,248,255,.95);
  color:#2d4768;
}

:root[data-theme="light"] .feedback-rating__btn.is-on{
  background:rgba(109,151,204,.2);
  border-color:rgba(109,151,204,.62);
  color:#1f3a5b;
}

:root[data-theme="light"] .feedback-mcq__row{
  color:#5f789a;
}

:root[data-theme="light"] .feedback-text{
  border-color:#b7cbe4;
  background:#ffffff;
  color:#1f324c;
}

:root[data-theme="light"] .feedback-text:focus{
  border-color:#7395c2;
  box-shadow:0 0 0 2px rgba(88,129,184,.22);
}

:root[data-theme="light"] .feedback-btn--primary{
  background:linear-gradient(180deg,#2f7ea8,#235f88);
  border-color:#2a6f99;
  color:#f4fbff;
}


