*{box-sizing:border-box;margin:0;padding:0}
:root{--ink:#222;--muted:#6b6b6b;--line:#e7dfd3;--bg:#f7f3ec;--accent:#2f3e5c;--hl:#f7d44c}
body{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
.top{padding:28px 20px 8px;max-width:1080px;margin:0 auto}
.brand{font-size:13px;font-weight:700;color:#d9718f;letter-spacing:.5px}
.top h1{font-size:28px;margin:6px 0 6px;letter-spacing:-.5px}
.top p{color:var(--muted);font-size:15px;line-height:1.5}
.wrap{max-width:1080px;margin:0 auto;padding:12px 16px 40px;display:grid;grid-template-columns:1fr;gap:16px}
.stage{background:#ece8e2;border-radius:22px;padding:12px;position:sticky;top:0;z-index:2}
.stage canvas{width:100%;max-width:420px;display:block;margin:0 auto;aspect-ratio:720/820;height:auto}
.stage-actions{display:flex;justify-content:space-between;align-items:center;max-width:420px;margin:6px auto 0}
.size{font-size:12px;color:var(--muted)}
.panel{background:#fff;border-radius:22px;padding:20px}
.field{margin-bottom:22px}
.field>label{display:block;font-weight:700;font-size:15px;margin-bottom:8px}
.field small{display:block;color:var(--muted);font-size:12px;margin-top:6px}
input#name{width:100%;font-size:18px;padding:12px 14px;border:2px solid var(--line);border-radius:12px;font-family:inherit}
input#name:focus{outline:none;border-color:var(--accent)}
.colors{display:flex;flex-wrap:wrap;gap:10px}
.sw{width:44px;height:44px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px var(--line);cursor:pointer;position:relative}
.sw[aria-pressed=true]{box-shadow:0 0 0 3px var(--ink)}
.sw span{position:absolute;top:48px;left:50%;transform:translateX(-50%);font-size:11px;color:var(--muted);white-space:nowrap}
.colors{padding-bottom:16px}
.tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px;scrollbar-width:none}
.tabs button{flex:0 0 auto;border:0;background:var(--bg);padding:9px 14px;border-radius:999px;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;font-family:inherit}
.tabs button[aria-selected=true]{background:var(--ink);color:#fff}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;max-height:300px;overflow-y:auto;padding:2px}
.grid button{border:2px solid var(--line);border-radius:12px;background:#fff;padding:2px;cursor:pointer;aspect-ratio:1}
.grid button img{width:100%;height:100%;display:block;border-radius:9px}
.grid button[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.grid .none{font-size:13px;color:var(--muted);font-family:inherit}
button.primary,a.primary{display:block;width:100%;border:0;background:var(--ink);color:#fff;font-size:17px;font-weight:700;padding:16px;border-radius:14px;cursor:pointer;text-align:center;text-decoration:none;font-family:inherit}
button.primary:disabled{opacity:.5;cursor:default}
button.ghost{border:2px solid var(--ink);background:#fff;color:var(--ink);font-size:14px;font-weight:700;padding:8px 14px;border-radius:999px;cursor:pointer;font-family:inherit}
.result{margin-top:16px;background:var(--bg);border-radius:16px;padding:18px}
.result .label{font-size:13px;color:var(--muted)}
.code-row{display:flex;align-items:center;justify-content:space-between;margin:4px 0 12px}
.code-row strong{font-size:30px;letter-spacing:2px}
.result ol{padding-left:20px;margin-bottom:14px;font-size:14px;line-height:1.7;color:#444}
.err{color:#c0392b;font-size:14px;margin-top:10px}
.faq{margin-top:22px;font-size:14px;color:#555}
.faq summary{cursor:pointer;font-weight:700;color:var(--ink)}
.faq ul{margin-top:10px;padding-left:18px;line-height:1.7}
.foot{text-align:center;color:var(--muted);font-size:12px;padding:20px}
@media (min-width:860px){
  .wrap{grid-template-columns:1fr 1fr;align-items:start}
  .stage{top:16px}
  .grid{max-height:360px}
}
.price{font-size:15px;color:#444;margin-bottom:10px;text-align:center}.price b{font-size:20px;color:var(--ink)}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}.seg button{border:2px solid var(--line);background:#fff;border-radius:14px;padding:12px;text-align:left;cursor:pointer;font-family:inherit}.seg button b{display:block;font-size:15px}.seg button small{color:var(--muted);font-size:12px}.seg button[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}.note{font-size:13px;color:#666;margin:-4px 0 10px;text-align:center;line-height:1.5}
