:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#1c2c36;background:#f4f6f5;font-size:14px}*{box-sizing:border-box}body{margin:0}.topbar{height:66px;background:#fff;border-bottom:1px solid #e5eae8;display:flex;align-items:center;justify-content:space-between;padding:0 34px}.topbar>div:first-child{display:flex;align-items:center;gap:14px}.topbar strong{font-size:17px}.topbar small{color:#75858d;border-left:1px solid #dfe5e4;padding-left:14px}.mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#166351;color:#fff;font-weight:800;letter-spacing:-2px}.mark span{color:#9be3cc;margin:0 2px}.status{color:#59746c;font-size:12px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#27a679;margin-right:6px}main{max-width:1720px;margin:auto;padding:31px 34px}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#167158;margin:0 0 10px}h1{font-size:29px;letter-spacing:-.8px;margin:0 0 7px}h2,h3,p{margin-top:0}.intro p:last-child{color:#63737c;max-width:790px;margin:0;line-height:1.5}.upload,.primary{border:0;border-radius:9px;background:#166351;color:#fff;font-weight:700;padding:12px 18px;cursor:pointer;white-space:nowrap}.upload:hover,.primary:hover{background:#0d4f3f}.notice{padding:14px 18px;background:#fff9e9;border:1px solid #e9daa9;border-radius:10px;line-height:1.5;color:#705c24;margin-bottom:22px}.workspace{display:grid;grid-template-columns:245px minmax(0,1fr);gap:18px;align-items:start}.sidebar,.empty,.editor{background:#fff;border:1px solid #e3e9e6;border-radius:12px;min-height:480px}.sidebar{padding:16px;position:sticky;top:15px}.sidehead{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.sidehead h2{font-size:15px;margin:0}.sidehead span{background:#ecf4f0;border-radius:20px;padding:3px 9px;color:#176a51;font-weight:700;font-size:12px}.documents{display:grid;gap:7px}.doc{display:block;width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:8px;padding:11px;cursor:pointer;color:inherit}.doc:hover{background:#f3f7f5}.doc.active{background:#e8f4ee;border-color:#b9dfcb}.doc strong,.doc small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.doc strong{font-size:12px}.doc small{color:#6d7d85;margin-top:5px}.empty-small{color:#819097;font-size:12px;line-height:1.5}.empty{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#63737c;padding:30px}.empty h2{color:#1c2c36;margin:18px 0 8px}.empty p{max-width:400px;line-height:1.6}.empty-icon{width:75px;height:75px;border-radius:17px;background:#e9f4ef;color:#176a51;display:grid;place-items:center;font-weight:800}.batch{width:100%;margin-top:14px}.batch:disabled{opacity:.5;cursor:default}.batch-hint{color:#819097;font-size:11px;line-height:1.4;margin:7px 0 0}.hidden{display:none!important}.editor{padding:22px}.editor-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e5eae8;padding-bottom:18px;margin-bottom:20px}.editor-head h2{font-size:22px;margin:0 0 5px}.muted{color:#7a8b93;font-size:12px;margin:0}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,41%);gap:18px}.form-pane{min-width:0}.card{border:1px solid #e5ebe8;border-radius:10px;padding:18px;margin-bottom:16px;background:#fff}.card h3{font-size:14px;margin:0 0 16px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.fields label,.party-fields label{display:block;color:#52666e;font-size:11px;font-weight:700}.fields input,.fields select,.party-fields input,td input{width:100%;border:1px solid #d8e1de;border-radius:7px;padding:9px 10px;color:#1c2c36;background:#fff;font:inherit;margin-top:5px}.fields input:focus,.fields select:focus,.party-fields input:focus,td input:focus{outline:2px solid #8bd0b2;border-color:#238b6a}input[readonly]{background:#f5f7f6}.parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.party-fields{display:grid;gap:10px}.help{color:#76868d;line-height:1.5;font-size:12px;margin:-6px 0 17px}.pdf-pane{border:1px solid #e4ebe8;border-radius:10px;overflow:hidden;position:sticky;top:15px;height:calc(100vh - 100px);min-height:500px}.pdf-head{height:46px;padding:13px 15px;background:#f7faf8;display:flex;justify-content:space-between;align-items:center}.pdf-head a{color:#167158;text-decoration:none;font-size:12px}.pdf-pane iframe{width:100%;height:calc(100% - 46px);border:0}.card-title{display:flex;align-items:center;justify-content:space-between}.ghost{background:#fff;border:1px solid #c7d9d0;border-radius:7px;color:#14654e;padding:7px 10px;cursor:pointer;font-weight:700}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:690px}th{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#819098;text-align:left;padding:9px 6px;border-bottom:1px solid #e2e9e5}td{padding:7px 5px;vertical-align:top;border-bottom:1px solid #edf1ef}td:first-child{min-width:250px}td:nth-child(2),td:nth-child(3),td:nth-child(4),td:nth-child(5){width:90px}td input{margin-top:0;padding:7px 6px;font-size:12px}td .description{margin-top:5px}.remove{border:0;background:none;color:#aa4f4f;font-size:19px;cursor:pointer}.sumline{display:flex;justify-content:flex-end;gap:20px;padding-top:15px;color:#64777e}.sumline strong{color:#1c2c36}.message{padding:12px 15px;border-radius:8px;background:#fff0e7;border:1px solid #ecc4aa;color:#8d4d23;line-height:1.5}.message.ok{background:#ecf8f1;border-color:#b3ddc3;color:#155d3d}@media(max-width:1200px){.editor-grid{grid-template-columns:1fr}.pdf-pane{position:static;height:650px}.parties{grid-template-columns:1fr}}@media(max-width:800px){.topbar{padding:0 16px}.topbar small,.status{display:none}main{padding:22px 15px}.intro{align-items:start;flex-direction:column}.workspace{grid-template-columns:1fr}.sidebar{position:static;min-height:0}.documents{display:flex;overflow:auto}.doc{min-width:200px}.editor{padding:15px}.editor-head{align-items:start;flex-direction:column}.fields{grid-template-columns:1fr}}
.pdf-hint{font-size:11px;color:#7b8b90;text-align:center;margin:0;padding:6px}.pdf-pane iframe{height:calc(100% - 70px)}@media(max-width:1200px){.pdf-pane{height:auto;min-height:0}.pdf-pane iframe{display:none}.pdf-hint{padding:30px}}
