/* =========================================================
   TeďTo RC18.5.1 · DARK AUDIT
   Last-in cascade: removes light leftovers across vNext UI.
   ========================================================= */
html[data-theme="dark"]{
  color-scheme:dark;
  --tt-ink:#f1f4f8;
  --tt-muted:#9ca6b8;
  --tt-line:#303744;
  --tt-dark-bg:#0d1118;
  --tt-dark-surface:#171c27;
  --tt-dark-surface-2:#1d2430;
  --tt-dark-surface-3:#222a36;
  --tt-dark-line:#303946;
  --tt-dark-text:#eef1f6;
  --tt-dark-muted:#9da7b8;
}
html[data-theme="dark"] body,
html[data-theme="dark"] body.tt-vnext-document,
html[data-theme="dark"] body.tt-auth-document{
  background:#0d1118;
  color:#eef1f6;
}
html[data-theme="dark"] .tt-topbar,
html[data-theme="dark"] .tt-mobile-nav{
  background:rgba(17,22,31,.97);
  border-color:#2d3541;
  color:#eef1f6;
}
html[data-theme="dark"] .tt-brand{color:#f5f7fb}
html[data-theme="dark"] .tt-header-location,
html[data-theme="dark"] .tt-profile-link,
html[data-theme="dark"] .tt-icon-btn,
html[data-theme="dark"] .tt-quick-action{
  background:#1a202b;
  border-color:#343c49;
  color:#edf1f6;
  box-shadow:0 7px 20px rgba(0,0,0,.18);
}
html[data-theme="dark"] .tt-header-location:hover,
html[data-theme="dark"] .tt-profile-link:hover,
html[data-theme="dark"] .tt-icon-btn:hover{
  background:#202733;
  border-color:#424c5b;
}
html[data-theme="dark"] .tt-header-location-copy b{color:#eef1f6}
html[data-theme="dark"] .tt-header-location-copy small,
html[data-theme="dark"] .tt-quick-action-copy small,
html[data-theme="dark"] .tt-profile-chevron{color:#9da7b8}
html[data-theme="dark"] .tt-header-location-icon,
html[data-theme="dark"] .tt-quick-action-icon,
html[data-theme="dark"] .tt-profile-fallback{
  background:#29213f;
  color:#cbbcff;
}
html[data-theme="dark"] .tt-header-location.is-location-active{
  background:linear-gradient(180deg,#17261f,#15231d);
  border-color:#2e644b;
  box-shadow:none;
}
html[data-theme="dark"] .tt-header-location.is-location-active .tt-header-location-icon{
  background:#183326;
  color:#70d39d;
}
html[data-theme="dark"] .tt-header-location.is-location-active .tt-header-location-copy small{color:#78bb96}
html[data-theme="dark"] .tt-header-location-icon>i,
html[data-theme="dark"] .tt-desktop-mode>i{border-color:#171c27}

html[data-theme="dark"] .tt-location-popover,
html[data-theme="dark"] .tt-location-suggestions{
  background:#171d28;
  border-color:#343c49;
  box-shadow:0 20px 54px rgba(0,0,0,.4);
}
html[data-theme="dark"] .tt-location-popover label,
html[data-theme="dark"] .tt-location-suggestions button{color:#edf1f6}
html[data-theme="dark"] .tt-location-search input{
  background:#111824;
  border-color:#3b4554;
  color:#f2f4f8;
  color-scheme:dark;
}
html[data-theme="dark"] .tt-location-gps{background:#29213f;color:#cbbcff}
html[data-theme="dark"] .tt-location-suggestions button:hover,
html[data-theme="dark"] .tt-location-suggestions button:focus-visible{background:#242b37}
html[data-theme="dark"] .tt-location-suggestions small,
html[data-theme="dark"] .tt-location-suggestions p{color:#9da7b8}

html[data-theme="dark"] .tt-footer{
  background:#111720;
  border-color:#2d3541;
}
html[data-theme="dark"] .tt-footer-title{color:#edf1f6}
html[data-theme="dark"] .tt-footer-branding>p,
html[data-theme="dark"] .tt-footer-links a,
html[data-theme="dark"] .tt-footer-note,
html[data-theme="dark"] .tt-footer-newsletter p{color:#9da7b8}
html[data-theme="dark"] .tt-footer-newsletter input{
  background:#171d28;
  border-color:#343c49;
  color:#eef1f6;
}
html[data-theme="dark"] .tt-mobile-nav a,
html[data-theme="dark"] .tt-mobile-nav button{color:#aab3c2}
html[data-theme="dark"] .tt-mobile-nav .active{color:#aa8cff}

/* Shared create modal. */
html[data-theme="dark"] .tt-create-backdrop{background:rgba(2,6,12,.72)}
html[data-theme="dark"] .tt-create-sheet{
  background:#171c27;
  border-color:#343c49;
  color:#eef1f6;
  box-shadow:0 34px 90px rgba(0,0,0,.55);
}
html[data-theme="dark"] .tt-create-head h2{color:#f3f5f9}
html[data-theme="dark"] .tt-create-kicker{color:#a9b2c2}
html[data-theme="dark"] .tt-create-close{background:#232a36;color:#dce2eb}
html[data-theme="dark"] .tt-create-option b{color:#f0f3f7}
html[data-theme="dark"] .tt-create-option small{color:#a2acbc}
html[data-theme="dark"] .tt-create-option.is-help{background:linear-gradient(145deg,#1c202c,#282039);border-color:#493b67}
html[data-theme="dark"] .tt-create-option.is-earn{background:linear-gradient(145deg,#1d2029,#30231d);border-color:#61412f}
html[data-theme="dark"] .tt-create-option.is-plan{background:linear-gradient(145deg,#1b222a,#16302f);border-color:#285e5b}
html[data-theme="dark"] .tt-create-option.is-help em{color:#c5b5ff}
html[data-theme="dark"] .tt-create-option.is-earn em{color:#ffab78}
html[data-theme="dark"] .tt-create-option.is-plan em{color:#70d7d0}

/* Shared quick-mode sheet: Teď mám čas / Teď mohu nabídnout. */
html[data-theme="dark"] .tt-quick-backdrop{background:rgba(2,6,12,.76)}
html[data-theme="dark"] .tt-quick-sheet{
  background:linear-gradient(145deg,#171c27,#151a24);
  border-color:#343c49;
  color:#eef1f6;
  box-shadow:0 32px 90px rgba(0,0,0,.55);
}
html[data-theme="dark"] .tt-quick-close{background:#232a36;border-color:#39424f;color:#dce2eb}
html[data-theme="dark"] .tt-quick-sheet h2,
html[data-theme="dark"] .tt-quick-group legend,
html[data-theme="dark"] .tt-quick-custom-time label,
html[data-theme="dark"] .tt-quick-note label,
html[data-theme="dark"] .tt-quick-reward label,
html[data-theme="dark"] .tt-quick-location b,
html[data-theme="dark"] .tt-quick-work-flags b,
html[data-theme="dark"] .tt-quick-radar-results>header b,
html[data-theme="dark"] .tt-quick-radar-item b,
html[data-theme="dark"] .tt-quick-radar-empty b{color:#edf1f6}
html[data-theme="dark"] .tt-quick-scroll>p,
html[data-theme="dark"] .tt-quick-group legend small,
html[data-theme="dark"] .tt-quick-custom-time small,
html[data-theme="dark"] .tt-quick-note small,
html[data-theme="dark"] .tt-quick-location small,
html[data-theme="dark"] .tt-quick-work-flags small,
html[data-theme="dark"] .tt-quick-radar-results>header small,
html[data-theme="dark"] .tt-quick-radar-item small,
html[data-theme="dark"] .tt-quick-radar-empty small{color:#9da7b8}
html[data-theme="dark"] .tt-quick-outcome,
html[data-theme="dark"] .tt-quick-summary{
  background:#242033;
  border-color:#3c3452;
  color:#c8baff;
}
html[data-theme="dark"] .tt-quick-group button,
html[data-theme="dark"] .tt-quick-custom-time,
html[data-theme="dark"] .tt-quick-note,
html[data-theme="dark"] .tt-quick-location,
html[data-theme="dark"] .tt-quick-work-flags label,
html[data-theme="dark"] .tt-quick-radar-item{
  background:#1d2430;
  border-color:#343d4a;
  color:#dce1e9;
}
html[data-theme="dark"] .tt-quick-group button.is-selected{
  background:#2a2241;
  border-color:#6753a5;
  color:#cbbcff;
}
html[data-theme="dark"] .tt-quick-custom-time input,
html[data-theme="dark"] .tt-quick-note textarea,
html[data-theme="dark"] .tt-quick-reward label>div,
html[data-theme="dark"] .tt-quick-reward input{
  background:#111824;
  border-color:#3b4554;
  color:#f1f4f8;
  color-scheme:dark;
}
html[data-theme="dark"] .tt-quick-location>span{background:#232b37;color:#aab4c4}
html[data-theme="dark"] .tt-quick-location.is-gps{background:#16271f;border-color:#28553f}
html[data-theme="dark"] .tt-quick-location.is-gps>span{background:#193627;color:#75d7a2}
html[data-theme="dark"] .tt-quick-location.is-city{background:#242033;border-color:#403653}
html[data-theme="dark"] .tt-quick-location.is-city>span{background:#2e2548;color:#cbbcff}
html[data-theme="dark"] .tt-quick-reward{background:linear-gradient(145deg,#28211d,#30231b);border-color:#5d402d}
html[data-theme="dark"] .tt-quick-radar-results{background:linear-gradient(145deg,#18202b,#211d31);border-color:#35435b}
html[data-theme="dark"] .tt-quick-actions-row{
  background:linear-gradient(180deg,rgba(23,28,39,.96),#171c27);
  border-color:#303744;
  box-shadow:0 -10px 24px rgba(0,0,0,.22);
}
html[data-theme="dark"] .tt-quick-stop{background:#321e25;border-color:#59303b;color:#ff9eac}

/* Shared reaction modal. */
html[data-theme="dark"] .tt-reaction-sheet{
  background:#171c27;
  border-color:#343c49;
  color:#eef1f6;
}
html[data-theme="dark"] .tt-reaction-close{background:#232a36;color:#dce2eb}
html[data-theme="dark"] .tt-reaction-sheet header p,
html[data-theme="dark"] .tt-reaction-sheet label>small{color:#9da7b8}
html[data-theme="dark"] .tt-reaction-sheet textarea,
html[data-theme="dark"] .tt-reaction-sheet select{
  background:#111824;
  border-color:#3b4554;
  color:#eef1f6;
  color-scheme:dark;
}
html[data-theme="dark"] .tt-reaction-sheet footer{background:#171c27}
html[data-theme="dark"] .tt-reaction-sheet footer a{color:#b8c0cd}

/* Profile was the largest old light-only island. */
html[data-theme="dark"] body.tt-profile-page{
  --tp-ink:#f2f4f8;
  --tp-text:#dfe4ec;
  --tp-muted:#9da7b8;
  --tp-line:#333b48;
  --tp-line-soft:#2d3541;
  --tp-bg:#0d1118;
  --tp-card:#171c27;
  --tp-purple-soft:#29213f;
  --tp-orange-soft:#34231c;
  --tp-teal-soft:#17302f;
  --tp-shadow:0 20px 55px rgba(0,0,0,.28);
  --tp-shadow-soft:0 9px 28px rgba(0,0,0,.19);
  background:#0d1118;
  color:#f2f4f8;
}
html[data-theme="dark"] body.tt-profile-page :is(.tp-hero,.tp-card,.tp-side-card,.tp-mode,.tp-activity,.tp-public-history-row,.tp-profile-history-row){
  background:#171c27;
  border-color:#303744;
  color:#eef1f6;
}
html[data-theme="dark"] body.tt-profile-page :is(.tp-button.is-secondary,.tp-icon-action){background:#1f2632;border-color:#39424f;color:#dce2eb}
html[data-theme="dark"] body.tt-profile-page .tp-avatar-wrap .avatar-wrap.tp-avatar{box-shadow:0 0 0 6px #171c27,0 13px 31px rgba(0,0,0,.28)}
html[data-theme="dark"] body.tt-profile-page :is(.tp-presence,.tp-avatar-edit){border-color:#171c27}
html[data-theme="dark"] body.tt-profile-page :is(.tp-meta,.tp-highlights,.tp-card header small,.tp-side-card header small,.tp-stats span){color:#9da7b8}
html[data-theme="dark"] body.tt-profile-page .tp-highlights i{background:#242b36}
html[data-theme="dark"] body.tt-profile-page .tp-mode strong{background:#242b36;color:#aeb6c4}
html[data-theme="dark"] body.tt-profile-page .tp-profile-menu-sheet,
html[data-theme="dark"] body.tt-profile-page .tp-editor-sheet{
  background:#171c27;
  border-color:#343c49;
  color:#eef1f6;
  box-shadow:0 30px 90px rgba(0,0,0,.55);
}
html[data-theme="dark"] body.tt-profile-page .tp-profile-menu-tabs button{color:#aab3c2}
html[data-theme="dark"] body.tt-profile-page .tp-profile-menu-tabs button.is-active{background:#242b37;color:#cbbcff;box-shadow:none}
html[data-theme="dark"] body.tt-profile-page .tp-profile-menu-list>button,
html[data-theme="dark"] body.tt-profile-page .tp-profile-menu-list>a,
html[data-theme="dark"] body.tt-profile-page .tp-contact-policy-options button,
html[data-theme="dark"] body.tt-profile-page .tp-location-privacy-options button{
  background:#1d2430;
  border-color:#343c49;
  color:#eef1f6;
}
html[data-theme="dark"] body.tt-profile-page .tp-report select,
html[data-theme="dark"] body.tt-profile-page .tp-report textarea,
html[data-theme="dark"] body.tt-profile-page .tp-profile-form input,
html[data-theme="dark"] body.tt-profile-page .tp-profile-form textarea,
html[data-theme="dark"] body.tt-profile-page .tp-profile-form select{
  background:#111824;
  border-color:#3b4554;
  color:#eef1f6;
  color-scheme:dark;
}
html[data-theme="dark"] body.tt-profile-page .tp-option-grid label span{background:#1d2430;border-color:#343c49;color:#d8dee7}
html[data-theme="dark"] body.tt-profile-page .tp-exact-audience{background:#30241d;border-color:#5e4531;color:#f0d3bb}

/* Generic vNext form fallback for older components. */
html[data-theme="dark"] body.tt-vnext-document :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]){color-scheme:dark}
html[data-theme="dark"] body.tt-vnext-document :is(.empty-state,.tt-empty-state,.tt-panel,.tt-card-shell){border-color:#303744}

/* Keep map popups readable; they are intentionally light cards over dark tiles. */
html[data-theme="dark"] .leaflet-popup-content-wrapper,
html[data-theme="dark"] .leaflet-popup-tip{background:#f8fafc;color:#18202c}
html[data-theme="dark"] .leaflet-control-zoom a{background:#f8fafc;color:#17202b;border-color:#d9dfe5}
/* RC18_5_1_DARK_AUDIT_END */

/* RC18.5.2 · final theme-switch dark audit */
html[data-theme="dark"] :is(button,input,select,textarea){color-scheme:dark}
html[data-theme="dark"] :is(input,select,textarea)::placeholder{color:#727d8e}
html[data-theme="dark"] :is(.tt-theme-toggle,.tt-icon-btn):focus-visible{
  outline:3px solid rgba(170,140,255,.28);
  outline-offset:2px;
}
html[data-theme="dark"] .tt-settings-theme button{
  background:#1d2430;
  border-color:#343d4a;
  color:#e9edf4;
}
html[data-theme="dark"] .tt-settings-theme button small{color:#9da7b8}
html[data-theme="dark"] .tt-settings-theme button.is-active{
  background:#2a2241;
  border-color:#6753a5;
  color:#d8ccff;
  box-shadow:none;
}
/* RC18_5_2_DARK_AUDIT_END */

/* =========================================================
   RC18.5.3 · DARK SURFACE POLISH
   Weather metrics + Nearby empty state integration.
   ========================================================= */
html[data-theme="dark"] .tt-weather-details{
  gap:0;
  overflow:hidden;
  margin-top:11px;
  border:1px solid #2d3541;
  border-radius:12px;
  background:#151b24;
}
html[data-theme="dark"] .tt-weather-details span{
  min-height:44px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:7px 11px;
  border:0;
  border-radius:0;
  background:transparent;
}
html[data-theme="dark"] .tt-weather-details span+span{
  border-left:1px solid #2d3541;
}
html[data-theme="dark"] .tt-weather-details b{
  color:#edf1f6;
  font-size:10px;
  font-weight:850;
}
html[data-theme="dark"] .tt-weather-details small{
  margin-top:2px;
  color:#8893a4;
}
html[data-theme="dark"] .tt-weather-refresh{
  border-color:#303946;
  background:#1d2430;
  color:#aab4c3;
}
html[data-theme="dark"] .tt-weather-refresh:hover,
html[data-theme="dark"] .tt-weather-refresh:focus-visible{
  border-color:#5d4c91;
  background:#272137;
  color:#d7ccff;
}
html[data-theme="dark"] .tt-weather-advice{
  background:#1a202a;
  border-color:#303946;
}
html[data-theme="dark"] .tt-weather-advice-icon{
  background:#242b36;
  box-shadow:none;
}
html[data-theme="dark"] .tt-weather-advice b{color:#e8ecf3}
html[data-theme="dark"] .tt-weather-advice small{color:#919bab}

html[data-theme="dark"] .tn-empty{
  min-height:190px;
  padding:28px 18px;
  border:1px dashed #343d49;
  background:rgba(255,255,255,.018);
  color:#8f99aa;
  box-shadow:none;
}
html[data-theme="dark"] .tn-empty>span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#241d37;
  color:#aa8cff;
  font-size:16px;
}
html[data-theme="dark"] .tn-empty>b{
  color:#d7dce5;
  font-size:11px;
}
html[data-theme="dark"] .tn-empty>p{
  max-width:190px;
  margin:1px auto 0;
  color:#7f8999;
  font-size:9px;
  line-height:1.45;
}
@media(max-width:900px){
  html[data-theme="dark"] .tt-weather-details span{
    min-height:40px;
    padding:6px 8px;
  }
  html[data-theme="dark"] .tn-empty{
    min-height:150px;
    padding:22px 15px;
  }
}
/* RC18_5_3_DARK_SURFACE_POLISH_END */
