/* Actual Emergency Cards panel; functional controls remain in family/index.html. */
#gpCardsSheetBackdrop{display:none}
@media(max-width:650px){
body.gp-cards-sheet-open{overflow:hidden!important}
body.gp-cards-sheet-open #gpCardsSheetBackdrop{display:block;position:fixed;inset:0;z-index:4998;background:rgba(5,10,18,.66);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}
body.gp-cards-sheet-open #familyFirstSteps[data-family-view="2"] #familyEmergencyCardsAction{
position:fixed!important;inset:auto 0 0!important;z-index:4999!important;display:block!important;
max-height:min(87dvh,850px);overflow-y:auto;overscroll-behavior:contain;
border:1px solid #647386!important;border-bottom:0!important;border-radius:24px 24px 0 0!important;
box-shadow:0 -18px 65px #000a!important;padding:18px 16px calc(25px + env(safe-area-inset-bottom,0px))!important;
margin:0!important;background:rgba(31,42,55,.96)!important;color:#fff!important;
-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}
body.gp-cards-sheet-open #familyEmergencyCardsAction>.family-next-number{display:none!important}
body.gp-cards-sheet-open #familyEmergencyCardsAction>.gp-cards-sheet-header{
display:flex;align-items:center;justify-content:space-between;gap:12px;
position:sticky;top:-18px;z-index:2;padding:8px 0 13px;background:#1f2a37;border-bottom:1px solid #56677b}
body.gp-cards-sheet-open #familyEmergencyCardsAction>.gp-cards-sheet-header h2{font-size:20px;margin:0;color:#fff}
body.gp-cards-sheet-open #gpCloseCardsSheet{min-height:44px;min-width:60px;border:1px solid #65778b;border-radius:12px;color:#fff;background:#36495e;font-size:15px}
body.gp-cards-sheet-open #familyEmergencyCardEditor iframe{height:min(65dvh,700px)!important;max-width:100%!important}
body.gp-cards-sheet-open #mobileTabBar{pointer-events:none}
}
@media(max-width:650px) and (prefers-reduced-transparency:reduce){
body.gp-cards-sheet-open #familyEmergencyCardsAction{background:#1f2a37!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.gp-cards-sheet-open #gpCardsSheetBackdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}