/* Páginas do Gerador de objetos: prévia grande + passos numerados */
@font-face { font-family: "G-arredondado"; src: url("/assets/fonts-3d/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "G-forte"; src: url("/assets/fonts-3d/ArchivoBlack-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "G-elegante"; src: url("/assets/fonts-3d/Pacifico-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "G-estreito"; src: url("/assets/fonts-3d/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }

.gen { gap: 18px; }
.crumbs { font-size: 15px; color: var(--subtle); }
.crumbs a { color: var(--subtle); }
.crumbs b { color: var(--fg); }
.genwrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.preview { flex: 3 1 560px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 22px; position: sticky; top: 16px; }
.stage { position: relative; height: min(68vh, 600px); min-height: 360px; background: radial-gradient(circle at 50% 35%, var(--surface), var(--sunk)); }
.stage canvas { display: block; position: absolute; inset: 0; touch-action: none; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--subtle); margin: 0; }
.stagebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.fit { font-size: 14px; font-weight: 700; }
.fit.ok { color: var(--ok-fg); }
.fit.bad { color: var(--danger); }
.gen .steps { padding: 0; margin: 0; list-style: none; }
.steps { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.step { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 18px; }
.sh { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.sh i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-size: 14px; flex: none; }
.step textarea { font: inherit; font-size: 20px; font-weight: 600; color: var(--fg); background: var(--surface); border: 2px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; resize: vertical; min-height: 54px; }
.styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.styles button { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; cursor: pointer; background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); }
.styles button[aria-checked="true"] { border: 2px solid var(--link); background: var(--primary-soft); }
.styles .aa { font-size: 30px; line-height: 1.15; }
.styles small { font-size: 13px; font-weight: 600; color: var(--muted); }
.colorrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.colorrow > span { width: 56px; font-size: 14px; font-weight: 600; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 1px solid var(--line-strong); }
.swatches button[aria-checked="true"] { outline: 3px solid var(--fg); outline-offset: 2px; }
.more { padding: 14px 20px; border-radius: 16px; }
.more summary { cursor: pointer; font-weight: 700; }
.moregrid { display: grid; gap: 14px; padding-top: 14px; }
.rangef { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.rangef b { float: right; color: var(--link); }
.rangef input { accent-color: var(--primary); }
.field2 { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.btn.big { font-size: 17px; font-weight: 800; padding: 16px; border-radius: 14px; }
.center { text-align: center; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; cursor: pointer; text-decoration: underline; }
@media (max-width: 960px) { .preview { position: static; } .stage { height: 380px; } }
.note { margin: 0; font-size: 14px; line-height: 1.5; background: var(--warn-bg); color: var(--warn-fg); border-radius: 12px; padding: 10px 14px; }
.step input[type="text"], .step input[type="tel"], .step input[type="number"], .moregrid input[type="text"] { font: inherit; font-size: 18px; font-weight: 600; color: var(--fg); background: var(--surface); border: 2px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; width: 100%; box-sizing: border-box; }
.step label.lf { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dims input { text-align: center; }
.step .seg { align-self: flex-start; }
