/* ==================== v93 GREY FOX CARE — FLAGSHIP MOBILE DESIGN SYSTEM ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* 1. Unify Care Brand Variables so ALL buttons, avatars, icon badges & pills match seamlessly (Zero Olive/Navy Clash!) */
html:root,
html:not(.gf-care-dark) {
  --m3-primary: #173753 !important;
  --m3-primary-dark: #0F2940 !important;
  --m3-primary-soft: #E5EFFA !important;
  --gf-care-card-bg: #FFFFFF !important;
  --gf-care-card-bdr: #D8E2EE !important;
  --gf-care-well-bg: #F4F7FB !important;
  --gf-care-well-bdr: #DCE5F0 !important;
  --gf-care-pill-bg: #EAF2FA !important;
  --gf-care-pill-bdr: #C5D9EE !important;
}

/* 2. Hard Mobile Pinch-Zoom Lock & Typography */
html, body, body.gf-app-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: none !important;
  touch-action: pan-x pan-y;
  -webkit-tap-highlight-color: transparent;
}

html:not(.gf-care-dark) body,
html:not(.gf-care-dark) body.gf-app-body,
html:not(.gf-care-dark) .gf-v51-dash-shell {
  background-color: #EEF2F6 !important;
  background-image: linear-gradient(180deg, #E4EDF7 0px, #EEF2F6 200px) !important;
  color: #0F172A !important;
}

button, a, input, select, textarea, summary, [role="button"] {
  touch-action: manipulation;
}

input, select, textarea {
  font-size: max(16px, 1rem) !important;
}

body h1, body h2, body h3, body h4,
body [class*="font-serif"] {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, system-ui, sans-serif !important;
  letter-spacing: -0.02em !important;
}

/* 3. HIGH-CONTRAST TOP HEADER CARD (Overrides care_v52_upgrades.css .glass-dock !important) */
html body .gf-v51-dash-shell > header,
html:not(.gf-care-dark) body .gf-v51-dash-shell > header {
  padding: 8px 10px 4px 10px !important;
  background: transparent !important;
}

html body .gf-v51-dash-shell > header .glass-dock,
html:not(.gf-care-dark) body .gf-v51-dash-shell > header .glass-dock,
html.gf-care-dark body .gf-v51-dash-shell > header .glass-dock {
  background: linear-gradient(135deg, #0F2940 0%, #173753 62%, #1E4B6E 100%) !important;
  background-color: #173753 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  padding: 10px 12px !important;
  box-shadow: 0 8px 20px -4px rgba(10, 29, 46, 0.30) !important;
}

html body #careHeaderTitle,
html:not(.gf-care-dark) body #careHeaderTitle {
  color: #FFFFFF !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
}

html body #careHeaderSub,
html:not(.gf-care-dark) body #careHeaderSub {
  color: #C8E1F8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

/* Crisp Frosted Sync Button Inside Dark Header */
html body .gf-v51-dash-shell > header .glass-dock button,
html:not(.gf-care-dark) body .gf-v51-dash-shell > header .glass-dock button {
  background: rgba(255, 255, 255, 0.18) !important;
  background-color: rgba(255, 255, 255, 0.18) !important;
  background-image: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html body .gf-v51-dash-shell > header .glass-dock button *,
html:not(.gf-care-dark) body .gf-v51-dash-shell > header .glass-dock button * {
  color: #FFFFFF !important;
}

/* Clean Fox Emblem Slot in Top-Left Header (Removes legacy pink/rose border & background) */
html body #gfcHeaderFoxSlot {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  background: #173753 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 4. CRISP TELEMETRY STATUS STRIP (#careLiveStatusStrip & #careStatusPills) */
html:not(.gf-care-dark) body #careLiveStatusStrip {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid #D8E2EE !important;
  border-radius: 14px !important;
  padding: 5px 8px !important;
  margin-top: 6px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html body #careStatusPills {
  gap: 6px !important;
}

html:not(.gf-care-dark) body #careStatusPills > * {
  background: #F1F5F9 !important;
  background-color: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  max-width: none !important;
  border-radius: 999px !important;
}

html:not(.gf-care-dark) body #careStatusPills > * span:not(.material-symbols-rounded) {
  color: #0F172A !important;
}

/* 5. NON-TRUNCATING SEGMENTED SUB-TAB BARS (.v51-seg-bar & .v51-seg-btn) */
html:not(.gf-care-dark) body .v51-seg-bar,
html:not(.gf-care-dark) body .v53-seg-group {
  background: #DDE5F0 !important;
  background-color: #DDE5F0 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 14px !important;
  padding: 4px !important;
  gap: 4px !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

html body .v51-seg-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 4px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  border: none !important;
}

html body .v51-seg-btn .material-symbols-rounded {
  font-size: 16px !important;
  flex-shrink: 0 !important;
}

html body .v51-seg-btn .truncate,
html body .v51-seg-btn span {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

html body .v51-seg-btn.active,
html:not(.gf-care-dark) body .v51-seg-btn.active {
  background: #173753 !important;
  background-color: #173753 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(15, 41, 64, 0.24) !important;
}

html body .v51-seg-btn.active *,
html:not(.gf-care-dark) body .v51-seg-btn.active * {
  color: #FFFFFF !important;
}

html:not(.gf-care-dark) body .v51-seg-btn:not(.active) {
  background: transparent !important;
  background-color: transparent !important;
  color: #334155 !important;
  box-shadow: none !important;
}

html:not(.gf-care-dark) body .v51-seg-btn:not(.active) * {
  color: #334155 !important;
}

/* 6. UNIFY REMAINING SAGE/OLIVE BUTTONS & AVATARS INTO HARBOR-NAVY */
html body .theme-primary-bg,
html body .cg-btn-sage,
html body .cg-btn-fox,
html body button[class*="bg-[#2F5741]"],
html body button[class*="bg-[#355943]"],
html body button[class*="bg-[#3B5E49]"],
html body button[class*="bg-[#3F624C]"],
html body div[class*="bg-[#3F624C]"],
html body div[class*="bg-[#2F5741]"] {
  background: #173753 !important;
  background-color: #173753 !important;
  border-color: #0F2940 !important;
  color: #FFFFFF !important;
}

html:not(.gf-care-dark) body [class*="text-[#2F5741]"],
html:not(.gf-care-dark) body [class*="text-[#3F624C]"],
html:not(.gf-care-dark) body [class*="text-[#22543D]"] {
  color: #173753 !important;
}

/* Clean White Surface Cards & 2-Line Readable Subtitles */
html:not(.gf-care-dark) body .elevated-sheet:not(.gf-v51-embedded-card),
html:not(.gf-care-dark) body .cg-card:not(.gf-v51-embedded-card),
html:not(.gf-care-dark) body details.gf-accordion,
html:not(.gf-care-dark) body details.v57-card-acc {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid #D8E2EE !important;
  border-radius: 20px !important;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04) !important;
}

/* 7. PROPORTIONAL 6-TAB BOTTOM DOCK (#gfCareBottomDock — ZERO GIANT BLANK SPACE, BIGGER ICONS, INSTANT ACTIVE SYNC!) */
html body #gfCareBottomDock,
html:not(.gf-care-dark) body #gfCareBottomDock {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  background-color: #FFFFFF !important;
  border-top: 1px solid #D8E2EE !important;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05) !important;
}

/* Inside Native GreyFoxCare APK, MainActivity navBarSpacer already reserves the bottom bar — eliminate double bottom padding! */
html.gfc-native-app body #gfCareBottomDock,
html.gfc-native-app:not(.gf-care-dark) body #gfCareBottomDock {
  padding: 6px 8px 6px 8px !important;
}

html.gf-care-dark body #gfCareBottomDock {
  background: #0F172A !important;
  background-color: #0F172A !important;
  border-top: 1px solid #1E293B !important;
}

html body #gfCareBottomDock > div {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 4px !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body #gfCareBottomDock .v51-dock-btn {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-height: 54px !important;
  height: 54px !important;
  padding: 5px 2px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  border: none !important;
  transition: background-color 0.14s ease, color 0.14s ease !important;
}

html body #gfCareBottomDock .v51-dock-btn .material-symbols-rounded {
  font-size: 24px !important;
  line-height: 1 !important;
}

html body #gfCareBottomDock .v51-dock-btn span:not(.material-symbols-rounded):not(#v51MsgUnreadBadge) {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Active Bottom Dock Tab (Driven directly by visible section + .active class!) */
html body #gfCareBottomDock .v51-dock-btn.gfc-dock-on,
html:not(.gf-care-dark) body #gfCareBottomDock .v51-dock-btn.gfc-dock-on {
  background: #173753 !important;
  background-color: #173753 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(15, 41, 64, 0.22) !important;
}

html body #gfCareBottomDock .v51-dock-btn.gfc-dock-on .material-symbols-rounded,
html body #gfCareBottomDock .v51-dock-btn.gfc-dock-on span:not(#v51MsgUnreadBadge) {
  color: #FFFFFF !important;
}

/* Inactive Bottom Dock Tabs (5 of 6 — Always Transparent Slate, Never Stuck Dark!) */
html:not(.gf-care-dark) body #gfCareBottomDock .v51-dock-btn.gfc-dock-off {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #52637A !important;
  box-shadow: none !important;
}

html:not(.gf-care-dark) body #gfCareBottomDock .v51-dock-btn.gfc-dock-off .material-symbols-rounded,
html:not(.gf-care-dark) body #gfCareBottomDock .v51-dock-btn.gfc-dock-off span:not(#v51MsgUnreadBadge) {
  color: #52637A !important;
}

html.gf-care-dark body #gfCareBottomDock .v51-dock-btn.gfc-dock-off {
  background: transparent !important;
  color: #94A3B8 !important;
  box-shadow: none !important;
}

html.gf-care-dark body #gfCareBottomDock .v51-dock-btn.gfc-dock-off .material-symbols-rounded,
html.gf-care-dark body #gfCareBottomDock .v51-dock-btn.gfc-dock-off span:not(#v51MsgUnreadBadge) {
  color: #94A3B8 !important;
}

/* 8. Login / Create Account Mode Switcher */
html body .gfc-auth-track {
  background: #E2E8F0 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 13px !important;
  padding: 4px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
}

html body .gfc-auth-track > button.gfc-auth-on {
  background: #173753 !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(15, 41, 64, 0.22) !important;
}

html body .gfc-auth-track > button.gfc-auth-off {
  background: transparent !important;
  color: #475569 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

/* ==================== v94 PRECISION FIXES: SYNC PILL, 1-ROW STATUS STRIP, COOL SLATE SUBTITLES & TIGHT DOCK ==================== */

/* A. Crisp Solid-White Sync Pill with Bold #0F2940 Harbor-Navy Text & Icon (15:1 Contrast!) */
html body .gf-v51-dash-shell > header .glass-dock button,
html:not(.gf-care-dark) body .gf-v51-dash-shell > header .glass-dock button,
html.gf-care-dark body .gf-v51-dash-shell > header .glass-dock button,
html body #v51HeaderSyncBtn,
html body #careSyncBtn {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1.5px solid #FFFFFF !important;
  color: #0F2940 !important;
  border-radius: 999px !important;
  padding: 6px 13px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
}

html body .gf-v51-dash-shell > header .glass-dock button *,
html:not(.gf-care-dark) body .gf-v51-dash-shell > header .glass-dock button *,
html.gf-care-dark body .gf-v51-dash-shell > header .glass-dock button *,
html body #v51HeaderSyncBtn *,
html body #careSyncBtn * {
  color: #0F2940 !important;
}

/* B. Clean Circular Harbor Fox Seal in Header (No Square-Around-Circle Double Frame) */
html body #gfcHeaderFoxSlot {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
}

/* C. Single-Row Compact Telemetry Strip (Online | MM | 100% | TV Standby on ONE Line) */
html:not(.gf-care-dark) body #careLiveStatusStrip {
  padding: 5px 6px !important;
  margin-top: 5px !important;
  border-radius: 13px !important;
}

html body #careStatusPills {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

html body #careStatusPills::-webkit-scrollbar {
  display: none !important;
}

html:not(.gf-care-dark) body #careStatusPills > * {
  flex: 1 1 auto !important;
  justify-content: center !important;
  padding: 4px 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* D. Replace Legacy Warm-Brown Ink (#231C18 / #5A4D44 / #655B52) -> Crisp Cool Slate */
html:not(.gf-care-dark) body [class*="text-[#231C18]"] {
  color: #0F172A !important;
}

html:not(.gf-care-dark) body [class*="text-[#5A4D44]"],
html:not(.gf-care-dark) body [class*="text-[#655B52]"],
html:not(.gf-care-dark) body [class*="text-[#4A3F37]"] {
  color: #475569 !important;
}

/* E. Tight Bottom Navigation Dock Above Native Android Gesture Spacer */
html.gfc-native-app body #gfCareBottomDock,
html.gfc-native-app:not(.gf-care-dark) body #gfCareBottomDock {
  padding: 4px 6px 0px 6px !important;
  min-height: 0 !important;
}

html body #gfCareBottomDock .v51-dock-btn {
  min-height: 50px !important;
  height: 50px !important;
  padding: 4px 2px !important;
}

