:root{--bg:#0c0e12;--surface:#14171d;--surface-2:#1b1f27;--surface-3:#232833;--border:#262b35;--text:#e8eaed;--muted:#8b93a1;--muted-2:#5f6673;--accent:#8ab4f8;--accent-hover:#aecbfa;--accent-soft:#8ab4f824;--danger:#f16565;--danger-soft:#f165651f;--success:#3ecf8e;--radius-sm:6px;--radius:10px;--radius-lg:14px;--shadow:0 8px 30px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=light]{--bg:#f4f5f7;--surface:#fff;--surface-2:#eef0f3;--surface-3:#e3e6ea;--border:#dde1e6;--text:#1a1d23;--muted:#66707c;--muted-2:#98a0aa;--accent:#1a73e8;--accent-hover:#1765cc;--accent-soft:#1a73e814;--danger:#dc2626;--danger-soft:#dc262614;--success:#059669;--shadow:0 8px 30px #1418201a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=light] .btn-primary{color:#fff}:root[data-theme=light] .auth-screen{background:radial-gradient(circle at top, #eef0f6 0%, var(--bg) 60%)}:root[data-theme=light] .role-admin{color:#b91c1c;background:#dc26261a}:root[data-theme=light] .role-manager{color:#b45309;background:#b453091f}:root[data-theme=light] .role-user{color:#047857;background:#0596691a}:root[data-theme=light] .error{color:#b91c1c;border-color:#dc26264d}:root[data-theme=light] .toast-success{border-color:#05966959}:root[data-theme=light] .toast-error{border-color:#dc262659}:root[data-theme=light] .drop-overlay{background:#f4f5f7e6}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:-apple-system,BlinkMacSystemFont,Inter,Segoe UI,Roboto,sans-serif;font-size:13.5px;line-height:1.4}h1,h2,h3{letter-spacing:-.01em;margin:0;font-weight:600}h2{font-size:17px}button{cursor:pointer;background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:var(--radius-sm);align-items:center;gap:6px;padding:6px 11px;font-size:12.5px;font-weight:500;transition:background .12s,border-color .12s,color .12s,opacity .12s;display:inline-flex}button:hover{background:var(--surface-3);border-color:#333a47}button:disabled{opacity:.5;cursor:default}button:active{transform:translateY(.5px)}.btn-primary{background:var(--accent);border-color:var(--accent);color:#0c0e12;font-weight:600}.btn-primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.btn-danger{background:var(--danger-soft);color:var(--danger);border-color:#0000}.btn-danger:hover{background:var(--danger);color:#fff}.icon-btn{color:var(--muted);background:0 0;border-color:#0000;padding:6px}.icon-btn:hover{background:var(--surface-3);color:var(--text)}.icon-btn.danger:hover{background:var(--danger-soft);color:var(--danger)}input,select{background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:var(--radius-sm);outline:none;padding:7px 10px;font-size:13px;transition:border-color .12s}input:focus,select:focus{border-color:var(--accent)}input::placeholder{color:var(--muted-2)}.loading-screen,.auth-screen{justify-content:center;align-items:center;min-height:100vh;display:flex}.auth-screen{background:radial-gradient(circle at top, #151922 0%, var(--bg) 60%)}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);flex-direction:column;gap:11px;width:300px;padding:28px 26px;display:flex}.auth-brand{color:var(--accent);align-items:center;gap:8px;font-size:20px;font-weight:700;display:flex}.auth-card .subtitle{color:var(--muted);margin:-6px 0 8px;font-size:13px}.auth-card .switch{color:var(--muted);text-align:center;margin:4px 0 0;font-size:13px}.auth-card .switch a{color:var(--accent);text-decoration:none}.auth-card .switch a:hover{text-decoration:underline}.auth-card button[type=submit]{justify-content:center;margin-top:4px;padding:9px}.error{background:var(--danger-soft);color:#ff9b9b;border-radius:var(--radius-sm);border:1px solid #f1656559;padding:9px 11px;font-size:13px}.app-shell{height:100vh;display:flex}.mobile-topbar{display:none}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;gap:14px;width:208px;height:100vh;padding:16px 12px;display:flex;position:sticky;top:0;overflow-y:auto}.sidebar .brand{margin:0 0 2px;padding-left:4px;font-size:16.5px;font-weight:700}.sidebar nav{flex-direction:column;gap:1px;display:flex}.sidebar nav a{color:var(--muted);border-radius:var(--radius-sm);align-items:center;gap:9px;padding:6px 9px;font-size:13px;font-weight:500;text-decoration:none;transition:background .12s,color .12s;display:flex}.sidebar nav a:hover{background:var(--surface-2);color:var(--text)}.sidebar nav a.active{background:var(--accent-soft);color:var(--accent)}.sidebar-footer{flex-direction:column;gap:8px;margin-top:auto;display:flex}.storage-bar{background:var(--surface-2);border-radius:4px;height:5px;overflow:hidden}.storage-bar>div{background:var(--accent);border-radius:4px;height:100%}.sidebar-storage{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:center;gap:8px;padding:8px 10px;display:flex}.sidebar-storage-icon{background:var(--accent-soft);width:24px;height:24px;color:var(--accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.sidebar-storage-text{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.sidebar-storage-value{color:var(--text);font-size:11.5px;font-weight:600}.sidebar-storage-value em{color:var(--muted);font-style:normal;font-weight:500}.user-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}.user-card-info{text-align:left;background:0 0;border:none;border-radius:0;align-items:center;gap:9px;width:100%;min-width:0;padding:9px 10px;display:flex}.user-card-info:hover{background:var(--surface-2)}.user-card-text{flex-direction:column;flex:1;gap:4px;min-width:0;font-size:13px;display:flex}.user-card-text strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-card-actions{border-top:1px solid var(--border);display:flex}.user-card-actions button{color:var(--muted);background:0 0;border:none;border-radius:0;flex:1;justify-content:center;align-items:center;padding:8px 0;display:flex}.user-card-actions button:hover{background:var(--surface-2);color:var(--text)}.user-card-actions button+button{border-left:1px solid var(--border)}.avatar-btn{background:var(--accent-soft);width:28px;height:28px;color:var(--accent);letter-spacing:.01em;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:11.5px;font-weight:700;display:flex}.avatar-btn-sm{width:24px;height:24px;font-size:10px}.avatar-btn-lg{width:50px;height:50px;font-size:18px}.role-badge{text-transform:uppercase;letter-spacing:.03em;border-radius:4px;align-items:center;gap:3px;width:fit-content;padding:2px 6px;font-size:9.5px;font-weight:600;display:inline-flex}.role-admin{color:#ff9b9b;background:#f1656526}.role-manager{color:#ffb86c;background:#ffb86c26}.role-user{color:var(--success);background:#3ecf8e26}.content{flex:1;min-width:0;height:100vh;padding:22px 26px;overflow-y:auto}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;display:flex}.page-hint{color:var(--muted);margin:-6px 0 12px;font-size:12.5px}.breadcrumb{color:var(--muted);align-items:center;font-size:13px;display:flex}.breadcrumb .crumb{color:var(--muted);background:0 0;border:none;padding:2px 4px;font-weight:500}.breadcrumb span:last-child .crumb{color:var(--text)}.breadcrumb .crumb:hover{color:var(--accent);background:0 0}.crumb-sep{color:var(--muted-2);vertical-align:-1px;margin:0 1px}.toolbar{align-items:center;gap:8px;margin-bottom:14px;display:flex}.view-toggle{background:var(--surface-2);border-radius:var(--radius-sm);gap:2px;margin-left:auto;padding:2px;display:flex}.view-toggle button{color:var(--muted);background:0 0;border:none;border-radius:4px;padding:6px 8px}.view-toggle button.active{background:var(--surface-3);color:var(--text)}.selection-toolbar{background:var(--accent-soft);border-radius:var(--radius);padding:8px 10px}.selection-count{margin-right:4px;font-size:13px;font-weight:600}.row-checkbox{width:17px;height:17px;accent-color:var(--accent);cursor:pointer;flex-shrink:0}.checkbox-cell{text-align:center;vertical-align:middle;cursor:pointer;width:36px;padding:8px!important}.checkbox-cell .row-checkbox{pointer-events:none}.item-table tr.row-selected td{background:var(--accent-soft)}.table-scroll{overflow-x:auto}.item-table{border-collapse:collapse;width:100%}.item-table th{text-align:left;color:var(--muted-2);text-transform:uppercase;letter-spacing:.03em;padding:0 10px 8px;font-size:10.5px;font-weight:600}.item-table td{border-top:1px solid var(--border);vertical-align:middle;padding:8px 10px;font-size:13px}.item-table tr:hover td{background:var(--surface)}.item-table .clickable{cursor:pointer}.item-table .clickable:hover{color:var(--accent)}.empty{color:var(--muted);text-align:center;padding:40px 10px;font-size:13.5px}.empty-state{color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:50px 10px;display:flex}.crash-fallback{color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:80px 10px;display:flex}.crash-fallback svg{color:var(--danger)}.row-actions{justify-content:flex-end;gap:4px;display:flex}.row-icon{color:var(--muted);flex-shrink:0}.status-pill{border-radius:999px;padding:4px 10px;font-size:11.5px}.status-active{color:var(--success);background:#3ecf8e1f;border-color:#0000}.status-suspended{background:var(--danger-soft);color:var(--danger);border-color:#0000}.perm-pill{color:var(--muted);flex-shrink:0;align-items:center;gap:3px;font-size:12px;display:inline-flex}.drive-tile-shared{color:var(--muted);justify-content:center;align-items:center;gap:3px;font-size:10.5px;display:flex}.modal-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:260;background:#06070a99;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);flex-direction:column;gap:11px;width:320px;padding:18px;display:flex}.modal h3{margin:0}.modal-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.dialog-modal{width:340px}.dialog-message{margin:0;font-size:13.5px;line-height:1.5}.picker-modal{width:380px}.picker-list{flex-direction:column;gap:2px;max-height:260px;margin:-4px 0;display:flex;overflow-y:auto}.picker-row{text-align:left;color:var(--text);border-radius:var(--radius-sm);background:0 0;border:none;align-items:center;gap:9px;padding:9px 6px;font-weight:400;display:flex}.picker-row:hover{background:var(--surface-2)}.picker-row-arrow{color:var(--muted-2);margin-left:auto}.action-menu{display:inline-block;position:relative}.action-menu-list{z-index:300;background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;min-width:160px;padding:5px;display:flex;overflow-y:auto}.action-menu-list button{color:var(--text);border-radius:var(--radius-sm);background:0 0;border:none;justify-content:flex-start;padding:8px 9px;font-weight:400}.action-menu-list button:hover{background:var(--surface-2)}.action-menu-list button.danger{color:var(--danger)}.action-menu-list button.danger:hover{background:var(--danger-soft)}.toast-stack{z-index:300;flex-direction:column;gap:8px;max-width:320px;display:flex;position:fixed;bottom:20px;right:20px}.toast{background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);align-items:center;gap:9px;padding:11px 14px;font-size:13px;animation:.18s ease-out toast-in;display:flex}@keyframes toast-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.toast-success{border-color:#3ecf8e4d}.toast-success svg{color:var(--success)}.toast-error{border-color:#f165654d}.toast-error svg{color:var(--danger)}.toast-info svg{color:var(--accent)}.search-box{width:280px;max-width:100%;position:relative}.search-icon{color:var(--muted-2);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.search-box input{width:100%;padding-left:32px;padding-right:28px}.search-clear{color:var(--muted);background:0 0;border:none;padding:5px;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.search-clear:active{transform:translateY(-50%)scale(.9)}.search-results{z-index:60;background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);max-height:320px;padding:6px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow-y:auto}.search-result-row{text-align:left;width:100%;color:var(--text);border-radius:var(--radius-sm);background:0 0;border:none;align-items:center;gap:9px;padding:8px 9px;font-weight:400;display:flex}.search-result-row:hover{background:var(--surface-2)}.search-empty{color:var(--muted);padding:10px;font-size:13px}.file-name-cell{align-items:center;gap:10px;display:flex}.row-thumb{object-fit:cover;border-radius:var(--radius-sm);background:var(--surface-2);flex-shrink:0;width:30px;height:30px}.row-thumb-icon{color:var(--muted);justify-content:center;align-items:center;display:flex}.user-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.user-stats{flex-wrap:wrap;gap:8px;display:flex}.user-stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:var(--muted);align-items:center;gap:6px;padding:6px 12px;font-size:12px;display:flex}.user-stat svg{color:var(--muted-2)}.user-stat strong{color:var(--text);font-size:13.5px}.user-search{width:240px;max-width:100%;position:relative}.user-search svg{color:var(--muted-2);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.user-search input{width:100%;padding-left:32px}.user-list{flex-direction:column;gap:8px;display:flex}.user-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);align-items:center;gap:12px;padding:11px 14px;transition:border-color .12s,transform .12s;display:flex}.user-row:hover{border-color:var(--accent);transform:translateY(-1px)}.user-row-avatar{width:34px;height:34px;font-size:12.5px}.user-row-main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.user-row-top{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.user-row-top strong{font-size:14px;font-weight:600}.user-row-sub{color:var(--muted);align-items:center;gap:10px;font-size:12px;display:flex}.user-row-email{text-overflow:ellipsis;white-space:nowrap;max-width:260px;overflow:hidden}.user-row-storage{flex-shrink:0}.user-row-bar{background:var(--surface-2);border-radius:4px;width:160px;max-width:100%;height:4px;margin-top:1px;overflow:hidden}.user-row-bar>div{background:var(--accent);height:100%}.drive-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px;display:grid}.drive-tile{border-radius:var(--radius);cursor:pointer;border:1px solid #0000;flex-direction:column;align-items:center;gap:6px;padding:10px 6px 8px;display:flex;position:relative}.drive-tile:hover{background:var(--surface);border-color:var(--border)}.drive-tile.selected{background:var(--accent-soft);border-color:var(--accent)}.drive-tile-check{z-index:1;opacity:0;cursor:pointer;padding:6px;transition:opacity .12s;position:absolute;top:2px;left:2px}.drive-tile:hover .drive-tile-check,.drive-tile.selected .drive-tile-check{opacity:1}.drive-tile-check input{width:15px;height:15px;accent-color:var(--accent);cursor:pointer;pointer-events:none}.drive-tile-thumb{aspect-ratio:1;border-radius:var(--radius-sm);background:var(--surface-2);justify-content:center;align-items:center;width:100%;display:flex;overflow:hidden}.drive-tile-thumb img{object-fit:cover;width:100%;height:100%}.drive-tile-icon{color:var(--muted)}.drive-tile-name{text-align:center;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12.5px;overflow:hidden}.drive-tile-menu{position:absolute;top:2px;right:2px}.pdf-viewer{background:#525659;flex-direction:column;flex:1;min-height:0;display:flex;overflow-y:auto}.pdf-viewer .empty,.pdf-viewer .error{background:var(--surface);border-radius:var(--radius);margin:16px}.pdf-viewer-pages{flex-direction:column;align-items:center;gap:16px;padding:16px;display:flex}.pdf-page-canvas{max-width:100%;box-shadow:0 2px 12px #0006}.upload-bar{background:var(--surface-2);border-radius:4px;height:5px;overflow:hidden}.upload-bar>div{background:var(--accent);height:100%;transition:width .15s}.upload-tray{z-index:200;background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius-lg);width:320px;max-width:calc(100vw - 32px);box-shadow:var(--shadow);position:fixed;bottom:20px;right:20px;overflow:hidden}.upload-tray-header{width:100%;color:var(--text);background:var(--surface-2);text-align:left;border:none;border-radius:0;align-items:center;gap:8px;padding:10px 12px;font-size:12.5px;font-weight:600;display:flex}.upload-tray-header span{flex:1}.upload-tray-list{flex-direction:column;gap:10px;max-height:240px;padding:10px 12px;display:flex;overflow-y:auto}.upload-tray-row{color:var(--muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.upload-tray-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.upload-tray-pct{align-self:flex-end;align-items:center;font-size:11px;display:flex}.upload-tray-pct svg{color:var(--success)}.drop-overlay{z-index:150;pointer-events:none;border:2px dashed var(--accent);border-radius:var(--radius-lg);color:var(--accent);background:#0c0e12d9;flex-direction:column;justify-content:center;align-items:center;gap:10px;margin:14px;font-weight:600;display:flex;position:fixed;inset:0}.photo-group{margin-bottom:30px}.photo-group-label{color:var(--muted);margin-bottom:10px;font-size:12.5px;font-weight:600}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;display:grid}.photo-tile{aspect-ratio:1;border-radius:var(--radius);background:var(--surface-2);border:none;padding:0;position:relative;overflow:hidden}.photo-tile img{object-fit:cover;width:100%;height:100%;transition:transform .15s;display:block}.photo-tile:hover img{transform:scale(1.03)}.photo-video-badge{color:#fff;background:#0009;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;display:flex;position:absolute;bottom:6px;right:6px}.photo-shared-badge{color:#fff;background:#0009;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;display:flex;position:absolute;top:6px;left:6px}.lightbox-backdrop{z-index:250;background:#000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.lightbox-content{justify-content:center;align-items:center;width:100vw;height:100vh;display:flex}.lightbox-content img{object-fit:contain;width:100%;height:100%}.lightbox-image{animation:.18s ease-out lightbox-fade-in}@keyframes lightbox-fade-in{0%{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}.lightbox-counter{color:#fff;z-index:2;background:#00000080;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:500;position:absolute;bottom:16px;left:50%;transform:translate(-50%)}.lightbox-topbar{z-index:2;background:linear-gradient(#0000008c,#0000);justify-content:space-between;align-items:center;padding:16px 70px 16px 20px;display:flex;position:absolute;top:0;left:0;right:0}.lightbox-title{color:#fff;text-overflow:ellipsis;white-space:nowrap;max-width:45vw;font-size:13.5px;overflow:hidden}.lightbox-actions{gap:8px;display:flex}.lightbox-actions button{color:#fff;background:#ffffff1a;border-color:#0000}.lightbox-actions button:hover{background:#ffffff2e}.lightbox-close{color:#fff;z-index:3;background:#ffffff14;border:none;border-radius:50%;padding:7px;transition:background .15s,transform .1s;position:absolute;top:14px;right:18px}.lightbox-close:hover{background:#ffffff2e}.lightbox-close:active{transform:scale(.9)}.lightbox-nav{color:#fff;z-index:2;background:#ffffff14;border:none;border-radius:50%;justify-content:center;width:44px;height:44px;transition:background .15s,transform .15s;position:absolute;top:50%;transform:translateY(-50%)}.lightbox-nav:hover{background:#ffffff29}.lightbox-nav:active{transform:translateY(-50%)scale(.88)}.lightbox-prev{left:18px}.lightbox-next{right:18px}.video-player{cursor:pointer;background:#000;width:100%;height:100%;position:relative}.video-player video{object-fit:contain;background:#000;width:100%;height:100%}.video-big-play{color:#fff;background:#0000008c;border:none;border-radius:50%;justify-content:center;width:60px;height:60px;transition:background .15s,transform .15s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.video-big-play:active{transform:translate(-50%,-50%)scale(.9)}.video-controls{background:linear-gradient(#0000,#000000bf);padding:6px 12px 10px;transition:opacity .2s;position:absolute;bottom:0;left:0;right:0}.video-controls-hidden{opacity:0;pointer-events:none}.video-seek{cursor:pointer;background:#ffffff40;border-radius:3px;height:5px;margin-bottom:8px;position:relative}.video-seek-buffered{background:#ffffff59;border-radius:3px;height:100%;position:absolute;top:0;left:0}.video-seek-progress{background:var(--accent);border-radius:3px;height:100%;position:absolute;top:0;left:0}.video-controls-row{align-items:center;gap:10px;display:flex}.video-controls-row button{color:#fff;background:0 0;border:none;padding:4px 6px}.video-controls-row button:hover{background:#ffffff1a}.video-time{color:#fff;white-space:nowrap;font-size:12px}.video-volume{width:70px}.video-controls-spacer{flex:1}.video-speed{position:relative}.video-speed-menu{background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius-sm);flex-direction:column;display:flex;position:absolute;bottom:32px;right:0;overflow:hidden}.video-speed-menu button{color:var(--text);border-radius:0;padding:6px 14px;font-size:12.5px}.video-speed-menu button.active{color:var(--accent)}.editor-modal{z-index:260;background:var(--surface);box-shadow:none;border:none;border-radius:0;flex-direction:column;gap:0;width:100vw;height:100vh;max-height:none;padding:0;display:flex;position:fixed;inset:0;overflow:hidden}.editor-header{border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:10px;padding:12px 16px;display:flex}.editor-header strong{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.editor-status{color:var(--muted);flex:1;font-size:12px}.editor-status-saving{color:var(--accent)}.editor-status-error{color:var(--danger)}.editor-header-actions{flex-shrink:0;gap:8px;display:flex}.editor-body{flex-direction:column;flex:1;min-height:0;padding:0;display:flex;overflow:auto}.editor-body .cm-theme{flex-direction:column;flex:1;min-height:0;display:flex}.editor-modal .cm-editor{flex:1;height:100%;min-height:0}.editor-modal .error{margin:10px 16px 0}.csv-editor{flex-direction:column;flex:1;gap:10px;min-height:0;padding:14px 16px;display:flex;overflow:auto}.csv-table{border-collapse:collapse}.csv-table td{border:1px solid var(--border);padding:0}.csv-table input{background:0 0;border:none;border-radius:0;width:120px}.csv-remove-row{color:var(--muted);background:0 0;border:none;padding:4px}.csv-actions{gap:8px;display:flex}@media (width<=900px){.content{padding:20px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}.search-box{width:200px}}.bottom-nav,.sheet-backdrop{display:none}.back-link{color:var(--muted);align-items:center;gap:5px;margin-bottom:6px;font-size:12.5px;font-weight:500;text-decoration:none;display:inline-flex}.back-link:hover{color:var(--accent)}.profile-page{flex-direction:column;gap:16px;max-width:760px;margin:0 auto;display:flex}.profile-hero{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}.profile-banner{background:linear-gradient(120deg, var(--accent) 0%, var(--accent-soft) 65%, transparent 100%);height:88px;position:relative}.profile-banner:after{content:"";background:radial-gradient(circle at 88% 18%,#ffffff47,#0000 60%);position:absolute;inset:0}.profile-banner-admin{background:linear-gradient(120deg, var(--danger) 0%, var(--accent-soft) 65%, transparent 100%)}.profile-banner-manager{background:linear-gradient(120deg, #ffb86c 0%, var(--accent-soft) 65%, transparent 100%)}.profile-hero-body{align-items:flex-end;gap:16px;margin-top:-40px;padding:0 20px 16px;display:flex;position:relative}.profile-hero .avatar-btn-lg{border:4px solid var(--surface);cursor:default;width:68px;height:68px;font-size:22px;box-shadow:0 2px 10px #0003}.profile-hero-info{flex-direction:column;gap:4px;padding-bottom:4px;display:flex}.profile-hero-info h2{margin:0}.profile-hero-meta{align-items:center;gap:8px;display:flex}.profile-username{color:var(--muted);font-size:13px}.profile-joined{color:var(--muted-2);align-items:center;gap:5px;margin-top:2px;font-size:12px;display:flex}.profile-stats{grid-template-columns:1fr 1fr;align-items:stretch;gap:10px;display:grid}.profile-stat-bar{margin-top:2px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:flex-start;gap:10px;padding:12px;transition:border-color .12s,transform .12s;display:flex}.stat-card:hover{border-color:var(--accent);transform:translateY(-1px)}.stat-icon{border-radius:var(--radius-sm);background:var(--accent-soft);width:32px;height:32px;color:var(--accent);flex-shrink:0;justify-content:center;align-items:center;display:flex}.stat-card>div{flex-direction:column;gap:3px;min-width:0;display:flex}.stat-label{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-size:11px}.stat-value{font-size:14px;font-weight:600}.stat-value em{color:var(--muted);font-style:normal;font-weight:500}.stat-hint{color:var(--muted-2);font-size:11px}.profile-grid{grid-template-columns:1fr 1fr;align-items:start;gap:12px;display:grid}.profile-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;transition:border-color .12s}.profile-section h3{align-items:center;gap:9px;margin-bottom:14px;font-size:13.5px;display:flex}.section-icon{background:var(--accent-soft);width:26px;height:26px;color:var(--accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.profile-form{flex-direction:column;gap:10px;display:flex}.input-icon-field{position:relative}.input-icon-field svg{color:var(--muted-2);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.input-icon-field input{width:100%;padding-left:32px}.pw-strength{align-items:center;gap:8px;margin-top:-2px;display:flex}.pw-strength-bars{flex:1;gap:3px;display:flex}.pw-strength-bars span{background:var(--surface-2);border-radius:3px;flex:1;height:4px}.pw-strength-bars span.filled-weak{background:var(--danger)}.pw-strength-bars span.filled-okay{background:#ffb86c}.pw-strength-bars span.filled-strong{background:var(--success)}.pw-strength-label{color:var(--muted-2);flex-shrink:0;font-size:11px}.form-row{flex-direction:column;gap:6px;display:flex}.form-row label{color:var(--muted);font-size:12px;font-weight:500}.profile-form button{align-self:flex-start}.password-field{display:flex;position:relative}.password-field input{width:100%;padding-right:36px}.password-toggle{color:var(--muted);background:0 0;border:none;padding:6px;position:absolute;top:50%;right:3px;transform:translateY(-50%)}.password-toggle:hover{color:var(--text)}.password-toggle:active{transform:translateY(-50%)scale(.9)}@media (width<=720px){.mobile-topbar{padding:14px 16px;padding-top:max(14px, env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border);z-index:20;justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.mobile-topbar-title{letter-spacing:-.01em;font-size:17px;font-weight:700}.mobile-topbar-actions{align-items:center;gap:6px;display:flex}.app-shell{flex-direction:column}.sidebar{display:none}.mobile-topbar{flex-shrink:0}.content{padding:16px;padding-bottom:calc(84px + env(safe-area-inset-bottom));flex:1;height:auto;min-height:0}.page-header{flex-direction:column;align-items:stretch}.search-box{width:100%}.toolbar{flex-wrap:wrap}.toolbar>button{flex:auto}.view-toggle{margin-left:0}.item-table thead{display:none}.item-table,.item-table tbody,.item-table tr,.item-table td{width:100%;display:block}.item-table tr{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);margin-bottom:10px;padding:12px 14px;box-shadow:0 1px 3px #00000026}.item-table tr:hover td{background:0 0}.item-table td{border:none;justify-content:space-between;align-items:center;gap:10px;padding:4px 0;display:flex}.item-table td[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--muted);flex-shrink:0;font-size:11.5px}.item-table td.row-actions{border-top:1px solid var(--border);justify-content:flex-end;margin-top:4px;padding-top:8px}.item-table td.file-name-cell{justify-content:flex-start;padding-bottom:6px;font-size:14.5px;font-weight:600}.item-table .row-thumb{width:36px;height:36px}.item-table-compact tr{border:none;border-bottom:1px solid var(--border);box-shadow:none;background:0 0;border-radius:0;align-items:center;gap:10px;margin-bottom:0;padding:10px 2px;display:flex}.item-table-compact tr:last-child{border-bottom:none}.item-table-compact td{padding:0}.item-table-compact td[data-label]:before,.item-table-compact td:not(.file-name-cell):not(.row-actions-cell):not(.checkbox-cell){display:none}.item-table-compact td.file-name-cell{flex:1;justify-content:flex-start;min-width:0;padding-bottom:0;font-size:14px;font-weight:500}.item-table-compact td.row-actions-cell{flex:none;justify-content:flex-end;gap:6px;width:auto}.item-table-compact td.checkbox-cell{flex:none;justify-content:center;align-items:center;width:auto;display:flex}.item-table-compact .row-thumb{width:32px;height:32px}.cell-name-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.user-toolbar{flex-direction:column;align-items:stretch}.user-search{width:100%}.user-row{gap:10px;padding:9px 10px}.user-row-sub,.user-row-bar{display:none}.user-row-avatar{width:32px;height:32px;font-size:11.5px}.user-row-top strong{text-overflow:ellipsis;white-space:nowrap;max-width:46vw;font-size:13.5px;overflow:hidden}.bottom-nav{z-index:60;background:var(--surface);border-top:1px solid var(--border);padding:6px 4px;padding-bottom:max(6px, env(safe-area-inset-bottom));display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav-item{color:var(--muted);border-radius:var(--radius-sm);background:0 0;border:none;flex-direction:column;flex:1;align-items:center;gap:3px;padding:6px 2px;font-size:10.5px;font-weight:500;text-decoration:none;display:flex}.bottom-nav-item.active{color:var(--accent)}.sheet-backdrop{z-index:70;background:#06070a99;display:block;position:fixed;inset:0}.sheet{z-index:71;background:var(--surface-2);border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg);padding:10px 12px calc(16px + env(safe-area-inset-bottom));flex-direction:column;gap:2px;animation:.18s ease-out sheet-up;display:flex;position:fixed;bottom:0;left:0;right:0}@keyframes sheet-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}.sheet-handle{background:var(--border);border-radius:4px;width:36px;height:4px;margin:4px auto 10px}.sheet-item{color:var(--text);border-radius:var(--radius-sm);background:0 0;border:none;justify-content:flex-start;align-items:center;gap:12px;padding:13px 10px;font-size:14.5px;font-weight:500;display:flex}.sheet-item:hover{background:var(--surface-3)}.sheet-item-danger{color:var(--danger)}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:4px}.drive-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:6px}.video-volume{width:44px}.lightbox-actions button span{display:none}.lightbox-actions button{padding:7px}.lightbox-title{max-width:32vw}.lightbox-nav{width:38px;height:38px}.lightbox-prev{left:8px}.lightbox-next{right:8px}.csv-table input{width:90px}.auth-card{width:90vw;max-width:340px}.toast-stack{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));max-width:none}.upload-tray{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));width:auto;max-width:none}.profile-stats,.profile-grid{grid-template-columns:1fr}.profile-section{padding:16px}.profile-banner{height:70px}.profile-hero-body{flex-direction:column;align-items:flex-start;gap:10px;margin-top:-30px}.profile-hero .avatar-btn-lg{width:54px;height:54px;font-size:18px}}
