:root{--pd-ink:#1d1d1b;--pd-muted:#6b675f;--pd-line:#e3ded3;--pd-soft:#f6f4ef;--pd-brand:#2f4937;--pd-req:#a53c38;--pd-stage:#f3f3f1;
  --pd-ease-out:cubic-bezier(.23,1,.32,1);--pd-ease-drawer:cubic-bezier(.32,.72,0,1);--pd-press:.97}

:is(.proto-start,.proto-ex-tabs button,.pd-chips button,.pd-styles button,.pd-layouts button,.pd-garments button,.pd-swatches button,.pd-side button,.pd-3d,.pd-go,.pd-ghost,.pd-no button,.pd-check li button,.pd-ai-toggle,.pd-ai-card,.pd-upload){-webkit-tap-highlight-color:transparent;transition:transform .12s var(--pd-ease-out),border-color .15s ease,background-color .15s ease,filter .15s ease}
:is(.proto-start,.proto-ex-tabs button,.pd-chips button,.pd-styles button,.pd-layouts button,.pd-garments button,.pd-side button,.pd-3d,.pd-go,.pd-ghost,.pd-no button,.pd-check li button,.pd-ai-toggle,.pd-ai-card,.pd-upload):active{transform:scale(var(--pd-press))}
.pd-swatches button:active i{transform:scale(.92)}
.pd-swatches i{transition:transform .12s var(--pd-ease-out)}

@media (hover:hover) and (pointer:fine){
  .proto-start:hover,.pd-go:hover{filter:brightness(1.12)}
  .proto-ex-tabs button:hover,.pd-chips button:hover,.pd-styles button:hover,.pd-layouts button:hover,.pd-garments button:hover,.pd-ai-card:hover{border-color:#bdb6a8}
  .proto-ex-grid a:hover img{transform:translateY(-2px)}
  .pd-ttl a:hover{color:var(--pd-ink)}
  .pd-upload:hover{border-color:var(--pd-ink)}
  .pd-link:hover{text-decoration-color:var(--pd-ink)}
  .pd-ai-toggle:hover{border-color:#bdb6a8}
}

.proto-start{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;margin-right:6px;border-radius:999px;background:var(--pd-brand);color:#fff!important;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap}
body[data-proto=design] .proto-start{display:none}
@media (max-width:760px){.proto-start{min-height:34px;padding:0 12px;font-size:13px}body[data-proto] .v5-search-link{display:none}}

.proto-examples{max-width:1180px;margin:0 auto;padding:56px 20px 28px;display:grid;gap:18px}
.proto-ex-head h2{margin:0;font-size:28px;line-height:1.3}
.proto-ex-head p{margin:6px 0 0;font-size:16px;color:var(--pd-muted)}
.proto-ex-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.proto-ex-tabs::-webkit-scrollbar{display:none}
.proto-ex-tabs button{flex:none;min-height:40px;padding:0 16px;border:1px solid var(--pd-line);border-radius:999px;background:#fff;color:var(--pd-ink);font:inherit;font-size:14px;cursor:pointer}
.proto-ex-tabs button[aria-selected=true]{background:var(--pd-ink);border-color:var(--pd-ink);color:#fff}
.proto-ex-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px}
.proto-ex-grid a{display:grid;gap:6px;color:inherit;text-decoration:none}
.proto-ex-grid img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:10px;background:var(--pd-soft);transition:transform .2s var(--pd-ease-out)}
.proto-ex-grid b{font-size:16px}
.proto-ex-grid span{font-size:13px;color:var(--pd-muted);font-variant-numeric:tabular-nums}
@media (max-width:760px){.proto-examples{padding:40px 16px 20px}.proto-ex-head h2{font-size:22px}.proto-ex-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.proto-ex-grid b{font-size:15px}}

body[data-proto] .mitt-chat-entry{display:none}
body[data-proto=design] #mitt-contact{translate:0 calc(-1 * (var(--pd-bar-h,72px) + 8px))}
.pd-t-short{display:none}
.proto-design{max-width:1440px;margin:0 auto;padding:12px 20px 48px}
.pd-ribbon{margin:0 0 12px;padding:8px 12px;border-radius:8px;background:var(--pd-soft);color:var(--pd-muted);font-size:13px}
.pd{display:grid;grid-template-columns:minmax(0,1fr) clamp(340px,30vw,430px);grid-template-rows:auto auto;gap:0 32px;align-items:start}
.pd[hidden]{display:none}
.pd-stage{grid-column:1;grid-row:1/3;position:sticky;top:calc(var(--pd-head,0px) + 12px);display:grid;gap:10px}
.pd-ttl{display:grid;gap:2px}
.pd-ttl a{width:max-content;font-size:14px;color:var(--pd-muted);text-decoration:none}
.pd-ttl h1{margin:0;font-size:28px;line-height:1.3}
.pd-ttl p{margin:0;font-size:14px;color:var(--pd-muted)}
.pd-frame{position:relative;height:clamp(420px,calc(100vh - 290px),760px);border-radius:18px;overflow:hidden;background:var(--pd-stage)}
.pd-frame iframe{display:block;width:100%;height:100%;border:0}
.pd-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:14px;color:var(--pd-muted);background:var(--pd-stage)}
.pd-frame.pd-full{position:fixed;inset:0;z-index:2147483600;height:100dvh;min-height:0;border-radius:0;transform-origin:var(--pd-origin,50% 50%);transition:opacity .26s var(--pd-ease-out),transform .26s var(--pd-ease-out)}
.pd-frame.pd-full.pd-full-in{opacity:0;transform:scale(.94);transition:none}
.pd-frame.pd-full.pd-full-out{opacity:0;transform:scale(.97);transition-duration:.18s}
html.pd-lock,html.pd-lock body{overflow:hidden}
html.pd-lock .pd-stage{z-index:2147483600}
html.pd-lock .pd-bar,html.pd-lock #mitt-contact,html.pd-lock .wf-header{visibility:hidden}
.pd-stage-tools{position:relative;z-index:2;margin-top:-58px;padding:0 14px 10px;display:flex;justify-content:space-between;align-items:center;gap:10px;pointer-events:none}
.pd-stage-tools>*{pointer-events:auto}
.pd-side{display:inline-flex;padding:3px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.06),0 6px 18px rgba(0,0,0,.06)}
.pd-side button{min-height:38px;padding:0 16px;border:0;border-radius:999px;background:none;color:var(--pd-ink);font:inherit;font-size:14px;cursor:pointer}
.pd-side button[aria-pressed=true]{background:var(--pd-soft);font-weight:700}
.pd-3d{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:#fff;color:var(--pd-ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.06),0 6px 18px rgba(0,0,0,.06)}
.pd-stage-tools .pd-3d{transition:transform .12s var(--pd-ease-out),opacity .2s var(--pd-ease-out),scale .2s var(--pd-ease-out),display .2s allow-discrete}
.pd-stage-tools .pd-3d[hidden]{display:none;opacity:0;scale:.94}
@starting-style{.pd-stage-tools .pd-3d{opacity:0;scale:.94}}

.pd-panel{grid-column:2;grid-row:1;display:grid;gap:22px;padding:4px 0 24px;min-width:0}
.pd-fld{display:grid;gap:8px;margin:0;padding:0;border:0;min-width:0}
.pd-fld>label,.pd-lbl{display:flex;gap:8px;align-items:baseline;justify-content:space-between;padding:0;font-size:14px;font-weight:700;color:var(--pd-ink)}
.pd-fld em,.pd-lbl em{font-style:normal;font-weight:400;font-size:13px;color:var(--pd-muted)}
.pd-fld input,.pd-fld textarea{width:100%;min-height:48px;padding:10px 14px;border:1px solid #d9d4c9;border-radius:10px;background:#fff;color:var(--pd-ink);font:inherit;font-size:18px}
.pd-fld textarea{min-height:0;font-size:16px;resize:vertical}
.pd-fld input:focus-visible,.pd-fld textarea:focus-visible{outline:2px solid var(--pd-brand);outline-offset:1px;border-color:var(--pd-brand)}
.pd-chips{display:flex;flex-wrap:wrap;gap:8px}
.pd-chips button{min-height:40px;padding:0 14px;border:1px solid var(--pd-line);border-radius:999px;background:#fff;color:var(--pd-ink);font:inherit;font-size:14px;cursor:pointer}
.pd-styles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pd-styles button{display:grid;gap:4px;justify-items:center;padding:6px 6px 8px;border:1px solid var(--pd-line);border-radius:12px;background:#fff;color:var(--pd-ink);font:inherit;font-size:13px;cursor:pointer}
.pd-thumb{display:block;width:100%;aspect-ratio:3/2;border-radius:8px;background:var(--pd-soft);overflow:hidden}
.pd-thumb img{display:block;width:100%;height:100%;object-fit:contain;animation:pd-fade .18s var(--pd-ease-out) both}
.pd-layouts,.pd-garments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pd-layouts button,.pd-garments button{border:1px solid var(--pd-line);border-radius:12px;background:#fff;color:var(--pd-ink);font:inherit;text-align:left;cursor:pointer}
.pd-layouts button{display:flex;align-items:center;gap:10px;min-height:58px;padding:8px 12px}
.pd-layouts button[hidden]{display:none}
.pd-lay-ico{flex:none;display:grid;place-items:center;width:52px;height:30px}
.pd-lay-ico svg{width:50px;height:20px;display:block}
.pd-lay-ico .lay-tee{fill:#fff;stroke:#8d8e89;stroke-width:.9;stroke-linejoin:round}
.pd-lay-ico .lay-mark{fill:#8d8e89}
.pd-layouts [aria-checked=true] .lay-tee{stroke:var(--pd-ink)}
.pd-layouts [aria-checked=true] .lay-mark{fill:var(--pd-ink)}
.pd-lay-txt{display:grid;line-height:1.35;min-width:0}
.pd-lay-txt b{font-size:14px}
.pd-lay-txt small{font-size:13px;color:var(--pd-muted);font-variant-numeric:tabular-nums}
.pd-garments button{display:grid;gap:2px;padding:10px 12px}
.pd-other{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin-top:8px;padding:8px 12px;border:1px dashed #cfc8b9;border-radius:12px;background:var(--pd-soft);color:var(--pd-ink);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s var(--pd-ease-out),border-color .15s ease}
.pd-other:active{transform:scale(var(--pd-press))}
.pd-other span:first-child{display:grid;gap:2px}
.pd-other b{font-size:15px}
.pd-other small{font-size:13px;color:var(--pd-muted)}
.pd-other-cta{flex:none;font-size:14px;font-weight:700}
.pd-other:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.pd-other:hover{border-color:#bdb6a8}}
.pd-other-list{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px;padding:0;list-style:none}
.pd-other-list li{padding:6px 12px;border:1px solid var(--pd-line);border-radius:999px;font-size:14px;background:#fff}
.pd-other-acts{display:grid;gap:10px;margin-bottom:12px}
.pd-other-acts .pd-go,.pd-other-acts .pd-ghost{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.pd-garments b{font-size:14px}
.pd-garments i{font-style:normal;font-weight:500;font-size:13px;color:#8a6d1f}
.pd-garments small{font-size:13px;line-height:1.4;color:var(--pd-muted)}
:is(.pd-chips,.pd-styles,.pd-layouts,.pd-garments) [aria-checked=true]{border-color:var(--pd-ink);box-shadow:inset 0 0 0 1px var(--pd-ink);font-weight:700}
.pd-swatches{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;justify-items:center}
.pd-swatches button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.pd-swatches i{width:30px;height:30px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14)}
.pd-swatches [aria-checked=true] i{outline:2px solid var(--pd-ink);outline-offset:3px}
.pd-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pd-upload{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px dashed #cfc9bd;border-radius:10px;background:#fff;font-size:16px;cursor:pointer}
.pd-bar{grid-column:2;grid-row:2;position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:12px;padding:14px 0 18px;border-top:1px solid var(--pd-line);background:#fff}
.pd-price{flex:1;min-width:0;display:grid}
.pd-price b{font-size:20px;font-variant-numeric:tabular-nums}
.pd-price span{font-size:13px;color:var(--pd-muted);font-variant-numeric:tabular-nums}
.pd-go{min-height:52px;padding:0 22px;border:0;border-radius:12px;background:var(--pd-brand);color:#fff;font:inherit;font-size:18px;font-weight:700;white-space:nowrap;cursor:pointer}
.pd-bar-line{flex:none;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:52px;min-height:52px;border:1px solid var(--pd-line);border-radius:12px;background:#fff;color:#06c755;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:transform .12s var(--pd-ease-out),border-color .15s var(--pd-ease-out)}
.pd-nowrap{white-space:nowrap} 
.pd-bar-line span{font-size:10px;font-weight:700;letter-spacing:.02em;color:var(--pd-ink)}
.pd-bar-line:active{transform:scale(var(--pd-press))}
.pd-bar-line:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.pd-bar-line:hover{border-color:#bdb6a8}}
body[data-proto=design] #mitt-contact .mitt-contact-rail{display:none}
.pd-go:disabled{opacity:.6;cursor:default}
:is(.pd-chips,.pd-styles,.pd-layouts,.pd-garments,.pd-swatches,.pd-side) button:focus-visible,.pd-3d:focus-visible,.pd-go:focus-visible,.pd-ghost:focus-visible,.pd-ai-toggle:focus-visible,.pd-ai-card:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px}

.pd-ai-wrap{display:grid;gap:10px}
.pd-ai-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:56px;padding:8px 10px 8px 14px;border:1px solid var(--pd-line);border-radius:12px;background:var(--pd-soft);color:var(--pd-ink);font:inherit;text-align:left;cursor:pointer}
.pd-ai-toggle>span:first-child{display:grid;line-height:1.35}
.pd-ai-toggle b{font-size:14px}
.pd-ai-toggle small{font-size:13px;color:var(--pd-muted)}
.pd-ai-cta{flex:none;padding:8px 14px;border-radius:999px;background:var(--pd-ink);color:#fff;font-size:14px;font-weight:700}
.pd-ai-toggle[aria-expanded=true] .pd-ai-cta{background:#fff;color:var(--pd-ink);box-shadow:inset 0 0 0 1px var(--pd-ink)}
.pd-ai{display:grid;gap:10px;padding:12px 14px 14px;border:1px solid var(--pd-line);border-radius:12px;animation:pd-rise .22s var(--pd-ease-out) both}
.pd-ai form{display:grid;gap:8px}
.pd-ai label[for=pd-ai-text]{font-size:14px;font-weight:700}
.pd-ai textarea{width:100%;padding:10px 12px;border:1px solid #d9d4c9;border-radius:10px;background:#fff;color:var(--pd-ink);font:inherit;font-size:16px;resize:vertical}
.pd-ai textarea:focus-visible{outline:2px solid var(--pd-brand);outline-offset:1px;border-color:var(--pd-brand)}
.pd-ai-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pd-ai-go{min-height:44px;padding:0 18px;font-size:16px}
.pd-ai-cards{display:grid;gap:8px}
.pd-ai-card{display:flex;align-items:center;gap:12px;padding:8px 10px;border:1px solid var(--pd-line);border-radius:12px;background:#fff;color:var(--pd-ink);font:inherit;text-align:left;cursor:pointer;animation:pd-rise .22s var(--pd-ease-out) both}
.pd-ai-card:nth-child(2){animation-delay:.05s}
.pd-ai-card:nth-child(3){animation-delay:.1s}
.pd-ai-card img{flex:none;width:96px;height:64px;border-radius:8px;background:var(--pd-soft);object-fit:contain}
.pd-ai-card span{display:grid;gap:2px;min-width:0;line-height:1.4}
.pd-ai-card b{font-size:14px}
.pd-ai-card small{font-size:13px;color:var(--pd-muted)}
.pd-ai-wait,.pd-ai-done{margin:0;font-size:14px;color:var(--pd-muted)}
.pd-ai-done{color:var(--pd-brand);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
@keyframes pd-rise{from{opacity:0;transform:translateY(4px)}}
@keyframes pd-fade{from{opacity:0}}

.pd-sheet{width:min(520px,calc(100vw - 32px));max-height:min(92dvh,880px);padding:0;border:0;border-radius:18px;overflow:auto;color:var(--pd-ink);box-shadow:0 20px 60px rgba(0,0,0,.25);
  opacity:0;transform:scale(.97);transition:opacity .2s var(--pd-ease-out),transform .22s var(--pd-ease-out),overlay .22s allow-discrete,display .22s allow-discrete}
.pd-sheet[open]{opacity:1;transform:none}
@starting-style{.pd-sheet[open]{opacity:0;transform:scale(.97)}}
.pd-sheet::backdrop{background:rgba(20,20,18,0);transition:background-color .22s var(--pd-ease-out),overlay .22s allow-discrete,display .22s allow-discrete}
.pd-sheet[open]::backdrop{background:rgba(20,20,18,.45)}
@starting-style{.pd-sheet[open]::backdrop{background:rgba(20,20,18,0)}}
.pd-sheet form{display:grid;gap:16px;padding:18px 20px 22px}
.pd-sheet-head{display:flex;justify-content:space-between;align-items:center}
.pd-sheet-head h2{margin:0;font-size:20px}
.pd-sheet .pd-sheet-head h2[tabindex]:focus,.pd-sheet .pd-sheet-head h2[tabindex]:focus-visible{outline:none}
.pd-close:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px;border-radius:8px}
.pd-close{min-height:40px;padding:0 10px;border:0;background:none;color:var(--pd-muted);font:inherit;font-size:14px;cursor:pointer}
.pd-sum{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:12px;background:var(--pd-soft)}
.pd-sum i{flex:none;width:36px;height:36px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14)}
.pd-sum b{display:block;font-size:16px}
.pd-sum span{display:block;font-size:13px;color:var(--pd-muted)}
.pd-est{margin:0;font-size:14px;color:var(--pd-brand)}
.pd-req{font-size:13px;font-weight:700;color:var(--pd-req)}
.pd-err{margin:0;font-size:13px;color:var(--pd-req)}
.pd-fld [aria-invalid=true]{border-color:var(--pd-req)}
.pd-submit{width:100%}
.pd-fine{margin:0;font-size:13px;color:var(--pd-muted)}
.pd-hint{margin:0;font-size:13px;color:var(--pd-muted)}
.pd-lbl label{font:inherit}
.pd-how{display:inline-flex;align-items:center;gap:6px;justify-self:start;min-height:32px;padding:0 12px 0 6px;border:1px solid var(--pd-line);border-radius:999px;background:#fff;color:var(--pd-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s var(--pd-ease-out),border-color .15s ease}
.pd-how:active{transform:scale(var(--pd-press))}
.pd-how i{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--pd-brand);color:#fff;font-style:normal;font-size:9px}
.pd-how[aria-expanded=true]{border-color:var(--pd-ink)}
.pd-how:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.pd-how:hover{border-color:#bdb6a8}}
.pd-sizes .pd-how{margin-top:-2px}
.pd-head{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start}
.pd-head-n{display:grid;place-items:center;width:26px;height:26px;margin-top:1px;border-radius:50%;background:var(--pd-brand);color:#fff;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.pd-head-t{display:grid;gap:2px;min-width:0}
.pd-head-t>label,.pd-head-t>b{font-size:16px;font-weight:700;color:var(--pd-ink);line-height:1.4}
.pd-head-t em{font-style:normal;font-weight:400;font-size:13px;color:var(--pd-muted)}
.pd-head-t small{font-size:13px;line-height:1.5;color:var(--pd-muted)}
.pd-head .pd-how{align-self:center;padding:0 10px 0 5px;font-size:12px;white-space:nowrap}
.pd-stage-hint{position:absolute;top:10px;left:50%;z-index:2;margin:0;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 1px 2px rgba(0,0,0,.06);color:var(--pd-ink);font-size:12px;white-space:nowrap;transform:translateX(-50%);pointer-events:none}
.pd-frame.pd-full .pd-stage-hint{display:none}
.pd-sheet-step{display:grid;gap:10px;padding:10px 12px;border-radius:12px;background:var(--pd-soft)}
.pd-line{position:relative;display:grid;grid-template-columns:auto 1fr;gap:6px 10px;align-items:center;padding:12px 40px 12px 12px;border:1px solid #cfe6cf;border-radius:12px;background:#eef7ee;animation:pd-rise .22s var(--pd-ease-out) both}
.pd-line-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#06c755;color:#fff;font-size:10px;font-weight:800;letter-spacing:.02em}
.pd-line b{display:block;font-size:14px;color:var(--pd-ink)}
.pd-line small{display:block;font-size:13px;color:#4c5a4c}
.pd-line-go{grid-column:2;justify-self:start;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:10px;background:#06c755;color:#fff;font-size:14px;font-weight:700;text-decoration:none;transition:transform .12s var(--pd-ease-out)}
.pd-line-go:active{transform:scale(var(--pd-press))}
.pd-line-x{position:absolute;right:4px;top:4px;width:36px;height:36px;border:0;border-radius:50%;background:none;color:#6b675f;font-size:18px;cursor:pointer}
@media (prefers-reduced-motion:reduce){.pd-line{animation:pd-fade .2s ease both}}
.pd-howbox{width:min(440px,calc(100vw - 32px));--pd-howbox-room:calc(min(92dvh,880px) - 150px)}
.pd-howbox .pd-ref-in{gap:10px}
.pd-howbox-head{display:flex;align-items:center;gap:8px;min-height:40px}
.pd-howbox-step{margin:0;font-size:13px;font-weight:700;color:var(--pd-brand);white-space:nowrap}
.pd-howbox-head h2{margin:0;font-size:18px;line-height:1.3}
.pd-howbox-head h2:focus,.pd-howbox-head h2:focus-visible{outline:none}
.pd-howbox-x{position:relative;flex:none;display:grid;place-items:center;width:32px;height:32px;margin-left:auto;padding:0;border:0;border-radius:50%;background:var(--pd-soft);color:var(--pd-ink);cursor:pointer;transition:background-color .15s,transform .12s var(--pd-ease-out)}
.pd-howbox-x::before{content:"";position:absolute;inset:-6px}
.pd-howbox-x:active{transform:scale(.92)}
@media (hover:hover) and (pointer:fine){.pd-howbox-x:hover{background:var(--pd-line)}}
.pd-howbox-x:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px}
.pd-howbox-body{display:grid;justify-items:center;gap:10px}
.pd-howbox-body video{display:block;width:min(100%,calc(var(--pd-howbox-room) * 360 / 646));height:auto;aspect-ratio:360/646;border-radius:16px;background:var(--pd-soft);box-shadow:0 1px 2px rgba(0,0,0,.08),0 8px 24px rgba(0,0,0,.1)}
.pd-howbox-body p{margin:0;font-size:15px;line-height:1.5;text-align:center;text-wrap:balance;color:var(--pd-ink)}
.pd-howbox.pd-howbox-wide{width:min(1040px,calc(100vw - 64px),calc(var(--pd-howbox-room) * 1.6 + 40px))}
.pd-howbox-wide .pd-howbox-body video{width:min(100%,calc(var(--pd-howbox-room) * 1.6));aspect-ratio:16/10;border-radius:12px}
@media (max-width:860px){.pd-howbox{--pd-howbox-room:calc(94dvh - 165px - env(safe-area-inset-bottom,0px))}}
.pd-trust{margin:0;font-size:13px;color:var(--pd-muted)}
.pd-trust a{color:var(--pd-ink);text-underline-offset:3px}
#pd-unit small{font-size:12px;font-weight:600;color:var(--pd-muted)}

.pd-done{max-width:640px;margin:8px auto 0;animation:pd-rise .26s var(--pd-ease-out) both}
.pd-card{display:grid;gap:14px;padding:24px;border:1px solid var(--pd-line);border-radius:18px}
.pd-card h2{margin:0;font-size:24px}
.pd-card h3{margin:4px 0 0;font-size:16px}
.pd-card p{margin:0}
.pd-card ol{margin:0;padding-left:20px;display:grid;gap:6px;font-size:15px}
.pd-no{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;background:var(--pd-soft);font-size:14px;font-variant-numeric:tabular-nums}
.pd-no button{min-height:36px;padding:0 14px;border:1px solid var(--pd-line);border-radius:999px;background:#fff;font:inherit;font-size:14px;cursor:pointer}
.pd-done-acts{display:grid;gap:8px}
.pd-ghost{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid var(--pd-ink);border-radius:12px;background:#fff;color:var(--pd-ink);font:inherit;font-size:16px;font-weight:700;text-decoration:none;cursor:pointer}
.pd-fine a{color:var(--pd-ink)}

@media (max-width:860px){
  .proto-design{padding:0 0 calc(96px + env(safe-area-inset-bottom,0px))}
  .pd-ribbon{margin:8px 16px}
  .pd{display:block}
  .pd-stage{position:sticky;top:var(--pd-head,0px);z-index:4;gap:6px;padding:4px 16px 8px;background:#fff}
  .pd-ttl{grid-template-columns:auto 1fr;align-items:baseline;column-gap:12px}
  .pd-ttl h1{font-size:18px}
  .pd-ttl p{display:none}
  .pd-frame{height:40svh;min-height:260px;border-radius:14px}
  .pd-stage-tools{margin-top:-52px;padding:0 10px 8px}
  .pd-side button{min-height:34px;padding:0 13px;font-size:13px}
  .pd-3d{min-height:38px;padding:0 14px;font-size:13px}
  .pd-panel{padding:16px 16px 24px}
  .pd-bar{position:fixed;left:0;right:0;bottom:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 18px rgba(0,0,0,.06)}
  .pd-go{min-height:48px;padding:0 18px;font-size:16px}
  .pd-bar-line{width:46px;min-height:48px}
  .pd-price b{font-size:18px}
  .pd-t-long{display:none}
  .pd-t-short{display:inline}
  .pd-swatches button{width:36px;height:36px}
  .pd-swatches i{width:28px;height:28px}
  .pd-sheet{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:18px 18px 0 0;max-height:94dvh;opacity:1;transform:translateY(100%);
    transition:transform .3s var(--pd-ease-drawer),overlay .3s allow-discrete,display .3s allow-discrete}
  .pd-sheet[open]{transform:none}
  @starting-style{.pd-sheet[open]{transform:translateY(100%)}}
  .pd-sheet::backdrop{transition-duration:.3s}
  .pd-sheet form,.pd-ref-in{padding:14px 16px calc(18px + env(safe-area-inset-bottom,0px))}
  .pd-done{padding:0 16px}
}

.pd-grow{display:none}
@media (max-width:860px){
  html,body{overflow-anchor:none} 
  .pd-frame{transition:height .26s var(--pd-ease-out)}
  .pd-stage-hint{transition:opacity .2s var(--pd-ease-out)}
  .pd.pd-compact .pd-stage-hint{opacity:0;pointer-events:none}
  .pd.pd-compact .pd-frame{height:max(180px,24svh);min-height:0}
  .pd-grow{display:block;position:absolute;top:8px;right:8px;z-index:3;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 1px 2px rgba(0,0,0,.08);color:var(--pd-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent;opacity:0;transition:opacity .2s var(--pd-ease-out),transform .12s var(--pd-ease-out)}
  .pd-grow::before{content:"";position:absolute;inset:-6px}
  .pd-grow:active{transform:scale(var(--pd-press))}
  .pd-grow:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px}
  .pd.pd-compact .pd-grow{opacity:1}
  .pd:not(.pd-compact) .pd-grow{pointer-events:none;visibility:hidden}
  html.pd-lock .pd-grow{display:none}
}
@media (max-width:860px) and (prefers-reduced-motion:reduce){.pd-frame,.pd-stage-hint,.pd-grow{transition:none}}

.pd-check{display:grid;gap:8px;padding:12px 14px;border-radius:12px;border:1px solid var(--pd-line);animation:pd-rise .22s var(--pd-ease-out) .08s both}
.pd-check[data-state=warn]{border-color:#e6c9a6;background:#fdf8f1}
.pd-check[data-state=ok]{background:#f3f7f2;border-color:#d5e2d6}
.pd-check-head{margin:0;font-size:14px;font-weight:700}
.pd-check[data-state=ok] .pd-check-head::before{content:"✓ ";color:var(--pd-brand)}
.pd-check ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.pd-check li{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;font-size:14px;line-height:1.5}
.pd-check li span{min-width:0}
.pd-check li button{flex:none;min-height:36px;padding:0 12px;border:1px solid var(--pd-ink);border-radius:999px;background:#fff;color:var(--pd-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.pd-check li button:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px}
.pd-check-note,.pd-check-info{margin:0;font-size:13px;color:var(--pd-muted)}
.pd-flash{outline:2px solid #e3a24b!important;outline-offset:3px;border-radius:10px}

.pd-panel :is(.pd-fld,.pd-ai-wrap,.pd-ai,.pd-ai-cards,.pd-upload,input){scroll-margin-top:calc(var(--pd-head,0px) + 24px)}
@media (max-width:860px){.pd-panel :is(.pd-fld,.pd-ai-wrap,.pd-ai,.pd-ai-cards,.pd-upload,input){scroll-margin-top:calc(var(--pd-head,0px) + 40svh + 96px)}}

.pd-ref-links{display:flex;gap:18px;margin-top:2px}
.pd-link{min-height:40px;padding:0;border:0;background:none;color:var(--pd-ink);font:inherit;font-size:14px;text-decoration:underline;text-decoration-color:#bdb6a8;text-underline-offset:4px;cursor:pointer;transition:text-decoration-color .15s ease}
.pd-link:focus-visible{outline:2px solid var(--pd-brand);outline-offset:2px;border-radius:4px}
.pd-ref-in{display:grid;gap:14px;padding:18px 20px 22px}
.pd-ref-meta{margin:2px 0 0;font-size:13px;color:var(--pd-muted)}
.pd-ref-body{display:grid;gap:12px;min-width:0}
.pd-ref-body h3{margin:0;font-size:18px;line-height:1.4}
.pd-ref-body p{margin:0;font-size:15px;line-height:1.7}
.pd-ref-ben{display:grid;gap:12px}
.pd-ref-ben section{display:grid;gap:2px}
.pd-ref-ben h4{margin:0;font-size:14px}
.pd-ref-ben p{font-size:14px;color:var(--pd-muted)}
.pd-ref-body .pd-ref-note{font-size:13px;color:var(--pd-muted)}
.pd-chart-wrap{overflow-x:auto;border:1px solid var(--pd-line);border-radius:10px}
.pd-chart{width:100%;min-width:500px;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.pd-chart th,.pd-chart td{padding:8px 10px;border-bottom:1px solid var(--pd-line);text-align:right;white-space:nowrap}
.pd-chart thead th{background:var(--pd-soft);font-weight:700}
.pd-chart thead th:first-child,.pd-chart tbody th{text-align:left}
.pd-chart tbody th{font-weight:700}
.pd-chart tbody th small{display:block;font-size:13px;font-weight:400;color:var(--pd-muted)}
.pd-chart tbody tr:last-child>*{border-bottom:0}

.pd-sizes{display:grid;gap:8px;margin-top:-6px}
.pd-sizes-toggle{justify-self:start}
.pd-sizes-box{display:grid;gap:10px;animation:pd-rise .2s var(--pd-ease-out) both}
.pd-sizes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.pd-sz{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 6px 4px 12px;border:1px solid var(--pd-line);border-radius:10px;background:#fff}
.pd-sz label{display:grid;min-width:0;font-size:14px;font-weight:700;line-height:1.25;white-space:nowrap}
.pd-sz label small{font-size:13px;font-weight:400;color:#8a6d1f}
.pd-step{display:flex;align-items:center}
.pd-step button{width:36px;height:36px;border:0;border-radius:8px;background:var(--pd-soft);color:var(--pd-ink);font:inherit;font-size:18px;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s var(--pd-ease-out)}
.pd-step button:active{transform:scale(.96)}
.pd-step button:focus-visible,.pd-step input:focus-visible{outline:2px solid var(--pd-brand);outline-offset:1px}
.pd-step input{width:42px;min-height:36px;padding:0;border:0;background:none;color:var(--pd-ink);font:inherit;font-size:16px;text-align:center;font-variant-numeric:tabular-nums}
.pd-sizes-foot{margin:0;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;font-variant-numeric:tabular-nums}
.pd-done-sizes{margin:0;font-size:14px;color:var(--pd-muted)}
@media (max-width:860px){.pd-step button{width:40px;height:40px}.pd-step input{width:32px}.pd-sz{padding-left:10px}.pd-sizes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media (prefers-reduced-motion:reduce){
  :root{--pd-press:1}
  .pd-stage-tools .pd-3d,.pd-stage-tools .pd-3d[hidden]{scale:none}
  @starting-style{.pd-stage-tools .pd-3d{scale:none}}
  .proto-ex-grid img{transition:none}
  .pd-check,.pd-sizes-box,.pd-ai,.pd-ai-card,.pd-done{animation:pd-fade .2s ease both}
  .pd-sheet,.pd-sheet[open]{transform:none!important}
  @starting-style{.pd-sheet[open]{transform:none}}
  .pd-frame.pd-full,.pd-frame.pd-full.pd-full-in,.pd-frame.pd-full.pd-full-out{transform:none}
  .pd-sheet{opacity:0;transition:opacity .2s ease,overlay .2s allow-discrete,display .2s allow-discrete!important}
  .pd-sheet[open]{opacity:1}
  @starting-style{.pd-sheet[open]{opacity:0}}
}
