:root{color:#182026;background:#f4f2ed;font-family:Inter,Microsoft YaHei,PingFang SC,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(180deg,#f4f2edf5,#ebefeceb),url(https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1800&q=80);background-attachment:fixed;background-size:cover}button,textarea,input{font:inherit}.shell{width:min(1480px,calc(100vw - 32px));margin:0 auto;padding:28px 0 40px}.hero{min-height:190px;display:grid;grid-template-columns:1fr;gap:28px;align-items:end;padding:32px 0 24px}.eyebrow{margin:0 0 12px;color:#3d6b65;font-size:14px;font-weight:700}h1{margin:0;max-width:760px;font-size:clamp(36px,4.4vw,64px);line-height:1.08;letter-spacing:0}@media(min-width:761px){h1{white-space:nowrap}}.hero-copy{max-width:740px;margin:18px 0 0;color:#43505a;font-size:18px;line-height:1.7}.hero-metrics{display:grid;grid-template-columns:repeat(3,112px);gap:10px}.hero-metrics div,.panel{border:1px solid rgba(40,56,64,.12);background:#ffffffe6;box-shadow:0 18px 50px #202c3214;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.hero-metrics div{min-height:92px;padding:16px;border-radius:8px}.hero-metrics strong{display:block;font-size:34px}.hero-metrics span{color:#66737b}.workspace{display:grid;grid-template-columns:minmax(280px,360px) 1fr minmax(240px,300px);gap:16px;align-items:start}.auth-shell{min-height:420px;display:grid;place-items:center}.auth-panel{width:min(420px,100%)}.auth-panel p{color:#53616a;line-height:1.7}.password-input{width:100%;min-height:44px;margin:10px 0 12px;padding:10px 12px;border:1px solid #d6ddd9;border-radius:6px;color:#172026;background:#fbfcfb}.panel{border-radius:8px;padding:18px}.panel-title,.title-inline{display:flex;gap:10px;align-items:center}.panel-title h2{margin:0;font-size:18px}.row-between{justify-content:space-between}textarea{width:100%;min-height:330px;margin-top:12px;padding:14px;resize:vertical;border:1px solid #d6ddd9;border-radius:6px;color:#172026;background:#fbfcfb;line-height:1.7}textarea:disabled{color:#7a878c;background:#f1f4f2;cursor:not-allowed}.input-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:16px;padding:4px;border:1px solid #d6ddd9;border-radius:6px;background:#f3f7f5}.input-mode-tabs button{min-height:34px;color:#516168;background:transparent}.input-mode-tabs button.active{color:#fff;background:#235c55}.upload-box{display:flex;min-height:52px;margin-top:12px;padding:12px;gap:10px;align-items:center;border:1px dashed #8aa49b;border-radius:6px;color:#315c55;cursor:pointer}.upload-box-large{min-height:330px;flex-direction:column;justify-content:center;font-size:18px}.upload-box-large svg{width:34px;height:34px}.upload-box input{display:none}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}button{min-height:42px;border:0;border-radius:6px;cursor:pointer;display:inline-flex;gap:8px;align-items:center;justify-content:center}button:disabled{cursor:not-allowed;opacity:.6}.primary{color:#fff;background:#235c55}.secondary{color:#1f3d39;background:#dbe7e2}.icon-button{width:38px;min-height:38px;color:#284944;background:#edf4f1}.main-area{display:grid;gap:16px}.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}.step{min-height:76px;padding:12px;border:1px solid #d9dfdc;border-radius:6px;color:#67737a;background:#f7f8f7}.step span{display:inline-grid;width:26px;height:26px;place-items:center;margin-bottom:10px;border-radius:50%;color:#52615f;background:#e5ebe8;font-size:13px;font-weight:700}.step strong,.step small{display:block}.step small{margin-top:6px;color:#6b7b80;font-size:12px}.step.done{color:#2f5952;border-color:#b8d2ca;background:#f0f7f4}.step.done span{color:#fff;background:#4a8074}.step.current{color:#173530;border-color:#80aaa0;background:#e7f2ee}.step.current span{color:#173530;background:#cfe4dd}.step.current small{color:#235c55;font-weight:700}.step.pending{color:#67737a;border-color:#d9dfdc;background:#f7f8f7}.status-text{margin:14px 0 0;color:#53616a;line-height:1.6}.progress-error{margin:10px 0 0}.info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.result-summary{display:grid;grid-template-columns:110px 110px 110px 1fr;gap:10px;align-items:stretch;margin:18px 0}.summary-count{min-height:78px;padding:12px;border-radius:8px;display:grid;align-content:center;gap:4px}.summary-count strong{font-size:30px;line-height:1}.summary-count span{color:#526168}.summary-count.high{color:#8a2525;background:#f8e4e2}.summary-count.medium{color:#8a5a17;background:#f6ead6}.summary-count.low{color:#28634e;background:#e4f2eb}.result-summary p{min-height:78px;margin:0;padding:14px;border-radius:8px;color:#314148;background:#f5f8f6;line-height:1.7;display:flex;align-items:center}.info-grid div{min-height:86px;padding:12px;border-radius:6px;background:#f5f8f6}.info-grid span{display:block;margin-bottom:8px;color:#6a767b;font-size:13px}.info-grid strong{display:block;color:#20292d;font-size:14px;line-height:1.5}.risk-card{margin-top:12px;padding:16px;border:1px solid #d8dedb;border-left:5px solid #8b9894;border-radius:8px;background:#fff}.risk-card.high{border-left-color:#b33a3a}.risk-card.medium{border-left-color:#c98a2c}.risk-card.low{border-left-color:#34785f}.risk-card header{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.risk-level{min-width:36px;padding:4px 8px;border-radius:999px;color:#fff;background:#344a4a;text-align:center;font-size:13px;font-weight:700}.risk-card h3{margin:0;font-size:17px}.confirm{display:flex;gap:6px;align-items:center;white-space:nowrap;color:#506068;font-size:14px}.clause{margin:12px 0;padding:10px;color:#53616a;background:#f6f7f5;border-radius:6px;line-height:1.6}dl{display:grid;grid-template-columns:52px 1fr;gap:8px 10px;margin:0}dt{color:#5c6b70;font-weight:700}dd{margin:0;line-height:1.65}.note-input{width:100%;min-height:38px;margin-top:12px;padding:8px 10px;border:1px solid #d6ddd9;border-radius:6px}.summary-box{margin-top:16px;padding:16px;border-radius:8px;background:#eef5f1}.summary-box h3{margin:0 0 10px}.summary-box p{line-height:1.7}.human-note{min-height:88px;margin:8px 0 12px}.history-panel{position:sticky;top:16px}.history-panel .history-item{grid-template-columns:minmax(0,1fr) minmax(120px,auto) 38px;gap:6px;align-items:center}.history-panel .history-item small{justify-content:flex-start;flex-wrap:wrap}.history-item{width:100%;min-height:72px;margin-top:10px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 150px 138px;gap:10px;align-items:center;border:1px solid #e0e4e1;background:#fbfcfb;cursor:pointer;text-align:left}.history-item:hover{border-color:#a9c7bd;background:#f5faf7}.delete-history{width:32px;min-height:32px;padding:0;justify-self:end;color:#8a2525;background:#f8e4e2}.history-item strong,.history-item span,.history-item time,.history-item small{max-width:100%;overflow-wrap:anywhere}.history-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item time{white-space:nowrap;color:#69777f}.history-main{min-width:0;display:grid;gap:8px}.history-item small{display:flex;gap:5px;justify-content:flex-end}.risk-chip{min-width:40px;padding:3px 6px;border-radius:999px;text-align:center;font-size:12px;font-weight:700}.risk-chip.high{color:#8a2525;background:#f8e4e2}.risk-chip.medium{color:#8a5a17;background:#f6ead6}.risk-chip.low{color:#28634e;background:#e4f2eb}.history-item span,.history-item time,.history-item small,.muted{color:#69777f}.empty-state{min-height:420px;display:grid;place-items:center;gap:12px;padding:40px;color:#5f6d72;text-align:center}.empty-state p{max-width:480px;line-height:1.8}.error{padding:10px;border-radius:6px;color:#8a1f1f;background:#f8e4e2;line-height:1.6}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1160px){.workspace{grid-template-columns:1fr}.history-panel{position:static}}@media(max-width:760px){.shell{width:min(100vw - 20px,720px);padding-top:12px}.hero{grid-template-columns:1fr;min-height:auto}.hero-metrics,.steps,.info-grid,.result-summary{grid-template-columns:1fr}h1{font-size:34px;white-space:normal}.actions{grid-template-columns:1fr}.history-item{grid-template-columns:minmax(0,1fr) 38px}.history-time{grid-column:1 / -1;grid-row:2}.history-item small{justify-content:flex-start}textarea{min-height:240px}}
