@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#182230;background:#f5f7fb;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer;border:0}
.hidden{display:none!important}.muted{color:#7b8797}.tiny{font-size:12px;color:#9aa4b2;text-align:center;margin-top:22px}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,#e6f0ff,transparent 35%),#f5f7fb}
.auth-card{width:min(100%,410px);background:#fff;border:1px solid #e8edf4;border-radius:22px;padding:38px;box-shadow:0 20px 60px #1e355010}
.brand-mark{width:48px;height:48px;border-radius:15px;background:#182b49;color:white;display:grid;place-items:center;font:800 16px Manrope;margin-bottom:25px;letter-spacing:-1px}
.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#8a96a8;margin:0 0 8px}
h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.6px}h1{font-size:27px;margin-bottom:8px} .auth-card>.muted{font-size:14px;margin-bottom:28px}
label{display:block;font-size:12px;font-weight:700;color:#4e5b6c;margin:16px 0 8px}
input,select{width:100%;border:1px solid #dfe5ed;border-radius:10px;padding:12px 13px;outline:none;background:white;color:#182230}
input:focus,select:focus{border-color:#6487c4;box-shadow:0 0 0 3px #6487c41a}
.primary,.secondary,.ghost{border-radius:10px;padding:11px 16px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.primary{background:#1d3557;color:white}.primary:hover{background:#294a76}.full{width:100%;margin-top:22px;padding:13px}
.secondary{background:#edf2f8;color:#29415f}.ghost{background:transparent;color:#637187}.error{font-size:12px;color:#c03939;margin:10px 0 0;min-height:15px}
.app{max-width:1400px;margin:auto;padding:0 34px 50px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7ebf1}
.brand{display:flex;align-items:center;gap:12px}.brand-mark.small{width:36px;height:36px;border-radius:11px;margin:0;font-size:12px}.brand strong{font:700 14px Manrope;display:block}.brand span{font-size:11px;color:#8994a3}
.top-actions{display:flex;align-items:center;gap:18px}.user-email{font-size:12px;color:#7c8795}
.storage-panel{background:#fff;border:1px solid #e8edf3;border-radius:16px;padding:22px 24px;margin:27px 0 34px}
.storage-head,.storage-foot{display:flex;align-items:center;justify-content:space-between}.storage-head h2{font-size:19px;margin:0}.storage-numbers{text-align:right}.storage-numbers strong{font:700 19px Manrope;display:block}.storage-numbers span,.storage-foot{font-size:11px;color:#8a95a4}
.progress-track{height:8px;background:#edf1f6;border-radius:99px;margin:18px 0 10px;overflow:hidden}.progress-fill{height:100%;width:0;background:#5685c7;border-radius:99px;transition:width .3s}.progress-fill.near-limit{background:#d58a39}
.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.toolbar h2{font-size:21px;margin-bottom:4px}.toolbar p{font-size:12px;margin:0}.toolbar-actions{display:flex;gap:10px;align-items:center}.upload-btn{cursor:pointer}
.library{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px}.sidebar,.content-area{background:#fff;border:1px solid #e8edf3;border-radius:15px;padding:16px}.sidebar{align-self:start;min-height:240px}.folder-link{width:100%;text-align:left;background:transparent;color:#647286;border-radius:8px;padding:10px;font-size:12px}.folder-link.active,.folder-link:hover{background:#edf3fb;color:#25466f;font-weight:700}.side-label{font-size:9px;letter-spacing:1.4px;color:#a0a9b5;font-weight:700;margin:23px 10px 8px}.folder-row{display:flex;align-items:center}.folder-row .folder-link{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-delete{background:transparent;color:#a0a9b5;padding:5px 8px}.mini-delete:hover{color:#c44}
.content-area{min-height:350px}.content-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.content-head>div:first-child{min-width:0;flex:1 1 auto}.content-head h3{font-size:16px;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content-head p{font-size:11px;margin:0}.search{width:175px;padding:8px 11px;font-size:12px}
.file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:13px}.file-card{border:1px solid #e9edf2;border-radius:11px;overflow:hidden;min-width:0}.file-preview{height:130px;background:#f0f3f7;display:grid;place-items:center;overflow:hidden}.file-preview img{width:100%;height:100%;object-fit:cover}.video-thumb{width:100%;height:100%;display:grid;place-content:center;justify-items:center;color:#8a9bb1;gap:8px}.video-thumb span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#dfe7f1;color:#38577e}.video-thumb small{font-size:9px;letter-spacing:1.5px}
.file-info{padding:11px 11px 7px}.file-info strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-info span{display:block;color:#8b96a5;font-size:10px;margin-top:5px}.file-actions{display:flex;justify-content:flex-end;gap:5px;padding:2px 8px 9px}.file-actions button{width:28px;height:27px;border-radius:7px;background:#f0f3f7;color:#50627a}.file-actions button:hover{background:#e2eaf4}.file-actions .danger:hover{background:#fff0f0;color:#c33}
.empty{text-align:center;padding:55px 15px;color:#536174}.empty-icon{font-size:34px;color:#9eacbd;margin-bottom:10px}.empty strong{font:700 13px Manrope}.empty p{font-size:11px;margin:6px}
.status{background:#eef5ff;color:#345a88;border-radius:9px;padding:10px 12px;font-size:11px;margin-bottom:14px}.error-status{background:#fff1f1;color:#a33}
.dialog{border:1px solid #e5eaf0;border-radius:16px;padding:24px;width:min(92vw,390px);box-shadow:0 20px 70px #10213b30}.dialog::backdrop{background:#15223866}.dialog h3{font-size:18px;margin-bottom:5px}.dialog p{font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#1e2e45;color:#fff;border-radius:10px;padding:12px 17px;font-size:12px;transition:.2s;max-width:90vw;z-index:5}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.bad{background:#9e3434}
@media(max-width:760px){.app{padding:0 14px 30px}.topbar{height:65px}.user-email{display:none}.storage-panel{margin:18px 0 24px;padding:18px}.toolbar{align-items:flex-start;gap:14px;flex-direction:column}.toolbar-actions{width:100%}.toolbar-actions>*{flex:1}.library{grid-template-columns:1fr;gap:12px}.sidebar{min-height:0;padding:10px;display:flex;gap:6px;overflow:auto}.side-label{display:none}.folder-list{display:flex;gap:4px}.folder-row{min-width:max-content}.folder-row .folder-link{width:auto}.mini-delete{display:none}.content-head{gap:10px;align-items:flex-start;flex-direction:column}.search{width:100%}.file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.file-preview{height:115px}.auth-card{padding:28px 23px}}

/* Full-screen media preview */
.preview-trigger{border:0;padding:0;width:100%;cursor:zoom-in;text-align:initial}
.preview-dialog{border:0;padding:0;background:transparent;width:min(96vw,1100px);max-width:1100px;max-height:94vh;overflow:visible}
.preview-dialog::backdrop{background:rgba(9,16,28,.88);backdrop-filter:blur(4px)}
.preview-shell{background:#111827;border:1px solid #344154;border-radius:14px;overflow:hidden;box-shadow:0 24px 80px #0008}
.preview-header{height:54px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#172235;color:#fff}
.preview-title-wrap{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.preview-header strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preview-counter{font-size:11px;color:#9fb0c7;white-space:nowrap;flex-shrink:0}
.preview-close{width:32px;height:32px;border-radius:8px;background:#2b3a50;color:#fff;font-size:23px;line-height:1}
.preview-stage{position:relative;background:#0b1220}
.preview-content{min-height:180px;max-height:calc(94vh - 54px);display:flex;align-items:center;justify-content:center;padding:14px;background:#0b1220;overflow:hidden;touch-action:pan-y}
.preview-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:42px;border-radius:50%;background:rgba(17,24,39,.72);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:26px;line-height:1;display:grid;place-items:center;backdrop-filter:blur(4px);transition:opacity .15s,background .15s}
.preview-nav.prev{left:10px}
.preview-nav.next{right:10px}
.preview-nav:hover:not(:disabled){background:rgba(29,53,87,.92)}
.preview-nav:disabled{opacity:.25;cursor:default}
.slide-next{animation:slideFromRight .18s ease-out}
.slide-prev{animation:slideFromLeft .18s ease-out}
@keyframes slideFromRight{from{opacity:.4;transform:translateX(36px)}to{opacity:1;transform:translateX(0)}}
@keyframes slideFromLeft{from{opacity:.4;transform:translateX(-36px)}to{opacity:1;transform:translateX(0)}}
.full-preview-image{display:block;max-width:100%;max-height:calc(94vh - 82px);width:auto;height:auto;object-fit:contain}
.full-preview-video{display:block;width:100%;max-height:calc(94vh - 82px);background:#000}
.preview-loading{color:#d6deea;font-size:13px;padding:30px;text-align:center}

/* Lazy thumbnail placeholder */
.image-placeholder{width:100%;height:100%;position:relative;display:grid;place-items:center;background:#edf1f6;color:#9eacbd}
.image-placeholder>span{font-size:25px}
.image-placeholder img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .18s}
.image-placeholder img.loaded{opacity:1}


/* MOBILE-FIRST POLISH — touch targets, safe areas and compact layouts */
:root{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  --tap:44px;
}
html{min-height:100%;scroll-behavior:smooth}
body{padding-bottom:env(safe-area-inset-bottom);overscroll-behavior-y:contain}
button,.upload-btn,.folder-link,.file-preview{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible,.upload-btn:focus-within{
  outline:3px solid #8db5ee;outline-offset:2px
}
.file-actions button,.mini-delete,.preview-close{min-width:var(--tap);min-height:var(--tap)}
.file-actions{gap:4px}
.file-actions button{width:var(--tap);height:var(--tap);font-size:17px}
.folder-link{min-height:var(--tap);display:flex;align-items:center}
.topbar{position:sticky;top:0;z-index:10;background:#f5f7fb}
.storage-panel{scroll-margin-top:85px}
.file-card{min-width:0}
.file-preview{display:block;min-height:110px;background:#f0f3f7}
.file-info{min-width:0}
.file-info strong{overflow-wrap:anywhere}
.dialog{max-width:calc(100vw - 28px)}
.preview-dialog{width:calc(100vw - 20px);max-width:1100px}
.preview-content{padding:8px}
@media(max-width:760px){
  body{background:#f5f7fb}
  .app{width:100%;max-width:none;padding:0 12px calc(24px + env(safe-area-inset-bottom))}
  .topbar{height:62px;margin:0 -12px;padding:0 14px}
  .brand{gap:9px}
  .brand-mark.small{width:34px;height:34px}
  .brand strong{font-size:13px}
  .brand span{font-size:10px}
  .top-actions{gap:4px}
  .top-actions .ghost{min-height:40px;padding:8px 10px;font-size:12px}
  .storage-panel{margin:14px 0 22px;padding:15px;border-radius:13px}
  .storage-head h2{font-size:17px}
  .storage-numbers strong{font-size:17px}
  .progress-track{height:7px;margin:14px 0 9px}
  .storage-foot{font-size:10px}
  .toolbar{margin-bottom:14px;gap:12px}
  .toolbar h2{font-size:19px}
  .toolbar p{font-size:11px;line-height:1.45}
  .toolbar-actions{display:grid;grid-template-columns:.9fr 1.1fr;gap:8px}
  .toolbar-actions .primary,.toolbar-actions .secondary{min-height:46px;padding:10px 9px;font-size:12px}
  .library{display:flex;flex-direction:column;gap:10px}
  .sidebar{display:block;min-height:0;padding:8px;border-radius:12px;overflow:hidden}
  .sidebar>.folder-link{display:inline-flex;width:auto;white-space:nowrap;padding:0 13px}
  .side-label{display:none}
  .folder-list{display:flex;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:0 0 1px}
  .folder-list::-webkit-scrollbar{display:none}
  .folder-row{flex:0 0 auto;min-width:0;max-width:190px;background:#f7f9fc;border-radius:9px}
  .folder-row .folder-link{width:auto;min-width:0;max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 11px}
  .mini-delete{display:grid;place-items:center;min-width:36px;min-height:44px;padding:0}
  .content-area{padding:12px;border-radius:12px;min-height:280px}
  .content-head{flex-direction:row;align-items:center;gap:8px;margin-bottom:13px}
  .content-head h3{font-size:15px}
  .content-head p{font-size:10px}
  .search{width:min(48%,190px);min-width:120px;height:42px;padding:9px 10px;font-size:12px}
  .file-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .file-card{border-radius:10px}
  .file-preview{height:auto;aspect-ratio:1.15/1;min-height:0}
  .file-info{padding:9px 9px 5px}
  .file-info strong{font-size:11px;line-height:1.35;min-height:29px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .file-info span{font-size:9px;margin-top:4px}
  .file-actions{justify-content:space-between;padding:2px 5px 6px;gap:2px}
  .file-actions button{flex:1;min-width:0;width:auto;height:40px;min-height:40px;border-radius:8px}
  .empty{padding:42px 12px}
  .status{font-size:11px;line-height:1.45}
  .dialog{position:fixed;margin:auto;padding:20px;border-radius:16px}
  .dialog input,.dialog select{min-height:46px;font-size:16px}
  .dialog-actions button{min-height:44px}
  .preview-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 16px);margin:auto}
  .preview-shell{border-radius:12px}
  .preview-header{height:50px;padding:0 10px}
  .preview-nav{width:38px;height:38px;font-size:23px}
  .preview-nav.prev{left:6px}
  .preview-nav.next{right:6px}
  .preview-content{max-height:calc(100dvh - 76px);min-height:140px}
  .full-preview-image{max-width:100%;max-height:calc(100dvh - 100px);object-fit:contain}
  .full-preview-video{max-height:calc(100dvh - 100px)}
  .toast{bottom:calc(14px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 28px);text-align:center}
}
@media(max-width:360px){
  .app{padding-left:9px;padding-right:9px}
  .topbar{margin-left:-9px;margin-right:-9px;padding:0 10px}
  .brand strong{font-size:12px}
  .toolbar-actions .primary,.toolbar-actions .secondary{font-size:11px}
  .file-grid{gap:7px}
  .file-actions button{height:38px;min-height:38px}
}
@media(min-width:761px) and (max-width:1024px){
  .app{padding-left:22px;padding-right:22px}
  .library{grid-template-columns:185px minmax(0,1fr);gap:14px}
  .file-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}
}

/* File selection and compact per-photo action menu */
.content-tools{display:flex;align-items:center;gap:10px}
.select-all{display:flex;align-items:center;gap:6px;color:#536174;font-size:12px;white-space:nowrap;cursor:pointer}
.select-all input,.file-select input{accent-color:#203b5e;width:17px;height:17px}
.file-card{position:relative}
.file-select{position:absolute;top:9px;left:9px;z-index:4;width:28px;height:28px;border-radius:9px;border:2px solid #284c77;background:rgba(255,255,255,.94);color:#fff;font-size:14px;font-weight:800;line-height:1;display:grid;place-items:center;box-shadow:0 2px 8px #14243a22;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .12s,background .12s}
.file-grid.is-selecting .file-select,.file-card.is-selected .file-select,.file-card:hover .file-select,.file-card:focus-within .file-select{opacity:1;pointer-events:auto}
.file-card.is-selected .file-select{background:#1d3557;border-color:#1d3557}
.file-grid.is-selecting .preview-trigger{cursor:pointer}
.file-card.is-selected{outline:2px solid #284c77;outline-offset:1px}
.file-menu-wrap{position:absolute;right:9px;top:9px;z-index:5}
.file-menu-trigger{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.96);color:#182b45;font-size:23px;line-height:1;box-shadow:0 2px 9px #14243a2b;display:grid;place-items:center}
.file-menu{display:none;position:absolute;right:0;top:40px;width:158px;padding:5px;background:#fff;border:1px solid #e8edf3;border-radius:12px;box-shadow:0 10px 28px #15263c26}
.file-menu.open{display:block}
.file-menu button{width:100%;min-height:40px;display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:8px;text-align:left;color:#26384f;background:transparent;font-size:17px}
.file-menu button span{font-size:12px}
.file-menu button:hover{background:#f2f5f9}
.file-menu button.danger{color:#c03939}
.bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;margin:0 0 13px;padding:9px 10px;border:1px solid #dce5ef;border-radius:11px;background:#f7f9fc}
.bulk-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1 1 auto;min-width:0}
.bulk-selection-actions,.bulk-actions{display:flex;align-items:center;gap:6px}
.bulk-bar strong{font-size:12px;color:#233a57;white-space:nowrap}
.bulk-bar button{min-height:36px;padding:7px 11px;border-radius:8px;background:#e9eff6;color:#294461;font-size:12px}
.bulk-bar button.bulk-link{min-height:32px;padding:5px 10px;background:#fff;border:1px solid #d7e1ec;color:#203b5e;font-weight:600}
.bulk-bar button.danger{background:#fff0f0;color:#b83232}
@media(max-width:760px){
  .content-tools{width:auto;flex:0 0 auto;justify-content:flex-end;gap:7px}
  .content-tools .search{width:clamp(135px,42vw,175px);min-width:0;height:38px;padding:7px 10px}
  .select-all{font-size:11px}
  .file-select{top:7px;left:7px;width:30px;height:30px}
  .file-menu-wrap{top:7px;right:7px}
  .file-menu-trigger{width:35px;height:35px}
  .bulk-bar{position:sticky;top:68px;z-index:8;gap:8px;padding:8px}
  .bulk-head,.bulk-actions{width:100%}
  .bulk-actions button{flex:1;min-width:0;padding:7px 5px;font-size:11px}
  .bulk-bar button.bulk-link{flex:0 0 auto;min-height:32px;padding:5px 10px;font-size:11px}
}

/* Cleaner folder navigation + selection lives inside each file's kebab menu */
.sidebar{background:transparent;border:0;padding:0;min-height:0;align-self:stretch}
.folder-nav-title{font:700 10px Manrope,sans-serif;color:#8a96a8;letter-spacing:1.1px;text-transform:uppercase;margin:0 0 9px 3px}
.folder-nav-items{display:flex;flex-direction:column;gap:5px}
.sidebar>.folder-nav-items>.folder-link,.folder-row .folder-link{min-height:42px;padding:0 12px;gap:8px;display:flex;align-items:center;border-radius:11px;background:#fff;color:#58677a;border:1px solid #e9edf3;font-size:12px}
.sidebar .folder-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar>.folder-nav-items>.folder-link.active,.folder-row.active .folder-link{background:#eaf1fa;color:#203b5e;border-color:#dce7f5;font-weight:700}
.folder-list{display:flex;flex-direction:column;gap:5px}
.folder-row{position:relative;display:flex;align-items:center;gap:3px;min-width:0;border-radius:11px}
.folder-row .folder-link{flex:1;min-width:0;text-align:left}
.folder-menu-wrap{position:relative;flex:0 0 34px}
.folder-menu-trigger{width:34px;height:40px;border-radius:9px;background:transparent;color:#7d8999;font-size:21px}
.folder-menu-trigger:hover{background:#edf2f8;color:#203b5e}
.folder-menu{display:none;position:absolute;right:0;top:39px;z-index:12;width:145px;padding:5px;background:#fff;border:1px solid #e8edf3;border-radius:11px;box-shadow:0 10px 28px #15263c26}
.folder-menu.open{display:block}
.folder-menu button{width:100%;min-height:40px;display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;text-align:left;background:transparent;color:#bd3e3e;font-size:16px}
.folder-menu button span{font-size:12px}
.folder-menu button:hover{background:#fff1f1}
.file-card.is-selected{outline:2px solid #284c77;outline-offset:1px;background:#f6f9fd}
@media(max-width:760px){
  .sidebar{display:block;overflow:visible;padding:0;background:transparent;border:0}
  .folder-nav-title{margin:0 0 7px 2px}
  .folder-nav-items{display:flex;flex-direction:row;align-items:center;gap:7px;overflow-x:auto;overflow-y:visible;padding:1px 1px 5px;scrollbar-width:none}
  .folder-nav-items::-webkit-scrollbar{display:none}
  .sidebar>.folder-nav-items>.folder-link,.folder-row{flex:0 0 auto;min-width:0;width:auto;max-width:210px}
  .sidebar>.folder-nav-items>.folder-link,.folder-row .folder-link{min-height:42px;width:auto;max-width:170px;padding:0 11px;background:#fff;border:1px solid #e7ecf3;border-radius:12px;white-space:nowrap}
  .folder-row{gap:0;background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding-right:2px}
  .folder-row .folder-link{border:0;flex:1}
  .folder-row.active{background:#eaf1fa;border-color:#dce7f5}
  .folder-row.active .folder-link{background:transparent}
  .folder-menu-wrap{flex-basis:32px}
  .folder-menu-trigger{height:40px;width:32px}
  .folder-menu{top:39px}
  .content-tools{width:auto}
  .content-tools .search{width:clamp(135px,42vw,175px);max-width:175px}
}

/* Mobile-first folder strip directly below storage + floating add menu */
.folder-strip{margin:-8px 0 24px;padding:0;}
.folder-nav-items{display:flex;align-items:center;gap:8px;overflow-x:auto;overflow-y:visible;padding:2px 1px 7px;scrollbar-width:none;}
.folder-nav-items::-webkit-scrollbar{display:none}
.folder-nav-items>.folder-link,.folder-row,.folder-row .folder-link{flex:0 0 auto;}
.folder-nav-items>.folder-link{width:auto;min-height:42px;padding:0 14px;display:flex;align-items:center;gap:8px;border-radius:12px;background:#fff;color:#58677a;border:1px solid #e7ecf3;font-size:12px;white-space:nowrap;}
.folder-nav-items>.folder-link.active,.folder-row.active{background:#eaf1fa;border-color:#dce7f5;color:#203b5e;font-weight:700}
.folder-list{display:flex;flex-direction:row;gap:8px;}
.folder-row{background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding-left:10px;}
.folder-row .folder-link{width:auto;max-width:170px;min-height:42px;padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:transparent;border:0;}
.toolbar{margin-bottom:12px}
.fab-wrap{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:50;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.fab{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:#1d3557;color:#fff;font-size:34px;font-weight:400;line-height:1;box-shadow:0 8px 24px #172b4660;transition:transform .18s,background .18s}
.fab.is-open{transform:rotate(45deg);background:#294a76}
.fab-menu{display:none;min-width:176px;padding:7px;background:#fff;border:1px solid #e6ebf2;border-radius:16px;box-shadow:0 12px 35px #14243a2b}
.fab-menu.open{display:block;animation:fabIn .15s ease-out}
.fab-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:9px 12px;border-radius:10px;background:transparent;color:#203854;text-align:left;font-size:20px}
.fab-menu button span{font-size:13px;font-weight:700}
.fab-menu button:active{background:#edf3fb}
@keyframes fabIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){
 .folder-strip{margin:-9px 0 20px;}
 .folder-nav-items{gap:7px;padding-bottom:5px}
 .folder-nav-items>.folder-link,.folder-row .folder-link{min-height:42px}
 .folder-row{gap:0;padding-right:2px}
 .folder-row .folder-link{max-width:140px}
 .folder-menu-wrap{flex-basis:30px}
 .folder-menu-trigger{height:40px;width:30px}
 .toolbar{margin-bottom:10px}
 .toolbar h2{font-size:19px}
 .toolbar p{font-size:11px}
 .fab-wrap{right:18px;bottom:calc(18px + env(safe-area-inset-bottom));}
 .fab{width:58px;height:58px;font-size:33px}
 .fab-menu{min-width:168px}
}
