:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#182538;background:#f3f5f8;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid #dce3ee;border-radius:10px;background:white;color:#254266;padding:11px 15px;min-height:44px}button:disabled{opacity:.5;cursor:wait}button.primary{background:#1763e8;color:white;border-color:#1763e8}button.quiet{border-color:transparent;background:transparent}a{color:#1763e8;text-decoration:none}header{height:74px;background:#ffffffed;border-bottom:1px solid #e2e7ef;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:12px}.brand{font-weight:750;font-size:20px;white-space:nowrap}.brand span{background:#1763e8;color:white;border-radius:9px;padding:7px;margin-right:10px}.layout{display:grid;grid-template-columns:200px minmax(0,1fr);max-width:1440px;margin:auto;min-height:calc(100vh - 74px)}nav{padding:28px 16px;display:flex;flex-direction:column;gap:8px;border-right:1px solid #e2e7ef}nav button{text-align:left;background:transparent;border:0}nav button.active{background:#e5edfc;color:#145acb;font-weight:650}main{padding:28px 36px;min-width:0}h1{font-size:27px;margin:0 0 8px}h2{font-size:18px;margin:0 0 18px}p{line-height:1.7}.muted,small{color:#64758b}.notice{border:1px solid #cddbf2;background:#edf3fd;color:#455f83;border-radius:12px;padding:12px 16px;margin:0 0 24px;font-size:13px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.panel{background:white;border:1px solid #e3e8ef;border-radius:16px;padding:24px;margin:16px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.shortcut{text-align:left;padding:20px;min-height:108px;border-radius:16px}.shortcut strong{display:block;margin-bottom:10px;font-size:18px}.shortcut small{display:block}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:flex;flex-direction:column;gap:8px;margin:0 0 16px;font-size:14px}input,select,textarea{width:100%;min-width:0;border:1px solid #d8e0eb;border-radius:9px;background:#fbfcfe;padding:11px;color:#182538}textarea{min-height:100px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #9abefb;outline-offset:1px}.search{display:flex;gap:10px;align-items:end}.search label{flex:1;margin:0}.search select{max-width:180px}.list{display:grid;gap:10px}.row{display:flex;justify-content:space-between;gap:14px;text-align:left;width:100%;padding:18px;background:white;border:1px solid #e3e8ef;border-radius:12px}.row strong,.row small{display:block}.row small{margin-top:7px;line-height:1.5}.badge{align-self:start;white-space:nowrap;border-radius:20px;padding:5px 10px;background:#edf2fa;font-size:12px;color:#476486}.empty{text-align:center;padding:40px;color:#718099}.error{color:#ae2233;white-space:pre-wrap}#flash{min-height:24px;margin-bottom:10px}.login{max-width:430px;margin:8vh auto}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}details{margin:12px 0}summary{cursor:pointer;padding:8px 0;color:#526c8d}dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px}dt{color:#64758b}dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit}.mobile-only{display:none}
@media(max-width:760px){header{padding:0 16px;height:64px}.brand{font-size:17px}.layout{display:block}main{padding:20px 16px 100px}nav{position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fffffff5;border-top:1px solid #e2e7ef;border-right:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));flex-direction:row;justify-content:space-around}nav button{font-size:12px;padding:10px 5px;text-align:center;min-width:48px}nav .desktop{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shortcut{padding:16px}.shortcut strong{font-size:16px}.panel{padding:18px}.two{gap:12px}.toolbar{align-items:start}h1{font-size:24px}.search{flex-wrap:wrap}.search select{max-width:none}.search label{min-width:140px}.header-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}dl{grid-template-columns:80px minmax(0,1fr);gap:12px}.login{margin:30px 16px}.desktop-only{display:none}}

.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.photo-grid figure{margin:0;min-width:0}.photo-grid img{width:100%;height:150px;object-fit:cover;border-radius:10px}.photo-grid figcaption{padding:8px 0;overflow-wrap:anywhere;color:#64758b}.photo-grid button{font-size:12px;padding:6px}@media(max-width:760px){.photo-grid img{height:90px}.photo-grid{gap:8px}}

.backup-days{display:flex;gap:18px;flex-wrap:wrap}.backup-days label{flex-direction:row;align-items:center}.backup-days input{width:auto}fieldset{border:1px solid #e3e8ef;border-radius:10px;margin-bottom:20px;padding:16px}
.quick{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.quick button{padding:8px 14px;min-height:38px}
.quick button.active{background:#1763e8;color:#fff;border-color:#1763e8}
.inline-field{display:flex;gap:8px;align-items:center}
.inline-field input{flex:1}
.inline-field button{white-space:nowrap}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 10px}
.chip{flex-direction:row;align-items:center;gap:6px;margin:0;padding:7px 11px;border:1px solid #d8e0eb;border-radius:999px;background:#fbfcfe;font-size:13px;width:auto;min-height:38px}
.chip input{width:auto}
@media(max-width:760px){.inline-field{flex-wrap:wrap}.inline-field button{width:100%}}
.field{display:flex;flex-direction:column;gap:8px;margin:0 0 16px;font-size:14px}
.field-title{color:#182538}

.construction-workbench{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.55fr);gap:18px;align-items:start}
.record-workbench{max-width:1000px}
.record-workbench .construction-form-panel{margin:0}
.geo-field .inline-field{align-items:stretch}
.geo-field .inline-field input{min-height:44px}
.geo-field .inline-field button{min-width:104px;padding:0 14px}
.construction-form-panel,.construction-preview-panel{margin:0}
.construction-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}
.construction-head h1{margin:0;font-size:24px}
.construction-head .muted{display:block;margin-top:4px;font-size:12px}
.construction-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.construction-head-actions button{min-height:38px;padding:7px 12px}
.construction-form label{margin-bottom:15px}
.construction-form .req{color:#a12424;font-weight:600}
.construction-form .hint{color:#6b7b91;font-weight:400;font-size:12px}
.construction-meta-row{align-items:start}
.worker-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.worker-quick{display:grid;grid-template-columns:repeat(4,40px);gap:4px}
.worker-quick button{min-height:40px;padding:0;border-radius:8px;font-weight:650}
.worker-quick button.active{background:#1763e8;border-color:#1763e8;color:#fff}
.construction-progress textarea{min-height:112px}
.write-extra{border:1px solid #e3e8ef;border-radius:12px;padding:0 14px;margin:14px 0;background:#fbfcfe}
.write-extra>summary{padding:12px 0;font-weight:650;color:#254266}
.write-extra[open]>summary{border-bottom:1px solid #edf1f6;margin-bottom:12px}
.write-extra label{margin:10px 0}
.write-extra .inline-field{margin-bottom:12px}
.custom-subsystem{border:0;margin:0 0 12px;padding:0;background:transparent}
.custom-subsystem>summary{padding:6px 0;font-size:13px}
.photo-uploader{border:2px dashed #c8d5e7;border-radius:14px;background:#fbfcfe;padding:12px;transition:border-color .15s,background .15s}
.photo-uploader.drag{border-color:#1763e8;background:#eef4ff}
.photo-uploader-hint{cursor:pointer;text-align:center;padding:28px 10px;color:#64758b;font-weight:650}
.photo-uploader .photo-grid{margin:0}
.form-photo{position:relative;margin:0}
.form-photo img{height:112px;border-radius:10px;border:1px solid #e3e8ef}
.photo-remove{position:absolute;top:6px;right:6px;width:30px;height:30px;min-height:0;padding:0;border-radius:50%;background:#ffffffeb;color:#a12424;border:1px solid #e3b9b9;font-size:18px;line-height:1;display:grid;place-items:center}
.items-field .item-rows{display:flex;flex-direction:column;gap:8px;margin:6px 0 10px}
.item-row{display:grid;grid-template-columns:minmax(0,1.3fr) 64px 76px minmax(0,1.2fr) 38px;gap:8px;align-items:center}
.item-row input{min-height:46px;padding:9px 10px;font-size:16px}
.item-row button{min-height:46px;padding:0;font-size:20px;line-height:1;color:#a12424;background:#fff}
.add-item{align-self:flex-start;min-height:42px;color:#145acb;border-color:#c9daf7;background:#f2f7ff;font-weight:600}
.chip-add{cursor:pointer;background:#eef4ff;border-color:#c9daf7;color:#145acb;font-weight:600;justify-content:center}
@media(max-width:760px){.item-row{grid-template-columns:minmax(0,1fr) 58px 66px 34px;grid-template-areas:"name qty unit del" "spec spec spec spec";gap:6px}.item-row [data-item-name]{grid-area:name}.item-row [data-item-qty]{grid-area:qty}.item-row [data-item-unit]{grid-area:unit}.item-row [data-item-spec]{grid-area:spec}.item-row [data-remove-item]{grid-area:del}.item-row input{padding:8px 7px}.items-field .chips{gap:6px}.chip-add{font-size:12px;padding:6px 9px}}
.construction-actions{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.btn-generate{width:100%;background:#177a4d;border-color:#177a4d;color:#fff;font-size:17px;font-weight:750;min-height:54px;letter-spacing:.02em;box-shadow:0 8px 18px #177a4d2e}
.btn-generate:hover{background:#12643e;border-color:#12643e}
.construction-secondary{display:flex;gap:10px}
.construction-secondary button{flex:1}
.construction-footnote{font-size:12px;margin:10px 0 0;color:#6b7b91}
.construction-preview-panel{position:sticky;top:20px;max-height:calc(100vh - 110px);display:flex;flex-direction:column;background:#fff}
.preview-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.preview-head h2{margin:0}
.preview-box{flex:1;overflow:auto;background:#f8fafc;border:1px solid #e3e8ef;border-radius:12px;padding:16px;min-height:340px}
.preview-box .empty-tip{text-align:center;color:#718099;padding:50px 10px;line-height:1.8}
.preview-box pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:13.5px;line-height:1.85;margin:0;color:#1c2d44}
.preview-actions{display:flex;gap:8px;margin-top:10px;align-items:flex-start}
.preview-actions>button{flex:1}
.export-slot{flex:1;min-width:0}
.export-slot>button{width:100%}
.export-slot p{margin:4px 0 0;font-size:11px;line-height:1.4}
@media(min-width:1101px){.construction-preview-panel{height:calc(100vh - 130px);min-height:520px}}
@media(max-width:1100px){.construction-workbench{grid-template-columns:1fr}.construction-preview-panel{position:static;max-height:none;order:2}.preview-box{max-height:440px;min-height:260px}}
@media(max-width:760px){.construction-head{flex-direction:column}.construction-head-actions{width:100%;justify-content:space-between}.construction-head h1{font-size:22px}.construction-form-panel{padding:16px}.worker-entry{grid-template-columns:1fr}.worker-quick{grid-template-columns:repeat(4,1fr)}.worker-quick button{min-height:44px}.construction-meta-row .inline-field{flex-wrap:nowrap}.construction-meta-row .inline-field button{width:48px;min-width:48px;padding:0}.construction-secondary{flex-direction:column}.preview-actions{flex-direction:column}.preview-actions>button,.export-slot{width:100%}.photo-uploader-hint{padding:22px 8px}.form-photo img{height:86px}}

@media(max-width:760px){.record-workbench{max-width:none}.geo-field .inline-field{flex-wrap:nowrap}.geo-field .inline-field button{width:auto;min-width:92px;padding:0 12px}}

.inspection-intro{display:flex;flex-direction:column;gap:4px}
.inspection-intro-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.inspection-select-all{min-height:30px;padding:3px 8px;border:0;background:transparent;color:#145acb;font-size:12px}
.inspection-systems{gap:7px;margin:8px 0 12px}
.system-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:7px 11px;border-radius:999px;font-size:13px;background:#fbfcfe}
.system-chip small{font-size:10px;color:#7a8ca3;background:#eef3fa;border-radius:9px;padding:1px 5px}
.system-chip.active{background:#0f57d6;border-color:#0f57d6;color:#fff;font-weight:700}
.system-chip.active small{background:#ffffff2e;color:#fff}
.inspection-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 12px;padding:10px 12px;border:1px solid #dfe7f2;background:#f6f9fe;border-radius:12px;position:sticky;top:8px;z-index:4}
.inspection-toolbar span{font-size:13px;color:#425d7d;font-weight:650}
.inspection-all{min-height:38px;padding:7px 12px;background:#1763e8;border-color:#1763e8;color:#fff;font-weight:650;white-space:nowrap}
.inspection-card{border:1px solid #e2e8f1;border-radius:14px;overflow:hidden;margin:0 0 12px;background:#fff}
.inspection-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 13px;background:#f7faff;border-bottom:1px solid #edf1f6}
.inspection-card-head strong{display:block;font-size:15px}
.inspection-card-head small{display:block;margin-top:2px;font-size:11px;color:#6b7b91}
.inspection-system-all{min-height:36px;padding:6px 10px;font-size:12px;color:#145acb;border-color:#c9daf7;background:#fff;white-space:nowrap}
.inspection-items{display:flex;flex-direction:column}
.inspection-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;align-items:center;padding:9px 13px;border-top:1px solid #f0f3f7}
.inspection-item:first-child{border-top:0}
.inspection-item-name{font-size:14px;color:#243b57;line-height:1.35}
.segmented{display:grid;grid-template-columns:repeat(3,minmax(58px,1fr));gap:4px;padding:3px;background:#f2f5f9;border-radius:10px}
.segmented button{min-height:36px;padding:5px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:#55708f;font-size:13px;white-space:nowrap}
.segmented button[data-result=normal].active{background:#e6f6ec;border-color:#8fd0aa;color:#14663c;font-weight:700}
.segmented button[data-result=abnormal].active{background:#fdeaea;border-color:#e7a6a6;color:#a12424;font-weight:700}
.segmented button[data-result=na].active{background:#eef1f5;border-color:#c9d2de;color:#4a5d73;font-weight:700}
.inspection-note{grid-column:1/-1;margin:0;min-height:40px;font-size:13px;background:#fffaf5;border-color:#efd7be}
.inspection-note[hidden]{display:none}
.inspection-summary{margin:12px 0;border:1px solid #e2e8f1;border-radius:12px;padding:11px 13px;background:#fbfcfe;font-size:13px}
.inspection-summary strong{display:block;margin-bottom:4px}
.inspection-summary p{margin:0;line-height:1.6;color:#526c8d}
.inspection-summary ul{margin:6px 0 0;padding-left:18px;color:#8a2f2f;line-height:1.6}
.inspection-summary.has-abnormal{border-color:#efcaca;background:#fff8f8}
.inspection-rectify textarea{min-height:82px}
@media(max-width:760px){.inspection-toolbar{position:static;padding:9px 10px}.inspection-toolbar span{font-size:12px}.inspection-all{font-size:12px;padding:6px 9px}.system-chip{min-height:38px;padding:6px 10px;font-size:12px}.inspection-item{grid-template-columns:1fr;gap:6px;padding:9px 11px}.segmented{grid-template-columns:repeat(3,1fr);width:100%}.segmented button{min-height:40px;font-size:13px}.inspection-card-head{padding:10px 11px}.inspection-summary{padding:10px 11px}}
.acceptance-card .inspection-card-head{background:#f4f8ff}
.acceptance-items{display:flex;flex-direction:column}
.acceptance-item{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) 40px;gap:8px;align-items:center;padding:8px 12px;border-top:1px solid #f0f3f7}
.acceptance-item:first-child{border-top:0}
.acceptance-item input{min-height:44px;padding:8px 10px;font-size:15px}
.acceptance-item button{min-height:44px;padding:0;font-size:19px;line-height:1;color:#a12424;background:#fff}
.acceptance-add{margin:2px 12px 12px;min-height:40px;padding:7px 12px;border:1px dashed #b9cbe8;border-radius:9px;background:#f7faff;color:#145acb;font-size:13px}
@media(max-width:760px){.acceptance-item{grid-template-columns:minmax(0,1fr) 36px;grid-template-areas:"name del" "note note";gap:6px;padding:8px 10px}.acceptance-item [data-accept-name]{grid-area:name}.acceptance-item [data-accept-note]{grid-area:note}.acceptance-item [data-remove-acceptance-row]{grid-area:del}.acceptance-item input{font-size:16px;padding:7px 8px}.acceptance-add{margin:2px 10px 10px}}

/* ===== 0.1.5 UI alignment: construction-log visual language ===== */
:root{
  --ep-bg:#f1f5f9;
  --ep-panel:#ffffff;
  --ep-line:#e3e9f2;
  --ep-line-strong:#d6dfec;
  --ep-ink:#172033;
  --ep-muted:#6b7c93;
  --ep-blue:#1763e8;
  --ep-blue-soft:#edf3ff;
  --ep-green:#177a4d;
  --ep-green-soft:#eaf7f0;
  --ep-amber:#946200;
  --ep-amber-soft:#fff6e5;
  --ep-radius:16px;
  --ep-shadow:0 1px 2px rgba(15,23,42,.03),0 10px 30px rgba(15,23,42,.045);
}
html{background:var(--ep-bg)}
body{background:var(--ep-bg);color:var(--ep-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
header{height:72px;padding:0 28px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--ep-line);position:sticky;top:0;z-index:30}
.brand{display:flex;align-items:center;font-size:19px;font-weight:750;letter-spacing:-.2px}
.brand span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#1763e8,#0f4fc4);box-shadow:0 6px 14px rgba(23,99,232,.24);padding:0;margin-right:11px}
.header-name{font-size:13px;color:var(--ep-muted);background:#f8fafc;border:1px solid var(--ep-line);border-radius:999px;padding:7px 12px}
.layout{grid-template-columns:216px minmax(0,1fr);max-width:1480px;min-height:calc(100vh - 72px)}
nav{padding:22px 14px;border-right:1px solid var(--ep-line);background:rgba(255,255,255,.52)}
nav button{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;border-radius:12px;padding:10px 14px;font-weight:650;color:#42546b;font-size:14px;text-align:left;background:transparent;border:0}
nav button:hover{background:#edf3ff;color:#145acb}
nav button.active{background:var(--ep-blue-soft);color:#145acb;box-shadow:inset 3px 0 0 var(--ep-blue)}
main{padding:28px 34px 52px;min-width:0}
h1{font-size:28px;line-height:1.25;letter-spacing:-.55px;color:#101828}
h2{font-size:18px;line-height:1.35;letter-spacing:-.2px;color:var(--ep-ink)}
.muted,small{color:var(--ep-muted)}
.eyebrow{display:block;margin-bottom:7px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7c8da3}
.section-kicker{display:block;margin-bottom:5px;font-size:11px;font-weight:800;letter-spacing:.12em;color:#5d7fa8;text-transform:uppercase}
.panel{background:var(--ep-panel);border:1px solid var(--ep-line);border-radius:var(--ep-radius);padding:24px;margin:16px 0;box-shadow:var(--ep-shadow)}
.panel-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:15px}
.panel-head h2{margin:0}
.panel-head small{display:block;margin-top:4px;font-size:12px}
.panel-link{min-height:36px;padding:6px 10px;font-size:12.5px;color:#52677f}
.notice{border:1px solid #d7e4f7;background:linear-gradient(180deg,#f4f8ff,#eef4fe);color:#455f83;border-radius:13px;padding:11px 15px;margin:0 0 22px;font-size:12.5px;box-shadow:none}
.toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:22px}
.toolbar h1{margin:0 0 5px}
.toolbar .muted{font-size:13px}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
button{border-color:var(--ep-line-strong);border-radius:11px;color:#254266;font-weight:600;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
button:hover{border-color:#b9cbe8;background:#f8fbff}
button.primary{background:linear-gradient(135deg,#1763e8,#1057d2);border-color:#1763e8;color:#fff;box-shadow:0 7px 16px rgba(23,99,232,.2)}
button.primary:hover{background:linear-gradient(135deg,#145ad6,#0d4dbb);border-color:#145ad6}
button.quiet{border-color:transparent;background:transparent;box-shadow:none;color:#5b6b82}
button.quiet:hover{background:#edf3ff;color:#145acb}
label{color:#41526a;font-weight:600;gap:7px}
.field-title{font-weight:650;color:#243b57}
.hint{font-weight:400;color:#7c8da3}
.req{color:#b4233a;font-weight:650}
input,select,textarea{background:#f8fafc;border:1px solid #dbe3ee;border-radius:10px;padding:11px 12px;color:var(--ep-ink);transition:border-color .15s,background .15s,box-shadow .15s}
input:hover,select:hover,textarea:hover{border-color:#c9d5e5}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--ep-blue);background:#fff;box-shadow:0 0 0 3px rgba(23,99,232,.12)}
textarea{line-height:1.65}
.search{background:#fff;border:1px solid var(--ep-line);border-radius:14px;padding:14px 16px;box-shadow:var(--ep-shadow);margin:0 0 16px}
.search label{margin:0}
.empty{border:1px dashed #d8e2ef;border-radius:13px;background:#fbfdff;padding:34px 16px}
.error{color:#b4233a}

/* 首页快捷入口 */
.home-head{margin-bottom:20px}
.home-head h1{margin-bottom:4px}
.shortcut-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:20px}
.shortcut{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:154px;padding:18px;border-radius:18px;background:#fff;border:1px solid var(--ep-line);box-shadow:var(--ep-shadow);text-align:left;overflow:hidden}
.shortcut:hover{transform:translateY(-2px);border-color:#c8dbf8;box-shadow:0 14px 34px rgba(23,99,232,.09)}
.shortcut .shortcut-top{display:flex;width:100%;align-items:center;justify-content:space-between;margin-bottom:auto}
.shortcut-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:18px;font-weight:800;background:#eef3ff;color:#145acb;box-shadow:inset 0 0 0 1px rgba(23,99,232,.06)}
.shortcut-arrow{font-size:18px;color:#a6b4c4;line-height:1}
.shortcut strong{display:block;margin:16px 0 5px;font-size:17px;line-height:1.3;color:#172033}
.shortcut small{display:block;font-size:12.5px;line-height:1.55;color:#6b7c93}
.shortcut-repair .shortcut-icon{background:#eef3ff;color:#145acb}
.shortcut-delivery .shortcut-icon{background:#e9f8f6;color:#0f766e}
.shortcut-inspection .shortcut-icon{background:#fff6e5;color:#946200}
.shortcut-construction .shortcut-icon{background:#eaf7f0;color:#0b6b43}
.shortcut-acceptance .shortcut-icon{background:#f0edff;color:#5b45c9}
.shortcut-construction:hover{border-color:#bfe5d2}
.shortcut-acceptance:hover{border-color:#d9d2fb}

/* 业务类型图标 / 档案头像 */
.kind-icon,.avatar{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:none;font-size:15px;font-weight:800;letter-spacing:0}
.kind-repair,.avatar-client{background:#eef3ff;color:#145acb}
.kind-delivery{background:#e9f8f6;color:#0f766e}
.kind-inspection{background:#fff6e5;color:#946200}
.kind-construction,.avatar-project{background:#eaf7f0;color:#0b6b43}
.kind-acceptance{background:#f0edff;color:#5b45c9}
.avatar-device{background:#f1f5f9;color:#52677f}
.row-icon{width:40px;height:40px}
.detail-icon{width:50px;height:50px;border-radius:15px;font-size:18px}

/* 列表 */
.list{display:grid;gap:9px}
.row{display:flex;align-items:center;justify-content:flex-start;gap:13px;width:100%;padding:14px 15px;text-align:left;background:#fff;border:1px solid #e6ebf3;border-radius:14px;box-shadow:none;transition:background .15s,border-color .15s,transform .15s}
.row:hover{border-color:#c9dbf7;background:#fbfdff;transform:translateX(2px)}
.row-main{flex:1;min-width:0;display:block}
.row-main strong{display:block;font-size:14.5px;line-height:1.45;color:#172033;overflow-wrap:anywhere}
.row-main small{display:block;line-height:1.5;overflow-wrap:anywhere}
.row-meta{margin-top:4px;color:#66788f}
.row-sub{margin-top:2px;font-size:11.5px!important;color:#93a1b3!important}
.row-chevron{color:#b2bfcd;font-size:21px;font-weight:400;flex:none;line-height:1}
.records-panel{padding:22px}
.records-panel .list{gap:8px}
.profile-row{padding:13px 14px}
.profile-list-panel{padding:22px}
.profile-list-panel .list{gap:8px}
.badge{align-self:center;white-space:nowrap;border-radius:999px;padding:5px 10px;background:#edf2fa;font-size:11.5px;font-weight:650;color:#476486;border:1px solid transparent}
.badge.state-draft{background:#f1f5f9;color:#5b6b82}
.badge.state-submitted{background:#eef3ff;color:#145acb}
.badge.state-awaiting_signature{background:var(--ep-amber-soft);color:var(--ep-amber)}
.badge.state-signed{background:var(--ep-green-soft);color:#0b6b43}

/* 记录表单：左侧表单 + 右侧填写提示 */
.record-workbench{max-width:1180px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.record-workbench .construction-form-panel{margin:0}
.record-help-panel{position:sticky;top:92px;margin:0;padding:20px;background:linear-gradient(180deg,#fff,#fbfdff)}
.help-head{padding-bottom:14px;border-bottom:1px solid #edf1f6}
.help-kicker{display:inline-flex;align-items:center;border-radius:999px;background:var(--ep-blue-soft);color:#145acb;font-size:11px;font-weight:750;padding:4px 9px;margin-bottom:10px}
.help-head h2{font-size:18px;margin:0 0 6px}
.help-head p{margin:0;font-size:12.5px;line-height:1.65;color:#6b7c93}
.help-steps{list-style:none;counter-reset:epstep;margin:15px 0;padding:0;display:flex;flex-direction:column;gap:10px}
.help-steps li{counter-increment:epstep;position:relative;padding-left:34px;font-size:12.5px;line-height:1.6;color:#42546b}
.help-steps li:before{content:counter(epstep);position:absolute;left:0;top:0;width:23px;height:23px;border-radius:8px;display:grid;place-items:center;background:#eef3ff;color:#145acb;font:750 11px/1 Arial,sans-serif}
.help-tip{background:var(--ep-green-soft);border:1px solid #cfe9dc;border-radius:12px;padding:11px 12px;margin:14px 0}
.help-tip strong{display:block;font-size:12px;color:#0b6b43;margin-bottom:4px}
.help-tip p{margin:0;font-size:12px;line-height:1.65;color:#335b49}
.help-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:13px;border-top:1px solid #edf1f6;font-size:12px;color:#718099}
.construction-form label{margin-bottom:15px}
.construction-head{margin-bottom:20px}
.construction-head h1{font-size:25px}
.write-extra{background:#f9fbfe;border-color:#e3e9f2;border-radius:13px}
.photo-uploader{background:#f9fbfe;border-color:#c9d6e8;border-radius:15px}
.photo-uploader-hint{color:#5b6e84}

/* 验收：一句话移交 */
.acceptance-field{background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #dfe9f7;border-radius:15px;padding:16px;margin:4px 0 18px}
.acceptance-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.acceptance-intro h2{font-size:19px;margin:0 0 5px}
.acceptance-intro p{margin:0;font-size:12.5px;line-height:1.65;color:#6b7c93}
.acceptance-badge{flex:none;display:inline-flex;align-items:center;border-radius:999px;background:var(--ep-green-soft);border:1px solid #cfe9dc;color:#0b6b43;font-size:11.5px;font-weight:750;padding:6px 10px;white-space:nowrap}
.acceptance-systems-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 8px;flex-wrap:wrap}
.acceptance-systems-head .field-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.acceptance-count{font-size:11.5px;font-weight:700;color:#145acb;background:#eaf1ff;border:1px solid #d3e1fb;border-radius:999px;padding:2px 8px;line-height:1.5}
.acceptance-tools{display:flex;align-items:center;gap:4px;flex:none}
.acceptance-systems{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:none;overflow:visible;padding:0;margin:0 0 12px}
.acceptance-check{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:46px;padding:9px 11px;border:1px solid #dbe3ef;border-radius:11px;background:#fff;color:#33465e;text-align:left;font-size:13px;line-height:1.35;transition:border-color .15s,background .15s,color .15s,box-shadow .15s}
.acceptance-check:hover{border-color:#b9cdef;background:#f8fbff}
.acceptance-check-box{width:18px;height:18px;border:1.5px solid #c5d2e3;border-radius:5px;background:#fff;display:grid;place-items:center;flex:none;font-size:12px;line-height:1;color:transparent;transition:border-color .15s,background .15s,color .15s}
.acceptance-check-label{min-width:0;overflow-wrap:anywhere}
.acceptance-check.active{background:#eef4ff;border-color:#1763e8;color:#145acb;font-weight:700;box-shadow:0 0 0 1px rgba(23,99,232,.08) inset}
.acceptance-check.active .acceptance-check-box{background:#1763e8;border-color:#1763e8;color:#fff}
.acceptance-statement textarea{background:#f1faf5;border-color:#c9e6d8;color:#173f2e;font-weight:650;line-height:1.7;min-height:86px}
.acceptance-statement textarea:focus{border-color:#57b98b;box-shadow:0 0 0 3px rgba(23,122,77,.12)}
.acceptance-preview{display:flex;gap:10px;align-items:flex-start;background:var(--ep-green-soft);border:1px solid #cfe9dc;border-radius:12px;padding:11px 13px;margin:0 0 10px}
.acceptance-preview-icon{width:24px;height:24px;border-radius:50%;background:#177a4d;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none;margin-top:1px}
.acceptance-preview small{display:block;font-size:10.5px;color:#4b7c66;font-weight:650}
.acceptance-preview p{margin:4px 0 0;font-size:12.5px;line-height:1.65;color:#173f2e;font-weight:600}
.acceptance-regen-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.acceptance-regen{min-height:34px;padding:5px 10px;border-radius:8px;border:1px dashed #b9cbe8;background:#f7faff;color:#145acb;font-size:12px}
.acceptance-regen-row .muted{font-size:11.5px}
.acceptance-conclusion select{font-weight:650}

/* 查询 / 详情 */
.query-form-panel{padding:22px}
.query-form-panel .actions{margin-top:4px}
.query-results{padding:22px;min-height:150px}
.query-results>p:first-child{margin-top:0}
.detail-toolbar{align-items:center}
.detail-title{display:flex;align-items:center;gap:14px;min-width:0}
.detail-title h1{margin:0 0 5px;overflow-wrap:anywhere}
.detail-toolbar .badge{align-self:flex-start;margin-top:4px}

@media(max-width:1279px){
  .shortcut-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .shortcut{grid-column:span 2}
  .shortcut:nth-child(4),.shortcut:nth-child(5){grid-column:span 3}
}
@media(max-width:1100px){
  .record-workbench{grid-template-columns:1fr;max-width:none}
  .record-help-panel{position:static}
}
@media(max-width:760px){
  header{height:60px;padding:0 14px}
  .brand{font-size:17px}
  .brand span{width:34px;height:34px;border-radius:10px;margin-right:9px}
  .header-name{max-width:112px;font-size:12px;padding:6px 9px}
  .layout{display:block;min-height:calc(100vh - 60px)}
  main{padding:18px 14px 98px}
  h1{font-size:24px}
  .toolbar{align-items:flex-start;gap:10px;margin-bottom:18px}
  .home-head h1{font-size:28px}
  .shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
  .shortcut{grid-column:auto!important;min-height:144px;padding:14px;border-radius:16px}
  .shortcut:last-child{grid-column:1/-1!important}
  .shortcut-icon{width:38px;height:38px;border-radius:12px;font-size:16px}
  .shortcut strong{margin-top:13px;font-size:16px}
  .shortcut small{font-size:12px}
  .panel{padding:16px;border-radius:15px;margin:12px 0}
  .records-panel,.profile-list-panel,.query-results,.query-form-panel{padding:16px}
  .panel-head{align-items:center}
  .panel-head small{font-size:11.5px}
  .row{padding:12px;gap:10px;border-radius:13px}
  .row:hover{transform:none}
  .kind-icon,.avatar{width:38px;height:38px;border-radius:11px;font-size:14px}
  .row-icon{width:36px;height:36px}
  .row-main strong{font-size:14px}
  .row-meta{font-size:12px}
  .row-sub{font-size:11px!important}
  .row-chevron{display:none}
  .badge{font-size:11px;padding:4px 8px}
  .record-workbench{display:flex;flex-direction:column;gap:0}
  .record-help-panel{padding:16px;order:2}
  .construction-head{flex-direction:column}
  .construction-head h1{font-size:22px}
  .construction-head-actions{width:100%;justify-content:space-between}
  .construction-form-panel{padding:16px}
  .acceptance-field{padding:14px;border-radius:14px}
  .acceptance-intro{flex-direction:column;gap:9px}
  .acceptance-intro h2{font-size:18px}
  .acceptance-badge{align-self:flex-start}
  .acceptance-systems{max-height:none;overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr))}
  .acceptance-check{min-height:44px;padding:8px 10px;font-size:12.5px;gap:8px}
  .acceptance-systems-head{align-items:center}
  .acceptance-tools{margin-left:auto}
  .acceptance-regen-row{align-items:flex-start;flex-direction:column}
  .query-form-panel .two,.query-form-panel .search{grid-template-columns:1fr;display:grid}
  .query-form-panel .two{gap:0}
  .detail-title{align-items:flex-start;gap:11px}
  .detail-title h1{font-size:22px}
  .detail-icon{width:44px;height:44px;border-radius:13px}
  nav{position:fixed;bottom:0;left:0;right:0;z-index:40;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid var(--ep-line);border-right:0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));flex-direction:row;justify-content:space-around;box-shadow:0 -8px 24px rgba(15,23,42,.06)}
  nav button{flex:1;justify-content:center;text-align:center;min-height:48px;border-radius:11px;padding:7px 3px;font-size:11.5px;min-width:0}
  nav button.active{background:var(--ep-blue-soft);box-shadow:none}
  .search{grid-template-columns:1fr;padding:12px}
  .search button{width:100%}
}
@media(max-width:390px){
  .shortcut{min-height:138px;padding:13px}
  .shortcut strong{font-size:15.5px}
  .row{gap:9px;padding:11px}
  .row-icon{width:34px;height:34px}
}
@media(max-width:360px){
  .construction-form .two{grid-template-columns:1fr;gap:0}
  .shortcut{min-height:132px}
  .shortcut strong{font-size:15px}
  .acceptance-systems{grid-template-columns:1fr}
  .acceptance-check{font-size:12.5px}
}
