/* New reference: navy / white / yellow. Primary report always remains visible. */
html,body,.reference-phone-shell533,.reference-phone-shell533>.app{background:#f7f9fc!important;color:#0b2032!important;box-shadow:none!important}
.app-header{padding:0!important}.native-appbar{border-radius:0!important;background:linear-gradient(115deg,#081a29,#0e273b)!important;height:clamp(58px,calc(78px * var(--phone-density5331)),84px)!important;padding:10px 20px!important;margin:0!important}
.reference-brand533{width:45%!important;max-width:160px!important;height:auto!important;max-height:52px!important;object-fit:contain!important}
.reference-manager533{color:white!important;border-left:1px solid #6d7c87!important;padding-left:16px!important;font-size:16px!important;line-height:18px!important;margin-left:12px!important}
.reference-manager533 strong{font-weight:500!important}.reference-intro533{padding:11px 20px 0!important;margin-bottom:9px!important}.reference-intro533 h1{color:#0b2032!important;font-size:24px!important}.reference-intro533 p{color:#65778c!important;font-size:12px!important}
.app-scroll{padding:0 20px!important}#form-view.reference-full-form5331{gap:clamp(7px,calc(11px * var(--phone-density5331)),12px)!important;--phone-control5331:clamp(44px,calc(49px * var(--phone-density5331)),52px);--phone-scan-min5331:clamp(64px,calc(100px * var(--phone-density5331)),110px)}
.scan-button{background:linear-gradient(130deg,#ffe466,#ffcf21)!important;color:#0b2032!important;border:1px solid #f7c517!important;box-shadow:0 6px 18px #1834500a!important;border-radius:17px!important;justify-content:flex-start!important;padding:15px 20px!important;gap:16px!important}
.scan-button strong{font-size:22px!important;line-height:26px!important}.scan-button small{font-size:12px!important;color:#76601d!important;line-height:17px!important;margin-top:3px!important}.scan-icon{background:#ffe678!important;color:#0b2032!important;flex-shrink:0;width:54px!important;height:54px!important}.scan-icon svg{stroke:#0b2032!important}
.label,.reference-id-label533{color:#65778c!important;font-weight:600!important;font-size:10px!important}.control{background:#fff!important;border:1px solid #dbe2ec!important;color:#0b2032!important;border-radius:12px!important;box-shadow:0 2px 4px #0b203204!important}.control::placeholder{color:#8493a7!important}
.asset-found,.asset-found.show{color:#43647c!important}.reference-history533,.reference-find533{color:#43647c!important}
.urgency{background:#e9eef5!important;border-radius:12px!important}.urgency button{color:#64758a!important}.urgency button.selected{background:white!important;color:#0b2032!important;box-shadow:0 2px 7px #0b203218!important}#urgency [data-value="Service"]{background:#d9e2ec!important;color:#0b2032!important}
#description{padding:14px!important}.photo-picker{border-color:#dbe2ec!important;background:#fff!important;border-radius:12px!important}.photo-icon{color:#64758a!important}
.native-dock{padding:9px 20px 0!important;background:#f7f9fc!important}.native-dock #submit{background:linear-gradient(115deg,#0b2032,#102b40)!important;border-radius:12px!important;color:#fff!important;font-size:18px!important;height:clamp(48px,calc(55px * var(--phone-density5331)),60px)!important}.native-dock #submit span{color:white!important}
.phone-nav534{height:calc(58px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #e4eaf2;margin:10px -20px 0;background:#fff}
.phone-nav534 button{position:relative;border:0;background:none;color:#7489a0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;padding:4px 1px;cursor:pointer;min-height:44px}.phone-nav534 svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.phone-nav534 .active{color:#0b2032;font-weight:700}.phone-nav534 .active:after{content:'';position:absolute;width:26px;height:3px;border-radius:3px;background:#ffd021;bottom:3px}
button:focus-visible,a:focus-visible{outline:3px solid #e2b900!important;outline-offset:2px}.native-dock-error:not(:empty){background:#fff0ec!important;color:#9c3925!important}
#asset-panel534{width:min(100% - 24px,480px);max-height:calc(100dvh - 28px);padding:0;border:1px solid #dbe2ec;border-radius:20px;background:#f7f9fc;color:#0b2032;box-shadow:0 16px 60px #0b203240;overflow:hidden}
#asset-panel534[open]{display:flex;flex-direction:column}#asset-panel534::backdrop{background:#081b2dcc;backdrop-filter:blur(3px)}
#asset-panel534 header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:#0b2032;color:white;padding:20px}#asset-panel534 h2{font-size:22px;margin:0 0 7px}#panel-asset534{font-size:12px;line-height:18px;color:#c7d5e2;margin:0}#panel-close534{border:0;background:#ffffff17;color:white;font-size:24px;border-radius:10px;min-width:44px;min-height:44px;cursor:pointer}
#panel-body534{padding:16px;overflow:auto;min-height:120px;overscroll-behavior:contain}#asset-panel534 footer{display:flex;gap:10px;padding:12px 16px;border-top:1px solid #e2e8f0;background:#fff}#asset-panel534 footer button{border:1px solid #dbe2ec;border-radius:10px;min-height:44px;padding:10px 14px;background:white;color:#0b2032;font-weight:600;cursor:pointer}#panel-report534{background:#0b2032!important;color:white!important;flex:1}
.panel-item534{padding:16px;background:white;border:1px solid #e1e7ef;border-radius:13px;margin-bottom:10px}.panel-item-top534{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.panel-item534 h3{font-size:16px;line-height:22px;margin:0}.panel-item534 p{font-size:14px;line-height:21px;margin:9px 0 0;overflow-wrap:anywhere}.panel-description534{white-space:pre-wrap}.panel-note534{font-size:12px!important;line-height:18px!important;color:#64758a!important}.panel-badge534{font-size:11px;line-height:16px;background:#eaf1f8;color:#35566f;border-radius:6px;padding:3px 6px;flex-shrink:0;max-width:45%}.panel-badge534.overdue{background:#fff0df;color:#9e550c}.panel-call534{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;text-decoration:none;color:#0b2032;font-size:16px;border-top:1px solid #e9eef5;margin-top:12px;padding-top:9px}.panel-call534 span{font-size:12px;color:#416e91}.panel-empty534{text-align:center;padding:22px 12px;color:#64758a}.panel-empty534>svg{width:32px;height:32px;fill:none;stroke:#7489a0;stroke-width:1.7}.panel-empty534 h3{color:#0b2032;font-size:18px;margin:12px 0}.panel-empty534 p{font-size:14px;line-height:22px}.panel-empty534 .loader{display:inline-block}
@media(max-height:660px){.reference-intro533{padding-top:7px!important;margin-bottom:7px!important}.reference-intro533 h1{font-size:21px!important}.phone-nav534{height:calc(51px + env(safe-area-inset-bottom));margin-top:7px}.scan-button{padding:10px 15px!important}.scan-button strong{font-size:19px!important}.scan-icon{height:44px!important;width:44px!important}.scan-button small{font-size:11px!important}.reference-manager533{font-size:14px!important;line-height:16px!important}.reference-brand533{max-height:40px!important}}
@media(min-width:600px) and (max-height:500px){.native-appbar{height:48px!important}.reference-intro533{display:none}.phone-nav534{height:46px;margin-top:6px}.native-dock{padding-top:6px!important}.native-dock #submit{height:44px!important}}
/* Short phones: explicit row minima prevent the priority strip overlapping notes. */
@media(max-height:740px) and (max-width:599px){
.native-appbar{height:44px!important;padding:5px 18px!important}.reference-brand533{max-height:34px!important}.reference-manager533{font-size:13px!important;line-height:15px!important}
.reference-intro533{padding:7px 20px 0!important;margin:0 0 7px!important}.reference-intro533 h1{font-size:21px!important;line-height:24px!important}.reference-intro533 p{display:none!important}
#form-view.reference-full-form5331{grid-template-rows:52px 63px 44px 60px minmax(48px,1fr) 44px!important;gap:6px!important;--phone-control5331:44px}
#form-view>.scan-button{padding:5px 12px!important}.scan-button strong{font-size:18px!important;line-height:22px!important}.scan-button small{font-size:10px!important;line-height:13px!important;margin-top:1px!important}.scan-icon{width:38px!important;height:38px!important}
.urgency{height:44px!important}.field>.label{margin-bottom:4px!important}.native-dock{padding-top:7px!important}.native-dock #submit{height:44px!important;min-height:44px!important;font-size:16px!important}.phone-nav534{height:calc(46px + env(safe-area-inset-bottom));margin-top:7px}
}
.native-dock #submit:disabled{background:#0b2032!important;color:#fff!important;opacity:.7!important}
.app-header{padding-top:env(safe-area-inset-top)!important;background:#0b2032!important}.reference-intro533{background:#f7f9fc!important}

/* When a sent report awaits confirmation, hide the locked scanner, not report details. */
@media(max-width:599px){body:has(#report-receipt-check:not([hidden])) #form-view>.scan-button{display:none!important}body:has(#report-receipt-check:not([hidden])) #form-view.reference-full-form5331{grid-template-rows:63px 44px 60px minmax(48px,1fr) 44px!important;gap:6px!important}}
@media(max-width:599px){body:has(#report-receipt-check:not([hidden])) #form-view{--phone-control5331:44px}body:has(#report-receipt-check:not([hidden])) .urgency{height:44px!important}body:has(#report-receipt-check:not([hidden])) .field>.label{margin-bottom:4px!important}}
/* The white introduction joins the form without a stray navy margin stripe. */
.reference-intro533{margin:0!important;padding-bottom:9px!important}
@media(max-height:740px) and (max-width:599px){.reference-intro533{padding-bottom:7px!important}}
