:root{--ink:#18253b;--muted:#8a97aa;--border:#e8edf5;--blue:#5668ec;--blue-deep:#4356e2;--bg:#f6f8fc;--side:#101a31;--radius:17px;--shadow:0 4px 24px rgba(31,43,79,.035)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9ea9ff;outline-offset:3px}svg{flex:none}html,body{min-height:100%}[hidden]{display:none!important}
/* Brand */
.brand{display:inline-flex;align-items:center;gap:11px;color:#fff;font-size:23px;font-weight:750;letter-spacing:-1.3px;white-space:nowrap}.brand strong{font-weight:400;color:#b5c3f4}.brand-dot{color:#8092ff}.brand-mark{height:37px;width:37px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(145deg,#6b7bff,#4b53cd);box-shadow:0 5px 18px #5b6cef35}
/* Authentication */
.auth-body{background:#fff}.auth-layout{display:grid;grid-template-columns:minmax(440px,53%) minmax(410px,1fr);min-height:100vh}.auth-visual{background:radial-gradient(ellipse at 77% 48%,#2c3f8a 0%,transparent 38%),linear-gradient(145deg,#111e45,#111b3c 65%,#151d36);color:#fff;position:relative;padding:45px 8.3% 37px;overflow:hidden;display:flex;flex-direction:column}.auth-visual:before{content:"";position:absolute;inset:0;opacity:.12;background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);background-size:65px 65px;mask-image:linear-gradient(to bottom,transparent,#000 34%,transparent 88%)}.auth-visual .brand{position:relative;z-index:3}.visual-art{position:relative;height:380px;margin:auto 0 10px}.visual-glow{position:absolute;width:430px;height:260px;background:#7b7dfb44;filter:blur(80px);top:73px;left:40px}.glass-folder{position:absolute;display:flex;align-items:center;justify-content:center;z-index:1;border:1px solid #c7d3ff60;box-shadow:0 20px 60px #0005, inset 0 1px 1px #fff5;background:linear-gradient(145deg,#b4c6ff30,#9c9ee720);backdrop-filter:blur(14px);color:#dfebff}.glass-folder-back{width:186px;height:165px;top:50px;left:47%;border-radius:30px;transform:rotate(15deg)}.glass-folder-front{width:220px;height:192px;top:128px;left:24%;border-radius:34px;transform:rotate(-11deg)}.visual-copy{position:relative;z-index:2;margin-top:auto;margin-bottom:55px}.eyebrow-light{font-size:11px;font-weight:800;letter-spacing:2.4px;color:#9daefb}.visual-copy h1{font-size:clamp(36px,3.7vw,59px);line-height:1.14;letter-spacing:-2.4px;margin:22px 0}.visual-copy h1 span{color:#9aa9fa}.visual-copy p{font-size:17px;line-height:1.8;color:#b9c3da;max-width:470px}.visual-footer{display:flex;align-items:center;gap:10px;font-size:12px;color:#b9c7e8;position:relative}.status-dot,.online-dot,.protection-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:#40d3a3;box-shadow:0 0 0 4px #40d3a318}.auth-panel{display:flex;flex-direction:column;min-height:100vh;padding:42px min(8vw,110px) 31px}.auth-topline{display:flex;align-items:center;justify-content:space-between;gap:15px}.pill-secure{font-size:10px;font-weight:800;color:#5670aa;background:#f0f4fc;border-radius:50px;padding:9px 12px;display:inline-flex;align-items:center;gap:7px;letter-spacing:.6px}.auth-domain{color:#9ca5b3;font-size:12px}.auth-content{max-width:460px;margin:auto 0;width:100%}.auth-icon{width:59px;height:59px;color:var(--blue);background:#eef0ff;border-radius:17px;display:flex;align-items:center;justify-content:center;margin-bottom:28px}.auth-content h2{font-size:31px;line-height:1.25;letter-spacing:-1.25px;margin:0 0 15px}.auth-subtitle{line-height:1.75;color:#8995a5;font-size:15px;margin:0 0 30px}.auth-form{display:flex;flex-direction:column}.auth-form label{font-size:13px;font-weight:700;margin:16px 0 9px;color:#354158}.auth-form input{height:52px;border:1px solid #e2e8f1;border-radius:11px;padding:0 15px;color:#253651;background:#fff;outline:none;transition:border .2s,box-shadow .2s}.auth-form input:focus{border-color:#6c7bff;box-shadow:0 0 0 3px #e5e9ff}.auth-form input::placeholder{color:#b7c1ce}.primary-btn{background:var(--blue);border:1px solid var(--blue);display:inline-flex;justify-content:center;align-items:center;gap:9px;color:#fff;font-size:13px;font-weight:750;padding:13px 19px;min-height:44px;border-radius:10px;box-shadow:0 7px 16px #5668ec25;white-space:nowrap;transition:transform .2s,background .2s}.primary-btn:hover{background:var(--blue-deep);transform:translateY(-1px)}.login-btn{height:52px;margin-top:27px}.auth-note{border-top:1px solid #eef1f6;padding-top:23px;margin-top:33px;display:flex;align-items:center;gap:11px;color:#8190a2;font-size:12px;line-height:1.5}.auth-note svg{color:#61a58d}.auth-panel-footer{font-size:12px;color:#a3adbc}.auth-panel-footer span{padding:0 9px}.flash{display:flex;align-items:flex-start;gap:11px;padding:14px 17px;font-size:13px;line-height:1.5;background:#ebfaf4;border:1px solid #c6efdf;color:#287b60;border-radius:10px;margin-bottom:12px}.flash.error{background:#fff0f0;border-color:#fbd6d6;color:#b44b4b}.flash.warning{background:#fff9e8;border-color:#faeac6;color:#9c711c}
/* App shell */
.dashboard-body{background:var(--bg)}.app-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}.sidebar{background:var(--side);color:#a8b2cc;display:flex;flex-direction:column;padding:29px 16px 21px;min-height:100vh}.sidebar .brand{margin:2px 13px 63px;font-size:22px}.sidebar .brand-mark{width:36px;height:36px}.nav-label{font-weight:800;font-size:10px;letter-spacing:1.7px;color:#697995;padding:0 19px;margin-bottom:19px}.second-nav-label{margin-top:37px}.side-nav{display:flex;flex-direction:column;gap:5px}.side-link,.security-menu-item{display:flex;align-items:center;gap:14px;padding:13px 16px;border-radius:10px;min-height:47px;font-size:13px;font-weight:600;transition:background .2s,color .2s}.side-link:hover{background:#1b2946;color:#fff}.side-link.active{background:#29395c;color:#fff}.side-link.active svg{color:#a9b6ff}.security-menu-item{cursor:default;gap:12px;font-size:12px}.security-menu-item svg{color:#91a2bd}.mini-check{margin-left:auto;color:#45d0a0}.mini-check svg{color:#45d0a0}.side-bottom{margin-top:auto}.private-card{border-radius:14px;padding:18px 16px;background:linear-gradient(135deg,#273b69,#1a2a4d);border:1px solid #42527475;margin:0 1px 18px}.private-card-icon{width:33px;height:33px;background:#7585da35;display:flex;align-items:center;justify-content:center;border-radius:9px;color:#b7c6ff;margin-bottom:13px}.private-card strong{display:block;color:#fff;font-size:12px;font-weight:750}.private-card p{font-size:11px;line-height:1.65;color:#b1bfdb;margin:8px 0 0}.logout-link{background:none;border:0;color:#a8b2cc;display:flex;align-items:center;gap:12px;padding:14px 16px;font-size:13px;font-weight:600;width:100%;border-radius:8px}.logout-link:hover{background:#263451;color:#fff}.main-content{min-width:0}.topbar{height:81px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 46px}.topbar-left,.topbar-right,.breadcrumb{display:flex;align-items:center;gap:14px}.breadcrumb{font-size:13px;color:#98a3b4;gap:10px}.breadcrumb strong{font-weight:700;color:#33445f}.breadcrumb svg{color:#b7c1d1}.topbar-right{gap:22px}.online-pill{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:650;color:#607188}.online-dot{height:7px;width:7px}.avatar{display:grid;place-items:center;width:37px;height:37px;background:#eff0ff;color:#5960c9;border:1px solid #e5e8ff;border-radius:12px;font-weight:850;font-size:14px}.mobile-menu{display:none}.content-area{max-width:1550px;padding:44px 46px 23px;margin:0 auto}.welcome{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:31px}.overline{color:#6b77b0;font-weight:800;letter-spacing:1.65px;font-size:10px}.welcome h1{font-size:33px;letter-spacing:-1.1px;margin:10px 0 8px;line-height:1.2}.wave{color:#7488ed;font-size:27px;margin-left:2px}.welcome p{color:#8896aa;font-size:14px;margin:0}.top-upload{min-height:45px}.dashboard-flash{margin-bottom:23px}
/* Stats */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:34px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:22px 22px 20px;box-shadow:var(--shadow);min-width:0}.stat-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;color:#818da2;font-size:12px;font-weight:650}.stat-icon{height:37px;width:37px;display:grid;place-items:center;border-radius:11px;margin-top:-4px}.stat-icon.blue{background:#edf1ff;color:#6b7aeb}.stat-icon.violet{background:#f3edff;color:#9470dc}.stat-icon.amber{background:#fff4e5;color:#e6a956}.stat-icon.green{background:#e8faf3;color:#3bb78e}.stat-value{font-size:30px;letter-spacing:-.9px;font-weight:800;color:#24334b;line-height:1.4;margin:12px 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-date{font-size:17px;letter-spacing:-.25px;line-height:1.7;margin-top:21px}.stat-meta{font-size:11px;color:#a3afbe}.protection-dot{height:10px;width:10px;vertical-align:3px;margin-right:5px}
/* Upload + files */
.section-title-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.section-title-row h2{font-size:19px;letter-spacing:-.6px;margin:0 0 6px;font-weight:800}.section-title-row p{font-size:12px;color:#94a0b0;margin:0}.upload-section{margin-bottom:32px}.upload-panel{padding:20px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.dropzone{border:2px dashed #ced8f3;background:linear-gradient(125deg,#fbfcff,#f7f9ff);border-radius:12px;padding:27px 20px 23px;text-align:center;transition:background .2s,border-color .2s}.dropzone.dragover{border-color:#6575ef;background:#f0f3ff}.dropzone input[type=file]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.drop-icon{height:53px;width:53px;display:grid;place-items:center;color:#6979e8;background:#e9edff;border-radius:16px;margin:0 auto 11px}.dropzone h3{font-size:15px;font-weight:800;margin:7px 0 6px}.dropzone p{color:#93a0b1;font-size:12px;margin:0 0 15px}.choose-btn,.outline-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:10px 15px;background:#fff;border:1px solid #dbe2f4;color:#5062d6;font-size:12px;font-weight:800;cursor:pointer;transition:background .2s}.choose-btn:hover,.outline-btn:hover{background:#f0f2ff}.upload-hint{color:#9ea8b8;font-size:10.5px;margin-top:15px}.upload-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.selected-files{color:#596980;font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis}.small-btn{min-height:40px;font-size:12px;padding:9px 15px}.files-title-row{margin-bottom:19px}.count-pill{font-size:11px;letter-spacing:0;background:#e8ebfb;color:#6470c6;padding:5px 8px;margin-left:6px;vertical-align:2px;border-radius:6px}.search-box{display:flex;align-items:center;gap:10px;border-radius:10px;background:#fff;border:1px solid #e4e9f1;padding:0 13px;color:#a6b0c1;width:270px;height:42px}.search-box input{border:none;background:transparent;outline:none;width:100%;min-width:0;font-size:12px;color:#293d56}.search-box input::placeholder{color:#acb6c6}.file-browser{border:1px solid var(--border);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);overflow:hidden}.filter-row{display:flex;gap:7px;padding:17px 19px;border-bottom:1px solid #edf0f6;overflow-x:auto}.filter-chip{border:0;background:none;font-size:11px;white-space:nowrap;font-weight:750;color:#91a0b2;border-radius:8px;padding:10px 17px}.filter-chip.active{background:#eef0ff;color:#596bea}.filter-chip:hover:not(.active){background:#f4f6fa}.table-wrap{overflow-x:auto}.files-table{width:100%;border-collapse:collapse;text-align:left;table-layout:auto}.files-table th{font-size:10px;letter-spacing:.9px;font-weight:800;color:#a4aebd;background:#fcfdff;padding:14px 20px;border-bottom:1px solid #edf0f6;white-space:nowrap}.files-table td{padding:14px 20px;border-bottom:1px solid #f1f3f8;font-size:12px}.files-table tr:last-child td{border-bottom:0}.files-table tbody tr:hover{background:#fbfcff}.files-table th:first-child{width:46%}.files-table th:nth-child(2){width:16%}.files-table th:nth-child(3){width:23%}.actions-heading{text-align:right}.document-name{display:flex;align-items:center;gap:12px;min-width:180px}.file-type-icon{flex:none;width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#f0f1ff;color:#746fe2}.file-pdf{background:#fff0ee;color:#e96b5b}.file-office{background:#eaf3ff;color:#5384d8}.file-image{background:#eafaf1;color:#50b781}.file-archive{background:#fff5e7;color:#d89d46}.file-title-wrapper{display:flex;flex-direction:column;gap:5px;min-width:0;max-width:350px}.file-title-wrapper strong{font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#34425b;font-weight:750}.file-title-wrapper small{font-size:10px;color:#a0adbb}.cell-muted{color:#8796a8}.row-actions{display:flex;justify-content:flex-end;align-items:center;gap:5px}.table-icon{width:33px;height:33px;border-radius:8px;color:#94a1b4;background:transparent;border:0;display:inline-grid;place-items:center;cursor:pointer}.table-icon:hover{background:#ecf0ff;color:#5668ec}.table-icon.danger:hover{background:#fff0f0;color:#df6770}.delete-form{margin:0}.table-footer{padding:15px 19px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid #eef0f5;color:#a2adbb;font-size:11px}.table-footer span:last-child{display:inline-flex;align-items:center;gap:6px}.empty-state,.no-results{text-align:center;padding:35px 25px 40px}.empty-icon{display:grid;place-items:center;width:70px;height:70px;border-radius:20px;background:#eff2ff;color:#7282e5;margin:0 auto 17px}.empty-state h3{font-size:16px;margin:0 0 8px}.empty-state p{font-size:12px;color:#93a0b3;line-height:1.7;max-width:410px;margin:0 auto 19px}.no-results{font-size:13px;color:#8c98a9}.app-footer{display:flex;justify-content:space-between;gap:20px;margin-top:30px;padding-bottom:10px;color:#a0abbb;font-size:11px}.app-footer span:last-child{display:flex;align-items:center;gap:7px}
/* Preview modal */
.modal{position:fixed;inset:0;background:#0d162dcc;z-index:100;display:flex;align-items:center;justify-content:center;padding:30px}.modal-surface{height:min(85vh,900px);width:min(100%,1050px);background:#fff;border-radius:15px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 18px 80px #0005}.modal-bar{height:55px;display:flex;align-items:center;justify-content:space-between;padding:0 17px 0 24px;border-bottom:1px solid #e8edf5}.modal-bar strong{font-size:13px;max-width:88%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.modal-surface iframe{flex:1;border:0;width:100%;background:#f6f8fc}
@media(max-width:1220px){.app-shell{grid-template-columns:225px minmax(0,1fr)}.sidebar .brand{font-size:19px}.topbar{padding:0 27px}.content-area{padding:34px 27px}.stats-grid{gap:11px}.stat-card{padding:17px 15px}.stat-head{font-size:11px}.stat-value{font-size:25px}.stat-date{font-size:14px}.files-table th,.files-table td{padding:12px 13px}}
@media(max-width:900px){.auth-layout{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{min-height:100vh;padding:25px 28px}.auth-content{margin:auto}.auth-panel-footer{text-align:center}.sidebar{position:fixed;left:-270px;top:0;bottom:0;width:250px;z-index:30;transition:left .2s;box-shadow:10px 0 25px #101b3129}.sidebar.open{left:0}.app-shell{display:block}.mobile-menu{display:inline-flex}.icon-button{border:0;background:transparent;color:#65748c;align-items:center;justify-content:center}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{height:70px}.content-area{padding:28px 23px}.welcome h1{font-size:28px}}
@media(max-width:600px){.auth-panel{padding:22px}.auth-content h2{font-size:28px}.auth-topline{align-items:flex-start}.auth-domain{display:none}.content-area{padding:23px 15px}.topbar{padding:0 16px}.topbar-right{gap:10px}.online-pill{font-size:0}.online-dot{width:8px;height:8px}.welcome{align-items:flex-start;flex-direction:column;gap:20px}.welcome h1{font-size:28px}.welcome p{font-size:13px;line-height:1.6}.top-upload{width:100%}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-head{font-size:10px}.stat-icon{width:32px;height:32px}.stat-value{font-size:22px}.stat-date{font-size:12px}.stat-meta{font-size:10px}.upload-panel{padding:10px}.dropzone{padding:22px 12px}.files-title-row{flex-direction:column;align-items:stretch}.search-box{width:100%}.table-footer span:last-child{display:none}.app-footer{flex-direction:column;align-items:center;text-align:center;gap:8px}.upload-actions{align-items:stretch;flex-direction:column}.upload-actions button{width:100%}.modal{padding:9px}.modal-surface{height:92vh}}
