/* Velora Bespoke Atelier, split-screen designer. Dark stage (preview) + light configuration panel. */
.page-atelier .vm-main{background:#F8F5FD}
.at-shell{display:grid;grid-template-columns:minmax(0,1fr);min-height:100svh;padding-top:var(--tgs-nav-height,76px)}
@media(min-width:1024px){.at-shell{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}}

/* stage */
.at-stage{position:relative;display:grid;grid-template-rows:auto 1fr auto;gap:.5rem;padding:1rem 1.25rem 1.1rem;color:#fff;
  background:radial-gradient(circle at 50% 42%,rgba(147,51,234,.32),transparent 55%),linear-gradient(160deg,#0B0618,#1A0B38 55%,#0B0618)}
@media(min-width:1024px){.at-stage{position:sticky;top:var(--tgs-nav-height,76px);height:calc(100svh - var(--tgs-nav-height,76px));padding:1.5rem 2rem 1.75rem}}
@media(max-width:1023px){.at-stage{position:sticky;top:var(--tgs-nav-height,64px);z-index:20;grid-template-rows:auto auto auto;gap:.25rem;padding:.6rem 1rem .75rem;box-shadow:0 12px 30px rgba(11,6,24,.35)}}
.at-stage__label{margin:0;font:700 .68rem var(--vm-body);letter-spacing:.3em;text-transform:uppercase;color:rgba(233,213,255,.75)}
.at-stage__label span{color:#fff}
.at-preview{display:grid;place-items:center;min-height:0}
.at-preview svg{width:min(100%,560px);height:auto;max-height:100%;filter:drop-shadow(0 30px 40px rgba(0,0,0,.45));transition:opacity .25s}
@media(max-width:1023px){.at-preview{height:min(34svh,260px)}.at-preview svg{height:100%;width:auto}}
.at-intro-mark{width:min(60%,300px);opacity:.92}
.at-intro-mark img{width:100%;height:auto;filter:drop-shadow(0 0 40px rgba(192,132,252,.45))}
.at-stage__foot{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;padding-top:.85rem;border-top:1px solid rgba(255,255,255,.14)}
.at-stage__foot p{margin:.25rem 0 0;font:500 1.05rem/1.35 var(--vm-head);color:#fff;max-width:34ch}
@media(max-width:1023px){.at-stage__foot{padding-top:.45rem}.at-stage__foot p{font-size:.9rem;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.at-stage__foot>div:first-child{min-width:0}}
.at-est{text-align:right;flex:none}
.at-est__label{display:block;font:700 .62rem var(--vm-body);letter-spacing:.24em;text-transform:uppercase;color:rgba(233,213,255,.7)}
.at-est b{display:block;margin-top:.2rem;font:600 1.15rem var(--vm-head);color:#fff}
.at-est small{display:none}

/* configuration */
.at-config{padding:1.25rem 1rem 6rem;min-width:0}
@media(min-width:1024px){.at-config{padding:2rem clamp(1.5rem,4vw,3.5rem) 4rem}}
.at-tracker{display:flex;gap:.35rem;margin:0 0 1.5rem;padding:0 0 .25rem;list-style:none;overflow-x:auto;scrollbar-width:none}
.at-tracker::-webkit-scrollbar{display:none}
.at-tracker button{display:inline-flex;align-items:center;gap:.45rem;min-height:40px;padding:.35rem .75rem;border:1px solid var(--vm-line);border-radius:999px;background:#fff;color:var(--vm-muted);font:600 .78rem var(--vm-body);white-space:nowrap;cursor:pointer}
.at-tracker button span{font-size:.68rem;letter-spacing:.08em;color:var(--vm-v600)}
.at-tracker button[aria-current]{border-color:var(--vm-v700);background:var(--vm-v800);color:#fff}
.at-tracker button[aria-current] span{color:#E9D5FF}
.at-tracker button.is-done{color:var(--vm-v800);background:var(--vm-lav)}
.at-tracker button.is-done::after{content:"✓";font-size:.75rem}
.at-tracker button:disabled{opacity:.45;cursor:not-allowed}
.at-step__meta{font:700 .7rem var(--vm-body);letter-spacing:.2em;text-transform:uppercase;color:var(--vm-v600)}
.at-panel h2{margin:.45rem 0 .35rem;font:400 clamp(2rem,4.4vw,3rem)/1.05 var(--vm-head);color:var(--vm-v950)}
.at-panel h2 em{font-style:italic;color:var(--vm-v600)}
.at-panel h2:focus{outline:none}
.at-help{margin:0 0 1.25rem;color:var(--vm-muted);line-height:1.65;max-width:40rem}
.at-notice{margin-bottom:1rem}

.at-pieces{display:grid;gap:.75rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.at-piece{display:grid;justify-items:start;gap:.35rem;padding:1.1rem;border:1px solid var(--vm-line);border-radius:20px;background:#fff;text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
.at-piece svg{width:64px;height:64px}
.at-piece b{font:600 1.35rem var(--vm-head);color:var(--vm-v950)}
.at-piece small{color:var(--vm-muted);font-size:.84rem;line-height:1.45}
.at-piece:hover{border-color:var(--vm-v500);box-shadow:var(--vm-shadow);transform:translateY(-2px)}
.at-piece:focus-visible,.at-opt:focus-visible{outline:3px solid var(--vm-v500);outline-offset:2px}

.at-options{display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,13.5rem),1fr))}
.at-opt{position:relative;display:flex;align-items:center;gap:.75rem;min-height:64px;padding:.8rem .9rem;border:1.5px solid var(--vm-line);border-radius:16px;background:#fff;text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.at-opt:hover{border-color:#C4B5FD}
.at-opt.is-on{border-color:var(--vm-v700);background:#F5F0FF;box-shadow:0 0 0 3px rgba(139,92,246,.15)}
.at-opt.is-on::after{content:"✓";position:absolute;top:.45rem;right:.6rem;display:grid;place-items:center;width:1.3rem;height:1.3rem;border-radius:50%;background:var(--vm-v700);color:#fff;font-size:.72rem}
.at-opt[aria-disabled=true]{opacity:.5;background:#FAFAFA;cursor:not-allowed}
.at-opt__txt{display:grid;gap:.15rem;min-width:0;padding-right:1rem}
.at-opt__txt b{font:600 .98rem var(--vm-body);color:var(--vm-v950)}
.at-opt__txt small{font-size:.78rem;line-height:1.4;color:var(--vm-muted)}
.at-opt__why{color:var(--vm-bad)!important}
.at-swatch{flex:none;width:34px;height:34px;border-radius:50%;box-shadow:inset 0 -4px 8px rgba(0,0,0,.18),0 2px 6px rgba(59,10,122,.15)}
.at-swatch--gem{border-radius:30%;transform:rotate(45deg) scale(.85)}
.at-shape{flex:none;width:42px;height:42px}
.at-shape svg{width:100%;height:100%}

.at-fields{display:grid;gap:1.15rem;max-width:36rem}
.at-field{display:grid;gap:.45rem}
.at-field>span{display:flex;justify-content:space-between;gap:1rem;font:600 .92rem var(--vm-body);color:var(--vm-v950)}
.at-field>span b{color:var(--vm-v700)}
.at-field select,.at-field input[type=text]{width:100%;min-height:48px;padding:.6rem .85rem;border:1px solid #D9D1EF;border-radius:12px;background:#fff;font:500 1rem var(--vm-body)}
.at-field input[type=range]{width:100%;accent-color:var(--vm-v700);min-height:32px}
.at-field small{color:var(--vm-muted);font-size:.78rem}

.at-nav{display:flex;justify-content:space-between;gap:.75rem;margin-top:1.75rem}
.at-nav .cat-btn{min-height:48px;min-width:8rem}
@media(max-width:1023px){.at-nav{position:sticky;bottom:0;z-index:15;margin-inline:-1rem;padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom,0px));background:rgba(248,245,253,.96);backdrop-filter:blur(8px);border-top:1px solid var(--vm-line)}.at-nav .cat-btn{flex:1}}

.at-review{display:grid;gap:0;margin:1rem 0;border:1px solid var(--vm-line);border-radius:18px;background:#fff;overflow:hidden}
.at-review>div{display:grid;grid-template-columns:minmax(7rem,auto) 1fr auto;align-items:center;gap:.75rem;padding:.65rem 1rem;border-top:1px solid var(--vm-line)}
.at-review>div:first-child{border-top:0}
.at-review dt{color:var(--vm-muted);font-size:.85rem}
.at-review dd{margin:0;font-weight:600;color:var(--vm-v950)}
.at-review .vm-textbtn{min-height:36px;padding:.25rem}
.at-estimate-box{display:grid;gap:.25rem;padding:1rem 1.2rem;border-radius:18px;background:linear-gradient(135deg,#150A2E,#3B0A7A);color:#fff}
.at-estimate-box .at-est__label{color:#E9D5FF}
.at-estimate-box b{font:600 1.6rem var(--vm-head)}
.at-estimate-box small{color:rgba(255,255,255,.78);font-size:.84rem;line-height:1.5}

/* reveal */
.at-reveal__art{border-radius:18px;background:radial-gradient(circle at 50% 42%,rgba(147,51,234,.32),transparent 60%),linear-gradient(160deg,#0B0618,#1A0B38);padding:.5rem}
.at-reveal__art svg{display:block;width:100%;height:auto}
.at-reveal__cap{margin:.85rem 0 .25rem;font:500 1.15rem var(--vm-head);color:var(--vm-v950)}
.at-quote{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--vm-line)}
.at-quote h3{margin:0;font:600 1.3rem var(--vm-head);color:var(--vm-v950)}
.page-atelier .vm-dialog{width:min(40rem,calc(100vw - 1.5rem))}
@media(prefers-reduced-motion:reduce){.at-piece,.at-opt{transition:none}.at-piece:hover{transform:none}}
@media(max-width:1023px){.at-stage__foot>div:first-child{flex:1}.at-est{flex:0 1 auto;max-width:45%}.at-est b{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
/* realistic AI preview */
.at-reveal__tabs{display:inline-flex;gap:.25rem;margin:0 0 .75rem;padding:.25rem;border:1px solid var(--vm-line);border-radius:999px;background:#fff}
.at-reveal__tabs button{min-height:40px;padding:.35rem 1rem;border:0;border-radius:999px;background:none;color:var(--vm-muted);font:600 .82rem var(--vm-body);cursor:pointer}
.at-reveal__tabs button[aria-selected=true]{background:var(--vm-v800);color:#fff}
.at-ai{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:#0B0618}
.at-ai img{display:block;width:100%;height:100%;object-fit:cover;opacity:1;transition:opacity .6s}
.at-ai.is-loading img,.at-ai.is-failed img{opacity:0}
.at-ai__wait{position:absolute;inset:0;display:none;place-content:center;justify-items:center;gap:.6rem;padding:1.5rem;text-align:center;color:#fff}
.at-ai.is-loading .at-ai__wait,.at-ai.is-failed .at-ai__wait{display:grid}
.at-ai__wait b{font:500 1.35rem var(--vm-head)}
.at-ai__wait small{max-width:22rem;color:rgba(233,213,255,.8);line-height:1.55}
.at-ai__orb{width:64px;height:64px;border-radius:50%;background:conic-gradient(from 0deg,#7C3AED,#E9D5FF,#C084FC,#7C3AED);-webkit-mask:radial-gradient(circle,transparent 52%,#000 54%);mask:radial-gradient(circle,transparent 52%,#000 54%);animation:atSpin 1.4s linear infinite}
.at-ai.is-failed .at-ai__orb{animation:none;opacity:.4}
@keyframes atSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.at-ai__orb{animation:none}}
.at-ai__note{margin:.85rem 0 0;padding:.65rem .85rem;border-radius:12px;background:#FFF8E6;border:1px solid #F3DFA6;color:#5B4300;font-size:.92rem;line-height:1.5}

/* ---------- realistic preview studio: main view, selections and four views ---------- */
.page-atelier .vm-dialog.vm-dialog--studio{width:min(76rem,calc(100vw - 1.5rem))}
.at-studio{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(15rem,1fr);grid-template-areas:"main specs" "views views";gap:.6rem;padding:.6rem;border-radius:20px;background:#F2EEE8}
.at-studio__main{grid-area:main;position:relative;min-width:0}
.at-studio .at-shot{border-radius:12px;background:linear-gradient(160deg,#141019,#2A2232)}
.at-studio__main .at-shot{aspect-ratio:4/3}
.at-studio__back{position:absolute;left:.7rem;bottom:.7rem;min-height:40px;padding:0 1rem;border:0;border-radius:999px;background:rgba(17,11,26,.72);color:#fff;font:600 .82rem Inter,system-ui,sans-serif;cursor:pointer;backdrop-filter:blur(6px)}
.at-studio__back:focus-visible{outline:2px solid #E9D5FF;outline-offset:2px}
.at-studio__specs{grid-area:specs;min-width:0;padding:.4rem .9rem;border-radius:12px;background:#F7F4EF;overflow:auto;max-height:100%}
.at-studio__specs ul{list-style:none;margin:0;padding:0}
.at-studio__specs li{display:grid;grid-template-columns:3.1rem minmax(0,1fr) auto;gap:.8rem;align-items:center;padding:.62rem 0;border-bottom:1px solid #E3DCD0}
.at-studio__specs li:last-child{border-bottom:0}
.at-spec__icon{width:3.1rem;height:3.1rem;display:grid;place-items:center;color:#7C7468}
.at-spec__icon svg{width:100%;height:100%}
.at-spec__metal{width:2.5rem;height:2.5rem;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.18)}
.at-spec__letter{width:2.5rem;height:2.5rem;border-radius:50%;display:grid;place-items:center;border:2px solid #8E8578;font:600 1.15rem/1 'Cormorant Garamond',Georgia,serif;color:#2B2622}
.at-spec__txt{display:grid;gap:.1rem;min-width:0}
.at-spec__txt b{font:600 1.08rem/1.2 'Cormorant Garamond',Georgia,serif;color:#1F1A16}
.at-spec__txt span{font:400 .98rem/1.3 'Cormorant Garamond',Georgia,serif;color:#3D3630;overflow-wrap:anywhere}
.at-spec__edit{min-height:44px;padding:0 .3rem;border:0;background:none;color:#8E8578;font:500 .95rem 'Cormorant Garamond',Georgia,serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.at-spec__edit:hover{color:#4C1D95}
.at-spec__edit:focus-visible{outline:2px solid #7C3AED;outline-offset:2px;border-radius:6px}
.at-studio__views{grid-area:views;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
.at-view{margin:0;display:grid;gap:.55rem}
.at-view__btn{display:block;width:100%;padding:0;border:0;background:none;border-radius:12px;cursor:pointer}
.at-view__btn:disabled{cursor:default}
.at-view__btn:focus-visible{outline:3px solid #7C3AED;outline-offset:2px}
.at-view__btn[aria-pressed="true"] .at-shot{box-shadow:0 0 0 3px #7C3AED}
.at-view .at-shot{aspect-ratio:1}
.at-view figcaption{text-align:center;font:500 .78rem/1.2 'Cormorant Garamond',Georgia,serif;letter-spacing:.3em;text-transform:uppercase;color:#2B2622;padding-bottom:.25rem}
.at-studio .at-ai.is-queued img{opacity:0}
.at-studio .at-ai.is-queued .at-ai__wait{display:grid}
.at-studio .at-ai.is-queued .at-ai__orb{animation:none;opacity:.25}
.at-view .at-ai__wait{padding:.5rem;gap:.35rem}
.at-view .at-ai__wait b{font:500 .95rem var(--vm-head,'Cormorant Garamond',serif)}
.at-view .at-ai__wait small{display:none}
.at-view .at-ai__orb{width:34px;height:34px}
.at-studio .at-ai.is-done img{opacity:1}
@media (max-width:860px){
  .at-studio{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "views" "specs"}
  .at-studio__views{grid-template-columns:repeat(2,minmax(0,1fr))}
  .at-studio__specs{max-height:none}
}
@media (max-width:420px){
  .at-studio{padding:.4rem;gap:.45rem}
  .at-studio__specs li{grid-template-columns:2.6rem minmax(0,1fr) auto;gap:.6rem}
  .at-spec__icon{width:2.6rem;height:2.6rem}
  .at-view figcaption{letter-spacing:.18em;font-size:.72rem}
}
@media (min-width:861px){.at-studio__specs{height:0;min-height:100%;max-height:none}}
