:root{--bg:#f4f4f5;--surface:#fff;--surface-2:#f4f4f5;--text:#18181b;--muted:#52525b;--border:#e4e4e7;--border-strong:#a1a1aa;--primary:#4f46e5;--primary-hover:#4338ca;--link:#4338ca;--primary-text:#fff;--primary-soft:#eef2ff;--danger:#dc2626;--danger-soft:#fef2f2;--hover:#f4f4f5;--sel:#eef2ff;--folder:#b45309;--c-image:#047857;--c-media:#be185d;--c-archive:#6d28d9;--shadow:0 1px 2px #0000000a, 0 8px 24px #00000014;--radius:10px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#0b0b0d;--surface:#141417;--surface-2:#1c1c20;--text:#f4f4f5;--muted:#a8a8b3;--border:#2e2e33;--border-strong:#5b5b64;--primary:#6366f1;--primary-hover:#818cf8;--link:#a5b4fc;--primary-text:#fff;--primary-soft:#1e1b4b;--danger:#f87171;--danger-soft:#2a1213;--hover:#1c1c20;--sel:#1b1a3a;--folder:#fbbf24;--c-image:#34d399;--c-media:#f472b6;--c-archive:#a78bfa;--shadow:0 1px 2px #0006, 0 8px 24px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}h1,h2,h3{letter-spacing:-.01em;margin:0}code{color:var(--muted);font:.85em ui-monospace,SFMono-Regular,Menlo,monospace}.i{flex:none;width:18px;height:18px}.i.sm{width:15px;height:15px}button,.button,input,select{font:inherit;color:inherit}button,.button{background:var(--surface);border:1px solid var(--border-strong);cursor:pointer;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:6px;height:34px;padding:6px 12px;font-weight:500;text-decoration:none;transition:background .12s,border-color .12s,color .12s;display:inline-flex}button:hover:not(:disabled),.button:hover{background:var(--hover)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--primary);color:var(--primary-text);border-color:var(--primary)}button.primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}button.danger{color:var(--danger)}button.danger:hover:not(:disabled){background:var(--danger-soft);border-color:var(--danger)}button.ghost,.button.ghost{background:0 0;border-color:#0000}button.ghost:hover:not(:disabled),.button.ghost:hover{background:var(--hover)}button.sm,.button.sm{border-radius:7px;width:30px;height:30px;padding:0}button.icon{width:30px;height:30px;color:var(--muted);background:0 0;border-color:#0000;padding:0}button.icon:hover:not(:disabled){color:var(--text)}button.link,button.th{text-align:left;height:auto;font-weight:inherit;background:0 0;border:0;padding:0}button.link:hover{color:var(--link);background:0 0;text-decoration:underline}button.th{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:500}button.th:hover{color:var(--text);background:0 0}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}input:not([type=checkbox]),select,textarea{background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;width:100%;height:36px;padding:0 12px;transition:border-color .12s,box-shadow .12s}input:not([type=checkbox]):focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);outline:none}input[type=checkbox]{width:16px;height:16px;accent-color:var(--primary);cursor:pointer;margin:0}label{gap:6px;margin-bottom:14px;font-weight:500;display:grid}label.check,.chmod label{align-items:center;gap:8px;font-weight:400;display:flex}.muted{color:var(--muted)}.error{color:var(--danger)}.spacer{flex:1}.pad{padding:24px}.center{text-align:center}.login{place-items:center;min-height:100vh;padding:16px;display:grid}.card{background:var(--surface);border:1px solid var(--border);width:min(380px,100%);box-shadow:var(--shadow);border-radius:16px;gap:2px;padding:32px;display:grid}.card h1{color:var(--muted);text-align:center;justify-items:center;gap:8px;margin-bottom:24px;font-size:1rem;font-weight:500;display:grid}.card h1 .logo{height:72px}.card button.primary{height:38px;margin-top:6px}.app{max-width:1100px;min-height:100vh;margin:0 auto;padding:0 20px 96px}.app.dragging:after{content:"Drop files to upload";color:var(--primary);background:color-mix(in srgb, var(--primary) 8%, var(--bg));border:2px dashed var(--primary);pointer-events:none;z-index:50;border-radius:16px;place-items:center;font-size:1.25rem;font-weight:600;display:grid;position:fixed;inset:12px}.topbar{align-items:center;gap:8px;padding:18px 0 14px;display:flex}.brand{align-items:center;gap:10px;font-size:1rem;font-weight:650;display:flex}.logo{width:auto;height:34px;display:block}.brand-name{color:var(--muted);border-left:1px solid var(--border-strong);padding-left:12px;font-weight:500;line-height:1.2}.user{align-items:center;gap:6px;padding:0 8px;display:inline-flex}.crumbs{flex-wrap:wrap;align-items:center;gap:2px;padding:4px 0 14px;font-size:15px;display:flex}.crumbs button{height:28px;color:var(--muted);background:0 0;border:0;border-radius:6px;padding:2px 8px;font-weight:500}.crumbs button:hover{background:var(--hover);color:var(--text)}.crumbs button:last-child{color:var(--text);font-weight:650}.crumbs .sep{color:var(--muted);display:inline-flex}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.searchbox{flex:1;min-width:160px;max-width:340px;position:relative}.searchbox .i{color:var(--muted);pointer-events:none;position:absolute;top:10px;left:11px}.searchbox input{padding-left:34px}.dropdown{position:relative}.menu{z-index:20;background:var(--surface);border:1px solid var(--border);min-width:160px;box-shadow:var(--shadow);border-radius:10px;padding:4px;display:grid;position:absolute;top:calc(100% + 6px);right:0}.menu button{background:0 0;border:0;justify-content:flex-start;height:34px;font-weight:400}.menu button:hover{background:var(--hover)}.banner{background:var(--danger-soft);border:1px solid color-mix(in srgb, var(--danger) 30%, transparent);border-radius:10px;padding:10px 14px}.selbar{z-index:40;background:var(--text);max-width:calc(100% - 24px);color:var(--bg);box-shadow:var(--shadow);border-radius:14px;align-items:center;gap:4px;padding:6px;animation:.15s ease-out rise;display:flex;position:fixed;bottom:20px;left:50%;overflow-x:auto;transform:translate(-50%)}.selbar strong{white-space:nowrap;padding:0 12px;font-weight:600}.selbar button,.selbar .button{color:inherit;background:0 0;border:0;height:32px}.selbar button:hover:not(:disabled),.selbar .button:hover{background:color-mix(in srgb, var(--bg) 18%, transparent)}.selbar button.danger{color:#fca5a5}:root[data-theme=dark] .selbar button.danger{color:#dc2626}@keyframes rise{0%{opacity:0;transform:translate(-50%,8px)}}.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;height:48px;padding:0 14px}thead th{background:var(--surface-2);height:40px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--hover)}tr.selected,tr.selected:hover{background:var(--sel)}.chk{width:44px;padding-right:0}.num{text-align:right;white-space:nowrap}.num button.th{margin-left:auto}td.name{word-break:break-all}td.name .row{align-items:center;gap:12px;display:flex}.ficon{background:var(--surface-2);width:32px;height:32px;color:var(--muted);border-radius:8px;flex:none;place-items:center;display:grid}.ficon.dir{background:color-mix(in srgb, var(--folder) 16%, transparent);color:var(--folder)}.ficon.image{background:color-mix(in srgb, var(--c-image) 14%, transparent);color:var(--c-image)}.ficon.media{background:color-mix(in srgb, var(--c-media) 14%, transparent);color:var(--c-media)}.ficon.archive{background:color-mix(in srgb, var(--c-archive) 14%, transparent);color:var(--c-archive)}.ficon.code{background:var(--primary-soft);color:var(--link)}td.name button.link{font-weight:500}td.actions{white-space:nowrap;width:1%}td.actions>div{opacity:0;justify-content:flex-end;gap:2px;transition:opacity .1s;display:flex}tr:hover td.actions>div,tr:focus-within td.actions>div,tr.selected td.actions>div{opacity:1}td.actions button.sm,td.actions .button.sm{color:var(--muted);background:0 0;border-color:#0000}td.actions button.sm:hover,td.actions .button.sm:hover{background:var(--surface);border-color:var(--border);color:var(--text)}td.actions button.sm.danger:hover{color:var(--danger)}.empty{color:var(--muted);justify-items:center;gap:8px;padding:56px 16px;display:grid}.empty .i{opacity:.5;width:36px;height:36px}.deep{margin-top:20px}.deep h3{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:500}.deep ul{gap:2px;margin:0;padding:0;list-style:none;display:grid}.deep li button{align-items:center;gap:8px;display:flex}.status{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 2px;font-size:12px;display:flex}.usage{align-items:center;gap:8px;display:inline-flex}.usage i{background:var(--border-strong);border-radius:3px;width:80px;height:6px;display:block;overflow:hidden}.usage i b{background:var(--primary);height:100%;display:block}.backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:100;background:#09090b80;place-items:center;padding:16px;animation:.12s ease-out fade;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;width:min(440px,100%);max-height:90vh;padding:20px 22px 22px;animation:.14s ease-out pop;overflow:auto}.modal.wide{width:min(900px,100%)}.modal>header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.modal h2{word-break:break-all;font-size:1.05rem}.modal p{margin:0 0 8px}.modal footer,form footer{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:scale(.97)translateY(4px)}}.picker{border:1px solid var(--border);border-radius:10px;max-height:280px;margin:8px 0;padding:4px;list-style:none;overflow:auto}.picker button{background:0 0;border:0;justify-content:flex-start;width:100%;font-weight:400}.picker button:hover{background:var(--hover)}.picker li.muted{padding:8px 10px}.picker .i{color:var(--folder)}.picker-path{color:var(--muted);word-break:break-all;background:var(--surface-2);border-radius:8px;padding:6px 10px;font:12px ui-monospace,monospace}.preview{place-items:center;display:grid}.preview img,.preview video{border-radius:8px;max-width:100%;max-height:70vh}.chmod{width:auto}.chmod th{text-align:left;padding-right:16px}.chmod td,.chmod th{background:0 0;border:0;height:auto;padding:4px 14px 4px 0}.uploads{background:var(--surface);border:1px solid var(--border);width:min(340px,100% - 40px);box-shadow:var(--shadow);z-index:60;border-radius:14px;position:fixed;bottom:20px;right:20px;overflow:hidden}.uploads>header{align-items:center;gap:4px;padding:8px 8px 8px 14px;display:flex}.uploads ul{max-height:240px;margin:0;padding:0 14px 12px;list-style:none;overflow:auto}.uploads li{grid-template-columns:1fr auto;gap:4px 8px;padding:6px 0;font-size:12px;display:grid}.uploads .name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.uploads progress{appearance:none;background:var(--border-strong);border:0;border-radius:3px;grid-column:1/-1;width:100%;height:6px;overflow:hidden}.uploads progress::-webkit-progress-bar{background:var(--border-strong)}.uploads progress::-webkit-progress-value{background:var(--primary)}.uploads progress::-moz-progress-bar{background:var(--primary)}.uploads progress.error::-webkit-progress-value{background:var(--danger)}.uploads progress.done::-webkit-progress-value{background:var(--c-image)}.editor{flex-direction:column;height:100vh;display:flex}.editor>header{border-bottom:1px solid var(--border);background:var(--surface);align-items:center;gap:10px;padding:10px 16px;display:flex}.cm-host{flex:1;min-height:0}.cm-host .cm-editor{height:100%}.cm-editor.cm-focused{outline:none}@media (width<=720px){.app{padding:0 12px 96px}.hide-sm{display:none}.searchbox{max-width:none}td.actions>div{opacity:1}.user span,.brand-name,.btn-label{display:none}}@media (hover:none){td.actions>div{opacity:1}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
