@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root{--blue:#174bba;--navy:#13264a;--ink:#20304d;--muted:#73819a;--line:#e8edf6;--bg:#f7f9fd;--shadow:0 8px 28px rgba(29,62,122,.07);font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}.brand{display:inline-flex;align-items:center;gap:11px;font:700 20px 'Plus Jakarta Sans',sans-serif;letter-spacing:-.7px;color:var(--navy)}.brand b{color:var(--blue)}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--blue);color:white;box-shadow:0 6px 14px rgba(23,75,186,.24)}.brand-mark svg{width:23px;height:23px;fill:currentColor;stroke:none}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.8px;color:var(--blue)}.eyebrow.light{color:#a6c8ff}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:'Plus Jakarta Sans',sans-serif;letter-spacing:-.6px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;padding:11px 17px;font-size:13px;font-weight:800;white-space:nowrap;transition:.2s}.button svg{width:17px;height:17px}.button.primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px rgba(23,75,186,.15)}.button.primary:hover{background:#0e3d9f}.button.white{background:#fff;color:var(--blue)}.button.white:hover{background:#e9f2ff}.button.outline{background:white;border-color:#dce5f4;color:var(--blue)}.button.outline:hover{background:#f4f8ff}.button.danger{background:#fff2f2;color:#c5333d}.button.danger:hover{background:#ffe5e5}.button.full{width:100%}.notice{padding:13px 16px;border-radius:10px;margin:0 0 19px;font-size:13px;font-weight:700}.notice.success{background:#e8f8ef;color:#1c7b47}.notice.error{background:#fff0ee;color:#b13d36}.stack-form{display:grid;gap:15px}.stack-form label{display:grid;gap:7px;font-size:13px;font-weight:800}.stack-form label small{font-size:11px;font-weight:500;color:var(--muted)}input,select{min-width:0;width:100%;border:1px solid #dbe3f0;border-radius:9px;padding:11px 13px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus{border-color:#83a8ec;box-shadow:0 0 0 3px rgba(39,111,230,.12)}input::placeholder{color:#aab5c8}.helper{font-size:12px;color:var(--muted);margin:-10px 0 0}.mobile-brand{display:none}
/* Authentication */
.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-feature{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:42px min(6vw,80px);background:linear-gradient(155deg,#0d3587,#1857c9 55%,#347ce9);color:white}.brand-light,.brand-light b{color:white}.brand-light .brand-mark{background:rgba(255,255,255,.22);box-shadow:none}.auth-intro{position:relative;z-index:1;margin:auto 0 0;max-width:590px}.auth-intro h1{font-size:clamp(38px,4vw,62px);line-height:1.13;margin:20px 0}.auth-intro p{max-width:470px;line-height:1.7;color:#d3e2ff}.auth-foot{position:relative;z-index:2;margin-top:auto;color:#bad2ff}.auth-art{height:230px;position:relative;margin-top:15px}.art-orbit{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.16)}.art-one{width:350px;height:350px;right:10%;top:-80px}.art-two{width:500px;height:500px;right:-5%;top:-155px}.art-card{position:absolute;display:flex;align-items:center;gap:14px;border-radius:18px;background:white;color:var(--navy);font-weight:800;box-shadow:0 20px 45px rgba(6,29,81,.28)}.art-card svg{color:var(--blue);width:38px;height:38px}.art-card-back{right:7%;top:15px;padding:20px 29px;transform:rotate(10deg);opacity:.8}.art-card-front{right:25%;top:72px;padding:22px 32px;transform:rotate(-7deg)}.art-card small{font-weight:500;color:var(--muted)}.auth-form-wrap{display:grid;place-items:center;padding:50px 24px}.auth-form{width:min(100%,390px)}.auth-form h2{font-size:30px;line-height:1.25;margin:13px 0 9px}.auth-form>.muted{margin-bottom:30px;font-size:14px}.auth-form .stack-form .button{margin-top:8px;padding:14px}.auth-switch{text-align:center;font-size:13px;color:var(--muted);margin:27px 0 0}.auth-switch a{color:var(--blue);font-weight:800}
/* Main shell */
.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;width:245px;height:100vh;flex:none;padding:28px 16px 18px;background:#fff;border-right:1px solid var(--line)}.sidebar>.brand{margin:0 12px 47px}.sidebar-label{padding:0 15px;margin-bottom:13px;color:#a0abc0;font-size:10px;font-weight:800;letter-spacing:1.6px}.side-nav{display:grid;gap:4px}.side-nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:10px;color:#62718c;font-size:13px;font-weight:700}.side-nav a svg{width:19px;height:19px}.side-nav a:hover{background:#f3f7fd;color:var(--blue)}.side-nav a.active{background:#eaf2ff;color:var(--blue);font-weight:800}.sidebar-bottom{margin-top:auto}.storage-mini{padding:16px;border:1px solid var(--line);border-radius:13px;background:#fafcff}.storage-mini-title{display:flex;align-items:center;gap:8px;font-size:11px}.storage-mini-title svg{width:17px;color:var(--blue)}.progress{height:6px;background:#e5ecf7;border-radius:20px;overflow:hidden;margin:14px 0 8px}.progress span{display:block;background:var(--blue);height:100%;min-width:2px;border-radius:20px}.storage-mini small{color:var(--muted);font-size:11px}.sidebar-user{display:flex;align-items:center;gap:9px;margin-top:20px;padding:15px 2px 0;border-top:1px solid var(--line)}.avatar,.topbar-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#dce9ff;color:var(--blue);font-size:14px;font-weight:800}.sidebar-user div{min-width:0}.sidebar-user b,.sidebar-user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user b{font-size:12px}.sidebar-user small{font-size:10px;color:var(--muted);margin-top:3px}.main-area{min-width:0;flex:1}.topbar{height:72px;display:flex;align-items:center;gap:16px;padding:0 clamp(22px,4vw,55px);background:#fff;border-bottom:1px solid var(--line)}.topbar-spacer{flex:1}.topbar-tag{border:1px solid #dce8fa;background:#f4f8ff;color:var(--blue);border-radius:20px;padding:8px 11px;font-size:10px;font-weight:800;letter-spacing:1px}.topbar-avatar{width:36px;height:36px}.page-content{max-width:1450px;margin:auto;padding:34px clamp(22px,4vw,55px) 65px}.welcome{display:flex;justify-content:space-between;min-height:214px;overflow:hidden;background:linear-gradient(110deg,#153d9d,#1c62d9);color:white;border-radius:19px;padding:33px 40px;position:relative}.welcome>div:first-child{position:relative;z-index:1}.welcome h1{font-size:29px;margin:12px 0 8px}.welcome p{font-size:13px;color:#d2e3ff;margin:0 0 23px}.wave{font-family:system-ui}.welcome-graphic{position:absolute;width:320px;height:230px;right:40px;top:0}.welcome-circle{position:absolute;width:265px;height:265px;border-radius:50%;background:rgba(255,255,255,.1);top:-18px;right:13px}.welcome-folder,.welcome-sheet{position:absolute;display:grid;place-items:center;background:white;box-shadow:0 18px 30px rgba(1,23,85,.16)}.welcome-folder{width:130px;height:102px;border-radius:17px;right:40px;top:73px;transform:rotate(9deg);color:#72a8f5}.welcome-folder svg{width:68px;height:68px;fill:#b3d2ff;stroke:#4e8ee8}.welcome-sheet{width:73px;height:92px;border-radius:12px;right:144px;top:48px;transform:rotate(-13deg);color:#3576dc}.welcome-sheet svg{width:43px;height:43px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 33px}.stat-card{display:flex;align-items:center;gap:14px;min-height:94px;padding:17px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:var(--shadow)}.stat-icon{display:grid;place-items:center;flex:none;width:45px;height:45px;border-radius:12px}.stat-icon.blue{background:#e8f0ff;color:#2365cc}.stat-icon.cyan{background:#e6f8fa;color:#1599aa}.stat-icon.violet{background:#f0eaff;color:#7954cf}.stat-icon.orange{background:#fff2e7;color:#e68736}.stat-card strong{display:block;font:800 21px 'Plus Jakarta Sans';line-height:1.2}.stat-card strong small{font-size:12px}.stat-card span:last-child{display:block;font-size:11px;color:var(--muted);margin-top:4px}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:9px 0 29px}.page-heading h1{font-size:29px;margin:9px 0 6px}.page-heading p{font-size:13px;color:var(--muted);margin:0}.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:15px;margin-bottom:34px}.folder-card{position:relative;display:flex;flex-direction:column;min-height:145px;padding:20px;border:1px solid var(--line);border-radius:15px;background:white;box-shadow:var(--shadow)}.folder-card.selected{border-color:#88b0ef;background:#f5f9ff}.folder-card:hover{border-color:#9abcf2}.folder-card .folder-link{display:flex;flex:1;flex-direction:column}.folder-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:15px;border-radius:10px;background:#e9f2ff;color:var(--blue)}.folder-icon svg{fill:#b7d1fa}.folder-card strong{font-size:13px;overflow-wrap:anywhere}.folder-card small{color:var(--muted);font-size:11px;margin-top:5px}.folder-edit{position:absolute;right:11px;top:11px}.files-section{padding:22px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}.section-heading h2{font-size:19px;margin:7px 0 0}.count-pill{background:#eff4fb;color:#667690;border-radius:30px;padding:7px 11px;font-size:11px;font-weight:800}.toolbar{display:flex;gap:9px;align-items:center;margin-bottom:18px}.search-field{position:relative;flex:1;min-width:150px}.search-field svg{position:absolute;left:12px;top:11px;width:17px;height:17px;color:#9babbe}.search-field input{padding-left:38px}.toolbar select{width:auto;min-width:120px;font-size:12px;color:#5e6d86}.filter-button{background:#eaf2ff;color:var(--blue);padding:11px 14px}.view-toggle{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px}.icon-button{display:inline-grid;place-items:center;width:34px;height:34px;flex:none;border:0;border-radius:8px;background:transparent;color:#8291a8;cursor:pointer}.icon-button:hover,.icon-button.selected{background:#eaf2ff;color:var(--blue)}.icon-button svg{width:17px;height:17px}.file-collection{border-top:1px solid var(--line)}.file-card{display:flex;align-items:center;gap:15px;padding:15px 7px;border-bottom:1px solid var(--line)}.file-card:last-child{border-bottom:0}.file-type{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:10px;background:#eaf1ff;color:#3470c5;font-size:10px;font-weight:900}.file-type.pdf{background:#fff0ee;color:#de554b}.file-type.docx{background:#eaf1ff;color:#2b69c6}.file-type.pptx{background:#fff1e7;color:#e17c3a}.file-type.xlsx{background:#e7f7ef;color:#269a66}.file-type.jpg,.file-type.png{background:#f3eaff;color:#905fca}.file-details{min-width:0;flex:1}.file-details h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;margin:0 0 5px}.file-details p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;margin:0}.file-details p span{margin:0 5px}.file-actions{display:flex;gap:2px}.file-collection.grid-layout{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px;border:0}.grid-layout .file-card{display:flex;flex-direction:column;align-items:flex-start;min-height:164px;padding:16px;border:1px solid var(--line);border-radius:12px}.grid-layout .file-type{width:48px;height:48px}.grid-layout .file-details{width:100%;flex:none}.grid-layout .file-actions{width:100%;justify-content:flex-end;margin-top:auto}.empty-state{text-align:center;padding:55px 20px}.empty-illustration{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 18px;border-radius:20px;background:#eaf2ff;color:var(--blue)}.empty-illustration svg{width:34px;height:34px}.empty-state h3{font-size:16px;margin:0 0 7px}.empty-state p{font-size:12px;color:var(--muted);max-width:330px;margin:0 auto 20px;line-height:1.6}.panel{border:1px solid var(--line);border-radius:16px;background:white;padding:25px;box-shadow:var(--shadow)}.profile-panel{max-width:550px}.profile-header{display:flex;align-items:center;gap:14px;padding-bottom:23px;margin-bottom:20px;border-bottom:1px solid var(--line)}.avatar.large{width:54px;height:54px;font-size:22px}.profile-header h2{font-size:18px;margin:0 0 4px}.profile-header p{font-size:12px;color:var(--muted);margin:0}.profile-panel .stack-form{max-width:430px}.profile-panel .stack-form button{justify-self:start}.logout-form{padding-top:20px;margin-top:25px;border-top:1px solid var(--line)}
/* Modals and share pages */
dialog{border:0;border-radius:16px;background:white;color:var(--ink);box-shadow:0 25px 80px rgba(16,37,80,.23)}dialog::backdrop{background:rgba(19,39,77,.52)}.modal{width:min(460px,calc(100vw - 32px));padding:25px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:23px}.modal-head h2{font-size:20px;margin:6px 0 0;overflow-wrap:anywhere}.modal .stack-form .button{margin-top:4px}.manage-sections{display:grid;gap:19px}.manage-sections form+form{padding-top:18px;border-top:1px solid var(--line)}.manage-sections .stack-form button{justify-self:start}.preview-dialog{width:min(900px,calc(100vw - 24px));height:min(88vh,800px);padding:20px}.preview-dialog #preview-content{height:calc(100% - 55px);display:grid;place-items:center;background:#f0f3f9;border-radius:9px;overflow:auto}.preview-dialog iframe{width:100%;height:100%;border:0}.preview-dialog img{max-width:100%;max-height:100%;object-fit:contain}.simple-page{max-width:850px;margin:0 auto;padding:35px 20px 70px}.simple-page>.brand{margin-bottom:27px}.back-link{display:block;width:max-content;font-size:12px;color:var(--blue);font-weight:800;margin-bottom:17px}.simple-card{padding:30px;background:white;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.simple-card h1{font-size:27px;margin:8px 0}.simple-card>.muted{font-size:13px}.sharing-card{max-width:720px}.share-section{display:flex;align-items:flex-start;gap:14px;margin:27px 0 16px}.share-icon{display:grid;place-items:center;flex:none;width:41px;height:41px;border-radius:10px;background:#eaf2ff;color:var(--blue)}.share-icon.link{background:#e9f6f2;color:#169670}.share-section h2{font-size:14px;margin:0 0 5px}.share-section p{font-size:12px;color:var(--muted);line-height:1.6;margin:0}.inline-form,.link-box{display:flex;gap:9px}.inline-form input,.link-box input{flex:1}.recipient-list{margin-top:20px;border-top:1px solid var(--line)}.recipient{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--line)}.recipient>div{flex:1;min-width:0}.recipient strong,.recipient small{display:block;font-size:12px}.recipient small{font-size:11px;color:var(--muted);margin-top:3px}.text-danger{border:0;background:none;color:#c5333d;font-size:12px;font-weight:800}.sharing-card hr{border:0;border-top:1px solid var(--line);margin:28px 0}.sharing-card .button.danger{margin-top:14px}.public-preview{display:grid;place-items:center;min-height:280px;height:min(65vh,600px);margin:25px 0;border-radius:10px;background:#eef2f8;overflow:hidden}.public-preview iframe{width:100%;height:100%;border:0}.public-preview img{max-width:100%;max-height:100%;object-fit:contain}.office-note{display:flex;align-items:center;gap:14px;padding:22px;border-radius:10px;background:#f3f7fd;margin:25px 0}.office-note svg{color:var(--blue);width:35px;height:35px}.office-note p{font-size:13px;color:var(--muted);margin:0;line-height:1.6}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:215px}.toolbar{flex-wrap:wrap}.search-field{flex-basis:100%}.welcome-graphic{right:-20px}}
@media(max-width:760px){.auth-layout{grid-template-columns:1fr}.auth-feature{display:none}.auth-form-wrap{min-height:100vh}.mobile-brand{display:inline-flex;margin-bottom:38px}.sidebar{position:fixed;z-index:10;top:auto;bottom:0;width:100%;height:65px;padding:4px 6px;border-right:0;border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(19,38,74,.05)}.sidebar>.brand,.sidebar-label,.sidebar-bottom{display:none}.side-nav{display:flex;justify-content:space-around;height:100%;gap:0}.side-nav a{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 1px;border-radius:8px;font-size:9px;text-align:center}.side-nav a svg{width:19px;height:19px}.main-area{padding-bottom:65px}.topbar{height:64px;padding:0 20px}.topbar .mobile-brand{display:inline-flex;margin:0;font-size:17px}.topbar-tag{font-size:9px}.page-content{padding:23px 17px 45px}.welcome{padding:27px 24px;min-height:200px}.welcome h1{font-size:24px}.welcome p{max-width:235px;line-height:1.5}.welcome-graphic{opacity:.36;right:-135px}.stats-grid{gap:10px;margin:14px 0 24px}.stat-card{padding:12px;min-height:80px;gap:9px}.stat-icon{width:36px;height:36px}.stat-icon svg{width:18px;height:18px}.stat-card strong{font-size:17px}.stat-card span:last-child{font-size:10px}.files-section{padding:16px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:25px}.toolbar select{flex:1;min-width:100px}.view-toggle{margin-left:auto}.file-card{gap:9px;padding:13px 0}.file-type{width:39px;height:39px}.file-actions{gap:0}.file-actions .icon-button{width:28px}.file-actions svg{width:15px}.file-details h3{font-size:11px}.file-details p{font-size:10px}.folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.folder-card{min-height:130px;padding:14px}.simple-card{padding:20px}.inline-form,.link-box{flex-wrap:wrap}.inline-form button,.link-box button{width:100%}}
@media(max-width:440px){.stat-card{align-items:flex-start;flex-direction:column}.file-card{flex-wrap:wrap}.file-details{min-width:calc(100% - 50px)}.file-actions{width:100%;justify-content:flex-end}.toolbar .filter-button{flex:1}.view-toggle{margin-left:0}.side-nav a{font-size:8px}}
.auth-form>.eyebrow{display:block}@media(max-width:760px){.auth-form .mobile-brand{display:flex;width:max-content}}
