@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-B2xhLi22.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-CMZtQduZ.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-CGAr0uHJ.woff2) format("woff2-variations");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CaVNZxsx.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--navy: #111936;--navy-2: #1c2850;--violet: #6951f5;--violet-light: #8975ff;--violet-soft: #eeebff;--blue: #4779f5;--bg: #f5f6fc;--surface: #ffffff;--text: #171d36;--text-2: #737b95;--border: #e6e8f2;--success: #20b981;--success-soft: #e3f7ef;--warning: #f0a34a;--warning-soft: #fdf1e2;--error: #e45d6b;--error-soft: #fce8ea;--radius: 14px;--radius-sm: 10px;--shadow: 0 1px 2px rgba(17, 25, 54, .04), 0 4px 16px rgba(17, 25, 54, .05);--sidebar-w: 248px;font-family:Inter Variable,Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text);background:var(--bg);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}h1,h2,h3{margin:0;font-weight:650;letter-spacing:-.01em}h1{font-size:24px}h2{font-size:17px}h3{font-size:15px}p{margin:0}.app{display:flex;min-height:100vh}.sidebar{width:var(--sidebar-w);flex-shrink:0;background:var(--navy);color:#c9cde0;display:flex;flex-direction:column;padding:20px 14px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:21px;padding:4px 10px 22px}.brand svg{width:30px;height:30px}.nav{display:flex;flex-direction:column;gap:2px}.nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;font-weight:500;transition:background .15s,color .15s}.nav a:hover{background:#ffffff0f;color:#fff}.nav a.active{background:var(--violet);color:#fff}.nav .badge{margin-left:auto;background:#ffffff29;color:#fff}.nav a.active .badge{background:#ffffff40}.sidebar-footer{margin-top:auto;display:flex;flex-direction:column;gap:10px}.storage-card{background:var(--navy-2);border-radius:12px;padding:14px;font-size:12.5px}.storage-card strong{color:#fff;display:block;margin-bottom:4px;font-size:13px}.user-chip{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px}.user-chip:hover{background:#ffffff0f}.avatar{width:32px;height:32px;border-radius:50%;background:var(--violet);color:#fff;display:grid;place-items:center;font-weight:600;flex-shrink:0}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:14px;padding:14px 28px;background:#f5f6fcd9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:sticky;top:0;z-index:10}.content{padding:8px 28px 48px;max-width:1360px;width:100%}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:10px 0 22px;flex-wrap:wrap}.page-head p{color:var(--text-2);margin-top:4px}.search{flex:1;max-width:560px;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 14px;height:42px}.search input{border:0;outline:0;flex:1;background:transparent;height:100%}.search svg{color:var(--text-2);flex-shrink:0}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid #eef0f7}.card-pad{padding:20px}.card-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 6px;gap:12px}.muted{color:var(--text-2)}.small{font-size:12.5px}.row{display:flex;align-items:center;gap:10px}.stack{display:flex;flex-direction:column;gap:12px}.grow{flex:1;min-width:0}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link{color:var(--violet);font-weight:550;display:inline-flex;align-items:center;gap:4px;cursor:pointer}.divider{height:1px;background:var(--border);margin:6px 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;border:1px solid transparent;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,opacity .15s}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--violet);color:#fff}.btn-primary:hover:not(:disabled){background:#5a42e8}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.btn-secondary:hover:not(:disabled){border-color:#cfd3e6}.btn-ghost{background:transparent;color:var(--text-2)}.btn-ghost:hover:not(:disabled){background:#eceef7;color:var(--text)}.btn-danger{background:var(--error-soft);color:#b8394a}.btn-sm{height:32px;padding:0 12px;font-size:13px;border-radius:8px}.btn-icon{width:38px;padding:0}.btn-success{background:var(--success);color:#fff}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:600;background:#eef0f7;color:var(--text-2);white-space:nowrap}.badge-success{background:var(--success-soft);color:#13865d}.badge-warning{background:var(--warning-soft);color:#b56b12}.badge-error{background:var(--error-soft);color:#b8394a}.badge-violet{background:var(--violet-soft);color:var(--violet)}.badge-blue{background:#e7eefe;color:#2d5fd6}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12.5px;color:var(--text-2);font-weight:550}.input,.select,.textarea{height:40px;border:1px solid var(--border);border-radius:10px;padding:0 12px;background:#fff;outline:none;width:100%;transition:border-color .15s,box-shadow .15s}.textarea{height:auto;padding:10px 12px;resize:vertical;min-height:70px}.input:focus,.select:focus,.textarea:focus{border-color:var(--violet-light);box-shadow:0 0 0 3px #6951f51f}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .full{grid-column:1 / -1}.tabs{display:inline-flex;background:#eceef7;border-radius:12px;padding:4px;gap:2px}.tabs button{border:0;background:transparent;padding:7px 16px;border-radius:9px;cursor:pointer;font-weight:550;color:var(--text-2)}.tabs button.active{background:var(--violet);color:#fff}.icon-tile{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex-shrink:0;background:var(--violet-soft);color:var(--violet)}.empty{text-align:center;padding:48px 20px;color:var(--text-2)}.empty svg{color:var(--violet-light);margin-bottom:10px}.empty h3{color:var(--text);margin-bottom:6px}.error-banner{background:var(--error-soft);color:#9d2d3c;padding:10px 14px;border-radius:10px}.info-banner{background:var(--violet-soft);color:#4b37c9;padding:12px 14px;border-radius:10px;display:flex;gap:10px;align-items:flex-start}.warn-banner{background:var(--warning-soft);color:#8e530c;padding:12px 14px;border-radius:10px;display:flex;gap:10px;align-items:flex-start}.spinner{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat{padding:18px 20px;display:flex;flex-direction:column;gap:10px}.stat .value{font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1}.stat .label{color:var(--text-2)}.dash-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:8px 20px 20px}.quick-actions button{border:1px solid var(--border);background:#fafbff;border-radius:12px;padding:14px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;font-weight:550;color:var(--text)}.quick-actions button:hover{border-color:var(--violet-light);background:var(--violet-soft)}.quick-actions svg{color:var(--violet)}.hero-card{background:linear-gradient(135deg,var(--navy) 0%,#2a2a78 60%,var(--violet) 130%);color:#fff;border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;gap:10px}.hero-card p{color:#c9cde0}.bar{height:8px;background:#eceef7;border-radius:99px;overflow:hidden}.bar>span{display:block;height:100%;border-radius:99px}.list{display:flex;flex-direction:column}.list-item{display:flex;align-items:center;gap:14px;padding:12px 20px;border-top:1px solid #f0f1f7;cursor:pointer;transition:background .12s}.list-item:first-child{border-top:0}.list-item:hover{background:#fafbff}.list-item.selected{background:var(--violet-soft)}.thumb{width:40px;height:48px;border-radius:8px;background:#f1f2f9;border:1px solid var(--border);display:grid;place-items:center;color:var(--text-2);flex-shrink:0}.doc-title{font-weight:600}.meta{color:var(--text-2);font-size:12.5px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dot{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.6}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:12px;color:var(--text-2);font-weight:600;padding:12px 16px;border-bottom:1px solid var(--border)}.table td{padding:12px 16px;border-bottom:1px solid #f0f1f7;vertical-align:middle}.table tr{cursor:pointer}.table tbody tr:hover{background:#fafbff}.doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.doc-card{overflow:hidden;cursor:pointer;transition:transform .12s,box-shadow .12s}.doc-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #11193614}.doc-card .cover{height:120px;background:linear-gradient(160deg,#f4f3ff,#eef1fb);display:grid;place-items:center;color:var(--violet-light)}.doc-card .body{padding:12px 14px;display:flex;flex-direction:column;gap:6px}.split{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:20px;align-items:start}.review{position:sticky;top:80px}.preview{background:#e9ebf4;border-radius:12px;overflow:hidden;height:460px;display:grid;place-items:center}.preview iframe,.preview object{width:100%;height:100%;border:0}.preview img{max-width:100%;max-height:100%;object-fit:contain}.confidence{display:inline-flex;align-items:center;gap:6px}.review-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:6px;flex-wrap:wrap}.library{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start}.cat-tree{padding:10px;position:sticky;top:80px}.cat-tree button{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:8px 10px;border-radius:9px;cursor:pointer;text-align:left;color:var(--text)}.cat-tree button:hover{background:#f3f4fa}.cat-tree button.active{background:var(--violet-soft);color:var(--violet);font-weight:600}.cat-tree .count{margin-left:auto;color:var(--text-2);font-size:12px}.cat-tree .children{padding-left:22px}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.filters .input,.filters .select{width:auto;min-width:120px;height:36px}.doc-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;align-items:start}.doc-layout .preview{height:calc(100vh - 160px);min-height:520px;position:sticky;top:80px}.kv{display:grid;grid-template-columns:140px 1fr;gap:8px 14px}.kv dt{color:var(--text-2)}.kv dd{margin:0;font-weight:550}.timeline{display:flex;flex-direction:column;gap:12px}.timeline .ev{display:flex;gap:10px}.timeline .ev .pin{width:8px;height:8px;border-radius:50%;background:var(--violet-light);margin-top:6px;flex-shrink:0}.tag-input{display:flex;flex-wrap:wrap;gap:6px;align-items:center;border:1px solid var(--border);border-radius:10px;padding:6px 8px;min-height:40px}.tag-input input{border:0;outline:0;flex:1;min-width:80px}.drop-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#1119368c;z-index:50;display:grid;place-items:center;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.drop-overlay .zone{border:2px dashed var(--violet-light);background:#fffffff5;border-radius:20px;padding:48px 64px;text-align:center;display:flex;flex-direction:column;gap:8px;align-items:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#11193673;z-index:40;display:grid;place-items:center;padding:16px}.modal{width:min(560px,100%);max-height:90vh;overflow:auto}.dropzone{border:2px dashed #cfd3e6;border-radius:14px;padding:32px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;transition:border-color .15s,background .15s}.dropzone:hover,.dropzone.over{border-color:var(--violet-light);background:var(--violet-soft)}.upload-toast{position:fixed;right:20px;bottom:20px;width:340px;z-index:30;max-height:50vh;overflow:auto}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-hero{background:radial-gradient(circle at 20% 10%,#3b2fa0 0%,var(--navy) 55%);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:center;gap:22px}.auth-hero h1{font-size:34px;line-height:1.15}.auth-hero li{display:flex;gap:12px;align-items:center;color:#d6d9ea}.auth-hero ul{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:14px}.auth-form{display:grid;place-items:center;padding:24px}.auth-form form{width:min(380px,100%);display:flex;flex-direction:column;gap:14px}.settings{display:grid;grid-template-columns:220px 1fr;gap:20px;align-items:start}.settings-nav{padding:8px;display:flex;flex-direction:column;gap:2px}.settings-nav a{padding:9px 12px;border-radius:9px;font-weight:550;color:var(--text-2)}.settings-nav a.active{background:var(--violet-soft);color:var(--violet)}.provider-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.provider{padding:18px;display:flex;flex-direction:column;gap:10px}.switch{position:relative;width:40px;height:22px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;top:0;right:0;bottom:0;left:0;background:#d4d7e6;border-radius:99px;transition:.15s;cursor:pointer}.switch span:before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s}.switch input:checked+span{background:var(--violet)}.switch input:checked+span:before{transform:translate(18px)}.bottom-nav{display:none}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.dash-grid,.doc-layout,.split{grid-template-columns:1fr}.review,.doc-layout .preview{position:static}.library{grid-template-columns:1fr}.cat-tree{position:static;display:flex;flex-wrap:wrap;gap:4px}.cat-tree>div,.cat-tree>button{flex:0 0 auto;width:auto}.cat-tree .divider,.cat-tree .children,.table .hide-sm{display:none}.doc-layout .preview{height:480px}}@media(max-width:820px){.sidebar{display:none}.topbar{padding:12px 16px}.content{padding:4px 16px 96px}.library,.settings{grid-template-columns:1fr}.cat-tree{position:static}.form-grid{grid-template-columns:1fr}.quick-actions{grid-template-columns:repeat(2,1fr)}.auth{grid-template-columns:1fr}.auth-hero{display:none}.hide-mobile{display:none!important}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--border);justify-content:space-around;align-items:center;padding:8px 6px calc(8px + env(safe-area-inset-bottom));z-index:20}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--text-2)}.bottom-nav a.active{color:var(--violet)}.bottom-nav .fab{width:48px;height:48px;border-radius:50%;background:var(--violet);color:#fff;display:grid;place-items:center;border:0;margin-top:-22px;box-shadow:0 6px 16px #6951f566}.table .hide-sm{display:none}}
