@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700&display=swap";:root{color:#1b1d20;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f7f8fa;font-family:DM Sans,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}.app-shell{--accent:#f47a43;--accent-strong:#d85d2a;--accent-soft:#fff0e8;--page-bg:#f4f6f5;--surface:#fff;--surface-soft:#faf8f6;--text:#17333a;--muted:#899698;--border:#e7e9e7;min-height:100vh;color:var(--text);background:var(--page-bg);grid-template-columns:238px minmax(0,1fr);display:grid}.app-shell[data-theme=ocean]{--accent:#4b91d1;--accent-strong:#2876b8;--accent-soft:#eaf3fb;--page-bg:#f2f6fa;--surface:#fff;--surface-soft:#f7fafc;--text:#1c3548;--muted:#8496a3;--border:#e1e9ef}.app-shell[data-theme=grove]{--accent:#64a384;--accent-strong:#3f8061;--accent-soft:#eaf4ee;--page-bg:#f2f7f3;--surface:#fff;--surface-soft:#f8fbf8;--text:#20382e;--muted:#87968e;--border:#e2ebe4}.app-shell[data-theme=midnight]{--accent:#a78bfa;--accent-strong:#8b6ee0;--accent-soft:#2a2638;--page-bg:#10141c;--surface:#191f29;--surface-soft:#202733;--text:#edf0f5;--muted:#a1aabc;--border:#2d3542}.app-shell .sidebar{background:var(--surface);border-color:var(--border)}.app-shell .main,.app-shell .content{background:var(--page-bg)}.app-shell .topbar,.app-shell .storage-card,.app-shell .media-card,.app-shell .stat-card,.app-shell .settings-card,.app-shell .album-real,.app-shell .activity-list{background:var(--surface);border-color:var(--border)}.app-shell .nav-item.active{background:var(--accent-soft);color:var(--accent-strong)}.app-shell .upload-button,.app-shell .auth-submit,.app-shell .modal-upload,.app-shell .storage-track div{background:var(--accent)}.app-shell .new-album div,.app-shell .activity-icon,.app-shell .upload-icon,.app-shell .tabs button.active{background:var(--accent-soft);color:var(--accent-strong)}.app-shell .brand-mark{background:#102f38;border-radius:11px;width:38px;height:38px;overflow:hidden;box-shadow:0 6px 16px #102f3833}.app-shell .brand-mark img,.auth-brand .brand-mark img{object-fit:cover;width:100%;height:100%;display:block}.app-shell .profile,.app-shell .profile-field,.app-shell .toggle-row,.app-shell .activity-row{border-color:var(--border)}.app-shell .album-real,.app-shell .stat-card,.app-shell .settings-card,.app-shell .media-card{color:var(--text)}.app-shell .auth-page{background:var(--page-bg)}.app-shell[data-theme=midnight] .nav-item{color:#b5becb}.app-shell[data-theme=midnight] .nav-item:hover{color:#fff;background:#252d39}.app-shell[data-theme=midnight] .search input,.app-shell[data-theme=midnight] .profile strong,.app-shell[data-theme=midnight] .media-info strong,.app-shell[data-theme=midnight] .stat-card strong{color:var(--text)}.app-shell[data-theme=midnight] .search,.app-shell[data-theme=midnight] .storage-card,.app-shell[data-theme=midnight] .media-card,.app-shell[data-theme=midnight] .stat-card,.app-shell[data-theme=midnight] .settings-card,.app-shell[data-theme=midnight] .album-real,.app-shell[data-theme=midnight] .activity-list{background:var(--surface);border-color:var(--border)}.app-shell[data-theme=midnight] .main,.app-shell[data-theme=midnight] .content{background:var(--page-bg)}.app-shell[data-theme=midnight] .topbar{border-color:var(--border);background:#191f29f5}.app-shell[data-theme=midnight] .icon-button,.app-shell[data-theme=midnight] .view-button,.app-shell[data-theme=midnight] .filter-button,.app-shell[data-theme=midnight] .sync-status{background:var(--surface-soft);border-color:var(--border);color:var(--muted)}.app-shell[data-theme=midnight] .profile,.app-shell[data-theme=midnight] .profile-field,.app-shell[data-theme=midnight] .toggle-row,.app-shell[data-theme=midnight] .activity-row{border-color:var(--border)}.app-shell[data-theme=midnight] .profile-field strong,.app-shell[data-theme=midnight] .settings-card h2,.app-shell[data-theme=midnight] .toggle-row strong,.app-shell[data-theme=midnight] .activity-row strong{color:var(--text)}.app-shell[data-theme=midnight] .media-info,.app-shell[data-theme=midnight] .storage-card p,.app-shell[data-theme=midnight] .activity-row span{color:var(--muted)}.app-shell[data-theme=midnight] .stat-pills span,.app-shell[data-theme=midnight] .tabs button.active{background:var(--accent-soft);color:var(--accent);border-color:var(--border)}.app-shell[data-theme=midnight] .media-image{background:#202733}.app-shell[data-theme=midnight] .file-placeholder{color:#c6b8ff;background:linear-gradient(145deg,#28283b,#202735)}.app-shell[data-theme=midnight] .toast,.app-shell[data-theme=midnight] .upload-modal,.app-shell[data-theme=midnight] .preview-modal{background:var(--surface);color:var(--text);border-color:var(--border)}.app-shell[data-theme=midnight] .drop-zone{background:var(--surface-soft);border-color:var(--border)}.app-shell[data-theme=midnight] .drop-zone strong,.app-shell[data-theme=midnight] .modal-head h2,.app-shell[data-theme=midnight] .preview-head strong{color:var(--text)}.app-shell[data-theme=midnight] .search input::placeholder{color:var(--muted)}.app-shell[data-theme=midnight] .auth-page{background:radial-gradient(circle at 20% 10%,#28233a 0,#0000 28%),#10141c}.app-shell[data-theme=midnight] .auth-card{background:var(--surface);border-color:var(--border)}.app-shell[data-theme=midnight] .auth-card h1,.app-shell[data-theme=midnight] .auth-card label{color:var(--text)}.app-shell[data-theme=midnight] .auth-card input{background:var(--surface-soft);color:var(--text);border-color:var(--border)}.sidebar{z-index:30;background:#fff;border-right:1px solid #edf0f2;flex-direction:column;height:100vh;padding:22px 16px 16px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:10px;height:48px;padding:0 8px;font-family:Manrope,sans-serif;font-size:17px;font-weight:700;display:flex}.brand-mark{color:#fff;background:linear-gradient(145deg,#78b7a1,#3f826e);border-radius:10px;place-items:center;width:34px;height:34px;display:grid;box-shadow:0 6px 16px #3f826e2e}.close-nav{background:0 0;border:0;margin-left:auto;display:none}.nav-main{margin-top:18px}.nav-section{margin-top:22px}.nav-section>span{color:#a6adb2;letter-spacing:1.2px;margin:0 12px 8px;font-size:10px;font-weight:700;display:block}.nav-item{color:#697076;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;width:100%;height:42px;margin:2px 0;padding:0 12px;font-size:14px;display:flex}.nav-item:hover{color:#25332f;background:#f7f9f8}.nav-item.active{color:#407764;background:#edf5f1;font-weight:700}.sidebar-bottom{margin-top:auto}.storage-card{background:#fbfcfb;border:1px solid #edf0ef;border-radius:11px;margin:0 4px 12px;padding:13px}.storage-head{justify-content:space-between;font-size:12px;font-weight:700;display:flex}.storage-head span:last-child{color:#7d8581}.storage-track{background:#e8ecea;border-radius:8px;height:5px;margin:9px 0 7px;overflow:hidden}.storage-track div{background:#62a18b;border-radius:8px;width:68%;height:100%}.storage-card p{color:#9aa09d;margin:0 0 10px;font-size:10px}.storage-card button{color:#568774;background:0 0;border:0;padding:0;font-size:11px;font-weight:700}.profile{text-align:left;background:0 0;border:0;border-top:1px solid #eef0ef;grid-template-columns:36px 1fr 18px;align-items:center;gap:9px;width:100%;height:54px;padding:10px 4px 0;display:grid}.avatar{color:#557467;background:#dbe9e3;border-radius:50%;place-items:center;width:36px;height:36px;font-size:11px;font-weight:700;display:grid}.profile strong,.profile span{display:block}.profile strong{font-size:12px}.profile span{color:#9aa09d;margin-top:2px;font-size:10px}.main{background:#f8f9fa;min-width:0}.topbar{z-index:20;background:#fffffff5;border-bottom:1px solid #edf0f2;align-items:center;height:72px;padding:0 36px;display:flex;position:sticky;top:0}.menu-button{background:0 0;border:0;display:none}.search{color:#adb3b6;background:#fafbfb;border:1px solid #edf0f1;border-radius:9px;align-items:center;gap:9px;width:min(420px,42vw);height:40px;padding:0 11px;display:flex}.search input{color:#303538;background:0 0;border:0;outline:0;flex:1;min-width:0;font-size:13px}.search input::placeholder{color:#adb3b6}.search kbd{color:#a6adaf;background:#fff;border:1px solid #e7eaeb;border-radius:5px;padding:2px 6px;font-size:10px}.top-actions{align-items:center;gap:7px;margin-left:auto;display:flex}.icon-button,.view-button{color:#788087;background:#fff;border:1px solid #edf0f1;border-radius:9px;place-items:center;width:38px;height:38px;display:grid}.upload-button{color:#fff;background:#5f9a84;border:0;border-radius:9px;align-items:center;gap:8px;height:40px;margin-left:3px;padding:0 15px;font-size:13px;font-weight:700;display:flex;box-shadow:0 7px 16px #5f9a8429}.content{max-width:1380px;margin:0 auto;padding:28px 36px 48px}.welcome-row{justify-content:space-between;align-items:flex-end;display:flex}.eyebrow{color:#a1a7a9;letter-spacing:1.4px;margin:0 0 5px;font-size:9px;font-weight:700}.welcome-row h1{letter-spacing:-.7px;margin:0;font-family:Manrope,sans-serif;font-size:27px}.sync-status{color:#7d8581;background:#fff;border:1px solid #e8edeb;border-radius:20px;align-items:center;gap:7px;height:34px;padding:0 12px;font-size:11px;display:flex}.sync-status span{background:#66a58d;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #edf5f1}.section{margin-top:28px}.section-heading{justify-content:space-between;align-items:center;height:38px;display:flex}.section-heading h2{margin:0;font-size:15px}.text-button{color:#9ba1a3;background:0 0;border:0;align-items:center;gap:4px;font-size:11px;display:flex}.album-grid{grid-template-columns:repeat(3,minmax(150px,1fr)) 150px;gap:12px;margin-top:8px;display:grid}.album-card{text-align:left;color:#fff;background:#ddd;border:0;border-radius:12px;height:152px;padding:0;position:relative;overflow:hidden}.album-card img{object-fit:cover;width:100%;height:100%;transition:transform .35s}.album-card:hover img{transform:scale(1.03)}.album-shade{background:linear-gradient(#0000 35%,#141c19ad);position:absolute;inset:0}.album-info{position:absolute;bottom:12px;left:14px}.album-info strong,.album-info span{display:block}.album-info strong{font-size:13px}.album-info span{color:#ffffffbf;margin-top:3px;font-size:10px}.album-menu{color:#fff;background:#14191747;border:0;border-radius:50%;place-items:center;width:30px;height:30px;display:grid;position:absolute;bottom:8px;right:8px}.new-album{color:#9aa29f;background:#fff;border:1px dashed #dfe5e2;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:8px;height:152px;font-size:11px;display:flex}.new-album div{color:#668d7d;background:#eef4f1;border-radius:50%;place-items:center;width:36px;height:36px;display:grid}.media-section{margin-top:22px}.tabs{align-items:center;gap:4px;height:38px;display:flex}.tabs button{color:#969d9f;background:0 0;border:0;border-radius:7px;height:30px;padding:0 10px;font-size:12px}.tabs button.active{color:#527864;background:#edf4f1;font-weight:700}.media-actions{gap:7px;display:flex}.filter-button{color:#788087;background:#fff;border:1px solid #edf0f1;border-radius:9px;align-items:center;gap:7px;height:38px;padding:0 11px;font-size:11px;display:flex}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:8px;display:grid}.media-card{background:#fff;border:1px solid #edf0ef;border-radius:11px;min-width:0;overflow:visible}.media-image{background:#e8ecea;border-radius:11px 11px 0 0;height:150px;position:relative;overflow:hidden}.media-image img{object-fit:cover;width:100%;height:100%;transition:transform .35s;display:block}.media-card:hover .media-image img{transform:scale(1.025)}.play-button{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);color:#fff;background:#19201d8c;border:1px solid #ffffffb3;border-radius:50%;place-items:center;width:38px;height:38px;padding-left:3px;display:grid;position:absolute;bottom:10px;left:12px}.share-button{color:#69736f;opacity:0;background:#ffffffe6;border:0;border-radius:8px;place-items:center;width:32px;height:32px;transition:opacity .2s;display:grid;position:absolute;top:9px;right:9px}.media-card:hover .share-button{opacity:1}.media-info{justify-content:space-between;align-items:center;height:58px;padding:0 12px;display:flex}.media-info strong,.media-info span{display:block}.media-info strong{font-size:12px}.media-info span{color:#a1a7a4;margin-top:3px;font-size:10px}.media-info button{color:#a0a7a4;background:0 0;border:0}.modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#19211d52;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.upload-modal{background:#fff;border-radius:16px;width:min(480px,100%);padding:20px;box-shadow:0 24px 70px #18261f33}.modal-head{justify-content:space-between;display:flex}.modal-head h2{margin:0;font-size:18px}.modal-head p{color:#969d99;margin:5px 0 0;font-size:11px}.modal-head button{color:#7d8581;background:#f4f6f5;border:0;border-radius:8px;place-items:center;width:32px;height:32px;display:grid}.drop-zone{cursor:pointer;background:#fafcfb;border:1.5px dashed #cad9d2;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;height:220px;margin:18px 0 12px;display:flex}.drop-zone input{display:none}.upload-icon{color:#668d7d;background:#edf5f1;border-radius:50%;place-items:center;width:48px;height:48px;margin-bottom:12px;display:grid}.drop-zone strong{font-size:13px}.drop-zone span{color:#a1a7a4;margin-top:5px;font-size:10px}.modal-upload{color:#fff;background:#5f9a84;border:0;border-radius:9px;width:100%;height:42px;font-size:12px;font-weight:700}.toast{z-index:120;color:#4d5b55;background:#fff;border:1px solid #e5ebe8;border-radius:9px;padding:12px 16px;font-size:12px;position:fixed;bottom:24px;right:24px;box-shadow:0 12px 36px #1f2d261f}.nav-backdrop{display:none}.auth-page{--accent:#f47a43;--accent-strong:#d85d2a;--accent-soft:#fff0e8;background:radial-gradient(circle at 20% 10%,#f9e9df 0,#0000 28%),#f4f6f5;place-items:center;min-height:100vh;padding:20px;display:grid;position:relative}.auth-page[data-theme=ocean]{--accent:#4b91d1;--accent-strong:#2876b8;--accent-soft:#eaf3fb}.auth-page[data-theme=grove]{--accent:#64a384;--accent-strong:#3f8061;--accent-soft:#eaf4ee}.auth-page[data-theme=midnight]{--accent:#a78bfa;--accent-strong:#8b6ee0;--accent-soft:#2a2638;background:radial-gradient(circle at 20% 10%,#28233a 0,#0000 28%),#10141c}.auth-brand{align-items:center;gap:9px;font-family:Manrope,sans-serif;font-weight:700;display:flex;position:absolute;top:28px;left:32px}.auth-card{background:#fffffff5;border:1px solid #e8eeeb;border-radius:18px;width:min(420px,100%);padding:34px;box-shadow:0 24px 70px #384f441c}.auth-card h1{margin:4px 0 8px;font-family:Manrope,sans-serif;font-size:28px}.auth-copy{color:#909894;margin:0 0 22px;font-size:13px}.auth-card label{color:#66706c;margin-top:14px;font-size:11px;font-weight:700;display:block}.auth-card input{color:#29312e;background:#fbfcfb;border:1px solid #e5ebe8;border-radius:9px;outline:0;width:100%;height:44px;margin-top:7px;padding:0 12px}.auth-card input:focus{border-color:#82aa99;box-shadow:0 0 0 3px #edf5f1}.auth-error{color:#9c5148;background:#fff2f0;border-radius:8px;margin-top:12px;padding:9px 10px;font-size:11px}.auth-submit{color:#fff;background:#5f9a84;border:0;border-radius:9px;width:100%;height:44px;margin-top:18px;font-size:13px;font-weight:700}.auth-switch{color:#6d887d;background:0 0;border:0;width:100%;margin-top:12px;font-size:11px}.auth-page .brand-mark{background:#102f38;border-radius:11px;width:38px;height:38px;overflow:hidden}.auth-page .auth-submit{background:var(--accent)}.auth-page .auth-switch{color:var(--accent-strong)}.remote-media{color:#7e9b8f;background:linear-gradient(145deg,#edf5f1,#dde8e3);place-items:center;display:grid}.modal-upload:disabled{opacity:.65;cursor:wait}.welcome-row{align-items:center}.stat-pills{gap:7px;display:flex}.stat-pills span{color:#738078;background:#fff;border:1px solid #e8eeeb;border-radius:20px;padding:7px 10px;font-size:11px}.dashboard-grid{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px;display:grid}.stat-card{background:#fff;border:1px solid #edf0ef;border-radius:12px;min-height:130px;padding:18px}.stat-card span,.stat-card strong,.stat-card small{display:block}.stat-card span{color:#929b96;font-size:11px}.stat-card strong{margin:10px 0 12px;font-size:24px}.stat-card small{color:#a1a7a4;font-size:10px}.page-heading{justify-content:space-between;align-items:flex-end;margin:8px 0 20px;display:flex}.page-heading h1{margin:4px 0 0;font-size:26px}.page-section{min-height:520px}.create-row{gap:8px;margin-bottom:16px;display:flex}.create-row input{background:#fff;border:1px solid #e5ebe8;border-radius:9px;width:min(320px,100%);height:40px;padding:0 11px}.create-row button{color:#fff;background:#5f9a84;border:0;border-radius:9px;align-items:center;gap:6px;height:40px;padding:0 12px;display:flex}.album-grid-real{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.album-real{text-align:left;background:#fff;border:1px solid #edf0ef;border-radius:12px;min-height:150px;padding:14px}.album-icon{color:#668d7d;background:#edf5f1;border-radius:12px;place-items:center;width:50px;height:50px;margin-bottom:18px;display:grid}.album-real strong,.album-real span{display:block}.album-real span{color:#9aa29f;margin-top:4px;font-size:11px}.activity-list{background:#fff;border:1px solid #edf0ef;border-radius:12px;overflow:hidden}.activity-row{border-bottom:1px solid #f0f2f1;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;min-height:68px;padding:8px 14px;display:grid}.activity-row:last-child{border-bottom:0}.activity-icon{color:#668d7d;background:#edf5f1;border-radius:50%;place-items:center;width:34px;height:34px;display:grid}.activity-row strong,.activity-row span{display:block}.activity-row strong{text-transform:capitalize;font-size:12px}.activity-row span{color:#9aa29f;margin-top:3px;font-size:10px}.activity-row time,.activity-row code{color:#9aa29f;font-size:10px}.empty-state{color:#91a098;text-align:center;border:1px dashed #dfe7e3;border-radius:12px;flex-direction:column;grid-column:1/-1;justify-content:center;align-items:center;min-height:260px;display:flex}.empty-state h2{color:#596760;margin:10px 0 4px;font-size:16px}.empty-state p{color:#9aa29f;max-width:340px;margin:0;font-size:11px}.empty-state button{color:#fff;background:#5f9a84;border:0;border-radius:9px;margin-top:14px;padding:9px 12px}.file-placeholder{color:#668d7d;background:linear-gradient(145deg,#edf5f1,#dde8e3);flex-direction:column;justify-content:center;align-items:center;gap:7px;height:100%;display:flex}.file-placeholder span{font-size:10px}.favorite-button{color:#7d8581;background:#ffffffeb;border:0;border-radius:8px;place-items:center;width:32px;height:32px;display:grid;position:absolute;top:9px;right:9px}.favorite-button.active{color:#b66c63}.card-actions{gap:3px;display:flex}.card-actions button{color:#7d8581;background:#f5f7f6;border:0;border-radius:7px;place-items:center;width:30px;height:30px;display:grid}.file-menu{position:relative}.file-menu summary{color:#7d8581;cursor:pointer;background:#f5f7f6;border-radius:7px;place-items:center;width:30px;height:30px;list-style:none;display:grid}.file-menu summary::-webkit-details-marker{display:none}.file-menu-options{z-index:40;border:1px solid var(--border);background:var(--surface);border-radius:9px;width:176px;padding:5px;position:absolute;top:34px;right:0;box-shadow:0 10px 28px #1e2d2629}.file-menu-options button{width:100%;height:34px;color:var(--text);white-space:nowrap;background:0 0;justify-content:flex-start;gap:8px;padding:0 8px;font-size:11px;display:flex}.file-menu-options button:hover{background:var(--surface-soft)}.app-shell[data-theme=midnight] .card-actions button,.app-shell[data-theme=midnight] .file-menu summary{background:var(--surface-soft);color:var(--muted)}.trash-actions{gap:7px;height:44px;padding:0 10px 8px;display:flex}.trash-actions button{color:#66716c;background:#fff;border:1px solid #e6ebe8;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:5px;font-size:10px;display:flex}.trash-actions .danger{color:#a95f55}.settings-card{background:#fff;border:1px solid #edf0ef;border-radius:12px;margin-bottom:12px;padding:18px}.settings-card h2{margin:0 0 12px;font-size:15px}.profile-field{border-top:1px solid #f0f2f1;justify-content:space-between;align-items:center;height:50px;display:flex}.profile-field span{color:#969e9a;font-size:11px}.profile-field strong{font-size:12px}.toggle-row{cursor:pointer;border-top:1px solid #f0f2f1;justify-content:space-between;align-items:center;min-height:64px;display:flex}.toggle-row strong,.toggle-row span{display:block}.toggle-row strong{font-size:12px}.toggle-row span{color:#9aa29f;margin-top:3px;font-size:10px}.toggle-row input{display:none}.toggle-row i{background:#dfe5e2;border-radius:20px;width:38px;height:22px;position:relative}.toggle-row i:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:all .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 4px #0000001f}.toggle-row input:checked+i{background:#68a08b}.toggle-row input:checked+i:after{transform:translate(16px)}.preview-backdrop{justify-content:center;align-items:center;display:flex}.preview-modal{background:#fff;border:1px solid #ffffff29;border-radius:16px;flex:0 1080px;width:min(1080px,100%);min-width:0;max-height:94vh;margin:auto;overflow:hidden;box-shadow:0 28px 90px #0c141152}.preview-head{justify-content:space-between;align-items:center;gap:16px;min-height:66px;padding:10px 18px;display:flex}.preview-head strong,.preview-head span{display:block}.preview-head>div{min-width:0}.preview-head strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.preview-head span{color:#9aa29f;margin-top:2px;font-size:10px}.preview-head button{color:#596760;background:#f4f6f5;border:0;border-radius:9px;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.preview-body{background:radial-gradient(at 50% 45%,#202724 0,#111513 72%);justify-content:center;align-items:center;width:100%;height:min(72vh,720px);min-height:220px;padding:clamp(10px,2vw,24px);display:flex;position:relative;overflow:hidden}.preview-body img,.preview-body video{object-fit:contain;flex:0 auto;width:auto;max-width:100%;height:auto;max-height:100%;margin:auto;display:block}.preview-body video{background:#050605;border-radius:8px}.preview-body audio{width:min(560px,90%)}.preview-message{z-index:2;color:#f1f5f2;text-align:center;background:#101513e0;border:1px solid #ffffff29;border-radius:10px;max-width:min(420px,86%);padding:12px 16px;font-size:12px;line-height:1.5;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 8px 26px #0003}.preview-error{color:#ffe5dd}.preview-actions{justify-content:flex-end;align-items:center;gap:8px;min-height:62px;padding:10px 16px;display:flex}.preview-actions button{background:#fff;border:1px solid #e5ebe8;border-radius:8px;align-items:center;gap:6px;height:36px;padding:0 10px;font-size:11px;display:flex}.upload-progress{color:#8d9892;gap:7px;margin:-2px 0 13px;font-size:10px;display:grid}.upload-progress>div:first-child{justify-content:space-between;gap:10px;display:flex}.upload-progress>div:first-child span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.upload-progress strong{color:var(--text)}.upload-progress-track{background:#e8ecea;border-radius:8px;height:5px;overflow:hidden}.upload-progress-track div{border-radius:inherit;background:var(--accent);height:100%;transition:width .15s}.file-action-modal{gap:14px;display:grid}.file-action-field{color:#66706c;gap:7px;font-size:11px;font-weight:700;display:grid}.file-action-field input,.file-action-field select{color:#29312e;background:#fff;border:1px solid #e5ebe8;border-radius:8px;width:100%;height:42px;padding:0 10px}.file-action-field>span{color:#929b96;font-size:10px;font-weight:400}.app-shell[data-theme=midnight] .file-action-field{color:var(--muted)}.app-shell[data-theme=midnight] .file-action-field input,.app-shell[data-theme=midnight] .file-action-field select{color:var(--text);background:var(--surface-soft);border-color:var(--border)}.share-form{gap:12px;margin:18px 0;display:grid}.share-form label{color:#66706c;font-size:11px;font-weight:700}.share-form input[type=password],.share-form input[type=datetime-local]{border:1px solid #e5ebe8;border-radius:8px;width:100%;height:42px;margin-top:6px;padding:0 10px}.checkbox-row{align-items:center;gap:7px;display:flex}.share-result{gap:7px;display:flex}.share-result input{border:1px solid #e5ebe8;border-radius:8px;flex:1;min-width:0;height:42px;padding:0 9px}.share-result button{color:#fff;background:#5f9a84;border:0;border-radius:8px;padding:0 12px}.two-factor-card img{border:1px solid #edf0ef;border-radius:10px;width:180px;height:180px;margin:8px 0 14px}.two-factor-card p{color:#969e9a;font-size:11px}.theme-settings>p{color:#969e9a;margin:-4px 0 16px;font-size:11px}.theme-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.theme-option{text-align:left;color:#65716c;background:#fff;border:1px solid #e8edeb;border-radius:11px;min-width:0;padding:9px}.theme-option.selected{border-color:#f0a27e;box-shadow:0 0 0 2px #f47a431f}.theme-swatch{background:linear-gradient(90deg,var(--swatch-dark) 0 35%,var(--swatch-surface) 35% 78%,var(--swatch-accent) 78%);border-radius:7px;height:56px;margin-bottom:9px;display:block}.theme-option strong,.theme-option>span:last-child{display:block}.theme-option strong{color:#293a35;font-size:11px}.theme-option>span:last-child{color:#9aa29f;margin-top:3px;font-size:9px}.app-shell[data-theme=midnight] .theme-option{background:var(--surface-soft);border-color:var(--border)}.app-shell[data-theme=midnight] .theme-option strong{color:var(--text)}@media (width<=1050px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.new-album{display:none}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.app-shell{display:block}.sidebar{width:238px;transition:transform .25s;position:fixed;left:0;transform:translate(-100%)}.sidebar.open{transform:translate(0)}.close-nav{place-items:center;display:grid}.nav-backdrop{z-index:25;background:#1e262240;border:0;display:block;position:fixed;inset:0}.topbar{height:64px;padding:0 16px}.menu-button{place-items:center;width:38px;height:38px;margin-right:8px;display:grid}.search{flex:1;width:auto}.search kbd,.top-actions .icon-button{display:none}.upload-button{justify-content:center;width:40px;padding:0}.upload-button svg{margin:0}.upload-button{font-size:0}.content{padding:22px 16px 40px}.welcome-row h1{font-size:23px}.sync-status{display:none}.album-grid{scrollbar-width:none;margin-right:-16px;padding-right:16px;display:flex;overflow-x:auto}.album-card{flex:0 0 72%;height:170px}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.media-image{height:116px}.media-info{height:54px}.share-button{opacity:1}.filter-button{justify-content:center;width:38px;padding:0;font-size:0}.preview-backdrop{padding:10px}.preview-modal{border-radius:13px;width:100%;max-height:96vh}.preview-head{min-height:58px;padding:8px 12px}.preview-body{height:min(68vh,640px);min-height:180px}.preview-actions{min-height:56px}}@media (width<=430px){.media-grid{grid-template-columns:1fr}.media-image{height:180px}.album-card{flex-basis:82%}.welcome-row h1{font-size:21px}}@media (height<=520px) and (orientation:landscape){.preview-backdrop{padding:8px}.preview-modal{max-height:96vh}.preview-body{height:calc(96vh - 132px);min-height:120px}}.preview-modal{flex-direction:column;max-height:94dvh;display:flex}.preview-body{box-sizing:border-box;flex:auto;height:min(72dvh,760px);min-height:0;overflow:auto}.preview-body video{object-fit:contain;flex:0 auto;width:auto;max-width:100%;height:auto;max-height:100%}.preview-body img,.media-image img{object-fit:contain}@media (width<=700px){.preview-modal{max-height:96dvh}.preview-body{height:min(72dvh,700px);min-height:180px}}
