:root{--ink: #1f2430;--muted: #5d6675;--line: #d9dde5;--brand: #b3205f;--brand-ink: #fff;--bg: #f7f5f2;--danger: #b00020;--ok: #1b6e3c;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 system-ui,-apple-system,Hiragino Sans,Noto Sans JP,sans-serif}main{max-width:64rem;margin:0 auto;padding:.75rem}h1{font-size:1.25rem;margin:0 0 .5rem}button,input,textarea,select{font:inherit;color:inherit}button{min-height:44px;padding:0 1rem;border:1px solid var(--line);border-radius:.5rem;background:#fff;cursor:pointer}button.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);font-weight:600}button:disabled{opacity:.45;cursor:not-allowed}button[aria-pressed=true],button[aria-selected=true]{outline:3px solid var(--brand);outline-offset:-1px}:focus-visible{outline:3px solid #1a73e8;outline-offset:2px}.steps{display:flex;gap:.25rem;list-style:none;margin:0;padding:0;overflow-x:auto}.steps li{flex:1 0 auto}.steps button{width:100%;padding:0 .5rem;display:flex;gap:.4rem;align-items:center;justify-content:center;font-size:.85rem;white-space:nowrap}.steps li[aria-current=step] button{background:var(--ink);color:#fff;border-color:var(--ink)}.steps b{display:inline-grid;place-items:center;width:1.4rem;height:1.4rem;border-radius:50%;background:#0000001a;font-size:.75rem}.layout{display:grid;gap:.75rem;margin-top:.75rem}.preview-pane{position:sticky;top:0;z-index:2;background:var(--bg);padding-bottom:.25rem}.preview{display:grid;justify-items:center;gap:.5rem;min-height:8rem}.preview.busy{opacity:.85}.product-toggle{display:flex;gap:.25rem}.poster{height:38vh;max-height:22rem;background:#fff;box-shadow:0 2px 10px #0003}.poster img{display:block;height:100%;width:100%}.shirt{height:38vh;max-height:22rem;width:auto}.panel{background:#fff;border:1px solid var(--line);border-radius:.75rem;padding:1rem}.hint{color:var(--muted);font-size:.9rem;margin:0 0 .75rem}.error{color:var(--danger);background:#fdecee;border-radius:.5rem;padding:.5rem .75rem;margin:.5rem 0}.error p{margin:0}.error pre{margin:.25rem 0 0;overflow-x:auto;font:.85rem/1.3 ui-monospace,monospace}.ok{color:var(--ok)}.field{display:grid;gap:.25rem;margin:0 0 1rem;border:0;padding:0;min-width:0}.field legend,.field>span{font-weight:600;font-size:.9rem;padding:0}.field small{color:var(--muted)}input[type=text],input[type=date],textarea{width:100%;min-height:44px;padding:.5rem .75rem;border:1px solid #aab1bd;border-radius:.5rem;background:#fff}textarea{font-family:ui-monospace,monospace}input[type=range]{width:100%;min-height:44px}input[type=color]{width:44px;height:44px;padding:2px;border-radius:50%;border:1px solid var(--line);background:#fff}output{font-weight:400;color:var(--muted);margin-left:.5rem}.tabs{display:flex;gap:.25rem;margin-bottom:.75rem}.tabs button{flex:1}.template-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.template-card{width:100%;height:100%;padding:.5rem;display:grid;gap:.25rem;text-align:left;align-content:start}.template-card small{color:var(--muted);font-size:.75rem;line-height:1.4}.thumb{display:block;aspect-ratio:3/4;background:#eee;border-radius:.25rem;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:contain;display:block}.swatches,.chips{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.swatch{width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--line)}.chip{border-radius:999px}.chip.serif{font-family:"Noto Serif JP",Hiragino Mincho ProN,serif}.chip.hand{font-family:Zen Kurenaido,Hiragino Maru Gothic ProN,cursive}.nav,.actions{display:flex;gap:.5rem;justify-content:space-between;margin-top:1rem}.actions button{flex:1}@media(min-width:48rem){.layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.preview-pane{top:.75rem}.poster,.shirt{height:70vh;max-height:40rem}.template-list{grid-template-columns:repeat(3,1fr)}}
