:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#233652;background:#f3f6fa;font-size:16px}*{box-sizing:border-box}body{margin:0}header{background:#233652;color:white;padding:22px max(20px,calc((100vw - 1100px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}header b{color:#8ed2e6;letter-spacing:3px}h1{font-size:25px;margin:5px 0}h2{font-size:21px}h3{font-size:18px}header span{font-size:12px;text-align:right}main{max-width:1140px;margin:auto;padding:20px}.card{background:white;border:1px solid #dbe2eb;border-radius:12px;padding:20px;margin:14px 0}.bar,nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}nav{margin:20px 0}label{display:block;font-size:14px;font-weight:600;margin:12px 0}input,select,textarea{display:block;width:100%;min-height:44px;border:1px solid #abbaca;border-radius:6px;padding:10px;font:inherit;color:inherit;background:white;margin-top:5px}textarea{min-height:90px}input[type=checkbox]{display:inline;width:22px;min-height:22px;vertical-align:middle;margin-right:10px}button{font:inherit;font-weight:600;min-height:44px;border:0;border-radius:6px;background:#245d83;color:white;padding:10px 16px;cursor:pointer}button.secondary{background:#e9eff6;color:#233652}button:disabled{opacity:.5;cursor:wait}button.active{background:#233652}a{color:#155e86}p{line-height:1.55}.muted,small{color:#627185}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.pill{padding:5px 10px;border-radius:20px;display:inline-block;background:#edf2f7;font-size:13px}.green{background:#e5f4ed;color:#216341}.orange{background:#fff0ce;color:#74540c}.red{color:#aa2c35}#error{background:#fff0f1;color:#86242c;padding:16px;border:1px solid #e6aeb3;border-radius:8px;white-space:pre-wrap;position:sticky;top:8px;z-index:5}#message{background:#e5f4ed;padding:14px;border-radius:8px}details{margin:15px 0}summary{cursor:pointer;font-weight:600;min-height:40px}.photo{max-width:100%;max-height:260px;border-radius:8px}.scroll{overflow-x:auto}table{border-collapse:collapse;width:100%}td,th{text-align:left;padding:10px;border-bottom:1px solid #e0e6ef;vertical-align:top}fieldset{border:1px solid #dbe2eb;border-radius:8px;padding:12px;margin:12px 0}legend{font-weight:600}.metric{font-size:25px;font-weight:700}pre{white-space:pre-wrap;font-size:12px;word-break:break-word}[hidden]{display:none!important}@media(max-width:600px){main{padding:12px}.card{padding:15px}header{padding:16px}header span{max-width:115px}h1{font-size:20px}nav button{flex:1;min-width:100px}.bar button{flex:1}table{font-size:13px}}

.logo{width:110px;height:44px;object-fit:contain;padding:4px 6px;background:white;border-radius:6px}
.hole-muted{background:#edf0f3;border-color:#d9dfe5;color:#596574}.hole-muted h3{color:#596574}.hole-muted .pill:not(.green){background:#e0e4e9;color:#596574}.coordinate-preference{max-width:540px;margin:18px 0}.coordinate-axes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.coordinate-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px}.coordinate-parts label{min-width:0;margin:0}.coordinate-parts input,.coordinate-parts select{width:100%;min-width:0}.coordinate-input fieldset{min-width:0}.decision-dialog{border:1px solid #ccd8e5;border-radius:12px;padding:24px;width:min(560px,94vw);max-height:92dvh;color:#233652}.decision-dialog::backdrop{background:#17263b99}.decision-dialog textarea{width:100%}input[readonly]{background:#edf2f7;font-weight:700}@media(max-width:500px){.coordinate-axes{grid-template-columns:minmax(0,1fr)}.decision-dialog{padding:16px}}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;margin:16px 0}.photo-tile{margin:0;min-width:0}.photo-open{display:block;width:100%;height:128px;padding:0;background:#e9eff6;overflow:hidden;border:1px solid #ccd8e5}.photo-open img{width:100%;height:100%;object-fit:cover}.photo-fallback,.photo-pending{display:block;padding:16px;color:#526274;font-size:13px}.photo-pending{min-height:128px;background:#f1f3f5;border-radius:6px}figcaption{font-size:13px;line-height:1.4;margin-top:6px;overflow-wrap:anywhere}figcaption small{display:block}.report-notes dt{font-weight:700;margin-top:14px}.report-notes dd{margin:5px 0 16px;white-space:pre-wrap;overflow-wrap:anywhere}.delivery-item{border-top:1px solid #dbe2eb;padding-top:10px}#deliveryReceipt ul{padding-left:22px;overflow-wrap:anywhere}#photoViewer{width:min(1000px,96vw);max-height:95dvh;border:0;border-radius:12px;padding:16px;background:#17263b;color:white}#photoViewer::backdrop{background:#000b}.viewer-top,.viewer-controls{display:flex;justify-content:space-between;gap:12px;align-items:center}.viewer-image{min-height:180px;height:65dvh;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}#photoFull{max-width:100%;max-height:100%;object-fit:contain}#photoCaption{margin:10px 0;overflow-wrap:anywhere}#photoOriginal{color:#b4e5ff;font-size:14px}.viewer-controls{margin-top:14px}.viewer-controls button{min-width:96px}@media(max-width:500px){#photoViewer{padding:12px}.viewer-image{height:55dvh}.viewer-controls{flex-wrap:wrap}.viewer-controls a{order:3;flex-basis:100%;text-align:center}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
