.theme-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #ddd0ad45;border-radius:11px;background:#ffffff08;color:#efe0b9;cursor:pointer}
.theme-toggle:hover{background:#ffffff15}.theme-toggle:focus-visible{outline:2px solid #e8d4a3;outline-offset:3px}
.brand>.theme-toggle{margin-inline-start:auto}.app-header .brand>div{min-width:0}
.login-theme-control{position:absolute;top:18px;left:20px;z-index:2}
.login-theme-control .theme-toggle{background:#f8f6ed;border-color:#d5dece;color:#315644}
@media(max-width:760px){.brand>.theme-toggle{flex-basis:40px;width:40px;height:40px}.login-theme-control{top:12px;left:14px}.access-login .identity-panel{padding-top:66px}}
@media(max-width:359px){.app-header .brand{gap:8px}.brand>.theme-toggle{flex-basis:36px;width:36px;height:40px}.app-header .brand h1{font-size:17px}}

html[data-theme="dark"]{color-scheme:dark;--night-bg:#101c19;--night-surface:#172820;--night-raised:#20362c;--night-line:#345044;--night-text:#e6eee6;--night-muted:#aabeb0;--green:#33745c;--green-dark:#17382b;--green-soft:#223d30;--cream:#e2d3b1;--bg:var(--night-bg);--line:var(--night-line);--ink:var(--night-text);--muted:var(--night-muted);background:var(--night-bg);color:var(--night-text)}
html[data-theme="dark"] body{background:var(--night-bg);color:var(--night-text)}
html[data-theme="dark"] ::selection{background:#47765c;color:#fff}
html[data-theme="dark"] :is(.app-shell,.workspace,.table-workspace,.identity-page){background:var(--night-bg)}
html[data-theme="dark"] .app-header{background-color:#10221e;background-image:linear-gradient(90deg,#10251fee,#112b23f8 65%,#11291f),url(/images/calm-camp.webp)}
html[data-theme="dark"] .header-identity{background:#ffffff04;border-color:#b9a5783d}
html[data-theme="dark"] .app-header .btn-cream{background:#d5c398;border-color:#d5c398;color:#193c2e}
html[data-theme="dark"] .toolbar{background:#14241e;border-color:var(--night-line)}
html[data-theme="dark"] :is(.search,.filter,.sidebar,.table-panel,.modal,.identity-card,.zones-panel,.zones-modal){background:var(--night-surface);border-color:var(--night-line);color:var(--night-text);box-shadow:0 5px 20px #0002}
html[data-theme="dark"] :is(.search input,.filter select){color:var(--night-text)}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#8fa797}
html[data-theme="dark"] .search input::placeholder{color:#9bb09f}
html[data-theme="dark"] .view-tabs{background:#1c3026;border-color:var(--night-line)}
html[data-theme="dark"] .view-tabs button{color:var(--night-muted)}
html[data-theme="dark"] .view-tabs button.active{background:#3a6b54;color:#f4f7ef}
html[data-theme="dark"] .export-btn{background:#213b2e;border-color:#3b5743;color:#d0e6cf}
html[data-theme="dark"] :is(.table-title,.modal-header,.modal-footer,.zones-panel-heading,.zones-modal-heading,.notification-hint){background:#1b3026;border-color:var(--night-line)}
html[data-theme="dark"] :is(.modal-header h2,.sidebar-heading h2,.table-title h2,.detail-heading h2,.detail-content>h3,.identity-card h2,.access-form h3,.zone-row-name strong,.zones-panel h2,.zones-modal-heading h2){color:#e4eee0}
html[data-theme="dark"] :is(.eyebrow,.table-title .eyebrow,.register-caption,.form-intro,.form-section-title,.form-section-title span,.access-help,.employee-target,.identity-intro,.access-private-note,.sidebar-footer p,.sidebar-footer span,.notes,.last-updated,.detail-area,.detail-fields dt,.zones-help,.zones-eyebrow,.zones-visibility,.zones-panel-foot,.zones-empty,.zones-empty p,.zones-shape-info,.zones-custom-color,.zones-draw-help,.notification-hint,.notification-actions>span,.notification-item time,.notification-empty){color:var(--night-muted)}
html[data-theme="dark"] :is(.sidebar-heading h2>span,.table-title h2>span,.camp-item-icon,.mini-stats>div,.mini-stats>div:last-child,.detail-symbol,.type-chip,.location-badge,.zones-count,.zones-point-count){background:#223d30;border-color:var(--night-line);color:#bad5ad}
html[data-theme="dark"] .mini-stats b{color:#d6e8cd}
html[data-theme="dark"] .camp-item{background:var(--night-surface);border-color:var(--night-line)}
html[data-theme="dark"] .camp-item:hover{background:#213a2d;border-color:#597b60}
html[data-theme="dark"] .camp-item-text>span{color:#e2eddd}
html[data-theme="dark"] :is(.camp-item-text>strong,.camp-item-text small,.camp-item-text>strong bdi){color:#b6c8ae}
html[data-theme="dark"] .camp-item-text>strong>span{color:#c2d5b2;background:#2b422f;border-color:#405737}
html[data-theme="dark"] :is(.sidebar-footer,.form-section-title,.detail-fields>div,.notification-actions,.employee-actions,.zones-form-actions){border-color:var(--night-line)}
html[data-theme="dark"] .app-shell .sidebar .side-back{background:#1b3026;color:#dce8d8}
html[data-theme="dark"] .side-back>button:first-child{color:#c1dab6}
html[data-theme="dark"] :is(.btn-light,.text-button,.sidebar-heading .icon-btn,.zones-light,.zones-close,.zones-small){background:#22392d;border-color:#3b5945;color:#cde2c4}
html[data-theme="dark"] .text-button{background:transparent}
html[data-theme="dark"] .icon-btn{color:#cde2c4}
html[data-theme="dark"] :is(.btn-light:hover,.zones-light:hover,.zones-close:hover){background:#2d4936}
html[data-theme="dark"] :is(.btn-primary,.identity-submit,.zones-primary){background:#33745c;color:#fff}
html[data-theme="dark"] :is(.btn-primary:hover,.identity-submit:hover,.zones-primary:hover){background:#3a8266}
html[data-theme="dark"] :is(.form-grid label,.identity-fields label,.zones-field){color:#cbdcc2}
html[data-theme="dark"] :is(.form-grid,.identity-fields,.access-form,.zones-field) :is(input:not([type="checkbox"]):not([type="color"]),select,textarea),html[data-theme="dark"] .employee-search input{background:#11221a;border-color:#405a43;color:#e4eedf}
html[data-theme="dark"] select option{background:#16291e;color:#e4eedf}
html[data-theme="dark"] :is(input,select,textarea):focus-visible{outline-color:#8fbd91}
html[data-theme="dark"] :is(.identity-fields small,.modal-footer>span,.site-photo-field p,.site-photo-field small){color:#adbea3}
html[data-theme="dark"] :is(.modal-backdrop,.zones-modal-backdrop){background:#050e0bcc}
html[data-theme="dark"] .table-scroll th{background:#1d3428;color:#c0d5b4;border-color:var(--night-line)}
html[data-theme="dark"] .app-shell .table-scroll tbody tr td{background:var(--night-surface);border-color:#304831;color:#cbdcc0}
html[data-theme="dark"] .app-shell .table-scroll tbody tr:nth-child(even) td{background:#1a2d23}
html[data-theme="dark"] .app-shell .table-scroll tbody tr:hover td{background:#213b2a}
html[data-theme="dark"] .app-shell .table-scroll tbody tr td[data-label="صاحب المخيم"]{color:#e6efdf}
html[data-theme="dark"] .table-scroll .register-camp-number{background:#2b412d;border-color:#415638;color:#ccdeb9}
html[data-theme="dark"] .table-scroll td .camp-type-pill{background:#2b422e;border-color:#405738;color:#c5dfad}
html[data-theme="dark"] .table-scroll .table-coordinates{background:#1e3526;border-color:#365233}
html[data-theme="dark"] .table-scroll .table-coordinates small{color:#a9bba0}
html[data-theme="dark"] .table-scroll .table-coordinates bdi{color:#d1e4bf}
html[data-theme="dark"] .table-scroll td:last-child .text-button{background:#2b482f;border-color:#4a6540;color:#d1e8b9}
html[data-theme="dark"] .app-shell .table-scroll td .location-badge.missing{background:#393a26;border-color:#53553b;color:#ddd4a8}
html[data-theme="dark"] :is(.owner-card,.detail-fields){background:#192b21;border-color:#405440;color:#dce8d2}
html[data-theme="dark"] .owner-card-header{background:linear-gradient(120deg,#284c3e,#122e23)}
html[data-theme="dark"] .owner-card-body{background:radial-gradient(ellipse at 0 0,#b8ac7020,transparent 70%)}
html[data-theme="dark"] .owner-card-avatar{background:#293d2d;color:#c2d4b2;border-color:#4b5c3d;box-shadow:inset 0 0 0 4px #ffffff05}
html[data-theme="dark"] .owner-card-name h3{color:#e6eedb}
html[data-theme="dark"] :is(.owner-card-name p,.owner-card-number>span,.owner-card-field dt,.owner-card-footer>span,.owner-card-empty){color:#adba9b}
html[data-theme="dark"] :is(.owner-card-number,.owner-card-footer){background:#263a29;border-color:#465239}
html[data-theme="dark"] :is(.owner-card-number>bdi,.owner-card-field dd,.owner-card-field dd a,.owner-card-identity,.owner-card-footer>bdi,.detail-fields dd){color:#d8e7c7}
html[data-theme="dark"] .owner-card-field{border-color:#364732}
html[data-theme="dark"] .owner-card-identity span{background:#2b442d;border-color:#465c3a;color:#c6dcb0}
html[data-theme="dark"] .app-shell :is(.coordinate-box,.detail-content .notes){background:#203723;border-color:#3b5233;color:#c7ddae}
html[data-theme="dark"] .notes h4{color:#d8e8c4}
html[data-theme="dark"] .app-shell .coordinate-box p{color:#c7ddae}
html[data-theme="dark"] .saved-site-photo img{border-color:var(--night-line)}
html[data-theme="dark"] :is(.access-account-row,.notification-item,.zone-row){background:#1b3023;border-color:#365038}
html[data-theme="dark"] :is(.access-account-row strong,.notification-item>strong){color:#d5e7c8}
html[data-theme="dark"] :is(.access-account-row bdi,.access-account-row .employee-number,.notification-item>p,.notification-item>.notification-owner){color:#afc79d}
html[data-theme="dark"] .access-account-row .employee-state{background:#2b442c;color:#c2d9ac}
html[data-theme="dark"] .notification-item.is-unread{background:#28402a;border-color:#52663b;border-inline-start-color:#adbd73}
html[data-theme="dark"] :is(.access-account-row.is-disabled,.employee-status-note){background:#322f23;border-color:#514b35;color:#ddcda8}
html[data-theme="dark"] .access-account-row.is-disabled .employee-state{background:#463728;color:#e3c095}
html[data-theme="dark"] :is(.logout-button,.employee-danger){color:#f0b0ba}
html[data-theme="dark"] :is(.form-error,.zones-error,.zones-danger){background:#392529;border-color:#72474a;color:#f4c1b6}
html[data-theme="dark"] :is(.identity-success,.import-guide){background:#243c27;color:#c0d9ac}
html[data-theme="dark"] :is(.import-guide strong,.import-stats b,.import-sample strong){color:#d6eac0}
html[data-theme="dark"] :is(.import-stats span,.import-sample span,.import-sample small){color:#b2c59c}
html[data-theme="dark"] .import-errors{background:#3b3322;border-color:#66573a;color:#e6d0a2}
html[data-theme="dark"] .identity-panel{background:radial-gradient(at 100% 0,#25473277,transparent 65%),#101e18}
html[data-theme="dark"] :is(.identity-panel footer,.identity-card .eyebrow){color:#acbda0}
html[data-theme="dark"] .login-theme-control .theme-toggle{background:#20382b;border-color:#496045;color:#e6d6a9}
html[data-theme="dark"] :is(.map-title,.map-tools button,.basemap-control,.leaflet-control-zoom a,.zones-entry,.zones-draw-bar,.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:#182c22;border-color:#486448;color:#d6e8c9}
html[data-theme="dark"] :is(.map-title b,.basemap-control button,.zones-plain,.zones-text-button){color:#b5cca5}
html[data-theme="dark"] .basemap-control button.active{background:#365e3e;color:#f0f5e6}
html[data-theme="dark"] .map-stage{background:#11201b;border-color:var(--night-line)}
html[data-theme="dark"] .leaflet-container{background:#13251c}
html[data-theme="dark"] .leaflet-tile-pane{filter:brightness(.66) saturate(.82)}
html[data-theme="dark"] .leaflet-control-attribution{background:#172b21e8;color:#c6d4bd}
html[data-theme="dark"] .leaflet-control-attribution a{color:#b3d7a4}
html[data-theme="dark"] .leaflet-control-scale-line{background:#203629d9;border-color:#9eb28c;color:#e0ead7;text-shadow:none}
html[data-theme="dark"] .zones-map-label{background:#1b3025ed!important;border-color:#668157!important;color:#e5efd9!important}
html[data-theme="dark"] .zones-color-preview{background:color-mix(in srgb,var(--zone-color) 18%,#192b21);color:#e1ecd5}
html[data-theme="dark"] .zones-color{border-color:#263b2b;box-shadow:0 0 0 1px #789264}
html[data-theme="dark"] .zones-color[aria-pressed=true]{box-shadow:0 0 0 2px #e6d9af}
html[data-theme="dark"] .camp-marker.camp-marker-tent{--marker-cream:#e0d5b7;--marker-gold:#b8a475}
html[data-theme="dark"] .camp-marker.camp-marker-tent.selected{--marker-cream:#f0d7ae;--marker-gold:#d6b071}
html[data-theme="dark"] :is(.camp-list,.table-workspace,.detail-content,.form-body){scrollbar-color:#52704e transparent}
@media(max-width:760px){
 html[data-theme="dark"] .table-panel{background:transparent;border:0;box-shadow:none}
 html[data-theme="dark"] .table-title{background:transparent}
 html[data-theme="dark"] .app-shell .table-scroll tbody tr{background:#192c21;border-color:#3b5235;box-shadow:0 3px 12px #0002}
 html[data-theme="dark"] .app-shell .table-scroll tbody tr td,html[data-theme="dark"] .app-shell .table-scroll tbody tr:nth-child(even) td,html[data-theme="dark"] .app-shell .table-scroll tbody tr:hover td{background:transparent}
 html[data-theme="dark"] .app-shell .table-scroll tbody tr td:before{color:#a9bd9a}
}

html[data-theme="dark"] .leaflet-control-zoom{border-color:#486448!important}
html[data-theme="dark"] .leaflet-control-zoom a{color:#d6e8c9!important;border-color:#486448!important}
html[data-theme="dark"] .leaflet-control-zoom a.leaflet-disabled{color:#6f8971!important}
html[data-theme="dark"] :is(.mobile-identity-logo,.identity-private,.identity-private p){color:#c7d9ba}
html[data-theme="dark"] .identity-private span{color:#a9bd9a}
html[data-theme="dark"] .identity-private{border-color:#345044}
html[data-theme="dark"] .identity-lock{background:#29422f;color:#d4e4bf}
html[data-theme="dark"] :is(.site-photo-preview,.saved-site-photo img){background:#1a2e23;border-color:#345044}
