.tools{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.tools label{flex:1;min-width:180px;margin:0}.tools button{min-height:48px}.job{background:white;padding:24px;border:1px solid #ddd;border-radius:20px;display:grid;grid-template-columns:1fr auto;gap:12px;margin:16px 0}.job h2{margin:8px 0;font-size:24px}.job p{margin:5px 0;overflow-wrap:anywhere}.job button{align-self:center}.badge{font-size:12px;letter-spacing:.04em;font-weight:700;color:#705b22}.overdue{color:#9f2929}.muted{font-size:14px}.dialogTitle{display:flex;justify-content:space-between;gap:20px;align-items:center}.dialogTitle h2{font-size:28px;margin:0}dialog{width:min(760px,calc(100% - 24px));max-height:92vh;border:0;border-radius:24px;padding:28px}dialog::backdrop{background:#0008}dialog form{max-width:none}fieldset{border:0;padding:0;margin:0;min-width:0}textarea{width:100%;resize:vertical;font:inherit;border:1px solid #bbbcb8;border-radius:16px;padding:14px;margin-top:6px}.pair,.checklist{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.checklist label{margin:8px 0}.error{color:#9f2929}.historyItem{padding:12px 0;border-bottom:1px solid #ddd;white-space:pre-wrap;font-size:13px}#message,#editMessage,#createMessage{white-space:pre-line}button,a,input,select,textarea{touch-action:manipulation}@media(max-width:600px){header{align-items:start;gap:16px;flex-direction:column}.job{grid-template-columns:1fr;padding:20px}.job button{justify-self:start}.pair,.checklist{grid-template-columns:1fr}dialog{padding:20px}.tools button{flex:1}.dialogTitle h2{font-size:24px}}
.dialogTitle{position:sticky;top:0;background:white;z-index:2;padding:10px 0}textarea:focus-visible{outline:3px solid #997318;outline-offset:3px}

.defectPhotos{border-top:1px solid #ddd;margin-top:24px;padding-top:12px}.defectPhotos>p,#photoMessage{font-size:14px;overflow-wrap:anywhere}.defectGallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px;margin:16px 0}.defectCard{border:1px solid #ddd;border-radius:16px;padding:16px;min-width:0;overflow-wrap:anywhere}.defectCard p{font-size:13px}.defectImage img{display:block;max-width:100%;height:auto;margin-top:12px;border-radius:10px}#defectFiles{max-width:100%;width:100%;min-width:0}
.photoSources{display:flex;flex-wrap:wrap;gap:10px}.photoSources button{flex:1;min-height:48px}.captureHint,#selectedDefects{font-size:14px;overflow-wrap:anywhere}#clearDefects{margin:0 10px 12px 0}@media(max-width:600px){.photoSources{flex-direction:column}.photoSources button{width:100%}}
