:root { --ink:#2b2b2b; --paper:#fff8ec; --orange:#e8622a; --muted:#7a7066; --line:#2b2b2b; --card:#fff; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background:var(--paper); }
.top { display:flex; align-items:center; gap:16px; padding:12px 20px; background:#fff; border-bottom:2px solid var(--line); position:sticky; top:0; z-index:5; }
.top h1 { font-size:18px; margin:0; flex:1; } .top h1 small { font-weight:400; color:var(--muted); font-size:13px; margin-left:6px; }
.top a { color:var(--ink); text-decoration:none; font-weight:600; font-size:14px; }
.wrap { display:grid; grid-template-columns:minmax(300px,420px) 1fr; gap:24px; padding:20px; max-width:1400px; margin:0 auto; }
@media (max-width:900px){ .wrap { grid-template-columns:1fr; padding:16px; } }
.step { background:var(--card); border:2px solid var(--line); border-radius:18px; padding:16px; margin-bottom:16px; }
.step h2 { font-size:16px; margin:0 0 12px; }
.tpls { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.tpl, .pick { border:2px solid var(--line); border-radius:12px; background:#fff; padding:4px; cursor:pointer; text-align:center; font-size:12px; font-weight:600; }
.tpl img, .pick img { width:100%; aspect-ratio:3/4; object-fit:contain; display:block; background:#f4efe6; border-radius:8px; }
.tpl.on, .pick.on { outline:4px solid var(--orange); }
.photo { display:flex; align-items:center; gap:12px; border:2px dashed var(--line); border-radius:12px; padding:10px; cursor:pointer; margin-bottom:12px; font-size:13px; color:var(--muted); }
.photo img { width:72px; height:72px; object-fit:cover; border-radius:8px; }
.fld { display:block; font-weight:600; font-size:13px; margin-bottom:10px; }
.fld input { display:block; width:100%; margin-top:4px; font-size:16px; padding:10px 14px; border:2px solid var(--line); border-radius:999px; }
.req, .opt { font-weight:400; color:var(--muted); font-size:12px; }
.note { font-size:12px; color:var(--muted); margin:6px 0 0; }
.btn { font:inherit; font-weight:700; border:2px solid var(--line); border-radius:999px; padding:11px 18px; background:#fff; cursor:pointer; }
.btn.primary { background:var(--orange); color:#fff; } .btn.dark { background:var(--ink); color:#fff; width:100%; margin-top:8px; }
.btn.small { padding:6px 12px; font-size:13px; }
.btn:disabled { opacity:.45; cursor:default; }
.picks { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.pick.wait { display:flex; align-items:center; justify-content:center; aspect-ratio:3/4; border-style:dashed; color:var(--muted); font-weight:400; animation:pulse 1.4s infinite; }
@keyframes pulse { 50% { background:#f4efe6; } }
.stage-wrap { position:relative; background:#fff; border:2px solid var(--line); border-radius:18px; overflow:hidden; }
#stage { width:100%; height:auto; display:block; }
.badge { position:absolute; left:12px; top:12px; background:#fff; border:2px solid var(--line); border-radius:999px; padding:4px 10px; font-size:12px; font-weight:700; }
.ctrls { background:#fff; border:2px solid var(--line); border-radius:18px; padding:14px 16px; margin-top:16px; }
.row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.lbl { width:90px; font-size:13px; font-weight:700; }
.chips { display:flex; gap:6px; flex-wrap:wrap; flex:1; }
.chip { font:inherit; font-size:13px; border:2px solid var(--line); border-radius:999px; padding:5px 12px; background:#fff; cursor:pointer; }
.chip.on { background:var(--ink); color:#fff; }
.chip .sw { display:inline-block; width:12px; height:12px; border-radius:50%; border:1px solid #999; vertical-align:-1px; margin-right:5px; }
input[type=range] { flex:1; accent-color:var(--orange); }
.val { width:60px; text-align:right; font-variant-numeric:tabular-nums; font-size:13px; }
.chk { font-size:13px; }
.info { font-size:13px; background:#f4efe6; border-radius:10px; padding:8px 10px; margin:6px 0; }
.black-warn { font-size:13px; background:#fff1e8; border:2px solid var(--orange); border-radius:10px; padding:8px 10px; margin:6px 0; }
.prints { margin-top:12px; display:grid; gap:10px; }
.print { display:flex; gap:10px; align-items:center; border:2px solid var(--line); border-radius:12px; padding:8px; font-size:13px; }
.print img { width:80px; height:90px; object-fit:contain; background:#f4efe6; border-radius:6px; }
.print a { color:var(--orange); font-weight:700; }
.jobs { position:fixed; right:0; top:52px; bottom:0; width:300px; background:#fff; border-left:2px solid var(--line); padding:12px; overflow:auto; z-index:4; }
.jobs h3 { margin:0 0 10px; font-size:15px; }
.job { display:block; padding:8px; border:2px solid var(--line); border-radius:10px; margin-bottom:6px; color:var(--ink); text-decoration:none; font-size:13px; }
.toast { position:fixed; left:50%; bottom:20px; transform:translateX(-50%); background:var(--ink); color:#fff; padding:10px 16px; border-radius:999px; font-size:14px; z-index:9; }
