/* Legacy split-screen authentication layout permanently removed in v1.1.212. */
.auth-footer { margin-top:20px; text-align:center; font-size:.84rem; }
/* Nearby */
.category-strip { display:flex; gap:9px; margin-bottom:16px; padding-bottom:3px; overflow-x:auto; scrollbar-width:none; }
.category-strip::-webkit-scrollbar { display:none; }
.category-strip button { display:flex; align-items:center; gap:7px; min-height:42px; padding:0 13px; border:1px solid var(--line); border-radius:14px; color:#555b64; background:white; white-space:nowrap; }
.category-strip button.active { color:white; border-color:var(--red); background:var(--red); }
.nearby-search-card { margin-bottom:16px; }
.inline-search { display:flex; align-items:center; gap:10px; }
.inline-search input { flex:1; min-width:0; height:45px; border:0; outline:0; color:var(--ink); }
.place-list { display:grid; gap:10px; }
.place-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:13px; padding:14px 15px; border:1px solid var(--line); border-radius:17px; background:white; box-shadow:0 5px 15px rgba(8,14,22,.045); }
.place-row p { font-size:.79rem; }
.place-icon { display:grid; place-items:center; width:45px; height:45px; border-radius:14px; color:var(--red); background:var(--red-soft); }
.place-actions { display:flex; gap:7px; }
.place-actions button { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--line); border-radius:12px; color:#343941; background:white; }
/* Check in and family */
.checkin-hero { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:15px; margin-bottom:15px; }
.checkin-hero.compact { padding:0 0 18px; margin-bottom:18px; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; }
.checkin-hero small { display:block; margin-bottom:4px; color:var(--muted); }
.checkin-hero h2 { margin-bottom:4px; }
.checkin-hero p { font-size:.79rem; }
.hero-icon { display:grid; place-items:center; width:58px; height:58px; border-radius:18px; color:white; background:var(--teal); }
.hero-icon.red { background:var(--red); }
.hero-icon.teal { background:linear-gradient(145deg,#0fa8aa,#057b7e); }
.contact-toggle { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }
.contact-toggle:last-of-type { margin-bottom:17px; }
.contact-toggle span:nth-child(2) { display:grid; }
.contact-toggle small { margin-top:2px; color:var(--muted); }
.contact-toggle input { width:20px; height:20px; accent-color:var(--red); }
.contact-avatar { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; color:white; background:linear-gradient(145deg,#4f5661,#161a20); font-size:.72rem; font-weight:720; }
.feature-banner { display:flex; align-items:center; gap:15px; margin-bottom:15px; padding:20px; border-radius:var(--radius); }
.feature-banner > span { display:grid; place-items:center; width:60px; height:60px; flex:0 0 auto; border-radius:18px; }
.feature-banner.purple { border:1px solid #ead8ff; background:linear-gradient(135deg,#fff,#f6eaff); }
.feature-banner.purple > span { color:var(--purple); background:white; box-shadow:0 8px 22px rgba(129,37,232,.12); }
.toggle-card { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:15px; }
.switch { position:relative; width:52px; height:30px; flex:0 0 auto; }
.switch input { position:absolute; opacity:0; }
.switch span { position:absolute; inset:0; border-radius:999px; background:#c7cbd0; transition:.2s; }
.switch span::after { content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:white; box-shadow:0 3px 8px rgba(0,0,0,.2); transition:.2s; }
.switch input:checked + span { background:var(--red); }
.switch input:checked + span::after { transform:translateX(22px); }
.family-row { display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:11px; width:100%; padding:11px 0; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; }
.family-row > span:nth-child(2) { display:grid; }
.family-row small { color:var(--muted); }
.family-row em { color:#7d828b; font-size:.71rem; font-style:normal; }
.family-row em.live { color:var(--green); }
.family-row + .primary-button { margin-top:17px; }
.zone-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.zone-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:13px; padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:white; box-shadow:var(--shadow-sm); }
.zone-card > button { border:0; color:#6f747d; background:transparent; }
.zone-icon { display:grid; place-items:center; width:55px; height:55px; border-radius:17px; color:var(--red); background:var(--red-soft); }
.zone-icon.blue { color:var(--blue); background:#edf2ff; }
.zone-icon.amber { color:var(--amber); background:#fff6dc; }
.zone-card p { margin-bottom:9px; font-size:.78rem; }
/* Incident */
.emergency-heading { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:18px; margin-bottom:22px; }
.emergency-pulse { display:grid; place-items:center; width:76px; height:76px; border:3px solid white; border-radius:50%; color:white; background:radial-gradient(circle at 30% 18%,#ff4d56,#d70c16 58%,#8f050c); box-shadow:0 0 0 4px rgba(239,27,36,.25),0 10px 26px rgba(214,15,25,.28); font-size:1.35rem; font-weight:720; }
.incident-type-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:15px; }
.incident-type { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:105px; border:1px solid var(--line); border-radius:18px; color:#555b64; background:white; }
.incident-type.selected { color:white; border-color:var(--red); background:linear-gradient(145deg,#fa3440,#c90813); box-shadow:0 12px 24px rgba(212,12,24,.2); }
.emergency-consent { display:flex; gap:10px; margin:4px 0 17px; padding:13px; border-radius:14px; color:#234d79; background:#edf6ff; }
.emergency-consent p { color:#3d607e; font-size:.77rem; }
/* Route Planner full layout replacement v1.1.190 */
.route-planner-page {
  max-width: 900px;
  padding-bottom: 24px;
}
.route-planner-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.route-planner-intro h1 {
  margin-bottom: 6px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}
.route-planner-intro p { max-width: 580px; }
.route-history-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #f0d6d8;
  border-radius: 14px;
  color: #b70c16;
  background: #fff;
  box-shadow: 0 8px 22px rgba(10, 17, 26, .06);
  font-weight: 680;
}
.route-location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  margin-bottom: 14px;
  overflow: visible;
  border: 1px solid #dfe3e8;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 15, 24, .075);
}
.route-location-main { min-width: 0; }
.route-location-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid #e8ebef;
}
.route-location-row::before {
  position: absolute;
  left: 32px;
  top: 48px;
  bottom: -25px;
  width: 2px;
  border-left: 2px dotted #d1d6dc;
  content: "";
}
.route-destination-row::before,
.route-stops:empty + .route-add-stop-row::before,
.route-stop-row:last-child::before { display: none; }
.route-location-marker {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--red);
}
.route-location-marker--origin {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  border: 3px solid #23a95a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px #eefaf2;
}
.route-location-marker--destination { color: var(--red); }
.route-location-marker--stop {
  width: 23px;
  height: 23px;
  border: 2px solid #5c6570;
  border-radius: 50%;
  color: #404750;
  background: #fff;
  font-size: .69rem;
  font-weight: 760;
}
.route-location-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.route-location-copy small {
  color: #7a818b;
  font-size: .72rem;
  font-weight: 560;
}
.route-location-copy strong {
  overflow: hidden;
  color: #171d26;
  font-size: .96rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-search-control { position: relative; }
.route-search-control input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #121821;
  background: transparent;
  font-size: .96rem;
  font-weight: 610;
}
.route-search-control input::placeholder { color: #8a919a; font-weight: 520; }
.route-row-action {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #718096;
  background: transparent;
}
.route-row-action:hover { background: #f3f5f7; }
.route-row-action.busy { animation: route-control-spin 1s linear infinite; }
.route-place-suggestions {
  position: absolute;
  z-index: 160;
  top: calc(100% + 10px);
  right: -48px;
  left: -42px;
  display: grid;
  max-height: 290px;
  overflow-y: auto;
  border: 1px solid #dde1e6;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 14, 22, .18);
}
.route-place-suggestions:empty { display: none; }
.route-place-suggestions button {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.route-place-suggestions button:last-child { border-bottom: 0; }
.route-place-suggestions button:hover { background: #f8f9fa; }
.route-place-suggestions button > span:first-child {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  color: var(--red);
  background: var(--red-soft);
}
.route-place-suggestions button > span:last-child { display: grid; min-width: 0; gap: 2px; }
.route-place-suggestions strong,
.route-place-suggestions small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-place-suggestions strong { font-size: .81rem; }
.route-place-suggestions small { color: #7b828b; font-size: .68rem; }
.route-place-suggestions em { padding: 16px; color: var(--muted); font-size: .78rem; font-style: normal; text-align: center; }
.route-add-stop-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr 40px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 0 14px 0 18px;
  border: 0;
  color: #1555b9;
  background: #fff;
  text-align: left;
}
.route-add-stop-row > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #1555b9;
}
.route-add-stop-row strong { font-size: .91rem; }
.route-add-stop-row i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #aeb7c2;
  border-radius: 50%;
  color: #6e7b8e;
  font-style: normal;
}
.route-swap-button {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 45px;
  height: 61px;
  padding: 0;
  border: 1px solid #e2e5e9;
  border-radius: 14px;
  color: #202732;
  background: #f9fafb;
}
.route-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.route-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  color: #161c25;
  background: #fff;
  box-shadow: 0 5px 14px rgba(8, 15, 24, .035);
  font-weight: 650;
}
.route-mode-button.active {
  color: #c90e18;
  border-color: #efc5c8;
  background: #fff7f7;
  box-shadow: 0 8px 22px rgba(210, 17, 28, .09);
}
.route-map-card {
  position: relative;
  height: clamp(330px, 49vw, 500px);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #dde1e6;
  border-radius: 19px;
  background: #dbe5ec;
  box-shadow: 0 10px 28px rgba(8, 15, 24, .09);
}
.route-planner-map { width: 100%; height: 100%; }
.route-planner-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(20, 28, 38, .12);
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(8, 15, 24, .12);
}
.route-planner-map .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; }
.route-planner-map .leaflet-control-attribution { font-size: 8px; }
.route-map-toolbar {
  position: absolute;
  z-index: 500;
  right: 13px;
  top: 13px;
  display: grid;
  gap: 9px;
}
.route-map-toolbar button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid rgba(20, 28, 38, .1);
  border-radius: 13px;
  color: #182231;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 22px rgba(8, 15, 24, .13);
}
.route-map-state {
  position: absolute;
  z-index: 520;
  left: 50%;
  bottom: 13px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 17, 27, .82);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  font-size: .72rem;
  font-weight: 620;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity .2s ease;
}
.route-map-state.error { background: rgba(165, 12, 22, .92); }
.route-map-state.hidden { opacity: 0; pointer-events: none; }
.route-map-div-icon,
.route-duration-div-icon { background: transparent; border: 0; }
.route-map-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #26313f;
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
  font-size: .66rem;
  font-weight: 820;
}
.route-map-pin::after {
  position: absolute;
  z-index: 0;
  right: 1px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 2px;
  content: "";
  background: inherit;
  transform: rotate(45deg);
}
.route-map-pin--origin { background: #24a954; }
.route-map-pin--origin::before { position: relative; z-index: 1; width: 7px; height: 7px; border-radius: 50%; content: ""; background: #fff; }
.route-map-pin--destination { background: #df121c; }
.route-map-pin--destination::before { position: relative; z-index: 1; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; content: ""; }
.route-map-pin--stop { background: #26313f; }
.route-duration-badge {
  display: grid;
  justify-items: center;
  min-width: 68px;
  min-height: 43px;
  padding: 6px 9px;
  border: 1px solid rgba(20, 28, 38, .12);
  border-radius: 10px;
  color: #1a212c;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 16px rgba(8, 15, 24, .14);
  font-size: .74rem;
  font-weight: 750;
}
.route-duration-badge small { color: #59616c; font-size: .59rem; font-weight: 620; }
.route-duration-badge.active { color: #fff; border-color: #145af2; background: #145af2; }
.route-duration-badge.active small { color: rgba(255, 255, 255, .82); }
.route-recommendation-card {
  min-height: 126px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid #dfe3e8;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 15, 24, .075);
}
.route-recommendation-card.loading { opacity: .68; }
.route-empty-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 88px;
  color: #6f7781;
  text-align: left;
}
.route-empty-summary > svg { color: #a8afb7; }
.route-empty-summary strong { display: block; margin-bottom: 3px; color: #303741; }
.route-empty-summary p { font-size: .78rem; }
.route-summary-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.route-summary-heading > div > span {
  display: block;
  margin-bottom: 7px;
  color: #cc111b;
  font-size: .69rem;
  font-weight: 780;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.route-summary-heading h2 { margin-bottom: 3px; font-size: 1.72rem; }
.route-summary-heading h2 small { color: #6f7680; font-size: .89rem; font-weight: 570; }
.route-summary-heading p { font-size: .82rem; }
.route-start-navigation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 226px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #eb1721, #be0711);
  box-shadow: 0 11px 25px rgba(204, 11, 22, .24);
  font-weight: 720;
}
.route-button-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: route-control-spin .7s linear infinite;
}
.route-live-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin-top: 11px;
  color: #6b737d;
  font-size: .7rem;
}
.route-live-details span { display: inline-flex; align-items: center; gap: 6px; }
.route-live-details i { width: 8px; height: 8px; border-radius: 50%; background: #22a856; }
.route-choice-strip {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}
.route-choice-strip::-webkit-scrollbar { display: none; }
.route-choice-strip button {
  display: grid;
  min-width: 94px;
  padding: 8px 11px;
  border: 1px solid #dfe3e8;
  border-radius: 11px;
  color: #4b535e;
  background: #fff;
  text-align: left;
}
.route-choice-strip button.active { color: #fff; border-color: #145af2; background: #145af2; }
.route-choice-strip strong { font-size: .76rem; }
.route-choice-strip span { font-size: .63rem; opacity: .78; }
.route-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(8, 15, 24, .055);
}
.route-action-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-right: 1px solid #e6e9ed;
  color: #1c2430;
  background: #fff;
  font-size: .79rem;
  font-weight: 650;
}
.route-action-grid button:last-child { border-right: 0; }
.route-action-grid button svg { color: #c8111b; }
.route-action-grid button .route-button-spinner { border-color: rgba(30, 38, 48, .2); border-top-color: #c8111b; }
.route-options-section h2 {
  margin: 0 0 10px 7px;
  color: #5c6571;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.route-options-card {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 15, 24, .065);
}
.route-option-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 10px 17px;
  border-bottom: 1px solid #e8ebef;
}
.route-option-row:last-child { border-bottom: 0; }
.route-option-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #293445; }
.route-option-row > span:nth-child(2) { display: grid; gap: 2px; }
.route-option-row strong { font-size: .88rem; }
.route-option-row small { color: #838a93; font-size: .67rem; }
.route-option-row select {
  max-width: 145px;
  height: 38px;
  padding: 0 29px 0 10px;
  border: 0;
  outline: 0;
  color: #16853f;
  background: #fff;
  font-weight: 650;
}
.route-schedule-control {
  display: grid;
  gap: 7px;
  padding: 13px 18px 15px 71px;
  border-bottom: 1px solid #e8ebef;
  color: #5f6670;
  font-size: .72rem;
  font-weight: 620;
}
.route-schedule-control[hidden] { display: none; }
.route-schedule-control input {
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid #d9dde2;
  border-radius: 11px;
  color: #18202b;
  background: #fff;
}
.route-toggle {
  position: relative;
  width: 48px;
  height: 27px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: #e4e7eb;
  transition: background .18s ease;
}
.route-toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
  content: "";
  transition: transform .18s ease;
}
.route-toggle:checked { background: var(--red); }
.route-toggle:checked::after { transform: translateX(21px); }
.route-toggle:disabled { opacity: .48; }
.route-history-backdrop {
  position: fixed;
  z-index: 590;
  inset: 0;
  background: rgba(3, 9, 15, .36);
  opacity: 0;
  transition: opacity .22s ease;
}
.route-history-backdrop.open { opacity: 1; }
.route-history-drawer {
  position: fixed;
  z-index: 600;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 430px);
  padding: calc(env(safe-area-inset-top) + 22px) 18px calc(env(safe-area-inset-bottom) + 22px);
  overflow-y: auto;
  background: #f5f7f9;
  box-shadow: -24px 0 60px rgba(3, 9, 15, .22);
  transform: translateX(105%);
  transition: transform .24s ease;
}
.route-history-drawer.open { transform: translateX(0); }
.route-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.route-history-header h2 { margin: 0; font-size: 1.45rem; }
.route-history-header button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  color: #333b46;
  background: #fff;
}
.route-history-content { display: grid; gap: 9px; }
.route-history-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #dfe3e8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(8, 15, 24, .05);
}
.route-history-item > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--red);
  background: var(--red-soft);
}
.route-history-item > div { display: grid; min-width: 0; gap: 3px; }
.route-history-item small { color: #7b828b; font-size: .65rem; }
.route-history-item strong { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.route-history-item button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e0b6b9;
  border-radius: 10px;
  color: #b40d17;
  background: #fff8f8;
  font-size: .72rem;
  font-weight: 680;
}
@keyframes route-control-spin { to { transform: rotate(360deg); } }
@media (max-width: 680px) {
  .route-planner-page { padding-bottom: 12px; }
  .route-planner-intro { align-items: flex-start; }
  .route-planner-intro h1 { font-size: 1.65rem; }
  .route-planner-intro p { font-size: .78rem; }
  .route-history-button { min-width: 44px; padding: 0 11px; }
  .route-history-button span { display: none; }
  .route-location-card { grid-template-columns: minmax(0, 1fr) 52px; border-radius: 17px; }
  .route-location-row { grid-template-columns: 26px minmax(0, 1fr) 35px; min-height: 68px; padding-left: 13px; padding-right: 8px; gap: 9px; }
  .route-location-row::before { left: 25px; }
  .route-location-copy strong,
  .route-search-control input { font-size: .86rem; }
  .route-place-suggestions { right: -38px; left: -33px; }
  .route-swap-button { width: 39px; height: 55px; }
  .route-mode-grid { gap: 7px; }
  .route-mode-button { min-height: 49px; gap: 6px; font-size: .76rem; }
  .route-mode-button svg { width: 20px; height: 20px; }
  .route-map-card { height: 365px; border-radius: 17px; }
  .route-recommendation-card { padding: 15px; border-radius: 17px; }
  .route-summary-heading { grid-template-columns: 1fr; gap: 13px; }
  .route-summary-heading h2 { font-size: 1.45rem; }
  .route-start-navigation { width: 100%; min-width: 0; min-height: 50px; }
  .route-action-grid button { gap: 5px; min-height: 49px; font-size: .69rem; }
  .route-action-grid button svg { width: 19px; height: 19px; }
  .route-option-row { grid-template-columns: 35px minmax(0, 1fr) auto; padding: 9px 12px; gap: 8px; }
  .route-option-icon { width: 32px; }
  .route-option-row select { max-width: 118px; padding-left: 5px; font-size: .73rem; }
  .route-option-row small { max-width: 190px; }
  .route-schedule-control { padding-left: 55px; }
}
@media (max-width: 410px) {
  .route-mode-button { flex-direction: column; gap: 2px; min-height: 56px; }
  .route-action-grid button { flex-direction: column; gap: 3px; min-height: 57px; }
  .route-option-row small { display: none; }
}

/* Profile */
.profile-hero { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:17px; margin-bottom:15px; padding:22px; border-radius:var(--radius); color:white; background:radial-gradient(circle at 90% 0,rgba(239,27,36,.46),transparent 38%),linear-gradient(135deg,#a80812,#e10c18 57%,#75040a); box-shadow:var(--shadow); }
.profile-hero img { width:88px; height:88px; border:3px solid rgba(255,255,255,.78); border-radius:50%; object-fit:cover; }
.profile-hero h1 { margin-bottom:5px; font-size:1.7rem; }
.profile-hero p { margin-bottom:9px; color:rgba(255,255,255,.82); }
.membership-badge { color:#25282d; background:white; }
.profile-menu { padding-top:3px; padding-bottom:3px; }
.profile-menu button { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; width:100%; padding:14px 0; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; }
.profile-menu button:last-child { border-bottom:0; }
.profile-menu button > span:first-child { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; color:#333840; background:#f1f3f5; }
.profile-menu button > span:nth-child(2) { display:grid; }
.profile-menu small { margin-top:3px; color:var(--muted); }
/* Notifications */
.notification-list { display:grid; gap:9px; }
.notification-row { position:relative; display:grid; grid-template-columns:auto 1fr auto; gap:12px; padding:16px; border:1px solid var(--line); border-radius:17px; background:white; }
.notification-row > span { display:grid; place-items:center; width:43px; height:43px; border-radius:14px; color:#676d76; background:#f1f3f5; }
.notification-row p { font-size:.8rem; }
.notification-row small { display:block; margin-top:5px; color:#999ea6; }
.notification-row > i { align-self:center; width:8px; height:8px; border-radius:50%; background:transparent; }
.notification-row.unread { border-color:#f1c0c4; background:#fffafb; }
.notification-row.unread > span { color:var(--red); background:var(--red-soft); }
.notification-row.unread > i { background:var(--red); }
/* More */
.more-page { max-width:760px; }
.more-group { margin-bottom:19px; }
.more-group-title { display:flex; align-items:center; gap:8px; margin:0 0 9px 8px; color:#252a31; }
.more-group-title h2 { margin:0; font-size:.86rem; font-weight:610; letter-spacing:.02em; }
.more-list { padding:3px 16px; border:1px solid var(--line); border-radius:var(--radius); background:white; box-shadow:var(--shadow-sm); }
.more-list button, .logout-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; width:100%; padding:13px 0; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; }
.more-list button:last-child { border-bottom:0; }
.more-item-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; color:var(--red); background:var(--red-soft); }
.more-list button > span:nth-child(2), .logout-row > span { display:grid; }
.more-list small, .logout-row small { margin-top:3px; color:var(--muted); font-size:.73rem; }
.logout-row { margin-top:7px; padding:15px 16px; border:1px solid #f0c5c8; border-radius:var(--radius); color:var(--red); background:white; box-shadow:var(--shadow-sm); }
.logout-row > svg:first-child { margin-left:9px; }
.empty-feature { display:grid; justify-items:center; padding:46px 28px; text-align:center; }
.empty-feature > span { display:grid; place-items:center; width:78px; height:78px; margin-bottom:17px; border-radius:24px; color:var(--red); background:var(--red-soft); }
.empty-feature p { max-width:520px; margin-bottom:20px; }
@media (max-width:850px) {
  .zone-grid { grid-template-columns:1fr; }
  .route-layout { grid-template-columns:1fr; }
}
@media (max-width:680px) {
.two-field-row { grid-template-columns:1fr; gap:0; }
  .form-meta { align-items:flex-start; }
  .nearby-search-card { padding:10px; }
  .inline-search .primary-button { min-width:88px; }
  .place-row { grid-template-columns:auto 1fr; }
  .place-actions { grid-column:2; }
  .checkin-hero { grid-template-columns:auto 1fr; }
  .checkin-hero > button { grid-column:1/-1; width:100%; }
  .incident-type-grid { grid-template-columns:repeat(2,1fr); }
  .route-preview-map { min-height:330px; }
  .profile-hero img { width:76px; height:76px; }
}

/* TrackSOS Spatial Auth Experience — crimson, obsidian, frosted white and silver. */
.spatial-public-page,
.spatial-auth-page,
.spatial-splash {
  --spatial-red: #ef1722;
  --spatial-red-deep: #bd0712;
  --spatial-red-bright: #ff3943;
  --spatial-obsidian: #0d1117;
  --spatial-ink: #15191f;
  --spatial-muted: #68707b;
  --spatial-silver: #dfe4eb;
  --spatial-frost: rgba(255, 255, 255, .76);
  --spatial-line: rgba(119, 128, 141, .18);
}

.official-auth-logo,
.auth-brand__logo,
.onboarding-logo,
.spatial-splash__brand img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* SPLASH */
.launch-splash.spatial-splash {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top) + 28px) 24px calc(env(safe-area-inset-bottom) + 34px);
  color: #fff;
  background:
    radial-gradient(circle at 50% 72%, rgba(239, 23, 34, .15), transparent 32%),
    radial-gradient(circle at 20% 15%, rgba(83, 95, 112, .16), transparent 30%),
    linear-gradient(150deg, #151b24 0%, #0c1016 52%, #080b10 100%);
}
.spatial-splash__stars,
.spatial-splash__stars::before,
.spatial-splash__stars::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}
.spatial-splash__stars {
  opacity: .32;
  background-image:
    radial-gradient(circle at 16% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 77% 14%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 67% 38%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 25% 44%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 56%, #fff 0 1px, transparent 1.5px);
}
.spatial-splash__stars::before {
  opacity: .46;
  background-image: linear-gradient(118deg, transparent 0 47%, rgba(255, 255, 255, .055) 48% 49%, transparent 50%);
  background-size: 110px 110px;
}
.spatial-splash__stars::after {
  background: linear-gradient(180deg, transparent 0 68%, rgba(239, 23, 34, .08));
}
.spatial-splash__brand {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(78vw, 315px);
  justify-items: center;
  margin-top: -13vh;
  text-align: center;
  animation: spatial-brand-enter .8s cubic-bezier(.2, .8, .2, 1) both;
}
.spatial-splash__brand img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .42));
}
.spatial-splash__brand p {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  color: rgba(255, 255, 255, .84);
  font-size: .82rem;
  line-height: 1.55;
  letter-spacing: .01em;
}
.spatial-splash__halo {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 52, 62, .18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 43, 53, .2), transparent 66%);
  box-shadow: 0 0 80px rgba(239, 23, 34, .16);
  transform: translateX(-50%);
  animation: spatial-halo 2.6s ease-in-out infinite alternate;
}
.spatial-splash__globe {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: -235px;
  width: min(170vw, 720px);
  aspect-ratio: 1.55;
  overflow: hidden;
  border: 1px solid rgba(255, 88, 96, .28);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 50% 4%, rgba(255, 66, 76, .48), rgba(224, 16, 27, .18) 28%, rgba(8, 12, 17, .92) 68%),
    linear-gradient(rgba(255, 56, 66, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 56, 66, .14) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  box-shadow: 0 -24px 80px rgba(239, 23, 34, .24), inset 0 18px 50px rgba(255, 38, 48, .22);
  transform: translateX(50%) perspective(460px) rotateX(28deg);
}
.spatial-splash__globe::before,
.spatial-splash__globe::after {
  position: absolute;
  inset: 7% 8%;
  border: 1px solid rgba(255, 95, 102, .2);
  border-radius: 50%;
  content: "";
}
.spatial-splash__globe::after {
  inset: 16% 20%;
}
.spatial-splash__globe span,
.spatial-splash__globe i,
.spatial-splash__globe b {
  position: absolute;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4a53;
  box-shadow: 0 0 13px #ff2732;
}
.spatial-splash__globe span { top: 24%; left: 32%; }
.spatial-splash__globe i { top: 16%; right: 30%; }
.spatial-splash__globe b { top: 42%; left: 53%; }
.launch-splash__progress {
  position: absolute;
  z-index: 6;
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  width: 76px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .17);
}
.launch-splash__progress i {
  display: block;
  width: 32%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5961, #fff);
  box-shadow: 0 0 10px rgba(255, 46, 56, .8);
  animation: spatial-progress 1.2s ease-in-out infinite alternate;
}

/* ONBOARDING */
.onboarding-page.spatial-public-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--spatial-ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .98), rgba(246, 248, 251, .94) 42%, rgba(226, 231, 238, .94) 100%),
    #eef1f5;
}
.onboarding-screen {
  position: relative;
  display: grid;
  width: min(100%, 470px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 16px);
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}
.onboarding-screen::before,
.onboarding-screen::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}
.onboarding-screen::before {
  top: 10%;
  right: -135px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(239, 23, 34, .11), transparent 68%);
}
.onboarding-screen::after {
  bottom: 10%;
  left: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(104, 117, 136, .11), transparent 68%);
}
.onboarding-topbar {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
}
.onboarding-logo {
  width: min(36vw, 132px);
  filter: drop-shadow(0 6px 11px rgba(11, 15, 20, .08));
}
.onboarding-skip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(117, 126, 138, .16);
  border-radius: 999px;
  color: #4d5560;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 7px 18px rgba(28, 35, 45, .06);
  backdrop-filter: blur(12px);
  font-size: .69rem;
  font-weight: 680;
}
.onboarding-copy {
  width: min(100%, 410px);
  margin: 10px auto 0;
  padding: 0 8px;
  text-align: center;
}
.onboarding-kicker,
.auth-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #8a919b;
  font-size: .58rem;
  font-weight: 760;
  letter-spacing: .17em;
}
.onboarding-copy h1 {
  margin: 0 0 7px;
  color: #11151a;
  font-size: clamp(1.45rem, 6.4vw, 2.05rem);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.onboarding-copy h1 span {
  color: var(--spatial-red);
}
.onboarding-copy p {
  max-width: 350px;
  margin: 0 auto;
  color: #626a75;
  font-size: .76rem;
  line-height: 1.5;
}
.onboarding-art {
  position: relative;
  display: grid;
  width: min(94vw, 390px);
  min-height: 190px;
  margin: 4px auto 2px;
  place-items: center;
}
.onboarding-art svg {
  display: block;
  width: 100%;
  max-height: 255px;
  overflow: visible;
}
.onboarding-art--tracking,
.onboarding-art--background {
  margin-top: 0;
}
.onboarding-feature-stack {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(100%, 400px);
  gap: 7px;
  margin: -4px auto 6px;
}
.onboarding-feature,
.permission-row {
  display: grid;
  width: 100%;
  min-height: 53px;
  grid-template-columns: 38px 1fr 24px;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 15px;
  color: #1d2229;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .88), rgba(238, 241, 245, .72)),
    rgba(255, 255, 255, .72);
  box-shadow:
    0 10px 22px rgba(32, 39, 49, .08),
    inset 0 1px 0 rgba(255, 255, 255, .94),
    inset 0 -1px 0 rgba(142, 151, 163, .12);
  backdrop-filter: blur(18px) saturate(135%);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
button.onboarding-feature:active,
button.permission-row:active {
  transform: translateY(1px) scale(.995);
}
.permission-row.is-enabled {
  border-color: rgba(28, 162, 76, .24);
  background: linear-gradient(115deg, rgba(247, 255, 250, .95), rgba(232, 247, 237, .84));
}
.permission-row.is-loading {
  opacity: .68;
}
.onboarding-feature__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--spatial-red);
  border: 1px solid rgba(239, 23, 34, .15);
  border-radius: 12px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 5px 12px rgba(239, 23, 34, .08);
}
.onboarding-feature__copy {
  display: grid;
  min-width: 0;
}
.onboarding-feature__copy strong {
  color: #23282f;
  font-size: .72rem;
  font-weight: 710;
  line-height: 1.25;
}
.onboarding-feature__copy small {
  margin-top: 2px;
  color: #747c87;
  font-size: .59rem;
  line-height: 1.3;
}
.onboarding-feature__state {
  display: grid;
  place-items: center;
  color: #a2a8b0;
}
.permission-row.is-enabled .onboarding-feature__state {
  color: #1a9e4a;
}
.onboarding-footer {
  display: grid;
  width: min(100%, 400px);
  min-height: 54px;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}
.onboarding-nav-button,
.onboarding-nav-placeholder {
  width: 44px;
  height: 44px;
}
.onboarding-nav-button {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}
.onboarding-nav-button--back {
  border: 1px solid rgba(112, 121, 132, .18);
  color: #31373f;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 8px 20px rgba(27, 35, 45, .08);
}
.onboarding-nav-button--next {
  border: 1px solid rgba(255, 255, 255, .48);
  color: #fff;
  background: linear-gradient(145deg, #ff3943, #e4101b 56%, #b90813);
  box-shadow: 0 12px 26px rgba(219, 13, 24, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.onboarding-dots {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.onboarding-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9ced5;
  transition: width .2s ease, background .2s ease;
}
.onboarding-dots i.active {
  width: 20px;
  border-radius: 999px;
  background: var(--spatial-red);
  box-shadow: 0 0 10px rgba(239, 23, 34, .22);
}

/* AUTH */
.auth-flow-page.spatial-auth-page {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-items: center;
  padding: calc(env(safe-area-inset-top) + 16px) 14px calc(env(safe-area-inset-bottom) + 16px);
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--spatial-ink);
  background:
    radial-gradient(circle at 82% 7%, rgba(255, 255, 255, .95), transparent 24%),
    radial-gradient(circle at 14% 92%, rgba(202, 208, 218, .42), transparent 34%),
    linear-gradient(145deg, #f8f9fb 0%, #edf0f4 58%, #e1e6ed 100%);
}
.auth-flow-page.spatial-auth-page::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(117, 126, 140, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 126, 140, .05) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}
.auth-flow-page--register.spatial-auth-page {
  align-items: start;
}
.auth-flow-card.spatial-auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  margin: auto;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .91), rgba(244, 246, 249, .76)),
    rgba(255, 255, 255, .72);
  box-shadow:
    0 30px 70px rgba(24, 31, 41, .14),
    0 8px 24px rgba(32, 40, 52, .08),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(138, 147, 159, .14);
  backdrop-filter: blur(24px) saturate(135%);
}
.auth-flow-card--register.spatial-auth-card {
  width: min(100%, 445px);
  margin-top: 0;
}
.auth-flow-card.spatial-auth-card::after {
  position: absolute;
  z-index: -1;
  right: -105px;
  bottom: -115px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 23, 34, .09), transparent 68%);
  content: "";
}
.auth-watermark {
  position: absolute;
  z-index: -1;
  top: 12px;
  right: 13px;
  width: 76px;
  height: 86px;
  opacity: .075;
}
.auth-watermark span {
  position: absolute;
  inset: 0;
  border: 5px solid #171c23;
  border-radius: 42% 42% 48% 48% / 28% 28% 68% 68%;
  clip-path: polygon(50% 0, 100% 20%, 92% 72%, 50% 100%, 8% 72%, 0 20%);
}
.auth-watermark i {
  position: absolute;
  top: 34px;
  left: 50%;
  color: #ef1722;
  font-size: .74rem;
  font-style: normal;
  font-weight: 850;
  transform: translateX(-50%);
}
.auth-back-button {
  position: absolute;
  z-index: 5;
  top: 17px;
  left: 15px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(115, 124, 137, .15);
  border-radius: 50%;
  color: #262c34;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 7px 18px rgba(31, 39, 49, .07);
}
.auth-brand {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0 auto 19px;
  text-align: center;
}
.auth-brand__logo {
  width: min(48vw, 176px);
  filter: drop-shadow(0 7px 13px rgba(15, 20, 27, .09));
}
.auth-brand p {
  margin-top: 5px;
  color: #7b828c;
  font-size: .58rem;
  line-height: 1.35;
  letter-spacing: .035em;
}
.auth-brand--compact {
  margin-bottom: 14px;
}
.auth-brand--compact .auth-brand__logo {
  width: min(35vw, 132px);
}
.auth-brand--compact p {
  display: none;
}
.auth-brand--login {
  margin-bottom: 24px;
}
.auth-form {
  width: 100%;
}
.auth-heading {
  margin-bottom: 17px;
  text-align: center;
}
.auth-heading--left {
  text-align: left;
}
.auth-heading h1 {
  margin: 0 0 6px;
  color: #151a20;
  font-size: clamp(1.36rem, 5.5vw, 1.72rem);
  font-weight: 690;
  letter-spacing: -.042em;
  line-height: 1.08;
}
.auth-heading p {
  margin: 0;
  color: #676f79;
  font-size: .72rem;
  line-height: 1.48;
}
.auth-heading strong {
  color: #242a31;
  font-weight: 720;
  overflow-wrap: anywhere;
}
.auth-kicker {
  margin-bottom: 6px;
  color: #9a5d63;
}
.auth-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.auth-field {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}
.auth-field > span {
  color: #4f5660;
  font-size: .62rem;
  font-weight: 690;
  letter-spacing: .005em;
}
.auth-field-control {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: #7d858f;
  border: 1px solid rgba(135, 144, 156, .18);
  border-radius: 12px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .92), rgba(239, 242, 246, .74)),
    rgba(255, 255, 255, .74);
  box-shadow:
    0 8px 16px rgba(30, 38, 49, .06),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(122, 132, 145, .1);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.auth-field-control:focus-within {
  border-color: rgba(239, 23, 34, .48);
  box-shadow: 0 0 0 4px rgba(239, 23, 34, .07), 0 10px 22px rgba(27, 34, 44, .08);
  transform: translateY(-1px);
}
.auth-field-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #161b21;
  background: transparent;
  font-size: .77rem;
}
.auth-field-control input::placeholder {
  color: #9ba2ab;
}
.auth-form-meta {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  color: #626a74;
  font-size: .62rem;
}
.auth-form-meta label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-form-meta input,
.auth-consent input {
  accent-color: var(--spatial-red);
}
.auth-primary-button {
  min-height: 49px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ff3a43 0%, #ed1722 52%, #c20814 100%);
  box-shadow:
    0 13px 26px rgba(205, 10, 21, .26),
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -2px 0 rgba(120, 0, 8, .16);
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .005em;
}
.auth-primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(205, 10, 21, .22), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.auth-flow-page .auth-primary-button {
  width: 100%;
}
.auth-flow-page .auth-footer {
  margin-top: 17px;
  color: #69717b;
  text-align: center;
  font-size: .63rem;
}
.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  color: #89909a;
  font-size: .57rem;
}
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 12px;
  color: #5b636d;
  font-size: .6rem;
  line-height: 1.42;
}
.auth-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.auth-consent .text-link {
  font-size: inherit;
}
.auth-password-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: -2px 0 10px;
  color: #949ba4;
  font-size: .54rem;
}
.auth-password-rules span {
  transition: color .16s ease;
}
.auth-password-rules span.is-valid {
  color: #19934a;
}
.auth-form-help,
.auth-code-expiry {
  margin: 0 0 15px;
  color: #7b838d;
  font-size: .61rem;
  line-height: 1.45;
}
.auth-code-expiry {
  margin-top: 10px;
  text-align: center;
}
.auth-resend-button,
.auth-email-link {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px auto 0;
  padding: 0 10px;
  border: 0;
  color: var(--spatial-red);
  background: transparent;
  font-size: .65rem;
  font-weight: 690;
}
.auth-email-link {
  margin-top: 0;
  color: #606873;
}
.auth-resend-button:disabled,
.auth-footer button:disabled {
  color: #a3a9b1;
  opacity: 1;
}
.auth-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  width: 100%;
  margin: 4px 0 0;
}
.auth-code-inputs input {
  width: 100%;
  min-width: 0;
  aspect-ratio: .78;
  max-height: 56px;
  border: 1px solid rgba(132, 141, 153, .2);
  border-radius: 10px;
  outline: 0;
  color: #171c22;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(231, 235, 241, .78));
  box-shadow: 0 8px 17px rgba(31, 39, 49, .07), inset 0 1px 0 #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 730;
}
.auth-code-inputs input:focus {
  border-color: rgba(239, 23, 34, .58);
  box-shadow: 0 0 0 4px rgba(239, 23, 34, .07), 0 9px 19px rgba(31, 39, 49, .08);
}
.auth-recovery-warning {
  margin: 9px 0 12px;
  padding: 10px 11px;
  border: 1px solid rgba(225, 42, 51, .2);
  border-radius: 11px;
  color: #9f1018;
  background: rgba(255, 244, 245, .82);
  box-shadow: inset 0 1px 0 #fff;
  font-size: .61rem;
  line-height: 1.42;
}
.auth-success-mark {
  display: grid;
  width: 112px;
  height: 112px;
  margin: 22px auto 23px;
  place-items: center;
  color: #fff;
  border: 8px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: linear-gradient(145deg, #2bc866, #169647);
  box-shadow: 0 17px 34px rgba(21, 146, 69, .23), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.auth-flow-card--success .auth-heading {
  margin-bottom: 23px;
}
.auth-package-invite {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 11px;
  margin-bottom: 12px;
  border: 1px solid rgba(239, 23, 34, .16);
  border-radius: 13px;
  color: #20252c;
  background: rgba(255, 246, 247, .82);
  box-shadow: inset 0 1px 0 #fff;
}
.auth-package-invite > svg { color: var(--spatial-red); flex: 0 0 auto; }
.auth-package-invite b,
.auth-package-invite span { display: block; }
.auth-package-invite b { font-size: .65rem; }
.auth-package-invite span { margin-top: 2px; color: #737a84; font-size: .57rem; line-height: 1.35; }

@keyframes spatial-progress {
  from { transform: translateX(-26px); }
  to { transform: translateX(57px); }
}
@keyframes spatial-brand-enter {
  from { opacity: 0; transform: translateY(13px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spatial-halo {
  from { opacity: .55; transform: translateX(-50%) scale(.92); }
  to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@media (min-width: 700px) {
  .onboarding-screen {
    border-right: 1px solid rgba(255, 255, 255, .8);
    border-left: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 0 70px rgba(29, 37, 48, .1);
  }
}

@media (max-width: 520px) {
  .auth-flow-page.spatial-auth-page {
    padding: 0;
  }
  .auth-flow-card.spatial-auth-card {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, .91), rgba(239, 242, 246, .8));
  }
  .auth-flow-page--register .auth-flow-card.spatial-auth-card {
    justify-content: flex-start;
    padding-top: calc(env(safe-area-inset-top) + 17px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 18px);
  }
}

@media (max-width: 370px) {
  .auth-field-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-password-rules { grid-template-columns: 1fr; gap: 2px; margin-left: 26px; }
  .auth-code-inputs { gap: 5px; }
  .onboarding-screen { padding-right: 14px; padding-left: 14px; }
}

@media (max-height: 760px) {
  .spatial-splash__brand { width: min(64vw, 245px); margin-top: -8vh; }
  .spatial-splash__globe { bottom: -225px; }
  .onboarding-screen {
    grid-template-rows: auto auto minmax(145px, 1fr) auto auto;
    padding-top: calc(env(safe-area-inset-top) + 8px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
  }
  .onboarding-copy { margin-top: 4px; }
  .onboarding-copy h1 { margin-bottom: 4px; font-size: 1.26rem; }
  .onboarding-copy p { font-size: .66rem; }
  .onboarding-art { min-height: 145px; width: min(78vw, 310px); }
  .onboarding-art svg { max-height: 184px; }
  .onboarding-feature-stack { gap: 5px; }
  .onboarding-feature,
  .permission-row { min-height: 46px; padding: 5px 9px; }
  .onboarding-feature__copy small { display: none; }
  .onboarding-footer { min-height: 48px; }
  .onboarding-nav-button,
  .onboarding-nav-placeholder { width: 40px; height: 40px; }
  .auth-flow-card.spatial-auth-card { padding-top: 15px; padding-bottom: 15px; }
  .auth-brand { margin-bottom: 12px; }
  .auth-brand__logo { width: min(39vw, 145px); }
  .auth-brand--compact .auth-brand__logo { width: min(30vw, 112px); }
  .auth-heading { margin-bottom: 12px; }
  .auth-heading h1 { font-size: 1.24rem; }
  .auth-field { gap: 3px; margin-bottom: 7px; }
  .auth-field-control { min-height: 42px; }
  .auth-consent { margin: 5px 0 8px; }
  .auth-flow-page .auth-footer { margin-top: 10px; }
  .auth-success-mark { width: 88px; height: 88px; margin: 12px auto 15px; }
}

.database-page [data-content]{display:grid;gap:14px}.database-form{display:grid;gap:12px;padding:16px}.database-section{display:grid;gap:12px;padding:16px;margin-bottom:14px}.database-list{display:grid;gap:10px}.data-card,.help-record{display:flex;align-items:center;gap:12px;padding:14px}.record-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.record-row:last-child{border-bottom:0}.record-row span{color:var(--muted);text-align:right}.database-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.plan-record{padding:14px;border:1px solid var(--line);border-radius:14px}.error-state{color:var(--red)}.legal-document{padding:14px}.legal-document summary{cursor:pointer}.data-summary{padding:16px;display:grid;gap:12px}.data-summary div{display:flex;justify-content:space-between;gap:12px}.family-row select{max-width:145px}.place-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid var(--line);background:#fff}.place-actions{display:flex;gap:6px}.place-actions button{padding:8px;border:1px solid var(--line);border-radius:9px;background:#fff}

/* Account & Membership full replacement v1.1.188 */
.account-section-page,
.account-overview-page,
.membership-page {
  max-width: 820px;
}
.account-page-heading {
  margin-bottom: 18px;
}
.account-page-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
}
.account-page-heading p {
  max-width: 620px;
}
.account-page-body,
[data-account-overview],
[data-membership-content] {
  display: grid;
  gap: 14px;
}
.account-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  color: var(--muted);
}
.account-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #dfe3e7;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: launch-spin .8s linear infinite;
}
.account-state {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 28px;
  text-align: center;
}
.account-state > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: var(--red);
  background: var(--red-soft);
}
.account-state h2,
.account-state p {
  margin: 0;
}
.account-state .secondary-button {
  margin-top: 5px;
}
.account-edit-form {
  display: grid;
  gap: 14px;
}
.account-form-card {
  padding: 18px;
}
.account-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 15px;
}
.account-card-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--red);
  background: var(--red-soft);
}
.account-card-heading h2 {
  margin-bottom: 3px;
  font-size: 1rem;
}
.account-card-heading p {
  font-size: .76rem;
  line-height: 1.4;
}
.account-form-grid {
  display: grid;
  gap: 12px;
}
.account-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}
.account-field:last-child {
  margin-bottom: 0;
}
.account-field-label {
  color: #343940;
  font-size: .78rem;
  font-weight: 650;
}
.account-field-label i {
  margin-left: 3px;
  color: var(--red);
  font-style: normal;
}
.account-field small,
.account-file-field small {
  color: var(--muted);
  font-size: .69rem;
  font-weight: 430;
  line-height: 1.4;
}
.account-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #d4d9df;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(5, 18, 28, .02);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.account-control:focus-within {
  border-color: #717984;
  box-shadow: 0 0 0 4px rgba(22, 31, 42, .07);
}
.account-control input,
.account-control textarea,
.account-control select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: .86rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--ink);
  opacity: 1;
}
.account-control input::placeholder,
.account-control textarea::placeholder {
  color: #9aa0a8;
  -webkit-text-fill-color: #9aa0a8;
}
.account-control textarea {
  min-height: 110px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}
.account-control select {
  padding-right: 42px;
  appearance: none;
}
.account-control--select > svg {
  position: absolute;
  right: 13px;
  transform: rotate(90deg);
  pointer-events: none;
}
.account-field--readonly .account-control {
  background: #f2f4f6;
}
.account-field--readonly input {
  color: #6c727a;
  -webkit-text-fill-color: #6c727a;
}
.account-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.account-readonly-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8f9;
}
.account-readonly-grid span {
  color: var(--muted);
  font-size: .69rem;
}
.account-readonly-grid b {
  overflow-wrap: anywhere;
  font-size: .84rem;
}
.account-form-footer {
  position: sticky;
  z-index: 3;
  bottom: calc(var(--footer-height) + env(safe-area-inset-bottom) + 7px);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(218, 222, 227, .92);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(7, 21, 32, .12);
  backdrop-filter: blur(14px);
}
.account-form-footer .secondary-button,
.account-form-footer .account-save-button {
  min-width: 150px;
}
.account-form-error {
  padding: 12px 14px;
  border: 1px solid #f2c3c7;
  border-radius: 12px;
  color: #9f1019;
  background: #fff5f6;
  font-size: .78rem;
}
.account-file-field {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}
.account-file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px dashed #c8ced5;
  border-radius: 13px;
  color: #454b53;
  background: #fafbfc;
  cursor: pointer;
}
.account-file-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}
.account-file-picker:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 12, 24, .07);
}
.account-document-button,
.account-location-button {
  width: 100%;
  margin-top: 10px;
}
.account-muted-note,
.account-location-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: .72rem;
}
.account-toggle-group {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.account-toggle-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.account-toggle-row:last-child {
  border-bottom: 0;
}
.account-toggle-row > span {
  display: grid;
  gap: 3px;
}
.account-toggle-row b {
  font-size: .82rem;
}
.account-toggle-row small {
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.35;
}
.account-toggle-row input {
  position: absolute;
  right: 13px;
  width: 44px;
  height: 26px;
  opacity: 0;
  cursor: pointer;
}
.account-toggle-row i {
  position: relative;
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cdd2d8;
  pointer-events: none;
  transition: background .18s ease;
}
.account-toggle-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  content: "";
  transition: transform .18s ease;
}
.account-toggle-row input:checked + i {
  background: var(--red);
}
.account-toggle-row input:checked + i::after {
  transform: translateX(18px);
}
.account-toggle-row input:focus-visible + i {
  box-shadow: 0 0 0 4px rgba(225, 12, 24, .12);
}
.account-security-note {
  padding: 13px;
  border: 1px solid #dce6f0;
  border-radius: 13px;
  background: #f3f8fc;
}
.account-security-note b {
  display: block;
  margin-bottom: 3px;
  color: #24445f;
  font-size: .8rem;
}
.account-security-note p {
  color: #4b667c;
  font-size: .72rem;
}
.account-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 4px 2px;
}
.account-page-toolbar > div {
  display: grid;
  gap: 3px;
}
.account-page-toolbar b {
  font-size: .86rem;
}
.account-page-toolbar small {
  color: var(--muted);
  font-size: .7rem;
}
.account-record-editor {
  margin-bottom: 2px;
}
.account-record-list {
  display: grid;
  gap: 10px;
}
.account-record-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.account-record-leading,
.account-vehicle-photo {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: var(--red);
  background: var(--red-soft);
}
.account-vehicle-photo {
  width: 58px;
  height: 58px;
  color: #4e555d;
  background: #edf0f2;
}
.account-vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-record-copy {
  min-width: 0;
}
.account-record-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.account-record-title h2 {
  min-width: 0;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
  font-size: .91rem;
}
.account-record-title > span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #666d75;
  background: #eff1f3;
  font-size: .62rem;
  font-weight: 650;
}
.account-record-copy p,
.account-record-copy small {
  display: block;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.account-record-copy p {
  font-size: .76rem;
}
.account-record-copy small {
  margin-top: 2px;
  font-size: .68rem;
}
.account-record-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.account-record-badges i {
  padding: 3px 7px;
  border-radius: 999px;
  color: #737980;
  background: #eff1f3;
  font-size: .59rem;
  font-style: normal;
  font-weight: 630;
}
.account-record-badges i.is-on {
  color: #16763b;
  background: #eaf8ef;
}
.account-record-actions {
  display: flex;
  gap: 6px;
}
.account-record-actions button {
  display: grid;
  width: 35px;
  height: 35px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #454b53;
  background: #fff;
}
.account-record-actions button:last-child {
  color: var(--red);
}
.account-overview-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 21px;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at 94% 5%, rgba(255, 255, 255, .16), transparent 30%), linear-gradient(135deg, #9f0710, #e5101c 56%, #79040b);
  box-shadow: 0 16px 34px rgba(159, 7, 16, .25);
}
.account-avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
}
.account-avatar-wrap img,
.account-avatar-placeholder {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: #424950;
  background: #f4f5f6;
}
.account-avatar-edit {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #161a1f;
  cursor: pointer;
}
.account-avatar-edit input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.account-overview-identity h1 {
  margin-bottom: 4px;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}
.account-overview-identity > p {
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.account-member-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  font-size: .69rem;
}
.account-member-meta > span:first-child {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}
.account-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 670;
}
.account-status--active {
  color: #176c37;
  background: #e9f8ee;
}
.account-status--inactive {
  color: #7c3035;
  background: #fae9ea;
}
.account-membership-summary {
  padding: 17px;
}
.account-membership-summary > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.account-membership-summary > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-section-icon,
.account-nav-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--red);
  background: var(--red-soft);
}
.account-membership-summary h2 {
  margin: 0 0 2px;
  font-size: .98rem;
}
.account-membership-summary p {
  font-size: .7rem;
}
.account-membership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.account-membership-grid > div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}
.account-membership-grid small {
  color: var(--muted);
  font-size: .63rem;
}
.account-membership-grid b {
  overflow-wrap: anywhere;
  font-size: .75rem;
  text-transform: capitalize;
}
.account-membership-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #d3d7dc;
  border-radius: 13px;
  background: #fafbfc;
}
.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.account-stat {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.account-stat > span {
  color: var(--red);
}
.account-stat > b {
  font-size: 1.25rem;
}
.account-stat > small {
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.3;
}
.account-navigation-card {
  padding: 16px;
}
.account-navigation-card .account-card-heading {
  margin: 0 0 7px;
}
.account-navigation-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.account-navigation-list button:last-child {
  border-bottom: 0;
}
.account-navigation-list button > span:nth-child(2) {
  display: grid;
  gap: 3px;
}
.account-navigation-list b {
  font-size: .83rem;
}
.account-navigation-list small {
  color: var(--muted);
  font-size: .68rem;
}
.membership-current {
  padding: 20px;
  border-radius: 23px;
  color: #fff;
  background: radial-gradient(circle at 93% 4%, rgba(255, 255, 255, .17), transparent 32%), linear-gradient(135deg, #14181e, #252b33 60%, #0e1115);
  box-shadow: var(--shadow);
}
.membership-current--empty {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  background: #fff;
}
.membership-current-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.membership-current-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.membership-current-head p {
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
}
.membership-current-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.membership-current-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}
.membership-current-grid small {
  color: rgba(255, 255, 255, .6);
  font-size: .61rem;
}
.membership-current-grid b {
  overflow-wrap: anywhere;
  font-size: .74rem;
  text-transform: capitalize;
}
.membership-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #5a3b05;
  background: #fff0c8;
  font-size: .7rem;
}
.membership-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 690;
  text-transform: capitalize;
}
.membership-status--good {
  color: #176c37;
  background: #e9f8ee;
}
.membership-status--bad {
  color: #97131c;
  background: #fcecee;
}
.membership-status--neutral {
  color: #626970;
  background: #eef0f2;
}
.membership-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.membership-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  color: #666d75;
  background: transparent;
  font-size: .72rem;
  font-weight: 650;
}
.membership-tabs button.active {
  color: #fff;
  background: #171b20;
}
.membership-tabs button span {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(127, 132, 139, .16);
  font-size: .58rem;
}
.membership-tab-panel {
  padding: 17px;
}
.membership-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.membership-panel-heading h2 {
  margin-bottom: 3px;
  font-size: 1rem;
}
.membership-panel-heading p {
  font-size: .7rem;
}
.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
}
.membership-plan-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.membership-plan-card.is-current {
  border-color: #ef9ca2;
  box-shadow: 0 0 0 3px rgba(225, 12, 24, .06);
}
.membership-plan-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}
.membership-plan-title h3 {
  margin: 0 0 3px;
}
.membership-plan-title p {
  font-size: .68rem;
}
.membership-plan-title > span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-size: .58rem;
  font-weight: 680;
}
.membership-plan-price {
  font-size: 1.12rem;
}
.membership-plan-price small {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 500;
}
.membership-plan-devices {
  color: #4e555d;
  font-size: .7rem;
}
.membership-plan-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.membership-plan-card li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555c64;
  font-size: .66rem;
  text-transform: capitalize;
}
.membership-plan-card li svg {
  color: #168142;
}
.membership-plan-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .63rem;
  line-height: 1.4;
}
.membership-history-list {
  display: grid;
}
.membership-history-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.membership-history-list article:last-child {
  border-bottom: 0;
}
.membership-history-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--red);
  background: var(--red-soft);
}
.membership-history-list article > div:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.membership-history-list b {
  overflow-wrap: anywhere;
  font-size: .78rem;
}
.membership-history-list small {
  color: var(--muted);
  font-size: .63rem;
}
.membership-history-list p {
  color: #a30f19;
  font-size: .63rem;
}
.membership-history-value {
  display: grid;
  justify-items: end;
  gap: 5px;
}
.membership-empty-row {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: .76rem;
}
@media (max-width: 680px) {
  .account-page-heading {
    margin-bottom: 14px;
  }
  .account-form-grid--two,
  .account-readonly-grid {
    grid-template-columns: 1fr;
  }
  .account-form-footer {
    bottom: calc(var(--footer-height) + env(safe-area-inset-bottom) + 5px);
  }
  .account-form-footer .secondary-button,
  .account-form-footer .account-save-button {
    flex: 1;
    min-width: 0;
  }
  .account-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .account-page-toolbar .primary-button {
    width: 100%;
  }
  .account-record-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .account-record-actions {
    grid-column: 2;
    justify-content: flex-end;
  }
  .account-overview-hero {
    gap: 13px;
    padding: 16px;
  }
  .account-avatar-wrap,
  .account-avatar-wrap img,
  .account-avatar-placeholder {
    width: 68px;
    height: 68px;
  }
  .account-membership-summary > header,
  .membership-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .account-membership-summary > header .text-action {
    align-self: flex-start;
  }
  .account-membership-grid,
  .account-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .membership-current-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .membership-tabs {
    grid-template-columns: 1fr;
  }
  .membership-tabs button {
    justify-content: space-between;
    padding: 0 13px;
  }
}
@media (max-width: 400px) {
  .account-overview-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .account-member-meta {
    justify-content: center;
  }
  .account-membership-grid,
  .account-stat-grid,
  .membership-current-grid {
    grid-template-columns: 1fr;
  }
  .account-form-footer {
    flex-direction: column-reverse;
  }
  .membership-history-list article {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .membership-history-value {
    grid-column: 2;
    justify-items: start;
  }
}

/* Safe Check-In full layout replacement v1.1.189 */
.safe-checkin-page-v2 {
  width: min(100%, 880px);
  padding: 27px;
  border: 1px solid #e2e6ec;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(14, 26, 43, .08);
}
.checkin-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(210px, .72fr);
  align-items: center;
  min-height: 185px;
  gap: 22px;
}
.checkin-intro-copy h1 {
  margin-bottom: 11px;
  color: #0a1b36;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.checkin-intro-copy p {
  max-width: 520px;
  color: #536078;
  font-size: .96rem;
  line-height: 1.48;
}
.checkin-illustration {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 50%, rgba(20, 90, 242, .16), transparent 58%);
}
.checkin-shield {
  position: absolute;
  z-index: 3;
  top: 36px;
  left: 50%;
  display: grid;
  width: 104px;
  height: 114px;
  place-items: center;
  border-radius: 42% 42% 48% 48%;
  color: #fff;
  background: linear-gradient(150deg, #4a8cff 0%, #145af2 55%, #0c3ebc 100%);
  box-shadow: 0 18px 34px rgba(20, 90, 242, .25), inset 0 0 0 5px rgba(255,255,255,.12);
  transform: translateX(-50%);
}
.checkin-shield svg { width: 72px; height: 72px; stroke-width: 1.55; }
.checkin-shield-confirm {
  position: absolute;
  z-index: 4;
  right: calc(50% - 79px);
  bottom: 25px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #19a84b;
  box-shadow: 0 8px 20px rgba(25,168,75,.28);
}
.checkin-cloud {
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 17px;
  border-radius: 999px;
  background: #e5efff;
}
.checkin-cloud::before,
.checkin-cloud::after {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  content: "";
}
.checkin-cloud::before { left: 8px; width: 24px; height: 24px; }
.checkin-cloud::after { right: 5px; width: 18px; height: 18px; }
.checkin-cloud--one { top: 38px; left: 6%; }
.checkin-cloud--two { top: 55px; right: 5%; transform: scale(.82); }
.checkin-leaf {
  position: absolute;
  z-index: 2;
  bottom: 27px;
  width: 22px;
  height: 48px;
  border-radius: 80% 10% 80% 10%;
  background: #21ad56;
  transform-origin: bottom center;
}
.checkin-leaf--one { left: 14%; transform: rotate(-28deg); }
.checkin-leaf--two { left: 20%; bottom: 22px; height: 36px; transform: rotate(26deg); }
.checkin-section { margin-top: 24px; }
.checkin-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 10px;
  gap: 14px;
}
.checkin-section-heading > div { display: grid; gap: 2px; }
.checkin-section-heading span {
  color: #34415a;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .045em;
}
.checkin-section-heading span em {
  color: #7a8496;
  font-size: .72rem;
  font-style: normal;
  font-weight: 620;
}
.checkin-section-heading small {
  color: #8a93a3;
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: 0;
}
.checkin-section-heading--action button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  color: #145af2;
  background: transparent;
  font-size: .76rem;
  font-weight: 720;
  gap: 5px;
}
.checkin-section-heading--action button.working svg { animation: checkin-spin .75s linear infinite; }
.checkin-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.checkin-status-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 148px;
  padding: 18px 14px 15px;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 20px;
  color: #101b2d;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  gap: 4px;
}
.checkin-status-card:active { transform: scale(.98); }
.checkin-status-card.selected { box-shadow: 0 0 0 3px rgba(20,90,242,.13), 0 12px 24px rgba(26, 44, 70, .08); }
.checkin-status-card--safe { border-color: #d7efdf; background: linear-gradient(140deg, #f3fff6, #e7f8ec); }
.checkin-status-card--safe.selected { border-color: #78cb93; }
.checkin-status-card--late { border-color: #f6e4bd; background: linear-gradient(140deg, #fffaf0, #fff1d6); }
.checkin-status-card--late.selected { border-color: #e6ae3e; }
.checkin-status-card--help { border-color: #f5d5d8; background: linear-gradient(140deg, #fff8f8, #fdebed); }
.checkin-status-card strong { margin-top: 4px; font-size: .91rem; font-weight: 730; line-height: 1.16; }
.checkin-status-card small { color: #526078; font-size: .69rem; line-height: 1.28; }
.checkin-status-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
}
.checkin-status-card--safe .checkin-status-icon { color: #18a64b; background: rgba(255,255,255,.62); }
.checkin-status-card--late .checkin-status-icon { color: #e39400; background: rgba(255,255,255,.62); }
.checkin-status-card--help .checkin-status-icon { color: #e73038; background: rgba(255,255,255,.62); }
.checkin-status-chevron {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  color: #364156;
  transform: translateY(-50%);
}
.checkin-contact-card,
.checkin-location-card,
.checkin-message-control {
  overflow: hidden;
  border: 1px solid #dce2e9;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(25, 42, 65, .055);
}
.checkin-contact-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 72px;
  margin: 0 18px;
  border-bottom: 1px solid #edf0f3;
  cursor: pointer;
  gap: 12px;
}
.checkin-contact-row:last-child { border-bottom: 0; }
.checkin-contact-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #334b6e, #101b2c);
  box-shadow: 0 0 0 1px #dce1e8;
  font-size: .71rem;
  font-weight: 760;
}
.checkin-contact-copy { display: grid; min-width: 0; gap: 3px; }
.checkin-contact-copy strong {
  overflow: hidden;
  color: #141c2a;
  font-size: .86rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkin-contact-copy small {
  overflow: hidden;
  color: #5d6879;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkin-checkbox { position: relative; display: grid; width: 26px; height: 26px; place-items: center; }
.checkin-checkbox input {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.checkin-checkbox i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #d1d7df;
  border-radius: 6px;
  color: transparent;
  background: #fff;
  pointer-events: none;
}
.checkin-checkbox input:checked + i {
  color: #fff;
  border-color: #145af2;
  background: #145af2;
  box-shadow: 0 4px 12px rgba(20,90,242,.22);
}
.checkin-empty-contacts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
  gap: 13px;
}
.checkin-empty-contacts > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #145af2;
  background: #edf3ff;
}
.checkin-empty-contacts strong { display: block; margin-bottom: 3px; color: #172035; font-size: .84rem; }
.checkin-empty-contacts p { font-size: .71rem; }
.checkin-empty-contacts button {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid #cfd7e3;
  border-radius: 10px;
  color: #145af2;
  background: #fff;
  font-size: .7rem;
  font-weight: 700;
}
.checkin-empty-contacts--error > span { color: var(--red); background: var(--red-soft); }
.checkin-loading-row {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  color: #6c7686;
  font-size: .78rem;
  gap: 9px;
}
.checkin-location-card {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
  min-height: 145px;
}
.checkin-mini-map {
  position: relative;
  min-height: 145px;
  overflow: hidden;
  background-color: #edf1f5;
  background-image:
    linear-gradient(28deg, transparent 42%, rgba(255,255,255,.95) 43%, rgba(255,255,255,.95) 49%, transparent 50%),
    linear-gradient(118deg, transparent 39%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.9) 46%, transparent 47%),
    linear-gradient(90deg, rgba(207,214,223,.55) 1px, transparent 1px),
    linear-gradient(rgba(207,214,223,.55) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}
.checkin-mini-map .leaflet-container { font: inherit; }
.checkin-mini-map .leaflet-pane { z-index: 1; }
.checkin-mini-map .leaflet-overlay-pane { z-index: 2; }
.checkin-mini-map.map-ready .checkin-map-placeholder-pin { opacity: 0; }
.checkin-map-placeholder-pin {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #145af2;
  box-shadow: 0 0 0 14px rgba(20,90,242,.14), 0 5px 12px rgba(20,90,242,.2);
  transform: translate(-50%, -50%);
  transition: opacity .2s ease;
}
.checkin-location-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  padding: 18px 20px;
  gap: 12px;
}
.checkin-location-pin { color: #16a34a; }
.checkin-location-copy strong {
  display: block;
  margin-bottom: 5px;
  color: #1b8c42;
  font-size: .86rem;
  font-weight: 740;
}
.checkin-location-copy p {
  margin-bottom: 7px;
  color: #566176;
  font-size: .75rem;
  word-break: break-word;
}
.checkin-location-copy small { color: #8a93a3; font-size: .7rem; }
.checkin-location-card:not(.location-ready) .checkin-location-pin,
.checkin-location-card:not(.location-ready) .checkin-location-copy strong { color: #667184; }
.checkin-location-card.locating .checkin-map-placeholder-pin { animation: checkin-pulse 1.2s ease-in-out infinite; }
.checkin-message-control { position: relative; display: block; min-height: 92px; }
.checkin-message-control textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 16px 68px 22px 17px;
  border: 0;
  outline: 0;
  color: #152037;
  background: #fff;
  font-size: .83rem;
  line-height: 1.42;
  resize: vertical;
}
.checkin-message-control textarea::placeholder { color: #a0a8b5; }
.checkin-message-control > small {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: #8b94a4;
  font-size: .68rem;
}
.checkin-send-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #173bbb, #164ee2 50%, #173bbb);
  box-shadow: 0 13px 27px rgba(20,78,226,.25);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: .01em;
  gap: 13px;
}
.checkin-send-button > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.checkin-send-button:disabled { box-shadow: none; }
.checkin-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  color: #647087;
  font-size: .75rem;
  gap: 7px;
}
.checkin-button-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: checkin-spin .75s linear infinite;
}
@keyframes checkin-spin { to { transform: rotate(360deg); } }
@keyframes checkin-pulse {
  0%, 100% { box-shadow: 0 0 0 9px rgba(20,90,242,.11), 0 5px 12px rgba(20,90,242,.2); }
  50% { box-shadow: 0 0 0 18px rgba(20,90,242,.03), 0 5px 12px rgba(20,90,242,.2); }
}
@media (max-width: 680px) {
  .safe-checkin-page-v2 {
    width: auto;
    max-width: none;
    margin: -14px -12px -22px;
    padding: 20px 16px 31px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .checkin-intro {
    grid-template-columns: minmax(0, 1.35fr) minmax(126px, .65fr);
    min-height: 155px;
    gap: 8px;
  }
  .checkin-intro-copy h1 { font-size: clamp(1.78rem, 8vw, 2.35rem); }
  .checkin-intro-copy p { font-size: .78rem; }
  .checkin-illustration { min-height: 150px; }
  .checkin-shield { top: 33px; width: 82px; height: 90px; }
  .checkin-shield svg { width: 57px; height: 57px; }
  .checkin-shield-confirm { right: calc(50% - 64px); bottom: 22px; width: 35px; height: 35px; }
  .checkin-cloud--one { left: 0; }
  .checkin-cloud--two { right: -8px; }
  .checkin-leaf--one { left: 7%; }
  .checkin-leaf--two { left: 15%; }
  .checkin-section { margin-top: 21px; }
  .checkin-status-grid { gap: 8px; }
  .checkin-status-card { min-height: 131px; padding: 13px 8px 11px; border-radius: 17px; }
  .checkin-status-icon { width: 39px; height: 39px; }
  .checkin-status-icon svg { width: 27px; height: 27px; }
  .checkin-status-card strong { font-size: .76rem; }
  .checkin-status-card small { max-width: 80px; font-size: .59rem; }
  .checkin-status-chevron { right: 3px; }
  .checkin-contact-row { min-height: 68px; margin: 0 13px; grid-template-columns: 42px minmax(0, 1fr) 27px; gap: 10px; }
  .checkin-contact-avatar { width: 39px; height: 39px; }
  .checkin-contact-copy strong { font-size: .8rem; }
  .checkin-contact-copy small { font-size: .66rem; }
  .checkin-location-card { grid-template-columns: minmax(125px, .8fr) minmax(0, 1.2fr); min-height: 132px; }
  .checkin-mini-map { min-height: 132px; }
  .checkin-location-copy { padding: 14px 12px; gap: 8px; }
  .checkin-location-copy strong { font-size: .75rem; }
  .checkin-location-copy p { font-size: .65rem; }
  .checkin-location-copy small { font-size: .61rem; }
  .checkin-section-heading small { font-size: .62rem; }
  .checkin-section-heading--action button { font-size: .7rem; }
  .checkin-send-button { min-height: 54px; font-size: .9rem; }
}
@media (max-width: 380px) {
  .safe-checkin-page-v2 { padding-right: 13px; padding-left: 13px; }
  .checkin-intro { grid-template-columns: minmax(0, 1.45fr) minmax(104px, .55fr); }
  .checkin-intro-copy h1 { font-size: 1.72rem; }
  .checkin-illustration { transform: scale(.9); transform-origin: center right; }
  .checkin-status-card { min-height: 124px; padding-right: 5px; padding-left: 5px; }
  .checkin-status-card strong { font-size: .7rem; }
  .checkin-status-card small { font-size: .55rem; }
  .checkin-status-chevron { display: none; }
  .checkin-location-card { grid-template-columns: 118px minmax(0, 1fr); }
  .checkin-location-copy { padding-right: 9px; padding-left: 9px; }
}

/* About TrackSOS full layout v1.1.191 */
.about-tracksos-page {
  max-width: 900px;
  padding-bottom: 10px;
}
.about-brand-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .78fr);
  align-items: center;
  min-height: 230px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e0e4e9;
  border-radius: 24px;
  background:
    radial-gradient(circle at 79% 45%, rgba(239, 27, 36, .12), transparent 31%),
    linear-gradient(135deg, #fff 0%, #fbfcfd 58%, #f4f6f8 100%);
  box-shadow: 0 12px 34px rgba(7, 13, 20, .075);
}
.about-brand-hero::before {
  position: absolute;
  right: -45px;
  top: -50px;
  width: 430px;
  height: 300px;
  opacity: .55;
  background-image:
    radial-gradient(circle, rgba(45, 57, 71, .16) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
  content: "";
}
.about-brand-copy {
  position: relative;
  z-index: 2;
  padding: 32px 34px;
}
.about-brand-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.15rem);
}
.about-brand-copy h1 em {
  color: var(--red);
  font-style: normal;
}
.about-brand-copy p {
  max-width: 390px;
  color: #4c5561;
  font-size: 1.02rem;
}
.about-brand-visual {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 230px;
  place-items: center;
}
.about-brand-visual img {
  position: relative;
  z-index: 4;
  width: min(56%, 175px);
  height: auto;
  filter: drop-shadow(0 17px 24px rgba(7, 15, 24, .19));
}
.about-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 245px;
  height: 86px;
  border: 2px solid rgba(239, 27, 36, .34);
  border-right-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
}
.about-orbit-two {
  width: 205px;
  height: 124px;
  border-color: rgba(14, 27, 42, .12);
  border-top-color: transparent;
  transform: translate(-50%, -50%) rotate(19deg);
}
.about-map-dot {
  position: absolute;
  z-index: 3;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 4px 10px rgba(212, 12, 24, .3);
}
.about-map-dot::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(239, 27, 36, .28);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}
.dot-one { left: 17%; top: 48%; }
.dot-two { right: 15%; top: 37%; }
.dot-three { right: 22%; bottom: 24%; }
.about-story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(270px, .95fr);
  gap: 24px;
  margin-bottom: 26px;
  padding: 26px;
  border: 1px solid #e0e4e9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(8, 15, 24, .07);
}
.about-story-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-right: 22px;
  border-right: 1px solid #e5e8ec;
}
.about-story-copy p {
  color: #222a34;
  font-size: .94rem;
  line-height: 1.58;
}
.about-story-copy p strong { font-weight: 720; }
.about-sa-badge {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 1px 11px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #dfe4e9;
  border-radius: 13px;
  background: #f8fafb;
}
.about-sa-badge > span {
  grid-row: 1 / 3;
  font-size: 1.9rem;
}
.about-sa-badge b { font-size: .8rem; }
.about-sa-badge small { color: #6d747e; font-size: .69rem; }
.about-promise-list { display: grid; align-content: center; }
.about-promise-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 74px;
  padding: 10px 4px;
  border-bottom: 1px solid #e7eaee;
}
.about-promise-list article:last-child { border-bottom: 0; }
.about-promise-list article > span {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--red);
}
.about-promise-list article > div { display: grid; gap: 3px; }
.about-promise-list strong { font-size: .89rem; }
.about-promise-list small { color: #505964; font-size: .73rem; line-height: 1.4; }
.about-section { margin-bottom: 25px; }
.about-section > h2 {
  margin: 0 0 11px 5px;
  font-size: 1.18rem;
}
.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.about-feature-card {
  display: grid;
  min-height: 178px;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 17px 12px;
  border: 1px solid #e0e4e9;
  border-radius: 17px;
  color: #10151c;
  background: #fff;
  box-shadow: 0 7px 20px rgba(8, 15, 24, .05);
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.about-feature-card:hover,
.about-feature-card:focus-visible {
  border-color: #edc4c7;
  box-shadow: 0 11px 26px rgba(190, 14, 24, .1);
  transform: translateY(-2px);
}
.about-feature-icon {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  margin-bottom: 2px;
  border-radius: 50%;
  color: #cf111b;
  background: radial-gradient(circle at 35% 28%, #fff, #ffe7e9 72%);
  box-shadow: inset 0 0 0 1px rgba(239, 27, 36, .08);
}
.about-feature-card strong { font-size: .86rem; }
.about-feature-card small {
  color: #505965;
  font-size: .68rem;
  line-height: 1.42;
}
.about-benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e0e4e9;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(8, 15, 24, .05);
}
.about-benefit-strip article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 10px 15px;
  border-right: 1px solid #e5e8ec;
}
.about-benefit-strip article:last-child { border-right: 0; }
.about-benefit-strip span { color: var(--red); }
.about-benefit-strip strong { font-size: .72rem; line-height: 1.25; }
.about-details-card {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(8, 15, 24, .065);
}
.about-detail-row {
  display: grid;
  grid-template-columns: 43px minmax(150px, .85fr) minmax(170px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 67px;
  padding: 9px 14px;
  border-bottom: 1px solid #e8ebef;
}
.about-detail-row:last-child { border-bottom: 0; }
.about-detail-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: #202a36;
  background: #f1f3f5;
}
.about-detail-label { display: grid; gap: 2px; }
.about-detail-label strong { font-size: .8rem; }
.about-detail-label small { color: #858b94; font-size: .62rem; line-height: 1.25; }
.about-detail-value {
  color: #55606e;
  font-size: .75rem;
  text-align: left;
  word-break: break-word;
}
.about-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #f0d0d2;
  border-radius: 10px;
  color: #c6101a;
  background: #fff5f5;
  font-size: .68rem;
  font-weight: 680;
}
.about-detail-spacer { width: 36px; }
.about-page-signoff {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 6px 12px 18px;
  text-align: center;
}
.about-page-signoff img { width: 128px; height: auto; margin-bottom: 3px; }
.about-page-signoff p { color: #5e6671; font-size: .72rem; }
.about-page-signoff strong { color: var(--red); font-size: .74rem; font-weight: 650; }
.about-modal-backdrop {
  position: fixed;
  z-index: 650;
  inset: 0;
  background: rgba(3, 10, 17, .42);
  opacity: 0;
  transition: opacity .2s ease;
}
.about-modal-backdrop.open { opacity: 1; }
.about-whats-new {
  position: fixed;
  z-index: 660;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 30px), 520px);
  max-height: min(78dvh, 620px);
  padding: 22px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translate(-50%, -46%) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
}
.about-whats-new.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.about-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.about-modal-header h2 { margin: 0; font-size: 1.5rem; }
.about-modal-header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  color: #3b424c;
  background: #f7f8f9;
  font-size: 1.45rem;
  line-height: 1;
}
.about-release-list { display: grid; gap: 9px; margin-bottom: 17px; }
.about-release-list article {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  background: #fafbfc;
}
.about-release-list article > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--red);
  background: var(--red-soft);
}
.about-release-list article > div { display: grid; gap: 4px; }
.about-release-list strong { font-size: .82rem; }
.about-release-list p { font-size: .7rem; line-height: 1.4; }
@media (max-width: 760px) {
  .about-brand-hero { grid-template-columns: minmax(0, 1.1fr) minmax(190px, .9fr); min-height: 205px; }
  .about-brand-copy { padding: 25px 24px; }
  .about-brand-visual { min-height: 205px; }
  .about-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-benefit-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-benefit-strip article:nth-child(2) { border-right: 0; }
  .about-benefit-strip article:nth-child(-n+2) { border-bottom: 1px solid #e5e8ec; }
  .about-detail-row { grid-template-columns: 40px minmax(125px, .85fr) minmax(140px, 1fr) auto; }
}
@media (max-width: 560px) {
  .about-brand-hero { grid-template-columns: minmax(0, 1fr) 128px; min-height: 172px; border-radius: 20px; }
  .about-brand-copy { padding: 22px 8px 22px 20px; }
  .about-brand-copy .page-kicker { font-size: .55rem; letter-spacing: .11em; }
  .about-brand-copy h1 { margin-bottom: 8px; font-size: 1.7rem; }
  .about-brand-copy p { font-size: .75rem; line-height: 1.45; }
  .about-brand-visual { min-height: 172px; }
  .about-brand-visual img { width: 82px; }
  .about-orbit { width: 125px; height: 48px; }
  .about-orbit-two { width: 105px; height: 72px; }
  .about-map-dot { width: 8px; height: 8px; border-width: 2px; }
  .about-map-dot::after { width: 15px; height: 15px; }
  .about-story-card { grid-template-columns: 1fr; gap: 14px; padding: 17px; border-radius: 19px; }
  .about-story-copy { padding: 0 0 15px; border-right: 0; border-bottom: 1px solid #e5e8ec; }
  .about-story-copy p { font-size: .79rem; }
  .about-sa-badge { grid-template-columns: 38px 1fr; }
  .about-sa-badge > span { font-size: 1.55rem; }
  .about-promise-list article { min-height: 66px; }
  .about-feature-card { min-height: 160px; padding: 14px 9px; }
  .about-feature-icon { width: 52px; height: 52px; }
  .about-feature-card strong { font-size: .79rem; }
  .about-feature-card small { font-size: .62rem; }
  .about-benefit-strip article { grid-template-columns: 30px minmax(0, 1fr); min-height: 64px; padding: 9px 10px; }
  .about-benefit-strip strong { font-size: .64rem; }
  .about-detail-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 72px;
    padding: 9px 10px;
  }
  .about-detail-value {
    grid-column: 2;
    grid-row: 2;
    font-size: .68rem;
  }
  .about-detail-action {
    grid-column: 3;
    grid-row: 1 / 3;
    min-width: 38px;
    padding: 0 8px;
  }
  .about-detail-action span { display: none; }
  .about-detail-spacer { grid-column: 3; grid-row: 1 / 3; width: 28px; }
  .about-page-signoff img { width: 110px; }
  .about-whats-new { padding: 18px; border-radius: 20px; }
}

/* Nearby Help approved full layout v1.1.192 */
.nearby-help-page {
  max-width: 920px;
  padding-bottom: 26px;
}
.nearby-page-intro {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.nearby-page-pin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #d8121c;
  background: linear-gradient(145deg, #fff8f8, #ffe7e9);
  box-shadow: 0 9px 24px rgba(205, 15, 26, .12);
}
.nearby-page-intro h1 {
  margin: 1px 0 4px;
  font-size: clamp(1.72rem, 4vw, 2.2rem);
}
.nearby-page-intro p { max-width: 620px; }
.nearby-search-shell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 46px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 16px;
  padding: 0 6px 0 17px;
  border: 1px solid #dfe3e8;
  border-radius: 17px;
  color: #4c596a;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 15, 24, .07);
}
.nearby-search-shell > span { display: grid; place-items: center; }
.nearby-search-shell input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: #111923;
  background: transparent;
  font-size: .92rem;
}
.nearby-search-shell input::placeholder { color: #8a92a0; }
.nearby-search-shell button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  border-left: 1px solid #e2e6ea;
  color: #253244;
  background: transparent;
}
.nearby-category-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 2px 0 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nearby-category-rail::-webkit-scrollbar { display: none; }
.nearby-category-button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 76px;
  padding: 0;
  border: 0;
  color: #242c37;
  background: transparent;
}
.nearby-category-button small {
  font-size: .68rem;
  font-weight: 620;
  white-space: nowrap;
}
.nearby-category-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #e1e5e9;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 18px rgba(8, 15, 24, .065);
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}
.nearby-category-button.active .nearby-category-icon {
  color: #fff;
  border-color: #d80f1a;
  background: linear-gradient(145deg, #f32833, #bd0710);
  box-shadow: 0 10px 25px rgba(207, 12, 24, .24);
  transform: translateY(-2px);
}
.nearby-category-button.active small { color: #c00c16; font-weight: 740; }
.nearby-tone-all { color: #cf101b; }
.nearby-tone-police { color: #195ed9; }
.nearby-tone-hospitals { color: #df1721; }
.nearby-tone-clinics { color: #1da965; }
.nearby-tone-doctors { color: #118e91; }
.nearby-tone-pharmacies { color: #25a85a; }
.nearby-tone-petrol { color: #ef8400; }
.nearby-tone-schools { color: #7543ca; }
.nearby-tone-fire { color: #e14a19; }
.nearby-tone-ambulance { color: #d5101a; }
.nearby-tone-towing { color: #4b6a85; }
.nearby-tone-shopping { color: #8735c9; }
.nearby-tone-repairs { color: #6757bd; }
.nearby-tone-more { color: #7740bf; }
.nearby-map-shell {
  position: relative;
  height: clamp(330px, 48vw, 500px);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #dce1e6;
  border-radius: 20px;
  background: #dbe5ec;
  box-shadow: 0 11px 30px rgba(8, 15, 24, .1);
}
.nearby-help-map { width: 100%; height: 100%; }
.nearby-help-map .leaflet-control-attribution {
  max-width: 68%;
  font-size: 8px;
}
.nearby-map-tools {
  position: absolute;
  z-index: 520;
  right: 13px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(21, 29, 40, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(8, 15, 24, .16);
}
.nearby-map-tools-top { top: 13px; }
.nearby-map-tools button {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e3e7eb;
  color: #182333;
  background: transparent;
  font-size: 1.55rem;
  line-height: 1;
}
.nearby-map-tools button:last-child { border-bottom: 0; }
.nearby-map-tools button.active { color: #fff; background: #101c2b; }
.nearby-map-locate {
  position: absolute;
  z-index: 520;
  left: 13px;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid rgba(21, 29, 40, .1);
  border-radius: 13px;
  color: #172231;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(8, 15, 24, .16);
  font-size: .72rem;
  font-weight: 700;
}
.nearby-map-status {
  position: absolute;
  z-index: 525;
  left: 50%;
  top: 13px;
  max-width: calc(100% - 150px);
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 17, 27, .82);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .17);
  font-size: .65rem;
  font-weight: 620;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity .2s ease;
}
.nearby-map-status.error { background: rgba(171, 10, 20, .92); }
.nearby-map-status.hidden { opacity: 0; pointer-events: none; }
.nearby-map-div-icon,
.nearby-current-div-icon { border: 0; background: transparent; }
.nearby-map-marker {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 8px;
  color: currentColor;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .27);
  transform: rotate(-45deg);
}
.nearby-map-marker svg { transform: rotate(45deg); }
.nearby-map-marker.nearby-tone-police { color: #fff; background: #1a5cda; }
.nearby-map-marker.nearby-tone-hospitals,
.nearby-map-marker.nearby-tone-ambulance,
.nearby-map-marker.nearby-tone-fire { color: #fff; background: #df1721; }
.nearby-map-marker.nearby-tone-clinics,
.nearby-map-marker.nearby-tone-doctors,
.nearby-map-marker.nearby-tone-pharmacies { color: #fff; background: #20a65c; }
.nearby-map-marker.nearby-tone-petrol { color: #fff; background: #f08200; }
.nearby-map-marker.nearby-tone-schools,
.nearby-map-marker.nearby-tone-shopping,
.nearby-map-marker.nearby-tone-repairs { color: #fff; background: #783cc0; }
.nearby-map-marker.nearby-tone-towing { color: #fff; background: #526d84; }
.nearby-current-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(32,102,235,.14);
  box-shadow: 0 0 0 9px rgba(32,102,235,.07);
}
.nearby-current-marker span {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2268eb;
  box-shadow: 0 4px 9px rgba(31,86,197,.38);
}
.nearby-results-section { margin-bottom: 20px; }
.nearby-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}
.nearby-results-heading h2 { margin-bottom: 3px; font-size: 1.2rem; }
.nearby-results-heading small { color: #818894; font-size: .68rem; }
.nearby-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6e7785;
  font-size: .7rem;
}
.nearby-sort-control select {
  height: 36px;
  padding: 0 26px 0 6px;
  border: 0;
  outline: 0;
  color: #46566f;
  background: transparent;
  font-size: .7rem;
  font-weight: 650;
}
.nearby-warning {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #f0d4a5;
  border-radius: 12px;
  color: #76500a;
  background: #fff8e9;
  font-size: .7rem;
  line-height: 1.45;
}
.nearby-place-list {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 8px 25px rgba(8, 15, 24, .065);
}
.nearby-place-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 12px 14px;
  border-bottom: 1px solid #e8ebee;
  transition: background .16s ease, box-shadow .16s ease;
}
.nearby-place-row:last-child { border-bottom: 0; }
.nearby-place-row.selected { background: #fff8f8; box-shadow: inset 3px 0 #d60f19; }
.nearby-place-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #111923;
  background: transparent;
  text-align: left;
}
.nearby-place-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(8, 15, 24, .07);
}
.nearby-place-copy { display: grid; min-width: 0; gap: 3px; }
.nearby-place-copy strong {
  overflow: hidden;
  color: #111923;
  font-size: .89rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nearby-place-copy small {
  overflow: hidden;
  color: #687384;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nearby-place-copy em {
  overflow: hidden;
  color: #218c4a;
  font-size: .65rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nearby-place-actions {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 7px;
}
.nearby-place-actions button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 59px;
  padding: 4px;
  border: 1px solid #e0e4e8;
  border-radius: 14px;
  color: #142033;
  background: #fff;
  font-size: .59rem;
  font-weight: 650;
}
.nearby-place-actions button:nth-child(2) { color: #c90e18; border-color: #f0ced1; }
.nearby-place-actions button:disabled { color: #aeb4bc; background: #f7f8f9; }
.nearby-view-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 49px;
  border: 1px solid #efcfd2;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  color: #c80d17;
  background: #fff8f8;
  box-shadow: 0 8px 25px rgba(8, 15, 24, .045);
  font-size: .75rem;
  font-weight: 720;
}
.nearby-loading-state,
.nearby-empty-state {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  min-height: 210px;
  padding: 28px;
  color: #66717e;
  text-align: center;
}
.nearby-loading-state strong,
.nearby-empty-state strong { color: #202a35; font-size: .88rem; }
.nearby-empty-state p { max-width: 360px; font-size: .72rem; }
.nearby-empty-state button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #ecc9cc;
  border-radius: 12px;
  color: #c30d17;
  background: #fff7f7;
  font-size: .7rem;
  font-weight: 700;
}
.nearby-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(193, 13, 23, .2);
  border-top-color: #c10d17;
  border-radius: 50%;
  animation: nearby-spin .8s linear infinite;
}
@keyframes nearby-spin { to { transform: rotate(360deg); } }
.nearby-sos-card {
  display: grid;
  grid-template-columns: 67px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #f0ced1;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9f9, #fff0f1);
  box-shadow: 0 8px 23px rgba(173, 11, 21, .07);
}
.nearby-sos-badge {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #f4222d, #b60710);
  box-shadow: 0 9px 22px rgba(199, 11, 23, .24);
  font-size: .9rem;
  font-weight: 800;
}
.nearby-sos-card > div { display: grid; gap: 4px; }
.nearby-sos-card strong { font-size: .95rem; }
.nearby-sos-card p { max-width: 500px; font-size: .72rem; line-height: 1.42; }
.nearby-sos-card > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 45px;
  padding: 0 15px;
  border: 1px solid #efc4c8;
  border-radius: 13px;
  color: #c50d17;
  background: #fff;
  font-size: .72rem;
  font-weight: 720;
}
.nearby-sheet-backdrop {
  position: fixed;
  z-index: 680;
  inset: 0;
  background: rgba(3, 10, 18, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.nearby-sheet-backdrop.open { opacity: 1; }
.nearby-filter-sheet,
.nearby-detail-sheet {
  position: fixed;
  z-index: 690;
  left: 50%;
  bottom: 0;
  width: min(100%, 720px);
  max-height: min(82dvh, 760px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 25px 25px 0 0;
  background: #fff;
  box-shadow: 0 -24px 65px rgba(0, 0, 0, .26);
  transform: translate(-50%, 105%);
  transition: transform .22s ease;
}
.nearby-filter-sheet.open,
.nearby-detail-sheet.open { transform: translate(-50%, 0); }
.nearby-filter-sheet > header,
.nearby-detail-sheet > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid #e7eaed;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
}
.nearby-filter-sheet > header h2,
.nearby-detail-sheet > header h2 { margin: 2px 0 0; font-size: 1.25rem; }
.nearby-filter-sheet > header > button,
.nearby-detail-sheet > header > button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  color: #4e5864;
  background: #f6f7f8;
  font-size: 1.45rem;
}
.nearby-filter-content { display: grid; gap: 22px; padding: 20px; }
.nearby-radius-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid #e0e4e8;
  border-radius: 14px;
  background: #f9fafb;
}
.nearby-radius-control span,
.nearby-filter-content legend { color: #202a35; font-size: .78rem; font-weight: 700; }
.nearby-radius-control select {
  height: 39px;
  padding: 0 10px;
  border: 1px solid #d9dee3;
  border-radius: 10px;
  color: #273342;
  background: #fff;
}
.nearby-filter-content fieldset { border: 0; }
.nearby-filter-content legend { margin-bottom: 11px; }
.nearby-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.nearby-filter-grid button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #e0e4e8;
  border-radius: 13px;
  color: #3c4653;
  background: #fff;
  font-size: .68rem;
  text-align: left;
}
.nearby-filter-grid button.active {
  color: #c70d17;
  border-color: #edc4c7;
  background: #fff5f6;
  box-shadow: inset 0 0 0 1px rgba(199, 13, 23, .04);
}
.nearby-filter-sheet > footer,
.nearby-detail-sheet > footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #e6e9ec;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(16px);
}
.nearby-detail-heading {
  display: grid;
  grid-template-columns: 51px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.nearby-detail-heading h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nearby-detail-body { padding: 19px 20px; }
.nearby-detail-list { display: grid; gap: 0; }
.nearby-detail-list > div {
  display: grid;
  grid-template-columns: minmax(100px, .4fr) minmax(0, 1fr);
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #e8ebee;
}
.nearby-detail-list dt { color: #78818c; font-size: .69rem; font-weight: 650; }
.nearby-detail-list dd { color: #202a35; font-size: .74rem; line-height: 1.45; }
.nearby-website-button {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 1px solid #dce1e6;
  border-radius: 13px;
  color: #1d5fba;
  background: #f4f8ff;
  font-size: .72rem;
  font-weight: 700;
}
.nearby-detail-sheet > footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid #e0e4e8;
  border-radius: 14px;
  color: #172331;
  background: #fff;
  font-size: .74rem;
  font-weight: 720;
}
.nearby-detail-sheet > footer button:last-child {
  color: #fff;
  border-color: #c60d17;
  background: linear-gradient(145deg, #ee1f2a, #bd0710);
}
@media (max-width: 760px) {
  .nearby-category-rail { grid-template-columns: repeat(7, 78px); }
  .nearby-place-actions { grid-template-columns: repeat(3, 53px); }
  .nearby-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nearby-help-page { padding-inline: 12px; }
  .nearby-page-intro { grid-template-columns: 47px minmax(0, 1fr); gap: 11px; margin-bottom: 14px; }
  .nearby-page-pin { width: 46px; height: 46px; border-radius: 15px; }
  .nearby-page-intro h1 { font-size: 1.55rem; }
  .nearby-page-intro p { font-size: .72rem; line-height: 1.42; }
  .nearby-search-shell { min-height: 52px; border-radius: 15px; }
  .nearby-search-shell input { height: 49px; font-size: .78rem; }
  .nearby-category-rail { margin-inline: -2px; gap: 4px; }
  .nearby-category-button { min-width: 72px; }
  .nearby-category-icon { width: 47px; height: 47px; }
  .nearby-category-button small { font-size: .61rem; }
  .nearby-map-shell { height: 360px; border-radius: 17px; }
  .nearby-map-status { top: 10px; max-width: calc(100% - 138px); font-size: .57rem; }
  .nearby-map-tools { right: 10px; top: 10px; }
  .nearby-map-tools button { width: 41px; height: 41px; }
  .nearby-map-locate { left: 10px; bottom: 10px; min-height: 40px; padding: 0 11px; }
  .nearby-results-heading { align-items: center; }
  .nearby-sort-control > span { display: none; }
  .nearby-place-row { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding: 12px; }
  .nearby-place-main { grid-template-columns: 48px minmax(0, 1fr); }
  .nearby-place-icon { width: 45px; height: 45px; }
  .nearby-place-copy strong { font-size: .81rem; }
  .nearby-place-copy small { font-size: .63rem; }
  .nearby-place-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nearby-place-actions button { min-height: 48px; display: flex; flex-direction: row; gap: 5px; font-size: .6rem; }
  .nearby-sos-card { grid-template-columns: 54px minmax(0, 1fr); gap: 11px; padding: 14px; }
  .nearby-sos-badge { width: 51px; height: 51px; font-size: .74rem; }
  .nearby-sos-card strong { font-size: .82rem; }
  .nearby-sos-card p { font-size: .64rem; }
  .nearby-sos-card > button { grid-column: 1 / -1; width: 100%; }
  .nearby-filter-sheet,
  .nearby-detail-sheet { max-height: 87dvh; border-radius: 21px 21px 0 0; }
  .nearby-filter-sheet > header,
  .nearby-detail-sheet > header { padding: 16px 15px 12px; }
  .nearby-filter-content,
  .nearby-detail-body { padding: 16px 15px; }
  .nearby-filter-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .nearby-filter-grid button { min-height: 48px; padding: 7px 8px; font-size: .61rem; }
  .nearby-filter-sheet > footer,
  .nearby-detail-sheet > footer { padding-inline: 15px; }
  .nearby-detail-list > div { grid-template-columns: 90px minmax(0, 1fr); }
}

/* Family Live Tracking v1.1.193 */
.family-live-page-v2 {
  --family-green: #18a64b;
  --family-green-dark: #117a37;
  --family-green-soft: #edf9f1;
  --family-blue: #1768dc;
  --family-orange: #f28a13;
  --family-teal: #099ca5;
  --family-purple: #7f43c8;
  --family-card-shadow: 0 12px 34px rgba(9, 25, 39, .08);
  display: grid;
  gap: 17px;
  max-width: 920px;
}
.family-live-page-v2 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.family-live-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 1px 0;
}
.family-live-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.family-live-title-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 1px solid #cdebd7;
  border-radius: 19px;
  color: var(--family-green);
  background: linear-gradient(145deg, #f7fff9, #e8f8ee);
  box-shadow: 0 10px 24px rgba(24, 166, 75, .12);
}
.family-live-title h1 {
  margin-bottom: 5px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}
.family-live-title p {
  max-width: 590px;
  font-size: .85rem;
}
.family-live-title .page-kicker {
  margin-bottom: 4px;
  color: var(--family-green-dark);
}
.family-invite-button,
.family-panel-heading > button,
.family-manage-zones {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #cfe8d7;
  border-radius: 14px;
  color: var(--family-green-dark);
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 54, 29, .07);
  font-size: .77rem;
  font-weight: 720;
}
.family-live-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe5e8;
  border-radius: 16px;
  background: #edf1f3;
}
.family-live-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #66717d;
  background: transparent;
  font-size: .79rem;
  font-weight: 720;
}
.family-live-tabs button.active {
  color: var(--family-green-dark);
  background: #fff;
  box-shadow: 0 5px 16px rgba(9, 22, 33, .09);
}
.family-tab-panel {
  display: grid;
  gap: 16px;
  animation: familyPanelIn .2s ease both;
}
.family-tab-panel[hidden] { display: none; }
@keyframes familyPanelIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.family-map-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto 46px;
  gap: 9px;
  align-items: center;
}
.family-map-toolbar select,
.family-map-toolbar button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe1e5;
  border-radius: 14px;
  color: #26323d;
  background: #fff;
  font-size: .75rem;
  font-weight: 680;
}
.family-map-toolbar select {
  padding: 0 38px 0 14px;
  outline: 0;
}
.family-map-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
}
.family-map-toolbar button.active {
  color: var(--family-green-dark);
  border-color: #bde0c8;
  background: var(--family-green-soft);
}
.family-map-card {
  position: relative;
  height: clamp(360px, 52vw, 520px);
  overflow: hidden;
  border: 1px solid #d7dde1;
  border-radius: 22px;
  background: #dfe8e1;
  box-shadow: var(--family-card-shadow);
}
.family-live-map {
  width: 100%;
  height: 100%;
  background: #dce6e0;
}
.family-live-map .leaflet-control-attribution {
  font-size: 8px;
  opacity: .72;
}
.family-map-status {
  position: absolute;
  z-index: 430;
  top: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  max-width: min(270px, calc(100% - 150px));
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(9, 25, 39, .12);
  backdrop-filter: blur(11px);
}
.family-map-status > i {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--family-green);
  box-shadow: 0 0 0 5px rgba(24,166,75,.12);
}
.family-map-status > div { display: grid; gap: 2px; }
.family-map-status strong { font-size: .72rem; }
.family-map-status span { color: #6e7882; font-size: .58rem; line-height: 1.35; }
.family-map-status-paused > i { background: #d89200; box-shadow: 0 0 0 5px rgba(216,146,0,.12); }
.family-map-status-loading > i { background: #1768dc; box-shadow: 0 0 0 5px rgba(23,104,220,.12); animation: familyPulse 1s infinite; }
.family-map-status-error > i { background: var(--red); box-shadow: 0 0 0 5px rgba(239,27,36,.12); }
@keyframes familyPulse { 50% { transform: scale(.7); opacity: .58; } }
.family-map-refresh {
  position: absolute;
  z-index: 430;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 13px;
  color: var(--family-green-dark);
  background: rgba(255,255,255,.95);
  box-shadow: 0 9px 24px rgba(9, 25, 39, .12);
  font-size: .69rem;
  font-weight: 720;
}
.family-map-controls {
  position: absolute;
  z-index: 430;
  top: 72px;
  right: 14px;
  display: grid;
  gap: 7px;
}
.family-map-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 13px;
  color: #1e2b37;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 22px rgba(9, 25, 39, .12);
  font-size: 1.35rem;
  font-weight: 500;
}
.family-my-location {
  position: absolute;
  z-index: 430;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 13px;
  color: #1e2b37;
  background: rgba(255,255,255,.95);
  box-shadow: 0 9px 24px rgba(9, 25, 39, .12);
  font-size: .68rem;
  font-weight: 720;
}
.family-leaflet-marker {
  border: 0;
  background: transparent;
}
.family-map-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: currentColor;
  box-shadow: 0 7px 17px rgba(10,28,42,.25);
}
.family-map-marker::after {
  position: absolute;
  z-index: 0;
  right: 2px;
  bottom: -5px;
  width: 11px;
  height: 11px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 2px;
  content: "";
  background: currentColor;
  transform: rotate(45deg);
}
.family-map-marker > span {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: currentColor;
  background: #fff;
  font-size: .65rem;
  font-weight: 820;
}
.family-map-marker > i {
  position: absolute;
  z-index: 2;
  right: -4px;
  bottom: 0;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--family-green);
}
.family-marker-recent > i { background: #d89200; }
.family-marker-stale > i { background: #8e949b; }
.family-marker-unavailable > i { background: #c2c7cc; }
.family-tone-blue { color: #1768dc; }
.family-tone-orange { color: #f28a13; }
.family-tone-teal { color: #099ca5; }
.family-tone-purple { color: #7f43c8; }
.family-tone-green { color: #18a64b; }
.family-tone-red { color: #e2242e; }
.family-members-section,
.family-access-list,
.family-zone-list {
  overflow: hidden;
  border: 1px solid #e0e5e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--family-card-shadow);
}
.family-section-heading,
.family-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.family-section-heading {
  padding: 17px 18px 12px;
}
.family-section-heading h2,
.family-panel-heading h2 { margin-bottom: 3px; }
.family-section-heading h2 span { color: #7c858e; font-size: .78rem; }
.family-section-heading p,
.family-panel-heading p { font-size: .69rem; }
.family-section-heading > small { color: #6f7983; font-size: .64rem; }
.family-member-list { border-top: 1px solid #edf0f2; }
.family-member-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 12px 17px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  text-align: left;
  background: #fff;
}
.family-member-row:last-child { border-bottom: 0; }
.family-member-row:hover { background: #fafcfa; }
.family-member-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, white);
  font-size: .73rem;
  font-weight: 800;
}
.family-presence {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--family-green);
}
.family-presence-recent { background: #d89200; }
.family-presence-stale { background: #8e949b; }
.family-presence-unavailable { background: #c2c7cc; }
.family-member-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.family-member-copy strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #101a24;
  font-size: .84rem;
}
.family-member-copy strong em {
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff;
  background: #1768dc;
  font-size: .5rem;
  font-style: normal;
  letter-spacing: .04em;
}
.family-member-copy small {
  overflow: hidden;
  color: #586673;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.family-member-copy > span { color: #7d8790; font-size: .59rem; }
.family-member-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #69747e;
}
.family-member-time small { font-size: .62rem; white-space: nowrap; }
.family-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.family-quick-actions > button {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 84px;
  padding: 12px;
  border: 1px solid #e0e5e8;
  border-radius: 17px;
  color: #24313d;
  text-align: left;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 25, 39, .06);
}
.family-quick-actions > button > div { display: grid; gap: 3px; }
.family-quick-actions strong { font-size: .72rem; }
.family-quick-actions small { color: #77818b; font-size: .58rem; line-height: 1.35; }
.family-action-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
}
.family-action-safe { color: var(--family-green); background: #ebf9f0; }
.family-action-history { color: #1768dc; background: #edf4ff; }
.family-action-alerts { color: #7f43c8; background: #f3edfb; }
.family-safe-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 19px;
  border: 1px solid #cfebd8;
  border-radius: 18px;
  background: linear-gradient(100deg, #f5fcf7, #eaf8ef);
}
.family-safe-banner strong { color: var(--family-green-dark); font-size: .95rem; }
.family-safe-banner p { margin-top: 4px; font-size: .68rem; }
.family-safe-banner button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #22b956, #13853c);
  box-shadow: 0 10px 22px rgba(19,133,60,.22);
  font-size: .73rem;
  font-weight: 740;
  white-space: nowrap;
}
.family-panel-heading {
  padding: 18px;
  border: 1px solid #e0e5e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 25, 39, .06);
}
.family-panel-heading .page-kicker { color: var(--family-green-dark); }
.family-access-list,
.family-zone-list { box-shadow: var(--family-card-shadow); }
.family-access-row,
.family-zone-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f2;
}
.family-access-row:last-child,
.family-zone-row:last-child { border-bottom: 0; }
.family-access-row { grid-template-columns: 54px minmax(0, 1fr) auto; }
.family-access-row > div,
.family-zone-row > div { display: grid; gap: 4px; min-width: 0; }
.family-access-row strong,
.family-zone-row strong { font-size: .79rem; }
.family-access-row small,
.family-zone-row small { color: #67727c; font-size: .63rem; }
.family-access-row > div > span { color: #8a9299; font-size: .58rem; }
.family-access-row > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #dde2e5;
  border-radius: 12px;
  color: #32414d;
  background: #fff;
  font-size: .61rem;
  font-weight: 700;
}
.family-zone-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
.family-zone-row > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--family-green);
  background: var(--family-green-soft);
}
.family-zone-row em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #7b848c;
  background: #eef1f3;
  font-size: .56rem;
  font-style: normal;
  font-weight: 700;
}
.family-zone-row em.enabled { color: var(--family-green-dark); background: var(--family-green-soft); }
.family-manage-zones { width: 100%; }
.family-empty-card,
.family-error-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 20px;
  color: #5e6973;
  background: #fff;
}
.family-empty-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--family-green);
  background: var(--family-green-soft);
}
.family-empty-card strong { display: block; margin-bottom: 3px; color: #25313b; font-size: .78rem; }
.family-empty-card p { font-size: .64rem; }
.family-error-card > span { color: var(--red); background: var(--red-soft); }
.family-loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 100px;
  color: #78828b;
  font-size: .69rem;
}
.family-loading-row > span,
.family-button-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d9e3dd;
  border-top-color: var(--family-green);
  border-radius: 50%;
  animation: familySpin .8s linear infinite;
}
@keyframes familySpin { to { transform: rotate(360deg); } }
.family-modal-backdrop {
  position: fixed;
  z-index: 460;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 20px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: rgba(2, 10, 16, .58);
  opacity: 0;
  transition: opacity .18s ease;
}
.family-modal-backdrop[hidden] { display: none; }
.family-modal-backdrop.open { opacity: 1; }
.family-modal {
  position: relative;
  width: min(100%, 620px);
  max-height: min(88dvh, 820px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  transform: translateY(18px);
  transition: transform .2s ease;
}
.family-modal-backdrop.open .family-modal { transform: translateY(0); }
.family-modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e1e5e8;
  border-radius: 12px;
  color: #4b5863;
  background: #fff;
  font-size: 1.3rem;
}
.family-modal h2 { margin: 2px 44px 6px 0; }
.family-modal > div > p,
.family-modal form > p { margin-bottom: 18px; font-size: .7rem; }
.family-member-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 19px;
}
.family-member-modal-head .family-member-avatar { flex: 0 0 auto; width: 58px; height: 58px; }
.family-member-modal-head p { font-size: .66rem; }
.family-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.family-detail-grid > div {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid #e4e8ea;
  border-radius: 14px;
  background: #f8faf9;
}
.family-detail-grid span { color: #7b858e; font-size: .57rem; text-transform: uppercase; letter-spacing: .06em; }
.family-detail-grid strong { font-size: .69rem; line-height: 1.38; }
.family-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}
.family-modal-actions button,
.family-modal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 0 15px;
  border: 1px solid #dbe1e4;
  border-radius: 13px;
  color: #25323d;
  background: #fff;
  font-size: .69rem;
  font-weight: 720;
}
.family-modal-primary {
  color: #fff;
  border-color: var(--family-green-dark);
  background: linear-gradient(145deg, #23b858, #12843b);
}
.family-modal-primary.full { width: 100%; margin-top: 15px; }
.family-invite-list {
  display: grid;
  gap: 7px;
  max-height: 250px;
  margin-bottom: 15px;
  overflow: auto;
}
.family-invite-contact {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 11px;
  align-items: center;
  min-height: 67px;
  padding: 9px 11px;
  border: 1px solid #e1e6e8;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.family-invite-contact:has(input:checked) { border-color: #8ed0a4; background: #f3fbf6; }
.family-invite-contact input { position: absolute; opacity: 0; }
.family-invite-contact .family-member-avatar { width: 43px; height: 43px; border-width: 2px; }
.family-invite-contact > span:nth-of-type(2) { display: grid; gap: 3px; }
.family-invite-contact strong { font-size: .72rem; }
.family-invite-contact small { color: #78828b; font-size: .59rem; }
.family-invite-contact > i { color: var(--family-green); opacity: 0; }
.family-invite-contact:has(input:checked) > i { opacity: 1; }
.family-modal-field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: #56626d;
  font-size: .64rem;
  font-weight: 700;
}
.family-modal-field select {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid #dbe1e4;
  border-radius: 13px;
  outline: 0;
  color: #1f2c37;
  background: #fff;
}
.family-modal-toggles {
  overflow: hidden;
  border: 1px solid #e0e5e8;
  border-radius: 15px;
}
.family-modal-toggles label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 65px;
  padding: 10px 13px;
  border-bottom: 1px solid #edf0f2;
}
.family-modal-toggles label:last-child { border-bottom: 0; }
.family-modal-toggles label > span { display: grid; gap: 3px; }
.family-modal-toggles strong { font-size: .68rem; }
.family-modal-toggles small { color: #7a848d; font-size: .56rem; }
.family-modal-toggles input {
  width: 42px;
  height: 23px;
  accent-color: var(--family-green);
}
.family-modal-danger-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}
.family-modal-danger-row button {
  min-height: 43px;
  border: 1px solid #efc4c8;
  border-radius: 12px;
  color: #b4131c;
  background: #fff7f7;
  font-size: .62rem;
  font-weight: 700;
}
.family-history-map {
  height: 330px;
  overflow: hidden;
  border: 1px solid #dce2e5;
  border-radius: 16px;
  background: #e1e8e3;
}
.family-history-summary {
  display: grid;
  gap: 4px;
  min-height: 62px;
  margin-top: 11px;
  padding: 12px 14px;
  border: 1px solid #e0e5e8;
  border-radius: 14px;
  color: #6e7881;
  background: #f7f9f8;
  font-size: .62rem;
}
.family-history-summary strong { color: #26333e; font-size: .72rem; }

@media (max-width: 760px) {
  .family-live-intro { align-items: flex-start; }
  .family-quick-actions { grid-template-columns: 1fr; }
  .family-quick-actions > button { min-height: 72px; }
  .family-map-card { height: 430px; }
}
@media (max-width: 560px) {
  .family-live-page-v2 { gap: 13px; }
  .family-live-intro { display: grid; grid-template-columns: 1fr; }
  .family-live-title { gap: 10px; }
  .family-live-title-icon { width: 48px; height: 48px; border-radius: 15px; }
  .family-live-title-icon svg { width: 29px; height: 29px; }
  .family-live-title h1 { font-size: 1.48rem; }
  .family-live-title p { font-size: .69rem; line-height: 1.43; }
  .family-invite-button { width: 100%; min-height: 44px; }
  .family-live-tabs button { min-height: 42px; font-size: .67rem; }
  .family-map-toolbar { grid-template-columns: 1fr 44px; }
  .family-map-toolbar > label { grid-column: 1 / -1; }
  .family-map-toolbar button:nth-of-type(1) { grid-column: 1; }
  .family-map-toolbar button:nth-of-type(2) { grid-column: 2; grid-row: 2; }
  .family-map-card { height: 380px; border-radius: 18px; }
  .family-map-status { top: 10px; left: 10px; max-width: calc(100% - 112px); padding: 9px 10px; }
  .family-map-status strong { font-size: .64rem; }
  .family-map-status span { font-size: .52rem; }
  .family-map-refresh { top: 10px; right: 10px; width: 41px; min-height: 41px; padding: 0; font-size: 0; }
  .family-map-refresh svg { width: 20px; height: 20px; }
  .family-map-controls { top: 61px; right: 10px; gap: 6px; }
  .family-map-controls button { width: 40px; height: 40px; border-radius: 12px; }
  .family-my-location { left: 10px; bottom: 10px; min-height: 40px; }
  .family-section-heading { align-items: flex-start; padding: 14px 13px 10px; }
  .family-section-heading h2 { font-size: .96rem; }
  .family-section-heading p { font-size: .57rem; }
  .family-section-heading > small { max-width: 88px; text-align: right; font-size: .53rem; }
  .family-member-row { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 9px; min-height: 76px; padding: 10px 12px; }
  .family-member-avatar { width: 44px; height: 44px; }
  .family-member-copy strong { font-size: .74rem; }
  .family-member-copy small { max-width: 190px; font-size: .58rem; }
  .family-member-copy > span { font-size: .52rem; }
  .family-member-time small { display: none; }
  .family-safe-banner { align-items: stretch; flex-direction: column; padding: 14px; }
  .family-safe-banner button { width: 100%; justify-content: center; }
  .family-panel-heading { align-items: flex-start; padding: 14px; }
  .family-panel-heading > button { min-height: 41px; padding-inline: 11px; }
  .family-access-row { grid-template-columns: 47px minmax(0, 1fr); padding: 12px; }
  .family-access-row > button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .family-modal-backdrop { padding: 0; }
  .family-modal { width: 100%; max-height: 92dvh; padding: 20px 15px calc(env(safe-area-inset-bottom) + 18px); border-radius: 22px 22px 0 0; }
  .family-detail-grid { grid-template-columns: 1fr; }
  .family-modal-actions { grid-template-columns: 1fr; }
  .family-modal-danger-row { grid-template-columns: 1fr; }
  .family-history-map { height: 290px; }
}

/* Safe Zones v1.1.194 */
.safe-zones-page-v3 {
  --zone-purple: #6425cf;
  --zone-purple-dark: #47139d;
  --zone-purple-soft: #f2ebff;
  --zone-green: #169447;
  --zone-orange: #f97316;
  --zone-blue: #1769e0;
  --zone-grey: #87919b;
  display: grid;
  gap: 17px;
  padding-bottom: 30px;
}
.safe-zones-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 1px;
}
.safe-zones-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.safe-zones-title > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #d8c8fa;
  border-radius: 18px;
  color: var(--zone-purple);
  background: linear-gradient(145deg, #faf7ff, #eee5ff);
  box-shadow: 0 11px 25px rgba(80, 32, 151, .12);
}
.safe-zones-title h1 { margin: 1px 0 4px; font-size: clamp(1.55rem, 4vw, 2.05rem); letter-spacing: -.035em; }
.safe-zones-title p { max-width: 560px; color: #68737d; font-size: .75rem; line-height: 1.48; }
.safe-zone-create-button,
.safe-zone-panel-heading > button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--zone-purple-dark);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #7435df, #4c16aa);
  box-shadow: 0 12px 24px rgba(78, 22, 169, .2);
  font-size: .72rem;
  font-weight: 760;
}
.safe-zone-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #dfe3e7;
}
.safe-zone-tabs button {
  position: relative;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  color: #596675;
  background: transparent;
  font-size: .69rem;
  font-weight: 680;
}
.safe-zone-tabs button::after {
  position: absolute;
  right: 13%;
  bottom: -1px;
  left: 13%;
  height: 3px;
  border-radius: 5px 5px 0 0;
  background: var(--zone-purple);
  content: '';
  opacity: 0;
  transform: scaleX(.5);
  transition: .18s ease;
}
.safe-zone-tabs button.active { color: var(--zone-purple-dark); }
.safe-zone-tabs button.active::after { opacity: 1; transform: scaleX(1); }
.safe-zone-panel { display: grid; gap: 15px; min-width: 0; }
.safe-zone-panel[hidden] { display: none; }
.safe-zone-map-toolbar {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 9px;
}
.safe-zone-map-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 165px;
  color: #68727d;
  font-size: .56rem;
  font-weight: 720;
}
.safe-zone-map-toolbar select,
.safe-zone-list-heading select,
.safe-zone-panel-heading select {
  min-height: 43px;
  padding: 0 34px 0 12px;
  border: 1px solid #dce1e5;
  border-radius: 12px;
  outline: 0;
  color: #24313d;
  background: #fff;
  font-size: .67rem;
  font-weight: 680;
}
.safe-zone-map-toolbar > button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid #dce1e5;
  border-radius: 12px;
  color: var(--zone-purple);
  background: #fff;
}
.safe-zone-map-card {
  position: relative;
  height: 475px;
  overflow: hidden;
  border: 1px solid #d8dee2;
  border-radius: 20px;
  background: #e6ebe7;
  box-shadow: 0 13px 32px rgba(25, 35, 45, .1);
}
.safe-zone-map { width: 100%; height: 100%; }
.safe-zone-map-legend {
  position: absolute;
  z-index: 440;
  top: 13px;
  left: 13px;
  display: grid;
  gap: 7px;
  min-width: 136px;
  padding: 12px 13px;
  border: 1px solid rgba(220, 225, 230, .9);
  border-radius: 14px;
  color: #34414c;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 9px 24px rgba(23, 34, 44, .13);
  backdrop-filter: blur(12px);
  font-size: .59rem;
  font-weight: 670;
}
.safe-zone-map-legend span { display: flex; align-items: center; gap: 8px; }
.safe-zone-map-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--zone-grey); }
.safe-zone-map-legend .inside i { background: var(--zone-green); }
.safe-zone-map-legend .boundary i { background: var(--zone-orange); }
.safe-zone-map-legend .outside i { background: var(--zone-blue); }
.safe-zone-map-controls {
  position: absolute;
  z-index: 440;
  top: 13px;
  right: 13px;
  display: grid;
  gap: 7px;
}
.safe-zone-map-controls button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid #dce1e5;
  border-radius: 12px;
  color: #25313d;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 19px rgba(17, 26, 35, .12);
  font-size: 1.22rem;
  font-weight: 500;
}
.safe-zone-my-location {
  position: absolute;
  z-index: 440;
  bottom: 13px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dbe1e5;
  border-radius: 12px;
  color: #273440;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 20px rgba(17, 26, 35, .12);
  font-size: .63rem;
  font-weight: 720;
}
.safe-zone-leaflet-marker { border: 0; background: transparent; }
.safe-zone-map-marker {
  position: relative;
  display: grid;
  grid-template-rows: 34px 15px;
  place-items: center;
  width: 62px;
  height: 48px;
  padding: 0;
  border: 0;
  color: var(--zone-tone);
  background: transparent;
  filter: drop-shadow(0 5px 5px rgba(15,24,33,.2));
}
.safe-zone-map-marker::before {
  position: absolute;
  top: 0;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: color-mix(in srgb,var(--zone-tone) 16%,white);
  content: "";
}
.safe-zone-map-marker::after {
  position: absolute;
  z-index: 0;
  top: 24px;
  width: 10px;
  height: 10px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 2px;
  content: "";
  background: color-mix(in srgb,var(--zone-tone) 16%,white);
  transform: rotate(45deg);
}
.safe-zone-map-marker svg { position: relative; z-index: 2; width: 18px; height: 18px; }
.safe-zone-map-marker small {
  position: relative;
  z-index: 3;
  max-width: 62px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 999px;
  color: #18242e;
  background: rgba(255,255,255,.96);
  font-size: .46rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.safe-zone-list-heading,
.safe-zone-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  padding: 2px 3px 0;
}
.safe-zone-list-heading h2,
.safe-zone-panel-heading h2 { margin: 0 0 3px; font-size: 1rem; }
.safe-zone-list-heading h2 span { color: var(--zone-purple); font-size: .72rem; }
.safe-zone-list-heading p,
.safe-zone-panel-heading p { color: #747f89; font-size: .61rem; }
.safe-zone-list-heading label,
.safe-zone-panel-heading label { display: flex; align-items: center; gap: 8px; color: #69747f; font-size: .58rem; }
.safe-zone-list,
.safe-zone-shared-list,
.safe-zone-alert-list {
  overflow: hidden;
  border: 1px solid #dfe4e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 11px 26px rgba(22, 31, 39, .07);
}
.safe-zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 92px;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  transition: background .18s ease, box-shadow .18s ease;
}
.safe-zone-row:last-child { border-bottom: 0; }
.safe-zone-row.selected { background: #fbf9ff; box-shadow: inset 4px 0 var(--zone-purple); }
.safe-zone-row-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 9px 12px 15px;
  border: 0;
  text-align: left;
  background: transparent;
}
.safe-zone-type-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid color-mix(in srgb, var(--zone-tone) 24%, #fff);
  border-radius: 50%;
  color: var(--zone-tone);
  background: color-mix(in srgb, var(--zone-tone) 11%, #fff);
}
.safe-zone-row-copy { display: grid; min-width: 0; gap: 4px; }
.safe-zone-row-copy strong { overflow: hidden; color: #1b2833; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.safe-zone-row-copy small { overflow: hidden; color: #65717c; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.safe-zone-row-copy > span { color: #707b85; font-size: .54rem; }
.safe-zone-row-copy > span i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--zone-green); }
.safe-zone-row-copy b { margin: 0 3px; color: #a2a9af; }
.safe-zone-state {
  align-self: start;
  margin-top: 3px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #68737c;
  background: #eef1f3;
  font-size: .53rem;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}
.safe-zone-state-inside { color: #117237; background: #e3f7e9; }
.safe-zone-state-boundary { color: #b74b05; background: #fff0df; }
.safe-zone-state-outside { color: #1558b6; background: #e7f0ff; }
.safe-zone-state-offline,
.safe-zone-state-unavailable { color: #a01922; background: #ffeaec; }
.safe-zone-state-paused { color: #6e4a9c; background: #f0e8fa; }
.safe-zone-row-actions {
  display: grid;
  grid-template-columns: repeat(2, 39px);
  gap: 7px;
  align-content: center;
  padding: 10px 13px 10px 5px;
}
.safe-zone-row-actions button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 36px;
  padding: 0;
  border: 1px solid #dfe3e6;
  border-radius: 10px;
  color: var(--zone-purple);
  background: #fff;
}
.safe-zone-row-actions button.danger { color: #d51620; border-color: #f0cfd2; background: #fffafa; }
.safe-zone-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 120px;
  color: #737e87;
  font-size: .66rem;
}
.safe-zone-loading > span {
  width: 19px;
  height: 19px;
  border: 2px solid #e3daf5;
  border-top-color: var(--zone-purple);
  border-radius: 50%;
  animation: safeZoneSpin .8s linear infinite;
}
@keyframes safeZoneSpin { to { transform: rotate(360deg); } }
.safe-zone-empty,
.safe-zone-error {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  color: #6c7780;
}
.safe-zone-empty.compact { grid-template-columns: 48px minmax(0, 1fr); }
.safe-zone-empty > span,
.safe-zone-error > svg {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 9px;
  border-radius: 14px;
  color: var(--zone-purple);
  background: var(--zone-purple-soft);
}
.safe-zone-empty strong,
.safe-zone-error strong { display: block; margin-bottom: 4px; color: #24313c; font-size: .75rem; }
.safe-zone-empty p,
.safe-zone-error p { font-size: .61rem; line-height: 1.45; }
.safe-zone-empty button,
.safe-zone-error button {
  min-height: 41px;
  padding: 0 13px;
  border: 1px solid #d6c4f4;
  border-radius: 11px;
  color: var(--zone-purple-dark);
  background: #faf7ff;
  font-size: .62rem;
  font-weight: 740;
}
.safe-zone-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.safe-zone-shortcuts button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #e0e4e7;
  border-radius: 15px;
  text-align: left;
  color: #26333e;
  background: #fff;
  box-shadow: 0 8px 20px rgba(21, 30, 38, .05);
}
.safe-zone-shortcuts button > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--zone-purple);
  background: var(--zone-purple-soft);
}
.safe-zone-shortcuts strong { display: block; margin-bottom: 3px; font-size: .68rem; }
.safe-zone-shortcuts small { display: block; color: #737e88; font-size: .55rem; line-height: 1.4; }
.safe-zone-shortcuts > button > svg { color: #7b858e; }
.safe-zone-info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid #e0d3f5;
  border-radius: 16px;
  color: #4f2a8d;
  background: linear-gradient(115deg, #fbf8ff, #f0e7ff);
}
.safe-zone-info-banner strong { display: block; margin-bottom: 4px; font-size: .76rem; }
.safe-zone-info-banner p { font-size: .61rem; line-height: 1.45; }
.safe-zone-info-banner button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid var(--zone-purple-dark);
  border-radius: 11px;
  color: #fff;
  background: var(--zone-purple);
  font-size: .62rem;
  font-weight: 730;
}
.safe-zone-shared-row,
.safe-zone-alert-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f2;
}
.safe-zone-shared-row:last-child,
.safe-zone-alert-row:last-child { border-bottom: 0; }
.safe-zone-shared-row > span,
.safe-zone-alert-row > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--zone-purple);
  background: var(--zone-purple-soft);
}
.safe-zone-alert-row.warning > span { color: #c74e05; background: #fff0df; }
.safe-zone-shared-row strong,
.safe-zone-alert-row strong { display: block; margin-bottom: 3px; color: #22303a; font-size: .72rem; }
.safe-zone-shared-row small,
.safe-zone-alert-row small { display: block; color: #66727c; font-size: .58rem; }
.safe-zone-shared-row p,
.safe-zone-alert-row p { margin-top: 4px; color: #828b93; font-size: .54rem; }
.safe-zone-alert-row button {
  min-height: 37px;
  padding: 0 10px;
  border: 1px solid #d7c6f1;
  border-radius: 10px;
  color: var(--zone-purple-dark);
  background: #faf7ff;
  font-size: .57rem;
  font-weight: 720;
}
.safe-zone-alert-row > em { color: #818a91; font-size: .52rem; font-style: normal; text-transform: capitalize; }
.safe-zone-settings-card {
  overflow: hidden;
  border: 1px solid #dfe4e7;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 31, 39, .06);
}
.safe-zone-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 76px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f2;
}
.safe-zone-setting-row span { display: grid; gap: 4px; }
.safe-zone-setting-row strong { font-size: .71rem; }
.safe-zone-setting-row small { color: #707b84; font-size: .56rem; }
.safe-zone-setting-row input,
.safe-zone-editor-toggles input { width: 44px; height: 24px; accent-color: var(--zone-purple); }
.safe-zone-setting-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 13px;
  padding: 13px;
  border: 1px solid #f0cfd2;
  border-radius: 13px;
  color: #a01922;
  background: #fff8f8;
}
.safe-zone-setting-status.ready { color: #117237; border-color: #cbe9d4; background: #f5fbf7; }
.safe-zone-setting-status strong { display: block; margin-bottom: 3px; font-size: .68rem; }
.safe-zone-setting-status p { color: #68747d; font-size: .55rem; line-height: 1.4; }
.safe-zone-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.safe-zone-rule-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 90px;
  padding: 13px;
  border: 1px solid #e1e5e8;
  border-radius: 15px;
  background: #fff;
}
.safe-zone-rule-grid article > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--zone-purple); background: var(--zone-purple-soft); }
.safe-zone-rule-grid strong { display: block; margin-bottom: 3px; font-size: .66rem; }
.safe-zone-rule-grid p { color: #727d86; font-size: .54rem; line-height: 1.4; }
.safe-zone-modal-backdrop {
  position: fixed;
  z-index: 470;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 20px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: rgba(5, 9, 16, .64);
  opacity: 0;
  transition: opacity .18s ease;
}
.safe-zone-modal-backdrop[hidden] { display: none; }
.safe-zone-modal-backdrop.open { opacity: 1; }
.safe-zone-modal {
  position: relative;
  width: min(100%, 760px);
  max-height: min(92dvh, 920px);
  overflow: auto;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.33);
  transform: translateY(20px);
  transition: transform .2s ease;
}
.safe-zone-modal-backdrop.open .safe-zone-modal { transform: translateY(0); }
.safe-zone-modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dfe3e6;
  border-radius: 12px;
  color: #52606a;
  background: #fff;
  font-size: 1.35rem;
}
.safe-zone-modal > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 45px 18px 0;
}
.safe-zone-modal > header > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--zone-purple); background: var(--zone-purple-soft); }
.safe-zone-modal h2 { margin-bottom: 4px; font-size: 1.05rem; }
.safe-zone-modal header p { color: #707b85; font-size: .61rem; }
.safe-zone-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.safe-zone-field,
.safe-zone-radius-field { display: grid; gap: 7px; color: #56626d; font-size: .6rem; font-weight: 720; }
.safe-zone-field input,
.safe-zone-field textarea,
.safe-zone-field select,
.safe-zone-radius-field input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dbe1e5;
  border-radius: 12px;
  outline: 0;
  color: #1e2b35;
  background: #fff;
  font: inherit;
  font-weight: 520;
}
.safe-zone-field textarea { min-height: 84px; padding-block: 11px; resize: vertical; }
.safe-zone-field input:focus,
.safe-zone-field textarea:focus,
.safe-zone-field select:focus,
.safe-zone-radius-field input:focus { border-color: #9a70df; box-shadow: 0 0 0 3px rgba(101, 37, 207, .1); }
.safe-zone-type-picker { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; border: 0; }
.safe-zone-type-picker legend,
.safe-zone-event-picker legend,
.safe-zone-day-picker legend { margin-bottom: 7px; color: #56626d; font-size: .6rem; font-weight: 720; }
.safe-zone-type-picker label { position: relative; display: grid; place-items: center; gap: 5px; min-height: 67px; padding: 8px; border: 1px solid #e0e4e7; border-radius: 13px; color: #596570; background: #fff; cursor: pointer; }
.safe-zone-type-picker input { position: absolute; opacity: 0; }
.safe-zone-type-picker label:has(input:checked) { color: var(--zone-tone); border-color: color-mix(in srgb, var(--zone-tone) 50%, #fff); background: color-mix(in srgb, var(--zone-tone) 8%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zone-tone) 25%, #fff); }
.safe-zone-type-picker small { font-size: .54rem; font-weight: 720; }
.safe-zone-address-field { grid-column: 1 / -1; position: relative; }
.safe-zone-address-field > div:first-of-type { display: grid; grid-template-columns: 1fr 45px; }
.safe-zone-address-field > div:first-of-type input { border-radius: 12px 0 0 12px; }
.safe-zone-address-field > div:first-of-type button { display: grid; place-items: center; padding: 0; border: 1px solid #dbe1e5; border-left: 0; border-radius: 0 12px 12px 0; color: var(--zone-purple); background: #faf8ff; }
.safe-zone-search-results { position: absolute; z-index: 12; top: 76px; right: 0; left: 0; max-height: 250px; overflow: auto; padding: 7px; border: 1px solid #dce1e5; border-radius: 13px; background: #fff; box-shadow: 0 14px 35px rgba(22, 31, 39, .17); }
.safe-zone-search-results[hidden] { display: none; }
.safe-zone-search-results button { display: grid; gap: 3px; width: 100%; padding: 10px; border: 0; border-bottom: 1px solid #edf0f2; text-align: left; background: #fff; }
.safe-zone-search-results button:last-child { border-bottom: 0; }
.safe-zone-search-results strong { font-size: .64rem; }
.safe-zone-search-results small { color: #707b84; font-size: .53rem; line-height: 1.35; }
.safe-zone-location-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.safe-zone-location-actions button,
.safe-zone-family-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; border: 1px solid #d9cdf0; border-radius: 11px; color: var(--zone-purple-dark); background: #fbf9ff; font-size: .58rem; font-weight: 720; }
.safe-zone-location-actions span { color: #727d86; font-size: .54rem; }
.safe-zone-radius-field { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; }
.safe-zone-radius-field label { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.safe-zone-radius-field output { color: var(--zone-purple); }
.safe-zone-radius-field input[type="range"] { width: 100%; accent-color: var(--zone-purple); }
.safe-zone-editor-section { margin-top: 14px; overflow: hidden; border: 1px solid #dfe4e7; border-radius: 14px; background: #fff; }
.safe-zone-editor-section summary { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 0 13px; color: #293640; cursor: pointer; font-size: .65rem; font-weight: 760; list-style: none; }
.safe-zone-editor-section summary::-webkit-details-marker { display: none; }
.safe-zone-editor-section[open] summary svg { transform: rotate(90deg); }
.safe-zone-editor-section > div { display: grid; gap: 13px; padding: 0 13px 14px; }
.safe-zone-event-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; border: 0; }
.safe-zone-event-picker label { position: relative; }
.safe-zone-event-picker input { position: absolute; opacity: 0; }
.safe-zone-event-picker span { display: flex; align-items: center; gap: 7px; min-height: 43px; padding: 0 10px; border: 1px solid #e0e4e7; border-radius: 11px; color: #59656f; font-size: .56rem; font-weight: 670; }
.safe-zone-event-picker input:checked + span { color: var(--zone-purple-dark); border-color: #b99ae8; background: #f8f3ff; }
.safe-zone-recipient-list { display: grid; gap: 6px; }
.safe-zone-recipient-option { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 22px; gap: 9px; align-items: center; min-height: 60px; padding: 8px 10px; border: 1px solid #e0e4e7; border-radius: 12px; cursor: pointer; }
.safe-zone-recipient-option > input { position: absolute; opacity: 0; }
.safe-zone-recipient-option > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--zone-purple); background: var(--zone-purple-soft); }
.safe-zone-recipient-option strong { display: block; margin-bottom: 2px; font-size: .61rem; }
.safe-zone-recipient-option small { color: #737e87; font-size: .49rem; line-height: 1.35; }
.safe-zone-recipient-option > i { color: var(--zone-purple); opacity: 0; }
.safe-zone-recipient-option:has(input:checked) { border-color: #b79ae5; background: #faf7ff; }
.safe-zone-recipient-option:has(input:checked) > i { opacity: 1; }
.safe-zone-recipient-empty { padding: 13px; border: 1px dashed #d9c8ef; border-radius: 12px; color: #746b80; background: #fcfaff; font-size: .54rem; line-height: 1.45; }
.safe-zone-day-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; border: 0; }
.safe-zone-day-picker legend { grid-column: 1 / -1; }
.safe-zone-day-picker label { position: relative; }
.safe-zone-day-picker input { position: absolute; opacity: 0; }
.safe-zone-day-picker span { display: grid; place-items: center; height: 36px; border: 1px solid #dfe3e6; border-radius: 10px; color: #63707a; font-size: .51rem; font-weight: 720; }
.safe-zone-day-picker input:checked + span { color: #fff; border-color: var(--zone-purple-dark); background: var(--zone-purple); }
.safe-zone-time-grid,
.safe-zone-advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.safe-zone-editor-toggles { margin-top: 14px; overflow: hidden; border: 1px solid #dfe4e7; border-radius: 14px; }
.safe-zone-editor-toggles label { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 68px; padding: 10px 13px; border-bottom: 1px solid #edf0f2; }
.safe-zone-editor-toggles label:last-child { border-bottom: 0; }
.safe-zone-editor-toggles label > span { display: grid; gap: 3px; }
.safe-zone-editor-toggles strong { font-size: .63rem; }
.safe-zone-editor-toggles small { color: #748089; font-size: .52rem; }
.safe-zone-modal footer { display: grid; grid-template-columns: 1fr 1.5fr; gap: 9px; margin-top: 16px; }
.safe-zone-modal footer button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; border: 1px solid #dce1e5; border-radius: 12px; color: #33414c; background: #fff; font-size: .64rem; font-weight: 740; }
.safe-zone-modal footer .safe-zone-save-button { color: #fff; border-color: var(--zone-purple-dark); background: linear-gradient(145deg, #7435df, #4c16aa); }

@media (max-width: 760px) {
  .safe-zone-shortcuts,
  .safe-zone-rule-grid { grid-template-columns: 1fr; }
  .safe-zone-map-card { height: 430px; }
  .safe-zone-row { grid-template-columns: 1fr; }
  .safe-zone-row-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 12px 12px; }
  .safe-zone-row-actions button { width: 100%; }
}
@media (max-width: 560px) {
  .safe-zones-page-v3 { gap: 13px; padding-inline: 12px; }
  .safe-zones-intro { display: grid; }
  .safe-zones-title { gap: 10px; }
  .safe-zones-title > span { width: 49px; height: 49px; border-radius: 15px; }
  .safe-zones-title > span svg { width: 29px; height: 29px; }
  .safe-zones-title h1 { font-size: 1.48rem; }
  .safe-zones-title p { font-size: .68rem; }
  .safe-zone-create-button { width: 100%; min-height: 45px; }
  .safe-zone-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(92px, 1fr)); }
  .safe-zone-tabs button { min-height: 43px; font-size: .62rem; }
  .safe-zone-map-toolbar { align-items: center; }
  .safe-zone-map-toolbar label { flex: 1; min-width: 0; }
  .safe-zone-map-card { height: 380px; border-radius: 17px; }
  .safe-zone-map-legend { top: 10px; left: 10px; min-width: 119px; padding: 10px; font-size: .52rem; }
  .safe-zone-map-controls { top: 10px; right: 10px; }
  .safe-zone-map-controls button { width: 39px; height: 39px; }
  .safe-zone-my-location { bottom: 10px; left: 10px; min-height: 39px; }
  .safe-zone-list-heading,
  .safe-zone-panel-heading { align-items: flex-start; }
  .safe-zone-list-heading label { display: grid; gap: 3px; text-align: right; }
  .safe-zone-list-heading p,
  .safe-zone-panel-heading p { max-width: 240px; }
  .safe-zone-row-main { grid-template-columns: 48px minmax(0, 1fr); padding: 11px 12px; }
  .safe-zone-type-icon { width: 45px; height: 45px; }
  .safe-zone-state { grid-column: 2; justify-self: start; margin-top: 1px; }
  .safe-zone-row-copy strong { font-size: .73rem; }
  .safe-zone-row-copy small { max-width: 220px; font-size: .57rem; }
  .safe-zone-row-copy > span { font-size: .49rem; }
  .safe-zone-shortcuts button { min-height: 72px; }
  .safe-zone-info-banner { align-items: stretch; flex-direction: column; padding: 14px; }
  .safe-zone-info-banner button { width: 100%; justify-content: center; }
  .safe-zone-shared-row,
  .safe-zone-alert-row { grid-template-columns: 43px minmax(0, 1fr); padding: 11px 12px; }
  .safe-zone-shared-row > em,
  .safe-zone-alert-row > button,
  .safe-zone-alert-row > em { grid-column: 2; justify-self: start; }
  .safe-zone-rule-grid article { min-height: 80px; }
  .safe-zone-modal-backdrop { padding: 0; }
  .safe-zone-modal { width: 100%; max-height: 94dvh; padding: 20px 14px calc(env(safe-area-inset-bottom) + 18px); border-radius: 22px 22px 0 0; }
  .safe-zone-editor-grid { grid-template-columns: 1fr; }
  .safe-zone-type-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .safe-zone-address-field,
  .safe-zone-location-actions,
  .safe-zone-radius-field { grid-column: 1; }
  .safe-zone-radius-field { grid-template-columns: minmax(0, 1fr) 92px; }
  .safe-zone-event-picker,
  .safe-zone-time-grid,
  .safe-zone-advanced-grid { grid-template-columns: 1fr; }
  .safe-zone-day-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .safe-zone-modal footer { grid-template-columns: 1fr; }
}
.safe-zone-button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: .75;
  animation: safeZoneSpin .8s linear infinite;
}

/* v1.1.195 grouped keypad More menu */
.more-keypad-page{max-width:980px;padding-bottom:28px}.more-keypad-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.more-keypad-heading h1{margin:1px 0 5px;font-size:2rem}.more-keypad-heading p{margin:0;color:var(--muted)}.more-edit-button{display:inline-flex;align-items:center;gap:8px;padding:11px 15px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#26344b;font-weight:650;box-shadow:var(--shadow-sm)}.more-keypad-section{margin:0 0 22px}.more-keypad-section h2{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:1rem;color:#172235}.more-keypad-section h2 span{display:grid;place-items:center;color:#16243b}.more-keypad-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.more-keypad-card{position:relative;display:flex;min-height:176px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px 13px;border:1px solid #e7eaf0;border-radius:17px;background:#fff;text-align:center;box-shadow:0 8px 25px rgba(18,35,57,.07);transition:transform .16s ease,box-shadow .16s ease}.more-keypad-card:active{transform:scale(.975)}.more-keypad-card b{font-size:.96rem;color:#111a29}.more-keypad-card small{max-width:155px;color:#667188;font-size:.73rem;line-height:1.38}.more-keypad-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#f2f5f9}.more-keypad-icon--red{color:#df2029;background:#fff0f1}.more-keypad-icon--blue{color:#2765d9;background:#eef4ff}.more-keypad-icon--green{color:#22a04a;background:#edfaef}.more-keypad-icon--purple{color:#7b4bc7;background:#f4efff}.more-keypad-icon--orange{color:#f0a000;background:#fff6df}.more-keypad-icon--teal{color:#16a6a0;background:#e9fbfa}.more-keypad-icon--indigo{color:#4f5cbf;background:#eff0ff}.more-keypad-icon--slate{color:#56677f;background:#eff2f6}.more-keypad-badge{position:absolute;top:14px;right:14px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:20px;background:var(--red);color:#fff;font-size:.7rem;font-weight:800}.more-signout-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;width:100%;padding:12px 15px;border:1px solid var(--line);border-radius:15px;background:#fff;text-align:left;box-shadow:var(--shadow-sm)}.more-signout-row .more-keypad-icon{width:43px;height:43px}.more-signout-row>span:nth-child(2){display:grid;gap:2px}.more-signout-row small{color:var(--muted)}.more-editor-backdrop{position:fixed;z-index:500;inset:0;display:grid;align-items:end;background:rgba(3,12,24,.5);backdrop-filter:blur(4px)}.more-editor{max-height:86dvh;padding:20px;border-radius:25px 25px 0 0;background:#fff;overflow:auto;box-shadow:0 -18px 50px rgba(0,0,0,.2)}.more-editor header{display:flex;justify-content:space-between;gap:20px}.more-editor header h2{margin:2px 0 5px}.more-editor header p{margin:0;color:var(--muted);font-size:.82rem}.more-editor header>button{width:36px;height:36px;border:0;border-radius:50%;font-size:1.6rem;background:#f0f2f5}.more-editor-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0}.more-editor-list label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:13px}.more-editor-list .more-keypad-icon{width:40px;height:40px}.more-editor-list label>span:nth-child(2){display:grid}.more-editor-list small{color:var(--muted);font-size:.68rem}.more-editor-list input{position:absolute;opacity:0}.more-editor-list i{position:relative;width:42px;height:24px;border-radius:20px;background:#d9dee6}.more-editor-list i:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:.15s}.more-editor-list input:checked+i{background:#2aae55}.more-editor-list input:checked+i:after{transform:translateX(18px)}.more-editor footer{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-20px;padding:13px 0 4px;background:#fff}
.utility-page{max-width:760px}.utility-record{margin-bottom:13px;padding:17px}.utility-record-head{display:flex;align-items:center;gap:12px}.utility-record-head h2{margin:0;font-size:1rem}.utility-record-head p{margin:3px 0 0;color:var(--muted);font-size:.75rem}.utility-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;color:#52647d;background:#eff3f8}.utility-icon--teal{color:#168e89;background:#e8faf8}.utility-icon--blue{color:#2765d9;background:#eef4ff}.settings-form{padding:8px 17px 17px}.settings-toggle{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.settings-toggle>span:nth-child(2){display:grid}.settings-toggle small{color:var(--muted);font-size:.72rem}.settings-toggle input{position:absolute;opacity:0}.settings-toggle i{position:relative;width:46px;height:26px;border-radius:20px;background:#d8dde5}.settings-toggle i:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.15s;box-shadow:0 2px 5px rgba(0,0,0,.18)}.settings-toggle input:checked+i{background:#29a952}.settings-toggle input:checked+i:after{transform:translateX(20px)}.file-drop{display:grid;place-items:center;gap:5px;padding:20px;border:1px dashed #b9c3d0;border-radius:15px;background:#f9fbfd;text-align:center}.file-drop input{max-width:100%}.vault-row{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid var(--line)}.vault-row>span:nth-child(2){display:grid}.vault-row small{color:var(--muted);font-size:.7rem}.vault-row button{padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff}.danger-text{color:var(--red)}.compact-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.compact-check-grid label,.consent-box{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid var(--line);border-radius:11px}.consent-box span{display:grid}.consent-box small{color:var(--muted);font-size:.72rem}
@media(max-width:720px){.more-keypad-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.more-keypad-card{min-height:152px}.more-editor-list{grid-template-columns:1fr}.more-keypad-heading{align-items:center}.more-keypad-heading h1{font-size:1.7rem}.more-edit-button{padding:9px 11px}.vault-row{grid-template-columns:auto 1fr auto}.vault-row [data-delete]{grid-column:3}.compact-check-grid{grid-template-columns:1fr}}

/* v1.1.196 Roadside Assistance */
.roadside-page{max-width:980px;padding-bottom:30px}.roadside-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}.roadside-title{display:flex;align-items:center;gap:13px}.roadside-title>span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;color:#fff;background:#081425}.roadside-title h1{margin:0 0 4px;font-size:1.7rem}.roadside-title p{margin:0;color:var(--muted)}.roadside-how-button{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#233047;font-weight:700}.roadside-hero{position:relative;min-height:350px;overflow:hidden;border-radius:20px;background:#0b1726;box-shadow:0 16px 42px rgba(5,16,31,.18)}.roadside-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.9) contrast(1.05)}.roadside-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,11,22,.88),rgba(3,11,22,.48) 52%,rgba(3,11,22,.05))}.roadside-hero>div{position:relative;z-index:1;display:flex;min-height:350px;max-width:490px;flex-direction:column;justify-content:center;align-items:flex-start;padding:40px;color:#fff}.roadside-hero h2{margin:0 0 10px;font-size:2rem}.roadside-hero p{max-width:390px;margin:0 0 24px;font-size:1.3rem;line-height:1.45}.roadside-request-button{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 22px;border:0;border-radius:13px;background:linear-gradient(135deg,#ef1019,#cf0711);color:#fff;font-weight:800;box-shadow:0 12px 26px rgba(220,16,27,.32)}.roadside-hero small{display:inline-flex;align-items:center;gap:7px;margin-top:18px;font-weight:700}.roadside-consent-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:11px;margin:16px 0;padding:17px 20px;border:1px solid #ffe1e2;border-radius:17px;background:linear-gradient(90deg,#fff4f4,#fff9f9);cursor:pointer}.roadside-consent-card>span:first-child{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;color:#dc1420;background:#fff}.roadside-consent-card>span:nth-child(2){display:grid;gap:3px}.roadside-consent-card small{color:#526076;line-height:1.35}.roadside-consent-card input{position:absolute;opacity:0}.roadside-consent-card i{position:relative;width:58px;height:31px;border-radius:20px;background:#d8dde5;transition:.15s}.roadside-consent-card i:after{content:"";position:absolute;top:4px;left:4px;width:23px;height:23px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.18);transition:.15s}.roadside-consent-card input:checked+i{background:#e20b16}.roadside-consent-card input:checked+i:after{transform:translateX(27px)}.roadside-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px;scroll-margin-top:90px}.roadside-choice-grid>button{display:flex;min-height:164px;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px 10px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:center;box-shadow:0 8px 24px rgba(12,30,53,.06)}.roadside-choice-grid>button span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#f2f5f9}.roadside-choice-grid .red{color:#e31922;background:#fff0f1}.roadside-choice-grid .blue{color:#2a68dc;background:#edf4ff}.roadside-choice-grid .purple{color:#7749c8;background:#f4efff}.roadside-choice-grid .orange{color:#ee9500;background:#fff5df}.roadside-choice-grid strong{font-size:.92rem}.roadside-choice-grid small{min-height:32px;color:var(--muted);font-size:.72rem;line-height:1.35}.roadside-choice-grid em{color:#e20b16;font-style:normal;font-weight:800;font-size:.73rem}.roadside-provider-section,.roadside-requests-section{margin:0 0 22px}.roadside-provider-section>header,.roadside-requests-section>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}.roadside-provider-section h2,.roadside-requests-section h2{margin:0;font-size:1.1rem}.roadside-provider-section header p{margin:3px 0 0;color:var(--muted);font-size:.75rem}.roadside-provider-section header button{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:0;background:transparent;color:#d8131f;font-weight:800}.roadside-provider-list{display:grid;gap:10px}.roadside-provider-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;width:100%;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff;text-align:left;box-shadow:0 5px 18px rgba(12,30,53,.05)}.roadside-provider-card.selected{border-color:#ef1b25;box-shadow:0 0 0 2px rgba(239,27,37,.1)}.roadside-provider-avatar{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#0d1a2d;color:#fff;font-weight:900}.roadside-provider-copy{display:grid;gap:3px;min-width:0}.roadside-provider-copy strong{font-size:.95rem}.roadside-provider-copy>span{color:#bd7a00;font-size:.72rem}.roadside-provider-copy small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roadside-provider-copy em{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.roadside-provider-copy i{padding:3px 7px;border-radius:20px;background:#f0f3f7;color:#57657a;font-style:normal;font-size:.58rem}.roadside-provider-distance{display:grid;justify-items:end;gap:6px;color:#2d6bd8;font-size:.72rem}.roadside-provider-distance b{padding:7px 11px;border:1px solid #ed1b24;border-radius:9px;color:#d80e19}.roadside-selected-provider{display:flex;align-items:center;gap:7px;margin-top:10px;padding:10px 12px;border-radius:11px;background:#eef9f0;color:#1c7438;font-size:.75rem}.roadside-empty{display:grid;gap:4px;padding:22px;border:1px dashed #bfc7d3;border-radius:15px;background:#fafbfd;color:#5c697d;text-align:center}.roadside-submit-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 22px;padding:18px 20px;border-radius:17px;background:linear-gradient(90deg,#0b1829,#132844);color:#fff}.roadside-submit-card p{margin:4px 0 0;color:#cbd5e3;font-size:.75rem}.roadside-submit-card button{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.roadside-request-card{margin-bottom:12px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 21px rgba(12,30,53,.05)}.roadside-request-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.roadside-request-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;color:#e31c26;background:#fff0f1}.roadside-request-card header>div{display:grid;gap:3px}.roadside-request-card header small{color:var(--muted)}.roadside-status{padding:5px 9px;border-radius:20px;background:#eef2f7;color:#4b5b70;font-style:normal;font-size:.65rem;font-weight:800}.roadside-status--completed{background:#eaf8ee;color:#18843a}.roadside-status--cancelled,.roadside-status--rejected{background:#fff0f1;color:#c7101a}.roadside-request-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}.roadside-request-summary p{display:grid;gap:3px;margin:0;padding:10px;border-radius:10px;background:#f7f9fc}.roadside-request-summary span{color:var(--muted);font-size:.62rem}.roadside-request-summary b{font-size:.75rem}.roadside-request-card>footer{display:flex;justify-content:flex-end;margin-top:11px}.danger-outline-button{padding:8px 11px;border:1px solid #ef1a24;border-radius:9px;background:#fff;color:#d40d17;font-weight:750}.roadside-quote-card{margin-top:12px;padding:13px;border:1px solid #e9edf3;border-radius:12px;background:#fbfcfe}.roadside-quote-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.roadside-quote-card header>div{display:grid}.roadside-quote-card header span{color:var(--muted);font-size:.65rem}.roadside-quote-card header strong{font-size:1.05rem}.roadside-quote-card header em{font-style:normal;color:#57657a;font-size:.67rem}.roadside-quote-lines{margin-top:9px}.roadside-quote-lines p{display:flex;justify-content:space-between;gap:15px;margin:0;padding:5px 0;border-bottom:1px solid #edf0f4;font-size:.72rem}.roadside-quote-card>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:11px}.roadside-trust-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;margin:22px 0;border-radius:17px;background:#071322;color:#fff}.roadside-trust-strip article{display:grid;place-items:center;gap:6px;min-height:145px;padding:16px;text-align:center;border-right:1px solid rgba(255,255,255,.12)}.roadside-trust-strip article:last-child{border:0}.roadside-trust-strip small{color:#c9d3df;font-size:.67rem;line-height:1.4}.roadside-history{opacity:.96}.roadside-modal-backdrop{position:fixed;z-index:560;inset:0;display:grid;place-items:end center;padding:20px;background:rgba(2,10,20,.58);backdrop-filter:blur(4px)}.roadside-modal{width:min(680px,100%);max-height:88dvh;overflow:auto;padding:20px;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.28)}.roadside-modal>header{display:flex;justify-content:space-between;align-items:center}.roadside-modal h2{margin:0}.roadside-modal>header button{width:36px;height:36px;border:0;border-radius:50%;background:#f1f3f6;font-size:1.5rem}.roadside-modal-body{margin:18px 0}.roadside-modal>footer{display:flex;justify-content:flex-end;gap:9px;position:sticky;bottom:-20px;padding:12px 0 0;background:#fff}.roadside-service-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.roadside-service-picker label,.roadside-vehicle-picker label{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:13px;cursor:pointer}.roadside-service-picker input,.roadside-vehicle-picker input{position:absolute;opacity:0}.roadside-service-picker label:has(input:checked),.roadside-vehicle-picker label:has(input:checked){border-color:#ed1721;background:#fff7f7}.roadside-service-picker span,.roadside-vehicle-picker span{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#f1f4f8;color:#2e64c8}.roadside-vehicle-picker{display:grid;gap:8px}.roadside-vehicle-picker label{grid-template-columns:auto 1fr auto}.roadside-vehicle-picker small{color:var(--muted)}.roadside-how-list{display:grid;gap:13px;margin:0;padding-left:20px}.roadside-how-list li{padding-left:6px}.roadside-how-list li::marker{color:#dc111b;font-weight:900}.roadside-how-list b,.roadside-how-list span{display:block}.roadside-how-list span{margin-top:3px;color:var(--muted);font-size:.78rem;line-height:1.45}
@media(max-width:760px){.roadside-title-row{align-items:flex-start}.roadside-title h1{font-size:1.42rem}.roadside-how-button{padding:0 10px}.roadside-hero{min-height:315px}.roadside-hero>div{min-height:315px;padding:28px 22px}.roadside-hero h2{font-size:1.55rem}.roadside-hero p{font-size:1rem}.roadside-consent-card{grid-template-columns:auto minmax(0,1fr) auto}.roadside-consent-card i,.roadside-consent-card>b{grid-column:auto}.roadside-consent-card>b{display:none}.roadside-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.roadside-provider-card{grid-template-columns:auto minmax(0,1fr)}.roadside-provider-distance{grid-column:2;justify-items:start;grid-auto-flow:column;align-items:center}.roadside-submit-card{align-items:stretch;flex-direction:column}.roadside-submit-card button{justify-content:center}.roadside-request-summary{grid-template-columns:1fr}.roadside-trust-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.roadside-trust-strip article:nth-child(2){border-right:0}.roadside-trust-strip article:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.12)}.roadside-service-picker{grid-template-columns:1fr}.roadside-modal-backdrop{padding:0}.roadside-modal{border-radius:24px 24px 0 0}.roadside-request-card>header{grid-template-columns:auto minmax(0,1fr)}.roadside-request-card>header .roadside-status{grid-column:2;justify-self:start}}

/* v1.1.197 Subscription & Checkout */
.subscription-flow{padding-bottom:36px}.sub-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.sub-title h1{margin:3px 0;font-size:1.7rem}.sub-title p{margin:0;color:var(--muted)}.sub-history-link{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#23334a;font-weight:750}.sub-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:18px}.sub-steps span{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px;border-radius:10px;background:#f1f3f6;color:#7a8595;font-size:.72rem;font-weight:750}.sub-steps i{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#d8dde5;font-style:normal}.sub-steps .active{background:#fff0f1;color:#c8101a}.sub-steps .active i{background:#e20b16;color:#fff}.sub-loading,.sub-empty{display:grid;place-items:center;gap:9px;min-height:180px;padding:25px;border:1px dashed #cbd2dc;border-radius:16px;background:#fafbfd;color:#59677b;text-align:center}.sub-period-note{margin-bottom:10px;padding:11px 14px;border-radius:12px;background:#eef6ff;color:#305887;font-size:.76rem}.sub-plan-list{display:grid;gap:13px}.sub-plan-card{position:relative;width:100%;padding:18px;border:1px solid var(--line);border-radius:17px;background:#fff;text-align:left;box-shadow:0 8px 24px rgba(12,30,53,.06)}.sub-plan-card.recommended{border-color:#ed1822}.sub-plan-card>em{position:absolute;right:14px;top:-9px;padding:4px 9px;border-radius:20px;background:#e20b16;color:#fff;font-style:normal;font-size:.62rem;font-weight:800}.sub-plan-card header,.sub-detail-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px}.sub-plan-card header>span,.sub-detail-card header>span{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:#eef4ff;color:#2867d5}.sub-plan-card h3,.sub-detail-card h2{margin:0}.sub-plan-card p,.sub-detail-card header p{margin:4px 0 0;color:var(--muted);font-size:.76rem}.sub-plan-card header strong,.sub-detail-card header strong{color:#df0e18;font-size:1.2rem}.sub-plan-card strong small,.sub-detail-card strong small,.sub-manage-card strong small{display:block;color:#5b687c;font-size:.62rem;font-weight:600}.sub-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:15px 0}.sub-feature-grid span,.sub-detail-card section p,.sub-benefit{display:flex;align-items:center;gap:7px;color:#35445a;font-size:.72rem}.sub-feature-grid svg,.sub-detail-card section svg,.sub-benefit svg{color:#199647}.sub-plan-card footer{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid #edf0f4;color:#697589;font-size:.7rem}.sub-plan-card footer b{color:#d20d17}.sub-detail-card,.sub-order-card,.sub-manage-card,.sub-cancel-card,.sub-family-card{padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 9px 28px rgba(12,30,53,.07)}.sub-detail-card section{margin:20px 0}.sub-detail-card section p{margin:9px 0}.sub-detail-card aside{margin:15px 0;padding:15px;border-radius:13px;background:#f7f9fc}.sub-detail-card aside p{margin:5px 0 0;color:var(--muted)}.sub-detail-card>.primary-button{width:100%}.sub-gateway-list{display:grid;gap:12px}.sub-gateway-list label{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff}.sub-gateway-list label:has(input:checked){border-color:#e61720;background:#fff8f8}.sub-gateway-list input{position:absolute;opacity:0}.sub-gateway-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#f2f4f8;color:#22344e;font-weight:900}.sub-gateway-list div{display:grid;gap:3px}.sub-gateway-list small{color:var(--muted)}.sub-gateway-list i{width:20px;height:20px;border:2px solid #9aa5b5;border-radius:50%}.sub-gateway-list input:checked~i{border:6px solid #e10d17}.sub-secure-note{display:flex;justify-content:center;align-items:center;gap:7px;margin:28px 0;color:#647186;font-size:.72rem}.sub-gateway-list+.sub-secure-note+.primary-button{width:100%}.sub-checkout-grid,.sub-eft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sub-order-card h2{margin-top:0}.sub-order-card>p{display:flex;justify-content:space-between;gap:15px;padding:10px 0;margin:0;border-bottom:1px solid #edf0f4;font-size:.76rem}.sub-order-card>p span{color:#526077}.sub-selected-gateway{display:flex;align-items:center;gap:12px;padding:13px;border-radius:12px;background:#f7f9fc}.sub-selected-gateway>span{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#fff;color:#d8101a;font-weight:900}.sub-selected-gateway div{display:grid}.sub-order-card h3{margin:18px 0 8px}.sub-live-total{margin-top:14px;padding:11px;border-radius:10px;background:#fff6e7;color:#805b1f}.sub-pay-button{width:100%;margin-top:15px}.sub-terms{text-align:center;color:var(--muted);font-size:.68rem}.sub-processing,.sub-success,.sub-family-card,.sub-cancel-card{display:grid;justify-items:center;gap:11px;text-align:center}.sub-payment-art,.sub-success>span{display:grid;place-items:center;width:118px;height:118px;border-radius:50%;background:#eef6ff;color:#245fbf}.sub-success>span{background:#eaf8ee;color:#1b9d48}.sub-dots{display:flex;gap:7px}.sub-dots i{width:8px;height:8px;border-radius:50%;background:#758398;animation:subdot 1s infinite alternate}.sub-dots i:nth-child(2){animation-delay:.2s}.sub-dots i:nth-child(3){animation-delay:.4s}@keyframes subdot{to{opacity:.25;transform:translateY(-4px)}}.sub-success article{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(500px,100%);padding:15px;border:1px solid var(--line);border-radius:13px;text-align:left}.sub-success article div{display:grid}.sub-success article small{color:var(--muted)}.sub-success .primary-button,.sub-success .secondary-button{width:min(500px,100%)}.sub-eft-grid input[type=file]{width:100%;margin:10px 0 15px;padding:15px;border:1px dashed #aeb8c7;border-radius:12px}.sub-order-card>p.sub-total{margin-top:10px;border:0;font-size:1rem}.sub-manage-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.sub-manage-card header>div{display:flex;align-items:center;gap:18px}.sub-manage-card header span{padding:5px 10px;border-radius:20px;background:#eaf8ee;color:#19833a;font-size:.68rem;font-weight:800}.sub-manage-card nav{display:grid;margin-top:16px}.sub-manage-card nav button{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;padding:14px 0;border:0;border-bottom:1px solid #edf0f4;background:transparent;text-align:left}.sub-manage-card nav button span{padding:0;background:none;color:#26364c;font-size:.82rem}.sub-manage-card nav small{color:var(--muted)}.sub-manage-card nav .danger,.sub-manage-card nav .danger span{color:#d40e18}.sub-manage-card aside,.sub-cancel-card aside{display:flex;align-items:center;gap:8px;margin-top:13px;padding:13px;border-radius:11px;background:#eef4ff;color:#36577f}.danger-button{padding:12px 18px;border:0;border-radius:10px;background:#df0d17;color:#fff;font-weight:800}.text-button{padding:9px;border:0;background:transparent;color:#cf111b;font-weight:750}.sub-history-list{display:grid;gap:9px}.sub-history-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}.sub-history-list article>span{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#eef4ff;color:#2865c9}.sub-history-list article div,.sub-history-list article strong{display:grid;gap:3px}.sub-history-list small{color:var(--muted);font-size:.65rem}.sub-history-list strong{text-align:right}
@media(max-width:720px){.sub-title{align-items:flex-start}.sub-title h1{font-size:1.42rem}.sub-history-link{padding:8px;font-size:.7rem}.sub-steps span{font-size:.6rem}.sub-plan-card header,.sub-detail-card>header{grid-template-columns:auto 1fr}.sub-plan-card header strong,.sub-detail-card header strong{grid-column:2}.sub-feature-grid{grid-template-columns:1fr}.sub-checkout-grid,.sub-eft-grid{grid-template-columns:1fr}.sub-manage-card header,.sub-manage-card header>div{align-items:flex-start;flex-direction:column}.sub-history-list article{grid-template-columns:auto 1fr}.sub-history-list strong{grid-column:2;text-align:left}}

/* My Profile keypad and Referral Wallet v1.1.198 */
.profile-hub-page{max-width:820px;padding-bottom:28px}.profile-hub-page [data-account-overview]{display:grid;gap:14px}.profile-hub-hero{display:grid;gap:12px;padding:22px;border-radius:26px;color:#fff;background:radial-gradient(circle at 88% 4%,rgba(225,16,28,.25),transparent 28%),linear-gradient(145deg,#020b18,#071629 65%,#0c2239);box-shadow:0 18px 42px rgba(3,14,28,.24)}.profile-hub-title h1{max-width:520px;margin:4px 0 0;font-size:clamp(1.35rem,4.8vw,2rem);line-height:1.15}.profile-identity-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:15px;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.07);backdrop-filter:blur(10px)}.profile-identity-card .account-avatar-wrap,.profile-identity-card .account-avatar-wrap img,.profile-identity-card .account-avatar-placeholder{width:76px;height:76px}.profile-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.profile-name-row h2{margin:0;font-size:1.15rem}.profile-identity-card p{margin:4px 0 0;color:rgba(255,255,255,.78);font-size:.77rem}.profile-membership-card{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:11px;width:100%;padding:13px;border:1px solid rgba(255,255,255,.14);border-radius:16px;color:#fff;background:rgba(255,255,255,.065);text-align:left}.profile-membership-card>span:first-child{display:grid;width:43px;height:43px;place-items:center;border-radius:13px;background:rgba(255,255,255,.11)}.profile-membership-card>span:nth-child(2){display:grid;gap:3px}.profile-membership-card small{color:rgba(255,255,255,.68);font-size:.68rem}.profile-membership-card em{font-style:normal}.profile-keypad-section{padding:19px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow-sm)}.profile-keypad-section header{margin-bottom:14px}.profile-keypad-section h2{margin:3px 0 4px;font-size:1.15rem}.profile-keypad-section p{margin:0;color:var(--muted);font-size:.75rem}.profile-keypad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-keypad-tile{display:flex;min-height:160px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px 10px;border:1px solid #e6eaf0;border-radius:17px;background:#fff;text-align:center;box-shadow:0 9px 24px rgba(14,31,52,.07)}.profile-keypad-tile:active{transform:scale(.975)}.profile-keypad-tile>span{display:grid;width:57px;height:57px;place-items:center;border-radius:17px}.profile-keypad-tile b{font-size:.9rem}.profile-keypad-tile small{max-width:150px;color:var(--muted);font-size:.68rem;line-height:1.35}.profile-keypad-tile--red>span{color:#e0222e;background:#fff0f1}.profile-keypad-tile--purple>span{color:#7044bd;background:#f4efff}.profile-keypad-tile--blue>span{color:#2766d9;background:#edf4ff}.profile-keypad-tile--green>span{color:#1e9a53;background:#ebfaef}.profile-security-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid #dce3eb;border-radius:16px;background:linear-gradient(90deg,#eef4fb,#fff);text-align:left}.profile-security-row>span:first-child{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;color:#30445e;background:#fff}.profile-security-row>span:nth-child(2){display:grid;gap:2px}.profile-security-row small{color:var(--muted);font-size:.7rem}.profile-privacy-note{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border-radius:14px;color:#30435d;background:#f2f6fc}.profile-privacy-note>span{display:grid;gap:2px}.profile-privacy-note small{color:#687891;font-size:.68rem;line-height:1.4}

.account-section-page{max-width:820px}.account-page-heading{padding:17px 18px;border:1px solid #e8ebef;border-radius:20px;background:linear-gradient(135deg,#fff,#f7f9fc);box-shadow:var(--shadow-sm)}.account-page-heading h1{margin:3px 0 4px}.account-form-card{overflow:hidden;border-color:#e4e8ee;border-radius:18px;box-shadow:0 8px 24px rgba(15,32,51,.055)}.account-form-card .account-card-heading{margin:-18px -18px 17px;padding:15px 18px;border-bottom:1px solid #edf0f4;background:linear-gradient(90deg,#fafbfc,#fff)}.account-section-page .account-form-card:nth-child(1) .account-card-heading>span{color:#df1e2a;background:#fff0f1}.account-section-page .account-form-card:nth-child(2) .account-card-heading>span{color:#1f9b55;background:#edfaef}.account-section-page .account-form-card:nth-child(3) .account-card-heading>span{color:#6d44bd;background:#f3efff}.account-control{border-radius:12px;background:#fbfcfd}.account-control:focus-within{border-color:#e0202c;box-shadow:0 0 0 4px rgba(225,16,28,.07);background:#fff}.account-save-button{background:linear-gradient(135deg,#ed111e,#c90712)}

.more-keypad-grid--featured{grid-template-columns:1fr}.more-keypad-grid--featured .more-keypad-card{min-height:112px;display:grid;grid-template-columns:auto 1fr auto;justify-items:start;text-align:left;padding:16px 18px;background:linear-gradient(100deg,#f5efff,#fff)}.more-keypad-grid--featured .more-keypad-card .more-keypad-icon{grid-row:1/3}.more-keypad-grid--featured .more-keypad-card b{align-self:end;font-size:1rem}.more-keypad-grid--featured .more-keypad-card small{align-self:start;max-width:none}.more-keypad-grid--featured .more-keypad-card:after{content:'Open';grid-column:3;grid-row:1/3;align-self:center;padding:9px 13px;border-radius:10px;color:#fff;background:#7044bd;font-size:.72rem;font-weight:700}

.referral-wallet-page{max-width:900px;padding-bottom:30px}.referral-wallet-page [data-referral-wallet]{display:grid;gap:14px}.referral-hero{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;padding:24px;border-radius:24px;color:#fff;background:radial-gradient(circle at 86% 15%,rgba(255,198,62,.35),transparent 24%),linear-gradient(135deg,#4c248d,#7441c5 55%,#2c1556);box-shadow:0 18px 42px rgba(75,35,139,.24)}.referral-hero h1{margin:4px 0 8px;font-size:clamp(1.4rem,5vw,2.1rem)}.referral-hero p{max-width:570px;margin:0;color:rgba(255,255,255,.8);font-size:.79rem}.referral-hero-art{display:grid;width:92px;height:92px;place-items:center;border-radius:26px;color:#fff;background:rgba(255,255,255,.14);transform:rotate(3deg)}.referral-code-card{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:9px;padding:15px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}.referral-code-card>div{display:grid;gap:3px}.referral-code-card small{color:var(--muted);font-size:.68rem}.referral-code-card strong{font-size:1.35rem;letter-spacing:.08em}.referral-code-card>button:not(.primary-button):not(.secondary-button){display:grid;width:42px;height:42px;place-items:center;border:1px solid var(--line);border-radius:12px;background:#fff}.referral-code-card .primary-button,.referral-code-card .secondary-button{display:inline-flex;align-items:center;gap:7px;min-height:44px}.referral-wallet-summary{display:grid;grid-template-columns:1.15fr 1fr;gap:12px}.referral-balance-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 11px;padding:20px;border-radius:20px;color:#fff;background:linear-gradient(135deg,#061326,#0c2745)}.referral-balance-card>span{grid-row:1/4;display:grid;width:54px;height:54px;place-items:center;border-radius:16px;color:#ffc43c;background:rgba(255,255,255,.09)}.referral-balance-card small,.referral-balance-card p{color:rgba(255,255,255,.67)}.referral-balance-card strong{font-size:1.65rem}.referral-balance-card p{margin:2px 0 0;font-size:.68rem}.referral-summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.referral-summary-grid article{display:grid;gap:5px;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff}.referral-summary-grid small{color:var(--muted);font-size:.67rem}.referral-summary-grid b{font-size:.95rem}.referral-tabs{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:auto}.referral-tabs button{flex:1;min-width:92px;padding:10px;border:0;border-radius:11px;color:#697389;background:transparent;font-weight:700}.referral-tabs button.is-active{color:#fff;background:#7044bd}.referral-overview-grid,.referral-payout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.referral-overview-grid>article{padding:18px}.referral-how-card h2,.referral-program-card h2,.referral-list-card h2,.referral-bank-form h2,.referral-payout-form h2{margin:0 0 13px;font-size:1rem}.referral-how-card>div{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.referral-how-card>div:last-child{border-bottom:0}.referral-how-card>div>span{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;color:#7044bd;background:#f3efff}.referral-how-card p{display:grid;gap:3px;margin:0}.referral-how-card small,.referral-program-card p{color:var(--muted);font-size:.69rem}.referral-program-card dl{display:grid;margin:0}.referral-program-card dl>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.referral-program-card dl>div:last-child{border-bottom:0}.referral-program-card dt{color:var(--muted);font-size:.73rem}.referral-program-card dd{margin:0;font-size:.76rem;font-weight:700;text-align:right}.referral-subscription-card{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:15px}.referral-subscription-card>span{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;color:#e1101c;background:#fff0f1}.referral-subscription-card h2,.referral-subscription-card p{margin:0}.referral-subscription-card p{color:var(--muted);font-size:.72rem}.referral-list-card,.referral-bank-form,.referral-payout-form{padding:18px}.referral-list-card>header{display:flex;justify-content:space-between;margin-bottom:9px}.referral-list-card>header p{margin:0;color:var(--muted);font-size:.72rem}.referral-person-row,.referral-transaction-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.referral-person-row:last-child,.referral-transaction-row:last-child{border-bottom:0}.referral-person-row>span:first-child,.referral-transaction-icon{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;color:#7044bd;background:#f3efff}.referral-person-row>span:nth-child(2),.referral-transaction-row>span:nth-child(2){display:grid;gap:2px}.referral-person-row small,.referral-transaction-row small{color:var(--muted);font-size:.67rem}.referral-person-row em{padding:5px 8px;border-radius:999px;color:#346840;background:#ebf8ee;font-size:.64rem;font-style:normal}.referral-transaction-icon--positive{color:#17974c;background:#ebfaef}.referral-transaction-icon--negative{color:#bd7a00;background:#fff6df}.referral-transaction-row strong{font-size:.78rem}.referral-transaction-row strong.is-positive{color:#168847}.referral-transaction-row strong.is-negative{color:#bb3a42}.referral-empty{display:grid;justify-items:center;gap:6px;padding:30px;text-align:center;color:#68748a}.referral-empty p{margin:0;font-size:.72rem}.referral-empty.compact{padding:22px}.referral-bank-form,.referral-payout-form{display:grid;align-content:start;gap:11px}.referral-bank-form>p,.referral-payout-form>p{margin:-6px 0 4px;color:var(--muted);font-size:.72rem}.referral-bank-form label,.referral-payout-form label{display:grid;gap:6px;color:#39465a;font-size:.72rem;font-weight:650}.referral-bank-form input,.referral-bank-form select,.referral-payout-form input,.referral-payout-form textarea{min-height:46px;padding:10px 12px;border:1px solid #d8dde5;border-radius:12px;background:#fbfcfd}.referral-payout-form textarea{min-height:105px;resize:vertical}.referral-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.referral-file small{color:var(--muted);font-size:.65rem;font-weight:400}.referral-verification{display:flex;align-items:center;gap:7px;padding:10px 12px;border-radius:12px;font-size:.72rem}.referral-verification--verified{color:#206a3a;background:#edf9f0}.referral-verification--pending{color:#825f15;background:#fff8e5}

@media(max-width:720px){.profile-keypad-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-keypad-tile{min-height:145px}.profile-membership-card{grid-template-columns:auto 1fr auto}.profile-membership-card>svg{display:none}.referral-code-card{grid-template-columns:1fr auto}.referral-code-card .primary-button,.referral-code-card .secondary-button{justify-content:center}.referral-wallet-summary,.referral-overview-grid,.referral-payout-grid{grid-template-columns:1fr}.referral-subscription-card{grid-template-columns:auto 1fr}.referral-subscription-card .primary-button{grid-column:1/-1}.referral-hero-art{width:72px;height:72px}.more-keypad-grid--featured .more-keypad-card{grid-template-columns:auto 1fr}.more-keypad-grid--featured .more-keypad-card:after{display:none}}
@media(max-width:420px){.profile-hub-hero{padding:16px}.profile-identity-card{grid-template-columns:auto 1fr}.profile-hub-title h1{font-size:1.3rem}.profile-keypad-tile{min-height:136px;padding:12px 8px}.profile-keypad-tile>span{width:50px;height:50px}.referral-hero{padding:18px}.referral-hero-art{display:none}.referral-code-card{grid-template-columns:1fr auto}.referral-code-card .primary-button,.referral-code-card .secondary-button{grid-column:1/-1}.referral-form-grid{grid-template-columns:1fr}}

/* Structured Report an Incident flow v1.1.206 */
.report-incident-page{max-width:760px;padding-bottom:28px}.report-page-heading{display:flex;align-items:flex-start;gap:13px;margin:2px 0 18px}.report-page-heading h1{margin:0;color:#07101f;font-size:clamp(1.5rem,5vw,2rem);letter-spacing:-.03em}.report-page-heading p{margin:5px 0 0;color:#657188;font-size:.95rem}.page-back-button{width:42px;height:42px;border-radius:50%;border:1px solid #dce2ea;background:#07101f;color:white;display:grid;place-items:center;flex:none}.report-stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:4px 4px 18px;position:relative}.report-stepper:before{content:"";position:absolute;left:16.67%;right:16.67%;top:15px;height:2px;background:#dce2ea}.report-step{display:grid;justify-items:center;gap:7px;position:relative;z-index:1;text-align:center;color:#7b8496}.report-step span{width:31px;height:31px;border:2px solid #cbd2dc;background:white;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.85rem}.report-step small{font-size:.72rem;line-height:1.2;max-width:94px}.report-step.current,.report-step.done{color:#d90b18}.report-step.current span{background:#e30714;color:white;border-color:#e30714}.report-step.done span{background:#07101f;color:white;border-color:#07101f}.report-section-card,.report-review-card,.report-review-heading{background:#fff;border:1px solid #e4e8ef;border-radius:18px;padding:17px;margin-bottom:14px;box-shadow:0 8px 24px rgba(6,16,31,.045)}.report-section-card h2,.report-review-heading h2{margin:0 0 13px;color:#101827;font-size:1.08rem}.report-section-card h2 small{font-weight:500;color:#7e8798;font-size:.78rem}.report-section-card>p,.report-review-heading p{margin:-5px 0 15px;color:#667086;font-size:.88rem}.report-type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.report-type-grid button{min-height:112px;padding:12px 7px;border:1px solid #e2e6ed;background:#fff;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#263248}.report-type-grid button span{color:#3e4b62}.report-type-grid button strong{font-size:.9rem;color:#111827}.report-type-grid button small{font-size:.68rem;line-height:1.2;color:#768095}.report-type-grid button.selected{border-color:#ef2632;background:#fff7f7;box-shadow:0 0 0 1px #ef2632}.report-type-grid button.selected span,.report-type-grid button.selected strong{color:#df0c19}.report-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:11px}.report-location-input{height:49px;border:1px solid #dce2ea;border-radius:13px;display:flex;align-items:center;padding-left:13px;overflow:hidden;background:white}.report-location-input>span{color:#46536a}.report-location-input input{border:0;outline:0;min-width:0;flex:1;padding:0 10px;font:inherit;color:#172033;background:transparent}.report-location-input button{height:100%;width:50px;border:0;border-left:1px solid #e2e6ed;background:#f7f9fc;color:#d70b18}.incident-report-map{height:190px;border-radius:15px;margin-top:11px;background:#edf1f5;overflow:hidden;border:1px solid #e1e5eb}.report-use-location{margin-top:10px;width:100%;display:flex;justify-content:center;gap:7px}.report-location-status{display:block;margin-top:8px;color:#768095;text-align:center}.report-question{margin-top:16px}.report-question>strong{display:block;font-size:.88rem;margin-bottom:8px;color:#202a3c}.report-segment{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dfe4eb;border-radius:12px;overflow:hidden}.report-segment button{height:43px;border:0;background:#fff;color:#35425a;font-weight:700}.report-segment button+button{border-left:1px solid #e1e5eb}.report-segment button.active{background:#e50815;color:white}.field-count{display:block;text-align:right;margin-top:5px;color:#7a8496}.report-sos-note,.report-privacy-note,.report-success-note{border-radius:14px;padding:13px 14px;display:flex;gap:10px;align-items:flex-start;background:#fff1f1;color:#9f0c17;border:1px solid #ffd8db;font-size:.84rem;line-height:1.35;margin-bottom:15px}.report-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:11px;margin:17px 0 5px}.report-actions.single{grid-template-columns:1fr}.report-actions button{min-height:49px;display:flex;align-items:center;justify-content:center;gap:7px}.report-evidence-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.report-evidence-card,.report-add-evidence{height:108px;border:1px solid #dce2ea;border-radius:12px;overflow:hidden;position:relative;background:#f7f9fc;display:flex;align-items:center;justify-content:center;flex-direction:column}.report-evidence-card img{width:100%;height:100%;object-fit:cover}.report-evidence-card>span{font-size:.75rem;font-weight:800;color:#526076}.report-evidence-card button{position:absolute;right:4px;top:4px;width:25px;height:25px;border:0;border-radius:50%;background:rgba(5,12,24,.84);color:white;font-size:1.1rem}.report-evidence-card small{position:absolute;left:3px;right:3px;bottom:3px;background:rgba(5,12,24,.78);color:#fff;padding:3px 4px;border-radius:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.6rem}.report-add-evidence{border-style:dashed;color:#d70b18;cursor:pointer}.report-add-evidence input{display:none}.report-add-evidence span{font-size:2rem;line-height:1}.report-add-evidence small{color:#3f4b60}.report-file-tip{margin-top:10px;border-radius:9px;background:#f1f4f8;color:#667086;padding:8px 10px;font-size:.72rem}.report-add-row{width:100%;height:45px;border:1px dashed #c9d1dc;background:#fafbfc;border-radius:12px;color:#1e5fd1;font-weight:750;margin-top:8px}.report-added-row{min-height:62px;border:1px solid #e3e7ed;border-radius:12px;padding:9px 10px;display:flex;align-items:center;gap:10px;margin-bottom:8px}.report-added-row>span{color:#dc101c}.report-added-row div{flex:1;min-width:0}.report-added-row strong,.report-added-row small{display:block}.report-added-row small{color:#758094;margin-top:3px}.report-added-row button{border:0;background:transparent;color:#d90c18;font-size:.75rem}.report-vehicle-list{display:grid;gap:9px}.report-vehicle-option{width:100%;min-height:65px;border:1px solid #e0e5ec;background:#fff;border-radius:13px;padding:9px 11px;display:flex;align-items:center;gap:10px;text-align:left}.report-vehicle-option.selected{border-color:#1f73e8;background:#f4f8ff}.report-vehicle-icon{width:43px;height:43px;border-radius:12px;background:#eaf2ff;color:#1767d7;display:grid;place-items:center}.report-vehicle-option>span:nth-child(2){flex:1}.report-vehicle-option strong,.report-vehicle-option small{display:block}.report-vehicle-option small{color:#6e788c;margin-top:3px}.report-check{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#edf1f6;color:#546176;font-weight:800}.report-vehicle-option.selected .report-check{background:#1c70df;color:white}.report-review-heading{padding-bottom:5px;border:0;box-shadow:none;background:transparent}.report-review-card{padding:8px 14px}.report-review-card h3{display:flex;justify-content:space-between;align-items:center;font-size:.98rem;margin:8px 0 12px}.report-review-card h3 span{font-size:.75rem;color:#758094}.report-review-row{display:grid;grid-template-columns:28px minmax(105px,.7fr) 1.3fr;gap:7px;align-items:start;padding:11px 0;border-bottom:1px solid #edf0f4}.report-review-row:last-child{border-bottom:0}.report-review-row>span{color:#34435b}.report-review-row strong{font-size:.79rem;color:#202a3c}.report-review-row p{margin:0;text-align:right;color:#35425a;font-size:.8rem;line-height:1.35;overflow-wrap:anywhere}.report-evidence-grid.review{margin-bottom:8px}.report-success-view{text-align:center;background:#fff;border:1px solid #e1e6ed;border-radius:22px;padding:28px 18px;box-shadow:0 12px 35px rgba(6,16,31,.07)}.report-success-icon{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#31ad58;color:white;font-size:2.5rem;box-shadow:0 10px 25px rgba(49,173,88,.22)}.report-success-view h1{font-size:1.55rem;margin:7px 0;color:#111827}.report-success-view>p{color:#697388;max-width:420px;margin:0 auto 20px}.report-number-card{border:1px solid #e1e6ed;border-radius:16px;padding:16px;margin:18px 0;display:grid;gap:7px}.report-number-card small,.report-number-card span{color:#6e788b}.report-number-card strong{font-size:1.25rem;color:#e00714;letter-spacing:.02em}.report-number-card button{margin:auto;border:0;background:#f1f4f8;color:#27344a;border-radius:9px;padding:7px 12px;display:flex;gap:6px;align-items:center}.report-map-error{height:100%;display:grid;place-items:center;padding:18px;text-align:center;color:#6e788b}.page-loading-state{padding:35px;text-align:center;color:#687388}.empty-state.compact{padding:18px}.report-success-view>.full{margin-top:10px;min-height:48px}
@media(max-width:520px){.report-type-grid{grid-template-columns:repeat(2,1fr)}.report-evidence-grid{grid-template-columns:repeat(3,1fr)}.report-review-row{grid-template-columns:25px 95px 1fr}.report-section-card,.report-review-card{padding:14px}.report-step small{font-size:.65rem}.report-two-columns{gap:8px}}
@media(max-width:360px){.report-evidence-grid{grid-template-columns:repeat(2,1fr)}.report-actions{grid-template-columns:1fr}.report-review-row{grid-template-columns:24px 1fr}.report-review-row p{grid-column:2;text-align:left}.report-step small{max-width:75px}}


/* TrackSOS v1.1.201 Safe Zone full-width and readability update */
.safe-zones-page-v3{width:100%;max-width:none;padding-inline:clamp(12px,2.2vw,28px);}
.safe-zone-panel,.safe-zone-map-card,.safe-zone-list,.safe-zone-settings-card,.safe-zone-shared-list,.safe-zone-alert-list{width:100%;}
.safe-zone-row{min-height:132px;padding:18px;}
.safe-zone-row strong{font-size:.86rem}.safe-zone-row small{font-size:.66rem}.safe-zone-row p{font-size:.62rem;line-height:1.5}
.safe-zone-shortcuts button{min-height:94px;padding:16px}.safe-zone-shortcuts strong{font-size:.78rem}.safe-zone-shortcuts small{font-size:.64rem}
.safe-zone-info-banner{min-height:102px;padding:20px}.safe-zone-info-banner strong{font-size:.88rem}.safe-zone-info-banner p{font-size:.68rem}
.safe-zone-shared-row,.safe-zone-alert-row{min-height:96px;padding:16px 18px}.safe-zone-shared-row strong,.safe-zone-alert-row strong{font-size:.82rem}.safe-zone-shared-row small,.safe-zone-alert-row small{font-size:.65rem}
.settings-battery-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:center;margin:18px 0 8px;padding:18px;border:1px solid #dce2e8;border-radius:16px;background:linear-gradient(145deg,#fff,#f7f9fc);box-shadow:0 8px 22px rgba(20,31,45,.07)}
.settings-battery-icon{width:52px;height:52px}.settings-battery-card label{display:grid;gap:10px}.settings-battery-card label>span{display:grid;gap:4px}.settings-battery-card b{font-size:.9rem}.settings-battery-card small{color:var(--muted);font-size:.72rem;line-height:1.45}.settings-select-wrap{position:relative;display:flex;align-items:center}.settings-select-wrap select{width:100%;height:52px;padding:0 48px 0 15px;border:1px solid #cfd7e1;border-radius:13px;appearance:none;background:#fff;font-size:.86rem;font-weight:650}.settings-select-wrap svg{position:absolute;right:15px;pointer-events:none}


/* TrackSOS v1.1.203 corrected Safe Zone full-width layout */
.safe-zones-page-v3 {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  gap: 22px;
}
.safe-zones-page-v3 > *,
.safe-zone-panel,
.safe-zone-map-card,
.safe-zone-list,
.safe-zone-shared-list,
.safe-zone-alert-list,
.safe-zone-settings-card,
.safe-zone-rule-grid,
.safe-zone-info-banner { width: 100%; max-width: none; min-width: 0; }
.safe-zone-panel { gap: 20px; }
.safe-zones-intro { padding-inline: 2px; }
.safe-zone-map-toolbar { padding-inline: 2px; }
.safe-zone-map-card { height: clamp(440px, 58vw, 620px); }
.safe-zone-list-heading,
.safe-zone-panel-heading { padding: 4px 2px 0; }
.safe-zone-row {
  grid-template-columns: minmax(0, 1fr) 106px;
  min-height: 146px;
  padding: 0;
}
.safe-zone-row-main {
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px 14px 20px 20px;
}
.safe-zone-type-icon { width: 60px; height: 60px; }
.safe-zone-row-copy { gap: 7px; }
.safe-zone-row-copy strong,
.safe-zone-row-copy small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.safe-zone-row-copy strong { font-size: 17px; line-height: 1.25; }
.safe-zone-row-copy small { font-size: 14px; line-height: 1.42; }
.safe-zone-row-copy > span { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.safe-zone-state { font-size: 12px; padding: 7px 11px; }
.safe-zone-row-actions {
  grid-template-columns: repeat(2, minmax(42px, 1fr));
  gap: 9px;
  align-content: center;
  padding: 16px 14px 16px 4px;
}
.safe-zone-row-actions button { width: 100%; height: 43px; border-radius: 12px; }
.safe-zone-shortcuts { width: 100%; gap: 12px; }
.safe-zone-shortcuts button { min-height: 112px; padding: 18px; }
.safe-zone-shortcuts button > span { width: 50px; height: 50px; }
.safe-zone-shortcuts strong { font-size: 16px; }
.safe-zone-shortcuts small { font-size: 14px; }
.safe-zone-info-banner { min-height: 116px; padding: 22px 24px; }
.safe-zone-info-banner strong { font-size: 17px; }
.safe-zone-info-banner p { font-size: 15px; }
.safe-zone-shared-row,
.safe-zone-alert-row { min-height: 112px; padding: 20px; }
.safe-zone-shared-row strong,
.safe-zone-alert-row strong { font-size: 16px; }
.safe-zone-shared-row small,
.safe-zone-alert-row small,
.safe-zone-shared-row p,
.safe-zone-alert-row p { font-size: 14px; }
.safe-zone-setting-row { min-height: 96px; padding: 18px 20px; }
.safe-zone-setting-row strong { font-size: 16px; }
.safe-zone-setting-row small { font-size: 14px; }
.safe-zone-rule-grid article { min-height: 122px; padding: 20px; }
@media (max-width: 680px) {
  .safe-zones-page-v3 { gap: 18px; }
  .safe-zones-intro { align-items: stretch; flex-direction: column; padding-inline: 2px; }
  .safe-zone-create-button { width: 100%; min-height: 52px; }
  .safe-zone-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(104px, 1fr)); }
  .safe-zone-tabs button { min-height: 52px; font-size: 14px; }
  .safe-zone-map-toolbar { align-items: stretch; }
  .safe-zone-map-toolbar label { flex: 1; min-width: 0; }
  .safe-zone-map-card { height: 440px; border-radius: 18px; }
  .safe-zone-list-heading,
  .safe-zone-panel-heading { align-items: stretch; flex-direction: column; }
  .safe-zone-list-heading label,
  .safe-zone-panel-heading label { width: 100%; justify-content: space-between; }
  .safe-zone-list-heading select,
  .safe-zone-panel-heading select { flex: 1; }
  .safe-zone-row { grid-template-columns: 1fr; min-height: 0; }
  .safe-zone-row-main { grid-template-columns: 58px minmax(0, 1fr); padding: 18px 16px; }
  .safe-zone-type-icon { width: 54px; height: 54px; }
  .safe-zone-state { grid-column: 2; justify-self: start; align-self: auto; margin-top: 3px; }
  .safe-zone-row-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 16px 17px;
    border-top: 1px solid #edf0f2;
  }
  .safe-zone-row-actions button { height: 46px; }
  .safe-zone-shortcuts { grid-template-columns: 1fr; }
  .safe-zone-shortcuts button { width: 100%; min-height: 106px; }
  .safe-zone-info-banner { align-items: stretch; flex-direction: column; }
  .safe-zone-info-banner button { width: 100%; justify-content: center; }
  .safe-zone-shared-row,
  .safe-zone-alert-row { grid-template-columns: 48px minmax(0, 1fr); }
  .safe-zone-shared-row > em,
  .safe-zone-alert-row > em,
  .safe-zone-alert-row > button { grid-column: 2; justify-self: start; }
  .safe-zone-rule-grid { grid-template-columns: 1fr; }
}

/* TrackSOS v1.1.203 Report an Incident larger text */
.report-incident-page { max-width: 820px; }
.report-page-heading h1 { font-size: clamp(30px, 6vw, 38px); line-height: 1.08; }
.report-page-heading p { font-size: 17px; line-height: 1.5; }
.report-step small { max-width: 118px; font-size: 14px; line-height: 1.3; }
.report-step span { width: 36px; height: 36px; font-size: 15px; }
.report-stepper::before { top: 18px; }
.report-section-card,
.report-review-card { padding: 21px; }
.report-section-card h2,
.report-review-heading h2 { font-size: 20px; line-height: 1.25; }
.report-section-card h2 small { font-size: 15px; }
.report-section-card > p,
.report-review-heading p { font-size: 16px; line-height: 1.5; }
.report-type-grid button { min-height: 128px; padding: 15px 9px; }
.report-type-grid button strong { font-size: 16px; line-height: 1.25; }
.report-type-grid button small { font-size: 14px; line-height: 1.32; }
.report-location-input { min-height: 54px; height: auto; }
.report-location-input input,
.report-section-card textarea,
.report-section-card input { font-size: 16px; }
.report-question > strong { font-size: 16px; }
.report-segment button,
.report-actions button,
.report-use-location,
.report-add-row { font-size: 16px; }
.report-location-status,
.field-count,
.report-file-tip { font-size: 14px; line-height: 1.45; }
.report-sos-note,
.report-privacy-note,
.report-success-note { font-size: 15px; line-height: 1.5; }
.report-added-row strong,
.report-vehicle-option strong { font-size: 16px; }
.report-added-row small,
.report-vehicle-option small { font-size: 14px; }
.report-added-row button { font-size: 14px; }
.report-review-card h3 { font-size: 18px; }
.report-review-card h3 span,
.report-review-row strong { font-size: 14px; }
.report-review-row p { font-size: 15px; line-height: 1.45; }
.report-success-view h1 { font-size: 28px; }
.report-success-view > p { font-size: 16px; }
.report-number-card small,
.report-number-card span { font-size: 14px; }
.report-number-card strong { font-size: 22px; }
@media (max-width: 520px) {
  .report-section-card,
  .report-review-card { padding: 17px; }
  .report-step small { font-size: 13px; max-width: 100px; }
  .report-type-grid button { min-height: 122px; }
  .report-review-row { grid-template-columns: 26px minmax(92px, .75fr) minmax(0, 1.25fr); }
}
@media (max-width: 360px) {
  .report-page-heading h1 { font-size: 28px; }
  .report-page-heading p { font-size: 16px; }
  .report-two-columns { grid-template-columns: 1fr; }
}

/* TrackSOS v1.1.203 Notification Centre heading alignment */
.notifications-page-heading { margin-bottom: 22px; }
.notifications-page-heading > .page-kicker { margin-bottom: 7px; }
.notifications-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}
.notifications-title-row h1 { min-width: 0; margin: 0; }
.notifications-clear-read { flex: 0 0 auto; min-height: 43px; padding-inline: 15px; font-size: 14px; }
.notifications-page-heading > p { max-width: 660px; margin-top: 7px; font-size: 15px; }
.notification-row { min-width: 0; }
.notification-row > div { min-width: 0; }
.notification-row h3 { font-size: 17px; }
.notification-row p { font-size: 15px; }
.notification-row small { font-size: 13.5px; }
@media (max-width: 360px) {
  .notifications-title-row { gap: 8px; }
  .notifications-clear-read { min-height: 40px; padding-inline: 11px; font-size: 13px; }
}

/* TrackSOS v1.1.203 full-width Nearby Help and responsive content */
.nearby-help-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 30px;
}
.nearby-help-page > *,
.nearby-results-section,
.nearby-place-list,
.nearby-map-shell,
.nearby-search-shell,
.nearby-sos-card { width: 100%; max-width: none; }
.nearby-map-shell { height: clamp(390px, 56dvh, 660px); border-radius: 20px; }
.nearby-place-row { grid-template-columns: minmax(0, 1fr) auto; width: 100%; min-height: 108px; padding: 14px 16px; }
.nearby-place-copy strong { font-size: 1rem; white-space: normal; overflow: visible; }
.nearby-place-copy small { font-size: .82rem; white-space: normal; overflow: visible; line-height: 1.4; }
.nearby-place-copy em { font-size: .76rem; white-space: normal; overflow: visible; }
.nearby-place-actions { grid-template-columns: repeat(3, minmax(62px, 72px)); }
.nearby-place-actions button { min-height: 64px; font-size: .72rem; }
.nearby-results-heading small,
.nearby-sort-control,
.nearby-sort-control select,
.nearby-warning { font-size: .8rem; }
.nearby-category-button small { font-size: .77rem; }
.nearby-search-shell input { font-size: 1rem; }
.nearby-map-status { font-size: .76rem; }
.nearby-map-locate { font-size: .82rem; }
.nearby-sos-card p { font-size: .84rem; }
.nearby-sos-card > button { font-size: .84rem; }
@media (max-width: 720px) {
  .nearby-help-page { padding-inline: 0; }
  .nearby-map-shell { height: min(58dvh, 540px); min-height: 390px; border-radius: 17px; }
  .nearby-page-intro,
  .nearby-search-shell,
  .nearby-category-rail,
  .nearby-results-section,
  .nearby-sos-card { width: 100%; }
  .nearby-place-row { grid-template-columns: 1fr; gap: 12px; padding: 15px 12px; }
  .nearby-place-main { width: 100%; grid-template-columns: 52px minmax(0, 1fr); }
  .nearby-place-actions { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nearby-place-actions button { width: 100%; min-width: 0; }
  .nearby-results-heading { align-items: flex-start; flex-direction: column; }
  .nearby-sort-control { width: 100%; justify-content: space-between; }
  .nearby-sort-control select { min-width: 132px; }
  .nearby-sos-card { grid-template-columns: 58px minmax(0, 1fr); }
  .nearby-sos-card > button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 380px) {
  .nearby-category-rail { grid-template-columns: repeat(7, minmax(72px, 1fr)); }
  .nearby-search-shell { grid-template-columns: 30px minmax(0, 1fr) 43px; padding-left: 12px; }
  .nearby-place-main { grid-template-columns: 46px minmax(0, 1fr); gap: 9px; }
  .nearby-place-icon { width: 44px; height: 44px; }
}

/* Rewards / Refer feature border */
.more-keypad-section--featured {
  padding: 15px;
  border: 2px solid #8052c7;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbf8ff, #fffaf0);
  box-shadow: 0 0 0 4px rgba(225, 169, 50, .18), 0 15px 34px rgba(72, 39, 127, .12);
}
.more-keypad-section--featured h2 { color: #5f369d; }
.more-keypad-section--featured .more-keypad-card { border: 1px solid rgba(128, 82, 199, .34); }

/* Permanent account-deletion entry and confirmation sheet */
.more-delete-account-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-top: 11px;
  padding: 13px 15px;
  border: 1px solid #efb9bd;
  border-radius: 15px;
  color: #a70c15;
  background: #fff7f7;
  text-align: left;
  box-shadow: 0 7px 20px rgba(176, 13, 23, .08);
}
.more-delete-account-row > span:nth-child(2) { display: grid; gap: 2px; }
.more-delete-account-row small { color: #8a555a; }
.account-delete-backdrop {
  position: fixed;
  z-index: 720;
  inset: 0;
  display: grid;
  align-items: end;
  background: rgba(4, 10, 18, .58);
  backdrop-filter: blur(5px);
}
.account-delete-sheet {
  width: min(100%, 680px);
  max-height: 88dvh;
  margin: 0 auto;
  padding: 22px;
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -24px 64px rgba(0,0,0,.28);
}
.account-delete-sheet header { display: flex; justify-content: space-between; gap: 16px; }
.account-delete-sheet header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f0f2f4; font-size: 1.45rem; }
.account-delete-warning { margin: 16px 0; padding: 14px; border: 1px solid #efc5c8; border-radius: 15px; color: #791018; background: #fff5f5; }
.account-delete-sheet label { display: grid; gap: 7px; margin-top: 13px; }
.account-delete-sheet input,
.account-delete-sheet textarea { width: 100%; min-height: 51px; padding: 12px 13px; border: 1px solid #d9dde2; border-radius: 13px; background: #fff; }
.account-delete-sheet textarea { min-height: 88px; resize: vertical; }
.account-delete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (max-width: 440px) { .account-delete-actions { grid-template-columns: 1fr; } }

/* TrackSOS v1.1.206 Legal & Policies Centre */
.legal-centre-page,
.legal-document-page,
.legal-update-page,
.legal-receipt-page {
  width: min(100%, 1060px);
  padding-bottom: 28px;
}
.legal-centre-heading {
  margin-bottom: 19px;
  text-align: center;
}
.legal-centre-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(2rem, 5vw, 2.75rem);
}
.legal-centre-heading p {
  max-width: 680px;
  margin: 0 auto;
  font-size: .96rem;
}
.legal-loading {
  display: grid;
  min-height: 46vh;
  place-items: center;
  align-content: center;
  gap: 13px;
  color: #697386;
}
.legal-loading span {
  width: 35px;
  height: 35px;
  border: 3px solid #e5e8ed;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: legal-spin .7s linear infinite;
}
@keyframes legal-spin { to { transform: rotate(360deg); } }
.legal-agreement-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 17px;
  padding: 23px;
  border: 1px solid #edd8d9;
  border-radius: 21px;
  background: linear-gradient(130deg, #fff, #fff8f8);
  box-shadow: 0 12px 32px rgba(17, 24, 39, .07);
}
.legal-agreement-card.is-accepted {
  border-color: #dce9df;
  background: linear-gradient(130deg, #fff, #f8fff9);
}
.legal-agreement-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  color: #dc1420;
  background: #fff0f1;
}
.legal-agreement-card.is-accepted .legal-agreement-icon {
  color: #187b3b;
  background: #ecf9ef;
}
.legal-agreement-copy .page-kicker { margin-bottom: 5px; }
.legal-agreement-copy h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}
.legal-agreement-copy dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}
.legal-agreement-copy dl div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.legal-agreement-copy dt {
  color: #717987;
  font-size: .72rem;
}
.legal-agreement-copy dd {
  margin: 0;
  color: #1f2937;
  font-size: .76rem;
  font-weight: 700;
}
.legal-agreement-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 330px;
  gap: 10px;
}
.legal-agreement-actions button {
  min-height: 48px;
  border-radius: 12px;
  font-size: .78rem;
}
.legal-search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 17px;
  padding: 0 17px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  color: #7b8492;
  background: #fff;
  box-shadow: 0 7px 20px rgba(13, 24, 40, .05);
}
.legal-search-box:focus-within {
  border-color: #ef8f95;
  box-shadow: 0 0 0 4px rgba(239, 27, 36, .08);
}
.legal-search-box input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  color: #172033;
  background: transparent;
  font-size: .9rem;
}
.legal-search-box button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #5b6472;
  background: #f1f3f6;
  font-size: 1.25rem;
}
.legal-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.legal-category-card {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(13, 24, 40, .055);
}
.legal-category-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px 12px;
}
.legal-category-card > header > span {
  display: grid;
  flex: 0 0 auto;
  width: 49px;
  height: 49px;
  place-items: center;
  border-radius: 50%;
  color: #dd1420;
  background: #fff0f1;
}
.legal-category-card > header h2 {
  margin: 0 0 3px;
  font-size: 1.02rem;
}
.legal-category-card > header small {
  color: #818998;
  font-size: .67rem;
}
.legal-category-list {
  padding: 0 17px;
}
.legal-category-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  color: #111827;
  background: transparent;
  text-align: left;
}
.legal-category-list > button:last-child { border-bottom: 0; }
.legal-category-list > button > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.legal-category-list b {
  overflow: hidden;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legal-category-list small {
  display: -webkit-box;
  overflow: hidden;
  color: #6f7887;
  font-size: .68rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.legal-category-list em {
  color: #969da8;
  font-size: .59rem;
  font-style: normal;
}
.legal-category-list > button > svg {
  color: #566170;
  transition: transform .16s ease;
}
.legal-category-list > button:hover > svg,
.legal-category-list > button:focus-visible > svg { transform: translateX(3px); }
.legal-view-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 34px);
  min-height: 46px;
  margin: 7px 17px 13px;
  padding: 0;
  border: 0;
  border-top: 1px solid #edf0f3;
  color: #d90f1b;
  background: transparent;
  font-size: .75rem;
  font-weight: 750;
}
.legal-category-empty {
  padding: 22px 0;
  color: #7c8490;
  text-align: center;
  font-size: .76rem;
}
.legal-no-results {
  display: grid;
  margin-bottom: 16px;
  padding: 25px;
  place-items: center;
  border: 1px dashed #cfd5dd;
  border-radius: 17px;
  color: #7b8492;
  background: #fafbfc;
  text-align: center;
}
.legal-no-results h2 { margin: 8px 0 3px; }
.legal-why-card,
.legal-privacy-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 17px;
  padding: 17px 20px;
  border: 1px solid #dfe3e8;
  border-radius: 17px;
  background: linear-gradient(120deg, #f6f8fa, #fff);
}
.legal-why-card > span,
.legal-privacy-strip > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  color: #303a49;
  background: #fff;
  box-shadow: 0 5px 14px rgba(14, 25, 41, .08);
}
.legal-why-card h2,
.legal-privacy-strip b { margin: 0 0 3px; font-size: .88rem; }
.legal-why-card p,
.legal-privacy-strip p { font-size: .73rem; }
.legal-privacy-strip {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-color: #eadcdf;
  background: linear-gradient(120deg, #fff, #fff8f8);
}
.legal-privacy-strip > span { color: #d90f1b; background: #fff0f1; }
.legal-privacy-strip button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  color: #d90f1b;
  background: transparent;
  font-size: .73rem;
  font-weight: 750;
}
.legal-document-page {
  max-width: 850px;
}
.legal-document-heading {
  margin-bottom: 16px;
}
.legal-document-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(2rem, 5vw, 2.75rem);
}
.legal-document-heading p {
  font-size: .8rem;
}
.legal-document-heading p span { margin: 0 7px; }
.legal-policy-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 19px;
  padding: 17px;
  border: 1px solid #f0b7ba;
  border-radius: 15px;
  color: #8f0d15;
  background: #fff3f4;
}
.legal-policy-summary > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}
.legal-policy-summary p {
  color: #352a2c;
  font-size: .84rem;
}
.legal-policy-toc {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
}
.legal-policy-toc h2 {
  margin: 0;
  padding: 14px 17px 8px;
  font-size: .86rem;
}
.legal-policy-toc button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 43px;
  padding: 8px 17px;
  border: 0;
  border-top: 1px solid #f0f2f4;
  background: #fff;
  text-align: left;
}
.legal-policy-toc button span { color: #d90f1b; font-size: .72rem; font-weight: 800; }
.legal-policy-toc button b { font-size: .75rem; font-weight: 650; }
.legal-policy-toc button svg { color: #606a78; }
.legal-policy-content {
  padding: 5px 4px 18px;
}
.legal-policy-content h2 {
  display: flex;
  gap: 8px;
  margin: 25px 0 9px;
  padding-top: 3px;
  scroll-margin-top: calc(var(--header-height) + 18px);
  font-size: 1.15rem;
}
.legal-policy-content h2:first-child { margin-top: 4px; }
.legal-policy-content h2 span { color: #d90f1b; }
.legal-policy-content p,
.legal-policy-content li {
  color: #404957;
  font-size: .86rem;
  line-height: 1.65;
}
.legal-policy-content ul { padding-left: 22px; }
.legal-document-actions {
  position: sticky;
  bottom: calc(var(--footer-height) + env(safe-area-inset-bottom) + 8px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 28px rgba(13, 24, 40, .12);
  backdrop-filter: blur(14px);
}
.legal-document-actions button { min-height: 49px; }
.legal-update-page { max-width: 760px; }
.legal-update-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 15px;
}
.legal-update-hero > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #d90f1b;
  background: #fff0f1;
}
.legal-update-hero h1 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 5vw, 2.45rem);
}
.legal-change-card {
  margin-bottom: 14px;
  padding: 17px 19px;
  border: 1px solid #f0dda3;
  border-radius: 15px;
  background: #fff9df;
}
.legal-change-card h2 { margin: 0 0 9px; font-size: .92rem; }
.legal-change-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.legal-change-card li {
  position: relative;
  padding-left: 22px;
  color: #4b4a3c;
  font-size: .78rem;
  line-height: 1.45;
}
.legal-change-card li::before {
  position: absolute;
  left: 0;
  color: #7f6a12;
  content: "✓";
  font-weight: 850;
}
.legal-update-details {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
}
.legal-update-details > div,
.legal-update-details > button {
  display: grid;
  grid-template-columns: 27px 145px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 60px;
  padding: 11px 15px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  text-align: left;
}
.legal-update-details > :last-child { border-bottom: 0; }
.legal-update-details span { color: #465366; }
.legal-update-details b { font-size: .73rem; }
.legal-update-details p { color: #4d5766; font-size: .72rem; }
.legal-update-details > button p { color: #d90f1b; }
.legal-consent-form {
  display: grid;
  gap: 10px;
}
.legal-consent-form label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  background: #fff;
  color: #333d4b;
  font-size: .78rem;
  line-height: 1.45;
}
.legal-consent-form input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--red);
}
.legal-consent-form button { margin-top: 3px; }
.legal-receipt-page { max-width: 690px; }
.legal-receipt-card {
  padding: 26px;
  border: 1px solid #d9e8dc;
  border-radius: 21px;
  background: linear-gradient(145deg, #fff, #f8fff9);
  box-shadow: 0 12px 34px rgba(13, 24, 40, .08);
  text-align: center;
}
.legal-receipt-check {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2aa152;
  box-shadow: 0 12px 26px rgba(42, 161, 82, .25);
  font-size: 2rem;
  font-weight: 800;
}
.legal-receipt-card h1 { margin-bottom: 5px; }
.legal-receipt-card > p { margin-bottom: 17px; }
.legal-receipt-card dl {
  overflow: hidden;
  margin: 0 0 17px;
  border: 1px solid #dfe5e0;
  border-radius: 15px;
  background: #fff;
  text-align: left;
}
.legal-receipt-card dl div {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr);
  gap: 13px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1ee;
}
.legal-receipt-card dl div:last-child { border-bottom: 0; }
.legal-receipt-card dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #596574;
  font-size: .72rem;
  font-weight: 650;
}
.legal-receipt-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #1e2937;
  font-size: .75rem;
  font-weight: 700;
}
.legal-sync-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #f2d79b;
  border-radius: 11px;
  color: #6e5715;
  background: #fff8df;
  font-size: .72rem;
  line-height: 1.4;
}
@media (max-width: 820px) {
  .legal-agreement-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .legal-agreement-actions {
    grid-column: 1 / -1;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .legal-centre-page,
  .legal-document-page,
  .legal-update-page,
  .legal-receipt-page { padding-bottom: 16px; }
  .legal-centre-heading { text-align: left; }
  .legal-centre-heading h1,
  .legal-document-heading h1 { font-size: 1.8rem; }
  .legal-centre-heading p { margin: 0; font-size: .84rem; }
  .legal-category-grid { grid-template-columns: 1fr; gap: 12px; }
  .legal-agreement-card { padding: 17px; gap: 13px; }
  .legal-agreement-icon { width: 54px; height: 54px; }
  .legal-agreement-copy h2 { font-size: .98rem; }
  .legal-agreement-copy dl { display: grid; gap: 4px; }
  .legal-search-box { min-height: 52px; }
  .legal-search-box input { height: 50px; font-size: .82rem; }
  .legal-category-card > header { padding: 15px 15px 10px; }
  .legal-category-list { padding: 0 15px; }
  .legal-privacy-strip { grid-template-columns: auto minmax(0, 1fr); }
  .legal-privacy-strip button { grid-column: 2; justify-self: start; }
  .legal-document-actions { grid-template-columns: 1fr; }
  .legal-update-details > div,
  .legal-update-details > button {
    grid-template-columns: 27px minmax(0, 1fr) auto;
  }
  .legal-update-details b { grid-column: 2; }
  .legal-update-details p { grid-column: 2 / -1; }
  .legal-update-details > button > svg:last-child { grid-column: 3; grid-row: 1 / span 2; }
  .legal-receipt-card { padding: 19px 15px; }
  .legal-receipt-card dl div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 460px) {
  .legal-agreement-card { grid-template-columns: 1fr; }
  .legal-agreement-icon { margin-bottom: -2px; }
  .legal-agreement-actions { grid-template-columns: 1fr; }
  .legal-category-list b { white-space: normal; }
  .legal-policy-summary { grid-template-columns: 1fr; }
  .legal-update-hero { grid-template-columns: 1fr; }
  .legal-update-hero > span { width: 51px; height: 51px; }
  .legal-document-actions { position: static; }
}
@media print {
  body { background: #fff; }
  .global-header,
  .global-footer,
  .legal-document-actions,
  .toast-root { display: none; }
  .content-main { padding: 0; }
  .legal-print-scope { max-width: none; padding: 18mm; }
  .legal-policy-toc { break-inside: avoid; }
  .legal-policy-content h2 { break-after: avoid; }
}

/* v1.1.206 Safe Zone, Check In and Nearby Help functional layout repairs */
.safe-zone-modal-backdrop {
  z-index: 1200;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.safe-zone-modal {
  max-height: calc(100dvh - env(safe-area-inset-top) - 18px);
  overscroll-behavior: contain;
}
.safe-zone-modal > form { padding-bottom: 4px; }
.safe-zone-modal footer {
  position: sticky;
  z-index: 4;
  bottom: -1px;
  padding: 12px 0 max(3px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,.9), #fff 18%);
}
.safe-zone-row-actions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.safe-zone-share-modal { width: min(620px, 100%); }
.safe-zone-share-modal form { display: grid; gap: 16px; }
.safe-zone-share-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
}
.safe-zone-share-events legend { grid-column: 1 / -1; margin-bottom: 2px; color: #25313d; font-size: .66rem; font-weight: 760; }
.safe-zone-share-events label {
  position: relative;
  min-width: 0;
}
.safe-zone-share-events input { position: absolute; opacity: 0; }
.safe-zone-share-events span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid #e0e4e8;
  border-radius: 11px;
  color: #465463;
  background: #fff;
  font-size: .58rem;
  font-weight: 680;
}
.safe-zone-share-events input:checked + span { color: #5c22bd; border-color: #cdb8ef; background: #f6f1ff; }
.safe-zone-share-recipient-list { display: grid; gap: 8px; }
.safe-zone-share-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  color: #40536b;
  background: #f5f8fd;
}
.safe-zone-share-note p { margin: 0; font-size: .59rem; line-height: 1.45; }

.checkin-section-heading--action {
  flex-wrap: nowrap;
  align-items: center;
}
.checkin-section-heading--action > div {
  flex: 1 1 auto;
  min-width: 0;
}
.checkin-section-heading--action button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nearby-sheet-backdrop { z-index: 1200; }
.nearby-filter-sheet,
.nearby-detail-sheet,
.nearby-member-place-sheet { z-index: 1210; }
.nearby-place-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}
.nearby-place-actions button,
.nearby-detail-sheet > footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 0 10px;
  border-width: 1px;
  border-style: solid;
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: .005em;
  gap: 7px;
  box-shadow: 0 7px 16px rgba(20,34,52,.10);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.nearby-place-actions button svg,
.nearby-detail-sheet > footer button svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}
.nearby-place-actions button span,
.nearby-detail-sheet > footer button span { white-space: nowrap; }
.nearby-place-actions button:active,
.nearby-detail-sheet > footer button:active {
  transform: translateY(1px) scale(.975);
  box-shadow: 0 3px 8px rgba(20,34,52,.12);
}
.nearby-place-actions .nearby-action-call {
  color: #116a3f;
  border-color: #acd9be;
  background: linear-gradient(180deg, #ffffff 0%, #eefaf3 100%);
}
.nearby-place-actions .nearby-action-call svg {
  padding: 3px;
  border-radius: 8px;
  color: #0c7c45;
  background: #dff4e8;
  box-sizing: content-box;
}
.nearby-place-actions button.nearby-action-directions {
  color: #fff;
  border-color: #b80914;
  background: linear-gradient(145deg, #f02732 0%, #c40915 58%, #a90610 100%);
  box-shadow: 0 8px 18px rgba(190,8,20,.22);
}
.nearby-place-actions button.nearby-action-directions svg {
  padding: 3px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.16);
  box-sizing: content-box;
}
.nearby-place-actions .nearby-action-view {
  color: #fff;
  border-color: #1557ad;
  background: linear-gradient(145deg, #2d7bd8 0%, #185eb9 58%, #12478d 100%);
  box-shadow: 0 8px 18px rgba(21,84,166,.20);
}
.nearby-place-actions .nearby-action-view svg {
  padding: 3px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.16);
  box-sizing: content-box;
}
.nearby-place-actions button:disabled {
  color: #9ca6b0;
  border-color: #e3e6e9;
  background: #f5f6f7;
  box-shadow: none;
}
.nearby-place-actions button:disabled svg {
  color: #9ca6b0;
  background: #e9ecef;
}
.nearby-detail-sheet > footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nearby-detail-sheet > footer .nearby-place-actions .nearby-action-call {
  color: #116a3f;
  border-color: #acd9be;
  background: linear-gradient(180deg, #ffffff 0%, #eefaf3 100%);
}
.nearby-detail-sheet > footer .nearby-place-actions button.nearby-action-directions {
  color: #fff;
  border-color: #b80914;
  background: linear-gradient(145deg, #f02732 0%, #c40915 58%, #a90610 100%);
}
@media (max-width: 420px) {
  .nearby-place-actions { gap: 6px; }
  .nearby-place-actions button {
    min-height: 50px;
    padding-inline: 5px;
    font-size: .72rem;
    gap: 4px;
  }
  .nearby-place-actions button svg { width: 17px; height: 17px; padding: 2px; }
}
.nearby-my-places {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce2e8;
  border-radius: 15px;
  background: #f8fafc;
}
.nearby-my-places > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nearby-my-places h3 { margin: 0; font-size: .8rem; }
.nearby-my-places p { margin: 3px 0 0; color: #6b7786; font-size: .64rem; line-height: 1.4; }
.nearby-place-limit { padding: 5px 8px; border-radius: 999px; color: #b70b15; background: #fff0f1; font-size: .61rem; font-weight: 780; white-space: nowrap; }
.nearby-member-place-list { display: grid; gap: 7px; }
.nearby-member-place-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #e0e5ea;
  border-radius: 12px;
  background: #fff;
}
.nearby-member-place-row > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #c50d17; background: #fff0f1; }
.nearby-member-place-row > div { display: grid; min-width: 0; gap: 2px; }
.nearby-member-place-row strong,
.nearby-member-place-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nearby-member-place-row strong { font-size: .69rem; }
.nearby-member-place-row small { color: #73808d; font-size: .57rem; }
.nearby-member-place-row button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #efcdd0; border-radius: 10px; color: #c40d17; background: #fff7f7; }
.nearby-add-place-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  border: 1px solid #d40e18;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ee202a, #bd0710);
  font-size: .7rem;
  font-weight: 760;
}
.nearby-add-place-button:disabled { border-color: #d8dde2; color: #8d98a4; background: #edf0f3; }
.nearby-member-place-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100%, 620px);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  border-radius: 25px 25px 0 0;
  background: #fff;
  box-shadow: 0 -24px 65px rgba(0,0,0,.26);
  transform: translate(-50%, 105%);
  transition: transform .22s ease;
}
.nearby-member-place-sheet.open { transform: translate(-50%, 0); }
.nearby-member-place-sheet > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid #e6eaee; background: #fff; }
.nearby-member-place-sheet > header h2 { margin: 2px 0 0; font-size: 1.12rem; }
.nearby-member-place-sheet > header button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e0e4e8; border-radius: 12px; background: #f5f7f9; font-size: 1.4rem; }
.nearby-member-place-form { display: grid; gap: 13px; padding: 18px; }
.nearby-member-place-form label { display: grid; gap: 6px; color: #273442; font-size: .68rem; font-weight: 720; }
.nearby-member-place-form input,
.nearby-member-place-form select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #dbe0e5; border-radius: 12px; color: #172330; background: #fff; font-size: .75rem; }
.nearby-member-place-search { display: grid; grid-template-columns: minmax(0,1fr) 46px; gap: 7px; }
.nearby-member-place-search button { display: grid; place-items: center; border: 1px solid #d9dee4; border-radius: 12px; color: #1b5eb8; background: #f2f7ff; }
.nearby-member-place-location-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nearby-member-place-location-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 1px solid #dce1e6; border-radius: 12px; color: #334356; background: #f8fafc; font-size: .64rem; font-weight: 720; }
.nearby-member-place-coordinate { padding: 9px 10px; border-radius: 10px; color: #657385; background: #f4f6f8; font-size: .59rem; }
.nearby-member-place-results { display: grid; overflow: hidden; border: 1px solid #e0e4e8; border-radius: 12px; }
.nearby-member-place-results button { display: grid; gap: 2px; padding: 9px 10px; border: 0; border-bottom: 1px solid #e7eaed; background: #fff; text-align: left; }
.nearby-member-place-results button:last-child { border-bottom: 0; }
.nearby-member-place-results strong { font-size: .65rem; }
.nearby-member-place-results small { color: #77828e; font-size: .56rem; }
.nearby-member-place-sheet footer { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #e6eaee; background: #fff; }
.nearby-member-place-sheet footer button { min-height: 46px; border: 1px solid #dde2e7; border-radius: 12px; color: #344252; background: #fff; font-weight: 740; }
.nearby-member-place-sheet footer .primary-button { color: #fff; border-color: #c70b15; background: linear-gradient(145deg,#ef202b,#ba0710); }

@media (max-width: 760px) {
  .safe-zone-row-actions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nearby-place-actions { grid-template-columns: repeat(3, minmax(66px, 1fr)); }
}
@media (max-width: 560px) {
  .safe-zone-modal { max-height: 96dvh; padding-bottom: calc(env(safe-area-inset-bottom) + 12px); }
  .safe-zone-share-events { grid-template-columns: 1fr; }
  .nearby-place-row { grid-template-columns: 1fr; }
  .nearby-place-actions { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nearby-place-actions button { min-height: 50px; }
  .nearby-member-place-location-actions { grid-template-columns: 1fr; }
}


/* TrackSOS v1.1.208 precision readability and responsive page upgrade */
.more-keypad-grid:not(.more-keypad-grid--featured) .more-keypad-card { min-height: 176px; height: 176px; padding: 14px 10px; gap: 6px; overflow: hidden; }
.more-keypad-grid:not(.more-keypad-grid--featured) .more-keypad-card small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.more-keypad-card .more-keypad-icon {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255,255,255,.9);
  background-image: radial-gradient(circle at 34% 24%, rgba(255,255,255,.96), rgba(255,255,255,.34) 42%, transparent 70%);
  box-shadow: 0 10px 22px rgba(15,31,52,.11), inset 0 0 0 1px rgba(17,33,53,.04);
}
.more-keypad-card .more-tile-svg { width: 42px; height: 42px; stroke-width: 1.9; filter: drop-shadow(0 2px 2px rgba(10,24,42,.12)); }
.more-keypad-section h2 .more-section-svg { width: 22px; height: 22px; stroke-width: 1.95; }
.more-editor-list .more-editor-svg { width: 28px; height: 28px; stroke-width: 1.9; }
.more-signout-row .more-row-svg,
.more-delete-account-row .more-row-svg { width: 28px; height: 28px; stroke-width: 1.95; }
.more-signout-row b { font-size: 1.02rem; }
.more-signout-row small { font-size: .86rem; line-height: 1.42; }

.report-incident-page { width: 100%; max-width: none; padding-bottom: 32px; }
.report-incident-page [data-report-content],
.report-section-card,
.report-review-card,
.report-review-heading { width: 100%; }
.report-type-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.report-incident-page :is(p, small, label, button:not([aria-label])) { font-size: .94rem; line-height: 1.48; }
.report-incident-page :is(strong, b) { font-size: .98rem; line-height: 1.35; }
.report-incident-page h1 { font-size: clamp(1.8rem, 4vw, 2.35rem); }
.report-incident-page h2 { font-size: 1.24rem; }
.report-incident-page h3 { font-size: 1.08rem; }
.report-incident-page :is(input, textarea, select) { font-size: 1rem; }
.report-section-card { padding: clamp(18px, 2.2vw, 26px); }

.family-live-page-v2 :is(p, small, label, button:not([aria-label])) { font-size: .9rem; line-height: 1.48; }
.family-live-page-v2 :is(strong, b) { font-size: .96rem; line-height: 1.35; }
.family-live-page-v2 h1 { font-size: clamp(1.65rem, 4vw, 2.1rem); }
.family-live-page-v2 h2 { font-size: 1.18rem; }
.family-live-page-v2 h3 { font-size: 1.02rem; }
.family-live-page-v2 :is(input, textarea, select) { font-size: 1rem; }
.family-access-row > button { white-space: nowrap; }

.safe-zones-page-v3 :is(p, small, label, button:not([aria-label])) { font-size: .9rem; line-height: 1.48; }
.safe-zones-page-v3 :is(strong, b) { font-size: .96rem; line-height: 1.35; }
.safe-zones-page-v3 h1 { font-size: clamp(1.7rem, 4vw, 2.15rem); }
.safe-zones-page-v3 h2 { font-size: 1.2rem; }
.safe-zones-page-v3 h3 { font-size: 1.04rem; }
.safe-zones-page-v3 :is(input, textarea, select) { font-size: 1rem; }

.profile-hub-page :is(p, small, label, button:not([aria-label])),
.account-section-page :is(p, small, label, button:not([aria-label])) { font-size: .9rem; line-height: 1.48; }
.profile-hub-page :is(strong, b),
.account-section-page :is(strong, b) { font-size: .96rem; line-height: 1.35; }
.profile-hub-page h1,
.account-section-page h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.profile-hub-page h2,
.account-section-page h2 { font-size: 1.2rem; }
.account-section-page :is(input, textarea, select) { font-size: 1rem; }
.account-field-label { font-size: .94rem; }
.account-record-copy p,
.account-record-copy small { font-size: .88rem; }

.subscription-flow :is(p, small, label, button:not([aria-label])) { font-size: .9rem; line-height: 1.48; }
.subscription-flow :is(strong, b) { font-size: .96rem; line-height: 1.35; }
.subscription-flow h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.subscription-flow h2 { font-size: 1.2rem; }
.subscription-flow h3 { font-size: 1.05rem; }
.subscription-flow :is(input, textarea, select) { font-size: 1rem; }

.nearby-help-page :is(p, small, label, button:not([aria-label])) { font-size: .9rem; line-height: 1.48; }
.nearby-help-page :is(strong, b) { font-size: .96rem; line-height: 1.35; }
.nearby-help-page h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.nearby-help-page h2 { font-size: 1.2rem; }
.nearby-help-page h3 { font-size: 1.04rem; }
.nearby-help-page :is(input, textarea, select) { font-size: 1rem; }

.settings-page :is(p, small, label, button:not([aria-label])),
.support-centre-page :is(p, small, label, button:not([aria-label])),
.about-tracksos-page :is(p, small, label, button:not([aria-label])),
.legal-centre-page :is(p, small, label, button:not([aria-label])),
.legal-document-page :is(p, small, label, button:not([aria-label])),
.legal-update-page :is(p, small, label, button:not([aria-label])),
.legal-receipt-page :is(p, small, label, button:not([aria-label])) { font-size: .9rem; line-height: 1.5; }
.settings-page :is(strong, b),
.support-centre-page :is(strong, b),
.about-tracksos-page :is(strong, b),
.legal-centre-page :is(strong, b),
.legal-document-page :is(strong, b),
.legal-update-page :is(strong, b),
.legal-receipt-page :is(strong, b) { font-size: .96rem; line-height: 1.36; }
.settings-page h1,
.support-centre-page h1,
.about-tracksos-page h1,
.legal-centre-page h1,
.legal-document-page h1,
.legal-update-page h1,
.legal-receipt-page h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.settings-page h2,
.support-centre-page h2,
.about-tracksos-page h2,
.legal-centre-page h2,
.legal-document-page h2,
.legal-update-page h2,
.legal-receipt-page h2 { font-size: 1.18rem; }
.settings-page :is(input, textarea, select),
.support-centre-page :is(input, textarea, select),
.legal-centre-page :is(input, textarea, select),
.legal-document-page :is(input, textarea, select),
.legal-update-page :is(input, textarea, select) { font-size: 1rem; }

.notifications-page { max-width: 860px; }
.notifications-page :is(p, small, button:not([aria-label])) { font-size: .9rem; line-height: 1.46; }
.notification-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.notification-leading { align-self: start; }
.notification-copy { min-width: 0; }
.notification-copy h3 { margin: 0 0 4px; font-size: 1.02rem; }
.notification-copy p { font-size: .92rem; }
.notification-copy small { font-size: .82rem; }
.notification-row-actions { display: flex; align-items: center; gap: 9px; }
.notification-row-actions > i { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.notification-row.unread .notification-row-actions > i { background: var(--red); }
.notification-delete-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #efc8cc;
  border-radius: 13px;
  color: #c90c17;
  background: #fff5f6;
  box-shadow: 0 5px 14px rgba(180,9,20,.08);
}
.notification-delete-button:active { transform: scale(.96); }
.notification-delete-button:disabled { opacity: .5; }


@media (max-width: 720px) {
  .more-keypad-grid:not(.more-keypad-grid--featured) .more-keypad-card { min-height: 172px; height: 172px; padding: 12px 9px; }
  .more-keypad-card .more-keypad-icon { width: 62px; height: 62px; }
  .more-keypad-card .more-tile-svg { width: 40px; height: 40px; }
  .report-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-access-row { grid-template-columns: 47px minmax(0, 1fr) auto; gap: 9px; }
  .family-access-row > button { grid-column: auto; width: auto; min-width: 82px; justify-content: center; padding-inline: 9px; }
  .notification-row { gap: 10px; padding: 14px 12px; }
  .notification-row-actions { gap: 6px; }
  .notification-delete-button { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .more-keypad-card .more-keypad-icon { width: 58px; height: 58px; }
  .more-keypad-card .more-tile-svg { width: 37px; height: 37px; }
  .family-access-row { grid-template-columns: 43px minmax(0, 1fr) auto; gap: 7px; }
  .family-access-row > button { min-width: 76px; padding-inline: 7px; }
  .notification-row { grid-template-columns: 43px minmax(0,1fr) auto; }
  .notification-row-actions > i { display: none; }
}

/* TrackSOS v1.1.211 admin-controlled subscription package headings */
.sub-plan-groups{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:14px 0 16px;
}
.sub-plan-group{
  --group-accent:#d90d18;
  --group-accent-dark:#a70811;
  --group-soft:#fff1f2;
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:108px;
  padding:15px 16px;
  border:1px solid color-mix(in srgb,var(--group-accent) 22%,#dfe4ea);
  border-radius:17px;
  color:#26344a;
  background:linear-gradient(145deg,#fff,var(--group-soft));
  box-shadow:0 9px 25px rgba(15,29,49,.07);
  text-align:left;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.sub-plan-group[data-tone="1"]{--group-accent:#7926bb;--group-accent-dark:#57158f;--group-soft:#f7efff}
.sub-plan-group[data-tone="2"]{--group-accent:#2469cb;--group-accent-dark:#164d9f;--group-soft:#eef5ff}
.sub-plan-group::after{
  position:absolute;
  right:14px;
  bottom:-1px;
  left:14px;
  height:3px;
  border-radius:3px 3px 0 0;
  background:var(--group-accent);
  content:"";
  opacity:0;
  transform:scaleX(.55);
  transition:.16s ease;
}
.sub-plan-group:hover{transform:translateY(-1px);box-shadow:0 12px 30px rgba(15,29,49,.1)}
.sub-plan-group.is-active{border-color:var(--group-accent);box-shadow:0 12px 30px color-mix(in srgb,var(--group-accent) 16%,transparent)}
.sub-plan-group.is-active::after{opacity:1;transform:scaleX(1)}
.sub-plan-group-icon{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(145deg,var(--group-accent),var(--group-accent-dark));
  box-shadow:0 8px 18px color-mix(in srgb,var(--group-accent) 28%,transparent);
}
.sub-plan-group-copy{display:grid;min-width:0;gap:4px}
.sub-plan-group-copy strong{color:var(--group-accent-dark);font-size:.96rem;line-height:1.2}
.sub-plan-group-copy small{display:-webkit-box;overflow:hidden;color:#566379;font-size:.72rem;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.sub-plan-group-meta{display:flex;align-items:center;gap:4px;color:var(--group-accent-dark);font-size:.66rem;font-weight:780;white-space:nowrap}
.sub-selected-group{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:4px 0 11px;padding:2px 2px 0}
.sub-selected-group h2{margin:3px 0;font-size:1.16rem}
.sub-selected-group p{margin:0;color:var(--muted);font-size:.78rem}
.sub-selected-group>span{flex:0 0 auto;padding:7px 10px;border-radius:999px;color:#b50a13;background:#fff0f1;font-size:.68rem;font-weight:800}
.sub-plan-list[data-group-plan-list]{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));align-items:stretch}
.sub-plan-list[data-group-plan-list]>.sub-plan-card{height:100%}
@media(max-width:720px){
  .sub-plan-groups{gap:6px;margin-top:11px}
  .sub-plan-group{grid-template-columns:1fr;justify-items:center;gap:6px;min-height:102px;padding:10px 6px;text-align:center}
  .sub-plan-group-icon{width:40px;height:40px}
  .sub-plan-group-icon svg{width:21px;height:21px}
  .sub-plan-group-copy{justify-items:center}
  .sub-plan-group-copy strong{font-size:clamp(.68rem,2.7vw,.82rem);line-height:1.15}
  .sub-plan-group-copy small{display:none}
  .sub-plan-group-meta{font-size:.58rem}
  .sub-plan-group-meta svg{display:none}
  .sub-selected-group{align-items:flex-start}
  .sub-selected-group h2{font-size:1.05rem}
  .sub-selected-group p{font-size:.74rem}
  .sub-plan-list[data-group-plan-list]{grid-template-columns:1fr}
}
@media(max-width:350px){
  .sub-plan-groups{gap:4px}
  .sub-plan-group{min-height:96px;padding-inline:4px}
  .sub-plan-group-icon{width:36px;height:36px}
  .sub-plan-group-copy strong{font-size:.65rem}
  .sub-plan-group-meta{font-size:.54rem}
}


/* TrackSOS v1.1.212 focused navigation, emergency and membership fixes */
.roadside-provider-section > header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;width:100%}
.roadside-provider-section > header > button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-width:max-content}
.report-page-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.report-start-over-button{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #d6dce5;border-radius:12px;background:#fff;color:#1a2738;font-weight:700;white-space:nowrap}
.report-draft-choice{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:center;padding:clamp(20px,4vw,34px);border:1px solid #dce2ea;border-radius:22px;background:linear-gradient(145deg,#fff,#f6f8fb);box-shadow:0 14px 36px rgba(16,33,54,.1)}
.report-draft-choice>span{display:grid;width:64px;height:64px;place-items:center;border-radius:18px;color:#d91524;background:#fff0f2}.report-draft-choice h2{margin:3px 0 7px}.report-draft-choice p{margin:0;color:var(--muted)}.report-draft-choice>button{grid-column:2}
.panic-screen-page{width:100%;max-width:900px;padding-bottom:20px;touch-action:pan-y}.panic-screen-heading{text-align:center;margin-bottom:18px}.panic-screen-heading h1{margin:4px 0 7px;font-size:clamp(1.85rem,5vw,2.5rem)}.panic-screen-heading p{margin:0;color:var(--muted);font-size:1rem}
.panic-screen-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.panic-screen-card{position:relative;display:flex;min-height:228px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:18px 14px;border:2px solid transparent;border-radius:20px;background:#fff;text-align:center;box-shadow:0 12px 28px rgba(12,27,47,.1);overflow:hidden;touch-action:pan-y;user-select:none}.panic-screen-card>span{display:grid;width:72px;height:72px;place-items:center;border-radius:50%}.panic-screen-card b{font-size:1.08rem}.panic-screen-card small{max-width:220px;color:var(--muted);font-size:.86rem;line-height:1.42}.panic-screen-card em{font-size:.74rem;font-style:normal;font-weight:750}.panic-screen-card i{position:absolute;right:0;bottom:0;left:0;height:5px;transform:scaleX(0);transform-origin:left;background:currentColor}.panic-screen-card.holding i{transition:transform 2s linear;transform:scaleX(1)}.panic-screen-card--silent{color:#202735;border-color:#cbd2dc}.panic-screen-card--silent>span{background:#eef1f5}.panic-screen-card--medical{color:#d41424;border-color:#f4c6cb}.panic-screen-card--medical>span{background:#fff0f2}.panic-screen-card--security{color:#2463cf;border-color:#c8d9f6}.panic-screen-card--security>span{background:#edf4ff}.panic-screen-note{display:flex;align-items:center;gap:12px;margin:16px 0;padding:15px 17px;border:1px solid #dce4ee;border-radius:16px;background:#f7f9fc}.panic-screen-note>span{display:grid;gap:3px}.panic-screen-note small{color:var(--muted)}
.membership-card-page{width:100%;max-width:850px}.membership-page-heading{margin-bottom:20px}.membership-page-heading h1{margin:4px 0 7px;font-size:clamp(2rem,5vw,2.6rem)}.membership-page-heading p{margin:0;color:var(--muted)}.membership-digital-card{position:relative;display:grid;min-height:310px;padding:26px;border-radius:27px;color:#fff;background:radial-gradient(circle at 82% 12%,rgba(221,18,36,.45),transparent 32%),linear-gradient(145deg,#090c12,#171d27 65%,#11151c);box-shadow:0 20px 44px rgba(4,10,18,.25);overflow:hidden}.membership-card-brand{display:flex;align-items:center;gap:9px}.membership-card-brand img{width:43px;height:43px;object-fit:contain}.membership-card-brand strong{font-size:1.55rem}.membership-card-brand strong span{color:#ee1d2d}.membership-card-brand em{margin-left:auto;padding:7px 11px;border-radius:999px;font-size:.73rem;font-style:normal;font-weight:800;text-transform:uppercase}.membership-card-brand em.active{background:#1fb25a}.membership-card-brand em.inactive{background:#687181}.membership-card-person{align-self:center}.membership-card-person small,.membership-card-plan small{color:#b8c0cc;font-size:.68rem;letter-spacing:.13em}.membership-card-person h2{margin:5px 0;font-size:1.75rem}.membership-card-person p{margin:0;color:#e3e7ed;font-family:monospace;font-size:1rem;letter-spacing:.06em}.membership-card-plan{display:grid;grid-template-columns:1fr auto;gap:20px}.membership-card-plan span{display:grid;gap:4px}.membership-card-plan b{font-size:1rem}.membership-digital-card footer{display:flex;justify-content:space-between;align-items:end;border-top:1px solid rgba(255,255,255,.16);padding-top:13px;font-size:.76rem}.membership-active-panel{margin-top:20px;padding:22px;border:1px solid #dfe4eb;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(17,33,52,.08)}.membership-active-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.membership-active-panel>header>div{display:flex;align-items:center;gap:12px}.membership-active-panel h2{margin:0}.membership-active-panel p{margin:4px 0 0;color:var(--muted)}.membership-active-panel dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.membership-active-panel dl div{padding:14px;border:1px solid #e4e8ee;border-radius:13px;background:#f8fafc}.membership-active-panel dt{color:var(--muted);font-size:.77rem}.membership-active-panel dd{margin:5px 0 0;font-weight:750}.membership-page-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.home-map-settings-backdrop{position:fixed;z-index:1200;inset:0;display:grid;align-items:end;justify-items:center;padding-top:calc(env(safe-area-inset-top) + 8px);background:rgba(3,10,18,.55);backdrop-filter:blur(4px)}.home-map-settings-sheet{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(100%,760px);max-height:calc(100dvh - env(safe-area-inset-top) - 8px);padding:20px 20px calc(env(safe-area-inset-bottom) + 18px);border-radius:25px 25px 0 0;background:#fff;overflow:hidden;box-shadow:0 -20px 60px rgba(0,0,0,.28)}.home-map-settings-sheet>header{display:flex;justify-content:space-between;gap:18px}.home-map-settings-sheet h2{margin:3px 0 5px}.home-map-settings-sheet p{margin:0;color:var(--muted)}.home-map-settings-sheet>header>button{flex:0 0 auto;width:38px;height:38px;border:1px solid #dfe4ea;border-radius:50%;background:#fff;font-size:1.5rem}.home-map-settings-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:14px 0 10px}.home-map-settings-actions>span{margin-right:auto;color:#667085;font-size:.78rem;font-weight:700}.home-map-settings-actions button{padding:8px 11px;border:1px solid #dce2e9;border-radius:10px;background:#fff;font-weight:700}.home-map-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-height:0;padding:1px 2px 10px;overflow-y:auto;overscroll-behavior:contain}.home-map-setting-option{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:10px 12px;border:1px solid #e0e5ec;border-radius:13px;color:#1f2937;background:#fff;text-align:left}.home-map-setting-option>span{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;color:#d21727;background:#fff0f2}.home-map-setting-option>i{width:22px;height:22px;border:2px solid #b9c2ce;border-radius:7px}.home-map-setting-option.selected{border-color:#efb8bd;background:#fffafb}.home-map-setting-option.selected>i{border-color:#d41424;background:#d41424;box-shadow:inset 0 0 0 4px #fff}.home-map-setting-option.selected>b{color:#c41222}.home-map-settings-sheet>footer{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:10px;margin-top:10px;padding-top:12px;border-top:1px solid #edf0f3;background:#fff}.home-map-settings-sheet>footer>button{width:100%;min-height:48px;white-space:nowrap}
@media(max-width:600px){.roadside-provider-section>header{gap:8px}.roadside-provider-section>header h2{font-size:1rem}.roadside-provider-section>header p{font-size:.72rem}.roadside-provider-section>header>button{padding-inline:10px}.report-page-heading{grid-template-columns:auto minmax(0,1fr)}.report-start-over-button{grid-column:2;justify-self:start;margin-top:8px}.report-draft-choice{grid-template-columns:1fr;text-align:center}.report-draft-choice>span{margin:auto}.report-draft-choice>button{grid-column:1}.panic-screen-page{padding-bottom:16px}.panic-screen-heading{margin-bottom:14px;text-align:left}.panic-screen-heading h1{font-size:1.7rem}.panic-screen-heading p{font-size:.9rem}.panic-screen-grid{grid-template-columns:1fr;gap:10px}.panic-screen-card{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto auto;min-height:128px;justify-items:start;align-content:center;gap:3px 13px;padding:14px 15px;text-align:left;touch-action:pan-y}.panic-screen-card>span{grid-row:1/4;width:58px;height:58px}.panic-screen-card>span svg{width:38px;height:38px}.panic-screen-card b{font-size:1rem}.panic-screen-card small{max-width:none;font-size:.79rem;line-height:1.35}.panic-screen-card em{font-size:.69rem}.panic-screen-note{align-items:flex-start;margin:12px 0;padding:13px}.membership-active-panel dl,.membership-page-actions{grid-template-columns:1fr}.home-map-settings-sheet{padding:16px 14px calc(env(safe-area-inset-bottom) + 12px);border-radius:22px 22px 0 0}.home-map-settings-sheet>header{gap:10px}.home-map-settings-sheet h2{font-size:1.12rem}.home-map-settings-sheet p{font-size:.82rem}.home-map-settings-grid{grid-template-columns:1fr}.home-map-settings-actions{gap:6px}.home-map-settings-actions button{padding:7px 9px;font-size:.75rem}.home-map-settings-sheet>footer{grid-template-columns:1fr 1fr}.membership-digital-card{min-height:285px;padding:21px}.membership-card-plan{grid-template-columns:1fr 1fr}}

/* TrackSOS v1.1.215 — app-level homepage map settings overlay.
   The overlay is mounted under <body>, outside the isolated Leaflet stacking context,
   so its Cancel and Save controls can never be covered by the global footer. */
.home-map-settings-portal{
  position:fixed;
  z-index:2200;
  inset:0;
  width:100%;
  height:100dvh;
  pointer-events:auto;
}
.home-map-settings-portal .home-map-settings-backdrop{
  position:absolute;
  z-index:0;
  inset:0;
  display:grid;
  align-items:end;
  justify-items:center;
  padding-top:calc(env(safe-area-inset-top) + 6px);
  background:rgba(3,10,18,.58);
  backdrop-filter:blur(5px);
}
.home-map-settings-portal .home-map-settings-sheet{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  width:min(100%,760px);
  height:min(760px,calc(100dvh - env(safe-area-inset-top) - 6px));
  max-height:calc(100dvh - env(safe-area-inset-top) - 6px);
  padding:20px 20px calc(env(safe-area-inset-bottom) + 14px);
  overflow:hidden;
  border-radius:25px 25px 0 0;
  background:#fff;
  box-shadow:0 -20px 60px rgba(0,0,0,.32);
}
.home-map-settings-form{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  min-height:0;
  overflow:hidden;
}
.home-map-settings-form .home-map-settings-grid{
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.home-map-setting-option{
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
}
.home-map-setting-option>input{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}
.home-map-settings-form>footer{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);
  gap:10px;
  margin-top:8px;
  padding:12px 0 0;
  border-top:1px solid #edf0f3;
  background:#fff;
}
.home-map-settings-form>footer>button{
  width:100%;
  min-height:50px;
  white-space:nowrap;
}
body.home-map-settings-open .global-header,
body.home-map-settings-open .global-footer{
  pointer-events:none;
}
@media(max-width:600px){
  .home-map-settings-portal .home-map-settings-sheet{
    height:calc(100dvh - env(safe-area-inset-top) - 4px);
    max-height:calc(100dvh - env(safe-area-inset-top) - 4px);
    padding:15px 14px calc(env(safe-area-inset-bottom) + 10px);
    border-radius:22px 22px 0 0;
  }
  .home-map-settings-form>footer{
    grid-template-columns:1fr 1fr;
    gap:9px;
    padding-top:10px;
  }
  .home-map-settings-form>footer>button{
    min-height:48px;
  }
}

/* v1.1.216 stable camera and privacy-safe incident heat layer */
.home-heat-settings{margin-top:12px;padding:13px;border:1px solid #e4e8ee;border-radius:16px;background:#fafbfc}.home-heat-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-heat-toggle-row>div{display:flex;align-items:flex-start;gap:10px}.home-heat-icon{display:grid;flex:0 0 auto;width:38px;height:38px;place-items:center;border-radius:12px;color:#c31728;background:#fff0f2}.home-heat-toggle-row b{display:block;font-size:.92rem}.home-heat-toggle-row small{display:block;margin-top:3px;color:#667085;font-size:.72rem;line-height:1.35}.home-heat-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.home-heat-options.disabled{opacity:.45;pointer-events:none}.home-heat-options label{display:grid;gap:5px}.home-heat-options label>span{color:#667085;font-size:.72rem;font-weight:700}.home-heat-options select{min-height:42px;padding:0 10px;border:1px solid #dce2e9;border-radius:11px;background:#fff}.incident-heat-wave{filter:blur(7px);mix-blend-mode:multiply}.incident-heat-legend{display:grid;grid-template-columns:repeat(3,auto);gap:5px 9px;margin:0 0 72px 8px;padding:9px 11px;border:1px solid rgba(255,255,255,.75);border-radius:13px;background:rgba(255,255,255,.92);box-shadow:0 8px 24px rgba(15,23,42,.16);backdrop-filter:blur(8px);font-size:.65rem}.incident-heat-legend>b,.incident-heat-legend>small{grid-column:1/-1}.incident-heat-legend>span{display:flex;align-items:center;gap:4px}.incident-heat-legend i{width:9px;height:9px;border-radius:50%;background:#f7d94c}.incident-heat-legend span:nth-of-type(2) i{background:#f58b2a}.incident-heat-legend span:nth-of-type(3) i{background:#d81f2a}.incident-heat-legend small{color:#667085}.switch{position:relative;display:inline-flex;flex:0 0 auto}.switch input{position:absolute;opacity:0}.switch span{width:46px;height:26px;border-radius:999px;background:#cbd2dc;transition:.2s}.switch span::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.2);transition:.2s}.switch input:checked+span{background:#d41424}.switch input:checked+span::after{transform:translateX(20px)}
@media(max-width:600px){.home-heat-options{grid-template-columns:1fr 1fr}.incident-heat-legend{margin-bottom:68px}.home-map-settings-form .home-map-settings-grid{max-height:31vh}}

/* Phase 2: package slot and linked-device foundation */
.device-activation-page{display:grid;gap:18px;padding-bottom:34px}.device-activation-heading{display:flex;gap:14px;align-items:flex-start}.device-activation-heading>span{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:#fff0f0;color:#c8102e;flex:0 0 auto}.device-activation-heading h1{margin:2px 0 5px;font-size:1.7rem}.device-activation-heading p{margin:0;color:#656a72;line-height:1.5}.device-activation-card{background:#fff;border:1px solid #e6e7eb;border-radius:24px;padding:24px 20px;box-shadow:0 12px 34px rgba(18,21,28,.07);text-align:center}.device-activation-phone{display:grid;place-items:center;width:92px;height:92px;margin:0 auto 14px;border-radius:30px;background:linear-gradient(145deg,#111827,#2b3039);color:#fff}.device-activation-card h2{margin:0 0 8px;font-size:1.3rem}.device-activation-card>p{margin:0 auto 20px;max-width:390px;color:#626873;line-height:1.55}.device-code-field{text-align:left;margin-bottom:14px}.device-code-field input{text-transform:uppercase;letter-spacing:.1em;font-weight:700}.device-activation-card>.primary-button,.device-activation-card>.secondary-button{width:100%;margin-top:10px}.device-activation-card>small{display:block;margin-top:16px;color:#777d86;line-height:1.45}.device-activation-help{border-radius:20px;background:#f5f6f8;padding:18px}.device-activation-help b{display:block;margin-bottom:4px}.device-activation-help p{margin:0;color:#646a73;line-height:1.5}.device-activation-help .text-button{margin-top:8px;padding-left:0}.package-access-note{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:16px;background:#f5f6f8}.package-access-note>span{color:#c8102e}.package-access-note p{margin:3px 0 0;color:#626873}.package-slot-grid{display:grid;gap:12px}.package-slot-card{border:1px solid #e5e7eb;border-radius:18px;padding:15px;background:#fff}.package-slot-card header{display:flex;justify-content:space-between;gap:12px}.package-slot-card small{color:#6b7280}.package-slot-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.package-slot-actions button{min-height:38px}.package-feature-lock{padding:28px 20px;text-align:center}.package-feature-lock>span{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 13px;border-radius:22px;background:#fff0f0;color:#c8102e}.package-feature-lock h2{margin:0 0 8px}.package-feature-lock p{color:#666d76;line-height:1.5}
.auth-package-invite{display:flex;gap:11px;align-items:flex-start;padding:13px 14px;margin-bottom:14px;border:1px solid #f2c9d0;border-radius:16px;background:#fff6f7;color:#20242b}.auth-package-invite>svg{color:#c8102e;flex:0 0 auto}.auth-package-invite b,.auth-package-invite span{display:block}.auth-package-invite span{margin-top:2px;color:#666d76;font-size:.88rem;line-height:1.4}
.package-business-invite{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px;padding:18px;border:1px solid #e3e5e9;border-radius:18px;background:#f8f9fa}.package-business-invite h3,.package-business-invite>p{grid-column:1/-1;margin:0}.package-business-invite>p{color:#676d76}.package-business-invite label{display:grid;gap:5px}.package-business-invite label span{font-size:.82rem;color:#656b74}.package-business-invite input,.package-business-invite select{min-height:44px;border:1px solid #d7d9de;border-radius:12px;padding:0 12px;background:#fff}.package-business-invite button{grid-column:1/-1}@media(max-width:620px){.package-business-invite{grid-template-columns:1fr}}

/* Phase 3 Family rebuild v1.1.220 */
.family-live-page-v3 { padding-bottom: 28px; }
.family-live-tabs--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.family-phase3-package,
.family-phase3-sharing {
  overflow: hidden;
  border: 1px solid #e0e5e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--family-card-shadow);
}
.family-phase3-package > div,
.family-phase3-sharing > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 17px 18px;
}
.family-phase3-package-icon,
.family-phase3-sharing-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: var(--family-green-dark);
  background: var(--family-green-soft);
}
.family-phase3-package > div > div,
.family-phase3-sharing > div > div { display: grid; gap: 3px; min-width: 0; }
.family-phase3-package small { color: #77818a; font-size: .61rem; text-transform: uppercase; letter-spacing: .05em; }
.family-phase3-package strong,
.family-phase3-sharing strong { color: #16222c; font-size: .88rem; }
.family-phase3-package p,
.family-phase3-sharing p { font-size: .66rem; }
.family-phase3-package button,
.family-zone-list .family-section-heading button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cfe8d7;
  border-radius: 12px;
  color: var(--family-green-dark);
  background: #fff;
  font-size: .65rem;
  font-weight: 750;
}
.family-package-count {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--family-green);
  font-size: 1rem;
  font-weight: 800;
}
.family-switch { position: relative; display: inline-flex; }
.family-switch input { position: absolute; opacity: 0; }
.family-switch i {
  position: relative;
  display: block;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: #c9ced2;
  transition: .18s ease;
}
.family-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: .18s ease;
}
.family-switch input:checked + i { background: var(--family-green); }
.family-switch input:checked + i::after { transform: translateX(21px); }
.family-background-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-top: 1px solid #edf0f2;
}
.family-background-choice input { width: 20px; height: 20px; accent-color: var(--family-green); }
.family-background-choice span { display: grid; gap: 2px; }
.family-background-choice b { font-size: .68rem; }
.family-background-choice small { color: #77818a; font-size: .58rem; }
.family-phase3-member-row > div > span { display: block; }
.family-incident-state { color: #b51822; font-weight: 700; }
.family-map-row-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.family-map-row-actions button {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #dce2e5;
  border-radius: 10px;
  color: #33414c;
  background: #fff;
  font-size: .57rem;
  font-weight: 700;
}
.family-activity-list {
  overflow: hidden;
  border: 1px solid #e0e5e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--family-card-shadow);
}
.family-activity-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid #edf0f2;
}
.family-activity-row:last-child { border-bottom: 0; }
.family-activity-row > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--family-green-dark);
  background: var(--family-green-soft);
}
.family-activity-row > div { display: grid; gap: 3px; }
.family-activity-row strong { font-size: .7rem; }
.family-activity-row small { color: #77818a; font-size: .59rem; }
.family-activity-row em {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--family-green-dark);
  background: var(--family-green-soft);
  font-size: .53rem;
  font-style: normal;
  font-weight: 700;
}
.family-manual-share-panel {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d9e9de;
  border-radius: 15px;
  background: #f5fbf7;
}
.family-manual-share-panel > strong { font-size: .75rem; }
.family-manual-share-panel > p { margin: 0; font-size: .62rem; }
.family-manual-share-panel > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.family-manual-share-panel button {
  min-height: 38px;
  border: 1px solid #c8e3d1;
  border-radius: 10px;
  color: var(--family-green-dark);
  background: #fff;
  font-size: .57rem;
  font-weight: 700;
}
.family-manual-share-panel .family-stop-share { width: 100%; color: #a5121b; border-color: #efc4c8; background: #fff7f7; }

.safe-checkin-page-v3 { max-width: 920px; padding-bottom: 32px; }
.checkin-private-rule {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid #dce4e8;
  border-radius: 16px;
  color: #202c36;
  background: #f7f9fa;
}
.checkin-private-rule > svg { flex: 0 0 auto; color: #b51822; }
.checkin-private-rule > div { display: grid; gap: 2px; }
.checkin-private-rule strong { font-size: .71rem; }
.checkin-private-rule p { font-size: .61rem; }
.checkin-status-grid--phase3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkin-location-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 11px 13px;
  border: 1px solid #e0e5e8;
  border-radius: 13px;
  background: #fff;
}
.checkin-location-toggle input { width: 20px; height: 20px; accent-color: #18a64b; }
.checkin-location-toggle span { display: grid; gap: 2px; }
.checkin-location-toggle b { font-size: .68rem; }
.checkin-location-toggle small { color: #78828b; font-size: .57rem; }
.checkin-options-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(210px, .8fr); gap: 12px; }
.checkin-message-control > span,
.checkin-next-control > span { color: #26333e; font-size: .68rem; font-weight: 750; }
.checkin-next-control { display: grid; gap: 8px; align-content: start; }
.checkin-next-control select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #dce2e5;
  border-radius: 13px;
  color: #26333e;
  background: #fff;
}
.checkin-next-control small { color: #78828b; font-size: .58rem; }
.checkin-feed-section { margin-top: 4px; }
.checkin-feed-list {
  overflow: hidden;
  border: 1px solid #e0e5e8;
  border-radius: 18px;
  background: #fff;
}
.checkin-feed-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #edf0f2;
}
.checkin-feed-row:last-child { border-bottom: 0; }
.checkin-feed-row.is-missed { background: #fff7f7; }
.checkin-feed-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 2px solid #cdebd7;
  border-radius: 50%;
  color: #117a37;
  background: #edf9f1;
  font-size: .65rem;
  font-weight: 800;
}
.checkin-feed-copy { display: grid; gap: 4px; min-width: 0; }
.checkin-feed-copy > div { display: flex; justify-content: space-between; gap: 8px; }
.checkin-feed-copy strong { font-size: .71rem; }
.checkin-feed-copy time { color: #899198; font-size: .54rem; white-space: nowrap; }
.checkin-feed-copy b { color: #117a37; font-size: .62rem; }
.checkin-feed-row.is-missed .checkin-feed-copy b { color: #b51822; }
.checkin-feed-copy p { font-size: .62rem; }
.checkin-feed-copy small { display: inline-flex; align-items: center; gap: 4px; color: #6f7983; font-size: .56rem; }
.checkin-feed-row > button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #cdebd7;
  border-radius: 11px;
  color: #117a37;
  background: #f3fbf6;
  font-size: .57rem;
  font-weight: 750;
}
.checkin-feed-row > button:disabled { color: #78828b; border-color: #e0e5e8; background: #f3f5f6; }
.checkin-feed-row > em { color: #78828b; font-size: .54rem; font-style: normal; white-space: nowrap; }
.checkin-feed-empty { display: flex; align-items: center; gap: 11px; padding: 20px; color: #66717b; }
.checkin-feed-empty > div { display: grid; gap: 3px; }
.checkin-feed-empty strong { color: #26333e; font-size: .72rem; }
.checkin-feed-empty p { font-size: .61rem; }

@media (max-width: 640px) {
  .family-live-tabs--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-phase3-package > div,
  .family-phase3-sharing > div { grid-template-columns: 48px minmax(0, 1fr); }
  .family-phase3-package > div > button,
  .family-phase3-package > div > .family-package-count,
  .family-phase3-sharing > div > .family-switch { grid-column: 1 / -1; width: 100%; }
  .family-phase3-sharing > div > .family-switch { justify-content: flex-end; }
  .family-manual-share-panel > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-status-grid--phase3 { grid-template-columns: 1fr; }
  .checkin-options-grid { grid-template-columns: 1fr; }
  .checkin-feed-row { grid-template-columns: 42px minmax(0, 1fr); }
  .checkin-feed-row > button,
  .checkin-feed-row > em { grid-column: 1 / -1; width: 100%; text-align: center; }
}


/* v1.1.228 targeted member-layout correction — no global restyling */
.safe-checkin-page-v3 .checkin-status-grid--phase3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card {
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  justify-items: stretch;
  min-height: 78px;
  padding: 9px 9px;
  border-radius: 14px;
  column-gap: 8px;
  row-gap: 1px;
  text-align: left;
}
.safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
}
.safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-icon svg {
  width: 23px;
  height: 23px;
}
.safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card strong {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: .75rem;
  line-height: 1.15;
}
.safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card small {
  grid-column: 2;
  grid-row: 2;
  max-width: none;
  font-size: .58rem;
  line-height: 1.2;
}
.safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-chevron {
  position: static;
  grid-column: 3;
  grid-row: 1 / 3;
  transform: none;
}
.family-live-page-v3 .family-phase3-member-row {
  grid-template-columns: 44px minmax(0, 1fr) max-content;
  align-items: center;
}
.family-live-page-v3 .family-phase3-member-row > div { min-width: 0; }
.family-live-page-v3 .family-phase3-member-row > button {
  grid-column: 3;
  grid-row: 1;
  width: auto;
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .safe-checkin-page-v3 .checkin-status-grid--phase3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card {
    min-height: 74px;
    padding: 8px 7px;
    grid-template-columns: 32px minmax(0, 1fr) 14px;
    column-gap: 6px;
  }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-icon {
    width: 31px;
    height: 31px;
  }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-icon svg {
    width: 21px;
    height: 21px;
  }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card strong { font-size: .7rem; }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card small { font-size: .53rem; }
  .family-live-page-v3 .family-phase3-member-row {
    grid-template-columns: 42px minmax(0, 1fr) max-content;
    gap: 7px;
  }
  .family-live-page-v3 .family-phase3-member-row > button {
    grid-column: 3;
    width: auto;
    min-width: 0;
    padding-inline: 7px;
    font-size: .72rem;
  }
}
@media (max-width: 380px) {
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card {
    min-height: 70px;
    grid-template-columns: 29px minmax(0, 1fr) 12px;
    padding-inline: 6px;
  }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-icon {
    width: 28px;
    height: 28px;
  }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-icon svg {
    width: 19px;
    height: 19px;
  }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card strong { font-size: .66rem; }
  .safe-checkin-page-v3 .checkin-status-grid--phase3 .checkin-status-card small { font-size: .49rem; }
  .family-live-page-v3 .family-phase3-member-row {
    grid-template-columns: 40px minmax(0, 1fr) max-content;
    gap: 6px;
  }
  .family-live-page-v3 .family-phase3-member-row > button {
    padding-inline: 5px;
    font-size: .66rem;
  }
}



/* TrackSOS v1.1.223 — user-approved UX corrections only */
.safe-zone-list-heading .safe-zone-sort-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  color: #5f6876;
  font-size: .76rem;
  font-weight: 750;
  white-space: nowrap;
  text-align: left;
}
.safe-zone-sort-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 10px 0 12px;
  border: 1px solid #dce1e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(20,31,48,.06);
}
.safe-zone-sort-select select {
  width: auto;
  min-width: 132px;
  min-height: 40px;
  padding: 0 2px;
  border: 0;
  outline: 0;
  color: #273244;
  background: transparent;
  font-weight: 700;
  appearance: none;
}
.safe-zone-sort-select svg { flex: 0 0 auto; pointer-events: none; }

.home-map-settings-sheet--v1223 {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  width: min(calc(100% - 24px), 720px);
  max-height: min(92dvh, 860px);
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
}
.home-map-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 22px 17px;
  border-bottom: 1px solid #e5e9ee;
  background: #fff;
}
.home-map-settings-header h2 { margin: 3px 0 5px; }
.home-map-settings-header p { margin: 0; color: #697383; }
.home-map-settings-header > button {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe4e9;
  border-radius: 50%;
  background: #fff;
  font-size: 1.5rem;
}
.home-map-settings-form--v1223 {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  min-height: 0;
  padding: 0;
}
.home-map-settings-scroll {
  display: grid;
  align-content: start;
  gap: 15px;
  min-height: 0;
  padding: 18px 22px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f5f7f9;
}
.home-map-preference-section {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid #e0e5ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(20,31,48,.05);
}
.home-map-preference-heading,
.home-map-heat-heading {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  align-items: center;
  gap: 11px;
}
.home-map-preference-heading > span,
.home-map-heat-heading > .home-heat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #2463ce;
  background: #edf4ff;
}
.home-map-heat-heading {
  grid-template-columns: 42px minmax(0,1fr) auto;
}
.home-map-heat-heading > .home-heat-icon { color: #c31728; background: #fff0f2; }
.home-map-preference-heading h3,
.home-map-heat-heading h3 { margin: 0 0 3px; font-size: 1rem; }
.home-map-preference-heading p,
.home-map-heat-heading p { margin: 0; color: #6b7482; font-size: .76rem; line-height: 1.42; }
.home-map-settings-form--v1223 .home-map-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.home-map-settings-form--v1223 .home-map-settings-actions > div { display: flex; gap: 7px; }
.home-map-settings-form--v1223 .home-map-settings-actions button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #dce2e8;
  border-radius: 10px;
  background: #fff;
  color: #354154;
  font-size: .72rem;
  font-weight: 750;
}
.home-map-settings-form--v1223 .home-map-settings-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  max-height: none;
  overflow: visible;
  padding: 0;
}
.home-map-settings-form--v1223 .home-map-setting-option { min-height: 78px; }
.home-map-preference-section--heat .home-heat-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 0;
  padding-top: 2px;
}
.home-map-settings-form--v1223 > footer {
  position: static;
  display: grid;
  grid-template-columns: minmax(120px,.45fr) minmax(180px,1fr);
  gap: 10px;
  padding: 14px 22px calc(env(safe-area-inset-bottom) + 14px);
  border-top: 1px solid #e1e6eb;
  background: #fff;
}
.home-map-settings-form--v1223 > footer > button { width: 100%; min-height: 48px; }

.faq-page { max-width: 900px; padding-bottom: 34px; }
.faq-emergency-note {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #efc0c4;
  border-radius: 17px;
  color: #89121c;
  background: #fff5f5;
}
.faq-emergency-note > svg { justify-self: center; }
.faq-emergency-note strong { display: block; }
.faq-emergency-note p { margin: 3px 0 0; color: #674044; }
.faq-category-rail {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
  padding: 3px 0 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.faq-category-rail::-webkit-scrollbar { display: none; }
.faq-category-rail button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe4e9;
  border-radius: 999px;
  color: #344054;
  background: #fff;
  font-size: .72rem;
  font-weight: 750;
}
.faq-sections { display: grid; gap: 14px; }
.faq-section { padding: 0; overflow: hidden; scroll-margin-top: calc(var(--header-height) + 12px); }
.faq-section > header {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid #e6eaee;
  background: #f9fafb;
}
.faq-section > header > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #c8101a;
  background: #fff0f1;
}
.faq-section h2 { margin: 0 0 3px; font-size: 1rem; }
.faq-section header p { margin: 0; color: #747d89; font-size: .72rem; }
.faq-item { border-bottom: 1px solid #edf0f3; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 18px;
  color: #1c2635;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform .16s ease; }
.faq-item[open] summary svg { transform: rotate(90deg); }
.faq-answer { padding: 0 18px 16px; }
.faq-answer p { margin: 0; color: #5d6775; line-height: 1.55; }

@media (max-width: 640px) {
  .safe-zone-list-heading { align-items: center; flex-direction: row; }
  .safe-zone-list-heading > div { min-width: 0; }
  .safe-zone-list-heading .safe-zone-sort-control { display: inline-flex; flex-direction: row; gap: 6px; }
  .safe-zone-sort-select { min-height: 40px; padding-inline: 8px; }
  .safe-zone-sort-select select { min-width: 112px; font-size: .72rem; }
  .home-map-settings-sheet--v1223 { width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; }
  .home-map-settings-header { padding: 17px 15px 14px; }
  .home-map-settings-scroll { padding: 13px 12px 15px; }
  .home-map-preference-section { padding: 14px 12px; }
  .home-map-settings-form--v1223 .home-map-settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; }
  .home-map-settings-form--v1223 .home-map-setting-option { min-height: 72px; }
  .home-map-settings-form--v1223 > footer { padding: 11px 12px calc(env(safe-area-inset-bottom) + 11px); }
  .faq-section > header { padding-inline: 14px; }
  .faq-item summary { padding-inline: 14px; }
  .faq-answer { padding-inline: 14px; }
}
@media (max-width: 380px) {
  .safe-zone-list-heading .safe-zone-sort-control > span:first-child { font-size: .68rem; }
  .safe-zone-sort-select select { min-width: 99px; }
  .home-map-settings-form--v1223 .home-map-settings-actions { align-items: flex-start; flex-direction: column; }
  .home-map-heat-heading { grid-template-columns: 38px minmax(0,1fr) auto; }
  .home-map-preference-section--heat .home-heat-options { grid-template-columns: 1fr; }
}

/* v1.1.227 package entitlement notices */
.nearby-package-note{padding:14px;border:1px solid #d0d5dd;border-radius:12px;background:#f8fafc;color:#667085;text-align:center}.nearby-radius-control small{display:block;margin-top:5px;color:#667085;font-size:.74rem}

/* TrackSOS v1.1.227 — Family Tracking end-to-end invitation flow */
.family-invite-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.family-modal-field input{width:100%;min-height:46px;margin-top:7px;padding:0 13px;border:1px solid #d9dde3;border-radius:13px;background:#fff;color:#15181e}.family-invite-identity-note,.family-invite-delivery,.family-join-privacy{display:flex;gap:10px;align-items:flex-start;padding:12px 13px;border-radius:14px;background:#f5f6f8;color:#4d5560}.family-invite-identity-note p,.family-invite-delivery p,.family-join-privacy p{margin:0;line-height:1.45}.family-share-modal{text-align:center}.family-share-success,.family-join-shield{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 14px;border-radius:24px;background:#fff0f1;color:#c8102e}.family-invite-link{display:grid;gap:7px;text-align:left;margin:17px 0}.family-invite-link span{font-weight:700}.family-invite-link textarea{width:100%;min-height:88px;resize:none;padding:12px;border:1px solid #d9dde3;border-radius:13px;background:#f8f9fa;color:#242932;line-height:1.45}.family-share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:13px}.family-share-actions button,.family-pending-invite-panel button{min-height:43px;border:1px solid #d8dce2;border-radius:13px;background:#fff;font-weight:700}.family-pending-invite-panel{margin-top:15px;padding:14px;border:1px solid #f0d7dc;border-radius:16px;background:#fff7f8}.family-pending-invite-panel p{margin:4px 0 12px;color:#656c76}.family-pending-invite-panel button{width:100%;color:#b20c28}.family-join-page{align-items:flex-start;overflow:auto}.family-join-shell{width:min(100%,560px);margin:0 auto;padding:20px 16px 42px}.family-join-card{margin-top:14px;padding:24px 20px;border:1px solid #e3e6ea;border-radius:24px;background:#fff;box-shadow:0 15px 42px rgba(18,21,28,.08);text-align:center}.family-join-card h1{margin:7px 0 9px;font-size:1.65rem}.family-join-card>p{margin:0;color:#626a74;line-height:1.55}.family-join-recipient{display:flex;gap:11px;align-items:center;margin:18px 0;padding:13px;border-radius:16px;background:#f5f6f8;text-align:left}.family-join-recipient>span{color:#c8102e}.family-join-recipient b,.family-join-recipient small{display:block}.family-join-recipient small{margin-top:3px;color:#68707a}.family-join-permissions{margin:18px 0;text-align:left}.family-join-permissions h2{font-size:1rem;margin:0 0 8px}.family-join-permissions article{display:flex;gap:11px;align-items:flex-start;padding:11px 0;border-bottom:1px solid #eceef1}.family-join-permissions article:last-child{border-bottom:0}.family-join-permissions article>span{color:#c8102e}.family-join-permissions b,.family-join-permissions small{display:block}.family-join-permissions small{margin-top:2px;color:#69717b}.family-join-actions{display:grid;gap:10px;margin-top:18px}.family-join-actions button{width:100%}.family-join-invalid>span{color:#c8102e}.family-join-setup{display:grid;gap:10px;margin:20px 0}.family-join-setup button{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;width:100%;padding:13px;border:1px solid #e0e3e7;border-radius:16px;background:#fff;text-align:left}.family-join-setup button>span{color:#c8102e}.family-join-setup b,.family-join-setup small{display:block}.family-join-setup small{margin-top:3px;color:#69717b}.family-join-setup em{font-style:normal;font-weight:700;color:#b20c28}.family-join-setup em.enabled{color:#147a45}.family-join-complete>.primary-button{width:100%}
@media(max-width:640px){.family-invite-fields{grid-template-columns:1fr}.family-share-actions{grid-template-columns:1fr}.family-join-shell{padding:12px 10px 34px}.family-join-card{padding:21px 15px;border-radius:21px}}

/* TrackSOS v1.1.228 — Family Live Tracking native runtime and device health */
.family-runtime-health{display:flex;align-items:flex-start;gap:12px;margin:12px 0 0;padding:14px;border:1px solid #e4e7ec;border-radius:16px;background:#fff}.family-runtime-health>span{width:38px;height:38px;border-radius:12px;background:#f5f6f7;display:grid;place-items:center;flex:0 0 auto}.family-runtime-health>div:nth-child(2){min-width:0;flex:1}.family-runtime-health strong,.family-runtime-health small,.family-runtime-health em{display:block}.family-runtime-health strong{font-size:14px;color:#151515;text-transform:capitalize}.family-runtime-health small{margin-top:3px;font-size:12px;color:#667085}.family-runtime-health em{margin-top:7px;font-size:11px;font-style:normal;color:#b42318;line-height:1.4}.family-runtime-health .family-map-row-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.family-device-warning{color:#b42318}.family-join-readiness{margin:14px 0;padding:12px 14px;border-radius:13px;background:#fff4ed;color:#b42318;font-size:12px;line-height:1.45}.family-join-readiness.ready{background:#ecfdf3;color:#027a48}.family-join-card [data-open-family-tracking]:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:520px){.family-runtime-health{align-items:stretch;flex-wrap:wrap}.family-runtime-health .family-map-row-actions{width:100%;justify-content:flex-start}.family-runtime-health .family-map-row-actions button{flex:1}}

/* TrackSOS auth fidelity rebuild v1.1.229 — follows the supplied numbered phone screens. */
.launch-splash.spatial-splash {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(239, 23, 34, .21), transparent 34%),
    linear-gradient(180deg, #171d25 0%, #10151d 48%, #080c12 100%);
}
.spatial-splash__brand {
  width: min(76vw, 292px);
  margin-top: -15vh;
}
.spatial-splash__identity {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}
.spatial-splash__mark {
  width: min(31vw, 104px);
  filter: drop-shadow(0 16px 25px rgba(0, 0, 0, .48));
}
.spatial-splash__wordmark {
  margin-top: 8px;
  color: #f7f8fa;
  font-size: clamp(2rem, 10vw, 2.55rem);
  font-weight: 720;
  letter-spacing: -.065em;
  line-height: 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .42);
}
.spatial-splash__wordmark span { color: #f21d28; }
.spatial-splash__brand > p {
  margin-top: 18px;
  color: rgba(255, 255, 255, .91);
  font-size: .88rem;
  line-height: 1.55;
}
.spatial-splash__halo {
  top: -10%;
  width: 184px;
  height: 184px;
  opacity: .78;
}
.spatial-splash__globe {
  bottom: -170px;
  width: min(155vw, 630px);
  aspect-ratio: 1.38;
  background:
    radial-gradient(ellipse at 50% 7%, rgba(255, 87, 95, .72), rgba(221, 21, 32, .23) 28%, rgba(8, 12, 17, .96) 68%),
    linear-gradient(rgba(255, 68, 77, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 68, 77, .18) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 -20px 76px rgba(239, 23, 34, .34), inset 0 17px 60px rgba(255, 39, 49, .32);
}

.onboarding-page.spatial-public-page {
  background:
    radial-gradient(circle at 50% 3%, rgba(255,255,255,.99), transparent 34%),
    linear-gradient(160deg, #fbfbfc 0%, #f1f3f6 56%, #e5e9ef 100%);
}
.onboarding-screen {
  width: min(100%, 430px);
  grid-template-rows: 34px auto minmax(248px, 1fr) auto 54px;
  padding: calc(env(safe-area-inset-top) + 10px) 17px calc(env(safe-area-inset-bottom) + 9px);
  overflow: hidden auto;
}
.onboarding-screen::before {
  top: 5%;
  right: -150px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(239,23,34,.07), transparent 68%);
}
.onboarding-screen::after {
  bottom: -45px;
  left: -145px;
  background: radial-gradient(circle, rgba(95,107,124,.10), transparent 70%);
}
.onboarding-topbar {
  min-height: 34px;
  justify-content: flex-end;
}
.onboarding-logo { display: none; }
.onboarding-skip {
  min-height: 28px;
  padding: 0 9px;
  border-color: rgba(111,120,133,.12);
  background: rgba(255,255,255,.48);
  box-shadow: none;
  color: #717985;
  font-size: .64rem;
}
.onboarding-copy {
  margin-top: 4px;
  padding: 0 12px;
}
.onboarding-kicker { display: none; }
.onboarding-copy h1 {
  margin-bottom: 9px;
  font-size: clamp(1.46rem, 6.5vw, 1.92rem);
  font-weight: 690;
  letter-spacing: -.052em;
  line-height: 1.08;
}
.onboarding-copy p {
  max-width: 292px;
  color: #555d68;
  font-size: .77rem;
  line-height: 1.5;
}
.onboarding-art {
  width: calc(100% + 34px);
  min-height: 252px;
  margin: 0 -17px -4px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.onboarding-art svg { display: none; }
.onboarding-art--welcome { background-image: url("../src/assets/images/onboarding-welcome-spatial.webp"); }
.onboarding-art--location { background-image: url("../src/assets/images/onboarding-location-spatial.webp"); }
.onboarding-art--tracking { background-image: url("../src/assets/images/onboarding-tracking-spatial.webp"); }
.onboarding-art--background { background-image: url("../src/assets/images/onboarding-background-spatial.webp"); }
.onboarding-feature-stack {
  width: min(100%, 392px);
  gap: 0;
  margin: -15px auto 2px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.89), rgba(235,239,244,.80));
  box-shadow:
    0 18px 35px rgba(32,40,51,.13),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(116,127,141,.10);
  backdrop-filter: blur(21px) saturate(128%);
}
.onboarding-feature,
.permission-row {
  min-height: 58px;
  grid-template-columns: 37px 1fr 22px;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(128,138,151,.13);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.onboarding-feature:last-child,
.permission-row:last-child { border-bottom: 0; }
.onboarding-feature__icon {
  width: 32px;
  height: 32px;
  border-color: rgba(239,23,34,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 4px 10px rgba(31,39,50,.07);
}
.onboarding-feature__copy strong {
  color: #242930;
  font-size: .69rem;
  font-weight: 700;
}
.onboarding-feature__copy small {
  margin-top: 2px;
  color: #737b86;
  font-size: .57rem;
}
.onboarding-footer {
  min-height: 52px;
  padding-top: 3px;
}
.onboarding-nav-button,
.onboarding-nav-placeholder {
  width: 43px;
  height: 43px;
}
.onboarding-nav-button--next {
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
  background: linear-gradient(145deg, #ff343d, #ef1722 58%, #c70814);
  box-shadow: 0 11px 22px rgba(205,10,20,.28), inset 0 1px 0 rgba(255,255,255,.38);
}
.onboarding-nav-button--back {
  color: #4e5661;
  background: rgba(255,255,255,.58);
  border-color: rgba(110,120,134,.12);
  box-shadow: 0 5px 12px rgba(33,41,52,.06);
}
.onboarding-dots { gap: 5px; }
.onboarding-dots i { width: 5px; height: 5px; background: #c4cad2; }
.onboarding-dots i.active { width: 14px; background: #ef1722; box-shadow: none; }

.auth-flow-page.spatial-auth-page,
.auth-flow-page--register.spatial-auth-page {
  display: block;
  padding: 0;
  color: #171b20;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.98), transparent 28%),
    linear-gradient(155deg, #fbfbfc 0%, #f2f4f7 62%, #e8ebf0 100%);
}
.auth-flow-page.spatial-auth-page::before {
  opacity: .18;
  background-size: 48px 48px;
}
.auth-flow-card.spatial-auth-card,
.auth-flow-card--register.spatial-auth-card {
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 72px) 24px calc(env(safe-area-inset-bottom) + 30px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.auth-flow-card--register.spatial-auth-card {
  padding-top: calc(env(safe-area-inset-top) + 52px);
}
.auth-flow-card.spatial-auth-card::after { display: none; }
.auth-watermark {
  z-index: 0;
  top: calc(env(safe-area-inset-top) + 21px);
  right: 19px;
  width: 70px;
  height: 78px;
  opacity: .055;
}
.auth-brand { display: none; }
.auth-back-button {
  top: calc(env(safe-area-inset-top) + 18px);
  left: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.auth-form { position: relative; z-index: 1; }
.auth-heading,
.auth-heading--left {
  margin-bottom: 28px;
  text-align: left;
}
.auth-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(1.62rem, 7vw, 2rem);
  font-weight: 690;
  letter-spacing: -.052em;
}
.auth-heading p {
  max-width: 285px;
  color: #626a75;
  font-size: .76rem;
  line-height: 1.52;
}
.auth-kicker { display: none; }
.auth-field-grid {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.auth-field {
  gap: 5px;
  margin-bottom: 12px;
}
.auth-field > span {
  color: #535b66;
  font-size: .61rem;
  font-weight: 650;
}
.auth-field-control {
  min-height: 49px;
  padding: 0 13px;
  border: 1px solid rgba(132,142,155,.19);
  border-radius: 9px;
  color: #858d97;
  background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(237,240,244,.78));
  box-shadow: 0 7px 15px rgba(30,38,49,.06), inset 0 1px 0 rgba(255,255,255,.96);
}
.auth-field-control > svg:first-child { display: none; }
.auth-field-control input {
  font-size: .75rem;
}
.auth-field-control:focus-within {
  border-color: rgba(239,23,34,.43);
  box-shadow: 0 0 0 3px rgba(239,23,34,.065), 0 9px 20px rgba(30,38,49,.07);
}
.auth-form-meta {
  margin: 0 0 16px;
  font-size: .59rem;
}
.auth-primary-button {
  min-height: 49px;
  border-radius: 8px;
  font-size: .73rem;
  box-shadow: 0 12px 24px rgba(205,10,21,.25), inset 0 1px 0 rgba(255,255,255,.34);
}
.auth-security-note { display: none; }
.auth-flow-page .auth-footer {
  margin-top: 26px;
  font-size: .62rem;
}
.auth-consent {
  margin: 7px 0 13px;
  font-size: .58rem;
}
.auth-password-rules {
  margin: -2px 0 11px;
  font-size: .53rem;
}
.auth-code-inputs { gap: 6px; margin-top: 12px; }
.auth-code-inputs input {
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(230,234,240,.82));
  box-shadow: 0 7px 14px rgba(30,38,48,.06), inset 0 1px 0 #fff;
}
.auth-form-help { max-width: 270px; margin-bottom: 24px; }
.auth-success-mark {
  width: 92px;
  height: 92px;
  margin: 52px auto 27px;
}

@media (max-width: 520px) {
  .auth-flow-card.spatial-auth-card,
  .auth-flow-card--register.spatial-auth-card {
    display: block;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .auth-flow-card--register.spatial-auth-card {
    padding-top: calc(env(safe-area-inset-top) + 52px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 22px);
  }
}

@media (max-height: 760px) {
  .onboarding-screen {
    grid-template-rows: 30px auto minmax(190px, 1fr) auto 47px;
  }
  .onboarding-copy h1 { font-size: 1.3rem; }
  .onboarding-copy p { font-size: .67rem; }
  .onboarding-art { min-height: 194px; width: calc(100% + 28px); margin-left: -14px; margin-right: -14px; }
  .onboarding-feature,
  .permission-row { min-height: 49px; padding-top: 5px; padding-bottom: 5px; }
  .onboarding-feature__copy small { display: block; }
  .onboarding-footer { min-height: 45px; }
  .auth-flow-card.spatial-auth-card { padding-top: calc(env(safe-area-inset-top) + 53px); }
  .auth-flow-card--register.spatial-auth-card { padding-top: calc(env(safe-area-inset-top) + 42px); }
  .auth-heading { margin-bottom: 18px; }
  .auth-heading h1 { font-size: 1.5rem; }
  .auth-field { margin-bottom: 8px; }
  .auth-field-control { min-height: 43px; }
  .auth-flow-page .auth-footer { margin-top: 15px; }
}

/* Final fidelity refinements: clean reference artwork and uncluttered numbered-screen top area. */
.onboarding-skip { visibility: hidden; }
.onboarding-art { min-height: 240px; background-size: 92% auto; }
.onboarding-art--tracking { background-size: 96% auto; }
.spatial-splash__mark { width: min(28vw, 92px); }
.spatial-splash__wordmark { margin-top: 10px; color: #ffffff; }

/* TrackSOS v1.1.234 — Kotlin native map launch controls */
.family-map-toolbar [data-open-native-family],
.safe-zone-map-toolbar [data-open-native-zones],
.checkin-location-actions [data-open-native-checkin] {
  border-color: #152033;
  background: #101826;
  color: #fff;
}
.family-map-toolbar [data-open-native-family] svg,
.safe-zone-map-toolbar [data-open-native-zones] svg,
.checkin-location-actions [data-open-native-checkin] svg { color: #fff; }
.checkin-location-actions { display: flex; align-items: center; gap: 7px; }
.checkin-location-actions button { white-space: nowrap; }
.report-location-map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.report-location-map-actions .report-use-location { margin-top: 0; }
.report-location-map-actions [data-open-native-incident-map] { border-color: #152033; background: #101826; color: #fff; }
@media (max-width: 560px) {
  .report-location-map-actions { grid-template-columns: 1fr; }
  .family-map-toolbar { grid-template-columns: 1fr 1fr; }
  .family-map-toolbar select { grid-column: 1 / -1; }
}


/* TrackSOS v1.1.236 — Android live-map handoff */
.native-map-only-host {
  display: grid;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(19, 27, 39, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(215, 25, 32, .12), transparent 34%),
    linear-gradient(145deg, #f7f9fc, #eef2f7);
}
.native-map-only-card {
  display: grid;
  width: min(88%, 360px);
  justify-items: center;
  gap: 9px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 44px rgba(18, 29, 47, .14);
  backdrop-filter: blur(16px);
}
.native-map-only-card strong { color: #17191e; font-size: 1.05rem; }
.native-map-only-card p { margin: 0; color: #5f6875; font-size: .86rem; line-height: 1.45; }
.native-map-only-card small { color: #7b8490; font-size: .72rem; }
.native-map-only-card button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #ef2737, #b80e1c);
  box-shadow: 0 10px 24px rgba(215, 25, 32, .24);
  font-weight: 760;
}
.native-map-only-badge {
  padding: 5px 10px;
  border-radius: 999px;
  color: #a70d19;
  background: #fff1f2;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tracksos-native-map-only .leaflet-container,
.tracksos-native-map-only .leaflet-pane,
.tracksos-native-map-only .leaflet-control-container { display: none; }
.tracksos-native-map-only [data-nearby-zoom-in],
.tracksos-native-map-only [data-nearby-zoom-out],
.tracksos-native-map-only [data-nearby-layer],
.tracksos-native-map-only [data-zone-zoom-in],
.tracksos-native-map-only [data-zone-zoom-out],
.tracksos-native-map-only [data-zone-layer],
.tracksos-native-map-only [data-map-layer] { display: none; }

/* TrackSOS v1.1.237 — approved light splash, permission onboarding and auth screens */
.light-spatial-splash.launch-splash.spatial-splash {
  color: #161b22;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.99) 0 8%, rgba(244,247,250,.94) 38%, transparent 62%),
    linear-gradient(180deg, #f8fafc 0%, #e8edf3 58%, #cfd7e1 100%);
}
.light-spatial-splash::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.95), transparent 28%),
    radial-gradient(circle at 83% 16%, rgba(214,222,232,.7), transparent 30%);
}
.splash-world-dots {
  position: absolute;
  z-index: 1;
  top: calc(env(safe-area-inset-top) + 60px);
  left: 50%;
  width: min(92vw, 390px);
  height: 190px;
  opacity: .35;
  transform: translateX(-50%);
  background-image: radial-gradient(circle, #9ca8b7 1.25px, transparent 1.5px);
  background-size: 8px 8px;
  mask-image: radial-gradient(ellipse at center, #000 0 56%, transparent 74%);
}
.light-spatial-splash .spatial-splash__brand {
  width: min(78vw, 292px);
  margin-top: -10vh;
}
.light-spatial-splash .splash-official-logo {
  width: min(64vw, 235px);
  filter: drop-shadow(0 17px 25px rgba(38,46,57,.16));
}
.light-spatial-splash .spatial-splash__brand p {
  margin-top: 17px;
  color: #252b33;
  font-size: .88rem;
  line-height: 1.52;
}
.light-spatial-splash .spatial-splash__brand p strong { font-weight: 650; }
.light-spatial-splash .spatial-splash__halo {
  top: -5%;
  width: 245px;
  height: 245px;
  opacity: .76;
  border-color: rgba(239,23,34,.13);
  background: radial-gradient(circle, rgba(255,50,61,.17), transparent 67%);
  box-shadow: 0 0 85px rgba(239,23,34,.12);
}
.light-spatial-splash .spatial-splash__stars { display: none; }
.light-spatial-splash .spatial-splash__globe {
  bottom: -158px;
  width: min(150vw, 610px);
  aspect-ratio: 1.42;
  border-color: rgba(239,23,34,.24);
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255,255,255,.92), rgba(255,58,69,.38) 18%, rgba(226,25,37,.17) 38%, rgba(92,108,126,.32) 72%),
    linear-gradient(rgba(239,23,34,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,23,34,.18) 1px, transparent 1px);
  background-size: auto, 29px 29px, 29px 29px;
  box-shadow: 0 -24px 74px rgba(239,23,34,.23), inset 0 19px 55px rgba(255,59,69,.25);
}
.light-spatial-splash .launch-splash__progress {
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  width: 116px;
  height: 4px;
  background: rgba(84,97,113,.22);
}
.light-spatial-splash .launch-splash__progress i {
  width: 58%;
  background: linear-gradient(90deg, #e6101d, #ff4a54);
  box-shadow: 0 0 10px rgba(239,23,34,.38);
}

.onboarding-page.spatial-public-page {
  color: #141920;
  background:
    radial-gradient(circle at 50% 7%, #fff 0 17%, rgba(255,255,255,.7) 38%, transparent 64%),
    linear-gradient(160deg, #f9fafc 0%, #eef2f6 57%, #e0e6ed 100%);
}
.onboarding-screen {
  width: min(100%, 440px);
  grid-template-rows: 62px auto minmax(194px, 1fr) auto auto;
  align-items: center;
  gap: 0;
  padding: calc(env(safe-area-inset-top) + 7px) 18px calc(env(safe-area-inset-bottom) + 10px);
  overflow: hidden auto;
}
.onboarding-screen::before {
  top: 9%;
  right: -135px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(239,23,34,.07), transparent 70%);
}
.onboarding-screen::after {
  bottom: -120px;
  left: -90px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(99,113,132,.1), transparent 70%);
}
.onboarding-topbar {
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
}
.onboarding-logo {
  display: block;
  width: 116px;
  max-height: 61px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(31,38,49,.1));
}
.onboarding-step-count {
  display: grid;
  min-width: 46px;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(128,139,153,.17);
  border-radius: 999px;
  color: #68717d;
  background: rgba(255,255,255,.62);
  box-shadow: 0 5px 13px rgba(35,43,54,.05);
  font-size: .62rem;
  font-weight: 720;
}
.onboarding-copy {
  width: 100%;
  margin: 2px auto 0;
  padding: 0 8px;
  text-align: center;
}
.onboarding-copy h1 {
  max-width: 340px;
  margin: 0 auto 6px;
  color: #151a21;
  font-size: clamp(1.36rem, 6.3vw, 1.78rem);
  font-weight: 740;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.onboarding-copy > strong {
  display: block;
  margin: 0 auto 6px;
  color: #ef1722;
  font-size: .76rem;
  font-weight: 720;
}
.onboarding-copy p {
  max-width: 334px;
  margin: 0 auto;
  color: #68717c;
  font-size: .66rem;
  line-height: 1.45;
}
.onboarding-art.onboarding-art--permission {
  display: grid;
  width: 100%;
  min-height: 194px;
  margin: 0;
  place-items: center;
  background: none;
}
.onboarding-art.onboarding-art--permission svg {
  display: block;
  width: min(100%, 380px);
  max-height: 240px;
  overflow: visible;
}
.onboarding-feature-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  gap: 0;
  margin: -2px auto 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(235,239,244,.84));
  box-shadow: 0 14px 30px rgba(31,39,49,.12), inset 0 1px 0 #fff;
  backdrop-filter: blur(20px) saturate(130%);
}
.onboarding-feature,
.permission-row {
  display: grid;
  min-height: 57px;
  grid-template-columns: 39px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(126,137,151,.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.onboarding-feature:last-child { border-bottom: 0; }
.onboarding-feature.is-current { background: rgba(255,248,249,.65); }
.onboarding-feature.is-enabled { background: rgba(243,251,246,.66); }
.onboarding-feature__icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #ef1722;
  border: 1px solid rgba(239,23,34,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 12px rgba(31,39,50,.07);
}
.onboarding-feature.is-enabled .onboarding-feature__icon { color: #16834a; border-color: rgba(22,131,74,.17); }
.onboarding-feature__copy strong {
  display: block;
  color: #252b33;
  font-size: .69rem;
  font-weight: 740;
}
.onboarding-feature__copy small {
  display: block;
  margin-top: 2px;
  color: #707985;
  font-size: .57rem;
  line-height: 1.35;
}
.onboarding-feature__state {
  display: flex;
  align-items: center;
  color: #16834a;
}
.onboarding-feature__state em {
  min-width: 45px;
  color: #858d98;
  font-size: .53rem;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}
.onboarding-feature.is-current .onboarding-feature__state em { color: #ef1722; }
.onboarding-footer.onboarding-footer--permission {
  display: grid;
  width: 100%;
  min-height: 99px;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 8px;
  padding-top: 2px;
}
.onboarding-footer--permission .onboarding-dots {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
}
.onboarding-enable-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ff343f 0%, #ef1722 58%, #cb0714 100%);
  box-shadow: 0 12px 25px rgba(205,10,21,.26), inset 0 1px 0 rgba(255,255,255,.34);
  font-size: .75rem;
  font-weight: 760;
}
.onboarding-enable-button:disabled { opacity: .66; }
.onboarding-enable-button.is-loading { cursor: wait; }
.onboarding-back-link {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  left: 20px;
  display: none;
  align-items: center;
  gap: 3px;
  border: 0;
  color: #59626e;
  background: transparent;
  font-size: .61rem;
}
.onboarding-dots { display: flex; gap: 7px; }
.onboarding-dots i { width: 7px; height: 7px; border-radius: 999px; background: #c2c9d2; }
.onboarding-dots i.active { width: 18px; background: #ef1722; box-shadow: none; }

.auth-flow-page.spatial-auth-page,
.auth-flow-page--register.spatial-auth-page {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  color: #161b22;
  background:
    radial-gradient(circle at 50% 5%, rgba(255,255,255,.99), rgba(249,250,252,.88) 33%, transparent 61%),
    linear-gradient(160deg, #f8fafc 0%, #edf1f5 60%, #dce3eb 100%);
}
.auth-flow-page.spatial-auth-page::before {
  opacity: .24;
  background-image: radial-gradient(circle, #9da9b7 1px, transparent 1.25px);
  background-size: 7px 7px;
  mask-image: radial-gradient(ellipse at 50% 12%, #000 0 30%, transparent 58%);
}
.auth-flow-card.spatial-auth-card,
.auth-flow-card--register.spatial-auth-card {
  position: relative;
  display: flex;
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 20px) 24px calc(env(safe-area-inset-bottom) + 96px);
  overflow: hidden auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-flow-card--register.spatial-auth-card {
  justify-content: flex-start;
  padding-top: calc(env(safe-area-inset-top) + 14px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 74px);
}
.auth-flow-card.spatial-auth-card::after { display: none; }
.auth-page-glow {
  position: absolute;
  z-index: 0;
  right: 50%;
  bottom: -155px;
  width: min(150vw, 590px);
  aspect-ratio: 1.5;
  overflow: hidden;
  border: 1px solid rgba(239,23,34,.22);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
  transform: translateX(50%) perspective(450px) rotateX(28deg);
  background:
    radial-gradient(ellipse at 50% 4%, rgba(255,255,255,.88), rgba(255,55,65,.34) 20%, rgba(229,19,31,.12) 43%, rgba(105,119,136,.18) 74%),
    linear-gradient(rgba(239,23,34,.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,23,34,.17) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 -18px 66px rgba(239,23,34,.2), inset 0 17px 52px rgba(255,54,65,.2);
}
.auth-page-glow span,
.auth-page-glow i,
.auth-page-glow b {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff414b;
  box-shadow: 0 0 12px rgba(239,23,34,.7);
}
.auth-page-glow span { top: 14%; left: 28%; }
.auth-page-glow i { top: 8%; right: 31%; }
.auth-page-glow b { top: 32%; left: 56%; }
.auth-watermark { display: none; }
.auth-brand {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0 auto 18px;
  text-align: center;
}
.auth-brand__logo {
  width: min(46vw, 164px);
  max-height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 10px 17px rgba(30,37,47,.13));
}
.auth-brand p { display: none; }
.auth-brand--login { margin-bottom: 22px; }
.auth-brand--compact { margin-bottom: 9px; }
.auth-brand--compact .auth-brand__logo { width: min(36vw, 135px); max-height: 86px; }
.auth-form { position: relative; z-index: 1; width: 100%; }
.auth-heading,
.auth-heading--left {
  margin-bottom: 25px;
  text-align: center;
}
.auth-heading h1 {
  margin: 0 0 8px;
  color: #181d24;
  font-size: clamp(1.45rem, 6.3vw, 1.85rem);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.auth-heading p {
  max-width: 310px;
  margin: 0 auto;
  color: #616a76;
  font-size: .72rem;
  line-height: 1.48;
}
.auth-kicker { display: none; }
.auth-field-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-field { gap: 0; margin-bottom: 10px; }
.auth-field > span.sr-only { position: absolute; }
.auth-field-control {
  min-height: 54px;
  gap: 11px;
  padding: 0 14px;
  color: #ef1722;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(232,236,242,.78));
  box-shadow: 0 10px 20px rgba(31,39,49,.09), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(113,124,139,.1);
  backdrop-filter: blur(18px);
}
.auth-field-control > svg:first-child { display: block; flex: 0 0 auto; }
.auth-field-control input { color: #20262e; font-size: .76rem; }
.auth-field-control input::placeholder { color: #68717d; opacity: .92; }
.auth-field-control:focus-within {
  border-color: rgba(239,23,34,.35);
  box-shadow: 0 0 0 3px rgba(239,23,34,.065), 0 12px 24px rgba(31,39,49,.1), inset 0 1px 0 #fff;
}
.field-icon-button { color: #606a76; }
.auth-forgot-row {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-end;
  margin: -1px 0 8px;
}
.auth-forgot-row .text-link { color: #ef1722; font-size: .68rem; font-weight: 700; }
.auth-primary-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-size: .78rem;
  box-shadow: 0 13px 27px rgba(205,10,21,.27), inset 0 1px 0 rgba(255,255,255,.34);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  color: #6c7580;
  font-size: .66rem;
}
.auth-divider::before,
.auth-divider::after { height: 1px; flex: 1; background: rgba(99,111,126,.25); content: ""; }
.auth-secondary-button {
  display: flex;
  width: 100%;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(84,96,111,.52);
  border-radius: 12px;
  color: #222932;
  background: rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  font-size: .75rem;
  font-weight: 720;
}
.auth-back-to-login {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 auto;
  border: 0;
  color: #333b46;
  background: transparent;
  font-size: .7rem;
  font-weight: 690;
}
.auth-back-button {
  top: calc(env(safe-area-inset-top) + 12px);
  left: 14px;
  width: 38px;
  height: 38px;
  color: #2d3540;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.auth-flow-page .auth-footer { margin-top: 14px; color: #616a75; font-size: .65rem; }
.auth-consent { margin: 5px 0 10px; color: #555e69; font-size: .58rem; line-height: 1.4; }
.auth-password-rules { margin: -3px 0 8px; color: #9299a3; font-size: .5rem; }
.auth-password-rules span.is-valid { color: #178148; }
.auth-package-invite { margin-bottom: 8px; }
.auth-flow-page--forgot .auth-flow-card { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top) + 24px); }
.auth-flow-page--forgot .auth-brand { margin-top: 22px; margin-bottom: 24px; }
.auth-flow-page--forgot .auth-heading { margin-bottom: 34px; }
.auth-flow-page--forgot .auth-primary-button { margin-top: 20px; }
.auth-flow-page--register .auth-heading { margin-bottom: 13px; }
.auth-flow-page--register .auth-field-control { min-height: 46px; border-radius: 11px; }
.auth-flow-page--register .auth-field { margin-bottom: 7px; }
.auth-flow-page--register .auth-primary-button { min-height: 48px; }

@media (max-height: 760px) {
  .light-spatial-splash .spatial-splash__brand { margin-top: -7vh; }
  .onboarding-screen { grid-template-rows: 52px auto minmax(154px, 1fr) auto auto; padding-top: calc(env(safe-area-inset-top) + 4px); }
  .onboarding-topbar { min-height: 52px; }
  .onboarding-logo { width: 99px; max-height: 50px; }
  .onboarding-copy h1 { font-size: 1.25rem; }
  .onboarding-copy > strong { font-size: .67rem; }
  .onboarding-copy p { font-size: .59rem; }
  .onboarding-art.onboarding-art--permission { min-height: 154px; }
  .onboarding-art.onboarding-art--permission svg { max-height: 180px; }
  .onboarding-feature { min-height: 49px; padding-top: 5px; padding-bottom: 5px; }
  .onboarding-feature__copy small { font-size: .52rem; }
  .onboarding-footer.onboarding-footer--permission { min-height: 83px; gap: 4px; }
  .onboarding-enable-button { min-height: 46px; }
  .auth-flow-card.spatial-auth-card { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top) + 13px); }
  .auth-brand--login { margin-bottom: 10px; }
  .auth-brand__logo { width: 132px; max-height: 93px; }
  .auth-heading { margin-bottom: 16px; }
  .auth-heading h1 { font-size: 1.45rem; }
  .auth-field-control { min-height: 48px; }
  .auth-flow-page--register .auth-brand__logo { width: 106px; max-height: 67px; }
  .auth-flow-page--register .auth-heading { margin-bottom: 9px; }
  .auth-flow-page--register .auth-heading h1 { font-size: 1.28rem; }
  .auth-flow-page--register .auth-heading p { font-size: .63rem; }
  .auth-flow-page--register .auth-field-control { min-height: 42px; }
  .auth-flow-page--register .auth-field { margin-bottom: 5px; }
  .auth-flow-page--register .auth-consent { margin: 3px 0 7px; }
  .auth-flow-page--register .auth-primary-button { min-height: 45px; }
}

@media (max-width: 360px) {
  .onboarding-screen { padding-inline: 13px; }
  .onboarding-feature__copy small { font-size: .52rem; }
  .auth-flow-card.spatial-auth-card,
  .auth-flow-card--register.spatial-auth-card { padding-inline: 18px; }
  .auth-field-grid--names { gap: 6px; }
  .auth-field-control { padding-inline: 11px; }
}

/* Keep every public setup screen inside the physical Android viewport. */
.onboarding-screen,
.auth-flow-card.spatial-auth-card,
.auth-flow-card--register.spatial-auth-card {
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}


/* TrackSOS v1.1.239 — screenshot issue corrections */
.onboarding-topbar {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: initial;
}
.onboarding-logo {
  grid-column: 2;
  justify-self: center;
}
.onboarding-step-count {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

/* Pull the lower globe closer to the final action without covering the form. */
.auth-flow-page--login .auth-page-glow { bottom: -110px; }
.auth-flow-page--forgot .auth-page-glow,
.auth-flow-page--reset .auth-page-glow { bottom: -70px; }


/* TrackSOS v1.1.240 — official logo spacing and proportional sizing */
.onboarding-screen {
  grid-template-rows: 84px auto minmax(194px, 1fr) auto auto;
}
.onboarding-topbar {
  min-height: 84px;
}
.onboarding-logo {
  width: min(36vw, 126px);
  height: auto;
  max-height: none;
  object-fit: contain;
}
.onboarding-step-count {
  top: 18px;
  transform: none;
}
.auth-brand__logo,
.auth-brand--compact .auth-brand__logo {
  height: auto;
  max-height: none;
  object-fit: contain;
}

@media (max-height: 760px) {
  .onboarding-screen {
    grid-template-rows: 72px auto minmax(154px, 1fr) auto auto;
  }
  .onboarding-topbar {
    min-height: 82px;
  }
  .onboarding-logo {
    width: min(32vw, 108px);
    height: auto;
    max-height: none;
  }
  .onboarding-step-count {
    top: 9px;
  }
  .auth-brand__logo,
  .auth-flow-page--register .auth-brand__logo {
    height: auto;
    max-height: none;
  }
}

/* TrackSOS v1.1.241 — deliberate brand header, no squeezed top logo */
.onboarding-page.spatial-public-page .onboarding-screen {
  grid-template-rows: 150px auto minmax(166px, 1fr) auto auto;
  padding-top: calc(env(safe-area-inset-top) + 12px);
}
.onboarding-page.spatial-public-page .onboarding-topbar {
  position: relative;
  display: grid;
  min-height: 150px;
  grid-template-columns: 1fr;
  place-items: center;
}
.onboarding-page.spatial-public-page .onboarding-brand-panel {
  display: grid;
  width: 214px;
  min-height: 126px;
  place-items: center;
  padding: 12px 20px 10px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(246,248,251,.88));
  box-shadow: 0 18px 38px rgba(31, 39, 50, .11), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(125%);
}
.onboarding-page.spatial-public-page .onboarding-logo {
  display: block;
  width: 174px;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 9px 14px rgba(31,38,49,.12));
}
.onboarding-page.spatial-public-page .onboarding-step-count {
  position: absolute;
  top: 10px;
  right: 0;
  transform: none;
}
.onboarding-page.spatial-public-page .onboarding-copy {
  margin-top: 15px;
}
.onboarding-page.spatial-public-page .onboarding-copy h1 {
  margin-bottom: 9px;
}
.onboarding-page.spatial-public-page .onboarding-copy > strong {
  margin-bottom: 9px;
}

.auth-flow-page .auth-brand {
  justify-items: center;
}
.auth-flow-page .auth-brand__panel {
  display: grid;
  width: 206px;
  min-height: 124px;
  place-items: center;
  padding: 11px 18px 9px;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(242,245,249,.85));
  box-shadow: 0 16px 34px rgba(31,39,50,.10), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(125%);
}
.auth-flow-page .auth-brand__logo,
.auth-flow-page .auth-brand--compact .auth-brand__logo {
  width: 168px;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.auth-flow-page .auth-brand--compact .auth-brand__panel {
  width: 174px;
  min-height: 104px;
  padding: 9px 15px 8px;
  border-radius: 22px;
}
.auth-flow-page .auth-brand--compact .auth-brand__logo {
  width: 142px;
}

@media (max-height: 760px) {
  .onboarding-page.spatial-public-page .onboarding-screen {
    grid-template-rows: 126px auto minmax(144px, 1fr) auto auto;
    padding-top: calc(env(safe-area-inset-top) + 7px);
  }
  .onboarding-page.spatial-public-page .onboarding-topbar { min-height: 126px; }
  .onboarding-page.spatial-public-page .onboarding-brand-panel {
    width: 184px;
    min-height: 106px;
    padding: 9px 16px 8px;
    border-radius: 22px;
  }
  .onboarding-page.spatial-public-page .onboarding-logo { width: 150px; }
  .onboarding-page.spatial-public-page .onboarding-copy { margin-top: 9px; }
  .auth-flow-page .auth-brand__panel {
    width: 180px;
    min-height: 108px;
  }
  .auth-flow-page .auth-brand__logo { width: 148px; }
  .auth-flow-page .auth-brand--compact .auth-brand__panel {
    width: 154px;
    min-height: 92px;
  }
  .auth-flow-page .auth-brand--compact .auth-brand__logo { width: 126px; }
}


/* TrackSOS v1.1.245 — Safe Check-In readability and reliable Family invitation UI */
.safe-checkin-page-v4 {
  width: min(100%, 920px);
  padding: 26px;
  border-color: #e4e8ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 31, 52, .07);
}
.safe-checkin-page-v4 .checkin-intro { min-height: 178px; }
.safe-checkin-page-v4 .checkin-intro-copy h1 {
  margin: 7px 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 690;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.safe-checkin-page-v4 .checkin-intro-copy p {
  max-width: 520px;
  font-size: .98rem;
  line-height: 1.5;
}
.safe-checkin-page-v4 .checkin-private-rule { padding: 14px 16px; }
.safe-checkin-page-v4 .checkin-private-rule strong { font-size: .86rem; font-weight: 680; }
.safe-checkin-page-v4 .checkin-private-rule p { font-size: .76rem; line-height: 1.45; }
.safe-checkin-page-v4 .checkin-section { margin-top: 25px; }
.safe-checkin-page-v4 .checkin-section-heading span { font-size: .84rem; font-weight: 700; }
.safe-checkin-page-v4 .checkin-section-heading small { font-size: .74rem; line-height: 1.4; }
.safe-checkin-page-v4 .checkin-section-heading--action button { min-height: 38px; font-size: .8rem; }
.safe-checkin-page-v4 .checkin-status-grid--phase3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  min-height: 142px;
  padding: 17px 12px 15px;
  border-radius: 20px;
  text-align: center;
  gap: 4px;
}
.safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-icon {
  grid-column: 1;
  grid-row: 1;
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}
.safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-icon svg { width: 30px; height: 30px; }
.safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card strong {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: .94rem;
  font-weight: 680;
  line-height: 1.2;
}
.safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card small {
  grid-column: 1;
  grid-row: 3;
  max-width: 150px;
  font-size: .72rem;
  line-height: 1.35;
}
.safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-chevron {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  grid-column: auto;
  grid-row: auto;
  transform: translateY(-50%);
}
.checkin-more-statuses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.checkin-more-statuses > span {
  margin-right: 2px;
  color: #657085;
  font-size: .74rem;
  font-weight: 650;
}
.checkin-more-status {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  color: #29364a;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 39, 61, .04);
}
.checkin-more-status span { display: grid; color: #1769e0; }
.checkin-more-status strong { font-size: .76rem; font-weight: 650; }
.checkin-more-status.selected {
  border-color: #1769e0;
  color: #0d4fb7;
  background: #eef5ff;
  box-shadow: 0 0 0 2px rgba(23, 105, 224, .11);
}
.safe-checkin-page-v4 .checkin-contact-copy strong { font-size: .9rem; font-weight: 670; }
.safe-checkin-page-v4 .checkin-contact-copy small { font-size: .76rem; }
.safe-checkin-page-v4 .checkin-empty-contacts strong { font-size: .88rem; }
.safe-checkin-page-v4 .checkin-empty-contacts p,
.safe-checkin-page-v4 .checkin-empty-contacts button { font-size: .75rem; line-height: 1.4; }
.safe-checkin-page-v4 .checkin-location-toggle b { font-size: .82rem; font-weight: 670; }
.safe-checkin-page-v4 .checkin-location-toggle small { font-size: .72rem; }
.safe-checkin-page-v4 .checkin-location-copy strong { font-size: .9rem; }
.safe-checkin-page-v4 .checkin-location-copy p { font-size: .79rem; line-height: 1.45; }
.safe-checkin-page-v4 .checkin-location-copy small { font-size: .72rem; }
.safe-checkin-page-v4 .checkin-message-control > span,
.safe-checkin-page-v4 .checkin-next-control > span { font-size: .82rem; font-weight: 680; }
.safe-checkin-page-v4 .checkin-message-control textarea,
.safe-checkin-page-v4 .checkin-next-control select { font-size: .9rem; }
.safe-checkin-page-v4 .checkin-next-control small { font-size: .7rem; line-height: 1.45; }
.safe-checkin-page-v4 .checkin-send-button { min-height: 58px; font-size: .98rem; font-weight: 700; }
.safe-checkin-page-v4 .checkin-feed-copy strong { font-size: .82rem; }
.safe-checkin-page-v4 .checkin-feed-copy time { font-size: .66rem; }
.safe-checkin-page-v4 .checkin-feed-copy b,
.safe-checkin-page-v4 .checkin-feed-copy p { font-size: .74rem; line-height: 1.4; }
.safe-checkin-page-v4 .checkin-feed-copy small,
.safe-checkin-page-v4 .checkin-feed-row > em,
.safe-checkin-page-v4 .checkin-feed-row > button { font-size: .68rem; }
.safe-checkin-page-v4 .checkin-feed-empty strong { font-size: .84rem; }
.safe-checkin-page-v4 .checkin-feed-empty p { font-size: .74rem; }

.family-live-page-v4 .family-live-intro { align-items: center; }
.family-live-page-v4 .family-invite-button {
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid #bfe3c9;
  border-radius: 14px;
  color: #087a36;
  background: #f4fff7;
  font-size: .84rem;
  font-weight: 680;
  box-shadow: 0 7px 18px rgba(18, 130, 61, .08);
}
.family-invite-callout {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 17px 18px;
  border: 1px solid #cfe9d7;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fff9 0%, #effbf3 100%);
  box-shadow: 0 8px 22px rgba(20, 122, 61, .07);
}
.family-invite-callout-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  color: #0a7b38;
  background: #dcf6e4;
}
.family-invite-callout > div { min-width: 0; }
.family-invite-callout h2 { margin: 2px 0 4px; font-size: 1.05rem; font-weight: 690; }
.family-invite-callout p { margin: 0; color: #5d6a63; font-size: .78rem; line-height: 1.45; }
.family-invite-callout button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #159447, #087532);
  font-size: .78rem;
  font-weight: 680;
  box-shadow: 0 8px 18px rgba(13, 122, 53, .18);
}
.family-load-error {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.family-load-error > span { display: grid; place-items: center; color: #b42318; }
.family-load-error > div { min-width: 0; }
.family-load-error strong { display: block; font-size: .86rem; }
.family-load-error p { margin: 3px 0 0; color: #69717b; font-size: .74rem; line-height: 1.4; }
.family-load-error button { min-height: 38px; padding: 0 11px; border: 1px solid #d9dde3; border-radius: 11px; background: #fff; font-size: .75rem; }
.family-live-page-v4 .family-modal h2 { font-size: 1.3rem; font-weight: 690; }
.family-live-page-v4 .family-modal > p { font-size: .82rem; line-height: 1.5; }
.family-live-page-v4 .family-modal-field { font-size: .8rem; }
.family-live-page-v4 .family-modal-field input,
.family-live-page-v4 .family-modal-field select { font-size: .9rem; }
.family-live-page-v4 .family-modal-toggles strong { font-size: .8rem; }
.family-live-page-v4 .family-modal-toggles small { font-size: .7rem; line-height: 1.4; }
.family-live-page-v4 .family-modal-primary { font-size: .84rem; }

@media (max-width: 640px) {
  .safe-checkin-page-v4 { padding: 18px 14px 26px; border-radius: 20px; }
  .safe-checkin-page-v4 .checkin-intro { grid-template-columns: minmax(0, 1.35fr) minmax(112px, .65fr); min-height: 155px; gap: 8px; }
  .safe-checkin-page-v4 .checkin-intro-copy h1 { font-size: clamp(1.78rem, 8vw, 2.12rem); }
  .safe-checkin-page-v4 .checkin-intro-copy p { font-size: .84rem; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card {
    min-height: 128px;
    padding: 13px 6px 12px;
    border-radius: 17px;
  }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-icon { width: 42px; height: 42px; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-icon svg { width: 27px; height: 27px; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card strong { font-size: .82rem; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card small { max-width: 96px; font-size: .64rem; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-chevron { right: 4px; }
  .checkin-more-statuses > span { width: 100%; }
  .checkin-more-status { flex: 1 1 30%; justify-content: center; padding: 0 8px; }
  .checkin-more-status strong { font-size: .7rem; }
  .family-invite-callout { grid-template-columns: 48px minmax(0, 1fr); padding: 15px; }
  .family-invite-callout button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 380px) {
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card { min-height: 122px; padding-inline: 4px; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card strong { font-size: .76rem; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-card small { font-size: .6rem; }
  .safe-checkin-page-v4 .checkin-status-grid--phase3 .checkin-status-chevron { display: none; }
  .checkin-more-status { flex-basis: 100%; justify-content: flex-start; padding-inline: 12px; }
}


/* TrackSOS v1.1.245 — final visual QA corrections for Safe Check-In and Family invitation sheet */
.safe-checkin-page-v4 .checkin-message-control {
  position: relative;
  display: grid;
  min-height: 0;
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.safe-checkin-page-v4 .checkin-message-control > span,
.safe-checkin-page-v4 .checkin-next-control > span {
  display: block;
  padding-left: 1px;
  color: #243246;
  font-size: .84rem;
  font-weight: 690;
  line-height: 1.3;
}
.safe-checkin-page-v4 .checkin-message-control textarea {
  min-height: 126px;
  padding: 16px 18px 28px;
  border: 1px solid #dce2e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(25, 42, 65, .045);
}
.safe-checkin-page-v4 .checkin-message-control > small {
  right: 15px;
  bottom: 12px;
}
.safe-checkin-page-v4 .checkin-next-control {
  gap: 8px;
}
.safe-checkin-page-v4 .checkin-next-control select {
  min-height: 52px;
  font-size: .9rem;
}

/* The Family sheet must sit above the fixed SOS footer. */
.family-modal-backdrop {
  z-index: 1400;
}
.family-live-page-v4 .family-modal {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.family-live-page-v4 .family-modal-primary.full {
  min-height: 52px;
  font-size: .88rem;
}

@media (max-width: 640px) {
  .safe-checkin-page-v4 .checkin-intro-copy h1 {
    max-width: 260px;
  }
  .safe-checkin-page-v4 .checkin-message-control textarea {
    min-height: 132px;
  }
  .family-modal-backdrop {
    place-items: end stretch;
    padding: 12px 0 0;
  }
  .family-live-page-v4 .family-modal {
    width: 100%;
    max-height: calc(100dvh - 12px);
    padding: 22px 16px calc(30px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
}
