:root{color-scheme:dark;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:#101b2b;color:#edf4ff}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at top,#1b3452,#101b2b 65%)}button,input{font:inherit}button{cursor:pointer;border:1px solid #385779;border-radius:13px;padding:13px 18px;background:#245c99;color:#fff;font-weight:750;min-height:48px}button:focus-visible,input:focus-visible,.card:focus-visible{outline:3px solid #f4c45c;outline-offset:3px}.subtle{background:#24364d;color:#dceaff}.shell{max-width:1280px;margin:auto}header{padding:18px 4%;display:flex;align-items:center;gap:22px;background:#142238;border-bottom:1px solid #304760;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px;min-width:175px}.mark{display:grid;place-items:center;background:#2868a8;color:#fff;border-radius:15px;width:48px;height:48px;font-size:30px;font-weight:900}.brand strong,.brand span{display:block;letter-spacing:.14em}.brand span{font-size:12px;color:#a9c7e5}nav{display:flex;gap:7px;flex:1;flex-wrap:wrap}nav button{background:transparent;color:#b8cce2;border-color:transparent}nav button.active{background:#294a6d;color:#fff;border-color:#426b94}main{padding:25px 4% 42px}.hero{background:linear-gradient(120deg,#1d3e61,#172b43);padding:30px;border-radius:22px;border:1px solid #385b7e}.eyebrow{font-size:12px;font-weight:850;color:#9bc9f4;letter-spacing:.17em;margin:0}.hero h1{font-size:clamp(42px,7vw,68px);line-height:1;margin:14px 0}.hero p{color:#c2d6ea;line-height:1.5}.homeStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.homeStats div{background:#102239;border:1px solid #365675;border-radius:14px;padding:14px}.homeStats small,.homeStats strong{display:block}.homeStats small{color:#91b5d5;margin-bottom:7px}.homeStats strong{font-size:16px}.topactions,.playactions{display:flex;gap:10px;flex-wrap:wrap}.toolbar{display:flex;align-items:center;justify-content:space-between;margin-top:28px;gap:15px}.toolbar h2{font-size:23px}.upload{background:#245c99;color:#fff;border-radius:12px;padding:14px 19px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;min-height:48px}.feedback{color:#a9c9e8;min-height:22px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.card{background:#172a40;border:1px solid #34516f;border-radius:16px;overflow:hidden;text-align:left;color:#edf4ff;padding:0;width:100%;min-width:0}.card:hover{border-color:#82b8eb;transform:translateY(-2px)}.poster{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#203a57}.filetile{height:125px;display:grid;place-items:center;background:linear-gradient(135deg,#254e77,#172b43);font-size:19px;font-weight:900;letter-spacing:.1em;color:#c4e1ff}.cardbody{padding:13px}.card strong{display:block;line-height:1.3;overflow-wrap:anywhere}.card small{display:block;color:#9bb6d1;margin-top:8px}.guide{padding:24px;background:#172a40;border:1px dashed #53789d;border-radius:18px;margin-top:24px}.guide p{color:#b4c9df;line-height:1.5}footer{text-align:center;color:#8ba6c2;padding:24px}dialog{border:1px solid #45617e;border-radius:20px;width:min(900px,96vw);max-height:94vh;overflow:auto;padding:20px;background:#14243a;color:#edf4ff;box-shadow:0 20px 90px #000b}dialog::backdrop{background:#030914dd}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialoghead h2{overflow-wrap:anywhere}.largephoto{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:10px auto}video{display:block;background:#000;width:100%;max-height:60vh;border-radius:10px}#viewerStatus{color:#b9d9f6;font-weight:700}@media(max-width:600px){header{gap:10px}.brand{min-width:130px}nav{order:3;width:100%}nav button{flex:1;padding:10px}.homeStats{grid-template-columns:1fr}.hero{padding:22px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cardbody{padding:10px}.toolbar h2{font-size:18px}}.zoomstage{width:100%;height:min(68vh,720px);overflow:hidden;display:flex;align-items:center;justify-content:center;background:#050a12;border-radius:12px;touch-action:none;user-select:none}.zoomimage{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center center;will-change:transform;pointer-events:none}.mediaplayer{display:block;width:100%;max-height:68vh;background:#000;border-radius:12px}#viewer{touch-action:pan-y}#viewer .dialoghead{position:sticky;top:0;background:#14243a;z-index:2}
.gallery-controls{display:grid;gap:12px;margin:12px 0 20px}.gallery-switch{display:flex;gap:8px}.gallery-switch button{flex:1}.gallery-path{display:flex;align-items:center;gap:12px;color:#b9d9f6;font-weight:700}.gallery-switch button.active{background:#294a6d;border-color:#82b8eb}.gallery-path span{overflow-wrap:anywhere}/* Neural Band continuous pinch-drag is enabled only over the media surface. */
.media-gesture-stage{position:relative;width:100%;height:min(68vh,720px);min-height:260px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#050a12;border-radius:12px;touch-action:none;user-select:none}
.photo-stage .largephoto{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center center;will-change:transform;pointer-events:none}
.video-stage{display:block}
.video-stage .mediaplayer{width:100%;height:100%;max-height:100%;object-fit:contain}
.band-gesture-surface{position:absolute;z-index:3;inset:0 0 25% 0;background:transparent;touch-action:none;user-select:none}

.media-test-panel{margin:22px 0;padding:22px;background:#172a40;border:1px solid #45617e;border-radius:18px}
.media-test-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.media-test-head h2{margin:0;font-size:22px}
.media-test-panel>p{color:#b9cfe5;line-height:1.5}
.media-test-surface{min-height:240px;display:grid;place-items:center;text-align:center;border:2px dashed #79a9d4;border-radius:16px;background:#0d1c2d;color:#d8ebff;font-weight:850;letter-spacing:.12em;touch-action:none;user-select:none;-webkit-user-select:none}
.media-test-surface:focus{outline:3px solid #f4c45c;outline-offset:3px}
.media-test-log{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;padding:12px;background:#0b1725;border-radius:10px;color:#9fc8ed;font-size:12px}
/* Fixed carousel viewport with a stationary center selection window. */
header nav{order:2;position:relative;display:flex;align-items:center;flex:0 0 100%;width:100%;min-width:0;min-height:62px;flex-wrap:nowrap;gap:12px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x mandatory;padding:6px calc(50% - 54px);scroll-behavior:smooth;touch-action:pan-x}
header nav::-webkit-scrollbar{display:none}
header nav button{position:relative;z-index:1;flex:0 0 108px;width:108px;min-width:108px;white-space:nowrap;scroll-snap-align:center;transition:opacity .15s ease;opacity:.55;background:transparent;color:#b8cce2;border-color:transparent}
header nav button.active,header nav button:focus-visible{opacity:1;background:#294a6d;color:#fff;border-color:#82b8eb}
header nav::after{content:"";position:absolute;z-index:3;left:50%;top:4px;bottom:4px;width:108px;transform:translateX(-50%);border:2px solid #9bc9f4;border-radius:14px;box-shadow:0 0 12px #5da7e866;pointer-events:none}



