/* Matti Tracker 0.5.21.138 — accessibility contrast repair.
   Presentation-only: no data, syncing, IDs or JS changed. Loaded last. */
:root {--tracker-accent:#39d9f5;--tracker-deep:#081e35;--tracker-panel:#102e4d;--tracker-copy:#edf8ff;--tracker-sub:#c1d9eb;}
/* Modal is always navy: never mix the legacy white surface with the dark theme's white typography. */
#syncModal.sync-modal {
  background:linear-gradient(152deg,#163b5d 0%,#0b243e 100%)!important;
  border:1px solid #4b95b9!important;
  box-shadow:0 26px 85px rgba(0,9,23,.75),0 0 0 1px rgba(57,217,245,.10)!important;
  color:var(--tracker-copy)!important;
  max-height:calc(100dvh - 28px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
#syncModal .sync-modal-head h2 {color:#fff!important;}
#syncModal .eyebrow {color:#7ae5ff!important;}
#syncModal .sub,#syncModal #syncDescription {color:#d4eaff!important;line-height:1.6;}
#syncModal .update-meta {color:#c0dbed!important;}
#syncModal #updateBtn.update-btn {
  background:linear-gradient(115deg,#54e8ff,#12bfe7)!important;
  color:#05223b!important;
  border:1px solid #a0f4ff!important;
  box-shadow:0 5px 24px rgba(17,191,235,.27)!important;
  font-size:15px;
  font-weight:950;
  min-height:52px;
  opacity:1;
}
#syncModal #updateBtn.update-btn:disabled {background:#8db8ca!important;color:#0a2940!important;opacity:.85;cursor:wait;}
#syncModal #updateStatus.update-status {
  color:#e7f6ff!important;
  background:#123e43!important;
  border:1px solid #367f79!important;
  line-height:1.6;
  overflow-wrap:anywhere;
}
#syncModal .modal-close {background:#234b6b!important;color:#fff!important;border:1px solid #5b93b7!important;flex:0 0 36px;}
#syncModal :focus-visible,.mobile-tabbar :focus-visible,.mobile-sheet :focus-visible {outline:3px solid #8af3ff!important;outline-offset:3px;}
.sync-backdrop.open {background:rgba(2,12,27,.72)!important;}
/* Mobile tab: "Opdater" must remain unmistakably bright and legible. */
@media(max-width:820px){
  .mobile-tabbar {background:#081d34!important;border-top:1px solid #3a6685!important;box-shadow:0 -6px 28px rgba(0,5,18,.48)!important;}
  .mobile-tabbar .mobile-nav-btn {color:#c1d8e9!important;}
  .mobile-tabbar .mobile-nav-btn.is-active:not(.primary) {color:#fff!important;background:#195479!important;}
  .mobile-tabbar .mobile-nav-btn.primary,
  .mobile-tabbar .mobile-nav-btn.primary.is-active {
     color:#061d32!important;
     background:linear-gradient(125deg,#6cefff,#14c7ef)!important;
     border:1px solid #b9f9ff!important;
     box-shadow:0 0 0 2px rgba(55,226,255,.13),0 6px 24px rgba(0,199,238,.35)!important;
     opacity:1!important;
  }
  .mobile-tabbar .mobile-nav-btn.primary span {color:#061d32!important;font-weight:950!important;}
  .mobile-tabbar .mobile-nav-btn.primary svg {stroke:#061d32!important;}
  .mobile-sheet {background:#102f4c!important;border:1px solid #4683a7!important;color:#eaf7ff!important;}
  .mobile-sheet .mobile-sheet-title {color:#fff!important;}
  .mobile-sheet .mobile-sheet-link {color:#ecf9ff!important;background:#194564!important;border:1px solid #365f80!important;}
  .mobile-sheet .mobile-sheet-link small {color:#b9d5e7!important;}
  .mobile-sheet .mobile-sheet-link .arrow {color:#b8eaff!important;}
  .mobile-sheet .mobile-sheet-close {background:#285b7b!important;color:#fff!important;}
  #syncModal.sync-modal {max-height:calc(100dvh - var(--mobilebar) - env(safe-area-inset-bottom) - 22px);}
}
@media (prefers-reduced-motion:reduce){#syncModal,#syncModal *,.mobile-tabbar *{transition:none!important;}}
