/* Bottom sheet (SOS, Garage backup conflicts), emergency contact card, backup card */

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 10000;            /* above the phone-width floating nav bar (9999) */
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: flex-end;
  animation: sheetFade 0.2s ease;
}
.sheet-backdrop[hidden] { display: none; }
.sheet {
  width: 100%;
  max-height: 85%;
  overflow-y: auto;
  background: var(--ios-card);
  color: var(--ios-text);
  border-radius: 24px 24px 0 0;
  padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  animation: sheetUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop { animation: none; } }

.sheet-title { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.sheet-text { font-size: 13.5px; line-height: 1.45; color: var(--ios-subtext); margin-bottom: 16px; }
.sheet-text b { color: var(--ios-text); font-weight: 600; }
.sheet-note { font-size: 11.5px; color: var(--ios-subtext); text-align: center; margin-top: 12px; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions-stack { flex-direction: column; }
.sheet-actions .ble-btn { padding: 13px; font-size: 14.5px; }
.sheet-link { display: block; text-align: center; text-decoration: none; }
.sheet-choice { text-align: left; padding: 12px 14px !important; }
.sheet-choice small { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.8; margin-top: 2px; }

.sheet-compare { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.sheet-compare th, .sheet-compare td { padding: 7px 6px; text-align: left; border-bottom: 0.5px solid var(--ios-sep); }
.sheet-compare th { font-weight: 500; color: var(--ios-subtext); }
.sheet-compare thead td { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ios-subtext); }
.sheet-compare tbody td { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Emergency contact card (Profile) */
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.contact-note, .backup-note { margin-top: 10px; font-size: 11px; line-height: 1.4; }
.ble-btn:disabled { opacity: 0.4; }
