:root{--ink:#26252a;--muted:#85818b;--line:#e9e7ec;--paper:#fff;--canvas:#faf9fb;--purple:#51437b;--soft:#f2eff9;--red:#d14b5a;--redbg:#fff0f1;--green:#328764;--greenbg:#eaf7f1;--yellow:#bd8121;--yellowbg:#fff6df;--shadow:0 3px 16px rgba(37,30,55,.04)}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}.shell{display:flex;min-height:100vh}.sidebar{width:238px;flex:none;background:#fff;border-right:1px solid var(--line);padding:24px 15px 16px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 28px}.brand>span{width:32px;height:32px;border-radius:9px;background:var(--purple);color:#fff;display:grid;place-items:center;font-size:18px;font-weight:700}.brand b{display:block;font-size:16px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.sidebar nav{display:grid;gap:4px}.sidebar nav button{height:42px;border-radius:8px;text-align:left;padding:0 12px;color:#77737e;display:flex;align-items:center;gap:11px}.sidebar nav button:hover{background:#f7f5f9}.sidebar nav button.active{background:var(--soft);color:var(--purple);font-weight:600}.side-foot{margin-top:auto;border-top:1px solid var(--line);padding:16px 8px 0;font-size:12px}.side-foot b,.side-foot small{display:block}.side-foot small{color:#999;margin-top:6px}.side-foot i{display:inline-block;width:7px;height:7px;background:#43a876;border-radius:50%;margin-right:5px}main{flex:1;min-width:0}header{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.crumb{color:#aaa;font-size:13px}.crumb b{padding:0 10px}.crumb strong{color:var(--ink);font-weight:500}.profile{display:flex;align-items:center;gap:9px;color:#666;font-size:13px}.profile em{font-style:normal;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#eee9f7;color:var(--purple);font-weight:600}.view{display:none;max-width:1320px;margin:auto;padding:36px 42px 60px}.view.active{display:block}.intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px}.intro label{display:block;color:#958da8;font-size:10px;font-weight:700;letter-spacing:1.5px;margin-bottom:8px}.intro h1{margin:0 0 8px;font-size:27px;letter-spacing:-.4px}.intro p{margin:0;color:var(--muted);line-height:1.6}.primary{background:var(--purple);color:#fff;border-radius:7px;padding:10px 17px;font-size:13px;box-shadow:0 2px 6px #51437b22}.primary:hover{background:#423467}.link{color:var(--purple);font-size:12px;padding:0}.outline{border:1px solid var(--line);border-radius:6px;padding:8px 12px;color:#696672;background:#fff;font-size:12px}.metrics,.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.metrics article,.stats article,.panel,.payroll-banner{background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}.metrics article{min-height:144px;padding:19px}.metrics small,.stats small{color:#85818b;font-size:12px}.metrics strong{display:block;font-size:27px;margin-top:9px}.metrics sup{font-size:12px;color:#888;font-weight:400;margin-left:4px}.metrics span,.stats span{display:block;font-size:11px;color:#777;margin-top:7px}.metrics span i{font-style:normal;color:#aaa;margin-left:4px}.up{color:var(--green)!important}.down{color:var(--red)!important}.bar{height:4px;background:#f0eef3;border-radius:9px;margin-top:13px;overflow:hidden}.bar i{display:block;height:100%;background:var(--purple);border-radius:9px}.avatars{display:flex;margin-top:14px}.avatars b{margin-left:-4px;width:21px;height:21px;border:2px solid #fff;border-radius:50%;display:grid;place-items:center;background:#eee9f7;color:var(--purple);font-size:9px}.avatars b:first-child{margin-left:0}.riskline{display:flex;gap:4px;margin-top:14px}.riskline i{width:22px;height:4px;background:#e2aa49;border-radius:5px}.riskline i:last-child{background:#eee}.metrics .text{font-size:22px}.two-col{display:grid;grid-template-columns:1.65fr 1fr;gap:18px;margin-bottom:18px}.panel{padding:21px}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.panel-title h2{font-size:16px;margin:0 0 5px}.panel-title p{font-size:12px;color:#98949e;margin:0}.tasks{border-top:1px solid #f0eef2}.tasks>button{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:15px 0;border-bottom:1px solid #f0eef2}.tasks>button:last-child{border-bottom:0}.tasks>button>div{flex:1;min-width:0}.tasks b,.tasks small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tasks b{font-size:13px;font-weight:500}.tasks small{font-size:11px;color:#999;margin-top:5px}.circle{flex:none;width:16px;height:16px;border:1.5px solid #c9c5ce;border-radius:50%}.circle.done{background:var(--green);border-color:var(--green);color:#fff;text-align:center;font-size:10px;line-height:15px}.tasks mark,table mark{font-size:10px;border-radius:4px;padding:4px 6px;color:var(--purple);background:var(--soft);white-space:nowrap}.tasks mark.red,table mark.red{color:var(--red);background:var(--redbg)}.tasks mark.green,table mark.green,.green{color:var(--green);background:var(--greenbg)}.tasks time{color:#aaa;font-size:11px;white-space:nowrap}.ask{display:flex;flex-direction:column}.online{color:var(--green);font-size:10px}.example{background:#faf8fd;border-radius:8px;padding:16px;margin:6px 0 14px;flex:1}.example>b{color:var(--purple);font-size:19px}.example p{font-size:13px;line-height:1.6;color:#4d4855;margin:10px 0 7px}.example small,.note{font-size:10px;color:#a6a1ad}.quick{display:flex;border:1px solid #dedbe4;border-radius:7px;padding:3px}.quick input{border:0;outline:0;flex:1;min-width:0;padding:8px;font-size:12px}.quick button{background:var(--purple);color:#fff;border-radius:5px;width:32px}.flow{padding-bottom:17px}.flow-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.flow-grid button{border:1px solid #eeeaf1;border-radius:8px;padding:15px;text-align:left;position:relative}.flow-grid button:hover{background:#faf8fd;border-color:#d8d0e6}.flow-grid small{display:block;color:#b1acb8;font-size:10px;margin-bottom:15px}.flow-grid b,.flow-grid span{display:block}.flow-grid b{font-size:13px}.flow-grid span{font-size:11px;color:#999;margin-top:6px}.flow-grid button{font-size:16px;color:#aaa}.flow-grid button b,.flow-grid button span{font-size:13px;color:var(--ink)}.flow-grid button span{font-size:11px;color:#999}.red-text{color:var(--red)!important}.chat-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}.chat{min-height:510px;display:flex;flex-direction:column}.message{display:flex;gap:12px}.message>em{font-style:normal;width:28px;height:28px;background:var(--purple);border-radius:50%;color:#fff;display:grid;place-items:center}.message b{font-size:12px}.message p{font-size:13px;color:#595561;line-height:1.7;margin:7px 0}.composer{margin-top:auto;border:1px solid #ddd9e3;border-radius:8px;padding:10px}.composer textarea{border:0;outline:0;resize:none;width:100%;min-height:72px;font-size:13px}.composer>div{display:flex;justify-content:space-between;align-items:center}.composer small{font-size:10px;color:#aaa}.answer{background:#faf8fd;border-left:3px solid var(--purple);padding:15px 17px;margin:20px 0;line-height:1.7;font-size:13px}.answer b{display:block;color:var(--purple);font-size:11px;margin-bottom:6px}.hidden{display:none}.context h3{font-size:12px;margin:0 0 14px}.context p{font-size:12px;color:#555;position:relative;padding:9px 0;margin:0}.context p small{display:block;color:#aaa;font-size:10px;margin:4px 0 0 25px}.context p strong{position:absolute;right:0;color:var(--green)}.context hr{border:0;border-top:1px solid var(--line);margin:21px 0}.context .history{border-bottom:1px solid #f1eff3;padding:10px 0}.risk-summary{display:flex;gap:28px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 25px;margin-bottom:18px}.score{width:90px;height:90px;border-radius:50%;background:conic-gradient(var(--purple) 0 82%,#eeeaf2 82%);display:grid;place-content:center;text-align:center;position:relative}.score:after{content:'';position:absolute;inset:8px;background:#fff;border-radius:50%}.score b,.score small{position:relative;z-index:1;text-align:center}.score b{font-size:24px}.score small{font-size:9px;color:#999}.risk-summary h2{font-size:16px;margin:0 0 7px}.risk-summary p{font-size:11px;color:#999}.legend{color:var(--red);font-size:11px}.legend span{color:#bd8121}.legend i{color:var(--green);font-style:normal}.risk-item{display:flex;align-items:center;gap:15px;border-top:1px solid #f0eef2;padding:17px 0}.risk-item>div{flex:1}.risk-item .level{width:22px;height:22px;display:grid;place-items:center;border-radius:5px;font-size:10px}.high{color:var(--red);background:var(--redbg)}.mid{color:var(--yellow);background:var(--yellowbg)}.risk-item strong{font-size:13px}.risk-item p{font-size:12px;color:#777;margin:5px 0}.risk-item small{font-size:10px;color:#aaa}.risk-item time{font-size:11px;color:var(--red);white-space:nowrap}.table{padding:0;overflow:hidden}.toolbar{display:flex;gap:9px;padding:15px;border-bottom:1px solid var(--line)}.toolbar input,.toolbar select{border:1px solid var(--line);border-radius:6px;padding:8px 10px;font-size:12px;outline:0}.toolbar input{width:250px}.toolbar .outline{margin-left:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:14px 18px;border-bottom:1px solid #f0eef2;font-size:12px}th{font-size:11px;color:#999;font-weight:500;background:#fcfbfd}td small{display:block;color:#aaa;font-size:10px;margin-top:4px}.payroll-banner{display:flex;justify-content:space-between;align-items:center;padding:25px 28px;background:#f8f6fc;border-color:#e6e0f1;margin-bottom:16px}.payroll-banner h2{font-size:19px;margin:7px 0}.payroll-banner p{color:#777;margin:0;font-size:12px}.payroll-banner>strong{font-size:24px}.payroll-banner small{display:block;font-size:10px;color:#999;margin-top:8px}.stats{grid-template-columns:repeat(3,1fr)}.stats article{padding:20px}.stats b{display:block;font-size:22px;margin:12px 0 8px}.empty{text-align:center;padding:70px 20px}.empty>b{font-size:35px;color:#b4adc2}.empty h2{font-size:16px;margin:16px 0 7px}.empty p{font-size:12px;color:#999;margin:0 0 18px}.subsidy{padding:25px}.subsidy h2{font-size:18px;margin:18px 0}.subsidy>div{display:flex;align-items:center;gap:20px;border-top:1px solid #f0eef2;padding:18px 0}.subsidy>div b,.subsidy>div p{display:block}.subsidy>div b{font-size:13px}.subsidy>div p{font-size:11px;color:#999;margin:6px 0 0;flex:1}.subsidy>div strong{color:var(--purple);font-size:13px;white-space:nowrap}.template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.template-grid button{background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px;text-align:left;box-shadow:var(--shadow)}.template-grid button>b{display:block;font-size:22px;color:var(--purple);margin-bottom:25px}.template-grid strong,.template-grid small{display:block}.template-grid small{color:#999;font-size:11px;margin-top:7px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#2b2930;color:#fff;padding:10px 15px;border-radius:6px;font-size:12px;opacity:0;transition:.25s;pointer-events:none}#toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:1000px){.sidebar{width:205px}.view{padding:30px 24px}.metrics{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.template-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.sidebar{width:58px;padding:16px 8px}.brand{padding:0 5px 25px}.brand>div,.sidebar nav button span,.side-foot{display:none}.sidebar nav button{padding:0;justify-content:center;font-size:17px}.view{padding:25px 15px}.intro{align-items:flex-start;gap:18px}.intro h1{font-size:23px}.metrics,.stats{grid-template-columns:1fr 1fr}.flow-grid,.template-grid{grid-template-columns:1fr 1fr}.chat-grid{grid-template-columns:1fr}.context{display:none}.risk-item{flex-wrap:wrap}.risk-item>div{min-width:calc(100% - 38px)}.risk-item time{margin-left:38px}.table{overflow:auto}.toolbar{min-width:600px}.subsidy>div{flex-wrap:wrap}.subsidy>div p{flex-basis:100%}}
.company-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);gap:18px}.company-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.company-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#696672}.company-form input,.company-form select,.company-form textarea{border:1px solid var(--line);border-radius:6px;padding:10px 11px;outline:0;background:#fff;color:var(--ink);font-size:13px}.company-form input:focus,.company-form select:focus,.company-form textarea:focus{border-color:#b8acd2;box-shadow:0 0 0 3px #51437b12}.company-form textarea{resize:vertical}.company-form .wide{grid-column:1/-1}.completion{font-size:11px;color:var(--purple);background:var(--soft);border-radius:5px;padding:5px 8px}.connected{border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:22px;padding-top:17px;font-size:11px;color:#777}.connected>b{flex-basis:100%;font-size:12px;color:var(--ink)}.connected span mark{font-size:10px;border-radius:4px;padding:4px 6px;margin-left:5px;color:var(--purple);background:var(--soft)}.department-row{display:flex;align-items:center;gap:11px;border-top:1px solid #f0eef2;padding:14px 0}.department-row>div{flex:1}.department-row b,.department-row small{display:block}.department-row b{font-size:13px;font-weight:500}.department-row small{font-size:10px;color:#999;margin-top:4px}.dept-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:var(--soft);color:var(--purple)}.icon-button{width:24px;height:24px;border-radius:5px;color:#aaa;font-size:18px}.icon-button:hover{background:var(--redbg);color:var(--red)}.empty.mini{padding:35px 10px}.empty.mini>b{font-size:24px}.empty.mini p{margin:9px 0 0}@media(max-width:900px){.company-grid{grid-template-columns:1fr}}@media(max-width:680px){.company-form{grid-template-columns:1fr}.company-form .wide{grid-column:auto}.connected{display:grid}}
.upload-button{display:inline-flex;align-items:center;position:relative;overflow:hidden}.upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.knowledge-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px}.knowledge-categories{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:5px}.knowledge-categories button{border:1px solid var(--line);border-radius:6px;padding:7px 10px;font-size:11px;color:#777;background:#fff}.knowledge-categories button.active{background:var(--soft);border-color:#ddd4eb;color:var(--purple)}.knowledge-categories b{font-size:10px;margin-left:4px}.knowledge-row{display:flex;align-items:center;gap:12px;border-top:1px solid #f0eef2;padding:14px 0}.knowledge-row>div{flex:1;min-width:0}.knowledge-row strong,.knowledge-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.knowledge-row strong{font-size:12px}.knowledge-row small{font-size:10px;color:#999;margin-top:5px}.file-icon{width:30px;height:34px;border-radius:5px;background:var(--soft);color:var(--purple);display:grid;place-items:center;font-size:15px}.knowledge-row mark{font-size:10px;padding:4px 6px;border-radius:4px;color:var(--yellow);background:var(--yellowbg);white-space:nowrap}.knowledge-row .remove-knowledge{font-size:17px;color:#aaa;padding:3px 7px}.knowledge-row .remove-knowledge:hover{color:var(--red);background:var(--redbg);border-radius:5px}.knowledge-guide h3{font-size:14px;margin:0 0 16px}.knowledge-guide p{border-top:1px solid #f0eef2;padding:13px 0;margin:0}.knowledge-guide p b{display:block;color:var(--purple);font-size:11px;margin-bottom:5px}.knowledge-guide p span{font-size:11px;color:#777;line-height:1.6}.knowledge-guide hr{border:0;border-top:1px solid var(--line);margin:19px 0}.knowledge-guide>small{font-size:10px;line-height:1.6;color:#999}.knowledge-list:empty{display:none}@media(max-width:900px){.knowledge-grid{grid-template-columns:1fr}}@media(max-width:680px){.knowledge-row{flex-wrap:wrap}.knowledge-row mark{margin-left:42px}.knowledge-row .remove-knowledge{margin-left:auto}}
.demo-badge{font-size:10px;color:var(--yellow);background:var(--yellowbg);border-radius:4px;padding:4px 7px}.profile{white-space:nowrap}
.template-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);gap:18px}.template-detail{min-height:280px;position:sticky;top:20px}.template-files{border-top:1px solid #f0eef2}.template-file{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0eef2}.template-file>div{min-width:0;flex:1}.template-file strong,.template-file small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-file strong{font-size:12px;font-weight:500}.template-file small{font-size:10px;color:#999;margin-top:4px}.template-file a{color:var(--purple);font-size:11px;text-decoration:none;border:1px solid #ddd6eb;border-radius:5px;padding:5px 8px;white-space:nowrap}.template-file a:hover{background:var(--soft)}.template-placeholder{font-size:12px;color:#999;line-height:1.7}.template-upload{display:inline-flex;align-items:center;position:relative;color:var(--purple);font-size:11px;border:1px solid #ddd6eb;border-radius:5px;padding:6px 9px;overflow:hidden}.template-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}@media(max-width:900px){.template-layout{grid-template-columns:1fr}.template-detail{position:static}}.template-detail{min-height:420px}.template-detail .panel-title h2{margin-top:14px}.template-detail .panel-title .outline{font-size:12px}.template-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0}.template-file{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;border:1px solid var(--line);border-radius:8px;padding:13px;background:#fff}.template-file>div{min-width:0}.template-file strong{white-space:normal;line-height:1.45;min-height:35px}.template-file small{margin-top:6px}.template-file .file-actions{grid-column:2;display:flex;gap:7px;margin-top:3px}.template-file .file-actions a,.template-file .file-actions button{color:var(--purple);font-size:11px;text-decoration:none;border:1px solid #ddd6eb;border-radius:5px;padding:5px 8px;background:#fff}.template-file .file-actions a:hover,.template-file .file-actions button:hover{background:var(--soft)}.template-files>.template-upload{grid-column:1/-1;justify-self:start}.template-preview{position:fixed;inset:0;background:rgba(30,25,40,.45);z-index:20;display:grid;place-items:center;padding:30px}.template-preview-box{background:#fff;border-radius:10px;width:min(960px,100%);height:min(760px,90vh);display:flex;flex-direction:column;box-shadow:0 15px 50px rgba(30,20,50,.25)}.template-preview-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}.template-preview iframe{border:0;flex:1;width:100%;background:#faf9fb}.template-preview .template-placeholder{padding:16px;margin:0}@media(max-width:680px){.template-files{grid-template-columns:1fr}.template-preview{padding:12px}.template-preview-box{height:94vh}}
/* Keep each document and its actions aligned on one row. */
.template-files{display:grid;grid-template-columns:1fr;gap:8px;border:0}
.template-file{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;padding:11px 13px;background:#fff;min-width:0}
.template-file>.file-icon{flex:none}
.template-file>div:not(.file-actions){min-width:0;flex:1}
.template-file strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.45;min-height:0}
.template-file small{margin-top:5px}
.template-file .file-actions{display:flex;align-items:center;gap:7px;margin-left:auto;flex:none}
.template-file .file-actions a,.template-file .file-actions button{color:var(--purple);font-size:11px;text-decoration:none;border:1px solid #ddd6eb;border-radius:5px;padding:5px 9px;background:#fff;white-space:nowrap}
.template-file .file-actions a:hover,.template-file .file-actions button:hover{background:var(--soft)}
.template-file .file-actions{align-items:center;flex-wrap:wrap}.preview-unavailable{font-size:10px;color:#9a94a2;white-space:nowrap;padding:5px 0}
.template-files>.template-upload{justify-self:start;margin-top:4px}
@media(max-width:680px){.template-file{align-items:flex-start;flex-wrap:wrap}.template-file>div:not(.file-actions){flex-basis:calc(100% - 44px)}.template-file .file-actions{width:100%;margin-left:44px}}
