/* TRDecoder V11 - final mobile readability override. Loaded LAST. */
@media (max-width: 900px) {
  html body.trd-dashboard-active .trdDashSidebar {
    background: #101a28 !important;
    color: #f8fafc !important;
  }
  html body.trd-dashboard-active .trdSideTitle {
    color: #dbe7f5 !important;
    opacity: 1 !important;
    font-weight: 950 !important;
  }
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn {
    background: #33445a !important;
    border: 1px solid #52677f !important;
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
  }
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn > span:nth-child(2) {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 850 !important;
  }
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn > .trdSvg:first-child {
    background: #173c59 !important;
    color: #7dd3fc !important;
    opacity: 1 !important;
  }
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn > .trdSvg:last-child {
    color: #dbeafe !important;
    opacity: 1 !important;
  }
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn:disabled {
    background: #273649 !important;
    border-color: #40546b !important;
    color: #c8d5e5 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #c8d5e5 !important;
  }
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn:disabled > span:nth-child(2) {
    color: #c8d5e5 !important;
    -webkit-text-fill-color: #c8d5e5 !important;
  }
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn.active,
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn:hover,
  html body.trd-dashboard-active .trdSideMenu .trdSideBtn:focus-visible {
    background: #0f4c72 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
  }

  /* Account card remains light: force readable dark text there. */
  html body.trd-dashboard-active .trdSideProfile {
    color: #0f172a !important;
  }
  html body.trd-dashboard-active .trdSideProfile .trdSideName,
  html body.trd-dashboard-active .trdSideProfile .trdStat b {
    color: #0f172a !important;
  }
  html body.trd-dashboard-active .trdSideProfile .trdSideMail,
  html body.trd-dashboard-active .trdSideProfile .trdStat span {
    color: #475569 !important;
    opacity: 1 !important;
  }

  /* FAN TEMP: force one coherent dark palette on iOS/Android. */
  html body .fanTempHomeModal .fanTempHomeCard,
  html body .fanTempHomeModal .fanHomeBody {
    background: #0b1628 !important;
    color: #f8fafc !important;
  }
  html body .fanTempHomeModal .fanHomeHead {
    background: #101f34 !important;
    border-bottom: 1px solid #334155 !important;
  }
  html body .fanTempHomeModal .fanHomeHead h3,
  html body .fanTempHomeModal .fanHomeField label,
  html body .fanTempHomeModal .fanHomeFoundBox strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
  }
  html body .fanTempHomeModal .fanHomeSub,
  html body .fanTempHomeModal .fanHomeStatus,
  html body .fanTempHomeModal .fanHomeNote,
  html body .fanTempHomeModal .fanHomeFoundBox span,
  html body .fanTempHomeModal .fanHomeCurrentEmpty {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    opacity: 1 !important;
  }
  html body .fanTempHomeModal select,
  html body .fanTempHomeModal input {
    background: #15263d !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #526a87 !important;
    opacity: 1 !important;
  }
  html body .fanTempHomeModal select:disabled,
  html body .fanTempHomeModal input:disabled {
    background: #1a2a40 !important;
    color: #d7e2ef !important;
    -webkit-text-fill-color: #d7e2ef !important;
    opacity: 1 !important;
  }
  html body .fanTempHomeModal select option {
    background: #15263d !important;
    color: #ffffff !important;
  }
  html body .fanTempHomeModal #fanHomeChooseBin {
    background: #0878d1 !important;
    border-color: #4db5ff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
  }
  html body .fanTempHomeModal #fanHomeApply:not(:disabled) {
    background: #07845f !important;
    border-color: #2dd4a1 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
  }
  html body .fanTempHomeModal #fanHomeApply:disabled {
    background: #34445a !important;
    border-color: #52677f !important;
    color: #d8e3ef !important;
    -webkit-text-fill-color: #d8e3ef !important;
    opacity: 1 !important;
  }
}
