*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:#f0f4f9;color:#202124;font:15px system-ui,sans-serif}
button,input,select{font:inherit}
button{border:0;cursor:pointer;transition:.18s;padding:12px 18px;border-radius:24px;background:#e8f0fe;color:#174ea6;font-weight:600}
button:hover{filter:brightness(.95)}
button:disabled{opacity:.5;cursor:wait}
input,select{border:1px solid #dce2ea;border-radius:12px;padding:13px;background:white;color:#202124}
#login{max-width:440px;margin:35px auto;padding:24px;text-align:center;background:white;border-radius:28px;box-shadow:0 12px 40px #18345b15}
#login img{width:100%;border-radius:20px}
#login input,#login button{width:100%;margin:6px 0}
#login button,#add{background:#0b57d0;color:white}
#error{color:#d93025}
#drive{max-width:1600px;margin:auto;padding:24px}
header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:10px 0 24px}
header strong{font-size:23px;color:#0b57d0;letter-spacing:.3px}
.header-actions{display:flex;gap:10px;align-items:center}
#logout{background:#fce8e6;color:#b3261e}
#space{background:white;padding:18px;border-radius:18px;color:#526174;font-weight:600}
#disk{max-width:100%;background:white}
nav{display:flex;align-items:center;gap:12px;margin:20px 0;flex-wrap:wrap}
#add{margin-left:auto;box-shadow:0 4px 12px #0b57d025}
#search{width:100%;border:0;background:#e2e8f0;border-radius:30px;padding:17px 24px}
#search:focus{outline:2px solid #a8c7fa;background:white}
#path{font-size:21px;font-weight:600;margin:25px 0}
#items{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;background:white;padding:20px;border-radius:24px;min-height:240px}
.tile{min-width:0;background:#f0f4f9;border:1px solid #e5eaf0;border-radius:18px;padding:12px;overflow:hidden;transition:.2s}
.tile:hover{box-shadow:0 5px 18px #18345b18;transform:translateY(-2px)}
.preview{width:100%;height:180px;object-fit:contain;background:#dce5f1;border-radius:12px;display:grid;place-items:center;font-size:46px;cursor:pointer}
.filename{font-size:14px;font-weight:600;overflow-wrap:anywhere;line-height:1.5}
.tile button{font-size:12px;padding:9px 13px;margin:3px;background:white}
.tile button:last-child{color:#b3261e;background:#fce8e6}
progress{width:100%;height:14px;accent-color:#0b57d0;margin-top:16px}
#msg{color:#0b57d0;font-weight:600;overflow-wrap:anywhere}
a{color:#0b57d0}
@media(max-width:600px){
#drive{padding:14px}
header strong{font-size:18px}
.header-actions{gap:5px}
.header-actions button{font-size:12px;padding:10px 12px}
#login{margin:20px 14px;padding:20px}
#items{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px;border-radius:18px}
.preview{height:145px}
.tile{padding:8px;border-radius:14px}
nav{gap:6px}
nav button{font-size:13px;padding:11px 13px}
.filename{font-size:12px}
#path{font-size:18px}
}

.brand {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    font-weight: 700;
    color: #0b57d0;
    line-height: 1.3;
}

.brand-private {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 5px;
}

@media(max-width:600px) {
    header .brand {
        font-size: 18px;
    }
    .brand-private {
        font-size: 10px;
        letter-spacing: 4px;
    }
}

body{background:#f4f4f5} .utility{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#64748b;font-size:12px;margin-bottom:12px}.utility button{width:42px;height:42px;padding:0;font-size:22px;background:white;color:#374151}.utility #logout{background:#fee2e2;color:#b91c1c}header{background:#101010;border-radius:20px;border-bottom:3px solid #ee4d2d;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:24px 8px;color:white;text-align:center}header .brand{font-size:clamp(20px,6vw,34px);color:white;white-space:nowrap;letter-spacing:0} .brand em{font-style:normal;color:#ff6333}.brand-private{color:#d4af37;font-size:11px;letter-spacing:3px}.byline{font-size:12px;color:#eee}#folder{background:#e8e1d6;color:#655238}#add,#login button{background:#d94224;color:white}#back{background:white;color:#374151} .folder-tile .preview{background:#eee9e0;color:#796344}.tile{background:#fafafa}.transfers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.transfer{background:white;border:1px solid #e5e7eb;border-radius:12px;padding:10px;min-width:0;font-size:12px;color:#2563eb}.transfer.download{color:#15803d}.transfer p{margin:5px 0 0;font-size:11px;overflow-wrap:anywhere;color:#475569}.transfer progress{height:5px;margin:5px 0 0}.transfer #msg{font-weight:500;color:#475569}.tile button{margin:2px} @media(max-width:600px){nav{display:grid;grid-template-columns:auto 1fr 1fr}nav button{padding:10px 5px;font-size:12px}#add{margin:0}header{padding:20px 6px}.utility button{width:38px;height:38px}}
.folder-icon{position:relative;font-size:0!important}.folder-icon:before{content:"";position:absolute;width:64px;height:44px;left:50%;top:50%;transform:translate(-50%,-35%);background:currentColor;border-radius:6px}.folder-icon:after{content:"";position:absolute;width:28px;height:12px;left:calc(50% - 32px);top:calc(50% - 23px);background:currentColor;border-radius:5px 5px 0 0}.fc-yellow{color:#F4B400}.fc-blue{color:#4285F4}.fc-green{color:#34A853}.fc-red{color:#EA4335}.fc-purple{color:#A142F4}.fc-orange{color:#FF6D01}.fc-pink{color:#EC4899}.fc-gray{color:#64748B}.folder-color-picker{font-size:12px;padding:7px 10px;border:1px solid #ddd;border-radius:20px;max-width:100%;margin:3px;background:white}
.folder-tile .preview.fc-yellow{color:#F4B400;background:#FFF8DC}.folder-tile .preview.fc-blue{color:#4285F4;background:#E8F0FE}.folder-tile .preview.fc-green{color:#34A853;background:#E6F4EA}.folder-tile .preview.fc-red{color:#EA4335;background:#FCE8E6}.folder-tile .preview.fc-purple{color:#A142F4;background:#F3E8FD}.folder-tile .preview.fc-orange{color:#FF6D01;background:#FFF0E0}.folder-tile .preview.fc-pink{color:#EC4899;background:#FCE7F3}.folder-tile .preview.fc-gray{color:#64748B;background:#E2E8F0}
.folder-tile{position:relative}.folder-tile .folder-drag-handle{position:absolute;top:18px;right:18px;z-index:5;width:34px;height:34px;padding:0;margin:0;border:1px solid #dce2ea;border-radius:10px;background:#fff;color:#64748b;font-size:20px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.folder-tile .folder-drag-handle:active{cursor:grabbing}.folder-dragging{opacity:.5;transform:scale(.97)!important}.folder-drop-target{outline:3px solid #4285F4;outline-offset:-3px;background:#E8F0FE!important}@media(max-width:600px){.folder-tile .folder-drag-handle{top:12px;right:12px;width:36px;height:36px}}
.folder-drag-handle{touch-action:none!important;cursor:grab!important;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}.folder-drag-handle:active{cursor:grabbing!important}.folder-tile{transition:box-shadow .15s ease,opacity .15s ease}
.folder-tools{display:flex!important;align-items:center;justify-content:space-evenly;gap:4px;width:100%;margin:0;padding:0}.folder-tools .folder-tool,.folder-tools .folder-color-tool{display:flex!important;align-items:center;justify-content:center;position:relative;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:inherit;font-size:18px!important;border-radius:8px;cursor:pointer}.folder-tools .folder-delete-tool{color:#dc2626!important}.folder-color-tool .folder-color-picker{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;margin:0!important;cursor:pointer}.folder-tools .folder-tool:hover{background:#8881!important}
#loginForm{display:flex;flex-direction:column;gap:10px}#loginForm #teamLogin{background:#EE4D2D!important;color:#fff!important;width:100%;min-height:46px;border-radius:12px}#loginForm #adminLogin{background:#171717!important;color:#fff!important;width:100%;min-height:46px;border-radius:12px}
body.team-mode #settings,body.team-mode #folder,body.team-mode .folder-tools,body.team-mode .folder-drag-handle{display:none!important}
#adminSettings{width:calc(100% - 32px);max-width:420px;max-height:85vh;overflow:auto;border:0;border-radius:22px;padding:22px;background:#fff;color:#171717;box-shadow:0 20px 80px #0005}#adminSettings::backdrop{background:#0008;backdrop-filter:blur(5px)}#adminSettings .settings-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;font-size:21px}#adminSettings small{display:block;color:#888;font-size:11px;letter-spacing:1.2px;margin:20px 0 10px}#adminSettings>button{display:block;width:100%;text-align:left;background:#f5f5f7;color:#171717;border:0;border-radius:12px;padding:14px;margin:7px 0;font-size:14px}#adminSettings button:disabled{opacity:.45;cursor:not-allowed}#adminSettings #closeSettings{background:#eee;color:#222;border:0;border-radius:50%;width:34px;height:34px;padding:0}
#passwordDialog{width:calc(100% - 32px);max-width:400px;max-height:85vh;overflow:auto;box-sizing:border-box;border:0;border-radius:22px;padding:24px;background:#fff;color:#171717;box-shadow:0 20px 80px #0005}#passwordDialog::backdrop{background:#0009;backdrop-filter:blur(5px)}#passwordForm{display:flex;flex-direction:column;gap:10px}#passwordForm label{font-size:13px;font-weight:600}#passwordForm input{box-sizing:border-box;width:100%;padding:13px;border:1px solid #ddd;border-radius:10px;background:#f7f7f7;color:#171717;font-size:16px}#passwordForm small{color:#888}#passwordError{color:#c62828;font-size:13px;margin:0}#savePassword{background:#171717;color:white;padding:14px;border-radius:12px}#cancelPassword{background:#eee;color:#222;padding:12px;border-radius:12px}
#loginChoices{display:flex;flex-direction:column;gap:12px;width:100%}#teamLogin,#adminLogin{width:100%;min-height:46px;border:0;border-radius:12px;color:#fff!important}#teamLogin{background:#EE4D2D!important}#adminLogin{background:#171717!important}#loginDialog{box-sizing:border-box;width:calc(100% - 36px);max-width:360px;border:0;border-radius:22px;padding:24px;background:#fff;color:#171717;box-shadow:0 20px 80px #0005}#loginDialog::backdrop{background:#0009;backdrop-filter:blur(5px)}#loginDialog h3{text-align:center;margin:0 0 12px}#loginDialog input{box-sizing:border-box;width:100%;font-size:16px;padding:14px;border:1px solid #ddd;border-radius:12px}#loginSubmit{background:#171717;color:#fff;width:100%;padding:14px;border-radius:12px}#loginDialog.team-login #loginSubmit{background:#EE4D2D}#cancelLogin{background:#eee;color:#222;width:100%;padding:12px;border-radius:12px}#loginDialogError{color:#c62828;font-size:13px;margin:0}
