:root{--navy:#102d45;--navy2:#183e59;--green:#087e75;--lime:#b7df58;--ink:#163049;--muted:#697b89;--line:#e0e7eb;--bg:#f3f6f8;--red:#b13747;--amber:#9b6a13;--white:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);font-weight:600;padding:10px 14px;cursor:pointer;text-decoration:none;line-height:1.2}button:hover,.button:hover{border-color:#9fb1bd;background:#f5f9fa}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#06665f;color:#fff;border-color:#06665f}.danger{color:var(--red);border-color:#e9c9cf}.quiet{border-color:transparent;background:transparent}.wide{width:100%;justify-content:space-between}.small{font-size:12px;color:var(--muted);line-height:1.6}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin-bottom:8px}h2{font-size:22px;letter-spacing:-.5px;margin-bottom:8px}h3{font-size:16px;margin-bottom:8px}p{line-height:1.6}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--green);margin-bottom:10px}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:100px;background:linear-gradient(105deg,#102d45 0%,#102d45 48%,#f3f6f8 48%)}.auth-intro{width:400px;color:#fff}.auth-intro .eyebrow{color:var(--lime)}.auth-intro h1{font-size:44px;line-height:1.2;letter-spacing:-1.6px;margin:26px 0}.auth-intro p{color:#b7c9d5;font-size:17px}.auth-intro strong{font-size:17px;line-height:1.5;display:block}.auth-intro small{display:block;margin-top:10px;color:#9ab1c1}.auth-rule{height:3px;background:var(--lime);width:48px;margin:50px 0 24px}.auth-card{width:430px;background:#fff;padding:40px;border-radius:12px;border:1px solid var(--line);box-shadow:0 18px 70px #102d4510}.auth-card>p:not(.eyebrow){color:var(--muted)}.auth-card form{margin-top:24px}.brand-mark{font-size:28px;letter-spacing:-3px;line-height:1;font-weight:900;color:var(--navy);border-left:4px solid var(--green);padding-left:8px;margin-bottom:28px}.brand-mark span{color:var(--green)}label{display:block;font-weight:600;font-size:12px;color:#425b6d;margin-bottom:16px}input,select,textarea{display:block;width:100%;padding:11px 12px;margin-top:7px;background:#fff;border:1px solid #ccd8df;border-radius:6px;color:var(--ink);min-height:40px}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #087e7510}textarea{resize:vertical;min-height:86px;line-height:1.6}input[type=checkbox]{display:inline;width:16px;min-height:16px;vertical-align:middle;margin:0 8px 0 0;accent-color:var(--green)}.error{color:var(--red);font-size:13px}.notice{background:#eef6fb;border:1px solid #d4e5ef;border-radius:7px;padding:12px 15px;color:#365a73;font-size:12px;line-height:1.65}.notice.warning{background:#fff8e9;border-color:#f1dfb9;color:#865f17}.app-shell{display:flex;min-height:100vh}[hidden]{display:none!important}.sidebar{width:242px;background:var(--navy);color:#b6c9d6;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:30px 18px;z-index:20}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:white;padding:0 9px;margin-bottom:42px}.small-mark{font-size:21px;letter-spacing:-2.5px;margin:0;color:white;border-left-color:var(--lime)}.small-mark span{color:var(--lime)}.brand strong{font-size:11px;letter-spacing:.9px;white-space:nowrap}.brand small{display:block;font-size:10px;letter-spacing:1.8px;margin-top:5px;color:#a7bac8}.nav-label{font-size:9px;letter-spacing:1.5px;color:#7696ab;font-weight:700;margin:0 12px 13px}nav .nav-label{margin-top:30px}nav a{display:flex;align-items:center;gap:12px;color:#bacbd6;padding:12px 13px;margin-bottom:5px;border-radius:7px;text-decoration:none;font-size:12px;font-weight:550}nav a>span{font-size:18px;width:18px;text-align:center;color:#91afc2}nav a:hover{background:#ffffff0a}nav a.active{background:#25475f;color:white}nav a.active>span{color:var(--lime)}.sidebar-foot{margin-top:auto;padding:30px 10px 0;font-size:10px;color:#acbfcc}.sidebar-foot small{display:block;margin-top:9px;color:#6f92a9;font-size:9px}.live-dot{display:inline-block;background:var(--lime);border-radius:50%;width:6px;height:6px;margin-right:5px}.workspace{margin-left:242px;width:calc(100% - 242px);min-height:100vh;display:flex;flex-direction:column}.topbar{height:79px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:15px}.breadcrumb{color:#8a9ba7;font-size:12px}.breadcrumb span{margin:0 12px;color:#c4cfd6}.breadcrumb b{font-weight:550;color:#486072}.top-actions{display:flex;align-items:center;gap:14px}.icon-button{padding:8px 10px;font-size:19px;border-color:transparent;background:transparent}.profile{padding:0;border:0;gap:10px;text-align:left;background:transparent}.profile b{font-size:11px;display:block;font-weight:650}.profile small{font-size:10px;display:block;color:var(--muted);font-weight:400;margin-top:4px}.avatar{display:inline-grid;place-items:center;border-radius:50%;width:34px;height:34px;background:#e8f1ef;color:var(--green);font-size:11px;font-weight:750}.top-actions>.quiet{font-size:11px;color:#738796}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.page-head p{margin:8px 0 0;color:var(--muted);font-size:13px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.page-head .eyebrow{margin-bottom:9px}#content{padding:33px 34px 50px;flex:1;max-width:1800px;width:100%;margin:auto}#content:focus{outline:none}.workspace-foot{margin-top:auto;border-top:1px solid var(--line);padding:17px 34px;color:#93a4af;font-size:9px;letter-spacing:.6px;display:flex;justify-content:space-between}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:26px}.stat{border:1px solid var(--line);background:#fff;border-radius:9px;padding:21px;position:relative;overflow:hidden}.stat .label{color:#637c8d;font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:10px}.stat strong{font-size:35px;display:block;line-height:1;margin:18px 0 11px;letter-spacing:-1.5px}.stat small{color:var(--muted);font-size:10px}.stat .stat-icon{font-size:17px;color:var(--green);background:#edf5f3;padding:8px;border-radius:7px}.stat.warning strong{color:var(--amber)}.stat.good strong{color:var(--green)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:22px;margin-bottom:24px}.card{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;padding:21px 23px;border-bottom:1px solid var(--line);gap:12px}.card-head h3{margin:0}.card-head p{font-size:11px;color:var(--muted);margin:6px 0 0}.card-body{padding:22px}.count{background:var(--lime);color:var(--navy);font-size:10px;min-width:20px;text-align:center;border-radius:20px;padding:3px 6px;margin-left:auto}.pill{display:inline-flex;border-radius:4px;padding:5px 7px;font-size:9px;font-weight:700;letter-spacing:.2px;background:#edf2f6;color:#526f84;white-space:normal;line-height:1.4}.pill.green{color:#087868;background:#e8f5ee}.pill.amber{color:#9b6a13;background:#fff4de}.pill.red{color:#a34651;background:#fbecef}.pill.blue{color:#2b6091;background:#eaf2fc}.alert-item{padding:17px 23px;border-bottom:1px solid #edf1f4;display:flex;gap:13px;align-items:flex-start;cursor:pointer}.alert-item:last-child{border-bottom:0}.alert-item:hover{background:#f7fafb}.alert-symbol{background:#fff3dc;color:var(--amber);width:30px;height:30px;display:grid;place-items:center;border-radius:7px;font-weight:700;flex-shrink:0}.alert-item b{display:block;font-size:12px;margin-bottom:5px}.alert-item small{display:block;color:var(--muted);font-size:10px;line-height:1.6}.alert-item .alert-pills{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.alert-item .arrow{margin-left:auto;color:#9dafba}.doc-progress{padding:0 0 20px}.progress-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:9px}.bar{height:6px;border-radius:4px;overflow:hidden;background:#edf2f4;margin-bottom:19px}.bar div{height:100%;background:var(--green);border-radius:4px}.legend{font-size:10px;color:var(--muted)}.state-list{display:flex;flex-direction:column;gap:15px}.state-list>div{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#536c7e}.state-list strong{color:var(--ink)}.filters{padding:17px 20px;display:flex;align-items:center;gap:11px;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:18px;flex-wrap:wrap}.filters input,.filters select{margin:0;min-height:38px;padding:9px 10px;font-size:11px;width:175px}.filters .search{width:260px;flex:1;min-width:180px}.filters .date-field{display:flex;align-items:center;gap:7px;margin:0;font-size:10px;color:var(--muted)}.filters .date-field input{width:140px}.result-count{font-size:11px;color:var(--muted);margin:10px 2px 13px}.table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:9px}table{width:100%;border-collapse:collapse;min-width:850px;text-align:left}th{font-size:9px;color:#718796;letter-spacing:.7px;font-weight:650;background:#fafcfd;padding:14px 16px;border-bottom:1px solid var(--line);text-transform:uppercase}td{padding:16px;border-bottom:1px solid #edf1f4;font-size:11px;vertical-align:top;line-height:1.6}tr:last-child td{border:0}tbody tr:hover{background:#fcfefe}td b{font-size:11px;display:block;font-weight:650}td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.cell-title{max-width:220px;overflow-wrap:anywhere}.table-actions{display:flex;gap:5px;white-space:nowrap}.table-actions button{border:0;padding:5px 6px;font-size:10px;background:transparent;color:var(--green)}.table-actions .delete{color:var(--red)}.empty{text-align:center;padding:47px 22px}.empty .empty-icon{font-size:32px;color:#b3c9ce;margin-bottom:16px}.empty h3{font-size:16px}.empty p{color:var(--muted);font-size:12px;max-width:420px;margin:10px auto 20px}.section-gap{margin-top:24px}.tabs{display:flex;gap:7px;margin-bottom:20px;flex-wrap:wrap}.tabs button{background:transparent;border-color:transparent;color:var(--muted);font-size:12px}.tabs button.selected{background:#fff;border-color:var(--line);color:var(--green)}.split-note{display:flex;justify-content:space-between;gap:20px;align-items:center}.text-right{text-align:right}.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:24px 28px;gap:15px}.modal-head h2{margin:0;font-size:20px}.modal-head .eyebrow{margin-bottom:7px}.modal-head>div:last-child{display:flex;align-items:center;gap:8px}dialog{padding:0;border:0;border-radius:12px;max-height:92vh;width:min(1080px,94vw);color:var(--ink);box-shadow:0 30px 100px #102d4540}dialog::backdrop{background:#09203599;backdrop-filter:blur(2px)}#modal-body{padding:26px 28px;max-height:calc(92vh - 105px);overflow-y:auto}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 18px}.span-2{grid-column:span 2}.span-3{grid-column:1/-1}.form-section{border-top:1px solid var(--line);padding-top:20px;margin-top:9px}.form-section h3{margin-bottom:18px}.form-foot{display:flex;justify-content:flex-end;gap:9px;position:sticky;bottom:-26px;background:#fff;padding:20px 0 4px;border-top:1px solid var(--line);margin-top:20px;z-index:2}.document-edit{border:1px solid var(--line);padding:19px;border-radius:8px;margin-bottom:14px;background:#fafcfd}.document-edit>h3{font-size:13px;margin-bottom:15px}.document-edit label{font-size:10px}.document-edit .form-grid{grid-template-columns:1.5fr 1fr 1fr;gap:0 12px}.document-edit label:last-child{margin-bottom:0}.detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:20px;background:#f4f8fa;border:1px solid var(--line);border-radius:8px;margin:19px 0}.detail-summary small{display:block;font-size:9px;letter-spacing:.6px;color:var(--muted);margin-bottom:7px;text-transform:uppercase}.detail-summary b{font-size:12px;display:block;line-height:1.6;overflow-wrap:anywhere}.doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.doc-card{border:1px solid var(--line);border-radius:8px;overflow:hidden}.doc-card-head{padding:15px 17px;display:flex;justify-content:space-between;gap:10px;align-items:center;background:#fafcfd;border-bottom:1px solid var(--line)}.doc-card-head h3{font-size:12px;margin:0}.doc-content{padding:14px 17px;font-size:11px;color:#526c7e;line-height:1.7}.file-row{display:flex;gap:8px;align-items:flex-start;border-top:1px solid #eaf0f3;padding:12px 0 0;margin-top:12px}.file-row .file-name{flex:1;min-width:0;overflow-wrap:anywhere}.file-row b{font-size:10px;display:block;color:var(--ink)}.file-row small{font-size:9px;color:var(--muted);display:block}.file-row button,.file-row a{padding:5px;font-size:10px}.upload-box{padding:20px;border:1px dashed #9db9c0;border-radius:8px;background:#f5fbfa;margin-top:22px}.upload-box .form-grid{grid-template-columns:1fr 2fr}.upload-box input[type=file]{background:#fff;padding:8px}.upload-box label{margin-bottom:10px}.upload-box p{font-size:11px;color:var(--muted);margin:0 0 10px}.history{list-style:none;padding:0;margin:0}.history li{padding:11px 0;border-bottom:1px solid #edf1f4;font-size:11px;display:flex;justify-content:space-between;gap:15px}.history small{color:var(--muted);font-size:10px}.tech-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0 23px}.tech-options label{border:1px solid var(--line);padding:10px;font-size:10px;margin:0;border-radius:5px;display:flex;align-items:center}.file-preview{width:94vw;height:94vh;max-height:94vh;display:flex;flex-direction:column}.file-preview:not([open]){display:none}.file-preview .modal-head{padding:15px 22px}.file-preview h2{font-size:14px;overflow-wrap:anywhere}.file-preview #preview-body{flex:1;background:#e3e8eb;overflow:auto;display:grid;place-items:center}.file-preview iframe{width:100%;height:100%;border:0;min-height:70vh}.file-preview img{max-width:100%;max-height:80vh;object-fit:contain}.chat-layout{height:calc(100vh - 290px);min-height:480px;display:grid;grid-template-columns:285px 1fr;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white}.chat-peers{overflow-y:auto;border-right:1px solid var(--line)}.chat-peers>p{padding:18px;font-size:10px;letter-spacing:1px;color:var(--muted);border-bottom:1px solid var(--line);margin:0}.peer{padding:17px;display:flex;width:100%;border:0;border-radius:0;gap:12px;justify-content:flex-start;border-bottom:1px solid #edf1f4;text-align:left}.peer.active{background:#eef7f5;border-left:3px solid var(--green)}.peer>span:last-child{min-width:0;flex:1}.peer b{display:block;font-size:11px}.peer small{display:block;font-size:10px;color:var(--muted);font-weight:400;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:170px;margin-top:5px}.peer .count{display:inline-block;float:right}.conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.conversation-head{border-bottom:1px solid var(--line);padding:18px 22px;display:flex;justify-content:space-between;align-items:center}.conversation-head b{font-size:12px}.conversation-head small{font-size:10px;color:var(--muted)}.messages{flex:1;overflow-y:auto;padding:24px;background:#f8fafb;display:flex;flex-direction:column;gap:15px}.message{max-width:78%;align-self:flex-start;background:white;border:1px solid var(--line);padding:12px 14px;border-radius:9px 9px 9px 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.message.mine{align-self:flex-end;background:#e7f3ef;border-color:#d7eae2;border-radius:9px 9px 0 9px}.message small{display:block;font-size:8px;color:#78918b;text-align:right;margin-top:6px}.chat-compose{display:flex;align-items:flex-end;gap:12px;padding:15px 20px;border-top:1px solid var(--line)}.chat-compose textarea{margin:0;min-height:45px;height:45px;max-height:130px;font-size:12px}.chat-compose button{height:45px}.chat-privacy{font-size:10px;color:var(--muted);margin:12px 0 0}.loader{padding:80px;text-align:center;color:var(--muted)}#toasts{position:fixed;right:23px;bottom:23px;z-index:200;display:flex;flex-direction:column;gap:10px;max-width:420px}.toast{padding:15px 20px;color:#fff;background:var(--navy);border-radius:8px;box-shadow:0 6px 30px #0002;font-size:12px;line-height:1.6}.toast.error{background:var(--red)}#menu-toggle{display:none}.truncate{max-width:230px;overflow-wrap:anywhere}.import-results{max-height:340px;overflow:auto}.checklist{padding-left:20px;font-size:12px;color:#526c7e;line-height:1.9}
@media(min-width:1600px){#content{padding:40px 50px}.sidebar{width:265px}.workspace{margin-left:265px;width:calc(100% - 265px)}}
@media(max-width:1150px){.sidebar{width:210px;padding:28px 12px}.workspace{margin-left:210px;width:calc(100% - 210px)}.brand{gap:8px;padding:0 6px}.brand strong{font-size:10px}#content{padding:27px 23px}.topbar{padding:0 23px}.stats{gap:11px}.stat{padding:17px}.dashboard-grid{grid-template-columns:1.5fr 1fr}.form-grid{grid-template-columns:1fr 1fr}.span-3{grid-column:1/-1}.tech-options{grid-template-columns:1fr 1fr}.page-head .actions{justify-content:flex-end}.auth-page{gap:60px}.auth-intro{width:330px}.auth-card{width:390px;padding:32px}.chat-layout{grid-template-columns:240px 1fr}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:242px}.sidebar.mobile-open{transform:translateX(0)}.workspace{margin:0;width:100%}#menu-toggle{display:inline-flex}.topbar{height:68px;padding:0 18px;justify-content:flex-start}.breadcrumb{flex:1}.top-actions{gap:6px}.top-actions .profile>span:last-child{display:none}.top-actions>.quiet{font-size:10px}.top-actions .icon-button{font-size:17px}#content{padding:25px 20px}.workspace-foot{padding:16px 20px}.auth-page{background:#f3f6f8;padding:30px 20px}.auth-intro{display:none}.auth-card{width:min(430px,100%);padding:33px}.auth-card h1{font-size:26px}.stats{grid-template-columns:1fr 1fr}.page-head{align-items:flex-start}.page-head h1{font-size:26px}.dashboard-grid{grid-template-columns:1fr}.doc-grid{grid-template-columns:1fr}.chat-layout{grid-template-columns:220px 1fr;min-height:500px}.message{max-width:90%}}
@media(max-width:580px){h1{font-size:24px}.page-head{display:block;margin-bottom:22px}.page-head .actions{margin-top:18px;justify-content:flex-start}.page-head .actions button,.page-head .actions a{font-size:11px;padding:9px 10px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 6px}.top-actions .quiet{padding:6px}.top-actions .icon-button{padding:5px}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:30px}.stat .label{font-size:10px}.stat .stat-icon{display:none}.filters{padding:13px;gap:8px}.filters select{flex:1;width:130px}.filters .search{flex:1;width:100%;min-width:100%}.filters .date-field input{width:130px}.form-grid,.document-edit .form-grid,.upload-box .form-grid{grid-template-columns:1fr}.span-2,.span-3{grid-column:auto}.detail-summary{grid-template-columns:1fr 1fr;gap:16px;padding:16px}.tech-options{grid-template-columns:1fr}.modal-head{padding:18px}#modal-body{padding:18px;max-height:calc(92vh - 88px)}.form-foot{bottom:-18px}dialog{width:96vw}.card-head{padding:18px}.alert-item{padding:16px}.workspace-foot span{display:none}.chat-layout{display:flex;flex-direction:column;height:calc(100vh - 260px);min-height:540px}.chat-peers{max-height:135px;min-height:80px;border-right:0;border-bottom:1px solid var(--line)}.chat-peers>p{display:none}.peer{padding:10px 14px}.peer small{display:none}.conversation{flex:1}.messages{padding:15px}.chat-compose{padding:12px}.form-foot{flex-wrap:wrap}.notice{font-size:11px}}
