/* 寶寶臉客製紅包 v5。色票取自定稿商品照：粉牆、紅包紅、標題棕、撕紙奶油、芥末黃 */
:root{
  --wall:#f6bcc6; --wall2:#f9cdd4; --floor:#f0a9b6;
  --red:#c8323d; --red-d:#9e2430; --ink:#5a3a32; --ink2:#7f625a;
  --paper:#ffffff; --paper2:#f2f0f0; --line:#e5e1e1; --mustard:#f2b937; --mint:#a5d6ba;
  --bg:#efeded; --tag:#e5bd58; --tag-ink:#fff; --pri:#c8323d; --pri-d:#9e2430;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans TC","PingFang TC",sans-serif;font-size:15px;line-height:1.75;overflow-x:hidden}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0;touch-action:manipulation}
button:disabled{cursor:default;opacity:.45}
[hidden]{display:none!important}
h2,h3{margin:0;font-weight:700}
body.studio-on{overflow:hidden}
body.studio-on .sx,body.studio-on .info{display:none}
.tag{background:var(--tag);color:var(--tag-ink)}
.skip{position:absolute;right:14px;top:calc(12px + env(safe-area-inset-top));z-index:9;height:38px;padding:0 15px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--red-d);font-size:14px;font-weight:700;letter-spacing:.06em;box-shadow:0 3px 10px -4px rgba(90,40,40,.5)}

/* 商品資訊：一張撕紙貼在粉牆上 */
.info{background:linear-gradient(180deg,#ecb7a8 0,var(--wall) 140px,var(--wall2));padding:34px 16px 28px}
.sheet-paper{max-width:1040px;margin:0 auto;background:var(--paper);border-radius:20px 14px 22px 16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:hidden;box-shadow:0 18px 40px -26px rgba(120,40,50,.6)}
.info-photo{position:relative}
.info-photo img{display:block;width:100%;height:100%;object-fit:cover}
.photo-note{position:absolute;left:0;right:0;bottom:0;margin:0;padding:6px 12px;background:rgba(255,255,255,.8);color:#6E3D27;font-size:12px;line-height:1.5;text-align:center}
.info-text{padding:30px 34px 28px}
.info-text h2{font-family:"XYGenSen","Noto Sans TC",sans-serif;font-size:30px;line-height:1.35;letter-spacing:.04em;color:var(--ink)}
.how{list-style:none;counter-reset:n;margin:18px 0 0;padding:0}
.how li{counter-increment:n;display:grid;grid-template-columns:32px 1fr;column-gap:10px;padding:7px 0}
.how li::before{content:counter(n);grid-row:span 2;width:30px;height:30px;border-radius:50%;background:var(--mustard);color:var(--ink);font-family:"XYGenSen",sans-serif;font-size:16px;display:grid;place-items:center;margin-top:2px}
.how b{font-size:16px;line-height:1.4}.how span{font-size:13.5px;color:var(--ink2);line-height:1.5}
.spec{margin:16px 0 0;border-top:1.5px dashed var(--line)}
.spec div{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1.5px dashed var(--line);font-size:14px}
.spec dt{color:var(--ink2);flex:none}.spec dd{margin:0;text-align:right;font-weight:500}
.due{margin:14px 0 0;color:var(--red-d);font-weight:500;font-size:14px}
.cta{display:block;width:100%;height:54px;margin-top:14px;border-radius:999px;background:var(--red);color:#fff;font-size:17px;font-weight:700;letter-spacing:.08em;box-shadow:0 4px 0 var(--red-d)}
.safe{margin:9px 0 0;font-size:12.5px;line-height:1.55;color:var(--ink2)}
.foot{text-align:center;font-size:13px;color:var(--red-d);padding:18px 0 4px}

/* 工作檯 */
.studio{position:fixed;left:0;top:0;right:0;height:var(--vvh,100dvh);z-index:50;display:grid;grid-template-columns:146px minmax(0,1fr) 296px;grid-template-rows:62px minmax(0,1fr);grid-template-areas:"top top top" "rail stage dock";background:var(--wall);overflow:hidden}
.top{grid-area:top;display:flex;align-items:center;gap:14px;padding:0 16px;background:var(--paper);box-shadow:0 2px 0 var(--line);z-index:3}
.ghost{height:40px;padding:0 10px;border-radius:10px;color:var(--ink2);font-size:15px;white-space:nowrap}
.ghost span{margin-left:5px}
.go-home{font-size:14px;color:var(--red-d);font-weight:700}
.flow-top,.co-top{display:flex;align-items:center;gap:6px}
.flow-top{padding:8px 10px 0}
.co-top{grid-column:1/-1}
.co-top .ghost,.flow-top .ghost{font-size:14.5px}
.co-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.co-head p{margin:0;font-size:13.5px;font-weight:500;color:var(--red-d)}
.flip{position:absolute;top:50%;z-index:3;transform:translateY(-50%);writing-mode:vertical-rl;text-orientation:upright;padding:12px 5px;background:rgba(255,255,255,.94);color:var(--red-d);font-size:13px;font-weight:700;letter-spacing:.08em;box-shadow:0 3px 10px -5px rgba(90,40,40,.5)}
.flip.right{right:0;border-radius:10px 0 0 10px}
.flip.left{left:0;border-radius:0 10px 10px 0}
.flow-pic.two{display:flex;align-items:flex-end;gap:12px;width:min(46%,380px)}
.flow-pic.two figure{flex:1;min-width:0;margin:0}
.flow-pic.two figcaption{margin-top:6px;text-align:center;font-size:13.5px;color:var(--ink2)}
.cart-pack{color:var(--red-d);font-weight:700}
.cart-unit{font-size:12.5px;color:var(--ink2);text-align:right}
.leave{width:min(92vw,400px);padding:20px}
.leave h3{margin:0 0 6px;font-size:18px}
.leave p{margin:0;font-size:14.5px;line-height:1.6;color:var(--ink2)}
.leave-act{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:16px}
.leave-act .ghost{font-size:14.5px}
.to-top{position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:30;height:40px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.96);color:var(--red-d);font-size:13.5px;font-weight:700;box-shadow:0 3px 10px -4px rgba(90,40,40,.5)}
body.studio-on .to-top{display:none}
#edgeW{margin-top:6px}
.brush-note{margin:0;font-size:12.5px;line-height:1.5;color:var(--ink2)}
.title{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.title b{font-size:16px;white-space:nowrap}.title span{font-size:13px;color:var(--red-d);font-weight:500}
.status{flex:1;margin:0;text-align:center;font-size:14.5px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pri{height:44px;padding:0 22px;border-radius:999px;background:var(--red);color:#fff;font-size:15.5px;font-weight:700;letter-spacing:.05em;box-shadow:0 3px 0 var(--red-d);white-space:nowrap}
.pri.big{display:block;width:100%;height:54px;font-size:17px}
.pri:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--red-d)}
.seg{display:flex;padding:3px;border-radius:999px;background:var(--paper2)}
.seg button{height:34px;padding:0 13px;border-radius:999px;font-size:14px;color:var(--ink2);font-weight:500}
.seg button[aria-pressed=true]{background:var(--red);color:#fff}

.rail{grid-area:rail;background:var(--paper);overflow-y:auto;padding:10px 12px;box-shadow:2px 0 0 var(--line);z-index:2}
.rail p{margin:0 0 6px;font-size:13px;color:var(--ink2);text-align:center}
.rail .list{display:flex;flex-direction:column;gap:10px}
.rail button{display:block;width:100%;text-align:center;border-radius:12px 10px 14px 10px;padding:5px;line-height:1.3}
.rail button[aria-pressed=true]{background:var(--paper2);box-shadow:inset 0 0 0 2.5px var(--red)}
.rail .th{display:block;aspect-ratio:192/150;border-radius:6px;overflow:hidden;background:#c6090b}
.rail .th canvas{display:block;width:100%;height:100%}
.rail b{display:block;margin-top:4px;font-size:13.5px;font-weight:500}.rail small{font-size:12.5px;color:var(--red-d)}

.stage{grid-area:stage;position:relative;min-width:0;min-height:0;background:linear-gradient(180deg,var(--wall2) 0,var(--wall) 78%,var(--floor) 78.2%,#f3b5bf 100%);overflow:hidden}
.stage.drop::after{content:"放開就好";position:absolute;inset:14px;border:3px dashed #fff;border-radius:18px;display:grid;place-items:center;color:#fff;font-size:22px;font-weight:700;background:rgba(200,50,61,.2)}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}
#cv:active{cursor:grabbing}
#inlineText{position:absolute;z-index:4;height:auto;padding:.06em .1em;border:2px dashed rgba(255,255,255,.9);border-radius:8px;background:rgba(150,10,16,.55);text-align:center;outline:none;letter-spacing:.08em;line-height:1.3}
#inlineText::placeholder{color:rgba(255,246,232,.7);font-size:.7em}
.zoom{position:absolute;left:12px;bottom:12px;z-index:3;height:40px;padding:0 15px;border-radius:999px;background:rgba(255,255,255,.95);font-size:14px;font-weight:500;color:var(--ink);box-shadow:0 3px 10px -5px rgba(90,40,40,.5)}
.tip{position:absolute;left:50%;bottom:60px;transform:translateX(-50%);z-index:3;max-width:calc(100% - 24px);padding:7px 14px;border-radius:999px;background:rgba(90,58,50,.88);color:#fff;font-size:13.5px;white-space:nowrap}
.msg{position:absolute;left:12px;right:12px;top:12px;z-index:5;margin:0 auto;max-width:440px;padding:10px 14px;border-radius:12px;background:var(--red-d);color:#fff;font-size:14px;line-height:1.55}
.msg.soft{background:var(--ink)}
.busy{position:absolute;inset:0;z-index:6;display:none;place-items:center;background:rgba(246,188,198,.72)}
.busy.on{display:grid}
.busy>div{min-width:220px;max-width:280px;padding:16px 20px;text-align:center;background:var(--paper);border-radius:16px 12px 18px 12px}
.busy b{display:block;font-size:15.5px}.busy small{display:block;font-size:12.5px;color:var(--ink2);line-height:1.5}
.bar2{height:6px;border-radius:9px;background:var(--line);margin-top:9px;overflow:hidden}.bar2 i{display:block;height:100%;width:0;background:var(--red)}

.dock{grid-area:dock;background:var(--paper);overflow-y:auto;padding:16px;box-shadow:-2px 0 0 var(--line);z-index:2}
.dock .rail-m{display:none}
.ctx{display:flex;flex-direction:column;gap:14px}
.tips{margin:0;padding:0;list-style:none;font-size:14px;color:var(--ink)}
.tips li{padding:7px 0;border-bottom:1.5px dashed var(--line)}
/* 照片須知：寶寶插圖好壞對照（電腦 2×2；手機見下方 @media 改成左右滑） */
.pt-defs{position:absolute;width:0;height:0;overflow:hidden}
.ptips{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.pt{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:7px 6px 8px}
.pt-pair{display:flex;justify-content:center;gap:10px}
.pt-pair figure{flex:0 0 92px;min-width:0;margin:0;text-align:center}
.pt-pic{display:block;width:100%;height:auto}
.pt-pair figcaption{margin-top:2px;font-size:11.5px;line-height:1.3;font-weight:700;white-space:nowrap}
.pt-ok{color:#2f4a8a}.pt-ng{color:var(--red-d)}
.pt p{margin:5px 0 0;font-size:12.5px;line-height:1.4;text-align:center;color:var(--ink)}
.tri{display:flex;flex-direction:column;gap:9px}
.tri button{height:50px;border-radius:14px 10px 15px 11px;background:var(--paper2);font-size:15.5px;font-weight:500}
.grp h3{font-size:13.5px;color:var(--ink2);font-weight:500;margin-bottom:6px}
.swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:6px 4px}
.swatches button{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:12px;color:var(--ink2);padding:3px 0;border-radius:10px;min-height:48px}
.swatches i{width:30px;height:30px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(90,58,50,.22)}
.swatches i.none{background:linear-gradient(135deg,transparent 46%,var(--red) 46% 54%,transparent 54%),#fff}
.swatches button[aria-pressed=true]{background:var(--paper2);color:var(--ink);font-weight:700}
.swatches button[aria-pressed=true] i{box-shadow:0 0 0 2.5px var(--red)}
.pills{display:flex;flex-wrap:wrap;gap:6px}
.pills+.pills,.pillrow .pills+.pills{margin-top:6px}
.pills button{min-height:42px;padding:0 13px;border-radius:999px;background:var(--paper2);font-size:14px;font-weight:500;white-space:nowrap}
.pills button[aria-pressed=true]{background:var(--ink);color:#fff}
.pills button.ok{background:var(--red);color:#fff;margin-left:auto}
.row{display:flex;gap:6px;overflow-x:auto}
.cand{border-radius:50%;overflow:hidden;width:50px;height:50px;flex:none}.cand canvas{display:block;width:100%;height:100%}
.cand[aria-pressed=true]{box-shadow:0 0 0 3px var(--red)}
.colors{display:flex;gap:9px}.colors button{width:36px;height:36px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(90,58,50,.25)}
.colors button[aria-pressed=true]{box-shadow:0 0 0 3px var(--red)}
.link{align-self:center;height:36px;color:var(--red-d);font-size:14.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.m-only{display:none}
@media (max-width:899px){.m-only{display:block}}

.checkout{position:absolute;inset:0;z-index:20;background:var(--wall2);overflow-y:auto;-webkit-overflow-scrolling:touch}
.co-in{max-width:1080px;margin:0 auto;padding:14px 18px 30px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:8px 28px;align-items:start}
.co-in>.ghost{grid-column:1/-1;justify-self:start}
.co-pv{position:sticky;top:12px;display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:end}
.co-pv figure{margin:0;text-align:center}.co-pv canvas{display:block;width:100%;height:auto;border-radius:3px;filter:drop-shadow(6px 12px 14px rgba(120,30,50,.34))}
.co-pv figcaption{margin-top:6px;font-size:13.5px;color:var(--ink2)}
.co-form{background:var(--paper);border-radius:20px 14px 22px 16px;padding:20px 22px}
.co-form h2{font-family:"XYGenSen","Noto Sans TC",sans-serif;font-size:24px;letter-spacing:.05em}
.co-form h3{font-size:14.5px;margin:16px 0 6px}
.co-rows{margin-top:8px}
.co-rows>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1.5px dashed var(--line);font-size:14.5px}
.co-rows>div>span:first-child{color:var(--ink2);flex:none}.co-rows b{font-weight:500;text-align:right}
.qtyrow b{flex:1}.stepper{display:inline-flex;align-items:center;gap:2px}
.stepper button{width:38px;height:38px;border-radius:50%;background:var(--paper2);font-size:18px}.stepper i{min-width:26px;text-align:center;font-style:normal;font-weight:700}
.sum b{font-size:22px;font-weight:700;color:var(--red-d)}
.radios{display:flex;gap:8px}
.radios label{flex:1}.radios input{position:absolute;opacity:0}
.radios span{display:grid;place-items:center;height:44px;border-radius:12px;background:var(--paper2);font-size:14px;font-weight:500}
.radios input:checked+span{background:var(--ink);color:#fff}
.radios input:focus-visible+span{outline:2px solid var(--red);outline-offset:2px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.fields label{display:block;font-size:13px;color:var(--ink2)}
.fields input{display:block;width:100%;height:46px;margin-top:2px;padding:0 11px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.fields input:focus{outline:2px solid var(--red);outline-offset:0;border-color:transparent}
.agrees{margin-top:14px;display:flex;flex-direction:column;gap:7px}
.agrees label{display:flex;gap:9px;font-size:13.5px;line-height:1.6}.agrees input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--red)}
.notes{margin:12px 0;font-size:13.5px;color:var(--ink2)}.notes summary{cursor:pointer;font-weight:500;color:var(--ink);min-height:30px}.notes ul{margin:4px 0 0;padding-left:18px}
.pv-name{grid-column:1/-1;margin:0;text-align:center;font-size:15px;font-weight:500}
.cart{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.cart-g{display:flex;flex-direction:column;gap:6px}
.cart-h{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14.5px}
.faces{display:inline-flex;gap:4px}.faces canvas{width:36px;height:36px}
.cart-i{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border-radius:12px;background:var(--paper2);border:2px solid transparent}
.cart-i.on{border-color:var(--red)}
.cart-th{padding:0;border-radius:4px;overflow:hidden}.cart-th canvas{display:block;width:64px;height:50px}
.cart-t{min-width:0;display:flex;flex-direction:column;font-size:13px;color:var(--ink2)}.cart-t b{font-size:14px;font-weight:500;color:var(--ink)}
.cart-x{display:flex;gap:10px;margin-top:1px}.link2{min-height:30px;padding:0;color:var(--red-d);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.cart-r{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.cart-p{font-size:14.5px;font-weight:700}
.cart-r .stepper button{width:32px;height:32px;background:#fff;font-size:16px}.cart-r .stepper i{min-width:20px}
.cart-add{min-height:42px;padding:0 12px;border:1.5px dashed var(--line);border-radius:12px;color:var(--ink);font-size:14px;font-weight:500}
.flow-in{max-width:760px;margin:0 auto;padding:28px 18px 34px;display:flex;gap:26px;align-items:center;justify-content:center;min-height:100%}
.flow-pic{flex:none;width:min(36%,300px)}.flow-pic canvas{display:block;width:100%;height:auto;border-radius:3px;filter:drop-shadow(6px 12px 14px rgba(120,30,50,.34))}
.flow-t{flex:1;min-width:0;background:var(--paper);border-radius:20px 14px 22px 16px;padding:22px}
.flow-t h2{font-family:"XYGenSen","Noto Sans TC",sans-serif;font-size:24px;letter-spacing:.04em;line-height:1.35}
.flow-sub{margin:6px 0 10px;font-size:14.5px;color:var(--ink2)}
.promo{display:inline-block;margin:0 0 10px;padding:7px 16px;border-radius:12px 9px 13px 10px;background:#c73e6e;color:#fff;font-size:16px;font-weight:700;letter-spacing:.08em;transform:rotate(-1deg)}
.flow-g{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1.5px dashed var(--line);font-size:14px}
.flow-q{margin:18px 0 0;font-size:18px}
.flow-act{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:16px}
.flow-b{height:44px;padding:0 20px;border-radius:999px;background:var(--paper2);color:var(--ink);font-size:15px;font-weight:500}
.style-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,220px));justify-content:center;gap:14px;margin-top:6px}
.style-card{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px;border-radius:14px;background:var(--paper2);font-size:13px;color:var(--ink2)}
.style-card canvas{display:block;width:100%;height:auto;border-radius:3px}.style-card b{margin-top:5px;font-size:15px;font-weight:500;color:var(--ink)}
.rail button:disabled{opacity:.35;cursor:not-allowed}
.pay{border:0;border-radius:20px 14px 22px 16px;padding:20px 22px;max-width:min(92vw,430px);background:var(--paper);color:var(--ink)}
.pay::backdrop{background:rgba(90,40,40,.5)}
.pay h3{font-size:18px}.pay p{margin:6px 0;font-size:14px}.pay dl{margin:8px 0}.pay dl div{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border-bottom:1.5px dashed var(--line);font-size:14px}.pay dt{color:var(--ink2);flex:none}.pay dd{margin:0;text-align:right}
.lock{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:24px;background:rgba(90,40,40,.55);text-align:center}.lock[hidden]{display:none}
.lock>div{max-width:320px;padding:18px 20px;border-radius:18px;background:var(--paper);color:var(--ink)}.lock b{display:block;font-size:17px}.lock small{display:block;margin-top:4px;font-size:13.5px;color:var(--ink2)}
.safe.bad{color:var(--red-d)}
.final-note{margin-top:14px;padding:13px 15px;border-radius:14px;background:var(--paper2)}.final-note b{display:block;color:var(--red-d);font-size:16px}.final-note p{margin:5px 0 0;font-size:14px;line-height:1.6;color:var(--ink)}
#humanBox:empty{display:none}#humanBox{margin-top:10px}
canvas,img,.co-pv{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

@media (max-width:374px){.studio .top{gap:3px;padding:0 4px}.top #closeStudio{padding:0 2px}.top .seg button{padding:0 9px}.top #nextBtn{padding:0 9px}}
@media (max-width:899px){
  .sheet-paper{grid-template-columns:1fr}
  .info-photo{aspect-ratio:1}
  .info-text{padding:22px 18px 22px}.info-text h2{font-size:25px}
  .studio{grid-template-columns:minmax(0,1fr);grid-template-rows:54px minmax(0,1fr) auto;grid-template-areas:"top" "stage" "dock"}
  .studio>.rail,.status{display:none}
  .top{gap:6px;padding:0 8px;justify-content:space-between}
  .title{display:none}
  .ghost{padding:0 8px;font-size:21px}
  .go-home{padding:0 4px;font-size:13px}
  #closeStudio{padding:0 4px;font-size:14.5px}
  #closeStudio span{margin-left:3px}
  #edgeW{grid-column:2;margin-top:0}
  .flow-pic.two{width:min(86%,340px)}
  #tFonts{flex-wrap:wrap;overflow:visible}
  .brush-note{font-size:12px}
  .pri{height:40px;padding:0 14px;font-size:14.5px}
  .pri.big{height:50px;font-size:16.5px}
  .seg button{height:34px;padding:0 15px}
  .dock{padding:9px 10px calc(9px + env(safe-area-inset-bottom));max-height:46vh;box-shadow:0 -2px 0 var(--line)}
  /* 面板固定高度：選頭、換分頁時紅包不會被擠大擠小 */
  body:not([data-ctx=start]) .dock{height:calc(248px + env(safe-area-inset-bottom))}
  body:not([data-ctx=start]) .ctx:not([hidden]){min-height:100%}
  .ctx[data-ctx=idle]{justify-content:center}
  .idle-hint{margin:2px 0 0;text-align:center;font-size:13px;color:var(--ink2)}
  .head-tabs{display:flex;gap:5px}
  .head-tabs button{flex:1;height:36px;border-radius:999px;background:var(--paper2);font-size:13.5px;font-weight:500}
  .head-tabs button[aria-pressed=true]{background:var(--ink);color:#fff}
  .head-tabs button[hidden]{display:none}
  .ctx[data-ctx=head] .grp[data-tab]:not(.on),.ctx[data-ctx=head] .grp[hidden]{display:none}
  .ctx[data-ctx=head] .foot-btns,.ctx[data-ctx=brush] .foot-btns,.ctx[data-ctx=text] .foot-btns{margin-top:auto}
  .ctx{gap:8px}
  .tips{display:none}
  .ptips{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:10px;scrollbar-width:none;margin:0 -10px;padding:0 10px}
  .ptips::-webkit-scrollbar{display:none}
  .pt{flex:0 0 156px;scroll-snap-align:start}
  .pt-pair{gap:4px}.pt-pair figure{flex:1 1 0}
  .ctx[data-ctx=start] .safe{margin:0;text-align:center}
  .tri{flex-direction:row}.tri button{flex:1;height:48px}
  .grp{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:6px}
  .grp h3{margin:0;font-size:13px}
  .swatches{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
  .swatches button{flex:1 0 42px;min-width:42px;min-height:50px;font-size:12px}
  .swatches i{width:27px;height:27px}
  .pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:5px}
  .pills+.pills{grid-column:2;margin-top:0}
  .pillrow{display:flex;flex-direction:column;gap:5px;min-width:0}
  .pillrow .pills{flex:none;overflow:visible}.pillrow .pills+.pills{margin-top:0}
  body[data-ctx=start] #nextBtn{visibility:hidden}
  .pills button{min-height:40px;padding:0 11px;font-size:13.5px;flex:none}
  .foot-btns{padding-top:1px}
  .dock .rail-m{display:block;position:static;box-shadow:none;padding:0;background:none;overflow:visible}
  .rail-m .list{flex-direction:row;overflow-x:auto;gap:6px;scrollbar-width:none}
  .rail-m button{flex:none;width:84px}.rail-m .th{aspect-ratio:1}
  .co-in{grid-template-columns:minmax(0,1fr);padding:8px 12px 24px}
  .flow-in{flex-direction:column;padding:16px 12px 26px;gap:14px;justify-content:flex-start}.flow-pic{width:min(46%,180px)}.flow-t{width:100%;flex:none;padding:18px 16px}.flow-t h2{font-size:21px}
  .style-grid{grid-template-columns:1fr 1fr;gap:10px}
  .co-pv{position:static;gap:10px}
  .co-form{padding:16px 15px}
  .tip{font-size:12.5px;padding:6px 11px}
}
@media (max-width:899px) and (max-height:640px){.dock{max-height:50vh}}
@media (min-width:900px) and (max-height:700px){.rail .list{gap:6px}.rail b{font-size:12.5px}}
/* ===== 幸也代排（11/5） ===== */
.assist-link{margin:12px 0 0;text-align:center;font-size:14px;color:var(--ink2)}
.assist-link button{padding:0 2px;color:var(--red-d);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.assist{position:fixed;inset:0;z-index:55;background:var(--wall2);overflow-y:auto;-webkit-overflow-scrolling:touch}
.as-in{max-width:620px;margin:0 auto;padding:14px 16px 30px}
.as-how{list-style:none;counter-reset:n;margin:12px 0 4px;padding:0;display:grid;gap:9px}
.as-how li{counter-increment:n;display:grid;grid-template-columns:30px 1fr;column-gap:11px;font-size:14px;line-height:1.5}
.as-how li::before{content:counter(n);grid-row:span 2;width:28px;height:28px;border-radius:50%;background:var(--mustard);color:var(--ink);font-weight:700;display:grid;place-items:center}
.as-how b{font-size:15px}.as-how span{color:var(--ink2)}
.as-sec{margin:14px 0 6px;font-size:14px;font-weight:700}
.as-list{display:grid;gap:8px}
.as-i{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border-radius:12px;background:var(--paper2);border:2px solid transparent}
.as-i.on{border-color:var(--red);background:#fff}
.as-i img{width:54px;height:auto;border-radius:6px;display:block}
.as-t{display:flex;flex-direction:column;min-width:0;line-height:1.35}.as-t b{font-size:15px}.as-t small{font-size:13px;color:var(--ink2)}.as-t em{font-style:normal;font-size:13px;font-weight:700;color:var(--red-d)}
.as-i .stepper button:disabled{opacity:.35}
.as-code{margin:8px 0;padding:10px;border-radius:12px;background:var(--paper2);text-align:center;font-size:24px;font-weight:700;letter-spacing:.08em;color:var(--red-d)}
.as-act{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:12px}.as-act a.ghost{display:inline-flex;align-items:center;color:var(--red-d);font-weight:700;text-decoration:none}
#asSub{font-size:20px;font-weight:700;color:var(--red-d)}
/* 11/5 Annie 手機實測回饋 */
.hl{font-weight:700;background:linear-gradient(transparent 58%,#f9d5da 58%)}
.notes summary .tap{display:inline-block;margin-left:8px;padding:1px 9px;border-radius:999px;background:var(--paper2);color:var(--red-d);font-size:12.5px;font-weight:700;vertical-align:1px}
.notes[open] summary .tap{display:none}
.cart-deal{display:inline-block;white-space:nowrap;align-self:flex-start;margin:3px 0 1px;padding:1px 9px;border-radius:999px;background:#fbe3e6;color:var(--red-d);font-size:12.5px;font-weight:700}
/* 11/6 Annie：代排款式點圖看大圖、價格三行說清楚、送出時顯示進度 */
.as-pic{position:relative;display:block;padding:0;border:0;background:none;cursor:zoom-in;border-radius:6px}
.as-pic span{position:absolute;left:3px;right:3px;bottom:3px;padding:1px 0;border-radius:5px;background:rgba(255,255,255,.88);color:var(--red-d);font-size:10.5px;font-weight:700;line-height:1.5}
.as-price{list-style:none;margin:2px 0 0;padding:0}
.as-price li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed var(--line);font-size:14px}
.as-price li span{color:var(--ink2)}.as-price li b{white-space:nowrap;color:var(--ink)}
.as-zoom{max-width:min(92vw,460px);width:100%;padding:12px;border:0;border-radius:16px;background:var(--paper)}
.as-zoom::backdrop{background:rgba(60,30,30,.6)}
.as-zh{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.as-zh b{font-size:16px}
.as-zoom img{display:block;width:100%;max-height:78vh;object-fit:contain;border-radius:8px}
.lock-step{display:block;margin-top:10px;font-size:14px;font-weight:700;color:var(--red-d)}

/* ───── v7（2026-11-08）：21 款新款 ───── */
/* 款式欄上方選寶貝人數（JS 產生 .ppl），清單只列這個人數有的款 */
.rail .ppl{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 10px}
.rail .ppl button{padding:7px 2px;border-radius:999px;background:var(--paper2);font-size:12.5px;font-weight:500;line-height:1.2}
.rail .ppl button[aria-pressed=true]{background:var(--ink);color:#fff;box-shadow:none}
.rail .ppl button:disabled{opacity:.35}
.rail-m .ppl{grid-template-columns:repeat(4,1fr)}
/* 新款位置鎖住、白框由版型決定、不放名字：藏起白邊、去背、名字工具 */
/* 11/14 ux1114：新款開放去背；白邊只有像素框款不開放（有框款預設設計原樣、可改；沒框款預設無邊、可加） */
body.v7.v7pix .ctx[data-ctx=head] .grp[data-tab="0"],body.v7.v7pix #headTabs button[data-t="0"],body.noname #nameBtn,body.v7 #tSideGrp{display:none!important}   /* 11/14 backname1114：新款也能寫名字（只放背面，藏「放哪」）；名字資料讀不到（body.noname）才藏「寫名字」 */
@media (max-width:899px){#frameRow{grid-column:2}}
#frameReset[aria-pressed=true]{background:var(--paper2);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
body.v7 .tri{grid-template-columns:1fr 1fr}
/* v4：轉動、翻轉只有新款有 */
body:not(.v7) .v7only{display:none!important}
/* 11/10 Annie：iPhone 打字被鍵盤擠到頂端 → 排版畫面跟著可見區上緣；打字時先收起字型／顏色／放哪，只留「不寫了／好了」 */
.studio{top:var(--vvt,0px)}
@media (max-width:899px){body.typing .ctx[data-ctx="text"] .grp{display:none}}
/* 11/10 代排清單：同款加購標籤改成固定存在、用 hidden 切換；圖片先佔好位置不跳 */
.cart-deal[hidden]{display:none}
.as-pic img{aspect-ratio:1/2;object-fit:cover}
/* 11/10 真因：手機版下方選單固定 248px 高，鍵盤彈出後紅包只剩一條 → 打字時選單縮成只有按鈕那一列 */
@media (max-width:899px){body.typing .dock{height:auto}body.typing .ctx:not([hidden]){min-height:0}}

/* 11/11 代排多組寶貝＋付款前明細 */
.as-grp+.as-grp{margin-top:18px;padding-top:14px;border-top:1px dashed var(--line)}
.as-gh{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}.as-gh[hidden]{display:none}.as-gh b{font-size:15px}
.as-gh .link{font-size:13px;color:var(--ink2)}
.as-grp-note{margin:4px 0 10px;font-size:13px;color:var(--ink2)}.as-grp-note[hidden]{display:none}
#asAddGrp{width:100%;margin-top:10px}#asAddGrp[hidden]{display:none}
.as-sum{margin:6px 0 4px;padding:10px 12px;border-radius:12px;background:var(--paper2);max-height:46vh;overflow:auto}
.as-sum-g{display:block;margin:8px 0 2px;font-size:13.5px;color:var(--red-d)}.as-sum-g:first-child{margin-top:0}
.as-sum-i{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px dashed var(--line)}
.as-sum-i span{display:flex;flex-direction:column;min-width:0}.as-sum-i b{font-size:14px}.as-sum-i small{font-size:12px;color:var(--ink2)}
.as-sum-i em{font-style:normal;font-weight:700;white-space:nowrap}
.as-sum-t{display:flex;justify-content:space-between;padding-top:7px;font-size:14px}.as-sum-t b{color:var(--red-d)}
.as-sum-note{margin:4px 0 10px;font-size:12.5px;color:var(--ink2)}

/* 11/11 第 8 點：付款視窗加 LINE 鈕、代排頁繼續付款提示 */
.as-code{margin:6px 0;font-size:14px}.as-code b{letter-spacing:.04em}
.as-act{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.as-line{display:inline-flex;align-items:center;padding:10px 14px;border-radius:999px;background:#06c755;color:#fff;font-weight:700;text-decoration:none}
.as-resume{margin:6px 0 12px;padding:9px 12px;border-radius:10px;background:#fbe3e6;font-size:14px}.as-resume[hidden]{display:none}
.as-resume a{color:var(--red-d);font-weight:700}
/* 11/11 QC：LINE 鈕被別的按鈕樣式蓋成紅字大字 → 指定白字 15px；兩顆鈕上下排滿寬 */
#asDlg .as-act{flex-direction:column;align-items:stretch}
#asDlg .as-line{justify-content:center;color:#fff;font-size:15px;line-height:1.4;padding:12px 16px}
#asDlg .as-act .pri{width:100%}

/* 11/11：打字中提示「按好了再選字型顏色」（只在手機打字時出現）；須知還沒點開時提醒 */
.typing-tip{display:none;margin:0;font-size:13px;color:var(--ink2);text-align:center}
@media (max-width:899px){body.typing .typing-tip{display:block}}
details.notes.need summary{outline:2px dashed var(--red);outline-offset:4px;border-radius:8px}

/* ───── 11/13 挑款畫面（picker.js；照 _樣稿\挑款示意1112 第 4 版，顏色、字級、間距原樣，class 加 pk- 前綴避免撞到工作檯） ───── */
/* 款式欄改由挑款畫面取代：電腦版拿掉左側款式欄，「換款式」按鈕叫出挑款畫面 */
@media (min-width:900px){.studio{grid-template-columns:minmax(0,1fr) 296px;grid-template-areas:"top top" "stage dock"}.studio>.rail{display:none}}
.pk-root{--pk-bg:#fbe3e7;--pk-skin:#fbe7d6;--pk-shade:rgba(90,58,50,.55);--pk-round:"XYGenSen","Noto Sans TC",sans-serif;font-family:"Noto Sans TC","PingFang TC",sans-serif;line-height:normal}
body.pk-on{overflow:hidden}
.picker{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;background:var(--pk-bg);color:var(--ink)}
.pk-root button:focus-visible{outline:3px solid var(--mustard);outline-offset:2px}
.pk-head{padding-top:calc(env(safe-area-inset-top,0px) + 14px);padding-bottom:10px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));background:var(--pk-bg)}
.pk-in{max-width:1120px;margin:0 auto}
.pk-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pk-head h1{margin:0;font-size:22px;font-weight:900;letter-spacing:.04em;text-wrap:balance}
.pk-sub{margin:4px 0 0;font-size:13px;color:var(--ink2)}
.pk-q{margin:14px 0 4px;font-size:14px;font-weight:700;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.pk-same{display:inline-block;padding:1px 9px;border-radius:999px;background:#fff;color:var(--red-d);font-size:12px;font-weight:700;letter-spacing:.02em}
.pk-lock{margin:2px 0 0;font-size:12.5px;color:var(--red-d)}
.pk-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-block:6px 40px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.pk-x{border:0;background:var(--paper2);width:36px;height:36px;flex:none;border-radius:50%;font-size:20px;line-height:1}
/* 幾位寶貝（Annie 11/12 定案：造型 2 大字＋蠟筆圈）：選到的被紅色蠟筆一筆圈起來；滑過去／點到時寶貝臉一顆一顆「咚咚咚」跳出來（間隔 0.11 秒） */
.pk-ppl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;align-items:end}
@media (min-width:900px){.pk-ppl{max-width:560px;gap:14px}}
.pk-ppl button{border:0;background:transparent;padding:4px 0 2px;display:grid;justify-items:center;align-content:end;gap:2px;position:relative}
.pk-ppl button:disabled{opacity:.3}
.pk-cnt{font-size:11.5px;color:var(--ink2);line-height:1.3}
.pk-face{display:block;width:21px;height:21px;flex:none;opacity:0;transform:translateY(10px) scale(.3)}
.pk-faces{display:flex;justify-content:center;height:24px;align-items:flex-end}
.pk-faces .pk-face+.pk-face{margin-left:-6px}
@keyframes pkdong{0%{opacity:0;transform:translateY(12px) scale(.3)}55%{opacity:1;transform:translateY(-6px) scale(1.15)}75%{transform:translateY(1px) scale(.95)}100%{opacity:1;transform:none}}
.pk-ppl button[aria-pressed="true"] .pk-face{animation:pkdong .46s cubic-bezier(.3,1.4,.5,1) both;animation-delay:calc(var(--i) * 110ms)}
@media (hover:hover){.pk-ppl button:not(:disabled):hover .pk-face{animation:pkdong .46s cubic-bezier(.3,1.4,.5,1) both;animation-delay:calc(var(--i) * 110ms)}}
.pk-big{position:relative;display:grid;place-items:center;width:62px;height:50px}
.pk-big b{font-family:var(--pk-round);font-size:34px;font-weight:400;line-height:1;color:var(--ink)}
.pk-big b small{font-family:"Noto Sans TC",sans-serif;font-size:13px;font-weight:700;margin-left:2px}
.pk-big svg{position:absolute;inset:-4px -6px;width:calc(100% + 12px);height:calc(100% + 8px);overflow:visible;pointer-events:none}
.pk-big path{fill:none;stroke:var(--red);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:190;stroke-dashoffset:190;filter:url(#pk-crayon)}
.pk-ppl button[aria-pressed="true"] .pk-big path{animation:pkdraw .5s ease-out .15s forwards}
.pk-ppl button[aria-pressed="true"] .pk-big b{color:var(--red)}
@keyframes pkdraw{to{stroke-dashoffset:0}}
/* 款式牆：手機兩欄、平板三欄、電腦自動 */
.pk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;max-width:1120px;margin:0 auto}
@media (min-width:640px){.pk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:900px){.pk-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:26px 22px}}
.pk-card{border:0;background:none;padding:0;text-align:left;display:grid;gap:7px;animation:pkpop .35s both;min-width:0}
.pk-card:disabled{opacity:.45}
.pk-pic{position:relative;aspect-ratio:420/1100;max-width:100%;display:grid;place-items:end center}
.pk-card img{width:100%;height:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 8px 12px rgba(90,58,50,.18));transition:transform .2s}
@media (hover:hover){.pk-card:not(:disabled):hover img{transform:translateY(-4px)}}
.pk-card:active img{transform:scale(.97)}
.pk-nm{display:flex;align-items:baseline;justify-content:space-between;gap:6px;min-width:0;line-height:1.4}
.pk-nm b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-nm small{font-size:12px;color:var(--ink2);white-space:nowrap}
.pk-card.cur .pk-pic::after{content:"現在用這款";position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:11.5px;padding:3px 9px;border-radius:999px;white-space:nowrap}
@keyframes pkpop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* 看大圖 */
.pk-zoom{position:fixed;inset:0;z-index:61;background:var(--pk-shade);display:grid;place-items:center;padding:16px}
.pk-zm{width:min(720px,100%);max-height:100%;overflow-y:auto;background:var(--paper);border-radius:22px;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));display:grid;gap:12px;animation:pkup .25s both}
@keyframes pkup{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.pk-zm-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pk-zm-top b{font-size:19px}
.pk-zm-top span{display:block;font-size:13px;color:var(--ink2)}
.pk-sides{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end;touch-action:pan-y}
.pk-sides figure{margin:0;display:grid;gap:6px;justify-items:center;min-width:0}
.pk-sides img{width:100%;max-height:52vh;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(90,58,50,.2))}
.pk-sides figcaption{font-size:12.5px;color:var(--ink2)}
.pk-also{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--ink2)}
.pk-also button{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:4px 11px;font-size:13px}
.pk-also button[aria-pressed="true"]{border-color:var(--red);color:var(--red);font-weight:700}
.pk-also button:disabled{opacity:.35}
.pk-act{display:flex;align-items:center;gap:8px}
.pk-pri{flex:1;border:0;background:var(--red);color:#fff;border-radius:999px;padding:11px 20px;font-weight:700;font-size:15px}
.pk-pri:active:not(:disabled){background:var(--red-d)}
.pk-nav{border:1px solid var(--line);background:var(--paper);width:44px;height:44px;flex:none;border-radius:50%;font-size:20px}
.pk-hint{margin:0;font-size:12px;color:var(--ink2);text-align:center}
/* 11/14 Annie：平面設計示意說明（挑款大圖、排版頁） */
.pk-flat{margin:2px 0 0;font-size:12px;color:var(--ink2);text-align:center}
.stage .flat-note{position:absolute;left:50%;top:8px;transform:translateX(-50%);margin:0;padding:2px 10px;border-radius:999px;background:rgba(255,255,255,.82);color:var(--ink2);font-size:11px;line-height:1.5;white-space:nowrap;pointer-events:none;z-index:2}
@media (prefers-reduced-motion:reduce){.pk-face{animation:none!important;opacity:1;transform:none}.pk-big path{animation:none!important;stroke-dashoffset:0}.pk-card{animation:none}.pk-card img{transition:none}}
/* 開場「款款好運」字圖：字的大小跟原本「五款好運，任你挑」一樣（新圖寬＝原圖 0.578 倍） */
.sx-say img.say3{width:calc(min(92vw,700px) * .578);height:auto}
/* 規格 B：確認訂單頁精簡規格卡 */
.co-spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0 0}
.co-spec div{padding:7px 10px;border-radius:10px;background:var(--paper2);line-height:1.35;min-width:0}
.co-spec dt{font-size:12px;color:var(--ink2)}
.co-spec dd{margin:1px 0 0;font-size:14px;font-weight:700;color:var(--ink)}
.co-spec .hot{background:#fbe3e6}.co-spec .hot dd{color:var(--red-d)}

/* ───── 11/14 ux1114 ───── */
/* 換款式／手機換面：舊畫面拍一張蓋著，新畫面畫好後淡出（studio.js snapFade） */
.fadecv{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.fadecv[hidden]{display:none}
/* 調色拉桿：亮度／對比／膚色。軌道 8px、圓鈕 26px（手機好拖），拉過的那段填磚紅 */
.slide{display:flex;align-items:center;gap:8px;min-width:0}
.slide input[type=range]{--p:33%;flex:1;min-width:0;height:34px;margin:0;background:none;-webkit-appearance:none;appearance:none;touch-action:pan-x;cursor:pointer}
.slide input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:9px;background:linear-gradient(90deg,#e8a3a9 0,#e8a3a9 var(--p),var(--paper2) var(--p))}
.slide input[type=range]::-moz-range-track{height:8px;border-radius:9px;background:linear-gradient(90deg,#e8a3a9 0,#e8a3a9 var(--p),var(--paper2) var(--p))}
.slide input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-9px;border-radius:50%;background:#fff;border:2.5px solid var(--red);box-shadow:0 2px 5px rgba(90,40,40,.25)}
.slide input[type=range]::-moz-range-thumb{width:21px;height:21px;border-radius:50%;background:#fff;border:2.5px solid var(--red);box-shadow:0 2px 5px rgba(90,40,40,.25)}
.slide input[type=range]:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:9px}
.slide output{flex:none;width:34px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;color:var(--ink2)}
.grp h3 label{cursor:pointer}
#toneReset:disabled{opacity:.45}
@media (max-width:899px){
  .ctx[data-ctx=head] .grp.tone{min-height:32px}
  .slide input[type=range]{height:32px}
  .tone-act h3{display:none}.tone-act{grid-template-columns:minmax(0,1fr)}
  .tone-act .pills button{min-height:34px}
}
/* 挑款：換款／換人數時舊圖淡出（picker.js ghost） */
.pk-sides figure{position:relative}
.pk-ghost{position:absolute;pointer-events:none;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(90,58,50,.2))}
.pk-body{position:relative}
.pk-grid.swap .pk-card{animation:none}
.pk-grid.old{position:absolute;margin:0;pointer-events:none}
/* 第 5 項：「預覽圖，付款後才會印製唷」從紅包上的橫條改成紅包下方頁面小字（排版工作檯舞台底部、確認訂單預覽下方） */
.stage .pv-note{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);margin:0;padding:2px 10px;border-radius:999px;background:rgba(255,255,255,.82);color:var(--red-d);font-size:11.5px;line-height:1.5;white-space:nowrap;pointer-events:none;z-index:2}
.co-pv .pv-note2{grid-column:1/-1;margin:-6px 0 0;text-align:center;font-size:12.5px;color:var(--red-d)}
/* 第 4 項：付款按鈕「還沒完成」的樣子（可以按）＋缺的項目虛線框。配色：芥末黃 #e0a23a 虛線＋淡奶油底，閃的時候換磚紅＋黃光暈（跟網站粉／磚紅同色系，不用螢光綠） */
.pri.wait{opacity:.55;box-shadow:0 3px 0 rgba(158,36,48,.45)}
.pri.wait:active{transform:none}
.need{outline:2.5px dashed #e0a23a;outline-offset:5px;border-radius:12px;background-color:rgba(255,226,160,.22);scroll-margin:80px}
.need-blink{animation:needblink .5s ease-in-out 3}
@keyframes needblink{0%,100%{outline-color:#e0a23a;box-shadow:0 0 0 0 rgba(242,185,55,0)}50%{outline-color:var(--red);box-shadow:0 0 0 7px rgba(242,185,55,.38)}}
@media (prefers-reduced-motion:reduce){.need-blink{animation:none}}
#payHint.bad,#asHint.bad{font-weight:700}
.agrees label.need{padding:2px 4px}

/* ═════ 11/14 layout1114（Annie 選定）：完成頁＝A1 大舞台、加購頁＝B1 款式牆。示意＝_build\layout1114\mock.html；#flow 的 data-v 切版面 ═════ */
#flow .only-m{display:none}
@media (max-width:899px){#flow .only-m{display:inline-flex}#flow .only-d{display:none}}
#flow .x-h{font-family:"XYGenSen","Noto Sans TC",sans-serif;font-weight:400;letter-spacing:.04em;line-height:1.3;margin:0;color:var(--ink)}
#flow .x-ok{display:inline-flex;align-items:center;gap:6px;margin:0 0 6px;font-size:calc(13.5px * var(--z,1));font-weight:700;color:#3f7d5c}
#flow .x-ok i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#3f7d5c;color:#fff;font-style:normal;font-size:12px}
#flow .x-sub{margin:4px 0 0;font-size:calc(14px * var(--z,1));color:var(--ink2);line-height:1.6}
#flow .x-q{margin:0;font-size:calc(19px * var(--z,1));font-weight:700;line-height:1.4}
#flow .x-btn2{height:calc(48px * var(--z,1));padding:0 20px;border-radius:999px;background:var(--paper2);color:var(--ink);font-size:calc(15px * var(--z,1));font-weight:500;white-space:nowrap}
#flow .x-pri{height:calc(52px * var(--z,1));padding:0 24px;font-size:calc(16px * var(--z,1))}
/* A1 完成頁（電腦：紅包高＝畫面 66%，不設上限，大螢幕跟著放大；也不會比左欄寬） */
#flow[data-v=more]{display:flex;flex-direction:column;background:linear-gradient(180deg,var(--wall2) 0,var(--wall) 74%,var(--floor) 74.2%,#f3b5bf 100%)}
#flow[data-v=more] .flow-in{flex:1 0 auto;display:block;max-width:none;min-height:0;padding:0}
.a1-in{display:grid;grid-template-columns:minmax(0,1fr) clamp(380px,26vw,640px);gap:clamp(40px,4vw,90px);align-items:center;width:min(94vw,2200px);min-height:calc(var(--vvh,100dvh) - 52px);margin:0 auto;padding:0 0 30px;box-sizing:border-box}
.a1-pics{--H:min(calc(var(--vvh,100dvh) * .66), calc((94vw - clamp(380px,26vw,640px) - clamp(40px,4vw,90px) - clamp(28px,2.4vw,56px)) / 2 / var(--a,.38)));display:flex;justify-content:center;align-items:flex-end;gap:clamp(28px,2.4vw,56px);min-width:0}
.a1-env{margin:0;display:grid;justify-items:center;gap:8px}
.a1-env canvas{display:block;height:calc(var(--H) * var(--r,1));width:auto;border-radius:3px;filter:drop-shadow(8px 16px 18px rgba(120,30,50,.32))}
.a1-env figcaption{font-size:13.5px;color:var(--ink2)}
.a1-card{--z:1;background:var(--paper);border-radius:20px 14px 22px 16px;padding:calc(28px * var(--z)) calc(28px * var(--z)) calc(26px * var(--z));box-shadow:0 18px 40px -26px rgba(120,40,50,.55);display:grid;gap:calc(14px * var(--z))}
.a1-card .x-h{font-size:calc(34px * var(--z))}
.a1-card hr{border:0;border-top:1.5px dashed var(--line);margin:4px 0}
.a1-card .flow-g{font-size:calc(14px * var(--z));padding:2px 0}
.x-item{display:grid;grid-template-columns:calc(40px * var(--z,1)) minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border-radius:12px;background:var(--paper2)}
.x-item canvas{width:calc(40px * var(--z,1));height:calc(62px * var(--z,1));border-radius:3px}
.x-item b{display:block;font-size:calc(14.5px * var(--z,1));font-weight:500;line-height:1.4}.x-item span{font-size:calc(12.5px * var(--z,1));color:var(--ink2)}
.x-item em{font-style:normal;font-weight:700;font-size:calc(14.5px * var(--z,1))}
.a1-act{display:grid;gap:10px;margin-top:4px}
.a1-act .x-pri,.a1-act .x-btn2{width:100%}
.x-barq{display:none}
@media (min-width:1700px){.a1-card{--z:1.2}}
@media (min-width:2200px){.a1-card{--z:1.4}}
@media (max-width:899px){
  /* 手機：一個畫面裝完；紅包取「高度」與「寬度」兩個限制較小者；問題和兩顆按鈕固定在底部（主按鈕在右） */
  .a1-in{width:auto;min-height:0;grid-template-columns:minmax(0,1fr);gap:12px;padding:4px 14px 124px;align-items:start}   /* 124＝底部固定列高約 108＋12 */
  .a1-pics{--H:min(calc(var(--vvh,100dvh) - 372px), calc((100vw - 42px) / 2 / var(--a,.38)));gap:14px}
  .a1-card{padding:10px 12px;gap:0;border-radius:16px}
  .a1-card>div:first-child>.x-h,.a1-card>div:first-child>.x-sub,.a1-card hr,.a1-q,.a1-card .flow-g{display:none}
  .a1-card .x-ok{margin:0 0 6px 2px}
  .a1-act{display:flex;flex-wrap:wrap;gap:8px;margin:0;border-radius:18px 18px 0 0;position:fixed;left:0;right:0;bottom:0;z-index:9;padding:10px 12px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);box-shadow:0 -2px 0 var(--line)}
  .x-barq{flex:0 0 100%;margin:2px 4px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.x-barq b{font-size:17px}.x-barq span{font-size:12.5px;color:var(--ink2)}
  #flow .a1-act .x-btn2{order:1;flex:0 0 auto;width:auto;height:48px;padding:0 16px;font-size:14.5px}
  #flow .a1-act .x-pri{order:2;flex:1;width:auto;height:48px;font-size:15.5px}
}
/* B1 加購頁（電腦版寬度跟著螢幕放大到 94%） */
#flow[data-v=addon]{background:#fbe3e7}
#flow[data-v=addon] .flow-in{display:block;max-width:none;min-height:0;padding:0}
.b-head{width:min(94vw,2200px);margin:0 auto;padding:6px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 30px;align-items:end}
.b-top{display:flex;align-items:center;gap:10px}
.b-promo{display:inline-block;margin:0 0 8px;padding:5px 14px;border-radius:12px 9px 13px 10px;background:#c73e6e;color:#fff;font-size:14.5px;font-weight:700;letter-spacing:.08em;transform:rotate(-1deg)}
.b-head .x-h{font-size:30px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.b-head .faces canvas{width:34px;height:34px}
.b-price{display:grid;justify-items:end;line-height:1.25;padding-bottom:4px}
.b-price small{font-size:13px;color:var(--ink2)}
.b-price b{font-family:"XYGenSen","Noto Sans TC",sans-serif;font-weight:400;font-size:40px;color:var(--red-d);letter-spacing:.02em;white-space:nowrap}
.b-price b span{font-family:"Noto Sans TC",sans-serif;font-size:16px;font-weight:700;margin-right:4px}
.b-price b em{display:none;font-family:"Noto Sans TC",sans-serif;font-style:normal;font-size:15px;font-weight:700;color:var(--ink);margin-left:4px}
.b-tool{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:6px}
.b-chips{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;min-width:0}
.b-chips button{flex:none;height:36px;padding:0 15px;border-radius:999px;background:#fff;color:var(--ink);font-size:14px;font-weight:500;border:1.5px solid transparent}
.b-chips button i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:0}
.b-chips button small{margin-left:4px;font-size:12px;color:var(--ink2)}
.b-chips button[aria-pressed=true]{border-color:var(--red);color:var(--red-d);font-weight:700}
.b-hint{margin:0;font-size:13px;color:var(--ink2)}
.b1-grid{width:min(94vw,2200px);margin:18px auto 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(136px,9.5vw,230px),1fr));gap:24px 18px}
.b-card{border:0;background:none;padding:0;display:grid;gap:6px;text-align:left;min-width:0;position:relative;color:var(--ink)}
.b-card[hidden]{display:none}
.b-pic{position:relative;display:block;aspect-ratio:530/1372;min-height:0}
.b-pic::before{content:"";position:absolute;left:4%;right:4%;top:24%;bottom:0;border-radius:4px;background:var(--bg);opacity:.28;transition:opacity .25s}
.b-pic.drawn::before{opacity:0}
.b-cv{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 8px 12px rgba(90,58,50,.18));transition:transform .2s;animation:bfade .25s both}
@keyframes bfade{from{opacity:0}to{opacity:1}}
.b-go{position:absolute;left:50%;bottom:10px;z-index:2;transform:translateX(-50%);padding:4px 11px;border-radius:999px;background:rgba(255,255,255,.95);color:var(--red-d);font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 2px 8px -3px rgba(90,40,40,.5);opacity:0;transition:opacity .15s;pointer-events:none}
.b-card:focus-visible .b-go{opacity:1}
@media (hover:hover){.b-card:hover .b-go{opacity:1}.b-card:hover .b-cv{transform:translateY(-4px)}}
.b-nm{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.b-nm b{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b-nm small{font-size:12px;color:var(--red-d);font-weight:700;white-space:nowrap}
.b-nm small span{color:var(--ink2);font-weight:500}
.b-card.on .b-pic::after{content:"✓ 已加購";position:absolute;top:-10px;right:-8px;z-index:2;padding:3px 9px;border-radius:999px;background:var(--red);color:#fff;font-size:12px;font-weight:700;box-shadow:0 2px 6px -2px rgba(90,40,40,.5)}
.b-card.on .b-pic{outline:2.5px solid var(--red);outline-offset:5px;border-radius:12px}
.b-card.on .b-nm small{color:var(--ink2)}
.b-bar{position:sticky;bottom:0;z-index:5;background:rgba(255,255,255,.97);box-shadow:0 -2px 0 var(--line);margin-top:26px}
.b-bar-in{width:min(94vw,2200px);margin:0 auto;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.b-bar p{margin:0;font-size:14px;color:var(--ink2);line-height:1.5;min-width:0}.b-bar p b{color:var(--ink)}.b-bar p em{font-style:normal;font-weight:700;color:var(--red-d);font-size:17px}
#flow .b-bar .x-pri{flex:none;height:50px;padding:0 30px}
@media (max-width:899px){
  .b-head{width:auto;padding:4px 14px 0;grid-template-columns:minmax(0,1fr);gap:2px}
  .b-promo{font-size:13px;padding:4px 12px;margin:0}
  .b-head .x-h{font-size:19.5px;margin-top:6px}
  .b-head .faces.only-m canvas{width:30px;height:30px}
  .b-price{justify-items:start;grid-auto-flow:column;justify-content:start;align-items:baseline;gap:10px;padding:0}
  .b-price b{font-size:26px}.b-price b span{font-size:14px}.b-price b em{display:inline}
  .b-price small:first-child{display:none}.b-price small{font-size:12px}
  .b-tool{position:sticky;top:0;z-index:4;margin:4px -14px 0;padding:8px 14px;background:#fbe3e7}
  .b-hint{display:none}
  .b-chips{mask-image:linear-gradient(90deg,#000 82%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent)}
  .b-chips button{height:34px;padding:0 12px;font-size:13.5px}
  .b1-grid{width:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px;padding:0 14px;margin-top:8px}
  .b-nm b{font-size:13px}.b-nm small{font-size:11px}
  .b-go{display:none}
  .b-bar-in{width:auto;padding:10px 12px calc(12px + env(safe-area-inset-bottom));gap:10px}
  .b-bar p{font-size:12.5px}.b-bar p em{font-size:15px}
  #flow .b-bar .x-pri{height:48px;padding:0 18px;font-size:15px}
}
/* ═════ 11/14 look1fix1114 追加（Annie 看測試站 B1）═════
   A. 加購頁：價格那塊從右上角移到標題下方靠左（標題 → 價格 → 提示 由左往右一路讀）；「圖上是自動擺的…」加芥末黃螢光筆底、字大一階（13→15px，手機也顯示）；
      底部固定列的「還沒加購／這組小計」靠右，貼在「不用了，下一步 ›」左邊成一組。
   B. 商品圖區（畫布、紅包圖、縮圖）不給拖曳、不給長按存圖；文字區照樣可選取（程式見 studio.js PROD_AREA）。 */
.b-head{grid-template-columns:minmax(0,1fr);gap:6px}
.b-sub{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 26px;margin-top:2px}
.b-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;justify-items:start;padding:0}
.b-price b{font-size:34px}
.b-price small{font-size:13.5px}
.b-hint{font-size:15px;font-weight:700;color:var(--ink);padding:1px 4px;border-radius:2px;
  background:linear-gradient(transparent 52%,rgba(242,185,55,.42) 52%,rgba(242,185,55,.42) 94%,transparent 94%)}
.b-tool{margin-top:4px}
.b-bar-in{justify-content:flex-end}
.b-bar p{text-align:right}
@media (max-width:899px){
  .b-head{gap:2px}
  .b-sub{gap:2px 10px;margin-top:0}
  .b-price{gap:2px 10px}
  .b-price b{font-size:26px}
  .b-price small{font-size:12px}
  .b-hint{display:block;align-self:flex-start;font-size:13.5px;margin:2px 0 0;padding:0 3px}
  .b-bar-in{justify-content:flex-end}
}
canvas,img,.sx-card,.pk-card,.pk-zm figure,.b-pic,.a1-env,.co-pv,.cart-th{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}

/* 11/14 backname1114：確認訂單「名字太長放不下」 */
.cart-t .bad{color:var(--red-d);font-weight:700}

/* 11/14 確認包第 6 題：挑款畫面右上「‹ 回到排版」（從排版上一步回來才出現；從首頁進來維持 ×）。Annie：原本太平面、太大眾 → 用網站品牌語彙 */
.pk-back{flex:none;border:0;padding:0;background:none;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.pk-back[hidden]{display:none}
.pk-bk-t{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;text-align:left}
.pk-bk-t i{font-style:normal;margin-right:3px}
/* A 紅包膠囊（推薦）：白底膠囊＋磚紅描邊與底下一條厚邊（跟首頁大按鈕同一個立體感），左邊斜斜探出「現在這款」的小紅包 */
.pk-back-a{display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:4px 16px 4px 6px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 2px var(--red),0 3px 0 var(--red-d);transition:transform .12s,box-shadow .12s}
.pk-back-a:hover{transform:translateY(-1px);box-shadow:inset 0 0 0 2px var(--red),0 4px 0 var(--red-d)}
.pk-back-a:active{transform:translateY(2px);box-shadow:inset 0 0 0 2px var(--red),0 1px 0 var(--red-d)}
.pk-back-a .pk-bk-th{position:relative;width:30px;height:44px;margin:-10px 0 -6px;flex:none;border-radius:5px;overflow:hidden;background:var(--red);transform:rotate(-8deg);box-shadow:0 0 0 2px #fff,0 3px 6px -1px rgba(90,40,40,.45)}
.pk-back-a .pk-bk-th img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.pk-back-a .pk-bk-t b{font-family:var(--pk-round);font-weight:400;font-size:17px;letter-spacing:.06em;color:var(--red-d);white-space:nowrap}
.pk-back-a .pk-bk-t small{margin-top:1px;font-size:11.5px;font-weight:700;color:var(--ink2);white-space:nowrap;max-width:9.5em;overflow:hidden;text-overflow:ellipsis}
/* B 蠟筆圈：粉底膠囊，紅色蠟筆一筆圈起來（同「幾位寶貝」選到的圈，打開時畫出來） */
.pk-back-b{position:relative;display:inline-grid;place-items:center;min-height:48px;padding:6px 18px;border-radius:999px;background:rgba(255,255,255,.72)}
.pk-back-b .pk-bk-t{font-family:var(--pk-round);font-size:18px;letter-spacing:.06em;color:var(--red-d);white-space:nowrap;flex-direction:row;align-items:center}
.pk-back-b svg{position:absolute;inset:-7px -10px;width:calc(100% + 20px);height:calc(100% + 14px);overflow:visible;pointer-events:none}
.pk-back-b path{fill:none;stroke:var(--red);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:700;stroke-dashoffset:700;filter:url(#pk-crayon);animation:pkdraw .6s ease-out .2s forwards}
.pk-back-b:hover{background:#fff}
.pk-back-b:active{transform:translateY(1px)}
@media (max-width:420px){.pk-back-a{gap:7px;padding-right:12px}.pk-back-a .pk-bk-t b{font-size:15.5px}.pk-back-b .pk-bk-t{font-size:16px}.pk-back-b{padding:6px 14px}}
@media (prefers-reduced-motion:reduce){.pk-back-b path{animation:none;stroke-dashoffset:0}.pk-back-a{transition:none}}

/* 11/14 Annie：名字可以換行（打字框改 textarea，最多 2 行） */
#inlineText{resize:none;overflow:hidden;white-space:pre;font:inherit}

/* 11/14 Annie 第二輪「回到排版」：拿掉膠囊外框與厚度，保留小紅包＋款名 → c 紙膠帶便條（預設）／d 蠟筆底線／e 票根吊牌（?pkback=c|d|e） */
.pk-back-c,.pk-back-d,.pk-back-e{position:relative;display:inline-flex;align-items:center;gap:9px;min-height:48px}
.pk-back-c .pk-bk-t b,.pk-back-d .pk-bk-t b,.pk-back-e .pk-bk-t b{position:relative;font-family:var(--pk-round);font-weight:400;font-size:16.5px;letter-spacing:.06em;color:var(--red-d);white-space:nowrap}
.pk-back-c .pk-bk-t small,.pk-back-d .pk-bk-t small,.pk-back-e .pk-bk-t small{margin-top:2px;font-size:11.5px;font-weight:700;color:var(--ink2);white-space:nowrap;max-width:8.5em;overflow:hidden;text-overflow:ellipsis}
.pk-back-c .pk-bk-th,.pk-back-d .pk-bk-th,.pk-back-e .pk-bk-th{position:relative;z-index:1;flex:none;width:26px;height:40px;border-radius:3px;overflow:hidden;background:var(--red)}
.pk-back-c .pk-bk-th img,.pk-back-d .pk-bk-th img,.pk-back-e .pk-bk-th img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.pk-back-c .pk-bk-t,.pk-back-d .pk-bk-t,.pk-back-e .pk-bk-t{position:relative;z-index:1}
/* c 紙膠帶便條：白紙撕邊（clip-path 不規則邊）微微斜貼，上緣一段半透明粉紙膠帶；小紅包像夾在便條左邊 */
.pk-back-c{padding:8px 15px 8px 11px;transform:rotate(-1.6deg)}
.pk-back-c .pk-bk-paper{position:absolute;inset:0;background:#fffdf8;clip-path:polygon(0 4%,7% 0,19% 3%,33% 0,48% 2%,63% 0,78% 3%,91% 0,100% 2%,99% 22%,100% 46%,98% 70%,100% 96%,86% 100%,70% 97%,54% 100%,38% 98%,22% 100%,8% 97%,0 100%,1% 74%,0 50%,2% 26%)}
.pk-back-c .pk-bk-tape{position:absolute;z-index:2;top:-7px;left:50%;width:44px;height:14px;margin-left:-22px;transform:rotate(4deg);background:repeating-linear-gradient(90deg,rgba(242,170,186,.78) 0 6px,rgba(247,190,203,.78) 6px 12px);clip-path:polygon(0 8%,6% 0,94% 4%,100% 0,98% 50%,100% 100%,92% 94%,8% 100%,0 92%,3% 50%)}
.pk-back-c .pk-bk-th{transform:rotate(-7deg);box-shadow:0 0 0 1.5px #fff}
.pk-back-c:hover{transform:rotate(-.6deg)}
.pk-back-c:active{transform:rotate(-.6deg) translateY(1px)}
/* d 蠟筆底線：沒有框，小紅包斜放，「回到排版」底下一筆紅色蠟筆線（滑過時重畫） */
.pk-back-d{padding:4px 4px 4px 2px}
.pk-back-d .pk-bk-th{transform:rotate(-9deg);box-shadow:0 0 0 2px #fff}
.pk-back-d .pk-bk-line{position:absolute;left:-2px;right:-4px;bottom:-6px;width:calc(100% + 6px);height:9px;overflow:visible}
.pk-back-d .pk-bk-line path{fill:none;stroke:var(--red);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:400;stroke-dashoffset:400;filter:url(#pk-crayon);animation:pkdraw .55s ease-out .2s forwards}
.pk-back-d:hover .pk-bk-line path{animation:pkdraw2 .45s ease-out}
.pk-back-d .pk-bk-t small{margin-top:7px}
@keyframes pkdraw2{from{stroke-dashoffset:400}to{stroke-dashoffset:0}}
/* e 票根吊牌：剪紙票根（左存根放小紅包、虛線打孔＋上下半圓缺口、右緣花邊剪），1.4px 細線描邊，沒有陰影厚度 */
.pk-back-e{width:168px;height:52px;padding:0 0 0 11px;gap:21px}   /* 存根 48px：小紅包在存根裡、字從打孔線右邊開始 */
.pk-back-e .pk-bk-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.pk-back-e .pk-bk-shape{fill:#fffaf3;stroke:var(--red);stroke-width:1.4;stroke-linejoin:round}
.pk-back-e .pk-bk-perf{fill:none;stroke:var(--red);stroke-width:1.2;stroke-dasharray:3 3}
.pk-back-e .pk-bk-th{width:24px;height:37px;transform:rotate(-5deg)}
.pk-back-e:hover .pk-bk-shape{fill:#fff}
.pk-back-e:active{transform:translateY(1px)}
@media (max-width:420px){.pk-back-c .pk-bk-t b,.pk-back-d .pk-bk-t b,.pk-back-e .pk-bk-t b{font-size:15.5px}.pk-back-c{padding-right:12px}}
@media (prefers-reduced-motion:reduce){.pk-back-d .pk-bk-line path{animation:none;stroke-dashoffset:0}}

/* 11/14 Annie 第三輪「回到排版」：要幸也自己的樣子 → f 毛線小羊舉牌（預設）／g 紅包剪影（?pkback=f|g）。沒有外框、沒有厚邊陰影；電腦版放大（高 ≥64px） */
.pk-back-f,.pk-back-g{position:relative;display:inline-flex;min-height:56px}
.pk-back-f .pk-bk-t b,.pk-back-g .pk-bk-t b{font-family:var(--pk-round);font-weight:400;font-size:16px;letter-spacing:.06em;white-space:nowrap}
.pk-back-f .pk-bk-t small,.pk-back-g .pk-bk-t small{margin-top:3px;font-size:11.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* f 毛線小羊舉牌：開場那隻鉤織小羊（實拍去背，開場已預先載入）站在左邊，背後插一支木棒撐著小牌子，現在這款的小紅包從牌子後面探出頭 */
.pk-back-f{align-items:flex-end;padding:0 18px 0 0}
.pk-back-f .pk-bk-sheep{position:relative;z-index:3;display:block;flex:none;width:53px;height:50px;margin-right:-15px;transform-origin:50% 92%}
.pk-back-f .pk-bk-sign{position:relative;z-index:2;display:block;margin-bottom:10px;padding:7px 13px 7px 19px;transform:rotate(-2.5deg);transform-origin:20% 100%;transition:transform .25s}
.pk-back-f .pk-bk-board{position:absolute;inset:0;z-index:1;background:#fffaf4;border-radius:9px 6px 10px 5px/6px 10px 6px 9px}
.pk-back-f .pk-bk-stick{position:absolute;z-index:0;left:22px;top:calc(100% - 4px);width:5px;height:22px;border-radius:2px 2px 3px 3px;background:#c49a70;transform:rotate(26deg);transform-origin:50% 0}
.pk-back-f .pk-bk-th{position:absolute;z-index:0;right:-17px;top:50%;width:24px;height:37px;margin-top:-20px;border-radius:3px;overflow:hidden;background:var(--red);transform:rotate(11deg)}
.pk-back-f .pk-bk-th img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.pk-back-f .pk-bk-t{position:relative;z-index:2;color:var(--red-d)}
.pk-back-f .pk-bk-t small{color:var(--ink2);max-width:10em}   /* 最長「吃飽飽長大大・4 位」手機也不截 */
@keyframes pksheep{0%,100%{transform:none}22%{transform:rotate(-8deg)}50%{transform:rotate(6deg)}76%{transform:rotate(-3deg)}}
@media (hover:hover){.pk-back-f:hover .pk-bk-sheep{animation:pksheep .6s ease-in-out}.pk-back-f:hover .pk-bk-sign{transform:rotate(-.8deg)}}
.pk-back-f:active .pk-bk-sheep{animation:pksheep .5s ease-in-out}
.pk-back-f:active .pk-bk-sign{transform:rotate(-.8deg) translateY(1px)}
/* g 紅包剪影：按鈕本身就是一個橫放的小紅包（刀模正面比例 1:2.59，左邊是打開的圓弧上蓋＋卡口），顏色＝現在這款的主色（catalog bg），字色自動選看得清楚的；滑過時上蓋微微掀起 */
.pk-back-g{height:58px;aspect-ratio:259/100;align-items:center;transition:transform .15s}
.pk-back-g .pk-bk-env{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.pk-back-g .pk-bk-body{fill:var(--env)}
.pk-back-g .pk-bk-lid{fill:var(--lid);transform-box:fill-box;transform-origin:100% 50%;transition:transform .32s cubic-bezier(.3,1.3,.5,1)}
.pk-back-g .pk-bk-fold{fill:none;stroke:var(--envln);stroke-width:1}
.pk-back-g .pk-bk-t{position:absolute;z-index:1;left:calc(22.8% + 9px);right:8px;top:50%;transform:translateY(-50%)}
.pk-back-g .pk-bk-t small{max-width:100%;opacity:.92}
@media (hover:hover){.pk-back-g:hover .pk-bk-lid{transform:scaleX(.72) skewY(-5deg)}}
.pk-back-g:active{transform:translateY(1px)}
.pk-back-g:active .pk-bk-lid{transform:scaleX(.72) skewY(-5deg)}
@media (max-width:420px){.pk-back-f .pk-bk-t b,.pk-back-g .pk-bk-t b{font-size:15.5px}.pk-back-g .pk-bk-t small{font-size:11px}}
@media (min-width:900px){
  .pk-back-f,.pk-back-g{min-height:64px}
  .pk-back-f{padding-right:22px}
  .pk-back-f .pk-bk-t b,.pk-back-g .pk-bk-t b{font-size:19px}
  .pk-back-f .pk-bk-t small,.pk-back-g .pk-bk-t small{font-size:13px}
  .pk-back-f .pk-bk-sheep{width:68px;height:64px;margin-right:-19px}
  .pk-back-f .pk-bk-sign{margin-bottom:13px;padding:9px 17px 9px 25px}
  .pk-back-f .pk-bk-stick{left:28px;width:6px;height:27px}
  .pk-back-f .pk-bk-th{width:29px;height:45px;right:-21px;margin-top:-24px}
  .pk-back-g{height:68px}
}
@media (prefers-reduced-motion:reduce){.pk-back-f .pk-bk-sheep,.pk-back-f:hover .pk-bk-sheep,.pk-back-f:active .pk-bk-sheep{animation:none}.pk-back-f .pk-bk-sign,.pk-back-g,.pk-back-g .pk-bk-lid{transition:none}}

/* ───────── 11/15 Annie 六點（_build\fix1115\00_說明.md）───────── */
/* 2. 看大圖換款：殘影不帶陰影（不再兩層陰影疊在一起變深）；圖固定比例，換圖時版面不跳 */
.pk-sides img{height:auto}
.pk-ghost,.pk-sides img.pk-ghost{filter:none}
/* 1. 代排：縮圖改最新排版圖、看大圖＝正面＋背面 */
.as-pic img{aspect-ratio:360/932;object-fit:contain;height:auto}
.as-zoom{max-width:min(92vw,620px)}
.as-zs{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.as-zs figure{margin:0;display:grid;gap:4px;justify-items:center;min-width:0}
.as-zs img{width:100%;height:auto;max-height:66vh;object-fit:contain;border-radius:0;filter:drop-shadow(0 6px 10px rgba(90,58,50,.18))}
.as-zs figcaption{font-size:12.5px;color:var(--ink2)}
.as-zoom .pk-flat{margin:8px 0 0}

/* 4. 排版頁頂部提示（?hd=a 小羊便條〔預設〕／b 蠟筆底線／c 小提示標籤／0 原樣） */
.status span{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
html[data-hd=a] .status span{display:inline-flex;align-items:center;gap:7px;padding:4px 16px 4px 8px;border-radius:999px;background:#fdf4ea;box-shadow:inset 0 0 0 1px #f0dcc8;color:var(--ink);font-size:14px;font-weight:500;letter-spacing:.07em;line-height:1.6}
html[data-hd=a] .status span::before{content:"";flex:none;width:34px;height:30px;margin:-6px 0;background:url(assets/sheep_photo.webp) center/contain no-repeat}
html[data-hd=b] .status span{padding:0 4px 5px;color:var(--ink);font-weight:700;font-size:15.5px;letter-spacing:.1em;line-height:1.5;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.2C30 3.6 58 7.4 92 5.1s70-2.6 106 .4' fill='none' stroke='%23f2b937' stroke-width='3.6' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M6 7.4C40 5.6 80 8.2 120 6.4s56-1.4 74 .2' fill='none' stroke='%23f2b937' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") left bottom/100% 9px no-repeat}
html[data-hd=c] .status span{color:var(--ink);font-size:14.5px;font-weight:500;letter-spacing:.06em}
html[data-hd=c] .status span::before{content:"小提示";display:inline-block;margin-right:10px;padding:1px 8px 1px 9px;border:1px solid currentColor;border-radius:4px;color:var(--red);font-size:11px;font-weight:700;letter-spacing:.2em;vertical-align:2px}

/* 6. 加購頁標題區＋顏色切換（?bh=a 價目小卡〔預設〕／b 一行收齊／c 手帳印章／0 原樣） */
.b-price s{text-decoration:none}
/* a 價目小卡：左＝標語＋標題，右＝一張價目小卡；切換＝一條膠囊軌道，提示收在軌道右邊 */
html[data-bh=a] .b-head{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t p" "k k";align-items:end;gap:10px 28px}
html[data-bh=a] .b-head>div:first-child{grid-area:t}
html[data-bh=a] .b-sub{display:contents}
html[data-bh=a] .b-price{grid-area:p;display:grid;justify-items:start;gap:1px;padding:10px 20px 11px;border-radius:14px;background:#fff8ef;box-shadow:inset 0 0 0 1px #efd9c4,0 6px 14px -10px rgba(120,60,40,.35);line-height:1.3}
html[data-bh=a] .b-price .bp-l{font-size:12.5px;color:var(--ink2);letter-spacing:.05em}
html[data-bh=a] .b-price b{font-size:34px;line-height:1.1}
html[data-bh=a] .b-price b em{display:inline;font-size:14px;color:var(--ink2);font-weight:500}
html[data-bh=a] .b-price .bp-s{font-size:12.5px;color:var(--red-d);letter-spacing:.03em}
html[data-bh=a] .b-price s{text-decoration:line-through;text-decoration-thickness:1px;color:var(--ink2)}
html[data-bh=a] .b-promo{margin:0 0 4px;padding:0;background:none;border-radius:0;transform:none;color:var(--red-d);font-size:13px;letter-spacing:.22em;display:inline-flex;align-items:center;gap:8px}
html[data-bh=a] .b-promo::before{content:"";width:22px;height:1.5px;background:currentColor;opacity:.6}
html[data-bh=a] .b-head .x-h{font-size:30px;letter-spacing:.06em}
html[data-bh=a] .b-tool{grid-area:k;margin-top:2px}
html[data-bh=a] .b-hint{grid-area:k;justify-self:end;align-self:center;font-size:13.5px;font-weight:500;color:var(--ink2);background:none;padding:0;letter-spacing:.04em}
html[data-bh=a] .b-hint::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--mustard);vertical-align:1px}
html[data-bh=a] .b-chips{gap:2px;padding:4px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
html[data-bh=a] .b-chips button{height:32px;padding:0 14px;border:0;background:none;font-size:14px;color:var(--ink2);letter-spacing:.04em}
html[data-bh=a] .b-chips button[aria-pressed=true]{background:var(--red);color:#fff;font-weight:700}
html[data-bh=a] .b-chips button[aria-pressed=true] small{color:rgba(255,255,255,.8)}
html[data-bh=a] .b-chips button[aria-pressed=true] i{box-shadow:0 0 0 1.5px #fff}
/* b 一行收齊：標語變細框小標、價格一行、切換＝底線分頁（選中的畫一筆紅蠟筆線） */
html[data-bh=b] .b-promo{margin:0 0 6px;padding:2px 10px;background:none;border-radius:4px;transform:none;box-shadow:inset 0 0 0 1px var(--red);color:var(--red);font-size:12px;letter-spacing:.18em}
html[data-bh=b] .b-head .x-h{font-size:29px;letter-spacing:.06em}
html[data-bh=b] .b-sub{align-items:baseline;gap:4px 18px}
html[data-bh=b] .b-price .bp-l{display:none}
html[data-bh=b] .b-price b{font-size:28px}
html[data-bh=b] .b-price b em{display:inline;font-size:14px;color:var(--ink2);font-weight:500}
html[data-bh=b] .b-price .bp-s{color:var(--ink2)}
html[data-bh=b] .b-price s{text-decoration:line-through;text-decoration-thickness:1px}
html[data-bh=b] .b-hint{margin-left:auto;font-size:13.5px;font-weight:500;color:var(--ink2);background:none;padding:0}
html[data-bh=b] .b-tool{margin-top:6px;border-bottom:1px solid #ecd3d6}
html[data-bh=b] .b-chips{gap:22px;overflow:visible}
html[data-bh=b] .b-chips button{height:38px;padding:0 2px;border:0;border-radius:0;background:none;font-size:15px;color:var(--ink2);letter-spacing:.06em;position:relative}
html[data-bh=b] .b-chips button i{width:8px;height:8px}
html[data-bh=b] .b-chips button[aria-pressed=true]{color:var(--ink);font-weight:700}
html[data-bh=b] .b-chips button[aria-pressed=true]::after{content:"";position:absolute;left:-3px;right:-3px;bottom:-2px;height:7px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5C22 2.6 44 6 64 4s24-1.6 34 .2' fill='none' stroke='%23c8323d' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat}
/* c 手帳印章：價格做成一顆圓印章（略斜），切換＝各色系淡底小籤 */
html[data-bh=c] .b-head{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t p" "s p" "k k";align-items:center;gap:6px 26px}
html[data-bh=c] .b-head>div:first-child{grid-area:t}
html[data-bh=c] .b-sub{display:contents}
html[data-bh=c] .b-price{grid-area:p;width:132px;height:132px;border-radius:50%;display:grid;place-content:center;justify-items:center;gap:0;padding:0;text-align:center;color:var(--red-d);
  box-shadow:inset 0 0 0 2px var(--red-d),inset 0 0 0 5px #fbe8e9,inset 0 0 0 6px var(--red-d);background:#fbe8e9;transform:rotate(-8deg);line-height:1.2}
html[data-bh=c] .b-price .bp-l{display:none}
html[data-bh=c] .b-price b{font-size:22px}
html[data-bh=c] .b-price b span{font-size:12px;margin-right:1px}
html[data-bh=c] .b-price b em{display:block;font-size:12px;color:var(--red-d);font-weight:700;margin:0}
html[data-bh=c] .b-price .bp-s{font-size:10.5px;color:var(--red-d);max-width:92px;margin-top:2px}
html[data-bh=c] .b-price .bp-s s{text-decoration:line-through}
html[data-bh=c] .b-promo{margin:0 0 6px;padding:3px 12px;border-radius:3px;transform:rotate(-1.5deg);background:var(--mustard);color:#5a3a1a;font-size:13px;letter-spacing:.14em}
html[data-bh=c] .b-head .x-h{font-size:30px;letter-spacing:.06em}
html[data-bh=c] .b-hint{grid-area:s;justify-self:start;font-size:14px;font-weight:500;color:var(--ink);background:none;padding:0}
html[data-bh=c] .b-hint::before{content:"✎";margin-right:6px;color:var(--red)}
html[data-bh=c] .b-tool{grid-area:k}
html[data-bh=c] .b-chips{gap:8px}
html[data-bh=c] .b-chips button{height:34px;padding:0 14px;border:0;border-radius:8px;background:color-mix(in srgb,var(--hue) 12%,#fff);color:var(--ink);font-size:14px}
html[data-bh=c] .b-chips button i{display:none}
html[data-bh=c] .b-chips button[aria-pressed=true]{background:var(--hue);color:#fff;font-weight:700}
html[data-bh=c] .b-chips button[aria-pressed=true] small{color:rgba(255,255,255,.85)}
@media (max-width:899px){
  html[data-bh=c] .b-head{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t p" "h h" "k k";gap:4px 12px;align-items:center}
  html[data-bh=a] .b-head{grid-template-columns:minmax(0,1fr);grid-template-areas:"t" "p" "h" "k";gap:6px;align-items:start}
  html[data-bh=a] .b-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px;justify-self:start}
  html[data-bh=a] .b-hint,html[data-bh=c] .b-hint{grid-area:h;justify-self:start;display:block;font-size:12.5px;margin:0}
  html[data-bh=a] .b-price{padding:7px 12px;border-radius:12px}
  html[data-bh=a] .b-price .bp-l{display:none}html[data-bh=a] .b-price .bp-s{font-size:11.5px}
  html[data-bh=a] .b-price b{font-size:24px}html[data-bh=a] .b-price b em{font-size:12px}
  html[data-bh=a] .b-head .x-h,html[data-bh=b] .b-head .x-h,html[data-bh=c] .b-head .x-h{font-size:20px}
  html[data-bh=a] .b-promo{font-size:11.5px;letter-spacing:.16em}
  html[data-bh=b] .b-hint{margin-left:0;font-size:12.5px}
  html[data-bh=a] .b-chips button{height:30px;padding:0 11px;font-size:13px}
  html[data-bh=b] .b-chips{gap:16px;overflow-x:auto}
  html[data-bh=b] .b-chips button{font-size:14px;height:34px}
  html[data-bh=b] .b-tool{border-bottom:0}
  html[data-bh=c] .b-price{width:86px;height:86px}
  html[data-bh=c] .b-price b{font-size:15px}html[data-bh=c] .b-price b span{font-size:10px}html[data-bh=c] .b-price b em{font-size:10.5px}html[data-bh=c] .b-price .bp-s{display:none}
  html[data-bh=c] .b-chips button{height:30px;padding:0 11px;font-size:13px}
}

/* ───────── 11/15 Annie 選 A：代排款式牆（26 款；每組先選人數 1–4 位） ───────── */
.as-pq{margin:6px 0 4px;font-size:14px;font-weight:700}
.as-ppl{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px}
.as-ppl button{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:5px 14px;font-weight:700;color:var(--ink2);font-size:14px;line-height:1.4}
.as-ppl button small{font-weight:400;margin-left:4px;font-size:12px}
.as-ppl button.on{border-color:var(--red);color:var(--red);background:#fff6f5}
.as-pmsg{margin:2px 0 4px;font-size:13px;color:var(--red-d)}.as-pmsg[hidden]{display:none}
.as-list.as-wall{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin-top:10px}
@media (min-width:600px){.as-list.as-wall{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 14px}}
.as-c{position:relative;display:grid;gap:5px;align-content:start;min-width:0;padding:8px 8px 10px;border-radius:14px;background:var(--paper2);border:2px solid transparent}
.as-c[hidden]{display:none}
.as-c.on{border-color:var(--red);background:#fff}
.as-c .as-pic{border-radius:8px;overflow:hidden}
.as-c .as-pic img{width:100%;height:auto;aspect-ratio:360/932;object-fit:contain;border-radius:0}
.as-c .as-pic span{left:auto;right:6px;bottom:6px;padding:1px 8px;border-radius:999px;font-size:11px}
.as-c>b{font-size:14px;line-height:1.35}
.as-cn{font-size:11.5px;line-height:1.35;height:1.35em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--red-d)}   /* 11/15：一直留一行高，選了才有字，卡片不跳 */
.as-badge{position:absolute;left:12px;top:12px;z-index:2;background:var(--red);color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:1px 8px;line-height:1.6}
.as-badge[hidden]{display:none}
.as-c .stepper{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:999px;padding:2px 6px}
.as-c.on .stepper{background:var(--paper2)}
.as-c .stepper button{width:30px;height:30px;font-size:18px}.as-c .stepper i{font-style:normal;font-weight:700}
.as-c .stepper button:disabled{opacity:.3}
.as-price li b{white-space:normal;text-align:right}
@media (max-width:599px){
  .as-ppl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .as-ppl button{padding:5px 0 4px;line-height:1.25;font-size:14.5px}.as-ppl button small{display:block;margin:1px 0 0;font-size:11.5px}
}
.as-price li{align-items:flex-start}.as-price li b{line-height:1.5}

/* ───────── 11/15 Annie：代排電腦版太空 → 加寬（≥1080px）。A（預設）左選款、右結帳欄跟著捲；B（?asl=b）加寬單欄 ───────── */
@media (min-width:1080px){
  .as-in{max-width:1240px;padding:18px 28px 40px}
  .as-in .co-form{padding:30px 34px 34px}
  .as-how{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:22px;margin:16px 0 8px}
  .as-how li{align-content:start}
  html[data-asl=a] .as-in .co-form{display:grid;grid-template-columns:minmax(0,1fr) 340px;column-gap:34px;align-items:start}
  html[data-asl=a] .as-main{min-width:0}
  html[data-asl=a] .as-list.as-wall{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 14px}
  html[data-asl=a] .as-side{position:sticky;top:18px;padding:18px 20px 16px;border-radius:18px;background:#fbf7f6;border:1.5px solid var(--line);max-height:calc(100vh - 36px);overflow:auto}
  html[data-asl=a] .as-side .co-rows{margin-top:0}
  html[data-asl=a] .as-side .co-sub{font-size:20px;font-weight:700;color:var(--red-d)}
  html[data-asl=a] .as-side .agrees label{font-size:13px}
  html[data-asl=b] .as-in{max-width:1160px}
  html[data-asl=b] .as-list.as-wall{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 14px}
  html[data-asl=b] .as-side{max-width:720px;margin:18px auto 0}
}
@media (min-width:1080px){ html[data-asl=a] .as-side .as-price li b{white-space:nowrap} html[data-asl=a] .as-side .as-price li span{min-width:0} }

/* ═══════════ 11/15 Annie 三區定案（示意 _build\ui1115）：① 規格卡 B 手帳票券 ② 加購頁 A 已選清單 ③④ 確認訂單組合版 ═══════════ */
/* ① 規格卡：步驟時間軸＋價格規格收進票券卡；順序 標題→步驟→票券→開始做→代排連結→小字 */
.info-text{display:flex;flex-direction:column}
.info-text .assist-link{order:2}.info-text .safe{order:3;margin-top:14px;font-size:11.5px;line-height:1.55;color:#a08d86;text-align:center}
.info-text .safe .safe-ico{display:inline-block;vertical-align:-1px;margin-right:4px;color:#b9a29a}
.info .how{position:relative;margin:14px 0 0}
.info .how::before{content:"";position:absolute;left:14px;top:18px;bottom:18px;border-left:2px dashed #edd9a6}
.info .how li{position:relative;padding:5px 0}
.info .how b{font-size:15px}.info .how span{font-size:12.5px}
.ticket{position:relative;margin:18px 0 0;border-radius:16px;background:#fdf4ea;border:1.5px dashed #e6cfae}
.tk-due{position:absolute;right:14px;top:-11px;padding:1px 10px;border-radius:999px;background:var(--mustard);color:var(--ink);font-size:12px;font-weight:700;box-shadow:0 2px 0 rgba(90,58,50,.12)}
.tk1{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px 12px}
.tk1 small{display:block;font-size:12px;color:var(--ink2)}
.tk1 b{font-size:32px;line-height:1.1;font-weight:800;color:var(--red-d)}
.tk1 p{margin:0;padding:6px 12px;border-radius:12px;background:#fff;color:var(--red-d);font-weight:700;font-size:13.5px;line-height:1.35;text-align:center}
.tk2{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:0;padding:12px 18px 14px;border-top:1.5px dashed #e6cfae}
.tk2::before,.tk2::after{content:"";position:absolute;top:-9px;width:16px;height:16px;border-radius:50%;background:var(--paper);border:1.5px dashed #e6cfae}
.tk2::before{left:-9px;clip-path:inset(0 0 0 50%)}.tk2::after{right:-9px;clip-path:inset(0 50% 0 0)}
.tk2 div{display:grid;line-height:1.35;min-width:0}
.tk2 dt{font-size:11.5px;color:var(--ink2)}.tk2 dd{margin:0;display:grid}
.tk2 dd b{font-size:14px;color:var(--ink)}.tk2 dd em{font-style:normal;font-size:11.5px;color:var(--ink2)}
.tk2 div:first-child dd b{color:var(--red-d)}

/* ② 加購頁：電腦左側半透明已選清單；手機付款列上方縮圖列；放大視窗 */
.b-side{display:none}
@media (min-width:900px){
  #flow[data-v=addon] .b-head,#flow[data-v=addon] .b1-grid,#flow[data-v=addon] .b-bar-in{width:auto;margin-left:max(3vw,272px);margin-right:3vw}
  .b-side{display:block;position:fixed;left:18px;top:64px;width:232px;max-height:calc(100vh - 170px);z-index:6;padding:16px 14px;border-radius:20px;background:rgba(255,255,255,.66);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 10px 30px rgba(120,40,50,.12),inset 0 0 0 1.5px rgba(255,255,255,.7);overflow:auto}
  .b-strip{display:none!important}
}
.b-sh{margin:0 0 6px;font-weight:700;font-size:15px;color:var(--ink)}.b-sh b{color:var(--red-d);font-size:18px}
.b-side .faces{display:flex;gap:4px;margin:0 0 10px}.b-side .faces canvas{width:30px;height:30px}
.b-side ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.b-si{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:7px;border-radius:14px;background:rgba(255,255,255,.7);border:2px solid transparent;text-align:left;cursor:zoom-in}
.b-si:hover{border-color:var(--red);background:#fff}
.b-st{grid-row:span 2;width:44px;aspect-ratio:1/2;border-radius:6px;overflow:hidden;background:rgba(0,0,0,.04)}
.b-st canvas,.b-sk canvas{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.b-sn b{display:block;font-size:13.5px;line-height:1.3}
.b-sn small{display:inline-block;margin-top:2px;padding:0 7px;border-radius:999px;background:#fbe3e6;color:var(--red-d);font-size:11px;font-weight:700}.b-sn small.f{background:var(--mustard);color:var(--ink)}
.b-si em{font-style:normal;font-size:12.5px;font-weight:700;color:var(--ink)}
.b-ssub{margin:12px 0 0;padding-top:10px;border-top:1.5px dashed rgba(90,58,50,.18);font-size:13px;color:var(--ink2);display:flex;justify-content:space-between}.b-ssub b{color:var(--red-d);font-size:16px}
.b-stip{margin:6px 0 0;font-size:11.5px;color:#a08d86}
.b-bar{display:flex;flex-direction:column}
.b-strip{display:flex;align-items:center;gap:6px;padding:8px 12px 0}
.b-strip span{font-size:12px;font-weight:700;color:var(--ink2);margin-right:2px}
.b-sk{width:30px;height:48px;border-radius:5px;overflow:hidden;outline:2px solid #fff;box-shadow:0 1px 4px rgba(90,58,50,.25);background:rgba(0,0,0,.04)}
.b-sk.f{outline-color:var(--mustard)}
.b-strip em{margin-left:auto;font-style:normal;font-size:11.5px;color:#a08d86}
.b-zoom{width:min(92vw,420px);padding:16px 16px 12px;border:0;border-radius:20px;background:#fff;overflow:visible}
.b-zoom::backdrop{background:rgba(60,30,30,.55)}
.b-zt{display:flex;align-items:baseline;gap:8px;margin:0 30px 8px 0}.b-zt b{font-size:17px}.b-zt span{font-size:12.5px;color:var(--red-d);font-weight:700}.b-zt i{margin-left:auto;font-style:normal;font-size:12px;color:var(--ink2)}
.b-zclose{position:absolute;right:10px;top:8px;width:30px;height:30px;font-size:22px;line-height:28px;color:var(--ink2)}
.b-zc{display:grid;place-items:center;min-height:min(62vh,560px)}
.b-zc canvas{display:block;width:auto;max-width:100%;max-height:62vh;height:auto}
.b-za{position:absolute;top:46%;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 2px 8px rgba(90,58,50,.25);font-size:22px;line-height:32px;color:var(--ink)}
.b-za.l{left:-12px}.b-za.r{right:-12px}.b-za[hidden]{display:none}
.b-zth{display:flex;gap:6px;margin-top:10px;justify-content:center}
.b-zth button{width:40px;aspect-ratio:1/2;border-radius:5px;overflow:hidden;opacity:.55;outline:2px solid transparent}
.b-zth button.on{opacity:1;outline-color:var(--red)}
.b-zth canvas{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.b-zx{margin:8px 0 0;text-align:center;font-size:11.5px;color:#a08d86}

/* ③④ 確認訂單：預覽展示台＋分區 */
.co-pv{padding:22px 20px 18px;border-radius:24px;background:radial-gradient(120% 80% at 50% 20%,#fff8f3 0,#fbe7e2 60%,#f6d6d3 100%);box-shadow:inset 0 -26px 30px -26px rgba(150,60,70,.25)}
.co-pv .pv-name{justify-self:center;padding:3px 16px;border-radius:999px;background:#fff;color:var(--ink);font-weight:700;font-size:14.5px;box-shadow:0 2px 0 rgba(90,58,50,.08)}
.co-pv figcaption{display:inline-block;margin-top:10px;padding:1px 12px;border-radius:999px;background:rgba(255,255,255,.75);font-size:12px}
.pv-ribbon{grid-column:1/-1;justify-self:center;margin:6px 0 0;padding:5px 18px;background:var(--red);color:#fff;font-size:12.5px;font-weight:700;letter-spacing:.04em;clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%)}
.pv-pick{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.pv-pick:empty{display:none}
.pv-pick span{font-size:12px;color:var(--ink2);margin-right:4px}
.pv-pk{width:38px;height:38px;border-radius:8px;overflow:hidden;outline:2px solid #fff;opacity:.75}.pv-pk.on{outline:2.5px solid var(--red);opacity:1}
.pv-pk canvas{display:block;width:100%;height:100%;object-fit:cover}
.co-in .co-form{padding:24px 24px 26px}
.co-head p{font-size:12px;color:var(--ink2)}
.co-spec.co-spec-line{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0 0}
.co-spec-line div{padding:0;background:none;display:flex;gap:5px;align-items:baseline}
.co-spec-line dt{font-size:12px}.co-spec-line dd{font-size:12.5px;margin:0;color:var(--ink)}
.co-sec{margin:18px 0 8px;font-weight:700;font-size:15px;color:var(--ink)}.co-sec small{font-weight:500;font-size:12px;color:var(--ink2);margin-left:4px}
.co-rows .sum{padding:12px 14px!important;border-radius:14px;background:#fdf4ea;border:0!important}
.co-rows .sum b{font-size:22px;font-weight:800;color:var(--red-d)}
.co-form>.safe,.co-form .as-sum-note{font-size:11.5px;color:#a08d86}
.final-note{position:relative;padding:14px 16px 14px 46px;background:#fff7e6;border:1.5px solid #f1dcae}
.final-note::before{content:"!";position:absolute;left:14px;top:14px;width:22px;height:22px;border-radius:50%;background:var(--mustard);color:var(--ink);font-weight:800;display:grid;place-items:center;font-size:13px}
.final-note p:nth-of-type(2),.final-note p:nth-of-type(3){font-size:12.5px;color:var(--ink2)}
#checkout .agrees{margin-top:0;padding:12px 14px;border-radius:14px;background:var(--paper2)}
#checkout .agrees label{font-size:13px}
.pv-mini{display:none}
@media (max-width:899px){
  .co-pv{padding:16px 12px 14px}
  .pv-mini{position:fixed;top:0;left:0;right:0;z-index:30;align-items:center;gap:8px;margin:0;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;   /* 固定在畫面頂、不佔排版位置：出現時下面不會被推動 */border:0;background:rgba(253,244,234,.96);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 2px 10px rgba(120,40,50,.15);text-align:left}
  .pv-mini.on{display:flex}
  #checkout[hidden]+.pv-mini{display:none!important}
  .pv-mini canvas{display:block;height:58px;width:auto;border-radius:3px;box-shadow:0 2px 4px rgba(120,30,50,.25)}
  .pv-mini-t{display:grid;min-width:0;line-height:1.35}.pv-mini-t b{font-size:13.5px}.pv-mini-t i{font-style:normal;font-size:11px;font-weight:700;color:var(--red)}
  .pv-mini em{margin-left:auto;font-style:normal;font-size:11px;color:#a08d86;white-space:nowrap}
}

/* 11/15 Annie：付款下面的錯誤／還差提醒要醒目 → 紅色提醒框＋閃兩下（確認訂單 #payHint、代排 #asHint；上一輪小字改淺灰時把紅字蓋掉了，這裡蓋回來） */
#payHint.bad,#asHint.bad{position:relative;display:block;margin-top:12px;padding:10px 12px 10px 40px;border-radius:12px;background:#fdecee;border:1.5px solid #f0b3bb;color:var(--red-d)!important;font-size:13.5px!important;font-weight:700;line-height:1.55;text-align:left;animation:hintFlash .8s ease-in-out 2}
#payHint.bad::before,#asHint.bad::before{content:"!";position:absolute;left:12px;top:10px;width:20px;height:20px;border-radius:50%;background:var(--red);color:#fff;font-size:12.5px;font-weight:800;line-height:20px;text-align:center}
@keyframes hintFlash{0%,100%{background:#fdecee;box-shadow:0 0 0 0 rgba(200,50,61,0)}50%{background:#f8c3ca;box-shadow:0 0 0 4px rgba(200,50,61,.18)}}
@media (prefers-reduced-motion:reduce){#payHint.bad,#asHint.bad{animation:none}}

/* 11/15 Annie：加購頁手機也要 A（左側半透明已選清單）→ 平常收成左邊一條縮圖直列（款式牆往右讓開，不擋卡片），點「已選」展開成 A 的完整清單 */
@media (max-width:899px){
  #flow[data-v=addon] .b-head,#flow[data-v=addon] .b1-grid{margin-left:62px}
  #flow[data-v=addon] .b1-grid{padding-left:0;grid-template-columns:repeat(2,minmax(0,1fr))}
  .b-strip{display:none!important}
  .b-side{display:block;position:fixed;left:6px;top:76px;z-index:9;width:52px;max-height:calc(100vh - 210px);padding:8px 5px;border-radius:16px;background:rgba(255,255,255,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 6px 18px rgba(120,40,50,.16),inset 0 0 0 1.5px rgba(255,255,255,.7);overflow:auto;transition:width .22s ease}
  .b-side .b-sh,.b-side .faces,.b-side .b-ssub,.b-side .b-stip,.b-side .b-sn,.b-side .b-si em{display:none}
  .b-side ol{gap:6px}
  .b-side .b-si{display:block;padding:0;border:2px solid #fff;border-radius:6px;background:none}
  .b-side .b-st{width:38px}
  .b-stog{display:grid;justify-items:center;width:100%;margin:0 0 6px;font-size:10.5px;font-weight:700;color:var(--ink2);line-height:1.2}
  .b-stog b{font-size:15px;color:var(--red-d)}
  .b-side.open{width:min(240px,74vw);padding:12px 12px 14px}
  .b-side.open .b-sh,.b-side.open .b-ssub,.b-side.open .b-stip{display:flex}.b-side.open .b-sh{display:block}
  .b-side.open .faces{display:flex}
  .b-side.open .b-si{display:grid;padding:6px;border-radius:12px;background:rgba(255,255,255,.75)}
  .b-side.open .b-sn,.b-side.open .b-si em{display:block}
  .b-side.open .b-st{width:40px}
  .b-side.open .b-stog{grid-auto-flow:column;justify-content:end;margin:0}
}
@media (min-width:900px){.b-stog{display:none}}
/* 11/15：已選清單現在在 #flow 外面（iPhone Safari 修正）→ 不是加購頁就藏起來 */
#flow[hidden]+.b-side,#flow:not([data-v=addon])+.b-side{display:none!important}
#studio>.b-side{z-index:25}   /* #flow 是 z-index 20，清單要在它上面 */
/* iPhone Safari 對固定元素的毛玻璃偶爾畫不出來：不支援時改成較不透明的底 */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.b-side,.pv-mini{background:rgba(255,255,255,.94)}}

/* ═══════════ 11/16 Annie 正式站實測回饋 ═══════════ */
/* 換照片前的確認 */
.ask-dlg{width:min(88vw,360px);padding:20px 20px 16px;border:0;border-radius:18px;background:#fff;color:var(--ink)}
.ask-dlg::backdrop{background:rgba(60,30,30,.5)}
.ask-t{margin:0 0 6px;font-size:17px;font-weight:700}.ask-m{margin:0 0 16px;font-size:14px;line-height:1.65;color:var(--ink2)}
.ask-b{display:flex;gap:10px;justify-content:flex-end}.ask-b .pri{padding:0 20px}
/* 加購放大視窗的「編輯這款」 */
.b-zedit{display:block;width:100%;height:46px;margin-top:12px;border-radius:999px;font-size:15px}
/* 代排：已選款式清單（電腦右欄、手機第 2 步） */
.as-s2h{display:none}
.as-pk-h{margin:0 0 6px;font-weight:700;font-size:15px}.as-pk-h b{color:var(--red-d);font-size:18px}
.as-picked{display:grid;gap:6px;margin-bottom:12px}
.as-pk-g{margin:6px 0 0;font-size:13px;font-weight:700;color:var(--red-d)}
.as-pk{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 10px 6px 6px;border-radius:12px;background:#fff;border:1.5px solid var(--line)}
.as-pk img{width:30px;height:auto;aspect-ratio:360/932;object-fit:cover;object-position:top;border-radius:4px;display:block}
.as-pk b{display:block;font-size:13.5px;line-height:1.35}.as-pk small{font-size:12px;color:var(--ink2)}.as-pk em{font-style:normal;font-weight:700;font-size:13.5px}
.as-pk-none{margin:0;font-size:13px;color:var(--ink2)}
/* 代排：手機（＜1080）兩步——第 1 步選款＋下方浮動列；第 2 步確認款式與付款 */
.as-bar{display:none}
@media (max-width:1079px){
  #assist:not(.step2) .as-side{display:none}
  #assist:not(.step2) .as-in{padding-bottom:110px}
  #assist.step2 .as-main{display:none}
  #assist.step2 .as-s2h{display:flex;align-items:center;gap:10px;margin:0 0 14px}.as-s2h h3{margin:0;font-size:19px}.as-s2h .ghost{font-size:14px;color:var(--red-d);font-weight:700;padding:4px 0}
  .as-bar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(255,255,255,.97);box-shadow:0 -2px 12px rgba(120,40,50,.14)}
  #assist[hidden]+.as-bar,#assist.step2+.as-bar{display:none}
  .as-bar-in{max-width:640px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
  .as-bar-t{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
  .as-bar-th{display:flex}.as-bar-th img{width:22px;height:36px;object-fit:cover;object-position:top;border-radius:4px;outline:2px solid #fff;margin-left:-6px;box-shadow:0 1px 3px rgba(90,58,50,.25)}.as-bar-th img:first-child{margin-left:0}
  .as-bar-th i{font-style:normal;font-size:11px;font-weight:700;color:var(--ink2);margin-left:4px;align-self:center}
  .as-bar-t p{margin:0;font-size:12.5px;line-height:1.4;color:var(--ink2);white-space:nowrap}.as-bar-t p b{color:var(--red-d);font-size:15px}
  #asNext{flex:none;height:46px;padding:0 16px;font-size:14.5px}
}/* 11/16 Annie：確認訂單的訂單縮圖跟代排一樣顯示整個紅包（含上蓋），不裁切 */
.cart-i{grid-template-columns:46px minmax(0,1fr) auto}
.cart-th{border-radius:0;overflow:visible;align-self:center}.cart-th canvas{width:46px;height:auto;aspect-ratio:530/1372;filter:drop-shadow(0 2px 3px rgba(120,30,50,.22))}
.pv-pk{width:30px;height:78px;border-radius:5px;background:transparent}.pv-pk canvas{object-fit:contain}
