:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;--background:#eef5fc;--text:#152540;--muted:#5a6e89;--accent:#176bc7;--soft:#dceafa;--surface:#fff;--line:#b9cce24d;--shadow:0 8px 30px #274b7710,0 1px 3px #274b7709;--error:#a43827;color:var(--text);background:var(--background);color-scheme:light}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 38% -20%,white,transparent 70%),var(--background);min-height:100dvh}button,input,select,textarea{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;border:0;color:inherit}button:disabled{opacity:.4;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #176bc794;outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2{letter-spacing:-1px}.sprite{position:absolute;width:0;height:0;overflow:hidden}svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.glass{background:#ffffffc2;border:1px solid #ffffffdc;box-shadow:var(--shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.muted,.field-note{color:var(--muted);line-height:1.6}.field-note{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--muted)}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;min-height:44px;font-size:13px;font-weight:600;border-radius:17px;transition:background .18s,transform .18s}.primary{color:white;background:linear-gradient(115deg,#2772c5,var(--accent));box-shadow:0 5px 16px #176bc72b}.primary:hover{transform:translateY(-1px)}.secondary{background:#ffffffb8;border:1px solid var(--line)}.secondary:hover{background:white}.icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;border-radius:14px;background:transparent}.icon-button:hover{background:var(--soft)}.error{color:var(--error);font-size:13px;line-height:1.6;min-height:1em}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.skip-link{position:fixed;z-index:100;top:10px;left:10px;padding:12px 20px;background:white;border-radius:12px;transform:translateY(-150%)}.skip-link:focus{transform:none}
.topbar{position:sticky;top:0;z-index:80;background:var(--background);box-shadow:0 1px 0 var(--line),0 7px 20px #274b7709;padding:24px 36px;display:flex;justify-content:space-between;align-items:center;gap:20px}.wordmark{display:inline-flex;align-items:center;gap:11px;white-space:nowrap;font-size:21px;font-weight:750;letter-spacing:-.7px}.wordmark img{width:56px;height:56px;object-fit:contain;flex-shrink:0}.login-logo{display:block;width:96px;height:96px;object-fit:contain;margin-bottom:14px}.wordmark b{font-weight:400}.header-actions{display:flex;align-items:center;gap:18px;font-size:13px}.language{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px}.language select{border:1px solid var(--line);background:#ffffffa0;color:var(--text);border-radius:12px;padding:8px}.language>span{position:absolute;clip:rect(0,0,0,0)}.loading{display:flex;min-height:60vh;align-items:center;justify-content:center;flex-direction:column;gap:20px}.spinner{width:25px;height:25px;display:inline-block;border:2px solid var(--soft);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.login-layout{max-width:1400px;margin:30px auto 0;padding:0 48px 60px;display:grid;grid-template-columns:1.2fr 1fr;gap:80px;align-items:center;min-height:75vh}.login-story{padding:35px 0;position:relative}.login-story h1{font-size:clamp(34px,4vw,56px);line-height:1.12;max-width:620px;margin:20px 0}.login-story>p{font-size:17px;line-height:1.7;color:var(--muted);max-width:440px}.story-frames{display:flex;gap:16px;height:170px;margin:10px 0 55px;align-items:center}.story-frames span{display:block;width:125px;height:155px;border-radius:23px;box-shadow:0 15px 40px #25476b18;background:linear-gradient(150deg,#c5dfef,#91c3c1 47%,#5b98a4 48%,#d9e7d9);transform:rotate(-8deg)}.story-frames span:nth-child(2){height:180px;background:linear-gradient(155deg,#c3d6ee,#edc4ab 55%,#b8a4af);transform:rotate(3deg)}.story-frames span:nth-child(3){background:linear-gradient(160deg,#9cbacb,#c7d1bc 60%,#668d8d);transform:rotate(12deg)}.login-card{padding:42px;border-radius:30px}.login-card h2{font-size:32px;margin:23px 0 10px}.login-card>.primary{width:100%;margin:12px 0 18px}.login-card label,.dialog label:not(.dropzone){display:block;font-size:12px;font-weight:650;margin:21px 0 9px}input,textarea,.dialog select{width:100%;min-width:0;padding:15px 16px;border:1px solid var(--line);border-radius:15px;background:#ffffffb0;color:var(--text)}input::placeholder,textarea::placeholder{color:var(--muted)}
.library{max-width:2100px;margin:auto;padding:30px 36px 155px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px}.title-line{display:flex;align-items:baseline;gap:16px;margin:10px 0}.title-line h1{font-size:clamp(30px,3vw,43px);margin:0}.title-line>span{font-size:13px}.page-heading p{font-size:13px;margin:0}.page-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search{display:flex;align-items:center;gap:10px;background:#ffffffa0;border:1px solid var(--line);border-radius:22px;padding:0 14px}.search input{padding:12px 0;border:0;background:none;max-width:210px}.search input:focus-visible{outline:none}.status-line{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;min-height:22px;margin-bottom:18px}.status-line:before{content:"";width:7px;height:7px;border-radius:50%;background:#4b9671}.status-line.attention:before{background:#c58132}.notice{padding:14px 18px;border:1px solid var(--line);border-radius:16px;margin-bottom:20px;background:#fff;color:var(--error);font-size:13px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:17px}.photo-card{position:relative;min-width:0;aspect-ratio:1.12;background:linear-gradient(135deg,#d7e5f2,#e7eff7);border-radius:22px;isolation:isolate;cursor:pointer;overflow:hidden;box-shadow:0 4px 14px #274b7708}.photo-card>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}.photo-card:hover>img{transform:scale(1.025)}.photo-card:after{content:"";position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#101c3090);pointer-events:none}.photo-label{position:absolute;bottom:16px;left:17px;right:42px;z-index:1;color:white;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-shadow:0 1px 5px #0005}.photo-select{position:absolute;left:12px;top:12px;border-radius:50%;width:27px;height:27px;background:#ffffffcf;border:1px solid #ffffffa0;z-index:3;display:grid;place-items:center;opacity:0;transition:opacity .15s}.photo-card:hover .photo-select,.photo-select:focus-visible,.photo-card.selected .photo-select{opacity:1}.photo-card.selected{outline:3px solid var(--accent);outline-offset:3px}.photo-card.selected .photo-select{background:var(--accent);color:white}.photo-feedback{position:absolute;top:10px;right:10px;display:flex;gap:3px;padding:3px;background:#fffffff2;backdrop-filter:blur(10px);border-radius:14px;z-index:3;box-shadow:0 2px 9px #0001}.photo-feedback button{background:transparent;display:flex;gap:4px;align-items:center;border-radius:10px;padding:5px 7px;color:#708298;font-size:11px;min-height:30px}.photo-feedback svg{width:15px;height:15px}.photo-feedback .favorite-active{color:#d54461}.favorite-active>svg{fill:currentColor}.rated-active{color:var(--accent)!important}.rated-active>svg{fill:currentColor}.photo-comments{position:absolute;right:12px;bottom:12px;z-index:3;display:flex;align-items:center;gap:4px;background:#ffffffed;border-radius:12px;padding:5px 8px;font-size:11px;color:var(--accent)}.photo-comments svg{width:15px;height:15px}.photo-placeholder{position:absolute;inset:0;display:flex;gap:9px;flex-direction:column;justify-content:center;align-items:center;color:var(--muted);font-size:11px}.photo-placeholder>svg{width:34px;height:34px}.tile-rating{position:absolute;z-index:5;top:53px;right:10px;padding:8px;display:grid;gap:3px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 30px #15254030;border-radius:16px}.tile-rating button{background:white;border-radius:9px;padding:7px 12px;color:var(--accent);text-align:left;white-space:nowrap}.tile-rating button:hover{background:var(--soft)}
.folder-grid,.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;margin-bottom:24px}.folder-card{display:flex;gap:15px;text-align:left;align-items:center;padding:22px;border-radius:22px;background:#ffffffbf;border:1px solid #fff;color:var(--text);min-width:0}.folder-card>svg{width:36px;height:36px;color:var(--accent)}.folder-card span{overflow-wrap:anywhere;font-weight:600;font-size:14px}.album-card{overflow:hidden;border-radius:25px;background:#ffffffcf;border:1px solid #fff;box-shadow:var(--shadow)}.album-open{width:100%;background:transparent;text-align:left;padding:0}.album-cover{height:175px;background:var(--soft);display:grid;place-items:center}.album-cover>svg{width:45px;height:45px;color:var(--accent)}.album-cover img{width:100%;height:100%;object-fit:cover}.album-copy{padding:20px}.album-copy h3{font-size:17px;margin-bottom:8px;overflow-wrap:anywhere}.album-copy p{font-size:12px;margin:0;color:var(--muted)}.album-delete{margin:0 20px 18px;padding:6px 0;background:transparent;color:var(--muted);font-size:12px}.album-delete:hover{color:var(--error)}.breadcrumbs{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 22px}.breadcrumbs button{padding:8px 13px;background:#ffffffa0;border:1px solid var(--line);border-radius:13px;color:var(--accent);font-size:12px}.empty{padding:90px 20px;text-align:center}.empty>svg{width:45px;height:45px;color:#8da7c2}.empty h2{font-size:22px;margin:20px 0 10px}.empty p{font-size:14px;max-width:440px;margin:auto}.sentinel{min-height:50px;display:grid;place-items:center}.navigation{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:6px;padding:9px;border-radius:26px;z-index:20}.navigation button{display:flex;align-items:center;gap:8px;padding:13px 17px;border-radius:18px;background:transparent;color:var(--muted);font-size:12px}.navigation button svg{width:20px;height:20px}.navigation button.active{background:var(--soft);color:var(--accent)}.selection{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);z-index:25;display:flex;align-items:center;gap:18px;padding:12px 15px 12px 22px;border-radius:23px;font-size:13px;white-space:nowrap}
dialog{color:var(--text);border:1px solid #fff;box-shadow:0 30px 100px #13274133}dialog::backdrop{background:#1525405c;backdrop-filter:blur(7px)}.dialog{padding:30px;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border-radius:30px;overflow:auto;background:#f8fbfe}.compact{width:min(490px,calc(100vw - 32px))}.dialog-heading{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.dialog-heading h2{font-size:25px;margin:4px 0 10px}.dialog-heading p{font-size:13px;margin:0}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.dropzone{padding:35px 22px;border:2px dashed #b5cee7;border-radius:22px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;cursor:pointer;background:#eef5fc}.dropzone svg{width:36px;height:36px;color:var(--accent)}.dropzone span{color:var(--muted);font-size:13px}.dropzone input{margin-top:10px;width:auto;max-width:100%;font-size:12px}.dropzone.dragging{background:var(--soft);border-color:var(--accent)}progress{width:100%;height:7px;accent-color:var(--accent);margin:18px 0 8px}#upload-summary{font-size:13px;color:var(--muted)}.upload-items{padding:0;list-style:none;max-height:220px;overflow:auto;font-size:12px}.upload-items li{padding:12px 0;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.upload-items li span:first-child{min-width:0}.upload-items .failed{color:var(--error)}
.viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#101823;color:#f4f7fc;overflow:hidden}.viewer-header{height:74px;display:flex;align-items:center;gap:12px;padding:16px 24px;background:#15202d}.viewer-header>div{flex:1;min-width:0}.viewer-header strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px}.viewer-header span{font-size:11px;color:#a7b6c9;display:block;margin-top:5px}.viewer .icon-button{color:#e6edf7}.viewer .icon-button:hover{background:#ffffff1a}.viewer-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;height:calc(100dvh - 74px)}.viewer-stage{position:relative;min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden;touch-action:pan-y pinch-zoom}.viewer-image-area,#viewer-image-area{position:absolute;inset:24px 54px;display:grid;place-items:center;overflow:hidden}#viewer-image-area>img,#viewer-image-area>video{width:100%;height:100%;object-fit:contain;grid-area:1/1;min-height:0;min-width:0}#viewer-image-area>p{color:#b1c1d3;text-align:center;line-height:1.7}.viewer-stage>.spinner{position:absolute;z-index:2;pointer-events:none}.viewer-arrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:42px;height:55px;display:grid;place-items:center;border-radius:16px;background:#263344aa;color:white}.viewer-arrow:disabled{opacity:.15;cursor:default}.viewer-arrow.previous{left:10px}.viewer-arrow.next{right:10px}.viewer-panel{background:#192432;border-left:1px solid #ffffff0d;padding:18px 20px 24px;display:flex;flex-direction:column;min-height:0;overflow:auto}.viewer-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #ffffff14}.rating-button{display:flex;gap:7px;align-items:center;border-radius:14px;background:#243448;padding:11px;color:#e7d195;font-size:12px}.rating-button svg{width:19px;height:19px}.viewer-toolbar .favorite-active{color:#ed6a83}.badge{position:absolute;right:0;top:0;border-radius:9px;min-width:16px;padding:1px 4px;background:#3a628c;color:white;font-size:10px}.rating-menu{padding:10px;margin-top:12px;background:#f7faff;border-radius:16px;display:grid;gap:3px;color:var(--accent)}.rating-menu button{padding:9px 12px;text-align:left;background:transparent;border-radius:10px;letter-spacing:3px}.rating-menu button:hover{background:var(--soft)}.comments-heading h3{font-size:14px;margin:20px 0 14px}.comments{list-style:none;padding:0;margin:0 0 20px;flex:1;min-height:50px;overflow:auto}.comments li{padding:14px;margin-bottom:12px;background:#243244;border-radius:17px}.comments strong{font-size:12px}.comments time{display:block;font-size:10px;color:#b1c1d3;margin:5px 0 9px}.comments p{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.comments .comment-empty{background:none;color:#b1c1d3;font-size:12px;line-height:1.6;padding:0}#comment-form{display:grid;gap:12px}#comment-form textarea{background:#243244;border-color:#ffffff16;color:white;resize:vertical;min-height:82px}#comment-form .primary{justify-self:end}#viewer-feedback{margin:10px 0 0;color:#f1b0a4;font-size:12px;min-height:0}.viewer:is(.focus,.viewer-expanded) .viewer-layout{grid-template-columns:1fr}.viewer:is(.focus,.viewer-expanded) .viewer-panel{display:none}.viewer:is(.focus,.viewer-expanded) .viewer-header{background:#101823}.viewer:is(.focus,.viewer-expanded) #viewer-image-area{inset:8px 45px}html:has(dialog[open]){overflow:hidden}
@media(max-width:1050px){.page-heading{align-items:flex-start;flex-direction:column}.page-actions{width:100%}.search{flex:1}.search input{max-width:none}.navigation button{padding:12px 14px}.login-layout{gap:35px;padding:0 30px 40px}.login-card{padding:30px}.viewer-layout{grid-template-columns:minmax(0,1fr) 290px}.viewer-panel{padding:14px}}
@media(max-width:650px){.topbar{padding:18px 18px 10px;gap:10px}.wordmark{font-size:17px;gap:8px}.wordmark img{width:44px;height:44px}.header-actions{gap:8px}.header-actions .secondary{padding:8px 11px;min-height:34px;font-size:11px}#account{display:none}.language select{max-width:83px;font-size:11px}.login-layout{display:block;margin:15px auto;padding:0 20px 35px;max-width:470px}.login-story{padding:20px 4px 10px}.story-frames{display:none}.login-story h1{font-size:32px;margin:14px 0}.login-story>p{font-size:13px;line-height:1.6}.login-story .eyebrow{font-size:8px}.login-card{padding:26px;border-radius:26px}.login-card h2{font-size:26px}.library{padding:24px 18px 130px}.page-heading{gap:16px;margin-bottom:18px}.title-line{gap:10px}.title-line h1{font-size:31px}.page-description{font-size:12px}.page-actions{gap:8px}.page-actions .primary,.page-actions .secondary{font-size:11px;padding:10px 13px;min-height:40px}.search{width:100%;flex-basis:100%}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.photo-card{border-radius:16px;aspect-ratio:.95}.photo-label{bottom:12px;left:11px;font-size:9px}.photo-feedback{right:7px;top:7px;padding:2px;gap:0;border-radius:12px}.photo-feedback button{padding:5px;min-height:28px;font-size:10px}.photo-feedback svg{width:13px;height:13px}.photo-select{left:7px;top:9px;width:23px;height:23px;opacity:.85}.photo-comments{right:7px;bottom:7px;font-size:10px;padding:4px 6px}.photo-comments svg{width:12px;height:12px}.navigation{bottom:max(12px,env(safe-area-inset-bottom));gap:0;padding:6px;border-radius:22px;max-width:calc(100vw - 20px);width:max-content}.navigation button{flex-direction:column;gap:5px;padding:9px 12px;font-size:9px;border-radius:17px;min-width:49px}.navigation button svg{width:20px;height:20px}.selection{bottom:102px;max-width:calc(100vw - 25px);gap:10px;padding:9px 10px 9px 16px;font-size:11px}.selection .secondary{font-size:11px;padding:10px}.folder-grid,.album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.folder-card{padding:16px 12px;gap:10px;border-radius:18px}.folder-card>svg{width:27px;height:27px}.folder-card span{font-size:12px}.album-cover{height:140px}.album-copy{padding:16px}.album-copy h3{font-size:15px}.album-delete{margin-left:16px}.dialog{padding:22px;border-radius:24px}.dialog-actions{flex-wrap:wrap}.viewer-header{height:66px;padding:10px 12px}.viewer-layout{height:calc(100dvh - 66px);display:grid;grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) minmax(110px,36%)}.viewer-panel{border-left:0;border-top:1px solid #ffffff12;position:relative;padding:10px 16px 16px}.viewer-toolbar{justify-content:center;gap:22px;padding-bottom:10px;position:sticky;top:-10px;background:#192432;z-index:4}.comments-heading h3{margin:14px 0 10px}.comments{overflow:visible;min-height:0;flex:none}.comments li{padding:12px}.viewer-image-area,#viewer-image-area{inset:10px 36px}.viewer-arrow{width:30px;height:45px;border-radius:12px;background:#26334470}.viewer-arrow.previous{left:3px}.viewer-arrow.next{right:3px}.viewer:is(.focus,.viewer-expanded) .viewer-layout{display:block}.viewer:is(.focus,.viewer-expanded) .viewer-stage{height:100%}.viewer:is(.focus,.viewer-expanded) #viewer-image-area{inset:5px 32px}.viewer-panel #comment-form{padding-bottom:env(safe-area-inset-bottom)}.empty{padding:60px 15px}.empty h2{font-size:20px}.empty p{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.folder-grid:empty,.album-grid:empty{display:none}
@media(max-width:360px){.wordmark b{display:none}.header-actions{gap:5px}.topbar{padding-inline:14px}}

#account-security-dialog form,#other-security{display:grid;gap:12px}#account-security-dialog hr{width:100%;border:0;border-top:1px solid #dce7f1;margin:24px 0}#account-security-dialog pre{white-space:pre-wrap;user-select:all;padding:16px;background:#eef4fa;border-radius:12px}#account-security-dialog li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}#totp-secret{display:block;overflow-wrap:anywhere;user-select:all}.auth-qr{display:block;width:200px;height:200px;image-rendering:pixelated;background:white;margin:12px auto}#passkey-login{margin-top:14px}
.record-list{display:grid;gap:16px}.file-record{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:24px;background:#ffffffde;border:1px solid var(--line);border-radius:22px}.file-record>div:first-child{min-width:0;flex:1}.file-record h3{font-size:16px;overflow-wrap:anywhere;margin-bottom:9px}.file-record p{font-size:12px;margin-bottom:9px;overflow-wrap:anywhere}.file-record progress{width:100%;height:8px;accent-color:var(--accent)}.record-actions{display:flex;gap:9px;flex-wrap:wrap}.record-actions .secondary{padding:10px 15px}.danger{color:var(--error)}article.folder-card{position:relative;padding:0;display:block}.folder-open{display:flex;align-items:center;gap:14px;padding:28px 20px;width:100%;height:100%;background:transparent;text-align:left;border-radius:22px}.folder-select{position:absolute;left:8px;top:8px;width:25px;height:25px;border-radius:50%;border:2px solid #91a9c2;background:#fff9;line-height:20px}.folder-card.selected{outline:3px solid var(--accent)}.selection{flex-wrap:wrap;max-width:min(950px,calc(100vw - 30px));justify-content:center}.selection .secondary{padding:10px 14px}.navigation{overflow-x:auto;overscroll-behavior-inline:contain}.navigation button{flex-shrink:0}.destination-heading{display:flex;align-items:center;gap:15px;margin:16px 0;overflow-wrap:anywhere}.destination-folders{display:flex;flex-wrap:wrap;gap:9px;max-height:240px;overflow:auto}#file-action-form{display:grid;gap:15px}#file-action-dialog{width:min(680px,calc(100vw - 30px))}#upload-items li>div{min-width:0;overflow-wrap:anywhere}#upload-items li{gap:12px}#job-indicator{font-size:11px}
@media(max-width:650px){.file-record{align-items:flex-start;flex-direction:column;padding:18px}.record-actions{width:100%}.navigation button{padding:9px 10px}.selection{bottom:105px;gap:7px;max-height:32dvh;overflow:auto}.selection .secondary{padding:8px 10px;font-size:11px}.library{padding-bottom:235px}.folder-open{padding:32px 13px 20px}.header-actions{flex-wrap:wrap;justify-content:flex-end}#job-indicator{max-width:110px;white-space:normal}}

.trusted-device-choice{display:flex;align-items:center;gap:10px;margin-top:12px}.trusted-device-choice input{width:auto;flex:0 0 auto}
.activation-page{max-width:700px;margin:40px auto;padding:0 20px}.activation-page .login-card{display:grid;gap:18px;padding:36px}.activation-page form{display:grid;gap:14px}.device-code-input{text-transform:uppercase;letter-spacing:.18em;font:600 24px monospace;text-align:center}#device-code-confirm{font:600 24px monospace;letter-spacing:.18em}.activation-page a.primary{text-align:center;text-decoration:none;padding:14px;border-radius:16px}

/* Labelled folder navigation must not inherit icon-only button contents. */
.folder-picker{width:min(780px,94vw)}.folder-picker-path{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:12px;border-radius:16px;background:var(--soft)}.folder-picker-path button{white-space:normal;overflow-wrap:anywhere;text-align:left;min-width:0}.folder-picker-list{display:grid;gap:8px;max-height:48dvh;overflow:auto}.folder-picker-row{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:12px 16px;background:var(--soft);border:1px solid var(--line);border-radius:14px;text-align:left}.folder-picker-name{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.45}.folder-picker-row:hover{background:var(--background)}
.download-manager{width:min(820px,94vw)}.download-summary{padding:18px;background:var(--soft);border-radius:16px}.download-summary p:last-child{margin-bottom:0}.download-job{padding:18px;border:1px solid var(--line);border-radius:18px;display:grid;gap:12px}.download-job h3,.download-job p{margin:0}.download-job progress{width:100%;height:8px;accent-color:var(--accent)}.download-actions{display:flex;gap:10px;flex-wrap:wrap}.download-files{display:grid;gap:8px}.download-file{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px;background:var(--soft);border-radius:12px}.download-file span{min-width:0;overflow-wrap:anywhere}.download-job details{font-size:13px}.download-job summary{cursor:pointer;font-weight:600}.download-manager .form-note{line-height:1.6}.download-job .error{color:var(--error)}

.folder-picker-tools{display:flex;justify-content:flex-end}.folder-picker-tools .secondary{gap:8px}.folder-picker-tools svg{width:20px;height:20px}

/* Registration stays readable in the compact dialog and on narrow phones. */
#registration-dialog .field-note{margin:10px 0 18px;line-height:1.5}
#registration-dialog .form-note{line-height:1.5}
#registration-dialog .dialog-actions{margin-top:22px}
#registration-dialog #registration-error:empty{display:none}

/* Keep target creation beside the current path; wrap on small screens. */
#file-action-dialog .destination-heading{flex-wrap:wrap}
#file-destination-label{flex:1;min-width:0;overflow-wrap:anywhere}
#file-destination-new{gap:8px;flex-shrink:0}
#file-destination-new svg{width:20px;height:20px}
@media(max-width:520px){#file-destination-label{order:-1;flex-basis:100%}#file-destination-up,#file-destination-new{flex:1 1 auto}}

/* Account security: fixed navigation and one focused, scrollable section. */
#account-security-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;overflow:hidden}
#account-security-dialog[open]{display:flex;flex-direction:column}
.security-header{flex:0 0 auto;padding:26px 28px 18px;border-bottom:1px solid var(--line)}
#account-security-dialog .dialog-heading{align-items:center;margin:0 0 20px;gap:16px}
#account-security-dialog h2{font-size:25px;margin:0;line-height:1.2}
#account-security-dialog #security-close{flex-shrink:0}
.security-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:5px;background:var(--soft);border:1px solid var(--line);border-radius:18px}
.security-tabs [role=tab]{padding:12px 8px;border:0;border-radius:13px;color:var(--muted);background:transparent;font-size:13px;font-weight:650;min-width:0;overflow-wrap:anywhere}
.security-tabs [aria-selected=true]{background:var(--accent);color:#fff;box-shadow:0 3px 10px #1269b81a}
.security-tabs [role=tab]:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.security-scroll{overflow:auto;min-height:0;padding:24px 28px 28px;overscroll-behavior:contain}
#account-security-dialog h3{font-size:20px;line-height:1.3;margin:0 0 10px}
#account-security-dialog h4{font-size:15px;margin:0 0 8px}
#account-security-dialog .field-note{font-size:13px;line-height:1.5;margin:0 0 14px}
#account-security-dialog form,#account-security-dialog .security-fields{display:grid;gap:10px}
#account-security-dialog #other-security{display:block}
#account-security-dialog label{font-size:13px;font-weight:650;margin:0}
#account-security-dialog input{width:100%;min-width:0;padding:12px 14px;font-size:15px;border:1px solid var(--line);border-radius:13px;background:var(--glass);color:var(--text)}
#account-security-dialog .security-fields>.primary,#password-change-form>.primary{margin-top:6px;justify-self:start}
#account-security-dialog .security-confirmation{padding:16px;margin:16px 0;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
#account-security-dialog .security-confirmation .field-note{margin-bottom:4px}
#account-security-dialog .security-state{display:inline-block;margin:0 0 12px;padding:8px 12px;background:var(--soft);border-radius:12px;font-size:13px;color:var(--muted)}
#account-security-dialog .security-state[data-enabled=true]{color:#176b45;background:#e6f6ed}
#account-security-dialog .security-setup{margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:16px}
#account-security-dialog .security-setup code{display:block;overflow-wrap:anywhere;user-select:all;font-size:13px;margin:12px 0}
#account-security-dialog .security-setup .auth-qr{display:block;margin:12px auto;max-width:100%}
#account-security-dialog .security-setup .primary{margin-top:14px}
#account-security-dialog #passkey-list,#account-security-dialog #session-list,#account-security-dialog #trusted-device-list{padding:0;margin:16px 0 0;list-style:none}
#account-security-dialog li{border-bottom:1px solid var(--line);align-items:center}
#account-security-dialog li>span{min-width:0;overflow-wrap:anywhere;font-size:13px}
#account-security-dialog li>.secondary{flex-shrink:0;padding:9px 12px;font-size:12px}
#account-security-dialog .security-device-group+.security-device-group{margin-top:26px}
#account-security-dialog #security-error:empty{display:none}
#account-security-dialog #security-error:not(:empty),#account-security-dialog #security-message:not([hidden]){margin:14px 0 0;font-size:13px;line-height:1.5}
@media(max-width:520px){.security-header{padding:20px 18px 14px}.security-scroll{padding:20px 18px 24px}#account-security-dialog .dialog-heading{gap:10px}#account-security-dialog h2{font-size:21px}.security-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.security-tabs [role=tab]{padding:11px 8px}#account-security-dialog li{flex-wrap:wrap}}

/* Current work and a compact, opt-in history. */
.job-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0}.job-section-heading h2{font-size:19px;margin:0}.job-history{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}.job-history>summary{cursor:pointer;font-weight:650;padding:8px 0 18px}.job-history .record-list{margin-top:4px}.jobs-section>.form-note{max-width:850px}.download-job.current-job{border-color:var(--accent);background:var(--soft)}.download-job .job-location{overflow-wrap:anywhere}.download-manager .job-section-heading{margin-top:0}.download-manager .job-history .form-grid{margin-top:8px}

.video-quality-controls{position:absolute;bottom:4rem;right:1rem;z-index:4;padding:.4rem .7rem;border-radius:.7rem;background:#17283cdd;color:white}.video-quality-controls select{margin-left:.6rem;color:#17283c;background:white;padding:.35rem;border-radius:.4rem}
