@font-face{font-family:"NC Condensed";src:url(font/condensed.woff) format("woff");font-display:swap}
@font-face{font-family:"NC Italic";src:url(font/italic.woff) format("woff");font-display:swap}
@font-face{font-family:"NC Mono";src:url(font/mono.woff) format("woff");font-display:swap}
@font-face{font-family:"NC Light";src:url(font/light.woff) format("woff");font-display:swap}
@font-face{font-family:"NC Serif";src:url(font/serif.woff) format("woff");font-display:swap}
@font-face{font-family:"NC Book";src:url(font/book.woff) format("woff");font-display:swap}
.studio-form label,.studio-form select,.studio-form input{min-width:0}
.studio-form .studio-variants,.studio-form .motif-field{min-width:0;margin:0;border:0;padding:.25rem 0}
.studio-variants legend,.motif-field legend{font-weight:750;font-size:.94rem;margin-bottom:.5rem}
.studio-form .variant-tile{display:grid;align-items:center;grid-template-columns:auto 1fr auto;gap:.65rem;margin:0 0 .5rem;padding:.9rem 1rem;border:1px solid #c3d0e2;border-radius:12px;cursor:pointer;background:#fff}
.studio-form .variant-tile:has(input:checked){background:#eef4ff;border-color:#174b9a;box-shadow:inset 0 0 0 1px #174b9a}
.studio-form .variant-tile input{width:1rem;height:1rem;margin:0;accent-color:#174b9a}
.variant-tile small{display:block;margin-top:.25rem;color:#52647d;font-weight:400}
.studio-form .variant-tile b{font-size:.95rem;white-space:nowrap}
.studio-motif-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:.4rem;padding-top:.55rem}
.studio-motif-list button{border-radius:.65rem;border:1px solid #b8c7dc;background:white;cursor:pointer;aspect-ratio:1;display:grid;place-items:center}
.studio-motif-list img{max-width:80%;max-height:38px;object-fit:contain}
.studio-motif-list button[aria-pressed=true]{outline:2px solid #205697;background:#eaf2ff}
.studio-form .photo-layers{margin-bottom:.45rem}
.studio-form .layer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;margin:.5rem 0}
.studio-form .layer-actions button{font:inherit;font-size:.8rem;padding:.45rem .65rem;border:1px solid #aebfd1;border-radius:.5rem;background:white;color:#17365e;cursor:pointer}
.studio-section .stage{align-self:start;min-width:0}
.studio-section .stage canvas{display:block;width:min(100%,420px);height:auto;margin:0 auto;touch-action:pan-y}
.studio-section .stage canvas.is-draggable{touch-action:none}
.studio-section .stage-hint{line-height:1.4}
.studio-form fieldset .pair{margin-block:.45rem}
@media(min-width:930px){.studio-section .stage{position:sticky;top:1rem}}
@media(max-width:700px){.studio-section .section{padding-top:1.35rem}.studio-section .studio-grid{grid-template-columns:minmax(0,1fr);gap:1rem}.studio-section .stage{padding:12px}.studio-section .stage canvas{max-height:48svh;width:auto;max-width:100%}.studio-section .editor{padding:1rem}.studio-section .buy-row{display:flex;flex-wrap:wrap;gap:.5rem}.studio-section .stage-top{gap:.25rem;flex-wrap:wrap}}

.studio-form .preset-library{border:0;min-width:0;padding:0;margin:.75rem 0}
.preset-library legend{font-size:.95rem;font-weight:750;padding:0;margin-bottom:.65rem}
.preset-groups{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.7rem}
.preset-groups button,.preset-reopen{border:1px solid #c0cede;background:#fff;color:#243851;border-radius:.6rem;padding:.54rem .67rem;font:inherit;font-weight:650;font-size:.78rem;cursor:pointer}
.preset-groups button[aria-pressed=true]{background:#163d78;color:white;border-color:#163d78}
.preset-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}
.preset-cards button{min-width:0;display:flex;align-items:center;flex-direction:column;gap:.4rem;background:#f4f6f9;font:inherit;font-size:.77rem;line-height:1.25;font-weight:650;padding:.54rem .2rem;border:1px solid #d6e0eb;border-radius:.72rem;color:#192e49;cursor:pointer}
.preset-cards button[aria-pressed=true]{border-color:#2155a2;box-shadow:inset 0 0 0 1px #2155a2}
.preset-cards canvas{height:85px;width:50px;max-width:85%;border-radius:.6rem;box-shadow:0 2px 6px #28384d38}
.preset-library[hidden],.preset-reopen[hidden]{display:none}

.canvas-tools { position:relative; width:min(100%,420px); margin-inline:auto }
@media(max-width:700px) { .canvas-tools { width:min(100%,35.44svh) } }
.canvas-tools #art { display:block; width:100%; max-height:none; height:auto; margin:0; touch-action:none }
.canvas-tools #art-tools { position:absolute; inset:0; width:100%; max-height:none; height:100%; pointer-events:none; margin:0 }
.object-controls { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.35rem; margin:.55rem 0 }
.object-controls strong { padding-inline:.4rem }
.object-controls button { min-width:44px; min-height:44px; padding:.25rem; border:1px solid var(--line); border-radius:8px; font-size:1.24rem; background:var(--snow); color:var(--ink); cursor:pointer }

.object-controls .object-remove { padding:.4rem .65rem; color:#a32333; font-size:.87rem; font-weight:700 }
