.wv-gallery{margin:3rem 0;scroll-margin-top:5rem}
.wv-gallery-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.wv-gallery-cards>button{text-align:left;padding:18px;border:1px solid var(--rule);border-radius:6px;background:var(--paper);color:var(--body-ink);cursor:pointer;font:inherit;min-width:0}
.wv-gallery-cards strong{display:block;color:var(--link);font-size:16px;margin-bottom:6px}
.wv-gallery-cards span{display:block;font-size:13px;line-height:1.5;color:var(--muted)}
.wv-gallery-cards>button[aria-pressed=true]{border-color:var(--link);box-shadow:inset 3px 0 var(--link);background:color-mix(in srgb,var(--link) 7%,var(--paper))}
.wv-gallery button:focus-visible,.wv-gallery input:focus-visible,.wv-gallery select:focus-visible{outline:2px solid var(--link);outline-offset:3px}
.wv-gallery-panel{margin-top:20px;padding:20px;border:1px solid var(--link);border-radius:6px;min-width:0}
.wv-gallery-panel>header{display:flex;align-items:start;justify-content:space-between;gap:20px}
.wv-gallery-panel h3{margin:0;font:650 26px/1.2 system-ui,sans-serif}
.wv-gallery-panel header p{max-width:75ch;font-size:14px;margin:10px 0}
.wv-gallery-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0}
.wv-gallery-controls label{display:flex;align-items:center;gap:6px;min-width:0;font-size:13px;flex-wrap:wrap}
.wv-gallery-panel :is(button,input,select){min-height:44px;font:14px/1.4 system-ui,sans-serif;max-width:100%}
.wv-gallery-panel :is(button,select,input[type=url],input[type=text]){border:1px solid var(--rule);border-radius:4px;padding:8px 12px;background:var(--paper);color:var(--body-ink)}
.wv-gallery-panel option{background:var(--paper);color:var(--body-ink)}
.wv-gallery-panel button{cursor:pointer}.wv-gallery-panel button:disabled{opacity:.55;cursor:default}
.wv-gallery-panel input[type=url],.wv-gallery-panel input[type=text]{width:min(580px,100%);min-width:0}
.wv-gallery-panel input[type=checkbox]{min-height:20px;width:20px;accent-color:var(--link)}
.wv-gallery-panel #capability-status{font-size:13px;min-height:1.6em;overflow-wrap:anywhere}
.wv-gallery-stage{height:560px;min-height:360px;border:1px solid var(--rule);border-radius:5px;overflow:hidden;position:relative;min-width:0;background:var(--paper)}
.wv-gallery-stage>.wv-gallery-pane{height:100%;min-width:0;min-height:0}
.wv-gallery-stage.is-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.wv-gallery-stage.is-split>.wv-gallery-pane+*{border-left:1px solid var(--rule)}
.wv-gallery-stage iframe{width:100%;height:100%;border:0;display:block}
.wv-gallery-stage.is-info{height:auto;min-height:220px;padding:20px;overflow:auto}
.wv-gallery-stage.is-info p{max-width:85ch}.wv-gallery-stage.is-info li{margin:10px 0}
.wv-gallery-layers{max-height:170px;overflow:auto;display:flex;flex-wrap:wrap;gap:8px;padding:10px;flex-basis:100%;border:1px solid var(--rule)}
.wv-gallery-layers label{min-width:120px}.wv-gallery-stage canvas{max-width:100%}
@media(max-width:850px){.wv-gallery-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.wv-gallery-cards{grid-template-columns:minmax(0,1fr)}.wv-gallery-panel{padding:12px}.wv-gallery-panel>header{flex-wrap:wrap}.wv-gallery-stage{height:540px}.wv-gallery-stage.is-split{height:740px;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}.wv-gallery-stage.is-split>.wv-gallery-pane+*{border-left:0;border-top:1px solid var(--rule)}.wv-gallery-controls>button{flex:1 1 130px}.wv-gallery-controls label{flex-basis:100%}.wv-gallery-controls select{min-width:0;width:100%}.wv-gallery-panel input[type=url],.wv-gallery-panel input[type=text]{width:100%}}
