:root{
  --ink:#0e0e0f;
  --ink-2:#1b1b1d;
  --ink-3:#2b2b2e;
  --paper:#faf7f0;
  --paper-2:#f2ecdd;
  --paper-3:#e8e0cb;
  --line:rgba(14,14,15,.12);
  --line-strong:rgba(14,14,15,.28);
  --muted:#6b6458;
  --muted-2:#8a8378;
  --yellow:#ffd400;
  --yellow-soft:#fff4a8;
  --yellow-deep:#f4c100;
  --red:#e5322a;
  --red-soft:#ffd8d4;
  --red-deep:#b3261e;
  --orange:#f4a100;
  --tg:#2aabee;
  --green:#2a7b3a;
  --header-h: 60px;
  --filters-h: 60px;
}
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; height:100%; }
body{
  font-family:'Manrope', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button{ font: inherit; color: inherit; cursor: pointer; border:0; background: transparent; }
a{ color: inherit; text-decoration: none; }

/* ────────── APP SHELL ────────── */
.cl-app{ display:flex; flex-direction:column; height:100vh; min-height:0; }

/* ────────── HEADER ────────── */
.cl-nav{
  flex-shrink:0; height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}
.cl-nav-row{
  height:100%; display:flex; align-items:center; gap: 24px;
  padding: 0 20px;
}
.cl-brand-wrap{ display:flex; align-items:center; gap: 6px; }
.cl-back{
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--paper-2); color: var(--muted);
  display:inline-flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.cl-back:hover{ background: var(--ink); color: var(--paper); }
.cl-brand{ display:flex; align-items:center; gap:10px; }
.cl-brand-icon{ height: 34px; width: auto; display:block; }
.cl-brand-text{ display:flex; flex-direction:column; line-height: 1; gap:2px; }
.cl-brand-name{
  font-family:'Unbounded'; font-weight:800; font-size: 16px;
  letter-spacing:-.01em; color: var(--ink);
}
.cl-brand-svc{
  font-size: 10px; font-weight:700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}

.cl-tabs{ display:flex; gap:2px; margin-left: 12px; }
.cl-tab{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  transition: background .15s, color .15s;
  position: relative;
}
.cl-tab:hover{ color: var(--ink); background: var(--paper-2); }
.cl-tab.on{ color: var(--ink); background: var(--paper-2); }
.cl-tab-n{
  font-size:11px; font-weight:800; color: var(--muted-2);
  background: var(--paper-3); padding: 1px 7px; border-radius: 6px;
}
.cl-tab.on .cl-tab-n{ background: var(--ink); color: var(--paper); }
.cl-tab-badge{
  font-size:10.5px; font-weight:800;
  background: var(--red); color: #fff;
  padding: 2px 7px; border-radius: 6px;
  letter-spacing: .02em;
}

.cl-nav-right{ margin-left: auto; display:flex; align-items:center; gap:8px; }
.cl-icon-btn{
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--paper-2); color: var(--ink);
  display:inline-flex; align-items:center; justify-content:center;
}
.cl-icon-btn:hover{ background: var(--paper-3); }

/* ────────── FILTERS BAR ────────── */
.cl-filters{
  flex-shrink: 0;
  display:flex; align-items:center; gap: 14px; flex-wrap: nowrap;
  padding: 10px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  z-index: 900;
}
.cl-filters::-webkit-scrollbar{ display:none; }

.cl-filters-meta{
  margin-left:auto; display:flex; align-items:center; gap: 12px;
  font-size: 12px; color: var(--muted); flex-shrink: 0; white-space: nowrap;
}
.cl-filters-meta b{ color: var(--ink); font-weight: 800; }
.cl-filters-meta .cl-sep{ width:1px; height:14px; background: var(--line); }
.cl-updated{ display:inline-flex; align-items:center; gap:6px; }
.cl-upd-dot{
  width:7px; height:7px; border-radius:50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(42,123,58,.18);
}
.cl-upd-dot.stale{ background: var(--orange); box-shadow: 0 0 0 3px rgba(244,161,0,.22); }

.cl-search{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 14px; border-radius: 10px;
  background: var(--paper-2); color: var(--muted);
  min-width: 240px;
}
.cl-search input{
  flex:1; border:0; outline:0; background: transparent;
  font: inherit; font-size: 13.5px; color: var(--ink);
  min-width: 0;
}
.cl-search input::placeholder{ color: var(--muted-2); }
.cl-q-clear{
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper-3); color: var(--ink);
  display:inline-flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.cl-q-clear:hover{ background: var(--ink); color: var(--paper); }
.cl-q-clear[hidden]{ display: none; }

.cl-status-toggle{
  display:inline-flex; gap: 4px;
  padding: 3px; border-radius: 11px; background: var(--paper-2);
}
.cl-stbtn{
  display:inline-flex; align-items:center; gap:7px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.cl-stbtn:hover{ color: var(--ink); }
.cl-stbtn.on{ background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(14,14,15,.06); }
.cl-stbtn-n{
  font-size:11px; font-weight:800; color: var(--muted);
  margin-left: 2px;
}
.cl-stbtn.on .cl-stbtn-n{ color: var(--ink-2); }

.cl-dot{
  width:8px; height:8px; border-radius:50%;
  flex-shrink: 0;
}

.cl-fpill{
  display:inline-flex; align-items:center; gap:6px;
  padding: 7px 12px; border-radius: 9px;
  background: transparent; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.cl-fpill:hover{ border-color: var(--line-strong); color: var(--ink); }
.cl-fpill strong{ font-weight:800; color: var(--ink); }
.cl-fpill svg{ color: var(--muted-2); }
.cl-fpill-near{
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.cl-fpill-near:hover{ background: var(--ink-2); color: var(--paper); border-color: var(--ink-2); }
.cl-fpill-near svg{ color: var(--yellow); }
.cl-fpill-near.on{ background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cl-fpill-near.on svg{ color: var(--ink); }

/* ────────── BODY (split) ────────── */
.cl-body{
  flex:1; min-height:0;
  display:grid; grid-template-columns: 420px 1fr;
}

/* ────────── SIDE PANEL ────────── */
.cl-side{
  border-right: 1px solid var(--line);
  background: var(--paper);
  display:flex; flex-direction:column;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* iOS Safari при overflow-y:auto без overflow-x:hidden дає горизонтальний
     rubber-band на найменшому sub-pixel-розходженні дочірніх елементів. */
}
.cl-side::-webkit-scrollbar{ width: 8px; }
.cl-side::-webkit-scrollbar-thumb{ background: var(--paper-3); border-radius: 4px; }

/* Today digest — компактний, не сквошується parent flex-колонкою */
.cl-digest{
  flex-shrink: 0;
  margin: 14px 14px 0;
  padding: 10px 14px 11px;
  border-radius: 11px;
  background: var(--ink); color: var(--paper);
  position: relative;
}
.cl-digest::before{
  content:""; position: absolute;
  right: -24px; top: -24px; width: 90px; height: 90px;
  border-radius: 50%; background: var(--yellow); opacity: .12;
  pointer-events: none;
}
.cl-digest-head{
  display:flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; position: relative;
  min-height: 14px;
}
.cl-digest-date{
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--yellow);
  line-height: 1;
}
.cl-live{
  display:inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  color: var(--red); letter-spacing: .08em;
  line-height: 1;
}
.cl-live-d{
  width: 6px; height: 6px; border-radius:50%; background: var(--red);
  animation: cl-pulse 1.2s infinite;
}
@keyframes cl-pulse{ 50%{ opacity: .4; transform: scale(.6); } }
.cl-digest-stats{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  position: relative;
}
.cl-digest-stat{
  display:flex; flex-direction: column; gap: 2px;
  min-width: 0; /* щоб label з ellipsis не розпирав колонку */
}
.cl-digest-n{
  font-family:'Unbounded'; font-weight: 800;
  font-size: 20px; line-height: 1; letter-spacing: -.02em;
  color: var(--paper);
}
.cl-digest-red{ color: #ff6b63; }
.cl-digest-warn{ color: var(--yellow); }
.cl-digest-l{
  font-size: 9.5px; font-weight: 700; color: #c8c1ae;
  text-transform: uppercase; letter-spacing: .05em;
  line-height: 1.3;
}

/* Side head */
.cl-side-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 18px 12px;
}
.cl-side-title{
  font-family:'Unbounded'; font-weight: 800;
  font-size: 17px; letter-spacing: -.01em; margin: 0;
  line-height: 1.25;
  flex: 1; min-width: 0;
}
.cl-sort{
  display:inline-flex; align-items:center; gap:5px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 4px 8px; border-radius: 6px;
}
.cl-sort:hover{ background: var(--paper-2); color: var(--ink); }

/* List */
.cl-list, .cl-stream{
  display:flex; flex-direction:column; gap: 8px;
  padding: 0 14px 16px;
}
.cl-list[hidden], .cl-stream[hidden]{ display: none; }
.cl-item{
  display:block; width:100%; text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color .15s, background .15s;
  cursor: pointer;
  color: inherit; text-decoration: none;
}
.cl-item:hover{ border-color: var(--line-strong); background: var(--paper-2); }
.cl-item.on{
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--ink), 0 4px 14px rgba(14,14,15,.08);
}
.cl-item-head{
  display:flex; align-items:center; justify-content:space-between;
  gap: 8px; margin-bottom: 8px;
}
.cl-status-pill{
  display:inline-flex; align-items:center; gap:6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
}
.cl-status-pill.active{ background: var(--red-soft); color: var(--red-deep); }
.cl-status-pill.planned{ background: #fde7c1; color: #8a5400; }
.cl-status-pill.restoring{ background: var(--yellow-soft); color: #6e5400; }
.cl-status-pill.done{ background: var(--paper-3); color: var(--muted); }
.cl-status-pill.overdue{ background: var(--red-deep); color: #fff; }

.cl-item-type{
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.cl-item-title{
  font-family:'Unbounded'; font-weight: 700;
  font-size: 15px; line-height: 1.2; letter-spacing: -.01em;
  margin: 0 0 4px; color: var(--ink);
}
.cl-item-desc{
  margin: 0 0 10px;
  font-size: 12.5px; color: var(--ink-3);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cl-item-meta{
  display:flex; align-items:center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.cl-item-date{
  display:inline-flex; align-items:center; gap: 6px;
  font-weight: 600; color: var(--ink-3);
}
.cl-item-days{
  margin-left: 4px; padding: 1px 6px; border-radius: 4px;
  background: var(--paper-2); color: var(--muted);
  font-size: 10.5px; font-weight: 700;
}
.cl-item-district{
  font-size: 11px; font-weight: 700; color: var(--muted);
  padding: 2px 8px; border-radius: 999px;
  background: var(--paper-2);
}

.cl-empty{
  padding: 30px 16px; text-align:center; color: var(--muted);
  font-size: 13px;
}

/* Stream cards */
.cl-ev{
  display:flex; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cl-ev:hover{ border-color: var(--line-strong); background: var(--paper-2); }
.cl-ev-icon{
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size: 16px;
}
.cl-ev-added{ background: var(--red-soft); color: var(--red-deep); }
.cl-ev-removed{ background: var(--paper-3); color: var(--muted); }
.cl-ev-status_changed{ background: #fde7c1; color: #8a5400; }
.cl-ev-extended, .cl-ev-shortened, .cl-ev-rescheduled{ background: var(--yellow-soft); color: #6e5400; }
.cl-ev-body{ flex:1; min-width: 0; }
.cl-ev-text{
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  line-height: 1.35; margin: 0 0 3px;
}
.cl-ev-meta{
  font-size: 11.5px; color: var(--muted); display: flex; gap: 8px;
}
.cl-ev-time{ font-weight: 600; }
.cl-ev-time.fresh{ color: var(--red); }

/* Districts strip */
.cl-districts{
  margin: 12px 14px 18px;
  padding: 14px 14px 12px;
  background: var(--paper-2);
  border-radius: 12px;
}
.cl-dst-head{
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 10px;
}
.cl-dst-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.cl-dst{
  display:flex; align-items:baseline; gap:8px;
  padding: 7px 10px; border-radius: 8px;
  background: var(--paper); border: 1px solid transparent;
  font-size: 12.5px; color: var(--ink-2);
  text-align: left; cursor: pointer;
  text-decoration: none;
}
.cl-dst:hover{ border-color: var(--line); }
.cl-dst.on{ border-color: var(--ink); }
.cl-dst-n{
  font-family:'Unbounded'; font-weight: 800;
  font-size: 14px; color: var(--ink); letter-spacing: -.01em;
  min-width: 18px;
}
.cl-dst-name{
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  flex:1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ────────── MAP ────────── */
.cl-main{
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
  min-height: 0;
}
.cl-map{
  position: absolute; inset: 0;
  background: #f0e8d4;
}
/* Leaflet vendor overrides */
.leaflet-container{ font-family: inherit; background: #efe8d6; }
.leaflet-popup-content-wrapper{ border-radius: 12px; box-shadow: 0 8px 24px rgba(14,14,15,.18); }
.leaflet-popup-content{ margin: 14px 16px; font-family: inherit; }
.leaflet-popup-content p{ margin: 4px 0; }
.leaflet-control-zoom{ border: 1px solid var(--line) !important; border-radius: 9px !important; overflow: hidden; }
.leaflet-control-zoom a{
  background: var(--paper) !important; color: var(--ink) !important;
  font-family: 'Manrope' !important; font-weight: 700 !important;
}
.leaflet-control-zoom a:hover{ background: var(--paper-2) !important; }
.leaflet-control-attribution{ display: none; }

/* Map controls extras (locate, etc.) */
.cl-locate-btn{
  position: absolute; right: 10px; top: 84px;
  width: 30px; height: 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink);
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow: 0 2px 4px rgba(14,14,15,.06);
  z-index: 600;
}
.cl-locate-btn:hover{ background: var(--paper-2); }

/* Overdue marker glow */
.rw-marker-overdue{
  filter: drop-shadow(0 0 4px rgba(255,212,0,.85));
}

/* Compact mobile stats chip (bottom of viewport, не блокує Leaflet zoom) */
.cl-stats{
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: none; align-items: center; gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 4px 14px rgba(14,14,15,.12);
  z-index: 600;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  white-space: nowrap;
}
.cl-stat-mini{ display:inline-flex; align-items:center; gap: 5px; }
.cl-stat-mini b{
  font-family:'Unbounded'; font-weight: 800;
  font-size: 14px; line-height: 1; letter-spacing: -.01em;
}
.cl-stat-red{ color: var(--red); }
.cl-stat-orange{ color: #c87f00; }
.cl-stat-warn{ color: var(--red-deep); }

/* Map empty-state notice */
.cl-map-empty{
  position: absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  z-index: 500; pointer-events: none;
  background: rgba(250,247,240,.55);
}
.cl-map-empty-card{
  pointer-events: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  display:flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(14,14,15,.12);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  text-align: center;
}
.cl-map-empty-icon{
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--paper-2); color: var(--muted);
  display:inline-flex; align-items:center; justify-content:center;
}
.cl-map-empty p{ margin: 0; }
.cl-map-empty[hidden]{ display: none; }

/* Legend */
.cl-legend{
  position: absolute; left: 16px; bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(14,14,15,.08);
  display:flex; flex-direction:column; gap: 6px;
  z-index: 600;
}
.cl-legend-title{
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 4px;
}
.cl-legend-row{
  display:flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.cl-legend-divider{
  height: 1px; background: var(--line); margin: 4px 0;
}
.cl-legend-overdue{ color: var(--red-deep); font-weight: 700; }

.cl-attrib{
  position: absolute; right: 12px; bottom: 8px;
  font-size: 10px; color: var(--muted-2);
  background: rgba(250,247,240,.85); padding: 3px 7px;
  border-radius: 4px; z-index: 600;
}

/* ────────── DETAIL POPUP (Leaflet popup body) ────────── */
.rw-pop{
  font-family: 'Manrope', system-ui, sans-serif;
  min-width: 260px; max-width: 320px;
}
.rw-pop-head{ display:flex; align-items:center; gap: 8px; margin-bottom: 8px; }
.rw-pop-title{
  font-family:'Unbounded'; font-weight: 800;
  font-size: 16px; line-height: 1.2; letter-spacing: -.01em;
  margin: 0 0 6px; color: var(--ink);
}
.rw-pop-desc{
  font-size: 12.5px; color: var(--ink-3);
  margin: 0 0 10px; line-height: 1.4;
}
.rw-pop-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  padding-top: 8px; border-top: 1px solid var(--line);
  margin-top: 8px;
}
.rw-pop-cell{ display:flex; flex-direction:column; gap: 1px; }
.rw-pop-label{
  font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted-2);
}
.rw-pop-val{ font-size: 12.5px; font-weight: 700; color: var(--ink); }
.rw-pop-tl{ padding: 8px 0; }
.rw-tl-track{
  height: 6px; background: var(--paper-2);
  border-radius: 999px; overflow: hidden;
}
.rw-tl-fill{ height: 100%; border-radius: 999px; transition: width .3s; }
.rw-tl-fill.active{ background: var(--red); }
.rw-tl-fill.planned{ background: var(--orange); }
.rw-tl-fill.restoring{ background: var(--yellow); }
.rw-tl-fill.done{ background: var(--muted-2); }
.rw-tl-labels{
  display:flex; justify-content:space-between;
  margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 600;
}

/* ────────── DISTRICT POPOVER ────────── */
.cl-pop{
  position: fixed; z-index: 2000;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(14,14,15,.18);
  padding: 14px 14px 10px;
  min-width: 240px; max-height: 60vh;
  display:flex; flex-direction:column;
}
.cl-pop-head{
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 8px;
}
.cl-pop-list{
  display:flex; flex-direction:column; gap: 2px;
  overflow-y: auto; min-height: 0;
}
.cl-pop-item{
  display:flex; align-items:center; justify-content: space-between;
  gap: 10px; padding: 7px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.cl-pop-item:hover{ background: var(--paper-2); }
.cl-pop-item.on{ background: var(--ink); color: var(--paper); }
.cl-pop-item input{ display: none; }
.cl-pop-cnt{
  font-size: 11px; font-weight: 800; color: var(--muted-2);
  background: var(--paper-2); padding: 1px 7px; border-radius: 6px;
}
.cl-pop-item.on .cl-pop-cnt{ background: var(--ink-2); color: var(--paper-3); }
.cl-pop-foot{
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px;
  display:flex; justify-content: flex-end;
}
.cl-btn-mini{
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 5px 10px; border-radius: 7px;
}
.cl-btn-mini:hover{ background: var(--paper-2); color: var(--ink); }

/* ────────── responsive ────────── */
@media (max-width: 1100px){
  .cl-body{ grid-template-columns: 360px 1fr; }
}
@media (max-width: 900px){
  .cl-nav-row{ padding: 0 12px; gap: 12px; }
  .cl-tab span:not(.cl-tab-n):not(.cl-tab-badge){ display:none; }
  .cl-tab{ padding: 8px 10px; }
  .cl-filters{ padding: 10px 12px; gap: 10px; }
  .cl-search{ min-width: 160px; }
  .cl-filters-meta{ display:none; }
  /* Лишаємо «Мій Київ», ховаємо довге «Перекриття доріг» — інакше share-кнопка
     виходить за viewport на iPhone-ширинах. */
  .cl-brand-svc{ display:none; }
  .cl-body{ grid-template-columns: 1fr; }
  .cl-side{ display:none; }
  .cl-stats{ display: inline-flex; }
  .cl-legend{ display: none; }
  .cl-map-empty-card{ padding: 18px 22px; font-size: 12.5px; }
  /* mobile tab states */
  .cl-app[data-tab="list"] .cl-side,
  .cl-app[data-tab="stream"] .cl-side{
    display: flex; grid-column: 1 / -1;
  }
  .cl-app[data-tab="list"] .cl-main,
  .cl-app[data-tab="stream"] .cl-main{
    display: none;
  }
  .cl-app[data-tab="list"] .cl-stream{ display: none !important; }
  .cl-app[data-tab="list"] .cl-list{ display: flex !important; }
  .cl-app[data-tab="stream"] .cl-list{ display: none !important; }
  .cl-app[data-tab="stream"] .cl-stream{ display: flex !important; }
}

/* ────────── ABOUT MODAL ────────── */
.cl-modal{
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: cl-modal-in .18s ease-out;
}
.cl-modal[hidden]{ display: none; }
@keyframes cl-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cl-modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(14,14,15,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cl-modal-card{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(14,14,15,.35);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 30px 24px;
  animation: cl-card-in .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes cl-card-in {
  from { transform: translateY(8px) scale(.985); opacity: 0; }
  to   { transform: translateY(0) scale(1);      opacity: 1; }
}
.cl-modal-close{
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--paper-2); color: var(--muted);
  border-radius: 8px; cursor: pointer;
  transition: background .12s, color .12s;
}
.cl-modal-close:hover{ background: var(--ink); color: var(--paper); }
.cl-modal-title{
  font-family: 'Unbounded', sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: -.01em;
  margin: 0 36px 14px 0; color: var(--ink);
}
.cl-modal-body{
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
}
.cl-modal-body h3{
  font-family: 'Unbounded', sans-serif;
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
  text-transform: uppercase;
  margin: 18px 0 6px; color: var(--muted);
}
.cl-modal-body p{ margin: 0 0 10px; }
.cl-modal-body ul{ margin: 0 0 10px; padding-left: 18px; }
.cl-modal-body li{ margin-bottom: 4px; }
.cl-modal-body a{
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--yellow-deep);
  text-decoration-thickness: 2px; text-underline-offset: 2px;
}
.cl-modal-body a:hover{ background: var(--yellow-soft); }
.cl-modal-body strong{ font-weight: 700; color: var(--ink); }
.cl-modal-body em{ font-style: normal; background: var(--yellow-soft); padding: 0 3px; border-radius: 3px; }
.cl-modal-meta{
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
@media (max-width: 540px){
  .cl-modal{ padding: 0; align-items: flex-end; }
  .cl-modal-card{
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    padding: 22px 20px 20px;
  }
  .cl-modal-title{ font-size: 19px; }
}
