:root{--ink:#1b2d3a;--muted:#647581;--line:#dce4e8;--bg:#f2f5f7;--accent:#17655c;--soft:#eaf4f1;--error:#a32a26}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:95px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 "Segoe UI","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid #cdd8df;border-radius:7px;background:white;color:var(--ink);padding:9px 14px;transition:background .15s,transform .15s}button:hover{background:#edf3f5}button:active{transform:translateY(1px)}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--accent);color:white;border-color:var(--accent);font-weight:600}button.primary:hover{background:#104e47}.accent{color:var(--accent);border-color:#b8d9d0;background:var(--soft)}header{background:#fff;border-bottom:1px solid var(--line);padding:18px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brandmark{width:39px;height:39px;border-radius:9px;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:21px;font-weight:700}.brand strong{display:block;font-size:17px}.brand small{display:block;color:var(--muted);font-size:12px}.header-actions{display:flex;align-items:center;gap:9px}#saveState{color:var(--muted);font-size:12px;margin-right:8px}main{max-width:1560px;margin:0 auto;padding:32px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.eyebrow{font-size:12px;letter-spacing:.09em;color:var(--muted);margin:0 0 8px}h1{font-size:28px;line-height:1.3;margin:0 0 10px;letter-spacing:-.6px}h2{font-size:18px;margin:0;line-height:1.4}p{margin:6px 0 0}.muted{color:var(--muted)}nav{display:flex;gap:30px;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:24px}nav a{text-decoration:none;color:var(--ink)}nav b{font-size:12px;color:var(--accent);margin-right:6px}nav span{font-size:11px;background:#dfe8e9;border-radius:4px;padding:2px 6px;margin-left:4px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:24px}.editor{min-width:0}section{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:22px;padding:24px;scroll-margin-top:25px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.section-heading>span{color:var(--muted);font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 20px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:13px;font-weight:600}.field.wide-field{grid-column:span 3}.field.half-field{grid-column:span 2}i{font-style:normal;color:var(--error);font-size:12px}input:not([type=radio]):not([type=file]),select,textarea{border:1px solid #cdd8df;border-radius:6px;background:#fff;padding:9px 10px;color:var(--ink);width:100%;min-width:0}input:hover,select:hover,textarea:hover{border-color:#9cabb5}input:focus,textarea:focus,select:focus{outline:2px solid #9cc8bf;outline-offset:1px}textarea{resize:vertical;min-height:72px}input::placeholder,textarea::placeholder{color:#94a1ab;font-size:12px}.tools{display:flex;gap:8px;flex-shrink:0}.table-scroll{overflow:auto;margin:0 -10px}.materials{border-collapse:collapse;width:100%;min-width:920px;table-layout:fixed}.materials th{color:var(--muted);background:#f5f7f9;text-align:left;font-size:12px;font-weight:500;padding:11px 7px;border-bottom:1px solid var(--line)}.materials th:nth-child(1){width:33px}.materials th:nth-child(2){width:142px}.materials th:nth-child(3){width:112px}.materials th:nth-child(4){width:174px}.materials th:nth-child(5){width:68px}.materials th:nth-child(6){width:63px}.materials th:nth-child(7){width:86px}.materials th:nth-child(8){width:140px}.materials th:nth-child(9){width:104px}.materials td{padding:12px 5px;vertical-align:top;border-bottom:1px solid #e7edef}.materials td input:not([type=radio]){font-size:12px;padding:8px 7px}.row-actions{display:flex;gap:3px}.row-actions button{padding:7px 6px;font-size:12px}.row-detail td{padding:18px;background:#f7faf9}.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.detail-grid .field label{font-size:12px}.detail-grid .span2{grid-column:span 2}.detail-top{display:flex;justify-content:space-between;margin-bottom:14px}.image-preview{display:block;max-width:130px;max-height:90px;object-fit:contain;margin-top:5px}.material-footer{display:flex;justify-content:space-between;gap:12px;margin-top:16px;font-size:12px;color:var(--muted)}.material-footer strong{color:var(--accent);font-size:14px}.empty{padding:35px;text-align:center;color:var(--muted)}.review-choice{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:24px}.review-choice label{position:relative;border:1px solid var(--line);padding:16px 16px 16px 43px;border-radius:8px;cursor:pointer;transition:border-color .15s,background .15s}.review-choice label:has(input:checked){border-color:var(--accent);background:var(--soft)}.review-choice input{position:absolute;left:16px;top:19px;accent-color:var(--accent)}.review-choice strong{display:block;font-size:14px}.review-choice small{display:block;color:var(--muted);margin-top:5px}.note{font-size:12px;background:#f5f7f9;color:var(--muted);padding:12px;border-radius:6px;margin-top:20px}aside{min-width:0}.export-panel{position:sticky;top:24px;padding:24px;border:1px solid var(--line);background:#fff;border-radius:10px}.file-list{padding:0;list-style:none;margin:23px 0}.file-list li{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #edf0f2}.file-list strong{font-size:13px;display:block}.file-list small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.file-icon{display:grid;place-items:center;width:33px;height:38px;border-radius:5px;font-weight:bold;flex-shrink:0}.word{background:#e9effb;color:#3664a3}.excel{background:#e6f4e9;color:#347b49}.badge{font-size:10px;color:var(--accent);margin-left:auto;background:var(--soft);padding:2px 5px;border-radius:4px}.checks{font-size:12px;padding:12px 0 18px;color:var(--muted)}.checks p{margin:4px 0}.checks .ready{color:var(--accent)}.checks .missing{color:#936520}.wide{width:100%}.individual{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 16px}.individual button{font-size:11px;padding:9px 3px}.small{font-size:11px}#exportStatus{font-size:12px;overflow-wrap:anywhere}.error{color:var(--error)}.privacy{padding:20px 10px;color:var(--muted);font-size:12px}.privacy strong{color:var(--ink)}.privacy p{margin-top:8px}.new-draft{width:100%;background:transparent;color:var(--muted);border-style:dashed}footer{padding:8px 0 20px;color:#82909b;font-size:11px;display:flex;justify-content:space-between}dialog{border:1px solid var(--line);border-radius:12px;padding:26px;max-width:680px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 24px 80px #0f29353b}dialog::backdrop{background:#17333c66}dialog .section-heading{margin-bottom:12px}dialog textarea{margin-top:18px}dialog p{color:var(--muted);font-size:13px}.paste-cols{padding:10px;background:var(--soft);color:var(--accent);font-size:12px;margin-top:14px;border-radius:5px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}[hidden]{display:none!important}.invalid{border-color:var(--error)!important;background:#fff8f7!important}@media(min-width:1450px){.layout{grid-template-columns:minmax(0,1fr) 318px}}@media(max-width:1180px){.layout{grid-template-columns:minmax(0,1fr) 275px}main{padding:24px}section{padding:20px}.form-grid{gap:16px}.section-heading{flex-wrap:wrap}.detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:950px){.layout{grid-template-columns:1fr}.export-panel{position:static}.file-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.header-actions{flex-wrap:wrap;justify-content:flex-end}.form-grid{grid-template-columns:1fr 1fr}.field.wide-field{grid-column:span 2}.detail-grid{grid-template-columns:1fr 1fr}.privacy{padding:16px 4px}}@media(max-width:600px){header{padding:16px;align-items:flex-start;flex-direction:column;gap:12px}.header-actions{width:100%;justify-content:flex-start}#saveState{margin-right:auto}.header-actions button{font-size:12px;padding:6px 9px}main{padding:22px 14px}h1{font-size:23px}.page-title{align-items:flex-start;flex-direction:column}.page-title button{width:100%}nav{gap:16px;font-size:12px}.section-heading>span{display:none}section{padding:18px 14px}.form-grid,.detail-grid{grid-template-columns:1fr}.field.wide-field,.field.half-field,.detail-grid .span2{grid-column:span 1}.review-choice{grid-template-columns:1fr}.file-list{grid-template-columns:1fr;gap:0}.material-footer{flex-direction:column}.tools{width:100%}.tools button{flex:1}.export-panel{padding:20px}.brand small{font-size:11px}footer span{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button,.review-choice label{transition:none}}


/* Manual materials and computed amount. */
.materials{min-width:1030px}.materials th:nth-child(1){width:33px}.materials th:nth-child(2){width:150px}.materials th:nth-child(3){width:110px}.materials th:nth-child(4){width:185px}.materials th:nth-child(5){width:75px}.materials th:nth-child(6){width:65px}.materials th:nth-child(7){width:95px}.materials th:nth-child(8){width:100px}.materials th:nth-child(9){width:140px}.materials th:nth-child(10){width:104px}.amount-cell{font-variant-numeric:tabular-nums;color:var(--accent);font-weight:600}input[readonly]{background:#f2f5f7!important;color:var(--muted)}
