/* WexTailor v9.2 — calmer designer: small icon controls on the photo, fewer things at once */
/* photo controls: three small round icons stacked top-right */
#stage #infoBtn,#stage #rotBtn,#stage #jacketToggle{position:absolute;left:auto;right:8px;bottom:auto;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;margin:0;border-radius:50%;display:flex;align-items:center;justify-content:center;gap:0;background:rgba(15,27,51,.38);border:1px solid rgba(233,207,138,.5);color:#ecd394;box-shadow:none;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:9;font:400 14px/1 Jost,system-ui,sans-serif;writing-mode:horizontal-tb;transition:opacity .2s,background .2s;cursor:pointer;-webkit-tap-highlight-color:transparent}
#stage #infoBtn{top:8px}#stage #rotBtn{top:46px}#stage #jacketToggle{top:84px}
#stage .sb-ic svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#stage #infoBtn .ib-i{width:auto;height:auto;background:none;color:inherit;font:italic 600 16px/1 Georgia,serif}
#stage #infoBtn .ib-dot{top:1px;right:1px;width:8px;height:8px;border:1.5px solid #0f1b33;background:#e6c777}
#stage #infoBtn.on,#stage #rotBtn.on,#stage #jacketToggle[aria-pressed="true"]{background:rgba(201,162,74,.95);color:#0f1b33;border-color:#c9a24a}
#stage #infoBtn.on .ib-i{background:none;color:#0f1b33}
/* the noisy labels go */
#stage .pv-badge,#stage .z-name{display:none}
.stage .pv-load{font-size:10.5px;padding:3px 8px}
/* zoom target: a thin hairline instead of a glowing ring */
#stage .z-ring{border:1px solid rgba(212,173,85,.8);box-shadow:none;opacity:.55}
/* zoom button: small round icon, bottom-left */
#stage .z-out{left:8px;bottom:8px;width:32px;height:32px;padding:0;border-radius:50%;font-size:0;color:transparent;background:rgba(15,27,51,.55);border:1px solid rgba(233,207,138,.55);box-shadow:none;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:10}
#stage .z-out[hidden]{display:none}
#stage .z-out:before{content:"";width:16px;height:16px;background:no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecd394' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20M7.5 10.5h6'/%3E%3C/svg%3E")}
#stage .z-out.full{background:rgba(255,253,248,.8);border-color:rgba(168,132,47,.5)}
#stage .z-out.full:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1b33' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20M7.5 10.5h6M10.5 7.5v6'/%3E%3C/svg%3E")}
/* close-up: a small thumbnail in the corner, bigger only when tapped */
/* fabric tag: one slim line */
#stage .wx-fabtag{left:8px;top:8px;max-width:calc(100% - 60px);padding:4px 10px;border-radius:999px;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(15,27,51,.5);border:1px solid rgba(201,162,74,.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:opacity .2s}
#stage .wx-fabtag small{display:inline;font-size:11px;color:#d5d9e2;margin-left:2px}
#stage .wx-prep-b{font-size:11.5px;padding:6px 9px;right:52px;bottom:8px;left:48px}
/* zoomed in: only the zoom-out button stays */
#stage.zoomed .sb-ic,#stage.zoomed .wx-fabtag,#stage.zoomed .wx-prep-b,#stage.zoomed .pv-lining{opacity:0;pointer-events:none;visibility:hidden}
/* steps: a quiet underline bar instead of pills */
.studio.v4 .tabs{gap:0}
@media (max-width:959px){.studio.v4 .tabs{padding:0 4px}.panel{padding:22px 18px 34px}}
.studio.v4 .tab{background:none;border-radius:0;color:#a7adbb;font-size:13.5px;letter-spacing:.03em;padding:12px 11px 10px;min-height:44px;border-bottom:2px solid transparent}
.studio.v4 .tab[aria-selected="true"]{background:none;color:#f6f1e7;font-weight:500;border-bottom-color:var(--gold)}
.studio.v4 .tab-spec{display:none}
.wxp-client .studio.v4 .tab[data-step="measure"]{display:none}
/* the options panel: more air, less text */
.panel h3{font-size:24px;letter-spacing:.01em}
.panel .intro{display:none}
details.sec>summary{padding:15px 28px 15px 0}
.sec-t{font-size:19px;font-weight:500}
.sec-t em{display:none}
.sec-v{font-size:12px;color:#8a8d96}
.field{padding:16px 0}
.flabel{font-size:11px;letter-spacing:.14em;color:#7b7f89;font-weight:400;margin-bottom:10px}
.chips{gap:8px}
.chip{font-size:14px;padding:8px 14px;min-height:40px;border-radius:999px;border-color:#e6dfd2}
.chips-rich .chip{flex:0 1 auto}
.chip small,.preset small{display:none}
.chips.has-th .chip{border-radius:12px;flex:0 0 calc(33.333% - 6px)}
.chips-c .chip-x,.chips-c .pat.chip-x{display:none}
.chip.chip-more,.pat.chip-more{background:none;border:1px dashed #cdbf9f;color:var(--gold2);font-size:13px;letter-spacing:.02em}
.pat.chip-more{justify-content:center;min-height:88px}
.chips.has-th .chip.chip-more{flex:0 0 calc(33.333% - 6px);justify-content:center;min-height:96px}
.help{font-size:12px;color:#8a8d96;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:7px}
.stepnav{border-top:0;padding-top:24px}
/* bottom bar: one clear action + More */
.actionbar.calm{display:flex;align-items:center;gap:10px;padding:0 12px env(safe-area-inset-bottom)}
.actionbar.calm>button{display:none}
.actionbar.calm>button.ab-more,.actionbar.calm>button.ab-primary{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;height:46px;border-radius:999px;font-size:14px;letter-spacing:.03em}
.actionbar.calm>button.ab-more{flex:0 0 auto;padding:0 16px;border:1px solid rgba(201,162,74,.45);color:#e4dccb;background:none}
.actionbar.calm>button.ab-more svg{width:18px;height:18px;fill:currentColor;stroke:none}
.actionbar.calm>button.ab-primary{flex:1;background:var(--gold);color:#16130b;font-weight:600;border:0}
.actionbar.calm>button.ab-primary svg{width:19px;height:19px;stroke:#16130b}
.ab-menu{position:fixed;left:12px;bottom:calc(var(--ab) + 8px + env(safe-area-inset-bottom));z-index:45;min-width:210px;background:#0f1b33;border:1px solid rgba(201,162,74,.4);border-radius:16px;padding:6px;box-shadow:0 18px 40px -16px rgba(0,0,0,.6)}
.ab-menu[hidden]{display:none}
.ab-menu button{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;color:#efe8da;font:400 15px/1 Jost,system-ui,sans-serif;padding:13px 12px;border-radius:10px;text-align:left;cursor:pointer}
.ab-menu button:hover,.ab-menu button:focus-visible{background:rgba(255,255,255,.07)}
.ab-menu svg{width:19px;height:19px;fill:none;stroke:#d9bb6c;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:900px){
  .actionbar.calm{left:auto;right:24px;bottom:20px;padding:6px;height:auto;border-radius:999px;gap:6px}
  .actionbar.calm>button.ab-primary{flex:0 0 auto;padding:0 26px}
  .ab-menu{left:auto;right:24px;bottom:88px}
}

/* v9.3: the close-up of the part being edited is back as a real card on the right edge; swipe it off the edge, a small tab pulls it back */
#stage figure.cu{left:auto;right:8px;top:auto;bottom:10px;width:min(40%,210px);border:1.5px solid rgba(201,162,74,.9);border-radius:12px;box-shadow:0 10px 24px -12px rgba(0,0,0,.6);transition:width .25s ease,opacity .2s,transform .28s cubic-bezier(.2,.8,.2,1);touch-action:pan-y;-webkit-user-select:none;user-select:none;cursor:grab;z-index:6}
#stage figure.cu figcaption{display:block;font-size:12px;line-height:1.25;padding:5px 8px 6px}
#stage figure.cu .cu-k{display:none}
#stage figure.cu.big .cu-k{display:block;font-size:9.5px}
#stage figure.cu.big{width:min(80%,320px)}
#stage figure.cu.dragging{transition:none;cursor:grabbing}
#stage figure.cu.slid{transform:translateX(calc(100% + 14px));opacity:0;pointer-events:none}
#stage figure.cu .cu-grip{position:absolute;left:4px;top:50%;width:3px;height:26px;margin-top:-13px;border-radius:2px;background:rgba(201,162,74,.75);pointer-events:none}
#stage figure.cu .cu-x{position:absolute;right:4px;top:4px;width:22px;height:22px;border-radius:50%;border:0;padding:0;background:rgba(15,27,51,.55);color:#ecd394;font:400 13px/22px Jost,system-ui,sans-serif;text-align:center;cursor:pointer}
#stage .cu-tab{display:none;position:absolute;right:0;bottom:46px;z-index:7;width:26px;height:64px;padding:0;margin:0;border:1px solid rgba(233,207,138,.6);border-right:0;border-radius:12px 0 0 12px;background:rgba(15,27,51,.55);color:#ecd394;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
#stage .cu-tab svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#stage figure.cu.slid:not([hidden]) + .cu-tab{display:flex}
html.st-compact #stage figure.cu{width:min(32%,130px);bottom:8px}
html.st-compact #stage figure.cu figcaption{font-size:11px;padding:4px 6px 5px}
html.st-compact #stage figure.cu.big{width:min(72%,300px)}
html.st-compact #stage .cu-tab{bottom:30px;height:52px}
@media (min-width:960px){#stage figure.cu{width:min(32%,260px)}}

/* v9.6: no ring/marker on the photo (Ralf: looked like a debug hotspot) */
#zRing{display:none!important}

/* v9.7 in / cm toggle */
.unit-tg{display:flex;gap:4px;justify-content:flex-end;margin:-4px 0 6px}
.unit-tg .unit-chip{min-height:0;padding:3px 10px;font-size:12px;border-radius:999px;flex:0 0 auto}
.unit-tg .unit-chip small{display:none}

/* v9.7 logo = home everywhere */
.wx-mbrand{margin:-4px 0 8px;font-size:15px}
.wx-mbrand .wm,.wx-gate .wm,.wx-login .wm,.wx-dtop .wm{cursor:pointer;text-decoration:none;color:inherit}
