*{box-sizing:border-box;letter-spacing:0}body{margin:0;background:var(--bg-primary,#151719);color:var(--text-primary,#f1f2f3);font:14px Arial,sans-serif}button,input,select,textarea{font:inherit;color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 13px;border:1px solid var(--border,#555);border-radius:5px;background:var(--bg-card);cursor:pointer;font-weight:600}button:hover{border-color:var(--accent);background:var(--bg-card-hover)}button:disabled{opacity:.5;cursor:wait}button.primary{border-color:var(--accent);color:var(--accent)}button.icon{width:38px;min-width:38px;padding:8px}input,select,textarea{width:100%;min-width:0;padding:10px;border:1px solid var(--border);border-radius:4px;background:var(--bg-input);line-height:1.35}textarea{min-height:92px;resize:vertical}input[type=checkbox]{width:18px;height:18px;flex-shrink:0}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--text-secondary);font-weight:600}input,select,textarea{color:var(--text-primary)}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}h1{font-size:28px;margin:5px 0}h2{font-size:20px;margin:4px 0}h3{font-size:17px;margin:8px 0}p{line-height:1.6}main{width:100%;padding:24px 28px}.heading,.record-head,.view-head,.aside-head,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.heading{margin-bottom:20px}.eyebrow{color:var(--accent);font-size:11px;font-weight:700}.commands{display:flex;gap:8px;flex-wrap:wrap}.workspace{display:grid;grid-template-columns:240px minmax(0,1fr);gap:25px}.workspace>aside{border-right:1px solid var(--border);padding-right:18px}.aside-head{margin-bottom:15px}.aside-head h2{font-size:16px}#records{display:grid;gap:8px;margin-top:15px}.report-link{display:flex;align-items:flex-start;text-align:left;flex-direction:column;width:100%;font-weight:400;gap:5px;padding:12px}.report-link b{font-size:14px}.report-link small{color:var(--text-secondary)}.report-link.active{border-left:3px solid var(--accent);background:var(--bg-card-hover)}.empty{text-align:center;padding:80px 10px;color:var(--text-secondary)}.record-head{padding-bottom:18px;border-bottom:1px solid var(--border)}#saveState{font-size:12px;color:var(--text-secondary)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0;border-bottom:1px solid var(--border);padding-bottom:16px;gap:14px}.stats div{display:flex;align-items:baseline;gap:10px}.stats b{font-size:24px}.stats small{color:var(--text-secondary);font-size:12px}.tabs,.section-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.tabs{border-bottom:1px solid var(--border);padding-bottom:12px}.tabs button{border-color:transparent;background:transparent}.tabs button[aria-selected=true],.section-tabs button.active{color:var(--accent);border-color:var(--accent)}.section-tabs button{font-size:12px;min-height:34px;padding:7px 10px}.equipment-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px}#items{display:flex;flex-direction:column;gap:6px}#items button{font-size:12px;line-height:1.5;text-align:left;justify-content:flex-start;min-height:52px;font-weight:400}#items button.active{border-left:3px solid var(--accent);color:var(--accent)}#itemEditor{min-width:0}.item-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.item-head h3{flex:1}.prompt{font-size:13px;color:var(--text-secondary);border-left:3px solid var(--border-active);padding:6px 12px;margin:13px 0 20px}.source{font-size:11px;color:var(--text-secondary);margin-bottom:18px}.source button{font-size:11px;min-height:28px;padding:4px 8px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.full{grid-column:1/-1}.half{grid-column:span 2}.check-label{display:flex;flex-direction:row;align-items:center;line-height:1.6;font-size:13px}.subhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:25px;border-top:1px solid var(--border);padding-top:18px}.dropzone{border:1px dashed var(--border-active);padding:20px;text-align:center;margin:14px 0;color:var(--text-secondary)}.dropzone.drag{border:2px dashed var(--accent)}.photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.photo{border:1px solid var(--border);border-radius:5px;overflow:hidden;background:var(--bg-card)}.photo>button{width:100%;height:230px;border:0;border-radius:0;background:var(--bg-input);padding:0}.photo img{width:100%;height:100%;object-fit:contain}.photo-controls{padding:12px;display:grid;gap:10px}.photo-controls textarea{min-height:65px}.photo-controls .commands{justify-content:space-between}.photo small{color:var(--text-secondary)}.notice{margin-bottom:18px;padding:12px;border-left:3px solid var(--accent);background:var(--bg-card);line-height:1.5;white-space:pre-line}.error{border-left-color:var(--text-primary)}.draft{margin-top:18px;border-left:3px solid var(--accent);padding:14px;background:var(--bg-card)}.draft h4{margin:0 0 12px;font-size:12px;color:var(--accent)}.draft p{white-space:pre-wrap;margin:9px 0}.draft ul{padding-left:18px;font-size:12px;line-height:1.6}.muted{color:var(--text-secondary);font-size:12px}.table-scroll{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;font-size:12px;min-width:850px}td,th{padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border);line-height:1.6}th{background:var(--bg-card)}td button{min-height:28px;font-size:11px}#gaps{max-height:400px;overflow:auto;margin:16px 0}#gaps button{width:100%;justify-content:flex-start;font-size:12px;margin:3px 0;text-align:left}dialog{width:min(580px,calc(100% - 24px));max-height:90vh;overflow:auto;background:var(--bg-modal);color:var(--text-primary);border:1px solid var(--border);border-radius:6px;padding:22px}dialog::backdrop{background:#000b}dialog label{margin:16px 0}#gallery{width:min(1250px,calc(100% - 20px));padding:15px}#galleryImage{height:72vh;max-width:100%;min-width:0;object-fit:contain}.gallery-stage{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px;margin-top:15px}.gallery-stage img{width:100%}#referenceList button,#referenceList a{display:block;width:100%;text-align:left;margin:15px 0;color:var(--accent);line-height:1.7}#referenceList small{display:block;color:var(--text-secondary)}[hidden]{display:none!important}
html[data-smc-theme="full-white"]{--accent:#111!important;--border:#d5d5d5!important;--border-active:#888!important;--text-secondary:#333!important;--text-dim:#666!important}
html[data-smc-theme="full-black"]{--accent:#fff!important}
.unit-toolbar{display:flex;align-items:stretch;gap:10px;margin:18px 0 22px}.unit-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:1;min-width:0}.unit-tabs button{min-height:54px;font-size:12px;padding:8px;line-height:1.4;overflow-wrap:anywhere}.unit-tabs button.active{color:var(--accent);border-color:var(--accent);background:var(--bg-card-hover)}.unit-toolbar>#addUnit{height:54px;align-self:start}.reference-help{font-size:12px;color:var(--text-secondary);margin:12px 0 20px}.reference-help summary{cursor:pointer}.reference-help .prompt{margin-bottom:10px}.selected-check{margin:4px 0;font-size:13px;color:var(--text-secondary)}.unit-checks{border-top:1px solid var(--border);padding:18px 0;margin-top:22px}.unit-checks>summary{font-weight:600;cursor:pointer;font-size:14px}.check-table-scroll{max-width:100%;overflow:auto;margin-top:14px}#items{display:block}.check-table{width:100%;min-width:0;table-layout:fixed}.check-table th:nth-child(1){width:29%}.check-table th:nth-child(2){width:21%}.check-table th:nth-child(3){width:39%}.check-table th:nth-child(4){width:11%}.check-table td{vertical-align:middle;padding:9px 8px;overflow-wrap:anywhere}.check-table th{padding:9px 8px}.check-table input,.check-table select{min-height:36px;padding:7px;font-size:12px}.check-table td:last-child{white-space:nowrap}#items .icon{min-height:32px;height:32px;width:32px;padding:5px;font-size:12px}#items small{margin-left:7px;color:var(--text-secondary)}.supply-checks{margin-top:18px;color:var(--text-secondary);font-size:12px}.supply-checks summary{cursor:pointer}.shared-records{padding:14px 0}.shared-records button{font-size:12px}.item-head h3{font-size:20px;line-height:1.4}
@media(max-width:1100px){.unit-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.unit-tabs button{min-height:48px}.unit-toolbar>#addUnit{height:48px}}
@media(max-width:650px){.check-table,.check-table tbody{display:block}.check-table thead{display:none}.check-table tr{display:grid;grid-template-columns:minmax(0,1fr) 54px;border-bottom:1px solid var(--border);padding:10px 0;gap:8px}.check-table td{display:block;padding:0;border:0}.check-table td:nth-child(1){grid-column:1/-1;font-weight:600}.check-table td:nth-child(2){grid-column:1;grid-row:2}.check-table td:nth-child(3){grid-column:1/-1;grid-row:3}.check-table td:nth-child(4){grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:flex-end}#items small{margin-left:5px}.unit-tabs button{min-height:60px}.unit-toolbar>#addUnit{height:40px}.item-head h3{font-size:18px}}
.view-toolbar{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--border);margin-bottom:16px}.view-toolbar .tabs{flex:1;border:0;margin-bottom:0}.guidance-control{min-width:105px;font-size:11px}.guidance-control select{padding:5px 8px;min-height:32px}.field{min-width:0}.field>label{margin-bottom:7px}.field-help{display:block;font-size:11px;line-height:1.5;font-weight:400;color:var(--text-secondary);margin-top:6px;overflow-wrap:anywhere}.photo-head{margin-top:0;padding-top:0;border-top:0}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:126px;border-radius:5px;cursor:pointer;background:var(--bg-input);outline-offset:3px}.dropzone>i{font-size:24px;color:var(--accent)}.dropzone span{font-size:11px}.dropzone.drag{background:var(--bg-card-hover);outline:2px solid var(--accent);outline-offset:-2px;border-width:1px}.upload-toolbar,.upload-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}.upload-toolbar .check-label{font-size:12px}.upload-actions{padding:12px 0;border-bottom:1px solid var(--border)}.pending-preview{height:180px;display:flex;align-items:center;justify-content:center;background:var(--bg-input)}.pending-preview>i{font-size:35px;color:var(--text-secondary)}.pending-photo{position:relative}.pending-photo .photo-controls>button.icon{position:absolute;top:7px;right:7px;background:var(--bg-card)}.file-name{font-size:12px;overflow-wrap:anywhere;max-width:100%}.pending-state{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.assessment-fields{margin-top:22px;border-top:1px solid var(--border);padding-top:20px}.equipment-details{border-top:1px solid var(--border);padding:14px 0}.equipment-details>summary{cursor:pointer;font-size:13px;font-weight:600;padding:5px 0}.item-actions{justify-content:space-between;position:sticky;bottom:0;padding:12px 0;background:var(--bg-primary);border-top:1px solid var(--border);z-index:2}.equipment-details .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:850px){.view-toolbar{flex-wrap:wrap;gap:8px;padding-bottom:10px}.view-toolbar .tabs{width:100%;flex:auto}.guidance-control{flex-direction:row;align-items:center}.guidance-control select{width:115px}.upload-toolbar{align-items:flex-start}.upload-toolbar .muted{width:100%}}
@media(max-width:480px){.equipment-details .form-grid{grid-template-columns:1fr}.item-actions button{font-size:12px;padding:8px}.field-help{font-size:12px}.photo-head{align-items:flex-start;flex-wrap:wrap}.dropzone{padding:15px 10px}.upload-actions{align-items:flex-start}.upload-actions .commands{margin-left:auto}}
@media(min-width:1850px){.equipment-layout{grid-template-columns:280px minmax(0,1fr)}.photos{grid-template-columns:repeat(2,minmax(0,1fr))}.photo>button{height:350px}}
@media(max-width:1200px){.workspace{grid-template-columns:195px minmax(0,1fr);gap:18px}.equipment-layout{grid-template-columns:180px minmax(0,1fr);gap:15px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.half{grid-column:1/-1}.stats div{display:block}}
@media(max-width:850px){main{padding:18px 14px}.workspace{grid-template-columns:1fr}.workspace>aside{border-right:0;padding:0;border-bottom:1px solid var(--border);padding-bottom:12px}#records{display:flex;overflow:auto;max-width:100%;padding-bottom:5px}.report-link{min-width:180px;width:180px;flex-shrink:0}#search{max-width:280px}.heading{flex-wrap:wrap}.equipment-layout{grid-template-columns:1fr}#items{display:block}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){h1{font-size:24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.half{grid-column:1}.photos{grid-template-columns:1fr}.heading .commands{gap:5px}.heading button{font-size:12px;padding:8px}.tabs button{font-size:12px;padding:7px}.record-head{align-items:flex-start;flex-wrap:wrap}.record-head h2{font-size:18px;overflow-wrap:anywhere}.gallery-stage{grid-template-columns:28px minmax(0,1fr) 28px;gap:3px}.gallery-stage button{min-width:28px;width:28px;padding:3px}#galleryImage{height:60vh}}
.required-mark{display:inline;color:var(--accent);font-weight:700;font-size:14px}
.required-legend{display:block;margin-top:7px;font-size:11px;color:var(--text-secondary)}
.field>label:has(>.required-mark),#reportFields label:has(>[data-report-field]),.assessment-fields>label{display:block}
#reportFields label>[data-report-field],.assessment-fields>label>select{display:block;margin-top:7px}
label:has(>#reviewer){display:block}#reviewer{margin-top:7px}[aria-invalid=true]{outline:2px solid var(--accent);outline-offset:2px}
.field,.check-table tr{scroll-margin-top:90px}#itemEditor{border-top:1px solid var(--border);padding-top:20px;margin-top:20px}.photo-target{font-size:13px;margin:0 0 12px;font-weight:600}
.check-table th:nth-child(1){width:27%}.check-table th:nth-child(2){width:19%}.check-table th:nth-child(3){width:28%}.check-table th:nth-child(4){width:26%}.check-table td:last-child{white-space:normal}.check-table td:first-child>b{display:block;font-weight:600}.check-table td:first-child>.icon{margin-top:7px}
#items .production-link{min-height:24px;border:0;background:none;padding:3px 0;margin-top:6px;font-size:11px;color:var(--accent);line-height:1.4;white-space:normal}.row-photo-tools{display:flex;align-items:center;gap:6px}#items .photo-drop{display:flex;align-items:center;justify-content:flex-start;gap:7px;border:1px dashed var(--border-active);min-height:54px;flex:1;min-width:0;padding:6px;font-size:11px}#items .photo-drop>span{line-height:1.5}#items .photo-drop small{display:block;margin:0;font-size:10px}#items .photo-drop.drag{outline:2px solid var(--accent);background:var(--bg-card-hover)}#items .row-camera{flex-shrink:0}.row-thumbs{display:flex;gap:5px;margin-top:7px}.row-thumbs:empty{display:none}#items .row-thumbs button{width:44px;height:36px;min-height:36px;padding:0;border-radius:3px;overflow:hidden}#items .row-thumbs img{width:100%;height:100%;object-fit:cover}.row-upload-state{font-size:11px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5;margin-top:5px}#items .row-retry{min-height:30px;padding:4px 7px;font-size:11px;margin-top:6px}
.gap-group{margin:10px 0;border-top:1px solid var(--border);padding:10px 0}.gap-group summary{cursor:pointer;font-weight:600}.gap-group button{line-height:1.5}#completionStatus{font-weight:600}#gaps{max-height:540px}#galleryTitle{overflow-wrap:anywhere;min-width:0}
.heading{flex-wrap:wrap;align-items:flex-start}.heading>div:first-child{min-width:0}.heading h1{font-size:24px;line-height:1.25;max-width:790px;overflow-wrap:anywhere}.smc-standard-topbar .smc-std-module{max-width:225px;white-space:normal;line-height:1.2;letter-spacing:0}.smc-standard-topbar .smc-std-nav>a[href="/smc/portal/remote-inspection/"]{display:none}#items .component-name{min-height:28px;text-align:left;border:0;background:transparent;padding:3px 0;font-weight:600;line-height:1.5;white-space:normal}#items .component-name:hover{text-decoration:underline}#referenceDialog,#componentDialog{width:min(920px,calc(100% - 24px))}.guide-start p{font-size:13px}.guide-start ol{font-size:13px;line-height:1.7;padding-left:20px}.guide-pdf-link{display:inline-flex;gap:9px;align-items:center;color:var(--accent);font-weight:600;font-size:13px;margin:12px 0 22px;padding:10px 0}.guide-web-sources{font-size:12px;padding:10px 0}.guide-web-sources summary{cursor:pointer}#referenceList button>b,#referenceList button>span{display:block}#referenceList button>span{font-size:12px;font-weight:400;color:var(--text-secondary)}#unitIdentity{border-top:1px solid var(--border);padding:18px 0}#unitIdentity .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.unit-date-fields>summary{font-size:13px;font-weight:600;cursor:pointer}#componentDialog #itemEditor{border-top:0;margin-top:12px;padding-top:0}#componentDialog .item-head h3{font-size:15px}#componentDialog>.commands{justify-content:space-between;border-top:1px solid var(--border);padding-top:15px}.item-actions{justify-content:flex-end}
@media(max-width:1000px){#unitIdentity .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){#unitIdentity .form-grid{grid-template-columns:1fr}.heading h1{font-size:21px}#items .component-name{font-size:12px}}
@media(max-width:650px){.check-table tr{grid-template-columns:minmax(0,1fr);gap:10px}.check-table td:nth-child(1),.check-table td:nth-child(2),.check-table td:nth-child(3),.check-table td:nth-child(4){grid-column:1/-1;grid-row:auto}.check-table td:nth-child(4){display:block}.check-table td:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.check-table td:first-child>.icon{margin:0;flex-shrink:0}#items .photo-drop{min-height:48px}.row-photo-tools{align-items:stretch}.row-camera{align-self:center}.row-thumbs{flex-wrap:wrap}.record-head .commands{gap:5px}.record-head .commands button{font-size:12px;padding:7px}}
.workspace{display:block;min-width:0}.home-actions{display:flex;gap:12px;flex-wrap:wrap;padding:8px 0 28px;border-bottom:1px solid var(--border)}.home-actions button{min-height:48px;font-size:15px;padding:12px 20px}#draftCount{font-size:12px;color:var(--text-secondary)}.library-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0 16px}.library-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.library-tabs{display:flex;gap:4px;flex-wrap:wrap}.library-tabs button{background:transparent;border-color:transparent;font-size:12px}.library-tabs button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.library-filters #search{flex:1;min-width:200px;max-width:400px}.library-filters select{width:210px}.library-pages,.editor-navigation{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 0}.editor-navigation{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--border)}#records{display:block;margin-top:12px;max-width:100%;overflow:visible}.report-table{min-width:0;width:100%;table-layout:fixed}.report-table th:nth-child(1){width:35%}.report-table th:nth-child(2){width:12%}.report-table th:nth-child(3){width:18%}.report-table th:nth-child(4){width:15%}.report-table th:nth-child(5){width:20%}.report-table td{vertical-align:middle;overflow-wrap:anywhere}.report-table td>span,.report-table td>small{display:block;margin-top:5px}.report-table td>small{font-size:11px;color:var(--text-secondary)}.report-table .commands{gap:5px}.report-table button{font-size:12px;min-height:36px;padding:7px 10px}.report-table .icon{width:36px;min-width:36px;padding:7px}.report-status{font-size:11px;font-weight:600;color:var(--text-secondary)}.library-empty{padding:50px 15px;text-align:center;color:var(--text-secondary);border-block:1px solid var(--border)}#leaveDialog .commands,#deleteDialog .commands{justify-content:flex-end}#leaveError,#deleteError{color:var(--text-primary);font-size:13px;white-space:pre-line}
.inline-component-row>td{padding:0!important;white-space:normal!important}.inline-component{padding:18px 14px 20px;border-left:2px solid var(--accent);background:var(--bg-input)}.inline-heading,.inline-photo-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.inline-component h4{font-size:14px;margin:0}.inline-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.inline-fields textarea{min-height:64px}.inline-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:14px}.inline-photos figure{margin:0;min-width:0}.inline-photos figure>button:first-child{display:block;width:100%;height:180px;padding:0;overflow:hidden;background:var(--bg-card)}.inline-photos img{width:100%;height:100%;object-fit:contain}.inline-photos label{margin-top:10px}.inline-photos textarea{min-height:65px;font-size:12px}.inline-photos .icon{margin-top:8px}.inline-footer{display:flex;justify-content:flex-end;padding-top:15px}.inline-footer button,#items .more-details,#items [data-inline-add]{min-height:34px;font-size:12px;padding:7px 10px}#items .component-name{display:flex;align-items:flex-start;gap:8px}#items .component-name i{font-size:10px;margin-top:5px;flex-shrink:0}
@media(max-width:1000px){.inline-fields,.inline-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.check-table tr.inline-component-row{display:block;padding:0;border:0}.inline-component-row>td{display:block!important}.inline-component{padding:15px 10px}.inline-fields,.inline-photos{grid-template-columns:1fr}.inline-photos figure>button:first-child{height:210px}.inline-heading h4{font-size:13px}.inline-photo-heading{margin-top:16px}}
@media(max-width:850px){.library-filters #search{max-width:none}.report-table th:nth-child(1){width:29%}.report-table th:nth-child(3){width:20%}.report-table th:nth-child(5){width:24%}.report-table td,.report-table th{padding:10px 6px}}
@media(max-width:650px){.home-actions button{flex:1;font-size:13px;padding:10px}.library-filters{display:grid;grid-template-columns:1fr}.library-filters #search,.library-filters select{width:100%;min-width:0;max-width:none}.report-table,.report-table tbody{display:block}.report-table thead{display:none}.report-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}.report-table td{border:0;padding:0;display:block}.report-table td:first-child{grid-column:1/-1}.report-table td:nth-child(2)::before{content:'Inspection';display:block;color:var(--text-secondary);font-size:10px}.report-table td:nth-child(3)::before{content:'Last saved';display:block;color:var(--text-secondary);font-size:10px}.report-table td:last-child{grid-column:1/-1}.report-table td:last-child .commands{justify-content:flex-end}.editor-navigation{gap:8px}.editor-navigation button{font-size:12px;padding:7px}.editor-navigation>.commands{margin-left:auto}.home-actions{gap:8px}#leaveDialog .commands button{width:100%}}

.supplier-response-form,.supplier-response-card{border:1px solid var(--line,#d9e2e5);border-radius:12px;padding:20px;margin:16px 0}.supplier-response-form textarea{min-height:140px}.supplier-response-card h4{margin:0 0 10px}.supplier-message{white-space:pre-wrap;overflow-wrap:anywhere}.supplier-response-card li{margin:8px 0}.supplier-response-card button{overflow-wrap:anywhere;text-align:left;max-width:100%}.supplier-response-list{margin-top:20px}

/* Report editing and protected photo management. */
main{max-width:1680px;margin-inline:auto}
.heading{margin-bottom:16px}.heading h1{font-size:23px}
.record-head{position:sticky;top:44px;z-index:5;padding:14px 0;background:var(--bg-primary,#151719);border-bottom:1px solid var(--border)}
#saveState{display:block;font-size:12px;color:var(--text-secondary);margin-top:5px}
.required-legend{margin-top:4px}.editor-navigation{padding-bottom:12px;margin-bottom:0}
.edit-status{font-size:12px;color:var(--text-secondary);margin:12px 0}
#reportHeader{gap:12px;margin:14px 0}#reportHeader .field{min-width:0}
.stats{margin:10px 0 14px;padding:10px 0}.stats-link{border:0;background:none;padding:0;min-height:40px;justify-content:flex-start;color:var(--accent)}
.stats-link small{margin-left:4px}.stats-link:hover{text-decoration:underline}
.view-toolbar{gap:12px}.view-toolbar .tabs{display:flex;flex-wrap:wrap;gap:4px}.tabs button{white-space:normal}
.unit-toolbar{margin-block:12px}.unit-tabs button{min-height:46px}.unit-toolbar>#addUnit{height:46px}
#unitIdentity{padding:14px 0}#unitIdentity .field-help{font-size:11px}.unit-checks{margin-top:10px;padding-top:14px}
.photo-feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--accent);border-radius:5px;background:var(--bg-card);font-size:13px}
.photo-feedback button{flex-shrink:0}.photo-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.photo-library>.library-empty{grid-column:1/-1}.photo-library .photo-controls{gap:8px}.photo-library textarea{min-height:64px}
.photo-library .photo-controls>label{margin:5px 0 0}.library-preview{height:220px;display:flex;align-items:center;justify-content:center;background:var(--bg-input);padding:0;border:0;width:100%}
.library-preview img{height:100%;width:100%;object-fit:contain}.photo-controls .file-name{font-size:11px}
#photosView>.view-head{flex-wrap:wrap}#photosView>.view-head>.commands{align-items:center}#photoUnitFilter{width:230px}
#items .remove-photo{font-size:12px;padding:7px 10px;min-height:38px;margin-top:10px;color:var(--text-primary)}
#items .inline-photos small{display:block;margin:0}.inline-photos input[type=date]{font-size:12px}
.danger{border-color:var(--text-secondary)}.danger:hover{border-color:#bb3b39;color:#bb3b39}
#photoRemoveDialog{width:min(540px,calc(100% - 24px))}#photoRemovePreview{display:block;width:100%;height:190px;object-fit:contain;background:var(--bg-input);margin:12px 0}
#photoRemoveDialog .commands{justify-content:flex-end}#photoRemoveError{white-space:pre-line;font-size:13px;color:#bb3b39}
.gallery-actions{justify-content:space-between}.item-actions{gap:10px}.item-actions button{min-height:42px}
@media(min-width:1101px){#reportHeader{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1000px){.photo-library{grid-template-columns:repeat(2,minmax(0,1fr))}.record-head{position:static}.record-head>.commands{gap:6px}.record-head>.commands button{font-size:12px}.view-toolbar .tabs{width:100%}}
@media(max-width:650px){main{padding:14px 12px}.heading h1{font-size:19px}.photo-library{grid-template-columns:1fr}.record-head{gap:12px}.record-head>.commands{width:100%}.record-head>.commands button{flex:1}.photo-feedback{align-items:flex-start;flex-direction:column}.photo-feedback button{align-self:flex-end}.stats-link{flex-wrap:wrap;gap:3px}.stats-link small{margin:0}.view-toolbar{align-items:flex-start}.view-toolbar .tabs button{font-size:12px;min-height:40px}.inline-photos figure>button:first-child{height:220px}#photosView>.view-head>.commands{width:100%;flex-wrap:wrap}#photoUnitFilter{flex:1;min-width:140px;width:auto}.gallery-actions button{font-size:12px}.item-actions button{flex:1}.photo-library .commands button{min-height:40px}.photo-library .photo-controls .commands{flex-wrap:wrap}}
@media(max-width:480px){#reportHeader{grid-template-columns:repeat(2,minmax(0,1fr))}#reportHeader>.field:first-child{grid-column:1/-1}#reportHeader input{font-size:12px;padding:9px}#reportHeader label{font-size:11px}}

/* Match equipment and PDF order: fixed rooms, E/R station, portable, others. */
.unit-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.unit-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.supplier-checklist{padding:12px 14px;margin:12px 0;background:var(--bg-card);border:1px solid var(--border);border-radius:5px;font-size:12px;white-space:normal}.supplier-checklist summary{cursor:pointer;font-weight:600}.supplier-checklist ol{padding-left:20px}.supplier-checklist li{padding:8px 0;line-height:1.5}.supplier-checklist p{margin:6px 0}.supplier-checklist small{display:block!important;margin:5px 0!important;color:var(--text-secondary)}
