html { scroll-behavior:auto; }
#dataset-skin-glass { scroll-margin-top:74px; }
@media (min-width:851px) {
  #dataset-skin-glass + .vg-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.video-gallery .section-heading { margin-bottom:26px; }
.vg-toolbar { padding-bottom:22px; border-bottom:1px solid var(--line); }
.vg-datasets { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:17px; }
.vg-dataset-button { padding:9px 13px; background:transparent; border:1px solid transparent; border-radius:2px; font-size:12px; color:var(--muted); cursor:pointer; }
.vg-dataset-button:hover { color:var(--ink); background:var(--surface-muted); }
.vg-dataset-button[aria-pressed="true"] { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
.vg-search { display:block; max-width:600px; }
.vg-search input { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:2px; background:var(--surface); color:var(--ink); font:inherit; font-size:13px; }
.vg-search input::placeholder { color:var(--muted); opacity:1; }
.vg-search input:hover { border-color:var(--line-strong); }
.vg-search input:focus-visible,.vg-prompt:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.vg-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.vg-status { color:var(--muted); font-size:13px; line-height:1.5; }
.vg-status:not(:empty) { margin-top:24px; }
.vg-dataset { margin-top:36px; scroll-margin-top:80px; }
.vg-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; align-items:start; }
.vg-dataset-title { margin:0 0 18px; font:500 27px/1.2 var(--font-sans); letter-spacing:-.5px; }
.vg-row { background:var(--surface); border:1px solid var(--line); border-radius:3px; min-width:0; overflow:hidden; }
.vg-row:focus-within { border-color:var(--line-strong); }
.vg-row-head { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px; padding:12px 12px 14px; }
.vg-row-head :is(h2,h3,h4) { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; margin:0; font-family:var(--font-sans); font-size:14px; font-weight:600; letter-spacing:normal; line-height:1.45; overflow-wrap:anywhere; }
.vg-edited { color:var(--accent); font-size:10px; white-space:nowrap; }
.vg-panels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0 12px 12px; }
.vg-panel { min-width:0; }
.vg-render-panel { padding:12px 12px 0; }
.vg-graph-panel .vg-caption a { display:none; }
.vg-caption { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:9px; font-size:10px; line-height:1.4; color:var(--muted); font-weight:500; letter-spacing:.01em; }
.vg-caption a { text-transform:none; font-size:10px; font-weight:400; letter-spacing:0; }
.vg-media { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:2px; background:var(--surface-muted); }
.vg-image-link { display:block; }
.vg-prompt { width:100%; max-height:130px; overflow:auto; padding:10px; border-radius:2px; background:var(--surface-muted); }
.vg-prompt blockquote { margin:0; font:400 12px/1.5 var(--font-sans); color:var(--muted); overflow-wrap:anywhere; }
.vg-edit-note { margin-top:9px; font-size:12px; line-height:1.5; color:var(--muted); }
.vg-video-footer { margin-top:9px; color:var(--muted); font-size:10px; line-height:1.45; }
video.vg-media { cursor:pointer; }
video.vg-media:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.vg-play { padding:5px 10px; border:1px solid var(--line); border-radius:2px; background:transparent; color:var(--accent); font-size:11px; cursor:pointer; }
.vg-play:hover,.vg-download:hover { border-color:var(--accent); color:var(--accent); }
.vg-graph-link { position:relative; display:block; border-radius:2px; overflow:hidden; background:#1d1d1d; }
.vg-graph-link .vg-media { background:#1d1d1d; }
.vg-graph-hint { position:absolute; bottom:5px; right:5px; padding:3px 5px; border-radius:3px; font-size:10px; background:var(--paper); color:var(--ink); }
.vg-graph-footer { display:flex; justify-content:flex-start; margin-top:9px; }
.vg-download { color:var(--accent); display:inline-flex; justify-content:center; padding:7px 6px; border:1px solid var(--line); border-radius:2px; font-size:10px; line-height:1.4; }
.vg-dialog { width:min(96vw,1500px); height:90vh; max-width:none; max-height:none; padding:0; border:1px solid var(--line); border-radius:3px; background:#1d1d1d; }
.vg-dialog::backdrop { background:#24272bb8; }
.vg-dialog-head { height:64px; display:flex; align-items:center; gap:18px; padding:12px 20px; background:var(--paper); color:var(--ink); }
.vg-dialog-head strong { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; font-weight:550; }
.vg-dialog-head a { font-size:11px; white-space:nowrap; }
.vg-dialog-head button { padding:7px 11px; border:1px solid var(--line); border-radius:2px; color:var(--ink); background:transparent; font-size:12px; cursor:pointer; }
.vg-zoom-label { display:flex; align-items:center; gap:8px; font-size:11px; }
.vg-zoom-label input { width:100px; accent-color:var(--accent); }
.vg-graph-viewport { height:calc(100% - 64px); overflow:auto; padding:16px; }
.vg-graph-viewport img { max-width:none; height:auto; margin:auto; }
@media(max-width:1100px) {
  .vg-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:850px) {
  .vg-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .vg-dataset-button { font-size:11px; padding:8px 10px; }
  .vg-dialog-head { padding:10px; gap:10px; }
  .vg-dialog-head a { display:none; }
}
@media(max-width:560px) {
  .vg-cards { grid-template-columns:minmax(0,1fr); }
  .vg-zoom-label input { width:65px; }
  .vg-dataset-title { font-size:25px; }
}
.gallery-navigation { position:sticky; top:0; z-index:5; display:flex; justify-content:center; gap:30px; padding:17px 12px; margin-top:48px; border-bottom:1px solid var(--line); background:var(--paper); color:var(--ink); font-size:13px; font-weight:500; }
.gallery-navigation a { text-align:center; }
.gallery-navigation span { margin-left:5px; }
.gallery-navigation + .gallery-section { margin-top:0; border-top:0; }
.video-gallery { scroll-margin-top:64px; }
.vg-back { display:inline-block; margin-top:28px; color:var(--accent); font-size:12px; }
.gallery-page-section.video-gallery { margin-top:24px; padding-top:0; border-top:0; }
.gallery-page-section h1 { font:500 clamp(28px,3.5vw,42px)/1.15 var(--font-sans); letter-spacing:-.6px; }
.site-header nav [aria-current="page"] { color:var(--accent); text-decoration:underline; text-underline-offset:5px; }
