/* V17: scoped popup refresh. No street-grid, artwork or navigation overrides. */
#graftConfirm,#modal:not(.v43-customer-dialog):not(.v44-customer-dialog){color-scheme:dark;box-sizing:border-box;background:linear-gradient(165deg,#105074 0%,#082d49 36%,#03172b 100%)!important;color:#f3fbff;border:1px solid #58d9ff!important;border-radius:18px!important;box-shadow:0 0 17px #0db8ff66,inset 0 1px 6px #64ddff33!important;width:min(92vw,410px);max-width:calc(100vw - 22px);max-height:calc(100dvh - 24px);padding:14px!important;overflow:hidden;margin:auto;}
#graftConfirm::backdrop,#modal::backdrop{background:#010b18c7;}
#graftConfirm:not([open]){display:none;}
#graftConfirm .gpc-inner,#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) #modalForm{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 56px);gap:10px;}
#graftConfirm .gpc-heading{display:flex;gap:9px;align-items:center;color:#85e3ff;}
#graftConfirm h2,#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) #modalTitle{font-size:21px!important;line-height:1.2!important;margin:0!important;color:#f4fbff;flex:none;}
#graftConfirm .gpc-heading span{font-size:25px;line-height:1;}
#graftConfirm .gpc-sub{font-size:14px;color:#c9e8fa;}
#graftConfirm .gpc-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
#graftConfirm .gpc-metrics>div{display:grid;text-align:center;gap:2px;padding:10px 5px;border:1px solid #35acd9;border-radius:10px;background:linear-gradient(#104b6c,#07233e);}
#graftConfirm .gpc-metrics strong{font-size:23px;color:#f1fbff;}
#graftConfirm .gpc-metrics>div:last-child strong{color:#83e7ae;}
#graftConfirm .gpc-metrics small{font-size:12px;color:#bfdef0;}
#graftConfirm .gpc-message{font-size:14px;line-height:1.45;margin:0;overflow:auto;overflow-wrap:anywhere;color:#cbe5f5;}
#graftConfirm .gpc-actions,#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) .actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;flex:none;margin:0!important;}
#graftConfirm button,#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) .actions button{min-height:44px!important;padding:9px 7px!important;margin:0!important;border-radius:10px!important;border:1px solid #47b8e5!important;font-weight:750;font-size:14px!important;background:linear-gradient(#145276,#0a2e4b)!important;color:#f4fbff!important;box-shadow:inset 0 1px 5px #77dfff33;}
#graftConfirm .gpc-accept,#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) .actions .primary{background:linear-gradient(#2bcfff,#0773b6)!important;color:#031d31!important;box-shadow:0 0 9px #22c2ff55,inset 0 1px 5px #b3f4ff66;}
#graftConfirm.gpc-danger .gpc-accept{background:linear-gradient(#be454d,#82252c)!important;color:white!important;border-color:#ff8282!important;}
#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) #modalFields{min-height:0;max-height:none!important;overflow-y:auto;overscroll-behavior:contain;flex:0 1 auto;padding:2px 3px 4px 1px;scrollbar-width:thin;}
#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) .field{display:grid;gap:5px;margin:0 0 9px!important;font-size:13px!important;color:#d9efff;min-width:0;}
#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){width:100%;min-width:0;max-width:100%;min-height:40px!important;padding:8px 10px!important;margin:0!important;background:#092a45!important;color:#f5fbff!important;border:1px solid #3c8db6!important;border-radius:9px!important;font-size:16px!important;box-shadow:inset 0 1px 4px #00102188;}
#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) input::placeholder{color:#a2c1d6;}
#modal.gpc-add-house #modalFields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.78fr);gap:8px;}
#modal.gpc-add-house #modalFields .field{margin:0!important;align-content:end;}
#modal.gpc-add-house #modalFields .field:nth-child(n+3){grid-column:1/-1;}
#modal:has(.quick-pay) .actions,#modal .actions[hidden]{display:none!important;}
#modal:has(.quick-pay) .quick-pay button{min-height:42px;border-radius:10px;}
#modal.finish-dialog #modalFields{flex:1;}
@media(max-height:450px){#graftConfirm,#modal:not(.v43-customer-dialog):not(.v44-customer-dialog){padding:9px!important;max-height:calc(100dvh - 10px)}#graftConfirm .gpc-inner,#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) #modalForm{max-height:calc(100dvh - 32px);gap:6px;}}

/* V17.1: owner confirmation matches the entrance login, not service colours. */
#graftConfirm.gpc-owner{background:linear-gradient(160deg,#23272c,#080d16 65%)!important;border-color:#e78e25!important;box-shadow:0 0 28px #f087224d!important;}
#graftConfirm.gpc-owner .gpc-heading,#graftConfirm.gpc-owner h2{color:#ffb550!important;}
#graftConfirm.gpc-owner .gpc-message{color:#d2dce6;}
#graftConfirm.gpc-owner button{background:#132637!important;color:#ebf5ff!important;border-color:#59616c!important;box-shadow:none;}
#graftConfirm.gpc-owner .gpc-accept{background:linear-gradient(#ffac44,#e88a25)!important;color:#10151d!important;border-color:#ffad47!important;box-shadow:0 0 9px #e88a2544;}
/* V17.2: all application-owned prompts, including owner settings and other service notices. */
#graftConfirm [hidden]{display:none!important}
#graftConfirm .gpc-actions:has(.gpc-cancel[hidden]){grid-template-columns:1fr}
#graftConfirm .gpc-message{white-space:pre-wrap;min-height:0}
#graftConfirm .gpc-input-wrap{display:grid;gap:5px;font-size:13px;color:#d9efff}
#graftConfirm .gpc-input{min-width:0;width:100%;box-sizing:border-box;background:#092a45;color:#f5fbff;border:1px solid #3c8db6;border-radius:9px;padding:10px;font-size:16px}
#graftConfirm.gpc-garden{background:linear-gradient(160deg,#254d2c,#081b10)!important;border-color:#83d858!important;box-shadow:0 0 20px #5ecb5555!important}
#graftConfirm.gpc-garden .gpc-accept{background:linear-gradient(#a1e76c,#51a83f)!important;color:#12240d!important;border-color:#a1e76c!important}
#graftConfirm.gpc-pressure{background:linear-gradient(160deg,#4e2f12,#1b1208)!important;border-color:#ffab47!important;box-shadow:0 0 20px #ff912855!important}
#graftConfirm.gpc-pressure .gpc-accept{background:linear-gradient(#ffc36e,#ef902b)!important;color:#2b1503!important;border-color:#ffc36e!important}
:is(#installSettings,#mossLocked,#expansionPending){color-scheme:dark;background:linear-gradient(160deg,#23272c,#080d16 65%)!important;color:#f0f5fa!important;border:1px solid #e78e25!important;border-radius:18px!important;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 0 22px #f0872244!important}
:is(#installSettings,#mossLocked,#expansionPending) button{background:#152332!important;color:#f7c47f!important;border:1px solid #d18a3b!important;border-radius:10px!important;min-height:42px}
#modal:is(.v43-customer-dialog,.v44-customer-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){color-scheme:dark;background:#092a45!important;color:#f5fbff!important;border:1px solid #3c8db6!important;border-radius:9px!important;box-sizing:border-box;max-width:100%;min-width:0;font-size:16px!important}
#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) .quick-pay{display:grid;gap:8px;min-width:0}
#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) .quick-pay button{background:linear-gradient(#145276,#0a2e4b)!important;color:#f4fbff!important;border:1px solid #47b8e5!important;margin:0!important;min-height:42px!important;font-size:14px!important}
#modal:not(.v43-customer-dialog):not(.v44-customer-dialog) .quick-pay button.primary{background:linear-gradient(#2bcfff,#0773b6)!important;color:#031d31!important}

/* V17.5 finish choices and compact missed-house picker */
#graftConfirm .gpc-extra{display:grid;gap:8px;flex:none}
#graftConfirm .gpc-choice.missed{border-color:#ff8484!important;color:#ffb0b0!important}
#graftConfirm .gpc-choice.later{border-color:#e4bd58!important;color:#ffda81!important}
#graftConfirm .gpc-picks{display:flex;flex-direction:column;min-height:0;gap:6px;overflow:hidden}
#graftConfirm .gpc-pick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-height:0;overflow:auto;overscroll-behavior:contain;max-height:35dvh}
#graftConfirm .gpc-pick-grid label{display:flex;align-items:center;gap:6px;min-width:0;min-height:44px;padding:6px;border:1px solid #3885a9;border-radius:8px;background:#103c58;font-size:13px;overflow-wrap:anywhere}
#graftConfirm .gpc-pick-grid label:has(input:checked){border-color:#ff8585;background:#492b38}
#graftConfirm .gpc-pick-grid input{width:18px;height:18px;flex:none;accent-color:#f17777;margin:0}
#graftConfirm button:disabled{opacity:.45}
#app.app.full-pay>#content:has(.v12-picks){overflow-y:auto!important;overscroll-behavior:contain}
#app.app.full-pay>#content:has(.v12-picks)>.v12-picks{flex:0 0 auto;max-height:38dvh;min-height:90px;overflow-y:auto}
#app.app.full-pay>#content:has(.v12-picks)>:not(.v12-picks){flex-shrink:0}
