.hpd-account-menu{display:grid;gap:10px;border-top:1px solid #d7dfd3;padding:18px 4px 4px;font-size:14px;color:#355e1b;overflow-wrap:anywhere}.hpd-account-menu a{color:#355e1b;min-height:40px;display:flex;align-items:center}.hpd-conflict{position:fixed;left:12px;right:12px;bottom:80px;z-index:20000;max-width:700px;max-height:70vh;overflow:auto;margin:auto;padding:18px;background:#fff7e6;border:2px solid #a27132;border-radius:10px;box-shadow:0 10px 60px #0004;font:14px/1.5 system-ui}.hpd-conflict p{margin:8px 0}.hpd-conflict button{background:#355e1b;color:white;border:0;border-radius:6px;padding:10px;margin:8px 8px 0 0;cursor:pointer}.hpd-conflict pre{white-space:pre-wrap;font-size:11px;max-height:170px;overflow:auto}

/* Dialog coordinates follow the visible screen, including the Android keyboard. */
:root{--hpd-visible-left:0px;--hpd-visible-top:0px;--hpd-visible-width:100vw;--hpd-visible-height:100dvh}
.detail-sheet{inset:auto;top:calc(var(--hpd-visible-top) + 8px);left:calc(var(--hpd-visible-left) + var(--hpd-visible-width) - min(510px,var(--hpd-visible-width)) + 8px);width:calc(min(510px,var(--hpd-visible-width)) - 16px);max-width:none;height:calc(var(--hpd-visible-height) - 16px);max-height:calc(var(--hpd-visible-height) - 16px);margin:0;border-radius:16px;overflow:hidden}
.detail-sheet[open]{display:flex;flex-direction:column}.detail-header{position:relative;flex:0 0 auto;min-width:0;gap:12px;padding:14px 16px}.detail-header>div{min-width:0}.detail-header h1{overflow-wrap:anywhere;font-size:17px}.detail-header .close-button{width:44px;height:44px}.detail-body{flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-wrap:anywhere;padding:16px 16px max(20px,env(safe-area-inset-bottom))}
.detail-body input,.detail-body select,.detail-body textarea{max-width:100%;min-width:0}.detail-body .field-row{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-body .prospect-actions{bottom:0;margin-bottom:0;gap:10px}.detail-body .prospect-actions .btn{flex:1 1 125px;min-width:0}.client-photo-grid,.client-photos input,.client-photos select{max-width:100%}
.route-dialog,.parcel-dialog{inset:auto;top:calc(var(--hpd-visible-top) + 8px);left:calc(var(--hpd-visible-left) + (var(--hpd-visible-width) - min(600px,var(--hpd-visible-width))) / 2 + 8px);width:calc(min(600px,var(--hpd-visible-width)) - 16px);max-width:none;max-height:calc(var(--hpd-visible-height) - 16px);margin:0}
.client-attach-dialog>form{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden}.client-attach-dialog .parcel-dialog-body{flex:1 1 auto;min-height:0}.client-attach-dialog .parcel-dialog-actions{flex:0 0 auto}
.parcel-dialog-header{position:sticky;top:0;background:white;z-index:2}.parcel-dialog-header h2,.route-dialog-header h2{overflow-wrap:anywhere}
.menu-panel{max-height:calc(var(--hpd-visible-height) - 115px)}
@media(max-width:580px){.detail-sheet{left:calc(var(--hpd-visible-left) + 8px);width:calc(var(--hpd-visible-width) - 16px)}.detail-body .field-row{grid-template-columns:1fr}}
@media(max-height:440px){.detail-header{padding:8px 12px}.detail-header h1{font-size:15px}.detail-body{padding:12px}.detail-body .prospect-actions{position:static}}

/* Return to the common home without replacing the business identity. */
.menu-anchor{display:flex;align-items:center;gap:10px}.hpd-one-return{display:inline-flex;align-items:center;gap:6px;color:#355e1b;text-decoration:none;font:600 12px/1.3 Inter,system-ui,sans-serif;min-height:44px;white-space:nowrap}.hpd-one-return img{display:block;width:24px;height:24px}@media(max-width:380px){.hpd-one-return span{display:none}.menu-anchor{gap:6px}}
