:root{--ink:#354c48;--muted:#63746c;--green:#316951;--cream:#fbf7ee;--line:#deded0;--shadow:0 9px 25px #4f583a0a}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;font-weight:600}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;white-space:nowrap;touch-action:manipulation}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #245d8e;outline-offset:5px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.workshop{max-width:1100px;margin:auto;padding:22px 40px 14px}.topbar{display:flex;justify-content:space-between;align-items:center;font-size:13px}.brand{color:var(--green);text-decoration:none;letter-spacing:.08em}.prototype{font-size:11px;border:1px solid var(--line);border-radius:30px;padding:5px 12px;white-space:nowrap}.heading{text-align:center;margin:14px 0 22px}.eyebrow{font-size:11px;color:var(--muted);letter-spacing:.13em;margin:0 0 7px}h1{font-size:34px;letter-spacing:.08em;margin:0;white-space:nowrap}h1 span{font-size:14px;letter-spacing:0}.intro{font-size:13px;color:var(--muted);margin:10px 0 0}.editor{display:grid;grid-template-columns:270px 1fr;background:#fffdf8;border:1px solid #e4e3d7;border-radius:26px;box-shadow:var(--shadow);overflow:hidden}.tools{padding:34px 26px;background:#f2f3e9;border-right:1px solid #e4e3d7;display:flex;flex-direction:column;gap:24px}fieldset{border:0;padding:0;margin:0;min-width:0}legend,h2{font-size:15px;padding:0;margin:0 0 14px;white-space:nowrap}.step{display:inline-grid;place-items:center;border:1px solid #aebdad;border-radius:50%;font-size:11px;width:22px;height:22px;margin-right:5px;vertical-align:middle}.colors{display:flex;gap:10px}.color{width:43px;height:43px;flex-shrink:0;border:4px solid transparent;border-radius:50%;background:var(--swatch);background-clip:padding-box;position:relative;box-shadow:0 0 0 1px #354c4820}.color[aria-pressed=true]{box-shadow:0 0 0 3px var(--ink)}.color[aria-pressed=true]:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:var(--ink);font-size:21px}.shapes{display:flex;gap:9px}.shape{width:64px;height:70px;border:1px solid #cfd8ca;background:#fffdf8;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:11px}.shape svg{width:29px;height:29px}.shape[aria-pressed=true]{border:2px solid var(--green);background:#e5eddf;box-shadow:0 3px 0 #31695118}.small-tools{display:flex;flex-direction:column;gap:10px}.eraser,.undo{border:1px solid #c6d0c2;background:transparent;border-radius:12px;min-height:44px;font-size:13px}.eraser[aria-pressed=true]{background:#fff8dc;border:2px solid #90754a}.selection{font-size:11px;color:var(--muted);margin:0;min-height:15px;white-space:nowrap}.canvas-area{text-align:center;padding:25px 16px 14px;background:radial-gradient(#c9cbb844 .8px,transparent .8px) 0 0/18px 18px}.canvas-area h2{font-size:14px}.shirt-stage{width:360px;max-width:100%;aspect-ratio:1;position:relative;margin:0 auto}.shirt-art{width:100%;height:100%;filter:drop-shadow(0 8px 0 #d8ddcd70)}.shirt-art svg{width:100%;height:100%;display:block}.slots{position:absolute;left:30%;top:31.1111%;width:40%;height:46.6667%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr)}.slot{display:grid;place-items:center;background:transparent;border:0;border-radius:50%;padding:0;min-width:0;min-height:0}.slot:before{content:'';width:80%;aspect-ratio:1;border:1.5px dashed #abb8ac;border-radius:50%;background:#fbf7ee50}.slot.filled:before{display:none}.slot svg{width:80%;height:80%;overflow:visible}.slot:hover{background:#dbe5d744}.canvas-note{font-size:11px;color:var(--muted);margin:0}.finish-bar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:17px 26px;border-top:1px solid var(--line);gap:14px}.finish-bar p{font-size:12px;color:var(--muted);margin:0}.primary,.secondary{border:0;border-radius:15px;min-height:53px;padding:0 28px;font-size:17px;letter-spacing:.03em}.primary{background:var(--green);color:#fffdf8;box-shadow:0 4px 0 #24513f}.primary span{margin-left:18px}.secondary{border:1px solid #bccbbd;background:#fffdf8;font-size:14px}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;font-size:10px;color:var(--muted)}footer span{white-space:nowrap}.text-button{border:0;background:transparent;padding:10px 0;min-height:36px;font-size:11px;text-decoration:underline;text-underline-offset:4px}.result{background:#f0f2e4;border:1px solid var(--line);border-radius:26px;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:20px 50px;min-height:530px;position:relative;overflow:hidden}.result-copy h2{font-size:32px;letter-spacing:.08em}.result-copy>.result-description{font-size:14px;line-height:2;color:var(--muted)}.character{height:370px}.character svg{height:100%;width:100%;overflow:visible}.result-actions{grid-column:1/-1;display:flex;justify-content:center;gap:16px;padding-bottom:14px}.result .character{animation:hello .6s ease-out both}@keyframes hello{from{opacity:0;transform:translateY(16px) rotate(-3deg)}to{opacity:1;transform:none}}dialog{border:1px solid var(--line);border-radius:24px;padding:30px;max-width:520px;width:calc(100% - 32px);max-height:85dvh;color:var(--ink);background:#fffdf8;font-size:14px;line-height:1.9}dialog::backdrop{background:#203a3566}dialog h2{font-size:20px;margin-right:30px}dialog h3{font-size:15px}dialog a{color:var(--green)}.close{position:absolute;right:15px;top:12px;border:0;background:transparent;min-width:44px;min-height:44px;font-size:26px}.credit{font-size:12px;white-space:nowrap}
@media(max-width:650px){.workshop{padding:14px 16px 8px}.topbar{font-size:11px}.prototype{font-size:10px;padding:4px 10px}.heading{margin:15px 0 17px}.eyebrow{font-size:10px}h1{font-size:27px}h1 span{font-size:11px}.intro{font-size:11px;margin-top:7px}.editor{grid-template-columns:1fr;border-radius:21px}.tools{padding:16px 15px 12px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}legend{font-size:12px;margin-bottom:10px}.step{width:20px;height:20px;font-size:10px;margin-right:1px}.colors{gap:8px}.color{width:31px;height:38px;border-width:3px;border-radius:12px}.shapes{gap:6px}.shape{width:42px;height:54px;border-radius:10px;font-size:9px}.shape svg{width:24px;height:24px}.small-tools{grid-column:1/-1;flex-direction:row;gap:10px}.eraser,.undo{font-size:11px;flex:1;min-height:40px;border-radius:10px}.selection{grid-column:1/-1;font-size:10px;min-height:12px;text-align:center;margin-top:-5px}.canvas-area{padding:15px 10px 13px}.canvas-area h2{font-size:12px;margin-bottom:3px}.shirt-stage{width:min(280px,100%)}.canvas-note{font-size:10px;margin-top:0}.finish-bar{padding:12px 15px}.finish-bar p{font-size:10px;max-width:130px;line-height:1.8}.primary{min-height:48px;padding:0 20px;font-size:15px}.primary span{margin-left:12px}footer{margin-top:6px;font-size:9px;gap:8px}.text-button{font-size:10px}.result{grid-template-columns:1fr;padding:25px 12px 20px;min-height:540px;gap:0;text-align:center}.result-copy h2{font-size:27px;margin-bottom:0}.result-copy>.result-description{display:none}.character{height:345px}.result-actions{gap:10px;padding:0}.secondary{padding:0 14px;font-size:12px;min-height:48px}.result-actions .primary{font-size:14px}}
@media(max-width:370px){.workshop{padding-left:10px;padding-right:10px}.tools{padding-left:12px;padding-right:12px;gap:12px 10px}.colors{gap:6px}.color{width:29px}.shape{width:39px}.shapes{gap:5px}.selection{font-size:9px}h1{font-size:25px}}
@media(min-width:651px) and (max-height:600px){.workshop{padding:8px 22px;max-width:980px}.topbar{font-size:10px}.prototype{font-size:9px;padding:3px 9px}.heading{margin:3px 0 8px}.heading .eyebrow,.intro{display:none}h1{font-size:23px}h1 span{font-size:10px}.editor{grid-template-columns:280px 1fr;border-radius:18px}.tools{padding:14px 20px;gap:12px;display:grid;grid-template-columns:1fr 1fr;column-gap:14px}.tools fieldset{grid-column:1/-1;display:flex;align-items:center;gap:15px}.tools legend{float:left;margin:10px 0 0;font-size:11px}.step{width:18px;height:18px;font-size:9px}.colors{gap:9px}.color{width:30px;height:30px;border-width:3px}.shapes{gap:8px}.shape{width:34px;height:42px;border-radius:8px;font-size:8px}.shape svg{height:20px;width:20px}.small-tools{grid-column:1/-1;flex-direction:row;gap:10px}.small-tools button{font-size:10px;min-height:36px;flex:1;border-radius:9px}.selection{grid-column:1/-1;font-size:10px;min-height:12px}.canvas-area{padding:10px}.canvas-area h2{font-size:11px;margin-bottom:0}.shirt-stage{width:180px}.canvas-note{font-size:9px}.finish-bar{padding:9px 20px}.finish-bar p{font-size:10px}.primary{min-height:40px;font-size:14px;padding:0 25px}footer{margin-top:0;font-size:9px}.text-button{font-size:9px;min-height:30px;padding:4px 0}.result{grid-template-columns:1fr 1fr;min-height:260px;padding:10px 40px}.result-copy h2{font-size:25px}.result-copy p{font-size:11px}.character{height:200px}.result-actions{padding:0;gap:12px}.secondary{min-height:40px;font-size:12px}.result .eyebrow{font-size:10px}}
@media(prefers-reduced-motion:reduce){.result .character{animation:none}}

/* 横向きは操作パネルと完成ボタンを並べ、配置枠を小さくしない。 */
@media(min-width:651px) and (max-height:600px){
.workshop{padding:6px 16px}.topbar{height:24px}.heading{margin:0 0 5px}h1{font-size:20px}.editor{grid-template-columns:240px 1fr 120px;min-height:278px}.tools{padding:16px 15px;gap:15px}.tools fieldset{gap:12px}.tools legend{font-size:10px}.color{width:30px;height:36px}.colors{gap:6px}.shape{width:34px;height:46px}.small-tools{flex-direction:column;gap:8px}.small-tools button{min-height:40px;font-size:11px;flex:none}.selection{font-size:9px}.canvas-area{padding:6px 0 0;display:flex;flex-direction:column;justify-content:center}.canvas-area h2{font-size:10px}.shirt-stage{width:288px;max-width:100%;aspect-ratio:360/310}.shirt-art svg{height:116.129%;transform:translateY(-2.7778%);transform-origin:top center}.shirt-art{overflow:hidden;filter:none}.slots{top:32.9032%;height:54.1935%}.canvas-note{font-size:8px;margin-bottom:5px}.finish-bar{grid-column:3;grid-row:1;flex-direction:column;justify-content:center;border-top:0;border-left:1px solid var(--line);padding:10px;gap:20px}.finish-bar p{font-size:10px;line-height:2;text-align:center}.finish-bar .primary{font-size:14px;min-height:48px;padding:0 12px}.primary span{margin-left:8px}footer{margin-top:0}.result{min-height:278px}.character{height:208px}}
@media(min-width:651px) and (max-width:740px) and (max-height:600px){.workshop{padding:5px 10px}.editor{grid-template-columns:212px 1fr 99px}.tools{padding:12px 10px}.tools fieldset{gap:8px}.tools legend{font-size:9px}.step{margin-right:0}.color{width:27px}.colors{gap:5px}.shapes{gap:5px}.shape{width:31px}.finish-bar{padding:6px}.finish-bar .primary{padding:0 8px}}

@media(min-width:651px) and (max-height:600px){.tools{display:flex;flex-direction:column;gap:10px;padding:12px 15px}.tools fieldset{display:block}.tools legend{float:none;font-size:11px;margin:0 0 6px}.color{width:38px;height:36px}.colors{gap:8px}.shape{width:48px;height:46px;font-size:9px}.shapes{gap:10px}.small-tools{flex-direction:row;gap:8px}.small-tools button{font-size:10px;flex:1}.selection{font-size:10px}.finish-bar p{font-size:10px}}
@media(min-width:651px) and (max-width:740px) and (max-height:600px){.tools{padding:12px}.colors{gap:8px}.color{width:36px}.shape{width:47px}.shapes{gap:9px}.selection{font-size:9px}}

.shirt-art{position:absolute;inset:0}
@media(min-width:651px) and (max-height:600px){.topbar{height:20px}.heading h1{line-height:1.2}.shirt-stage{width:280px;flex:none;min-height:0}}
@media(max-width:370px){.workshop{padding-top:8px}.heading{margin:8px 0 10px}.heading .eyebrow{display:none}.canvas-area{padding-top:10px;padding-bottom:8px}.shirt-stage{aspect-ratio:360/310}.shirt-art{overflow:hidden;filter:none}.shirt-art svg{height:116.129%;transform:translateY(-2.7778%);transform-origin:top center}.slots{top:32.9032%;height:54.1935%}}

/* v2: 保存と、４着ずつ見渡せるクローゼット */
.collection-nav{border:1px solid #b9c9b8;background:#edf1e5;border-radius:22px;font-size:12px;min-height:40px;padding:0 16px}.result-actions{display:grid;grid-template-columns:repeat(4,auto);gap:12px}.save-status{grid-column:1/-1;text-align:center;font-size:12px;line-height:1.8;min-height:22px;margin:0 0 10px}.save-status:not(:empty){padding:0 8px}.collection{border:1px solid var(--line);border-radius:26px;background:#f0f2e4;padding:24px 30px}.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.collection-heading h2{font-size:25px;margin:0}.collection-heading .eyebrow{font-size:10px}.storage-notice{color:#784330;font-size:12px;line-height:1.8}.storage-notice:empty{display:none}.collection-count{font-size:12px;margin:15px 0}.wardrobe{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.wardrobe-card{display:flex;align-items:center;flex-direction:column;gap:5px;background:#fffdf8;border:1px solid #cbd4c3;border-radius:16px;padding:10px;min-width:0;font-size:13px}.wardrobe-card svg{width:100%;height:190px}.wardrobe-card>span{white-space:nowrap}.wear-label{font-size:10px;color:var(--muted)}.collection-pages{display:flex;gap:20px;align-items:center;justify-content:center;margin-top:18px;font-size:12px}.collection-pages button{min-height:42px;font-size:12px;padding:0 20px}.collection-note{font-size:11px;color:var(--muted);text-align:center;margin:18px 0 0}
@media(max-width:650px){.collection-nav{font-size:11px;min-height:36px;padding:0 14px}.result{padding-top:20px;padding-bottom:20px;min-height:540px}.character{height:275px}.result-actions{grid-template-columns:repeat(2,1fr);width:100%;max-width:320px;margin:auto;gap:10px}.result-actions button{min-height:46px;padding:0 12px;font-size:13px}.save-status{font-size:11px;margin:0 0 9px;min-height:20px}.collection{padding:18px 14px;border-radius:21px}.collection-heading h2{font-size:21px}.collection-heading .eyebrow{font-size:9px;letter-spacing:0}.collection-heading .primary{min-height:44px;font-size:13px;padding:0 16px}.wardrobe{grid-template-columns:repeat(2,1fr);gap:12px}.wardrobe-card{padding:6px 8px;font-size:12px}.wardrobe-card svg{height:145px}.collection-pages{margin-top:12px}.collection-count{font-size:11px;margin:12px 0}.collection-note{font-size:10px;margin-top:12px}}
@media(max-width:370px){.collection-heading .eyebrow{font-size:8px}.collection-heading h2{font-size:19px}.wardrobe-card svg{height:126px}.wardrobe{gap:10px}.character{height:250px}.collection{padding:14px 12px}.collection-nav{min-height:32px}}
@media(min-width:651px) and (max-height:600px){.collection-nav{min-height:28px;font-size:10px;padding:0 12px}.result{padding:8px 24px;min-height:278px}.character{height:170px}.result-actions{gap:8px}.result-actions button{font-size:12px;padding:0 14px;min-height:40px}.save-status{font-size:10px;min-height:18px;margin-bottom:5px}.collection{padding:12px 18px;border-radius:18px}.collection-heading h2{font-size:20px}.collection-heading .eyebrow{display:none}.collection-heading .primary{min-height:36px;font-size:12px;padding:0 18px}.collection-count{font-size:10px;margin:5px 0}.wardrobe{gap:12px}.wardrobe-card{padding:5px;font-size:11px;gap:1px}.wardrobe-card svg{height:119px}.wear-label{font-size:9px}.collection-pages{gap:14px;margin-top:7px;font-size:10px}.collection-pages button{min-height:34px;font-size:11px;padding:0 18px}.collection-note{font-size:9px;margin-top:8px}}

@media(min-width:651px) and (max-height:600px){.collection{padding-top:8px;padding-bottom:8px}.wardrobe-card svg{height:96px}.collection-note{margin-top:6px}}

/* v3: 同じ服を３体に着せる。名前と操作サイズを保つ。 */
.character-picker{margin-top:18px}.character-picker legend{font-size:12px;margin-bottom:9px}.characters{display:flex;gap:10px}.character-option{width:82px;min-height:79px;background:#fffdf8;border:1px solid #becdbb;border-radius:13px;padding:7px 10px;display:flex;flex-direction:column;align-items:center;gap:5px}.character-option svg{width:45px;height:43px}.character-option span{font-size:12px;white-space:nowrap}.character-option[aria-pressed=true]{border:2px solid var(--green);background:#e2eada;box-shadow:0 3px 0 #31695118}.character-choice-status{font-size:10px;color:var(--muted);min-height:16px;white-space:nowrap;margin:11px 0 0}
@media(max-width:650px){.character-picker{margin-top:12px}.character-picker legend{font-size:11px;margin-bottom:7px}.characters{justify-content:center;gap:9px}.character-option{width:72px;min-height:65px;padding:5px 7px;gap:2px}.character-option svg{width:36px;height:34px}.character-option span{font-size:11px}.character-choice-status{font-size:10px;margin-top:7px}.character{height:215px}.result{min-height:540px;padding-top:15px;padding-bottom:15px}}
@media(max-width:370px){.character{height:190px}.result-copy h2{font-size:24px}.character-picker{margin-top:9px}.character-choice-status{margin-top:5px}}
@media(min-width:651px) and (max-height:600px){.result-copy>.result-description{display:none}.character-picker{margin-top:10px}.character-picker legend{font-size:10px;margin-bottom:5px}.character-option{width:63px;min-height:59px;padding:4px 5px;gap:2px;border-radius:10px}.character-option svg{width:32px;height:30px}.character-option span{font-size:10px}.characters{gap:8px}.character-choice-status{font-size:9px;margin-top:7px}.character{height:186px}}

/* v4: 選択肢はモーダルに大きく表示。操作画面は選択中の色と形を示す。 */
.palette-shortcut{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:66px;border:1px solid #aebeaa;border-radius:14px;background:#fffdf8;padding:8px 12px}.palette-shortcut>span:not(.choose-arrow){white-space:nowrap;font-size:14px}.shortcut-color{width:34px;height:34px;flex:none;background:var(--swatch);border-radius:50%;border:1px solid #71857266}.palette-shortcut svg{width:36px;height:36px;flex:none}.choose-arrow{font-size:20px;margin-left:auto;color:var(--muted)}.palette-dialog{max-width:560px;max-height:92dvh;padding:24px}.palette-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.palette-heading h2{font-size:21px;margin:0}.palette-close{border:1px solid #bdcdbb;border-radius:12px;background:#f0f2e4;padding:0 14px;min-height:44px;font-size:13px}.palette-hint{font-size:12px;color:var(--muted);margin:10px 0 16px}.palette-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.palette-color,.palette-shape{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:78px;border:1px solid #c5d1be;border-radius:13px;background:#fffdf8;font-size:11px;padding:7px 4px}.palette-swatch{display:block;width:34px;height:34px;border-radius:50%;background:var(--swatch);border:1px solid #71857280}.palette-shape svg{width:35px;height:35px}.palette-grid button[aria-pressed=true]{border:2px solid var(--green);background:#e2eada;box-shadow:0 3px 0 #31695118}.palette-grid button span{white-space:nowrap}#home-guide{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:14px 0}#home-guide summary{cursor:pointer;white-space:nowrap;font-size:14px;min-height:30px}
@media(max-width:650px){.palette-shortcut{min-height:57px;padding:7px 9px;gap:7px}.palette-shortcut>span:not(.choose-arrow){font-size:12px}.shortcut-color{width:29px;height:29px}.palette-shortcut svg{width:29px;height:29px}.choose-arrow{font-size:17px}.palette-dialog{padding:18px 16px;width:calc(100% - 24px)}.palette-heading h2{font-size:19px}.palette-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.palette-color,.palette-shape{min-height:67px;font-size:11px;gap:3px;padding:5px 3px}.palette-hint{font-size:11px;margin:8px 0 12px}.palette-swatch{width:29px;height:29px}.palette-shape svg{width:32px;height:32px}.palette-close{font-size:11px;min-height:40px;padding:0 12px}.selection{font-size:9px}}
@media(min-width:651px) and (max-height:600px){.palette-shortcut{min-height:52px;padding:5px 10px}.palette-shortcut>span:not(.choose-arrow){font-size:12px}.palette-shortcut svg,.shortcut-color{width:28px;height:28px}.palette-dialog{max-width:610px;padding:12px 18px;max-height:96dvh}.palette-heading h2{font-size:18px}.palette-close{min-height:36px;font-size:11px}.palette-hint{font-size:10px;margin:4px 0 9px}.palette-grid{gap:8px}.palette-color,.palette-shape{min-height:63px;gap:2px;font-size:10px;padding:4px}.palette-swatch{width:27px;height:27px}.palette-shape svg{width:28px;height:28px}}

/* Print the finished outfit only; preserve the selected design and character. */
.result-actions{flex-wrap:wrap}
@media print{
 @page{size:A4 portrait;margin:15mm}
 html,body{background:white!important;height:auto!important;overflow:visible!important}
 body{print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .workshop{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 .topbar,.heading,#editor,#collection,footer,dialog,.result-actions,.character-picker,.character-choice-status,.result-description,.result-copy>.eyebrow,#save-status{display:none!important}
 #result:not([hidden]){display:block!important;background:white!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;break-inside:avoid}
 .result-copy{text-align:center!important;padding:0!important;margin:0!important}
 #result-title{font-size:24pt!important;margin:0 0 8mm!important}
 #character{width:145mm!important;max-width:100%!important;height:auto!important;margin:0 auto!important}
 #character svg{width:100%!important;height:auto!important;max-height:215mm!important}
}

/* v7: larger readable type, gentle multicolor areas. Print styles stay separate. */
@media screen {
:root{--ink:#293d4c;--muted:#465869;--green:#365f9b;--line:#c8d1df;--cream:#fff8ed}
body{background:linear-gradient(120deg,#fff5e4 0%,#fceef1 45%,#edf5ff 100%);font-size:18px}
.workshop{max-width:1240px;padding:22px 28px}
.topbar{gap:12px;flex-wrap:wrap;height:auto;min-height:48px;font-size:17px}
.brand{margin-right:auto;color:#4f487c}
.collection-nav{font-size:16px;min-height:46px;background:#e5f1ff;border-color:#9aafd0;padding:0 18px}
#language-switch{background:#eee5fa;border-color:#baa6d1}
.heading{margin:20px 0 24px}.eyebrow{font-size:16px;color:var(--muted)}
h1{font-size:40px;letter-spacing:.03em;white-space:normal;word-break:normal}h1 span{font-size:18px}.intro{font-size:18px}
.editor{grid-template-columns:320px minmax(0,1fr);border:2px solid #c9c6da}
.tools{padding:24px;gap:22px;background:#fff0e9;border-color:#dccbd5;display:flex;flex-direction:column}
.tools fieldset{display:block;padding:14px;border-radius:18px;background:#ffe7ed}
.tools fieldset:nth-of-type(2){background:#e9e4fb}
legend,.tools legend{font-size:18px;float:none;margin:0 0 12px}
.step{font-size:15px;width:28px;height:28px;background:#fff;border-color:#8898b6}
.palette-shortcut{min-height:72px;padding:10px 14px;border:2px solid #b6a4bb;background:#fffdfb;gap:10px}
.palette-shortcut>span:not(.choose-arrow){font-size:19px}
.palette-shortcut svg,.shortcut-color{width:38px;height:38px}
.small-tools{display:flex;flex-direction:row;gap:10px}.small-tools button{flex:1;font-size:16px;min-height:48px;background:#fffdf8}
.selection{font-size:16px;line-height:1.6;white-space:normal;min-height:26px;color:#364b60}
.canvas-area{display:block;padding:24px 16px 18px;background:radial-gradient(#8daec24d 1px,transparent 1px) 0 0/22px 22px,#eff8ff}
.canvas-area h2{font-size:20px;margin-bottom:14px;white-space:normal}
.shirt-stage{width:420px;max-width:100%;aspect-ratio:1;min-height:0}
.shirt-art{overflow:visible;filter:drop-shadow(0 7px 0 #b6c6df44)}.shirt-art svg{height:100%;transform:none}
.slots{top:31.1111%;height:46.6667%}.slot:before{border-color:#8394ad;background:#ffffffb0}
.canvas-note{font-size:16px;line-height:1.6}
.finish-bar{grid-column:1/-1;grid-row:auto;flex-direction:row;padding:18px 24px;background:#fff1c9;border-left:0;border-top:1px solid #d7c897;gap:16px}
.finish-bar p{font-size:17px;line-height:1.6;max-width:none;text-align:left}
.primary,.finish-bar .primary{min-height:54px;font-size:20px;padding:0 24px;background:#496cb0;box-shadow:0 4px 0 #304e86}
.secondary{font-size:17px;min-height:50px;background:#fdfbff;border-color:#a9a0bf}
footer{font-size:14px;flex-wrap:wrap}.text-button{font-size:16px;min-height:44px}
.result{background:linear-gradient(125deg,#fff0d8,#f8e9f4 50%,#e7f3ff);padding:28px;min-height:0;gap:18px}
.result-copy h2{font-size:36px}.result-copy>.result-description{font-size:18px;display:block}
.character{height:360px}.character-picker legend{font-size:18px}
.characters{gap:12px;flex-wrap:wrap}.character-option{width:auto;min-width:88px;min-height:88px;padding:8px 12px;background:#fffaf1}
.character-option:nth-child(2){background:#fce3e6}.character-option:nth-child(3){background:#e0efff}
.character-option span{font-size:16px}.character-option[aria-pressed=true]{border-color:#6a5294;background:#eee3ff}
.character-choice-status,.save-status{font-size:16px;line-height:1.6;white-space:normal}
.result-actions{display:flex;flex-wrap:wrap;width:100%;max-width:none;gap:12px}.result-actions button{font-size:18px;min-height:52px;padding:0 20px}
#print-outfit{background:#fce3e6}#edit{background:#eee3fb}#result-collection{background:#e2f3ef}
.collection{background:linear-gradient(130deg,#fff1db,#eee9ff);padding:24px}
.collection-heading{flex-wrap:wrap}.collection-heading h2{font-size:28px}.collection-heading .eyebrow{font-size:16px}
.collection-count,.storage-notice,.collection-note,.collection-pages{font-size:16px}
.wardrobe-card{font-size:18px;background:#fff4e1}.wardrobe-card:nth-child(2n){background:#edf3ff}.wardrobe-card:nth-child(3n){background:#fce7ed}.wear-label{font-size:16px}
.collection-pages button{font-size:17px;min-height:48px}
dialog{font-size:17px}.palette-dialog{max-width:690px;padding:24px;max-height:92dvh;background:#fff8ef}
.palette-heading h2{font-size:24px}.palette-close{font-size:17px;min-height:46px;background:#eee3fa}.palette-hint{font-size:17px}
.palette-grid{gap:12px}.palette-color,.palette-shape{font-size:17px;min-height:88px;padding:8px 4px;background:#fff}
.palette-shape:nth-child(3n+1){background:#ffeaf0}.palette-shape:nth-child(3n+2){background:#e8f2ff}.palette-shape:nth-child(3n){background:#fff0c9}
.palette-grid button[aria-pressed=true]{background:#e4dcfa;border-color:#65539a;box-shadow:0 0 0 2px #65539a}
.palette-swatch,.palette-shape svg{width:40px;height:40px}.credit{font-size:15px;white-space:normal}
}
@media screen and (max-width:700px){
.workshop{padding:14px 12px}.topbar{gap:8px}.collection-nav{padding:0 12px;font-size:15px}.brand{font-size:16px}
h1{font-size:30px}.eyebrow{font-size:15px}.intro{font-size:16px}.heading{margin:16px 0}
.editor{grid-template-columns:minmax(0,1fr)}.tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:16px 10px}
.tools fieldset{padding:8px}.tools legend{font-size:16px}.step{width:24px;height:24px;font-size:13px}
.palette-shortcut{gap:6px;padding:8px 7px;min-height:64px}.palette-shortcut>span:not(.choose-arrow){font-size:16px}
.palette-shortcut svg,.shortcut-color{width:26px;height:26px}.choose-arrow{font-size:16px}
.small-tools,.selection{grid-column:1/-1}.small-tools button{font-size:16px}.selection{font-size:16px;margin:0}
.canvas-area{padding:18px 12px}.canvas-area h2{font-size:18px}.shirt-stage{width:340px}
.finish-bar{padding:14px;flex-wrap:wrap}.finish-bar p{font-size:16px}.finish-bar .primary{margin-left:auto}
.result{grid-template-columns:1fr;padding:20px 14px;text-align:center}.character{height:300px}.result-copy h2{font-size:30px}
.result-copy>.result-description{display:none}.characters{justify-content:center}.result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.result-actions button{font-size:16px;padding:0 8px}
.wardrobe{grid-template-columns:repeat(2,minmax(0,1fr))}.wardrobe-card svg{height:155px}.collection{padding:18px 12px}
.palette-dialog{padding:18px 12px}.palette-heading h2{font-size:21px}.palette-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.palette-color,.palette-shape{font-size:16px;min-height:82px}.palette-hint{font-size:16px}
}

/* Keep full action labels readable on narrow phones. */
@media screen and (max-width:370px){.result-actions{grid-template-columns:minmax(0,1fr)}}

@media screen{#collection-back{min-height:48px;min-width:48px}}

@media print{.result .character{animation:none!important;opacity:1!important;transform:none!important}}
