/* «Grafiche»: generatore di banner, grafiche social, immagini per il sito e stampati */
.gx { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.gx-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.1rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.gx-form h2 { margin: 1.3rem 0 .7rem; font-size: 1rem; } .gx-form h2:first-child { margin-top: 0; }
.gx-form input[type="text"], .gx-form textarea, .gx-form select, .gx-save input { width: 100%; }
.gx-two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.gx-color { width: 100%; height: 44px; padding: 2px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); cursor: pointer; }
.gx-styles { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: 1rem; }
.gx-style { display: grid; gap: .1rem; min-height: 56px; padding: .5rem .65rem; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gx-style b { font-size: .88rem; } .gx-style small { font-size: .74rem; color: var(--muted); line-height: 1.25; }
.gx-style.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gx-style:focus-visible, .gx-prop:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gx-ai { margin: .2rem 0 1rem; padding: .7rem .8rem; border: 1px dashed var(--line2); border-radius: 12px; }
.gx-ai summary { cursor: pointer; font-weight: 700; font-size: .9rem; } .gx-ai[open] summary { margin-bottom: .8rem; }
.gx-props { display: grid; gap: .45rem; margin-top: .8rem; }
.gx-prop { display: grid; gap: .15rem; padding: .6rem .7rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gx-prop span { font-size: .86rem; color: var(--ink2); } .gx-prop small { font-size: .76rem; color: var(--muted); } .gx-prop:hover { border-color: var(--ink); }
.gx-save { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.gx-out { display: grid; gap: 2rem; min-width: 0; }
.gx-pack__head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: .9rem; }
.gx-pack__head h2 { margin: 0; font-size: 1.15rem; } .gx-pack__head p { margin: .2rem 0 0; max-width: 60ch; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; align-items: start; }
.gx-item { display: grid; gap: .55rem; justify-items: start; padding: .8rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.gx-item.is-off { opacity: .6; }
.gx-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; cursor: pointer; }
.gx-item__head input { width: 1.1rem; height: 1.1rem; }
.gx-item__cv { width: 100%; padding: .5rem; border-radius: 10px; background: repeating-conic-gradient(#e9ebf0 0 25%, #f6f7f9 0 50%) 0 0 / 16px 16px; }
.gx-cv { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; margin: 0 auto; box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.gx-warn { margin: 0; color: #8c2318; font-weight: 600; }
.gx-item:has(.gx-cv[style*="aspect-ratio: 728"]), .gx-item:has(.gx-cv[style*="aspect-ratio: 970"]), .gx-item:has(.gx-cv[style*="aspect-ratio: 1584"]), .gx-item:has(.gx-cv[style*="aspect-ratio: 1200 / 300"]), .gx-item:has(.gx-cv[style*="aspect-ratio: 320"]) { grid-column: 1 / -1; }
.gx-saved { display: grid; gap: .5rem; }
.gx-saved__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; }
.gx-saved__row p { margin: 0; } .gx-dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid var(--line2); }
@media (max-width: 900px) { .gx { grid-template-columns: 1fr; } .gx-side { position: static; max-height: none; } }
