:root{color-scheme:light;--bg:#f8f9f6;--ink:#202822;--muted:#7b827c;--line:#e4e7df;--green:#c4e595;--dark:#141c18;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input,select{font:inherit}button,select{cursor:pointer}button{transition:background .15s,transform .15s}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #82a65b;outline-offset:4px}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}.sidebar{width:248px;background:var(--dark);color:#edf0e9;position:fixed;inset:0 auto 0 0;padding:35px 22px 25px;display:flex;flex-direction:column}.brand{font-size:28px;letter-spacing:-1.4px;font-weight:700;color:inherit;text-decoration:none;display:flex;align-items:center;margin-bottom:57px}.brand-mark{font-size:29px;color:var(--green);margin-right:10px}.brand-dot{color:var(--green)}.library-label,.folder-heading{font-size:10px;letter-spacing:1.5px;color:#88968c;display:flex;align-items:center;justify-content:space-between}.icon-button{background:none;border:0;color:#a2ada5;font-size:22px;padding:3px 7px}.all-photos{display:flex;justify-content:space-between;gap:8px;width:100%;border:0;background:transparent;color:#e4e9e3;border-radius:8px;padding:13px 12px;margin-top:13px;text-align:left}.all-photos.active{background:#2a392b;color:#d3eeb3}.all-photos>span:last-child{font-size:11px;padding:2px 7px;border-radius:5px;background:#ffffff10}.folder-heading{margin:34px 8px 15px}.text-button{border:0;background:none;color:inherit;font-size:12px;padding:4px}.folders{overflow:auto;flex:1;min-height:70px;scrollbar-width:thin}.sidebar-hint{font-size:12px;line-height:1.7;color:#8c998f;padding:0 8px}.folder-row{display:flex;align-items:center;gap:9px;padding:10px 7px;color:#b8c3ba;cursor:pointer;border-radius:6px;font-size:12px}.folder-row:hover{background:#ffffff09}.folder-row:has(input:checked){color:#d3eeb3;background:#c4e5950b}.folder-row input{accent-color:var(--green);flex-shrink:0;margin:0;width:14px;height:14px}.folder-row .folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-row .folder-count{margin-left:auto;font-size:10px;color:#91a08f}.sidebar-bottom{margin-top:30px;border-top:1px solid #ffffff12;padding:23px 6px 0;font-size:11px;color:#b4beb6}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b5da89;margin-right:7px}.sidebar-bottom p{color:#6f8174;font-size:11px;margin-bottom:0}main{margin-left:248px;padding:0 44px;max-width:2200px}header{height:93px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 13px;color:#b3b9b0}.breadcrumb strong{font-weight:500;color:var(--ink)}.button{border:1px solid transparent;border-radius:7px;padding:12px 18px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.button-light{border-color:#dce1d6;background:#fff}.button-light>span{font-size:19px;line-height:12px}.button-primary{background:var(--green);color:#273820;padding:14px 21px}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:47px 0 32px}.eyebrow{color:#849176;font-size:10px;font-weight:700;letter-spacing:2px;margin-bottom:14px}h1{font-size:clamp(25px,3vw,38px);letter-spacing:-1.3px;font-weight:550;margin:0 0 12px}.intro p{color:var(--muted);font-size:13px;margin:0}.playback-settings{display:flex;align-items:center;gap:28px;background:#eef1e9;border:1px solid #e2e8da;border-radius:10px;padding:23px 24px}.settings-title{display:flex;align-items:center;gap:13px;margin-right:auto;min-width:180px}.setting-symbol{display:grid;place-items:center;font-size:29px;width:40px;height:40px;border-radius:50%;background:#e0e8d5;color:#6d8159}.settings-title strong{font-size:12px;font-weight:600}.settings-title small{display:block;color:#8a9281;font-size:10px;margin-top:5px}.playback-settings>label:not(.switch-label){display:flex;flex-direction:column;gap:7px;font-size:10px;color:#75816e}select{border:1px solid #dce2d5;border-radius:5px;background:#fcfdf9;color:#46533e;font-size:11px;padding:9px 26px 9px 10px;min-height:34px}.switch-label{display:flex;align-items:center;gap:9px;font-size:11px;cursor:pointer;position:relative}.switch-label input{position:absolute;opacity:0;width:32px;height:22px}.switch{width:31px;height:18px;border-radius:12px;background:#c9cfc2;padding:3px;pointer-events:none}.switch:after{content:"";display:block;background:white;width:12px;height:12px;border-radius:50%;transition:transform .15s}.switch-label input:checked+.switch{background:#789d55}.switch-label input:checked+.switch:after{transform:translateX(13px)}.switch-label input:focus-visible+.switch{outline:3px solid #82a65b;outline-offset:3px}.collection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:36px 0 23px}.collection-toolbar h2{font-size:18px;font-weight:550;letter-spacing:-.4px;margin:0 0 6px}.collection-toolbar #selection-summary{font-size:11px;color:var(--muted)}.collection-tools{display:flex;align-items:center;gap:10px}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:white;border-radius:6px;padding:7px 11px}.search>span{font-size:21px;color:#87917f;line-height:20px}.search input{border:0;outline:none;background:transparent;font-size:11px;width:180px;min-width:0;color:var(--ink)}.gallery{position:relative;width:100%;min-height:0}.photo-card{position:absolute;padding:0;border:0;background:white;text-align:left;overflow:hidden;border-radius:8px;box-shadow:0 1px 3px #27382012}.photo-card img{display:block;width:100%;height:calc(100% - 49px);object-fit:cover;background:#e9ede3;color:#65725b;font-size:12px}.photo-card .photo-info{height:49px;padding:9px 11px;overflow:hidden}.photo-card strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:500}.photo-card small{display:block;font-size:9px;margin-top:4px;color:#939b8d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-card:hover{transform:translateY(-2px);box-shadow:0 5px 15px #27382016}.empty{padding:60px 20px 72px;text-align:center;border:1px dashed #d9dfd1;border-radius:12px;background:#f1f4ec}.empty-icon{font-size:46px;color:#879c73;margin-bottom:20px}.empty h2{font-size:21px;font-weight:500;letter-spacing:-.5px}.empty p{color:var(--muted);font-size:12px;line-height:1.8;margin:0 auto 24px;max-width:430px}.empty small{display:block;color:#949d8b;font-size:10px;margin-top:19px}footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:25px 0;margin-top:35px;font-size:10px;color:#98a08f}.upload-progress{padding:17px;background:#e8f0df;border-radius:8px;margin-bottom:20px;font-size:12px}.upload-progress>div{display:flex;justify-content:space-between;gap:15px}progress{width:100%;height:6px;accent-color:#789d55;margin-top:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#273820;color:white;padding:15px 22px;border-radius:8px;box-shadow:0 5px 30px #0002;z-index:10;max-width:90vw;font-size:12px}dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;margin:0;padding:0;background:#080b09;color:#fff;overflow:hidden}dialog::backdrop{background:#080b09}#slide-image{width:100%;height:100%;object-fit:contain;display:block}#slide-error{position:absolute;top:45%;width:100%;text-align:center;color:#ccc;font-size:18px;line-height:2}#slide-error small{font-size:12px}.viewer-top,.viewer-bottom{position:absolute;left:0;right:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:25px 30px;background:linear-gradient(#0009,transparent)}.viewer-top{top:0}.viewer-top strong{font-size:14px;font-weight:500;display:block}.viewer-top span{display:block;font-size:11px;color:#ddd;margin-top:5px}.viewer-bottom{bottom:0;background:linear-gradient(transparent,#0009);gap:20px}.viewer-button{background:#ffffff12;color:white;border:1px solid #ffffff18;backdrop-filter:blur(12px);border-radius:50%;width:42px;height:42px;font-size:20px;display:inline-grid;place-items:center}.viewer-button[aria-pressed=true]{color:var(--green);background:#b7da8e26}.arrow{position:absolute;top:50%;transform:translateY(-50%);font-size:38px;width:48px;height:48px}.previous{left:24px}.next{right:24px}.viewer-controls{display:flex;gap:12px}#slide-count{font-size:12px;min-width:110px}.keyboard-hint{font-size:10px;color:#bbb}.viewer-top>div{max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:1500px){main{padding:0 65px}.intro{padding-top:55px;padding-bottom:40px}}
@media(max-width:1100px){.sidebar{width:210px;padding-left:16px;padding-right:16px}main{margin-left:210px;padding:0 26px}.playback-settings{gap:16px;padding:18px}.settings-title{min-width:0}.settings-title small{display:none}.setting-symbol{display:none}.search input{width:140px}}
@media(max-width:800px){.sidebar{width:180px;padding:25px 12px}.brand{font-size:25px}.brand-mark{font-size:25px}main{margin-left:180px;padding:0 20px}header{height:78px}.intro{flex-wrap:wrap;padding:30px 0 25px;gap:20px}.playback-settings{flex-wrap:wrap;gap:16px}.settings-title{width:100%}.collection-toolbar{align-items:flex-start;flex-direction:column}.collection-tools{width:100%}.search{flex:1}.search input{width:100%}.keyboard-hint{display:none}footer>span:first-child{display:none}}
@media(max-width:560px){.sidebar{position:relative;width:100%;padding:18px 20px;display:grid;grid-template-columns:1fr auto;gap:10px}.brand{margin:0;font-size:25px}.library-label,.folder-heading,.sidebar-bottom{display:none}.all-photos{width:auto;margin:0;align-items:center;font-size:12px}.folders{grid-column:1/-1;display:flex;gap:5px;overflow-x:auto;max-height:145px;flex-wrap:wrap;min-height:0}.folder-row{max-width:100%;padding:8px!important;background:#ffffff06}.sidebar-hint{margin:0}.folder-count{display:none}main{margin-left:0;padding:0 18px}header{height:66px}.intro{padding-top:27px}.intro h1{font-size:29px}.intro .button{width:100%}.playback-settings{padding:17px}.settings-title{margin-bottom:2px}.playback-settings>label:not(.switch-label){flex:1}.switch-label{width:100%}.collection-toolbar{margin-top:28px}.collection-tools{gap:7px}.search input{font-size:10px}select{max-width:100%}.empty{padding:35px 16px}.empty h2{font-size:19px}.viewer-top,.viewer-bottom{padding:18px}.arrow{width:37px;height:37px}.previous{left:10px}.next{right:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.settings-section{margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:9px;background:#eef1e9}.settings-section h3{margin:0 0 12px;font-size:15px;font-weight:600}.settings-section .button{max-width:100%;white-space:normal;text-align:center;min-height:44px}#video-update-status:empty{display:none}#open-settings,#close-settings{min-height:44px}
.saved-shows{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin-top:20px}.saved-shows>label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted)}.saved-shows select{min-width:220px;max-width:340px}.saved-shows form{display:flex;gap:8px;flex:1;justify-content:flex-end}.saved-shows input{min-width:0;width:180px;border:1px solid var(--line);border-radius:6px;padding:10px;font-size:11px;background:white}.saved-shows #show-status{width:100%;font-size:11px;color:var(--muted)}.saved-shows #show-status:empty{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.viewer-details-button{position:absolute;bottom:87px;right:30px;border:1px solid #ffffff30;color:white;background:#18201abf;border-radius:7px;padding:10px 14px;font-size:12px}.photo-details{inset:0;margin:auto;width:min(460px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 32px);overflow:auto;background:var(--bg);color:var(--ink);border-radius:12px;padding:26px;box-shadow:0 20px 80px #0008}.photo-details::backdrop{background:#0009}.photo-details h2{margin:0 0 10px;font-size:21px}.photo-details p{font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:var(--muted)}.photo-details label{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:12px}.photo-details input[type=checkbox]{accent-color:#789d55}.photo-details input:not([type=checkbox]),.photo-details textarea{border:1px solid var(--line);border-radius:6px;padding:10px;font:inherit;width:100%;background:white;color:var(--ink)}.photo-details small{color:var(--muted);font-size:10px}.details-actions{display:flex;justify-content:flex-end;gap:10px}
@media(max-width:800px){.saved-shows form{justify-content:flex-start}.saved-shows>label,.saved-shows select{width:100%;max-width:none}.saved-shows input{flex:1}.viewer-details-button{right:18px}}
.bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 20px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#eef1e9}.bulk-toolbar label{display:flex;align-items:center;gap:7px;font-size:12px}.bulk-toolbar input,.photo-select input{accent-color:#789d55}.bulk-toolbar .button{padding:9px 12px}.bulk-toolbar #bulk-count{font-size:12px;color:var(--muted);margin-right:auto}.photo-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;text-align:left}.photo-select{position:absolute;top:8px;left:8px;display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:#fffdf5ed;cursor:pointer;box-shadow:0 1px 4px #0003}.photo-select input{width:18px;height:18px;margin:0;cursor:pointer}.photo-card.selected{outline:3px solid #789d55;outline-offset:-3px}.viewer-actions{position:absolute;bottom:87px;right:30px;display:flex;gap:10px;z-index:2}.viewer-actions .viewer-details-button{position:static}.photo-details select{width:100%}#slideshow-kind-hint{padding:10px;background:#eef1e9;border-radius:6px}.photo-open:focus-visible{outline-offset:-4px}@media(max-width:560px){.viewer-actions{right:18px;left:18px;justify-content:flex-end}.viewer-actions .viewer-details-button{padding:9px;font-size:11px}.bulk-toolbar .button{flex:1}.bulk-toolbar #bulk-count{margin-right:0}}
.login-panel{min-height:100dvh;display:grid;place-items:center;padding:28px;background:linear-gradient(135deg,#eef1e9,#f8f9f6)}.login-card{width:min(420px,100%);background:white;border:1px solid var(--line);border-radius:14px;padding:34px;box-shadow:0 12px 45px #2738200d}.login-card h1{font-size:29px}.login-card p,.login-card small{color:var(--muted);font-size:12px;line-height:1.6}.login-card label{display:flex;flex-direction:column;gap:8px;margin:20px 0;font-size:12px}.login-card input{border:1px solid var(--line);border-radius:6px;padding:12px;width:100%;color:var(--ink);background:white}.login-card .button{width:100%;margin-bottom:18px}#login-status{min-height:20px;color:#8a4235}.account-actions{display:flex;align-items:center;gap:12px}.account-actions #account-name{font-size:12px;color:var(--muted)}@media(max-width:560px){header{height:auto;min-height:66px;flex-wrap:wrap;gap:10px;padding:12px 0}.account-actions{gap:8px;flex-wrap:wrap}.account-actions .button{padding:9px}.login-card{padding:25px}}

.viewer-actions{flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 60px)}#remove-slideshow-conversion{padding:10px;background:#eef1e9;border-radius:6px}@media(max-width:560px){.viewer-actions{max-width:none}}

#fullscreen-status{position:absolute;left:18px;right:18px;bottom:145px;z-index:3;margin:0 auto;max-width:520px;padding:12px;border-radius:7px;background:#18201aee;color:white;font-size:12px;line-height:1.5;text-align:center}

.folder-view-label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#b8c3ba;margin:0 7px 12px}.folder-view-label select{width:100%;background:#26352a;color:#edf0e9;border-color:#3c4b3c}.folder-row{display:grid;grid-template-columns:20px 14px minmax(0,1fr) auto;gap:8px;padding:9px 7px 9px calc(7px + min(var(--folder-depth,0),6)*12px)}.folder-row.selected{color:#d3eeb3;background:#c4e5950b}.folder-expand,.folder-name{border:0;background:transparent;color:inherit;padding:0;text-align:left;font:inherit}.folder-expand{width:20px;height:24px;text-align:center;font-size:17px}.folder-expand-space{width:20px}.folder-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-browser{margin:0 0 22px;padding:16px;border:1px solid var(--line);border-radius:9px;background:#eef1e9}.folder-browser-header{display:flex;align-items:center;gap:12px}.folder-browser-header .button{padding:8px 12px}#folder-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}#folder-breadcrumb button{border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;padding:5px;max-width:100%;overflow-wrap:anywhere}#folder-breadcrumb button+button:before{content:'/';margin-right:10px;color:var(--muted)}#folder-breadcrumb button:disabled{opacity:1;font-weight:600}.folder-browser>p{font-size:11px;line-height:1.6;color:var(--muted);margin:12px 0}.folder-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.folder-card{display:grid;grid-template-columns:32px minmax(0,1fr);gap:5px 10px;align-items:center;padding:14px;border:1px solid #dce1d6;border-radius:7px;background:white;color:var(--ink);text-align:left}.folder-card-icon{grid-row:1/3;font-size:28px;color:#789d55}.folder-card strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-card small{font-size:10px;color:var(--muted)}@media(max-width:560px){.folder-heading{display:flex;grid-column:1/-1;margin:4px 0}.folder-view-label{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;margin:0}.folder-view-label select{width:145px}.folders{display:block;max-height:210px;min-height:0}.folder-row{width:100%;padding:8px 7px 8px calc(7px + min(var(--folder-depth,0),6)*12px)!important}.folder-count{display:block}.folder-browser{padding:12px}.folder-cards{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}}

.folder-row.flat{grid-template-columns:14px minmax(0,1fr) auto}.folder-row.flat .folder-name{white-space:normal;overflow-wrap:anywhere;line-height:1.5}

/* Viewer controls use fixed-size vector icons, independent of font metrics. */
.viewer-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;line-height:1;color:#edf2ed;background:#18201bd9;border:1px solid #ffffff30;box-shadow:0 4px 16px #0003;touch-action:manipulation;transition:background .15s,border-color .15s,box-shadow .15s}
.viewer-icon{display:block;flex-shrink:0;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.viewer-button:hover:not(:disabled){background:#344237;border-color:#c4e59599;color:#fff;filter:none;box-shadow:0 4px 20px #0005}
.viewer-button:active:not(:disabled){background:#43563c;box-shadow:inset 0 2px 5px #0003}
.viewer-button:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.viewer-button[aria-pressed=true]{color:#d6f2b0;background:#c4e59524;border-color:#c4e59580}
.viewer-button[aria-pressed=true]:hover{background:#c4e59538}
.arrow{width:54px;height:54px;background:#18201bbf;box-shadow:0 6px 24px #0004}
.arrow .viewer-icon{width:28px;height:28px;stroke-width:2}
.viewer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;padding:24px 30px max(24px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#080b09c9)}
.viewer-controls{display:flex;align-items:center;gap:8px;padding:7px;border:1px solid #ffffff24;border-radius:999px;background:#121a16e8;backdrop-filter:blur(16px);box-shadow:0 8px 32px #0005}
.viewer-controls .viewer-button{box-shadow:none;background:transparent;border-color:transparent}
.viewer-controls .viewer-button:hover{background:#ffffff12;border-color:#ffffff30}
.viewer-controls .viewer-button[aria-pressed=true]{color:#d6f2b0;background:#c4e59524;border-color:#c4e59560}
#play-pause{width:52px;height:52px;color:#22321a;background:var(--green);border-color:#e0f3c9;box-shadow:0 2px 12px #c4e59520}
#play-pause:hover{color:#182512;background:#d5efaF;border-color:#edffdc;box-shadow:0 2px 18px #c4e59540}
#play-pause:active{background:#afd278;box-shadow:inset 0 2px 5px #22321a30}
#play-pause .icon-play{fill:currentColor;stroke:none}
#play-pause .icon-pause{stroke-width:3}
#play-pause[data-playing=false] .icon-pause,#play-pause[data-playing=true] .icon-play,#fullscreen[aria-pressed=false] .icon-contract,#fullscreen[aria-pressed=true] .icon-expand{display:none}
#slide-count{min-width:0;font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:.5px;color:#e0e8de}
.keyboard-hint{text-align:right;line-height:1.7;color:#c0cabe}
.viewer-actions{bottom:calc(112px + env(safe-area-inset-bottom))}
#fullscreen-status{bottom:calc(172px + env(safe-area-inset-bottom))}
@media(max-width:560px){.arrow{width:44px;height:44px}.arrow .viewer-icon{width:24px;height:24px}.viewer-bottom{gap:8px;padding:18px 18px max(18px,env(safe-area-inset-bottom))}.viewer-controls{gap:5px;padding:6px}#play-pause{width:50px;height:50px}#slide-count{font-size:11px}.viewer-actions{bottom:calc(102px + env(safe-area-inset-bottom))}}

#slide-video{display:block;width:100%;height:100%;object-fit:contain;background:#080b09}
.instance-label{padding:5px 8px;border-radius:5px;background:#e4efdb;color:#435b32;font-size:10px;font-weight:600;white-space:nowrap}.instance-label[data-instance=development]{background:#fff0ce;color:#795513}
.video-badge{position:absolute;top:10px;right:10px;padding:5px 8px;border:1px solid #ffffff30;border-radius:5px;background:#18201be6;color:#edf2ed;font-size:10px;pointer-events:none}
.video-controls{position:absolute;z-index:2;left:50%;bottom:calc(168px + env(safe-area-inset-bottom));transform:translateX(-50%);display:grid;grid-template-columns:44px minmax(0,1fr) auto 90px;align-items:center;gap:12px;width:min(720px,calc(100% - 180px));padding:10px;border:1px solid #ffffff30;border-radius:14px;background:#121a16ed;backdrop-filter:blur(16px)}
.video-controls input[type=range]{min-width:0;width:100%;height:44px;margin:0;accent-color:var(--green);cursor:pointer}
.video-controls input:disabled{opacity:.4;cursor:default}
#video-time{font-size:11px;color:#e0e8de;font-variant-numeric:tabular-nums;white-space:nowrap}
#video-status{position:absolute;left:20px;right:20px;bottom:calc(250px + env(safe-area-inset-bottom));z-index:3;max-width:520px;margin:0 auto;padding:12px;border-radius:7px;background:#18201aee;color:#fff;font-size:12px;line-height:1.5;text-align:center}
.is-video #fullscreen-status{bottom:calc(250px + env(safe-area-inset-bottom))}
#video-mute[aria-pressed=true] .sound-on,#video-mute[aria-pressed=false] .sound-off{display:none}
#slide-error{left:50%;width:min(540px,calc(100% - 120px));transform:translate(-50%,-50%);font-size:15px;line-height:1.7;padding:16px;border-radius:10px;background:#18201ae6;z-index:1}
@media(max-width:560px){.video-controls{width:calc(100% - 36px);bottom:calc(154px + env(safe-area-inset-bottom));grid-template-columns:44px minmax(0,1fr) auto;gap:2px 10px;padding:8px 10px}#video-mute{grid-row:1/3}#video-volume{grid-column:2/4}.is-video #fullscreen-status,#video-status{bottom:calc(274px + env(safe-area-inset-bottom))}#slide-error{font-size:12px;padding:12px;top:30%}}

.import-choices{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.import-choices .button{flex:1;min-height:44px}.photo-details input[list]{min-height:44px}#import-status:empty,#import-folder-status:empty{display:none}

.file-actions,.trash-dialog .details-actions{flex-wrap:wrap}.file-actions .button{flex:1;min-height:44px}.trash-dialog{width:min(680px,calc(100vw - 32px))}.trash-items{max-height:40dvh;overflow:auto;border-block:1px solid var(--line);margin:12px 0}.photo-details label.trash-option,.photo-details label.trash-row{display:flex;flex-direction:row;align-items:center;gap:12px}.trash-row span{min-width:0;overflow-wrap:anywhere}.trash-row small{display:block;margin-top:5px}.trash-row input,.trash-option input{flex-shrink:0;width:18px;height:18px}.trash-dialog .button{min-height:44px}#file-action-status:empty,#trash-status:empty{display:none}

.folder-heading{flex-wrap:wrap;gap:6px}.folder-heading>span{flex-basis:100%}.folder-heading .text-button{min-height:34px}

#file-action-folder,#default-import-folder-choice{width:100%;min-height:44px}
#import-failures{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:6px}#import-failures summary{cursor:pointer}#import-failures ul{max-height:200px;overflow:auto;overflow-wrap:anywhere;padding-left:24px}
.default-folder-choices{max-height:200px;overflow:auto}.photo-details label.gallery-folder-choice{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px;margin:0}.gallery-folder-choice input{width:18px;height:18px;flex-shrink:0}.gallery-folder-choice span{min-width:0;overflow-wrap:anywhere}#default-folders-fieldset{min-width:0;border:1px solid var(--line);border-radius:6px;padding:8px 12px}#default-sort{width:100%;min-height:44px}

.playback-settings{flex-wrap:wrap}#custom-duration{width:130px;min-height:36px;border:1px solid var(--line);border-radius:5px;padding:8px;background:var(--bg);color:var(--ink)}#custom-duration-help{max-width:170px;line-height:1.4}#custom-duration[aria-invalid=true]{outline:2px solid #d25369}

/* Fade overlays without removing keyboard and screen-reader access. */
#viewer .viewer-top,#viewer .viewer-bottom,#viewer .viewer-actions,#viewer .arrow,#viewer .video-controls{transition:opacity .2s ease}
#viewer.controls-hidden .viewer-top,#viewer.controls-hidden .viewer-bottom,#viewer.controls-hidden .viewer-actions,#viewer.controls-hidden .arrow,#viewer.controls-hidden .video-controls{opacity:0;pointer-events:none}
#viewer.controls-hidden,#viewer.controls-hidden *{cursor:none}
@media(prefers-reduced-motion:reduce){#viewer .viewer-top,#viewer .viewer-bottom,#viewer .viewer-actions,#viewer .arrow,#viewer .video-controls{transition:none}}

.storage-option{display:flex;align-items:center;gap:9px}.storage-option input[type=checkbox]{width:18px;height:18px;margin:0}
.photo-details #original-removal-list{max-height:35vh;overflow:auto;overflow-wrap:anywhere;padding-left:22px}
#original-removal-dialog .details-actions{flex-wrap:wrap}
#original-removal-dialog .details-actions .button{white-space:normal;max-width:100%}
/* Private-space controls appear only through the concealed entry or an unlock. */
#brand-home { -webkit-touch-callout: none; user-select: none; touch-action: pan-y; }
.private-folder-choices { max-height: 16rem; overflow: auto; display: grid; gap: .5rem; padding: .5rem; }
#private-dialog .private-folder-choices label, #private-dialog .private-confirm { display: flex; align-items: flex-start; gap: .6rem; overflow-wrap: anywhere; }
#private-dialog .private-folder-choices input, #private-dialog .private-confirm input { width: auto; flex: none; margin-top: .2rem; }
.private-space-row { padding: 1rem 0; border-bottom: 1px solid var(--border, #8885); }
.private-space-row p { overflow-wrap: anywhere; }
.private-space-row button + button { margin-left: .5rem; }
#private-edit-form { margin-top: 1rem; }

/* Keep navigation first in document and mobile focus order. */
.app-header{margin-left:248px;padding-inline:44px;max-width:2200px}
.app-header .brand{position:fixed;top:35px;left:22px;width:204px;margin:0;z-index:1}
.sidebar{padding-top:263px}
.slideshow-panel{border:0;margin:0;padding:0;min-width:0}
.slideshow-panel>summary{display:none}
@media(min-width:1500px){.app-header{padding-inline:65px}}
@media(max-width:1100px){.app-header{margin-left:210px;padding-inline:26px}.app-header .brand{left:16px;width:178px}.sidebar{padding-top:237px}}
@media(max-width:800px){.app-header{margin-left:180px;padding-inline:20px}.app-header .brand{top:25px;left:12px;width:156px}.sidebar{padding-top:205px}}
@media(max-width:560px){
  .app-header{margin:0;padding:12px 18px;display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;min-height:88px;height:auto}
  .app-header .brand{position:static;width:64px;max-width:64px;align-self:center}
  .app-header .breadcrumb{display:none}
  .account-actions{min-width:0;gap:6px;justify-content:flex-end}
  .account-actions .button,.account-actions .text-button{min-height:44px}
  .account-actions #account-name{max-width:110px;overflow:hidden;text-overflow:ellipsis}
  .sidebar{padding:12px 18px;grid-template-columns:minmax(0,1fr);gap:8px}
  .sidebar .all-photos{width:100%;min-height:44px}
  .folder-heading{margin:8px 0 0;gap:4px}
  .folder-heading .text-button{min-height:44px}
  .folder-view-label{margin:0;gap:10px}
  .folders{max-height:160px}
  .slideshow-panel{margin-top:14px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
  .slideshow-panel>summary{display:list-item;cursor:pointer;min-height:44px;padding:13px 15px;font-weight:600;font-size:12px}
  .slideshow-panel-content{padding:0 12px 12px}
  .slideshow-panel .intro{padding:0 0 12px}
  .slideshow-panel .intro>div{display:none}
  .slideshow-panel .playback-settings{padding:14px;gap:14px}
  .slideshow-panel .saved-shows{gap:10px;margin-top:14px}
  .slideshow-panel .saved-shows form{width:100%;flex-basis:100%;flex-wrap:wrap}
  .slideshow-panel .saved-shows input{width:0;min-width:100px}
  .collection-toolbar{margin-top:20px;margin-bottom:16px}
  .bulk-toolbar:not(.has-selection) button{display:none}
}
