.svg-gallery { padding-block: 40px 25px; }
.svg-gallery .section-heading { margin-bottom: 18px; }
.svg-gallery .section-heading > p { max-width: 350px; font-size: 13px; }
.svg-gallery-controls { margin-bottom: 18px; }
.svg-gallery-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.svg-gallery-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 68px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fffcf3; font-size: 12px; font-weight: 650; }
.svg-gallery-tab img { width: 48px; height: 48px; object-fit: contain; }
.svg-gallery-tab[aria-selected="true"] { color: var(--cream); background: var(--ink); border-color: var(--ink); box-shadow: inset 0 -3px #bda060; }
.svg-gallery-tab:hover { border-color: var(--brass); }
.svg-result { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.svg-result + .svg-result { margin-top: 30px; }
.svg-gallery.is-enhanced .svg-result { margin-top: 0; }
.svg-result-art { height: 500px; padding: 86px 34px 64px; }
.svg-image-frame { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; }
.svg-image-frame img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.svg-result-copy { display: flex; flex-direction: column; min-width: 0; height: 440px; padding: 20px 0 20px 24px; border-left: 2px solid #c4b276; }
.svg-result-copy h3 { margin: 7px 0 10px; font: 30px/1.2 Georgia, serif; letter-spacing: -.6px; }
.svg-result-description { font-size: 14px; color: var(--muted); }
.svg-result-meta { font-size: 11px; color: var(--muted); margin: 12px 0 18px; }
.svg-prompt-label { font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.svg-prompt-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-gutter: stable; scrollbar-color: #8fa27f #e4e9d8; background: #eceee2; border-radius: 6px; padding: 14px; }
.svg-prompt-scroll:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.svg-exact-prompt { margin: 0; font: 12px/1.7 "Segoe UI", Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.svg-run-note { margin-top: 16px; color: var(--muted); font-size: 11px; }
@media (max-width: 900px) {
  .svg-result { gap: 22px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .svg-result-art { padding-inline: 24px; }
  .svg-result-copy { padding-left: 18px; }
  .svg-result-copy h3 { font-size: 26px; }
}
@media (max-width: 660px) {
  .svg-gallery { padding-top: 30px; }
  .svg-gallery .section-heading h2 { max-width: none; }
  .svg-gallery-tab { flex-direction: column; gap: 4px; padding: 7px 3px; font-size: 11px; min-height: 78px; }
  .svg-gallery-tabs { gap: 7px; }
  .svg-gallery-tab img { width: 42px; height: 42px; }
  .svg-result { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svg-result-art { height: 340px; max-width: 460px; width: 100%; margin-inline: auto; padding: 64px 22px 48px; }
  .svg-result-copy { height: 320px; padding: 14px 0 0 16px; }
  .svg-result-copy h3 { font-size: 27px; }
  .svg-result-meta { margin-block: 8px 14px; }
  .svg-result-description { font-size: 13px; }
}
