:root{--bg:#f7f8fa;--surface:#fff;--surface-2:#f1f3f6;--hover:#eef1f5;--selected:#dcebfc;--border:#e3e6eb;--text:#1c1f24;--muted:#6b717c;--accent:#2a9ef0;--accent-strong:#1a86d6;--accent-text:#fff;--danger:#e5484d;--ok:#30a46c;--folder:#5aa9e6;--shadow:0 8px 28px #141e3224, 0 1px 3px #141e3214;--radius:10px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.45}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#15171b;--surface:#1d2025;--surface-2:#25292f;--hover:#262a31;--selected:#1d3a57;--border:#2f343c;--text:#e8eaed;--muted:#979ca6;--accent:#3aa8f5;--accent-strong:#5cb8f7;--accent-text:#0b1a26;--folder:#5aa9e6;--shadow:0 8px 28px #00000080, 0 1px 3px #0006;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#15171b;--surface:#1d2025;--surface-2:#25292f;--hover:#262a31;--selected:#1d3a57;--border:#2f343c;--text:#e8eaed;--muted:#979ca6;--accent:#3aa8f5;--accent-strong:#5cb8f7;--accent-text:#0b1a26;--folder:#5aa9e6;--shadow:0 8px 28px #00000080, 0 1px 3px #0006;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);margin:0}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--muted)}.btn{border:1px solid var(--border);background:var(--surface);white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:6px;height:36px;padding:0 14px;font-weight:500;transition:background .12s,border-color .12s;display:inline-flex}.btn:hover:not(:disabled){background:var(--hover)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.primary:hover:not(:disabled){background:var(--accent-strong);border-color:var(--accent-strong)}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn:disabled{opacity:.55}.btn.block{width:100%;height:42px}.icon-btn{width:36px;height:36px;color:var(--muted);background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:inline-grid}.icon-btn:hover:not(:disabled){background:var(--hover);color:var(--text)}.icon-btn.small{width:24px;height:24px}.input,.field input{border:1px solid var(--border);background:var(--surface);width:100%;height:42px;color:var(--text);font:inherit;border-radius:8px;padding:0 12px;font-size:15px}.input:focus,.field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);outline:none}.field{color:var(--muted);gap:6px;margin:20px 0 12px;font-size:13px;font-weight:500;display:grid}.form-error{color:var(--danger);align-items:center;gap:6px;margin:10px 0;font-size:13px;display:flex}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite spin;display:inline-block}.spinner.large{width:28px;height:28px;color:var(--accent)}.spin{animation:.9s linear infinite spin;display:inline-grid}@keyframes spin{to{transform:rotate(360deg)}}.login{place-items:center;min-height:100vh;padding:24px 16px;display:grid}.login-card{background:var(--surface);border:1px solid var(--border);width:100%;max-width:380px;box-shadow:var(--shadow);border-radius:16px;padding:32px 28px 24px;position:relative}.login-logo{background:0 0;border:0;justify-content:center;width:100%;margin-bottom:16px;padding:0;display:flex}.login-back{position:absolute;top:16px;left:16px}.login-card h1{text-align:center;margin:0 0 6px;font-size:22px}.login-card>p.muted{text-align:center;margin:0}.link-btn{color:var(--accent-strong);background:0 0;border:0;margin:14px auto 0;padding:4px 8px;font-weight:600;display:block}.link-btn:disabled{color:var(--muted);font-weight:400}.login-notice{text-align:center;color:var(--muted);margin:6px 0 0;font-size:13px}.login-note{color:var(--muted);text-align:center;margin:20px 0 0;font-size:12px}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{z-index:10;background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;height:60px;padding:0 20px;display:flex;position:sticky;top:0}.brand{white-space:nowrap;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;margin-left:-4px;padding:4px 8px 4px 4px;font-size:18px;font-weight:700;display:flex}.brand:hover{background:var(--hover)}.search{background:var(--surface-2);max-width:560px;height:40px;color:var(--muted);cursor:text;border-radius:20px;flex:1;align-items:center;gap:8px;padding:0 14px;display:flex}.search:focus-within{background:var(--surface);box-shadow:0 0 0 2px var(--accent)}.search input{min-width:0;color:var(--text);font:inherit;background:0 0;border:0;outline:none;flex:1;font-size:15px}.topbar-actions{align-items:center;gap:8px;display:flex}.avatar{color:#fff;background:linear-gradient(135deg,#5cb8f7,#2a7fd0);border:0;border-radius:50%;width:34px;height:34px;font-size:13px;font-weight:600}.layout{flex:1;min-height:0;display:flex}.sidebar{flex-shrink:0;align-self:flex-start;gap:2px;width:220px;padding:16px 12px;display:grid;position:sticky;top:60px}.nav-item{height:40px;color:var(--text);text-align:left;background:0 0;border:0;border-radius:20px;align-items:center;gap:12px;padding:0 16px;font-weight:500;display:flex}.nav-item:hover{background:var(--hover)}.nav-item.active{background:var(--selected);color:var(--accent-strong);font-weight:600}.main{flex:1;min-width:0;max-width:1200px;padding:16px 24px 120px 8px;position:relative}.banner{background:var(--surface-2);color:var(--muted);border-radius:8px;margin-bottom:12px;padding:10px 14px;font-size:13px}.segmented{border:1px solid var(--border);background:var(--surface);border-radius:8px;height:36px;display:inline-flex;overflow:hidden}.segmented button{width:38px;color:var(--muted);background:0 0;border:0;place-items:center;display:grid}.segmented button+button{border-left:1px solid var(--border)}.segmented button.active{background:var(--selected);color:var(--accent-strong)}.btn.danger-outline{color:var(--danger)}.thumb{object-fit:cover;display:block}.row-icon{flex-shrink:0;place-items:center;width:28px;height:28px;display:grid}.row-icon .thumb{border-radius:4px;width:28px;height:28px}.grid-view.stale{opacity:.55}.grid-heading{color:var(--muted);margin:8px 0 10px;font-size:13px;font-weight:600}.grid-folders{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin-bottom:20px;display:grid}.tile{border:1px solid var(--border);background:var(--surface);-webkit-user-select:none;user-select:none;border-radius:10px;align-items:center;gap:10px;min-width:0;height:52px;padding:0 4px 0 10px;display:flex}.tile .name-text{flex:1;font-weight:500}.grid-files{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;display:grid}.card{border:1px solid var(--border);background:var(--surface);-webkit-user-select:none;user-select:none;border-radius:12px;flex-direction:column;min-width:0;display:flex;overflow:hidden}.tile:hover,.card:hover{background:var(--hover)}.tile.selected,.card.selected{border-color:var(--accent);background:var(--selected);box-shadow:0 0 0 1px var(--accent)}.card-thumb{aspect-ratio:4/3;background:var(--surface-2);border-radius:8px;place-items:center;max-width:100%;margin:6px 6px 0;display:grid;position:relative;overflow:hidden}.card-thumb .thumb{width:100%;height:100%}.card-thumb .check{position:absolute;top:8px;left:8px}.card-thumb .check input{width:18px;height:18px}.card-foot{align-items:center;gap:8px;min-width:0;padding:8px 4px 8px 12px;display:flex}.card-foot>svg{flex-shrink:0}.card-foot .name-text{flex:1;font-weight:500}.tile:hover .check input,.card:hover .check input,.grid-view.selecting .check input{opacity:1}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.toolbar-actions{gap:8px;display:flex}.crumbs{min-width:0;color:var(--muted);flex-wrap:wrap;align-items:center;font-size:18px;display:flex}.crumb{align-items:center;display:inline-flex}.crumbs button{max-width:220px;color:inherit;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;border-radius:6px;padding:4px 8px;overflow:hidden}.crumbs button:hover{background:var(--hover);color:var(--text)}.crumbs button.current{color:var(--text);font-weight:600}.list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.list.stale{opacity:.55;transition:opacity .15s .1s}.row{border-bottom:1px solid var(--border);-webkit-user-select:none;user-select:none;grid-template-columns:28px minmax(0,1fr) 120px 100px 44px;align-items:center;gap:12px;min-height:52px;padding:0 8px 0 12px;display:grid}.row:last-child{border-bottom:0}.row:not(.head):hover{background:var(--hover)}.row.selected,.row.selected:hover{background:var(--selected)}.row.head{min-height:40px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-size:12px;font-weight:600}.name{align-items:center;gap:12px;min-width:0;font-weight:500;display:flex}.name svg{flex-shrink:0}.name-text{min-width:0;display:grid}.name-text>*{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sub{color:var(--muted);font-size:12px;font-weight:400}.check{place-items:center;display:grid}.check input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;opacity:0;margin:0}.row:hover .check input,.row.head .check input,.list.selecting .check input,.check input:checked,.check input:focus-visible{opacity:1}@media (hover:none){.check input{opacity:1}}.sort-head{color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;background:0 0;border:0;border-radius:6px;justify-self:start;align-items:center;gap:4px;margin-left:-6px;padding:4px 6px;display:inline-flex}.sort-head:hover{background:var(--hover);color:var(--text)}.sort-head.active{color:var(--text)}.selection-bar{background:var(--selected);border-radius:20px;align-items:center;gap:4px;height:40px;padding:0 8px 0 4px;display:flex}.selection-count{white-space:nowrap;padding:0 8px 0 2px;font-weight:600}.icon-btn.danger:hover:not(:disabled){color:var(--danger)}.crumb-text{text-overflow:ellipsis;white-space:nowrap;max-width:320px;padding:4px 8px;overflow:hidden}.show-sm{display:none}.row-actions{opacity:0;justify-content:flex-end;display:flex}.row:hover .row-actions,.row.selected .row-actions,.row:focus-within .row-actions{opacity:1}@media (hover:none){.row-actions{opacity:1}}.state{text-align:center;color:var(--muted);justify-items:center;gap:4px;padding:72px 16px;display:grid}.state p{margin:4px 0}.state b{color:var(--text)}.state.full{place-items:center;min-height:100vh}.empty-art{background:color-mix(in srgb, var(--accent) 12%, transparent);width:80px;height:80px;color:var(--accent);border-radius:50%;place-items:center;margin-bottom:8px;display:grid}.drop-overlay{z-index:5;border:2px dashed var(--accent);background:color-mix(in srgb, var(--accent) 10%, var(--bg));color:var(--accent);text-align:center;pointer-events:none;border-radius:14px;place-items:center;font-weight:600;display:grid;position:absolute;inset:8px}.menu{z-index:30;background:var(--surface);border:1px solid var(--border);min-width:180px;box-shadow:var(--shadow);border-radius:10px;padding:6px;position:fixed}.menu button{text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:10px;width:100%;padding:8px 10px;display:flex}.menu button:hover{background:var(--hover)}.menu button.danger{color:var(--danger)}.menu-divider{border:0;border-top:1px solid var(--border);margin:6px 4px}.row.group-head{background:var(--surface-2);min-height:36px;color:var(--muted);padding-top:10px;font-size:12px;font-weight:600}.lang-switch{justify-content:center;gap:4px;margin-top:14px;display:flex}.lang-switch button{color:var(--muted);background:0 0;border:0;border-radius:6px;padding:4px 10px;font-size:13px}.lang-switch button.active{background:var(--surface-2);color:var(--text);font-weight:600}.modal-backdrop{z-index:40;background:#0a0f1973;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);width:100%;max-width:420px;box-shadow:var(--shadow);border-radius:14px;padding:22px}.modal h2{overflow-wrap:anywhere;margin:0 0 16px;font-size:18px}.modal p{overflow-wrap:anywhere;margin:0 0 8px}.modal-actions{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.modal-actions.spread{justify-content:space-between}.devices{border:1px solid var(--border);border-radius:10px;margin:12px 0 0;padding:0;list-style:none;overflow:hidden}.devices li{justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.devices li+li{border-top:1px solid var(--border)}.badge{background:var(--selected);color:var(--accent-strong);border-radius:10px;margin-left:8px;padding:2px 8px;font-size:12px;font-weight:600}.small{font-size:12px}.confirm-box{background:var(--surface-2);border-radius:10px;margin-top:14px;padding:14px}.confirm-box p{margin:6px 0 0}.picker{border:1px solid var(--border);border-radius:10px;overflow:hidden}.picker-head{background:var(--surface-2);border-bottom:1px solid var(--border);align-items:center;gap:4px;min-height:44px;padding:4px 8px;display:flex}.picker-title{padding-left:6px;font-weight:600}.picker-list{height:240px;overflow-y:auto}.picker-row{text-align:left;background:0 0;border:0;align-items:center;gap:10px;width:100%;padding:10px 12px;display:flex}.picker-row span{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.picker-row:hover{background:var(--hover)}.picker-empty{place-items:center;height:100%;display:grid}.toasts{z-index:50;gap:8px;width:max-content;max-width:calc(100vw - 32px);display:grid;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast{color:#fff;box-shadow:var(--shadow);background:#24282f;border-radius:8px;align-items:center;gap:16px;padding:10px 16px;animation:.18s ease-out toast-in;display:flex}.toast.error{background:var(--danger)}.toast-action{color:#8ccbff;white-space:nowrap;background:0 0;border:0;border-radius:6px;margin:-4px -8px -4px 0;padding:4px 8px;font-weight:600}.toast.error .toast-action{color:#fff}.toast-action:hover{background:#ffffff1f}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.uploads{z-index:20;background:var(--surface);border:1px solid var(--border);width:340px;max-width:calc(100vw - 32px);box-shadow:var(--shadow);border-radius:12px;position:fixed;bottom:20px;right:20px;overflow:hidden}.uploads-head{background:var(--surface-2);justify-content:space-between;align-items:center;padding:6px 8px 6px 4px;display:flex}.uploads-title{text-align:left;background:0 0;border:0;flex:1;padding:6px 10px;font-weight:600}.uploads-list{max-height:260px;margin:0;padding:0;list-style:none;overflow-y:auto}.uploads-list li{border-top:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;padding:10px 14px;display:grid}.upload-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.upload-status{align-items:center;gap:4px;font-size:12px;display:flex}.upload-status .saved-as{text-overflow:ellipsis;white-space:nowrap;max-width:150px;overflow:hidden}.upload-status .ok{color:var(--ok);display:inline-grid}.upload-status .err{text-overflow:ellipsis;white-space:nowrap;max-width:140px;color:var(--danger);overflow:hidden}.progress{background:var(--surface-2);border-radius:2px;grid-column:1/-1;height:4px;overflow:hidden}.progress div{background:var(--accent);height:100%;transition:width .2s}.progress div.saving{background:var(--ok)}.progress.indeterminate div{animation:1.2s ease-in-out infinite indeterminate;width:40%!important}@keyframes indeterminate{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media (width<=640px){.topbar{padding:0 12px}.main{padding:12px 12px 120px}.grid-folders{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.grid-files{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hide-sm{display:none}.show-sm{display:revert}.btn.show-sm{display:inline-flex}.row{grid-template-columns:28px minmax(0,1fr) 44px;gap:10px;padding-left:8px}.topbar{gap:10px}.search{height:38px}.crumbs{font-size:16px}.uploads{width:auto;max-width:none;bottom:16px;left:16px;right:16px}}.preview{z-index:45;color:#e8eaed;background:#0b0d11;flex-direction:column;display:flex;position:fixed;inset:0}.preview .icon-btn{color:#c3c7cf}.preview .icon-btn:hover:not(:disabled){color:#fff;background:#ffffff1a}.preview-bar{min-height:60px;padding:env(safe-area-inset-top,0px) 12px 0;align-items:center;gap:12px;display:flex}.preview-title{flex:1;min-width:0;display:grid}.preview-title span{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.preview-title small{color:#979ca6}.preview-body{flex:1;place-items:center;min-height:0;padding:8px 64px 24px;display:grid;position:relative}.preview-content{pointer-events:none;place-items:center;width:100%;height:100%;min-height:0;display:grid}.preview-content>*{pointer-events:auto}.preview-media{object-fit:contain;border-radius:4px;max-width:100%;max-height:100%}video.preview-media{background:#000;width:100%}.preview-doc{background:#fff;border:0;border-radius:6px;width:min(100%,1000px);height:100%}.preview-text{background:#1d2025;border-radius:8px;width:min(100%,960px);height:100%;overflow:auto}.preview-text pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:20px;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.preview-text p{margin:0;padding:0 20px 20px}.preview-message{text-align:center;justify-items:center;gap:12px;max-width:420px;display:grid}.preview-nav{color:#fff;background:#ffffff1a;border:0;border-radius:50%;place-items:center;width:44px;height:44px;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.preview-nav:hover{background:#fff3}.preview-nav.prev{left:12px}.preview-nav.next{right:12px}@media (width<=640px){.preview-body{padding:8px 12px 16px}.preview-nav{top:auto;bottom:20px;transform:none}}@media (width<=900px){.sidebar{display:none}}@media (width>=641px) and (width<=900px){.main{padding-left:24px}}
