.theme-switch{display:flex;gap:3px;flex-shrink:0;border:1px solid #dfe6f0;border-radius:8px;background:#f1f4f9;padding:3px}.theme-switch button{display:flex;align-items:center;justify-content:center;gap:6px;background:none;border:0;border-radius:5px;min-height:32px;padding:6px 9px;font-size:10px;font-weight:600;color:#7c8da6}.theme-switch button[aria-pressed=true]{background:white;color:#3269ce;box-shadow:0 1px 5px #13294a17}.theme-switch svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.7}
@media screen{
html[data-theme=dark]{color-scheme:dark;--bg:#0c1625;--white:#152338;--ink:#e4edfa;--muted:#a7b9d2;--line:#2b3e58;--blue:#5187f4;--purple:#b49ae6;--green:#6bceb6}
html[data-theme=dark] .sidebar{background:#0d1c30;border-color:#30445f}html[data-theme=dark] :is(.sidebar-foot,.today-top){border-color:#30445f}html[data-theme=dark] .sidebar nav button.active{background:#2856ad}
html[data-theme=dark] :is(.breadcrumb,.breadcrumb b,.private-pill,.today-top,.page-heading p,.eyebrow,.stats small,.stats p,.stats em,.calendar-legend,.calendar-bottom,.day-panel-heading>p,.agenda-item .location,.route-note p,.route-note strong,.schedule-date,.schedule-info p,.section-heading p,.place-card small,.place-card p,.map-key,.map-help,.map-source,.territory-side>p,.territory-count,.place-selector-list>button,.place-selector-list small,footer,footer>span:first-child){color:#a5b7d0}
html[data-theme=dark] .preview-note{background:#192f50;border-color:#2d4668;color:#b5c9e6}html[data-theme=dark] .preview-note>span{color:#a5c8ff}html[data-theme=dark] .profile{background:#29496e;border-color:#3e608a;color:#d2e5ff}
html[data-theme=dark] .theme-switch{background:#101b2c;border-color:#324963}html[data-theme=dark] .theme-switch button{color:#a2b6d3}html[data-theme=dark] .theme-switch button[aria-pressed=true]{background:#2d4c74;color:#e5f0ff;box-shadow:none}
html[data-theme=dark] .stat-icon.blue{background:#233d65;color:#9dc2ff}html[data-theme=dark] .stat-icon.green{background:#1c3b3a;color:#80dac3}html[data-theme=dark] .stat-icon.purple{background:#342d4d;color:#cbb7f3}
html[data-theme=dark] :is(.secondary,.month-control button){background:#192c45;border-color:#39516e;color:#bdd0eb}@media(hover:hover) and (pointer:fine){html[data-theme=dark] .secondary:hover{background:#274568}}html[data-theme=dark] .view-switch{background:#0f1d30}html[data-theme=dark] .view-switch button{color:#9eb4d1}html[data-theme=dark] .view-switch button.active{background:#2c4c74;color:#e0edff}
html[data-theme=dark] .weekday{background:#101e30;color:#a6b9d4}html[data-theme=dark] .day-cell{background:#152338}@media(hover:hover) and (pointer:fine){html[data-theme=dark] .day-cell:hover{background:#213651}}html[data-theme=dark] .day-cell.is-selected{background:#1d3558}html[data-theme=dark] .day-cell.outside{background:#111d2f}html[data-theme=dark] .day-cell.outside .day-number{color:#6d839f}html[data-theme=dark] .day-number{color:#adbed5}html[data-theme=dark] .day-number.is-today{color:white;background:#417eea}
html[data-theme=dark] .event-chip{background:#244579;border-color:#81aeff;color:#d0e2ff}html[data-theme=dark] .event-chip.purple{background:#3b3159;border-color:#bba2ee;color:#e0d0ff}html[data-theme=dark] .event-chip.green{background:#1d443e;border-color:#75d3ba;color:#b6ebdd}html[data-theme=dark] .more-events{color:#b0c7e5}
html[data-theme=dark] .agenda-item:before{border-color:#25426b;background:#87b3ff}html[data-theme=dark] .agenda-item.purple:before{border-color:#3b3159;background:#c4a8f4}html[data-theme=dark] .agenda-item.green:before{border-color:#1d443e;background:#87dfc7}html[data-theme=dark] .agenda-item{border-color:#35506f}html[data-theme=dark] :is(.agenda-item>.time,.schedule-row>.time,.schedule-date b,.maps-inline){color:#a2c7ff}
html[data-theme=dark] .status{background:#2b3c53;color:#b7c9e2}html[data-theme=dark] .status.confirmado{background:#1d403b;color:#a0dfcb}html[data-theme=dark] .status.concluido{background:#234473;color:#b6d1ff}html[data-theme=dark] .status.cancelado{background:#472f3c;color:#f1b6c5}
html[data-theme=dark] .add-day{background:#192c46;border-color:#40628b;color:#b3d2ff}html[data-theme=dark] .empty,html[data-theme=dark] .empty strong{color:#a6b9d3}html[data-theme=dark] .empty>span{color:#6f8bae}
html[data-theme=dark] :is(.directory-filters input,.directory-filters select,.map-tools input,.map-tools select,.form-grid input,.form-grid select){background:#101e32;border-color:#39516e;color:#dae7f9}html[data-theme=dark] input::placeholder{color:#9bafcb;opacity:1}html[data-theme=dark] .directory-note{background:#1b3252;border-color:#3c5980;color:#b7cce9}html[data-theme=dark] .directory-note b{color:#c7deff}
html[data-theme=dark] .territory-stage{background-color:#101f33;background-image:radial-gradient(#39557566 .7px,transparent .7px)}html[data-theme=dark] #territoryMap path{fill:#67798f;stroke:#101f33}html[data-theme=dark] #territoryMap path.visited{fill:#4f87f3}html[data-theme=dark] #territoryMap path:focus{fill:#91b5fb;stroke:#cfdef5}@media(hover:hover) and (pointer:fine){html[data-theme=dark] #territoryMap path:hover{fill:#91b5fb;stroke:#cfdef5}}html[data-theme=dark] #territoryMap path.picked{stroke:#edf5ff}html[data-theme=dark] #territoryMap text{fill:#f1f6ff;stroke:#12243f;stroke-width:1.8px}html[data-theme=dark] .map-zoom{background:#1c3453;border-color:#426187}html[data-theme=dark] .map-zoom button{color:#ccddf5}html[data-theme=dark] .map-ocean{color:#9eb3cd}
html[data-theme=dark] dialog{background:#152338;border-color:#354f70;color:#e4edfa}html[data-theme=dark] .form-grid label{color:#b8cbe5}html[data-theme=dark] :is(.form-grid label span,.form-grid small,.form-notice,#accessDialog>p,.access-detail p){color:#a5bbd8}html[data-theme=dark] .form-notice{background:#101e32}html[data-theme=dark] .maps-link{background:#24436c;color:#c1dcff}html[data-theme=dark] .access-detail{color:#c4dcff}html[data-theme=dark] .access-visual span{border-color:#152338}html[data-theme=dark] :is(.form-error,.danger){color:#f3a9bd}
}
@media(max-width:760px){.header-right{gap:10px}.private-pill{display:none}.today-top{display:none}}@media(max-width:430px){.theme-switch{padding:2px}.theme-switch button{font-size:9px;padding:6px 7px;gap:4px;min-height:32px}.theme-switch svg{width:12px;height:12px}.header-right{gap:8px}.breadcrumb{font-size:7px}.breadcrumb span{margin:0 5px}header{padding-left:14px;padding-right:14px}}

@media screen{html[data-theme=dark] #territoryMap path.has-church{fill:#8dbaf1}html[data-theme=dark] #territoryMap path.visited{fill:#2e5fbd}html[data-theme=dark] .map-churches p{color:#aec3df}html[data-theme=dark] .dot.light-blue{background:#8dbaf1}html[data-theme=dark] .dot.deep-blue{background:#2e5fbd}}
