/* Adapted read-only from the user local DSO collection.css. See gallery-reference/reuse.json. */

:root{color-scheme:light;--edge:clamp(20px,2.2vw,72px);--paper:#f2f0ea;--ink:#202a26;--line:#ced1c8;--muted:#626c64;--accent:#375649}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{color:var(--ink);font-family:Geist,'Microsoft YaHei',sans-serif;background:var(--paper)}a{color:inherit;text-decoration:none}button{color:inherit;font:inherit;cursor:pointer;border:0;background:none}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}svg{display:block;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.collection{position:relative;display:grid;grid-template-columns:clamp(210px,18vw,570px) minmax(0,1fr);gap:clamp(24px,3.4vw,116px);height:100dvh;padding:var(--edge);overflow:hidden}.directory{min-height:0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:clamp(12px,1vw,32px);width:fit-content;margin-bottom:clamp(30px,3vh,65px)}.brand img{width:clamp(52px,3.5vw,110px);filter:brightness(0)}.brand>span{font-size:clamp(21px,1.6vw,45px);letter-spacing:.05em}.brand small{display:block;font:clamp(7px,.56vw,15px) Mono;letter-spacing:.16em;margin-top:6px;color:var(--muted)}.section-label{font:clamp(9px,.6vw,17px) Mono;letter-spacing:.07em;color:var(--accent)}.index-label{display:flex;justify-content:space-between;padding-bottom:clamp(12px,1.2vh,24px);border-bottom:1px solid var(--line)}#styles{display:grid;align-content:start;min-height:0;overflow:auto;scrollbar-width:thin;margin-top:4px}.version{display:grid;grid-template-columns:clamp(22px,1.7vw,50px) minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;border-bottom:1px solid var(--line);padding:clamp(12px,2.1vh,38px) 9px;transition:background .2s,transform .2s}.version:hover{background:#e5e7df;transform:translateX(2px)}.version[aria-current=true]{background:#dfe3da;box-shadow:inset 2px 0 var(--accent)}.version .number{font:clamp(9px,.58vw,16px) Mono;color:var(--muted)}.version strong{font-weight:450;font-size:clamp(16px,1.15vw,32px);letter-spacing:-.025em;display:block}.version small{font-size:clamp(9px,.6vw,16px);display:block;color:var(--muted);margin-top:6px}.tag{font:clamp(8px,.5vw,14px) Mono;color:var(--accent)}.previous{display:flex;justify-content:space-between;font-size:clamp(10px,.65vw,18px);padding:clamp(17px,2.1vh,35px) 8px;color:var(--ink)}.directory-foot{margin-top:auto;padding-top:16px;font:clamp(8px,.5vw,14px) Mono;color:var(--muted);letter-spacing:.06em}
.stage{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:clamp(59px,7vh,135px)}.title-group{display:flex;align-items:baseline;gap:clamp(15px,1.3vw,44px);flex-direction:row-reverse}h1{font-size:clamp(32px,3vw,86px);font-weight:400;letter-spacing:-.06em;line-height:1.05;margin:0}.title-group .section-label{font-size:clamp(9px,.6vw,17px)}.stage-actions{display:flex;align-items:center;gap:clamp(15px,1.5vw,46px);flex-shrink:0}.quiet-action,.glass-action{display:flex;align-items:center;gap:12px;font-size:clamp(11px,.7vw,21px);white-space:nowrap}.quiet-action{color:var(--muted);padding:12px 0}.quiet-action:hover{color:var(--ink)}.quiet-action span{font-size:1.5em}.glass-action{padding:clamp(10px,.8vw,22px) clamp(15px,1.1vw,32px);border:1px solid #abb4a6;border-radius:100px;background:#e9ebe3;backdrop-filter:blur(12px);transition:background .2s}.glass-action:hover{background:#dfe3da}.glass-action svg{width:1.15em;height:1.15em}.description{font-size:clamp(11px,.7vw,21px);line-height:1.6;color:var(--muted);margin:clamp(9px,1.2vh,23px) 0 clamp(17px,2vh,38px);max-width:95ch}
.preview-slot{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;position:relative}.preview{position:relative;overflow:hidden;border:1px solid #bec5b9;box-shadow:0 15px 55px #202a2614;max-width:100%;max-height:100%}.preview iframe{position:absolute;top:0;left:0;width:1600px;height:900px;border:0;transform-origin:0 0;background:transparent}.exit-fullscreen{display:none}.loading{position:absolute;inset:0;display:flex;gap:12px;align-items:center;justify-content:center;pointer-events:none;background:#101e2566;color:#f1f4ee;backdrop-filter:blur(8px);font-size:13px;opacity:0;transition:opacity .18s}.preview[data-loading=true] .loading{opacity:1}.loading span{width:15px;height:15px;border:1px solid #fff3;border-top-color:#f1f4ee;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.scene-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-top:clamp(15px,2vh,34px)}.scene-bar nav{display:flex;gap:clamp(22px,2.5vw,74px)}.scene-bar button{position:relative;padding:7px 0 13px;font-size:clamp(11px,.75vw,22px);color:var(--muted)}.scene-bar button span{font:clamp(8px,.55vw,15px) Mono;margin-right:9px;opacity:.5}.scene-bar button[aria-pressed=true]{color:var(--ink)}.scene-bar button:after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .25s}.scene-bar button[aria-pressed=true]:after{transform:scaleX(1)}#scope{font:clamp(8px,.56vw,15px) Mono;letter-spacing:.05em;color:var(--muted)}
/* Fullscreen keeps the selected map edge to edge; one icon is the only outer control. */
.preview-slot.is-expanded{position:fixed;inset:0;z-index:20;width:100vw;height:100dvh;background:transparent;display:block}
.is-expanded .preview{width:100%!important;height:100%!important;max-height:none;border:0;box-shadow:none}
.is-expanded iframe{width:100%;height:100%;transform:none!important}
.is-expanded .exit-fullscreen{display:grid;place-items:center;position:absolute;right:12px;top:12px;z-index:3;width:38px;height:38px;padding:9px;border:1px solid #ffffff40;border-radius:50%;background:linear-gradient(140deg,#f4fcff16,#12262f12);backdrop-filter:blur(8px);color:white;transition:background .2s,transform .2s}
.exit-fullscreen svg{width:20px;height:20px;filter:drop-shadow(0 1px 2px #10212a80)}
.exit-fullscreen:hover{background:#eefaff2b;transform:scale(1.05)}
.is-expanded .exit-fullscreen:focus-visible{outline-offset:-3px}
.version .tag{font:clamp(8px,.5vw,14px) Mono;color:var(--accent)}.version{padding-top:clamp(10px,1.45vh,27px);padding-bottom:clamp(10px,1.45vh,27px)}
@media(max-width:1050px){.collection{grid-template-columns:180px minmax(0,1fr);gap:22px}.title-group{display:block}.title-group .section-label{margin-bottom:7px}.tag{display:none}.quiet-action{display:none}.version{padding:14px 6px}.brand>span{font-size:18px}.brand img{width:43px}#scope{display:none}}
@media(max-width:700px){html,body{overflow:auto}.collection{display:flex;flex-direction:column;gap:14px;min-height:100dvh;height:auto;padding:18px}.directory{flex:none}.brand{margin:0 0 18px;gap:10px}.brand img{width:40px}.brand>span{font-size:18px}.index-label,.directory-foot{display:none}.previous{padding:12px 0 0;font-size:11px;width:fit-content;gap:12px}#styles{display:flex;overflow:auto;gap:7px;margin:0}.version{flex:none;display:block;padding:11px 16px;border:1px solid var(--line)}.version strong{font-size:13px}.version .number,.version small{display:none}.version[aria-current=true]{box-shadow:inset 0 -2px var(--accent)}.stage{min-height:0;display:flex;flex-direction:column}.heading{min-height:66px}.title-group .section-label{font-size:8px}h1{font-size:30px}.description{font-size:11px;margin:7px 0 17px}.preview-slot:not(.is-expanded){width:100%;aspect-ratio:16/9;flex:none}.scene-bar{padding-top:15px}.scene-bar nav{width:100%;justify-content:space-between;gap:5px}.scene-bar button{font-size:10px}.scene-bar button span{margin-right:4px}.glass-action{font-size:10px;padding:10px 13px;gap:7px}}

#styles{overflow-x:hidden}

.motion-settings{position:relative;font:12px Geist,'Microsoft YaHei',sans-serif;color:#202a26;flex-shrink:0;z-index:8}
.motion-settings summary{cursor:pointer;list-style:none;padding:10px 12px;border:1px solid #abb4a6;border-radius:6px;display:flex;align-items:center;gap:5px;white-space:nowrap;background:#f2f0ea}
.motion-settings summary::-webkit-details-marker{display:none}.motion-settings summary:after{content:'⌄';margin-left:6px}
.motion-menu{position:absolute;top:calc(100% + 8px);right:0;width:190px;padding:7px;border:1px solid #ced1c8;border-radius:8px;background:#f2f0ea;box-shadow:0 12px 36px #202a2624}
.motion-menu button{display:block;width:100%;padding:10px;text-align:left;border-radius:4px;font-size:12px}
.motion-menu button:hover{background:#e5e7df}.motion-menu button[aria-pressed=true]{background:#dfe3da;color:#375649}
.motion-menu p{font:10px Geist,'Microsoft YaHei',sans-serif;margin:9px 10px 6px;color:#626c64;line-height:1.5}


/* REALSPACE adaptations: shared full 1920x1080 canvas and retained bridge/state. */
@font-face{font-family:Geist;src:url('assets/fonts/geist.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Mono;src:url('assets/gallery/geist-mono.woff2') format('woff2');font-display:swap}
:root{--edge:clamp(26px,2.2vw,64px);--paper:#f2f0ea;--ink:#202a26;--muted:#626c64;--line:#d0d2c9;--accent:#375649;font-synthesis:none}
[hidden]{display:none!important}button,select,input{font:inherit}button{border-radius:0}body{line-height:1.45}
.collection{grid-template-columns:clamp(250px,18vw,400px) minmax(0,1fr);gap:clamp(28px,3.4vw,82px)}
.brand{gap:14px;margin-bottom:35px}.brand svg{width:34px;height:37px;flex:none;stroke-width:1.5}.brand>span{font-size:clamp(21px,1.48vw,30px);font-weight:550;letter-spacing:-.04em}.brand small{font-size:11px;letter-spacing:.14em;font-weight:400;margin-top:7px}
.section-label{font-size:12px}.index-label{padding-bottom:13px}.version{padding:23px 8px;grid-template-columns:28px minmax(0,1fr) 20px;gap:12px;min-height:96px}.version .number{font-size:12px}.version strong{font-size:clamp(24px,1.5vw,31px)}.version small{font-size:13px;line-height:1.55;margin-top:5px}.version .tag{font-size:12px;opacity:0}.version[aria-pressed=true]{background:#dfe3da;box-shadow:inset 2px 0 var(--accent)}.version[aria-pressed=true] .tag{opacity:1}.version .tag svg{width:15px;height:15px}.previous{font-size:14px;align-items:center;width:100%;text-align:left;margin-top:5px;padding:21px 8px}.previous>svg{width:15px;height:15px}.previous[aria-pressed=true]{color:var(--accent);background:#e3e7dd}.directory-note{padding:24px 8px 0;border-top:1px solid var(--line)}.directory-note>span{font:11px Mono;color:var(--muted);letter-spacing:.04em}.directory-note p{font-size:13px;line-height:1.7;color:var(--muted);margin:9px 0 0}.directory-foot{font-size:11px;line-height:1.6;padding-top:25px}
.stage{grid-template-areas:"heading" "description" "controls" "previews" "scenes" "footer";grid-template-rows:auto auto auto minmax(0,1fr) auto auto}
.heading{grid-area:heading;align-items:center;min-height:68px;gap:15px}.title-group{min-width:0;gap:clamp(14px,1.3vw,26px)}h1{font-size:clamp(40px,3.15vw,67px);text-transform:uppercase;white-space:nowrap}.title-group .section-label{font-size:12px;line-height:1.6;max-width:180px}.stage-actions{gap:18px}.quiet-action,.glass-action{font-size:13px;gap:9px}.quiet-action svg{width:18px;height:18px}.glass-action{padding:13px 19px}.glass-action svg{width:16px;height:16px}.description{grid-area:description;font-size:14px;margin:9px 0 20px;line-height:1.6;max-width:100ch}
#previews{grid-area:previews;display:grid;grid-template-columns:repeat(var(--columns,1),minmax(0,1fr));gap:22px;align-content:start;align-items:start;overflow:auto;min-height:0;scrollbar-width:thin;padding:1px 1px 12px}
#previews.single-mode{display:flex;align-items:center;justify-content:center;overflow:visible;padding:0}
.preview-card{min-width:0;width:100%}.single-mode .preview-card{display:flex;align-items:center;justify-content:center;height:100%;min-height:0}.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;font-size:14px}.preview-heading>span{display:flex;align-items:baseline;gap:9px}.preview-name{font-weight:550}.preview-heading small{font-size:12px;color:var(--muted)}.heading-actions{display:flex;gap:7px}.heading-actions button,.heading-actions a{padding:5px;display:grid;place-items:center}.heading-actions svg{width:16px;height:16px}.single-mode .preview-heading{display:none}
.frame-shell{position:relative;overflow:hidden;aspect-ratio:var(--ratio);border:1px solid #bec5b9;box-shadow:0 15px 55px #202a2614;flex:none;background:#eeeae0}
.frame-shell iframe{position:absolute;inset:0;border:0;transform-origin:0 0;background:#f2eee6}.frame-shell.is-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;aspect-ratio:auto!important;border:0;box-shadow:none;z-index:1000}.frame-shell.is-fullscreen iframe{width:100%!important;height:100%!important;left:0!important;top:0!important;transform:none!important}
.scene-bar{grid-area:scenes;padding-top:17px;gap:15px;align-items:flex-start}.scene-bar nav{gap:clamp(12px,1.1vw,23px);flex-wrap:wrap}.scene-bar button{font-size:13px;white-space:nowrap;padding:7px 0 11px}.scene-bar button span{font-size:11px;margin-right:7px}#frame-note{font:11px/1.5 Mono;letter-spacing:.03em;color:var(--muted);white-space:nowrap;padding-top:10px}
.workspace-foot{grid-area:footer;display:flex;justify-content:space-between;align-items:center;gap:15px;color:var(--muted);font-size:12px;margin-top:12px}.workspace-foot p{margin:0;min-height:18px}.workspace-foot a{display:flex;align-items:center;gap:7px;white-space:nowrap}.workspace-foot a:hover{color:var(--accent)}.workspace-foot svg{width:14px;height:14px}
#compare-controls{grid-area:controls;display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 20px;flex-wrap:wrap;font-size:13px}#selection{display:flex;gap:15px;flex-wrap:wrap}#selection label{display:flex;align-items:center;gap:7px;cursor:pointer}.compare-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.compare-row label{display:flex;align-items:center;gap:7px}.compare-row select{padding:5px 8px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}input[type=checkbox]{accent-color:var(--accent);width:14px;height:14px;margin:0}.compare-row button{font-size:12px;text-decoration:underline;text-underline-offset:3px}.compare-return{color:var(--accent)}
.exit-fullscreen:not([hidden]){position:fixed;right:12px;top:12px;z-index:1001;display:grid;place-items:center;width:38px;height:38px;padding:9px;border:1px solid #bdc5b8;border-radius:50%;background:#f2f0eaeb;backdrop-filter:blur(10px);color:#24302a;box-shadow:0 2px 14px #0002}.exit-fullscreen svg{width:20px;height:20px}.exit-fullscreen:hover{background:#fff}body.has-fullscreen{overflow:hidden}
.motion-settings{font-size:12px}.motion-settings summary{border-radius:4px;padding:9px 10px;background:transparent}.motion-menu{width:230px;border-radius:5px}.motion-menu button{font-size:13px;padding:11px 10px}.motion-menu p{font-size:11px;line-height:1.6}
.unavailable{padding:40px;text-align:center;color:var(--muted);font-size:14px}
@media(max-width:1600px){.title-group{display:flex;flex-direction:row-reverse;align-items:baseline;gap:16px}.title-group .section-label{font-size:12px;margin:0;max-width:170px}.heading{align-items:center}.heading h1{font-size:45px}.stage-actions{gap:13px}.description{margin-top:14px;margin-bottom:18px}.version{padding:21px 8px}.directory-note{padding-top:21px}.brand{margin-bottom:29px}}
@media(max-width:1150px){.collection{grid-template-columns:220px minmax(0,1fr);gap:25px;padding:24px}.brand>span{font-size:20px}.brand svg{width:28px;height:31px}.version strong{font-size:24px}.version small{font-size:12px}.heading{flex-wrap:wrap;gap:16px}.title-group{display:flex;flex-direction:row-reverse;align-items:baseline;gap:18px;width:100%;justify-content:flex-end}.stage-actions{width:100%;justify-content:flex-end}.stage-actions .quiet-action{display:flex}.heading h1{font-size:38px}.scene-bar nav{gap:12px}#frame-note{display:none}.directory-note p{font-size:12px}.description{font-size:13px;margin-bottom:15px}.directory-foot{font-size:10px}}
@media(max-width:700px){html,body{height:auto;overflow:auto}.collection{display:flex;height:auto;min-height:100dvh;padding:18px;gap:18px}.directory{display:block}.brand{margin-bottom:20px}.brand>span{font-size:22px}.brand small{font-size:10px}.directory-note,.directory-foot,.index-label{display:none}#styles{display:flex;gap:7px;overflow:auto}.version{display:block;min-height:0;flex:none;border:1px solid var(--line);padding:10px 13px}.version strong{font-size:15px}.version .number,.version small,.version .tag{display:none}.previous{width:fit-content;gap:17px;margin:0;padding:14px 0 0}.stage{display:flex;gap:0}.heading{min-height:0;flex-direction:column;align-items:stretch;gap:15px}.title-group{width:auto;display:block}.heading h1{font-size:38px}.stage-actions{gap:9px;justify-content:flex-start;flex-wrap:wrap}.quiet-action,.glass-action{font-size:12px}.glass-action{padding:10px 14px}.description{font-size:13px;margin:13px 0 18px}#previews.single-mode{min-height:0;aspect-ratio:16/9}.single-mode .preview-card{height:100%}#previews:not(.single-mode){overflow:visible}.scene-bar nav{justify-content:flex-start;gap:10px 18px}.scene-bar button{font-size:12px}.scene-bar button span{font-size:10px}.workspace-foot{font-size:11px}.compare-row{gap:10px}#selection{gap:10px}#compare-controls{font-size:12px}.motion-settings{font-size:12px}.motion-settings summary{padding:8px}.motion-menu{right:auto;left:0}.preview-heading{font-size:12px}.preview-heading small{font-size:10px}}


/* One continuous index; the number and name share their first text baseline. */
@media(min-width:701px){
  .directory{overflow:hidden}
  .brand{flex:none;margin-bottom:20px}
  .index-label{flex:none}
  #styles{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  .version{width:100%;min-height:60px;padding:6.5px 8px;grid-template-columns:28px minmax(0,1fr) 20px;gap:12px;align-items:baseline}
  .version .number{font:12px/26px Mono;color:var(--muted);font-variant-numeric:tabular-nums}
  .version .direction-label{min-width:0}
  .version strong{font-size:22px;line-height:26px;font-weight:450;white-space:nowrap}
  .version small{font-size:13px;line-height:18px;margin-top:2px;white-space:nowrap}
  .version .tag{align-self:start;margin-top:5px}
  .previous{flex:none;margin-top:8px;padding:15px 8px;border-top:1px solid var(--line)}
  .directory-foot{flex:none;margin-top:0;padding-top:14px;letter-spacing:.025em}
}

/* Static first-fold snapshots retain visual comparison without live GPU contexts. */
.frame-shell iframe[data-preview-kind="static"]{pointer-events:none}
.frame-shell iframe.is-warming{position:fixed!important;left:0!important;top:0!important;transform:scale(.001)!important;opacity:0!important;pointer-events:none!important;z-index:-1}
.resume-preview{position:absolute;inset:0;z-index:3;display:flex;align-items:flex-end;justify-content:flex-end;padding:14px;color:#202a26;font-size:12px;background:linear-gradient(transparent 80%,#202a2614);cursor:pointer}
.resume-preview::after{content:'';position:absolute;right:7px;bottom:7px;width:128px;height:29px;background:#f2f0eaf2;border:1px solid #b7bfb2;border-radius:4px;z-index:-1}
.resume-preview:hover::after{background:#fff}
.resume-preview:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.frame-shell[data-preview-state="queued"]{background:#e7e8e0}
.frame-shell[data-preview-state="queued"] .resume-preview{align-items:center;justify-content:center;background:none;color:var(--muted)}
.frame-shell[data-preview-state="queued"] .resume-preview::after{display:none}
@font-face{font-family:Geist;src:url('assets/fonts/realspace-cjk.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+2E80-9FFF,U+FF00-FFEF}
