main.wide { max-width: 60rem; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 1.4rem 1.2rem; text-align: center; background: var(--card); outline: none; }
.drop.over, .drop:focus-visible { border-color: var(--link); }
.drop p { margin: .3rem 0; }
.drop .hint { color: var(--muted); font-size: .95rem; }
.pick { color: var(--link); text-decoration: underline; cursor: pointer; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
button { font: inherit; cursor: pointer; }
.sample { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: .15rem .8rem; margin: .2rem .15rem; }
.sample:hover { border-color: var(--link); }
.status { min-height: 1.6em; color: var(--muted); margin: .8rem 0 0; }
.status.error { color: #c0392b; }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .5rem; }
@media (max-width: 640px) { .panes { grid-template-columns: 1fr; } }
figure { margin: 0; min-width: 0; }
figcaption { font-weight: 600; margin-bottom: .4rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.toggle { font-weight: 400; color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .9rem; }
.stage { border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--card); }
.stage canvas { max-width: 100%; max-height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.checker { background: repeating-conic-gradient(#0000 0 25%, #8882 0 50%) 0 0 / 16px 16px, var(--card); }
.controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg label { padding: .3rem .8rem; cursor: pointer; }
.seg label:has(input:checked) { background: var(--link); color: #fff; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.download { display: flex; gap: .6rem; align-items: center; }
select { font: inherit; padding: .2rem .3rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.primary, .store { background: var(--link); color: #fff; border: 0; border-radius: 8px; padding: .45rem 1rem; text-decoration: none; display: inline-block; font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .8rem; }
.swatches em { align-self: center; margin-left: .3rem; }
.swatches span { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line); }
.cta { margin-top: 2rem; }
.cta p { margin: .8rem 0 0; }
