:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#233438;background:#f5f7f8;font-size:14px;--green:#246b5e;--muted:#78888c;--line:#e4e9e9}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:white;color:#405357;padding:10px 15px;transition:background .15s}button:hover{background:#edf4f1}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#ad4c48}button.small{padding:6px 10px;font-size:12px}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-1px;margin-bottom:9px}h2{font-size:18px}h3{font-size:15px}p{line-height:1.8}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green);font-weight:700;margin-bottom:14px}.layout{display:grid;grid-template-columns:254px minmax(0,1fr);min-height:100vh}aside{background:#182f30;color:#c9d5d3;padding:32px 20px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100vh;overflow:auto}.brand{font-size:22px;color:#fff;letter-spacing:1px;font-weight:650}.brand span{background:#d8e9d9;color:#24483e;border-radius:8px;padding:8px;margin-right:10px;display:inline-block}.brand-sub{font-size:10px;letter-spacing:2px;margin:14px 0 0 4px;color:#829b98}.nav{display:grid;gap:5px}.nav button,.tree button{background:none;border:none;text-align:left;color:#b5c8c4;width:100%;padding:12px}.nav button.active{background:#304a48;color:#fff}.nav button:hover,.tree button:hover{background:#294440}.sidebar-label{font-size:10px;letter-spacing:2px;color:#7f9d97;padding:0 12px;margin-bottom:14px}.tree details{margin-bottom:9px}.tree summary{cursor:pointer;padding:8px;color:#d2dfdc}.tree .tree-case{margin-left:12px;border-left:1px solid #3b5350;padding-left:8px}.tree .tree-case button{font-size:12px;padding:8px}.tree small{display:block;color:#8caaa3;padding:4px 10px;font-size:10px}.profile{margin-top:auto;padding:18px 10px 0;border-top:1px solid #35504b;line-height:1.9;font-size:12px}.profile button{padding:4px 8px;margin:9px 4px 0 0;background:none;border-color:#4c6560;color:#c5d7d1;font-size:11px}.main{min-width:0}.topbar{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:#fff;font-size:12px;color:var(--muted)}.topbar b{color:#35514d;font-weight:500}.dot{display:inline-block;width:6px;height:6px;background:#529782;border-radius:50%;margin-right:6px}.content{padding:36px 40px;max-width:1550px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.heading p{margin:0;color:var(--muted)}.actions{display:flex;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:30px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px}.stat strong{font-size:32px;display:block;margin:15px 0 7px;font-weight:550}.stat small{color:var(--muted);font-size:11px}.stat.accent{background:#eaf2ee;border-color:#dce8e1}.filters{display:flex;gap:12px;margin-bottom:22px;flex-wrap:wrap}.filters input{flex:1;min-width:180px}.filters select{width:160px}input,select,textarea{background:white;border:1px solid #dbe3e1;border-radius:6px;padding:10px 12px;color:#243d38;width:100%;min-width:0}textarea{min-height:90px;resize:vertical}label{display:block;font-size:12px;color:#657a73;margin-bottom:16px}label input,label select,label textarea{margin-top:7px}.client-section{margin-bottom:28px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-title h2{margin:0;font-size:16px}.count{color:var(--muted);font-size:12px;font-weight:400;margin-left:10px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:23px;box-shadow:0 3px 12px #193a2a03}.card-top{display:flex;justify-content:space-between;gap:12px;align-items:start}.case-name{padding:0;border:0;font-size:17px;font-weight:600;text-align:left;background:none;color:#253d38}.case-name:hover{background:none;color:var(--green)}.badge{display:inline-block;padding:5px 9px;border-radius:5px;font-size:11px;white-space:nowrap;background:#f0f3f3;color:#6e7c7d}.badge.done{background:#e8f3ec;color:#3b7d58}.badge.working{background:#e9f0f7;color:#547698}.badge.wait{background:#fbf2df;color:#a58236}.meta{font-size:11px;color:var(--muted);margin:12px 0 20px;display:flex;gap:18px;flex-wrap:wrap}.workrow{display:grid;grid-template-columns:minmax(110px,1fr) 64px 70px 34px;align-items:center;gap:10px;font-size:12px;padding:10px 0;border-top:1px solid #f0f3f2}.meter{height:5px;width:70px;accent-color:#4e8d78;border:0;border-radius:5px;overflow:hidden}.meter::-webkit-progress-bar{background:#eaf0ed}.meter::-webkit-progress-value{background:#4e8d78}.card-foot{border-top:1px solid var(--line);margin-top:13px;padding-top:14px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.empty{text-align:center;padding:70px 24px;background:#fff;border:1px dashed #ccd9d3;border-radius:10px;color:var(--muted)}.empty h2{color:#415e52;margin-bottom:10px}.detail-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px}.timeline{padding-top:15px}.event{border-left:1px solid #dbe8e0;padding:0 0 26px 22px;position:relative}.event:before{content:'';position:absolute;left:-5px;top:4px;width:9px;height:9px;background:#719e89;border-radius:50%;border:2px solid white}.event time{font-size:11px;color:var(--muted)}.event h3{margin:10px 0;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.event a{font-size:12px}.event .actions{margin-top:9px}.notes{white-space:pre-wrap;overflow-wrap:anywhere;color:#667c72;font-size:13px}.back{margin-bottom:24px;background:none;padding:0;border:0;color:var(--muted)}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#183a33;color:#d4e3d8;padding:12vh 10%;display:flex;flex-direction:column;justify-content:space-between}.auth-story h1{font-size:46px;line-height:1.5;font-weight:450;color:#fff}.auth-story p{color:#9cb8aa}.auth-form{display:flex;align-items:center;justify-content:center;padding:35px}.auth-form form{max-width:360px;width:100%}.auth-form h2{font-size:26px;margin-bottom:12px}.auth-form button{width:100%;margin-top:10px}.error{color:#b04c44;font-size:12px;line-height:1.6;min-height:18px}.auth-mark{font-size:100px;color:#5c8370;letter-spacing:-10px}dialog{border:0;border-radius:12px;padding:0;width:min(650px,94vw);max-height:88vh;box-shadow:0 30px 100px #122c3333}dialog::backdrop{background:#172d3466;backdrop-filter:blur(3px)}.modal-head{padding:24px 28px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0}.modal-body{padding:24px 28px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding-top:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.stream-form{display:grid;grid-template-columns:1fr 130px 85px;gap:10px;align-items:center;margin:10px 0}.stream-form label{margin:0}.stream-form input[type=checkbox]{width:auto;margin-right:7px}#toast{position:fixed;right:28px;bottom:25px;background:#203f35;color:#fff;padding:14px 22px;border-radius:8px;z-index:5;max-width:85vw;display:none}#toast.show{display:block}table{border-collapse:collapse;width:100%;font-size:12px}th,td{text-align:left;padding:16px 12px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:500}.table-wrap{overflow:auto}.hint{font-size:12px;color:var(--muted);line-height:1.8}.overdue{color:#b86a50}.welcome-line{border-left:3px solid #b7cdbb;padding-left:20px}.footer-note{font-size:10px;letter-spacing:1px;color:#98a7a1;margin-top:30px}@media(min-width:1500px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1000px){.layout{grid-template-columns:210px 1fr}.content{padding:28px 22px}.topbar{padding:0 22px}.cards,.detail-grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:25px}.heading{align-items:flex-start}}@media(max-width:680px){.layout{display:block}aside{position:static;height:auto;padding:20px}.brand-sub,.tree,.sidebar-label,.profile{display:none}.nav{display:flex;flex-wrap:wrap}.nav button{width:auto}.content{padding:24px 16px}.topbar{height:54px;padding:0 16px}.topbar span:last-child{display:none}.heading{display:block}.heading .actions{margin-top:18px}.stats{grid-template-columns:repeat(2,1fr)}.auth{display:block}.auth-story{padding:35px}.auth-story h1{font-size:28px}.auth-mark,.auth-story>p{display:none}.auth-form{padding:35px 24px}.form-grid{grid-template-columns:1fr}.stream-form{grid-template-columns:1fr 105px 65px}.modal-body{padding:20px}.workrow{gap:5px}.profile-mobile{display:block}}
