:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#182d3b;background:#f5f7f9;font-size:14px;--navy:#133146;--navy2:#1b4154;--teal:#078995;--line:#e0e8ed;--muted:#768896;--white:#fff;--light:#eaf6f6}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}
.boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#718593}.boot-mark{font-weight:900;font-size:42px;color:var(--navy);letter-spacing:-2px}.boot-mark span{color:#10a0a4}
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.06fr .94fr;background:white}.auth-brand{background:radial-gradient(circle at 15% 0,#2d6671,transparent 55%),linear-gradient(140deg,#102e41,#123a4a);padding:clamp(36px,7vw,110px);color:white;display:flex;flex-direction:column;justify-content:space-between;min-height:500px}.brand-logo{font-size:30px;font-weight:900;letter-spacing:-1.4px}.brand-logo span{color:#42bfbc}.auth-brand h1{font-size:clamp(37px,5vw,68px);max-width:720px;line-height:1.06;letter-spacing:-2px;margin:25px 0}.auth-brand p{color:#a9cbd0;font-size:16px;max-width:450px;line-height:1.7}.auth-chips{display:flex;flex-wrap:wrap;gap:10px}.auth-chips span{border:1px solid #3b6571;border-radius:20px;padding:8px 14px;color:#cfebea}.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px}.auth-card{width:min(440px,100%)}.auth-card h2{font-size:29px;letter-spacing:-.8px;margin:0 0 10px}.auth-card p{color:var(--muted);line-height:1.6}.auth-foot{color:#82949d;font-size:12px;margin-top:28px}
label{font-size:12px;font-weight:700;color:#506675;display:block;margin-bottom:7px}.field{margin:0 0 17px}input,select,textarea{border:1px solid #d9e3e9;border-radius:9px;background:#fff;color:#203744;padding:11px 12px;outline:none;width:100%;transition:border .2s,box-shadow .2s}input:focus,select:focus,textarea:focus{border-color:#089da5;box-shadow:0 0 0 3px #0c9ca71c}textarea{min-height:92px;resize:vertical}input[type=file]{padding:9px;background:#f7fafb}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-row.triple{grid-template-columns:repeat(3,1fr)}.tiny-note{font-size:11px;color:#85949d;line-height:1.6}
.btn{border:1px solid transparent;border-radius:9px;padding:10px 16px;background:var(--teal);color:white;display:inline-flex;align-items:center;gap:8px;justify-content:center;font-weight:700;white-space:nowrap}.btn:hover{filter:brightness(.94)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.secondary{background:white;color:#345268;border-color:#d9e5ea}.btn.dark{background:var(--navy)}.btn.ghost{background:transparent;color:#5a7787}.btn.danger{background:#c44948}.btn.small{padding:7px 11px;font-size:12px}.btn.full{width:100%}.btn-group{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.shell{display:flex;min-height:100vh}.sidebar{background:#132f41;color:#b8cbd2;width:250px;flex-shrink:0;display:flex;flex-direction:column;position:sticky;height:100vh;top:0}.sbrand{height:85px;display:flex;align-items:center;gap:10px;padding:22px 25px;border-bottom:1px solid #ffffff13}.sbrand .logotype{font-size:25px;letter-spacing:-1px;font-weight:900;color:white}.sbrand .logotype b{color:#4cc0bf}.sbrand .tag{font-size:10px;letter-spacing:1px;line-height:1.4;color:#7196a4}.side-title{font-size:10px;color:#658d9c;font-weight:800;letter-spacing:1.7px;padding:21px 25px 9px}.nav-button{background:transparent;border:0;color:#b7ccd3;display:flex;align-items:center;gap:13px;padding:12px 22px;width:calc(100% - 20px);margin:1px 10px;text-align:left;border-radius:9px;font-weight:500}.nav-button:hover{background:#ffffff0b;color:white}.nav-button.active{background:#1d5660;color:white;font-weight:700}.nav-icon{width:21px;font-size:18px;opacity:.93;text-align:center}.side-bottom{margin-top:auto;padding:20px 18px;border-top:1px solid #ffffff14}.side-user{font-size:12px;line-height:1.5;color:#a8c4cf}.side-user strong{display:block;color:white;font-size:13px}.side-bottom .btn{margin-top:12px;border-color:#365869;color:#cee2e7;width:100%;justify-content:flex-start}
.main{flex:1;min-width:0}.topbar{height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:20px;position:sticky;top:0;z-index:15}.breadcrumb{color:#82939e;font-size:12px}.top-right{display:flex;align-items:center;gap:15px}.mini-user{height:36px;width:36px;border-radius:50%;background:#e2f3f3;color:#177a80;display:grid;place-items:center;font-weight:900}.workspace{padding:30px 34px 65px;max-width:1620px;margin:auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:25px}.overline{color:var(--teal);font-size:10px;letter-spacing:2px;text-transform:uppercase;font-weight:850;margin-bottom:9px}.page-heading h1{margin:0 0 7px;font-size:29px;letter-spacing:-1px;line-height:1.2}.page-heading p{margin:0;color:#80919e;line-height:1.5}.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;font-size:11px;border-radius:14px;background:#eaf4f4;color:#127e83;font-weight:700}.pill.amber{background:#fff2de;color:#ad722d}.pill.gray{background:#f0f3f5;color:#768691}.pill.red{background:#fce9e7;color:#ad4e46}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:20px}.kpi{background:white;border:1px solid var(--line);border-radius:15px;padding:22px;min-height:126px;position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--teal)}.kpi .label{font-size:12px;color:#788c98;font-weight:600}.kpi strong{font-size:26px;display:block;letter-spacing:-1px;margin:14px 0 4px;color:var(--navy)}.kpi small{color:#93a1a9;font-size:11px}.panel-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:18px}.panel{background:white;border:1px solid var(--line);border-radius:15px;padding:22px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.panel-head h2{font-size:16px;margin:0;letter-spacing:-.2px}.panel-head .sub{font-size:12px;color:#8999a2}.panel h3{margin:0 0 13px;font-size:15px}.list-proj{display:flex;flex-direction:column}.project-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid #edf1f3;cursor:pointer}.project-row:last-child{border-bottom:0}.project-row:hover strong{color:var(--teal)}.avatar{width:40px;height:40px;flex-shrink:0;border-radius:10px;background:#e5f2f5;color:#167d88;font-size:12px;font-weight:900;display:grid;place-items:center}.proj-left{display:flex;gap:12px;align-items:center;min-width:0}.proj-left strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.proj-left small{display:block;color:#81929d;margin-top:5px}.proj-right{text-align:right;flex-shrink:0}.proj-right strong{font-size:13px;display:block}.proj-right small{color:#8d9ca6;font-size:11px}.activity{border-left:1px solid #dce9eb;margin:14px 0 0 9px;padding:0 0 18px 20px;position:relative;font-size:12px;line-height:1.5;color:#71848f}.activity:before{content:"";position:absolute;top:2px;left:-5px;background:#16949b;width:9px;height:9px;border-radius:50%}.activity strong{display:block;color:#344a58;margin-bottom:4px}
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:white}.table{width:100%;border-collapse:collapse;text-align:left;min-width:730px}.table th{background:#f4f8fa;color:#6a8290;font-size:11px;letter-spacing:.3px;font-weight:800;padding:13px 14px;border-bottom:1px solid #e5edf0;white-space:nowrap}.table td{border-bottom:1px solid #edf1f3;padding:13px 14px;font-size:12px;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fbfdfd}.table .num{text-align:right;font-variant-numeric:tabular-nums}.table .name{font-weight:700;color:#293f4e}.table td.dim{color:#8498a2}.table th.num{text-align:right}.table button.link{border:0;background:transparent;color:#067f87;font-weight:750;padding:0;font-size:12px}.table tfoot td{background:#eaf2f5;font-weight:800}.table.large{min-width:1050px}.table .desc{min-width:240px;max-width:350px;line-height:1.5}
.empty{text-align:center;padding:50px 20px;color:#8ca0ab}.empty .illustration{font-size:43px;color:#a6d9da;margin-bottom:14px}.empty strong{display:block;color:#385260;font-size:15px;margin-bottom:7px}.empty p{margin:0 auto 16px;max-width:360px;font-size:12px;line-height:1.6}
.stats-strip{display:flex;gap:15px;flex-wrap:wrap;margin:0 0 19px}.stat-mini{background:#eef6f7;border-radius:10px;padding:11px 15px;min-width:145px;font-size:12px;color:#7a9098}.stat-mini strong{display:block;font-size:19px;color:#21495a;margin-top:4px}.notice{background:#eaf7f7;border:1px solid #d1e9e9;color:#256b73;border-radius:11px;padding:13px 15px;font-size:12px;line-height:1.65;margin:0 0 18px}.notice.warn{background:#fff7ec;color:#936121;border-color:#f8e6c9}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.toolbar input[type=search]{width:280px}.tag{color:#668697;background:#eaf1f4;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:750}.files-grid{display:grid;grid-template-columns:1.4fr .6fr;gap:18px}.dropzone{border:2px dashed #bbd8dd;background:#f7fbfc;border-radius:13px;padding:25px;text-align:center;color:#6f8c99}.dropzone .symbol{font-size:35px;color:#0b8e95;margin-bottom:10px}.dropzone h3{color:#295063;margin:0 0 8px}.dropzone p{font-size:12px;line-height:1.5}.hint-list{margin:0;padding-left:20px;color:#728894;font-size:12px;line-height:2.1}
.modal-backdrop{position:fixed;inset:0;background:#102b3bc9;display:flex;align-items:center;justify-content:center;z-index:50;padding:20px;backdrop-filter:blur(3px)}.modal{background:#fff;width:min(620px,100%);border-radius:15px;box-shadow:0 25px 90px #001e3280;max-height:92vh;overflow-y:auto}.modal.wide{width:min(1020px,96vw)}.modal-head{border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:19px 23px}.modal-head h2{margin:0;font-size:18px}.modal-body{padding:24px}.modal-footer{border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;padding:16px 23px}.x{border:0;background:#edf3f5;color:#607985;font-size:17px;width:30px;height:30px;border-radius:50%}.pdf-view{width:100%;height:min(72vh,740px);border:0;background:#f1f4f5}.toolbar-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:10px}.divider{height:1px;background:var(--line);margin:18px 0}
.ai-chat{display:flex;flex-direction:column;min-height:520px;max-height:72vh;background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.chat-body{flex:1;overflow-y:auto;padding:25px;display:flex;flex-direction:column;gap:18px}.message{max-width:82%;padding:14px 16px;border-radius:12px;line-height:1.7;white-space:pre-wrap;font-size:13px}.message.user{align-self:flex-end;background:#155b65;color:white;border-bottom-right-radius:3px}.message.bot{align-self:flex-start;background:#eff5f6;color:#294958;border-bottom-left-radius:3px}.message .sources{font-size:11px;border-top:1px solid #d2e2e5;margin-top:10px;padding-top:9px}.message .sources a{display:block;margin-top:5px}.chat-footer{border-top:1px solid var(--line);padding:13px;display:flex;gap:10px}.chat-footer input{flex:1}.chat-footer button{flex-shrink:0}
.toast{position:fixed;right:24px;bottom:24px;background:#143849;color:#fff;border-radius:10px;box-shadow:0 15px 35px #14384940;padding:13px 20px;z-index:100;max-width:420px;display:none;line-height:1.5}.toast.show{display:block}.toast.error{background:#b34e49}.project-hero{background:linear-gradient(125deg,#183b4d,#1b6470);color:white;border-radius:15px;padding:27px 29px;margin-bottom:19px}.project-hero .overline{color:#86dcdf}.project-hero h2{margin:0 0 7px;font-size:26px}.project-hero p{color:#c3dddf;margin:0}.project-hero .meta{margin-top:17px;display:flex;gap:8px;flex-wrap:wrap}.project-hero .meta span{border:1px solid #ffffff3b;padding:6px 10px;font-size:11px;border-radius:20px}.rule-item{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid #e8eef1}.rule-item:last-child{border:0}.rule-item .lock{color:#0b9195;background:#eaf7f7;padding:9px;border-radius:10px}.rule-item strong{font-size:13px;display:block;margin-bottom:5px}.rule-item small{font-size:12px;color:#778b96}.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.price-cat{border:1px solid var(--line);padding:17px;border-radius:12px;background:white}.price-cat strong{display:block;font-size:21px;margin-top:8px;color:var(--navy)}.progress-track{height:7px;background:#e8eef1;border-radius:50px;overflow:hidden;max-width:110px}.progress-fill{height:100%;background:#159a9b;border-radius:50px}.footer{font-size:11px;color:#a4b0b7;margin-top:26px}.icon-circle{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:#eaf6f6;color:#078a91;font-size:18px}
@media(max-width:1150px){.sidebar{width:205px}.workspace{padding:23px}.topbar{padding:0 23px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.panel-grid{grid-template-columns:1fr}}
@media(max-width:780px){.auth-wrap{grid-template-columns:1fr}.auth-brand{min-height:260px;padding:35px}.auth-brand h1{font-size:37px;margin:10px 0}.auth-panel{padding:36px 22px}.shell{display:block}.sidebar{position:relative;height:auto;width:100%}.sbrand{height:54px;padding:9px 16px}.side-title,.side-bottom{display:none}.nav-scroll{display:flex;overflow-x:auto;padding:6px}.nav-button{width:auto;white-space:nowrap;padding:9px;margin:0;font-size:11px}.nav-icon{font-size:15px;width:auto}.topbar{height:56px;padding:0 16px}.workspace{padding:20px 13px 38px}.page-heading{flex-wrap:wrap}.page-heading h1{font-size:23px}.panel{padding:16px}.kpi-grid{gap:9px}.kpi{padding:14px;min-height:105px}.kpi strong{font-size:20px}.files-grid{grid-template-columns:1fr}.form-row,.form-row.triple{grid-template-columns:1fr}.chat-body{padding:15px}.message{max-width:94%}.toolbar input[type=search]{width:100%}.price-grid{grid-template-columns:1fr}.btn-group{gap:5px}}

/* Final usability adjustments */
.sbrand .tag{background:transparent;padding:0;border-radius:0;letter-spacing:1px;font-size:10px;color:#8eafba}
.side-bottom .btn.secondary{background:#193f52;color:#d2e5e8;border-color:#365869}
.modal{display:flex;flex-direction:column;overflow:hidden}
.modal-head,.modal-footer{flex-shrink:0}
.modal-body{overflow-y:auto;min-height:0}
