:root{
  color-scheme: light;
  --ng-bg:#f4f7fb;
  --ng-surface:#ffffff;
  --ng-surface-2:#f8fbff;
  --ng-text:#172033;
  --ng-muted:#68798e;
  --ng-border:#dfe7f1;
  --ng-input:#ffffff;
  --ng-input-text:#172033;
  --ng-placeholder:#8a99ab;
  --ng-primary:#1978ef;
  --ng-shadow:0 12px 38px rgba(24,54,93,.11);
}
html,body{background:var(--ng-bg)!important;color:var(--ng-text)!important}
body,button,input,select,textarea,option{font-family:Vazir,Tahoma,Arial,sans-serif!important}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,textarea{
  background:var(--ng-input)!important;
  color:var(--ng-input-text)!important;
  border-color:var(--ng-border)!important;
  caret-color:var(--ng-primary)!important;
}
input::placeholder,textarea::placeholder{color:var(--ng-placeholder)!important;opacity:1!important}
select option{background:var(--ng-input)!important;color:var(--ng-input-text)!important}
label,h1,h2,h3,h4,h5,h6,p,span,div,td,th{color:inherit}
.card,.stats>div,.searchbox,.results,.side,.routeChoice,.nearbyCat,.geoSelect,.routeFav,.quickPlace{
  background-color:var(--ng-surface)!important;
  color:var(--ng-text)!important;
  border-color:var(--ng-border)!important;
}
table{color:var(--ng-text)!important}
th,td{border-color:var(--ng-border)!important}
.muted,.rAddr,.navMeta,small{color:var(--ng-muted)!important}
a{color:#176fd9}
.iconbtn,.fab,.secondary{
  background:var(--ng-surface)!important;color:var(--ng-text)!important;border-color:var(--ng-border)!important;
}
.routeTabs{background:#edf2f8!important}
.routeTabs button{color:#64758b!important}
.routeTabs button.active{background:#fff!important;color:#176ff0!important}
.theme-toggle-global{
 position:fixed;z-index:2147483000;left:15px;top:15px;width:42px;height:42px;border:1px solid var(--ng-border);
 border-radius:13px;background:var(--ng-surface);color:var(--ng-text);box-shadow:var(--ng-shadow);cursor:pointer;
 display:grid;place-items:center;font-size:17px
}
body.ng-dark{
 color-scheme:dark;
 --ng-bg:#0d1621;
 --ng-surface:#162232;
 --ng-surface-2:#1b2a3c;
 --ng-text:#edf4fb;
 --ng-muted:#a9b7c8;
 --ng-border:#2d3d51;
 --ng-input:#101c29;
 --ng-input-text:#f4f8fc;
 --ng-placeholder:#899aaf;
 --ng-primary:#58a3ff;
 --ng-shadow:0 15px 42px rgba(0,0,0,.38);
 background:var(--ng-bg)!important;color:var(--ng-text)!important;
}
body.ng-dark aside{background:#09111d!important;color:#fff!important}
body.ng-dark main,body.ng-dark .layout{background:var(--ng-bg)!important;color:var(--ng-text)!important}
body.ng-dark .card,body.ng-dark .stats>div,body.ng-dark .searchbox,body.ng-dark .results,
body.ng-dark .side,body.ng-dark .result,body.ng-dark .cat,body.ng-dark .routeChoice,
body.ng-dark .detailActions button,body.ng-dark .nearbyCat,body.ng-dark .geoSelect,
body.ng-dark .routeFav,body.ng-dark .quickPlace{
 background:var(--ng-surface)!important;color:var(--ng-text)!important;border-color:var(--ng-border)!important;
}
body.ng-dark .result:hover,body.ng-dark .cat.active,body.ng-dark .routeChoice.active{background:#213752!important}
body.ng-dark .routeTabs{background:#101d2b!important}
body.ng-dark .routeTabs button{color:#a9b7c8!important}
body.ng-dark .routeTabs button.active{background:#22364e!important;color:#72b1ff!important}
body.ng-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.ng-dark select,body.ng-dark textarea{
 background:var(--ng-input)!important;color:var(--ng-input-text)!important;border-color:var(--ng-border)!important;
}
body.ng-dark select option{background:#101c29!important;color:#f4f8fc!important}
body.ng-dark input::placeholder,body.ng-dark textarea::placeholder{color:#899aaf!important}
body.ng-dark table,body.ng-dark th,body.ng-dark td{color:var(--ng-text)!important;border-color:var(--ng-border)!important}
body.ng-dark .assistantExample{background:#182a3e!important;color:#bddaff!important;border-color:#315c86!important}
body.ng-dark .warningCard{background:#3b2224!important;color:#ffbcb7!important;border-color:#704044!important}
body.ng-dark .safeCard{background:#173529!important;color:#9ce4bd!important}
body.ng-dark .planChip{background:#1d3550!important;color:#b9dcff!important}
body.ng-dark .liveShareBox{background:linear-gradient(135deg,#0d2039,#174b88)!important}
body.ng-dark .adCard,body.ng-dark .leaflet-popup-content-wrapper,body.ng-dark .leaflet-popup-tip{background:#172536!important;color:#eef5fc!important}
body.ng-dark .leaflet-control-zoom a{background:#172536!important;color:#eef5fc!important;border-color:#2d3d51!important}
body.ng-dark .leaflet-control-attribution{background:rgba(13,22,33,.88)!important;color:#b6c5d5!important}
body.ng-dark .leaflet-control-attribution a{color:#7db7ff!important}
/* Old v5 body.dark compatibility is normalized */
body.dark:not(.ng-dark){background:var(--ng-bg)!important;color:var(--ng-text)!important}
@media(max-width:700px){.theme-toggle-global{top:auto;bottom:15px;left:15px}}
