@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-arabic.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }
:root {
  --bg: #F3F4F6; --surface: #fff; --surface-2: #F8F9FB;
  --ink: #111827; --ink-2: #374151; --ink-3: #5B6472;
  --line: #E2E5EA; --line-2: #EDEFF3;
  --navy: #1D3557; --navy-d: #14253F; --navy-t: #E8EDF5;
  --gold: #8A6A1B; --gold-t: #F6EFD9;
  --active: #1E6F50; --active-t: #E2F1E9;
  --waiting: #8F6508; --waiting-t: #F7EDD3;
  --over: #9C3D2B; --over-t: #F6E3DD;
  --excluded: #5F6875; --excluded-t: #EBEDF0;
  --web: #2F5B84; --web-t: #E1EAF3;
  --r: 14px; --r-s: 10px;
  --sh: 0 1px 2px rgba(17,24,39,.05), 0 4px 16px -8px rgba(17,24,39,.12);
  --side: 232px; --over-b:#E5C3B8; --gold-b:#E7D9B4; --navy-t2:#D5DDEB; --bar2:#C9CFD9; --pri:#1D3557; --side-bg:#14253F; --scrim:rgba(17,24,39,.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Cairo', system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--web); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--side-bg); color: #E6EBF3; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 800; font-size: 16px; color: #fff; }
.brand .lg { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-t); color: var(--gold); display: grid; place-items: center; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nv { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: #B9C3D6; font-weight: 700; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: right; }
.nv:hover { background: rgba(255,255,255,.07); color: #fff; }
.nv[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nv .cnt { margin-inline-start: auto; font-size: 12px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 0 8px; }
.side-foot { margin-top: auto; font-size: 12px; color: #9AA7BE; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.logout { background: none; border: 1px solid rgba(255,255,255,.25); color: #E6EBF3; border-radius: 10px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.logout:hover { background: rgba(255,255,255,.1); }
.main { padding: 26px 28px 80px; max-width: 1240px; width: 100%; }
.ph1 { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ph1 h1 { margin: 0; font-size: 26px; font-weight: 800; color: var(--navy-d); line-height: 1.2; }
.ph1 p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.view { display: none; } .view.on { display: block; }
.tabbar { display: none; }

/* Generic */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.pad { padding: 18px; }
.h3 { font-size: 15px; font-weight: 800; color: var(--navy-d); margin: 0 0 12px; }
.muted { color: var(--ink-3); font-size: 13px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 8px 16px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--navy-d); }
.btn.sm { padding: 4px 12px; font-size: 13px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 10px; line-height: 1.7; }
.b-active { background: var(--active-t); color: var(--active); } .b-waiting { background: var(--waiting-t); color: var(--waiting); }
.b-over { background: var(--over-t); color: var(--over); } .b-excluded { background: var(--excluded-t); color: var(--excluded); }
.b-web { background: var(--web-t); color: var(--web); } .b-gold { background: var(--gold-t); color: var(--gold); } .b-navy { background: var(--navy-t); color: var(--navy); }
.best { background: var(--active); color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 1px 8px; }
input[type=text], input[type=number], input[type=search], select, textarea { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); padding: 8px 12px; font-size: 14px; color: var(--ink); }
textarea { width: 100%; resize: vertical; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--navy-d); box-shadow: var(--sh); }
.empty { text-align: center; color: var(--ink-3); padding: 40px 10px; } .empty strong { display: block; font-size: 16px; color: var(--ink-2); margin-bottom: 4px; }

/* KPIs + overview */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); }
.kpi span { display: block; font-size: 13px; color: var(--ink-3); } .kpi b { display: block; font-size: 24px; font-weight: 800; color: var(--navy-d); line-height: 1.3; } .kpi small { font-size: 12.5px; color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.rank { list-style: none; margin: 0; padding: 0; } .rank li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.rank li:last-child { border: 0; } .rank .n { width: 28px; height: 28px; border-radius: 8px; background: var(--navy-t); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.rank .t { font-weight: 700; font-size: 14.5px; } .rank .s { font-size: 12.5px; color: var(--ink-3); } .rank .v { font-weight: 800; color: var(--navy-d); text-align: left; }
.pipe { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--line-2); margin: 6px 0 12px; }
.pipe i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); } .legend b { margin-inline-start: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 5px; }
.todo { display: flex; flex-direction: column; gap: 8px; } .todo div { background: var(--waiting-t); border-radius: var(--r-s); padding: 8px 12px; font-size: 13.5px; color: var(--waiting); }

/* Filter bar */
.fbar { position: sticky; top: 0; z-index: 15; background: var(--bg); padding: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sbox { position: relative; flex: 1 1 260px; } .sbox .ico { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }
.sbox input { width: 100%; padding-right: 38px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pri); border-color: var(--pri); color: #fff; }

/* Listing cards */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: right; padding: 0; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s; }
.lc:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -12px rgba(17,24,39,.28); }
.lc .im { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-t), var(--navy-t2)); display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 34px; overflow: hidden; }
.lc .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc .im .badge { position: absolute; top: 10px; right: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.lc .im .no { position: absolute; top: 10px; left: 10px; background: rgba(20,37,63,.85); color: #fff; font-size: 12px; border-radius: 8px; padding: 0 8px; font-weight: 800; }
.lc .im .pc { position: absolute; bottom: 8px; left: 10px; background: rgba(20,37,63,.85); color: #fff; font-size: 12px; border-radius: 8px; padding: 0 8px; }
.lc .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.lc .pr { font-size: 21px; font-weight: 800; color: var(--navy-d); line-height: 1.3; } .lc .pr small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.lc .tt { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.lc .st { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.lc .tag { font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; display: none; } .scrim.on { display: block; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(680px, 100vw); background: var(--bg); z-index: 41; transform: translateX(-102%); transition: transform .22s ease; display: flex; flex-direction: column; box-shadow: 10px 0 40px rgba(0,0,0,.25); }
.drawer.on { transform: none; }
.dh { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; }
.dh h2 { margin: 0; font-size: 19px; line-height: 1.35; color: var(--navy-d); } .dh p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.dx { margin-inline-start: auto; border: 1px solid var(--line); background: var(--surface); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 18px; flex-shrink: 0; }
.dtabs { background: var(--surface); border-bottom: 1px solid var(--line); display: flex; gap: 4px; padding: 0 14px; overflow-x: auto; }
.dtabs button { border: 0; background: none; padding: 11px 14px; font-weight: 700; font-size: 14px; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.dtabs button[aria-selected="true"] { color: var(--navy-d); border-bottom-color: var(--gold); }
.db { overflow-y: auto; padding: 16px 18px 40px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pbox { display: flex; flex-wrap: wrap; gap: 10px; } .pbox > div { flex: 1; min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px; }
.pbox span { display: block; font-size: 12.5px; color: var(--ink-3); } .pbox b { font-size: 19px; color: var(--navy-d); }
.pbox .hl { background: var(--gold-t); border-color: var(--gold-b); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.facts > div { padding: 9px 14px; border-bottom: 1px solid var(--line-2); } .facts dt { font-size: 12px; color: var(--ink-3); } .facts dd { margin: 0; font-weight: 700; font-size: 14px; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; }
.sec h4 { margin: 0 0 8px; font-size: 14.5px; color: var(--navy-d); } .sec ul { margin: 0; padding: 0 18px 0 0; } .sec li { font-size: 14px; margin-bottom: 4px; }
.warn { background: var(--over-t); border: 1px solid var(--over-b); color: var(--over); border-radius: var(--r-s); padding: 10px 14px; font-size: 14px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.th { position: relative; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--surface); }
.th a { display: block; aspect-ratio: 4 / 3; } .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .doc { display: grid; place-items: center; height: 100%; font-size: 12px; font-weight: 800; color: var(--web); padding: 8px; text-align: center; word-break: break-all; background: var(--web-t); }
.th .cp { font-size: 11.5px; padding: 4px 8px; color: var(--ink-2); line-height: 1.4; border-top: 1px solid var(--line-2); max-height: 4.2em; overflow: hidden; }
.th .del { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: rgba(156,61,43,.92); color: #fff; cursor: pointer; }
.uprow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; } .uprow input[type=text] { flex: 1; min-width: 130px; padding: 6px 10px; font-size: 13px; }
.note { display: flex; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; font-size: 14px; } .note small { display: block; color: var(--ink-3); font-size: 11.5px; } .note button { border: 0; background: none; color: var(--over); font-size: 16px; cursor: pointer; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; } .srcs a { font-size: 12.5px; font-weight: 700; background: var(--web-t); color: var(--web); border-radius: 999px; padding: 3px 12px; text-decoration: none; }
.srcs a:hover { text-decoration: underline; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; } .tbl th, .tbl td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; } .tbl th { font-size: 12px; color: var(--ink-3); font-weight: 700; background: var(--surface-2); }
.tbl tbody tr:hover td { background: var(--surface-2); } .tbl .bestrow td { background: var(--gold-t) !important; font-weight: 800; }
.tw { overflow-x: auto; } .tw.card { padding: 0; }
.pos { color: var(--over); font-weight: 700; } .neg { color: var(--active); font-weight: 700; }
.lnk { border: 0; background: none; color: var(--navy); font-weight: 700; cursor: pointer; padding: 0; font-size: inherit; text-align: right; } .lnk:hover { text-decoration: underline; }

/* Analysis */
.ctrl { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 16px; }
.ctrl input { width: 80px; font-weight: 800; text-align: center; }
.chart { display: flex; flex-direction: column; gap: 10px; }
.cr { display: grid; grid-template-columns: 170px 1fr 110px; gap: 12px; align-items: center; font-size: 13.5px; }
.cr .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr .bars { display: flex; flex-direction: column; gap: 3px; } .cr .tr { height: 9px; background: var(--line-2); border-radius: 5px; overflow: hidden; } .cr .tr i { display: block; height: 100%; border-radius: 5px; }
.cr .tv { text-align: left; font-weight: 800; color: var(--navy-d); }
.lg2 { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.assume { font-size: 13.5px; } .assume summary { cursor: pointer; font-weight: 800; color: var(--navy-d); } .assume ul { margin: 8px 0 0; padding: 0 18px 0 0; } .assume li { margin-bottom: 4px; }
.plan { margin-top: 10px; background: var(--surface-2); border-radius: var(--r-s); padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
details.ua { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--sh); }
details.ua summary { padding: 14px 18px; cursor: pointer; font-weight: 800; color: var(--navy-d); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
details.ua[open] summary { border-bottom: 1px solid var(--line-2); } details.ua .in { padding: 14px 18px; }

/* Map */
.mapw { display: grid; grid-template-columns: 320px 1fr; gap: 14px; height: calc(100vh - 150px); min-height: 480px; }
.mlist { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-left: 4px; }
.mi { text-align: right; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 10px 12px; cursor: pointer; font: inherit; }
.mi:hover, .mi.on { border-color: var(--navy); box-shadow: var(--sh); } .mi b { display: block; font-size: 14.5px; color: var(--navy-d); } .mi span { font-size: 12.5px; color: var(--ink-3); }
#map { border-radius: var(--r); border: 1px solid var(--line); min-height: 420px; }
.leaflet-popup-content { font-family: 'Cairo', sans-serif; direction: rtl; } .popt { font-weight: 800; color: var(--navy-d); } .popd { font-size: 12.5px; color: var(--ink-2); } .popa { font-size: 12px; font-weight: 800; color: var(--waiting); }
.pin { background: var(--navy); color: #fff; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 30px; height: 30px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pin span { transform: rotate(45deg); font-weight: 800; font-size: 12px; } .pin.ap { background: var(--waiting); }

/* Auth */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--navy-d), var(--navy)); }
.auth-card { background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); padding: 32px 28px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--gold); }
.auth-card .logo { width: 54px; height: 54px; border-radius: 14px; background: var(--gold-t); display: grid; place-items: center; margin: 0 auto; }
.auth-card .logo svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-card h1 { margin: 0; font-size: 20px; text-align: center; color: var(--navy-d); } .auth-card .lead { margin: 0; font-size: 13.5px; color: var(--ink-2); text-align: center; }
.auth-card label { font-size: 13px; font-weight: 700; color: var(--ink-2); } .auth-card input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.auth-card input.code { text-align: center; font-size: 24px; letter-spacing: 8px; font-weight: 800; } .auth-card .err { color: var(--over); font-size: 13px; min-height: 18px; text-align: center; }
.auth-card .btn.pri { padding: 11px; font-size: 15px; } .auth-card .fine { font-size: 11.5px; color: var(--ink-3); text-align: center; margin: 0; }
.auth-card .btn { border-radius: 10px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .side { display: none; }
  .main { padding: 16px 14px 96px; } .ph1 h1 { font-size: 22px; }
  .tabbar { display: flex; position: fixed; bottom: 0; inset-inline: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 30; padding: 4px 4px max(4px, env(safe-area-inset-bottom)); }
  .tabbar button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 0; font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 6px 2px; cursor: pointer; }
  .tabbar button[aria-current="page"] { color: var(--navy); } .tabbar .ico { width: 22px; height: 22px; }
  .grid2 { grid-template-columns: 1fr; } .lgrid { grid-template-columns: 1fr; }
  .drawer { width: 100vw; } .mapw { grid-template-columns: 1fr; height: auto; } #map { height: 55vh; } .mlist { max-height: 220px; order: 2; }
  .cr { grid-template-columns: 96px 1fr 84px; font-size: 12.5px; }
  .m-top { display: flex !important; }
}
.m-top { display: none; align-items: center; justify-content: space-between; margin: -4px 0 12px; } .m-top b { color: var(--navy-d); font-size: 16px; } .m-top button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.main { min-width: 0; } .shell > * { min-width: 0; }
.db > * { flex-shrink: 0; }
.facts { flex-shrink: 0; }
.phone, .db a[href^="tel"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:root { --c-active:#1E6F50; --c-waiting:#8F6508; --c-over:#9C3D2B; --c-excluded:#5F6875; --c-web:#2F5B84; }
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:#0F141B; --surface:#171E27; --surface-2:#1C2430;
  --ink:#E7EBF1; --ink-2:#C2CAD6; --ink-3:#8E99A9;
  --line:#2B3542; --line-2:#222B36;
  --navy:#6E9BCF; --navy-d:#DCE6F3; --navy-t:#1E2A3A; --navy-t2:#26364B;
  --gold:#D6B76E; --gold-t:#2A2518; --gold-b:#463C22;
  --active:#5CC09A; --active-t:#16302A;
  --waiting:#DDAE58; --waiting-t:#31281A;
  --over:#E88F7C; --over-t:#38211D; --over-b:#5A3329;
  --excluded:#9AA4B2; --excluded-t:#232B35;
  --web:#86B0DD; --web-t:#1B2838;
  --bar2:#46556A; --pri:#3F6FA6; --side-bg:#0B1017; --scrim:rgba(0,0,0,.6);
  --sh: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px -10px rgba(0,0,0,.6);
  --c-active:#4FAE8A; --c-waiting:#C79A45; --c-over:#CF7766; --c-excluded:#6E7A8A; --c-web:#5E8DC0;
}
html[data-theme="dark"] .best { color: #0F141B; }
html[data-theme="dark"] .lc .im .no, html[data-theme="dark"] .lc .im .pc { background: rgba(11,16,23,.8); }
html[data-theme="dark"] .lc .im img { background: #fff; }
html[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(.82) contrast(.9) saturate(.6); }
html[data-theme="dark"] .leaflet-container { background: #14191f; }
html[data-theme="dark"] .leaflet-popup-content-wrapper, html[data-theme="dark"] .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .pin { border-color: var(--surface); }
html[data-theme="dark"] .th .del { background: rgba(207,119,102,.95); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .auth-card { box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); border: 1px solid var(--line); }
.logout + .logout { margin-top: 0; } #theme2 { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; cursor: pointer; padding: 2px 8px; }
html[data-theme="dark"] .btn.pri:hover { background: #4A7DB8; } .btn.pri:hover { filter: brightness(1.1); }
