/* KyivAlert 2.0 - новий вигляд поверх попередньої сторінки (theme.css + style.css лишаються; тут - лише відмінності).
   Телефон: угорі смуга рівня тривоги з карткою «мій район», під картою - масштаб (Район / Місто / Область) і
   «Загрози зараз», унизу - розділи (Карта / Стрічка / Сповіщення / Джерела).
   Широкий екран: розділи - рядком угорі, ліворуч - колонка зі смугою рівня й загрозами, праворуч - карта. */
@font-face { font-family: "Fixel Text"; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/v2/fonts/fixel-text-400.woff2) format("woff2"); }
@font-face { font-family: "Fixel Text"; font-weight: 500; font-style: normal; font-display: swap; src: url(/static/v2/fonts/fixel-text-500.woff2) format("woff2"); }
@font-face { font-family: "Fixel Text"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/v2/fonts/fixel-text-600.woff2) format("woff2"); }
@font-face { font-family: "Fixel Text"; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/v2/fonts/fixel-text-700.woff2) format("woff2"); }
@font-face { font-family: "Fixel Display"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/v2/fonts/fixel-display-600.woff2) format("woff2"); }
@font-face { font-family: "Fixel Display"; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/v2/fonts/fixel-display-700.woff2) format("woff2"); }
@font-face { font-family: "Fixel Display"; font-weight: 800; font-style: normal; font-display: swap; src: url(/static/v2/fonts/fixel-display-800.woff2) format("woff2"); }

/* ---------- кольори: світла тема ---------- */
:root {
  --paper: #FFFFFF; --ground: #EDF1F6; --ink: #0A1526; --ink2: #3D4E66; --ink3: #8496AD; --line: #DCE4EE; --track: #D0D9E5;
  --primary: #0A64B4; --on-primary: #FFFFFF; --primary-container: #D9E9F8; --on-primary-container: #06203A;
  --secondary-container: #E3EAF2; --on-secondary-container: #0A1526;
  --surface: #FFFFFF; --on-surface: #0A1526; --on-surface-variant: #3D4E66;
  --sc-lowest: #FFFFFF; --sc-low: #F6F8FB; --sc: #EDF1F6; --sc-high: #E3EAF2; --sc-highest: #D0D9E5;
  --outline: #8496AD; --outline-variant: #DCE4EE;
  --inverse-surface: #0A1526; --inverse-on-surface: #EEF3FA; --inverse-primary: #7CC8FF;
  --threat-1: #F08C00; --threat-1-line: #C96F00; --threat-1-container: #FFE2B8; --on-threat-1-container: #4A2A00;
  --threat-2: #D92D23; --threat-2-line: #B4231B; --threat-2-container: #FFD9D4; --on-threat-2-container: #5C0F09;
  --on-threat-2: #FFFFFF;
  --yellow: #FFC83D; --yellow-line: #C98A00; --yellow-container: #FFF4D8; --on-yellow-container: #1A1300; --on-yellow-variant: #4A3A00;
  --red-line: #D92D23; --red-container: #FFD9D4; --on-red-container: #5C0F09; --on-red-variant: #5C0F09;
  --green: #1F8A4C; --green-container: #CDEFD9; --on-green-container: #06301A;
  --ac-yellow-bg: #FFC83D; --ac-yellow-fg: #1A1300; --ac-yellow-sub: #4A3A00;
  --ac-red-bg: #D92D23; --ac-red-fg: #FFFFFF; --ac-red-sub: #FFFFFF;
  --map-bg: #EDF1F6; --label: #0A1526; --label-halo: #FFFFFF;
  --float: #FFFFFF; --card: #FFFFFF; --ctx: #EDF1F6; --nav: #FFFFFF; --sheet: #FFFFFF; --page: #F6F8FB;
  --tab-pill: #E3EAF2; --mine: #0A64B4; --on-mine: #FFFFFF;
  --scrim: rgba(10, 21, 38, .36);
  --elev-1: 0 1px 3px rgba(10, 21, 38, .16);
  --elev-2: 0 2px 8px rgba(10, 21, 38, .16);
  --elev-3: 0 10px 28px rgba(10, 21, 38, .18);
  --font: "Fixel Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fixel Display", "Fixel Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --head-h: 0px; --aside-w: 0px; --aside-top: 0px; --scope-bottom: 0px;
}
/* ---------- кольори: темна тема ---------- */
:root[data-theme="dark"] {
  --paper: #111F35; --ground: #0A1526; --ink: #EEF3FA; --ink2: #AEBDD1; --ink3: #8799B2; --line: #2A3F60; --track: #2A3F60;
  --primary: #7CC8FF; --on-primary: #06203A; --primary-container: #1A2C47; --on-primary-container: #EEF3FA;
  --secondary-container: #1A2C47; --on-secondary-container: #EEF3FA;
  --surface: #111F35; --on-surface: #EEF3FA; --on-surface-variant: #AEBDD1;
  --sc-lowest: #0A1526; --sc-low: #0E1A2E; --sc: #111F35; --sc-high: #1A2C47; --sc-highest: #22375A;
  --outline: #8799B2; --outline-variant: #2A3F60;
  --inverse-surface: #EEF3FA; --inverse-on-surface: #0A1526; --inverse-primary: #0A64B4;
  --threat-1: #FF9F1A; --threat-1-line: #FFB648; --threat-1-container: #4A3210; --on-threat-1-container: #FFE2B8;
  --threat-2: #D92D23; --threat-2-line: #FF5A4D; --threat-2-container: #563044; --on-threat-2-container: #FFD9D4;
  --on-threat-2: #FFFFFF;
  --yellow: #FFC83D; --yellow-line: #FFC83D; --yellow-container: #3A3418; --on-yellow-container: #FFE6A8; --on-yellow-variant: #FFE6A8;
  --red-line: #FF5A4D; --red-container: #563044; --on-red-container: #FFD9D4; --on-red-variant: #FFD9D4;
  --green: #4CD08A; --green-container: #10391F; --on-green-container: #CDEFD9;
  --ac-red-bg: #D92D23;
  --map-bg: #0A1526; --label: #EEF3FA; --label-halo: #0A1526;
  --float: #111F35; --card: #111F35; --ctx: #0A1526; --nav: #0A1526; --sheet: #111F35; --page: #0A1526;
  --tab-pill: #1A2C47; --mine: #7CC8FF; --on-mine: #06203A;
  --scrim: rgba(3, 10, 22, .6);
  --elev-1: 0 1px 3px rgba(3, 10, 22, .5);
  --elev-2: 0 4px 14px rgba(3, 10, 22, .45);
  --elev-3: 0 10px 28px rgba(3, 10, 22, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --map-bg: #0A1526; --surface: #111F35; --on-surface: #EEF3FA; }
}

body.v2 { font-family: var(--font); font-size: 15px; line-height: 21px; }
body.v2 #settingsPage { background: var(--page); }
/* карта OpenStreetMap у темній темі - у тоні сторінки */
:root[data-theme="dark"] body.v2 .osm-tiles { filter: url(#kaNavy); opacity: 1; }   /* кольори макета: v2/index.html, kaNavy */

/* ---------- смуга рівня тривоги й картка «мій район» ---------- */
body.v2 #top { gap: 8px; top: calc(8px + var(--safe-top)); }
#bannerBox { border-radius: 20px; overflow: hidden; box-shadow: var(--elev-3); background: var(--paper); }
body.v2 .alert-card { border-radius: 0; box-shadow: none; --ac-sub: var(--ink2); }
body.v2 .alert-card.lvl-yellow { --ac-sub: var(--ac-yellow-sub); }
body.v2 .alert-card.lvl-red, body.v2 .alert-card.lvl-unknown { --ac-sub: var(--ac-red-sub); }
body.v2 .ac-head { display: none; }
.bn { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 14px 18px 15px; border: 0; margin: 0;
  background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.bn-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bn-level, .bn-timer { font-size: 15px; font-weight: 700; line-height: 20px; }
.bn-timer { font-variant-numeric: tabular-nums; }
.bn-title { font-family: var(--font-display); font-size: 31px; font-weight: 800; line-height: 34px; letter-spacing: -.2px;
  overflow-wrap: anywhere; }
.bn-foot { margin-top: 4px; flex-wrap: wrap; row-gap: 0; }
.bn-act { font-size: 15px; font-weight: 700; line-height: 20px; }
.bn-since { font-size: 13px; font-weight: 600; line-height: 20px; color: var(--ac-sub); white-space: nowrap; }
.bn-level:empty, .bn-timer:empty, .bn-act:empty, .bn-since:empty { display: none; }
.bn-row:not(:has(:not(:empty))) { display: none; }
.alert-card.lvl-none .bn-title, .alert-card.lvl-nodata .bn-title { font-size: 26px; line-height: 30px; font-weight: 700; }
.alert-card.lvl-none .bn-act, .alert-card.lvl-nodata .bn-act { font-weight: 500; color: var(--ink2); font-size: 14px; }
@media (max-width: 380px) { .bn-title { font-size: 26px; line-height: 30px; } }
body.v2 .ac-body { padding: 0 18px 14px; }

.my-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px 10px 14px; margin: 0;
  border: 0; border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.alert-card:not(.lvl-none):not(.lvl-nodata) + .my-card { border-top: 0; }
.mc-ico { flex: none; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sc-high); color: var(--ink2); }
.mc-ico svg { width: 18px; height: 18px; display: block; }
.my-card[data-state="calm"] .mc-ico { background: var(--green-container); color: var(--green); }
.my-card[data-state="warn"] .mc-ico { background: var(--yellow); color: #1A1300; }
.my-card[data-state="hit"] .mc-ico { background: var(--threat-2); color: #FFFFFF; }
.mc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mc-name { font-size: 15px; font-weight: 700; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sub { font-size: 13px; font-weight: 500; line-height: 18px; color: var(--ink2); }
.my-card .chev { width: 20px; height: 20px; color: var(--ink3); stroke-width: 2; }
body.v2 .offline { border-radius: 14px; }

/* ---------- кнопки карти: круглі, праворуч під смугою ---------- */
body.v2 #fabs, body.v2.compact #fabs { left: auto; right: 12px; width: 44px; gap: 8px; background: transparent; box-shadow: none; overflow: visible;
  border-radius: 0; }
body.v2 .fab { width: 44px; height: 44px; border-radius: 22px; background: var(--float); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), var(--elev-1); }
body.v2 #fabs .fab + .fab::before { display: none; }
body.v2 .fab[aria-pressed="true"], body.v2 .fab[aria-expanded="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
body.v2 #soundBtn[aria-pressed="true"] { background: var(--float); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line), var(--elev-1); }
body.v2 #soundBtn[aria-pressed="false"] { color: var(--ink3); }
body.v2 .music-btn, body.v2.compact .music-btn { left: 12px; right: auto; top: var(--fabs-top); border-radius: 22px; width: 44px; height: 44px; }
body.v2.compact .menu { left: auto; right: 64px; }
body.v2 .menu { border-radius: 16px; }

/* ---------- масштаб: Район / Місто / Область ---------- */
#scopeBar { position: fixed; z-index: 985; left: 12px; right: 12px; bottom: var(--scope-bottom); height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; transition: bottom .2s ease; }
#scopeBar > * { pointer-events: auto; }
.round-btn { flex: none; width: 44px; height: 44px; border-radius: 22px; border: 0; padding: 0; display: grid; place-items: center;
  background: var(--float); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--elev-1); cursor: pointer; }
.round-btn .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.round-btn[data-on="1"] { color: var(--mine); }
.scope { width: 236px; max-width: calc(100vw - 92px); height: 44px; border-radius: 22px; display: flex; align-items: center;
  background: var(--float); box-shadow: inset 0 0 0 1px var(--line), var(--elev-1); }
.scope button { flex: 1 1 0; height: 44px; border: 4px solid transparent; background: transparent; background-clip: padding-box;
  border-radius: 22px; color: var(--ink2); font: inherit; font-size: 14px; font-weight: 600; line-height: 36px; text-align: center;
  white-space: nowrap; cursor: pointer; padding: 0; }
.scope button[aria-pressed="true"] { background-color: var(--ink); color: var(--paper); font-weight: 700; }
body.v2.panel-open #scopeBar, body.v2.searching #scopeBar, body.v2.night-on #scopeBar { display: none; }

/* ---------- «Загрози зараз» ---------- */
body.v2 .sheet { border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(3, 10, 22, .28); max-height: 196px; animation: none;
  transition: max-height .22s ease; }
body.v2 .sheet.expanded { max-height: min(64vh, calc(100vh - 220px)); }
body.v2 .sheet-handle span { background: var(--line); }
body.v2 .sheet-head { padding: 0 20px; height: 36px; align-items: baseline; cursor: pointer; flex: none; }
body.v2 .sheet-head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 26px; }
body.v2 #sheetSum { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink2); }
body.v2 #kyivCard, body.v2 #threatList, body.v2 #sheetEmpty { display: none !important; }
.rows { list-style: none; margin: 0; padding: 0 20px; }
.rows > li { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.rows > li:last-child { border-bottom: 0; }
.rw-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sc-high); color: var(--ink); }
.rw-ico svg { width: 24px; height: 24px; display: block; }
.rw-ico svg.gl { stroke-width: 2; }
.rw-ico[data-c="red"] { background: var(--threat-2); color: #FFFFFF; }
.rw-ico[data-c="amber"] { background: var(--yellow); color: #1A1300; }
.rw-ico[data-c="calm"] { background: var(--green-container); color: var(--green); }
.rw-txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rw-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rw-name { font-size: 16px; font-weight: 700; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-mine { flex: none; font-size: 11px; font-weight: 700; line-height: 16px; padding: 1px 7px; border-radius: 9px; white-space: nowrap;
  background: var(--mine); color: var(--on-mine); }
.rw-sub { font-size: 13px; font-weight: 500; line-height: 18px; color: var(--ink2); overflow-wrap: anywhere; }
.rw-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rw-age { font-size: 13px; font-weight: 600; line-height: 18px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.rw-src { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; line-height: 16px; color: var(--ink); }
.rw-src svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-src.one { color: var(--ink3); }
.rw-src.launch { color: var(--primary); font-size: 12px; font-weight: 600; }
.rows-note { margin: 0; padding: 12px 20px 14px; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--ink2); }
.rows-note button { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.rows > li.calm { cursor: default; }
.rows > li.calm .rw-name { font-weight: 600; font-size: 15px; }

/* ---------- розділи ---------- */
body.v2 #nav { background: var(--nav); border-top: 1px solid var(--line); align-items: start; padding-left: 8px; padding-right: 8px; }
:root { --nav-h: calc(72px + var(--safe-bottom)); }
body.v2 #nav button { height: 64px; gap: 4px; color: var(--ink3); font-size: 12px; font-weight: 600; line-height: 14px; border: 0; background: none; cursor: pointer; }
body.v2 #nav .ind .ico { width: 22px; height: 22px; stroke-width: 1.8; }
body.v2 #nav button[aria-current="page"] { color: var(--ink); font-weight: 700; }
body.v2 #nav button[aria-current="page"] .ind .ico { stroke-width: 2; }
/* нижня панель - як була: активний розділ - жирний підпис і риска під ним (style.css) */
body.v2 #nav button[aria-current="page"]::after { background: var(--ink); }
body.v2 #nav .badge { border-color: var(--nav); }
/* шлях цілі за повідомленнями: пунктир кольору тексту, біля точок - час */
body.v2 .leaflet-targetTrails-pane path { stroke: var(--ink); }
.tt { position: relative; }
.tt i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 3px; background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ground); }
.tt span { position: absolute; left: 6px; top: -19px; font-family: var(--font); font-size: 11px; font-weight: 600; line-height: 14px; color: var(--ink);
  white-space: nowrap; text-shadow: 0 0 2px var(--ground), 0 0 3px var(--ground), 0 0 4px var(--ground); font-variant-numeric: normal; }
#brand, .nav-mine { display: none; }

/* ---------- сторінки: Стрічка, Сповіщення, Джерела ---------- */
body.v2 .page-head h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 34px; }
body.v2 .seg { border-radius: 22px; padding: 4px; background: var(--sc-high); }
body.v2 .seg button { border-radius: 18px; font-weight: 600; }
body.v2 .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
body.v2 .group { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
body.v2 button.row { background: transparent; }
body.v2 .about { color: var(--ink2); }
.src-note { margin: 4px 0 12px; font-size: 14px; line-height: 20px; color: var(--ink2); }
.src-title { margin: 20px 0 8px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink2); }
.src-title:first-child { margin-top: 4px; }
.src-list { list-style: none; margin: 0; padding: 0 16px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.src-list li { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.src-list li:last-child { border-bottom: 0; }
.src-dot { flex: none; width: 10px; height: 10px; border-radius: 5px; background: var(--ink3); }
.src-dot.ok { background: var(--green); } .src-dot.bad { background: var(--threat-2); }
.src-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.src-name { font-size: 15px; font-weight: 700; line-height: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.src-name:hover { text-decoration: underline; }
.src-sub { font-size: 13px; font-weight: 500; line-height: 18px; color: var(--ink2); }
.src-state { flex: none; font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.src-state.bad { color: var(--threat-2-line); }

/* ---------- стрілка балістики: одна, з місця пуску на весь Київ ---------- */
.bl-chev { pointer-events: none; }
.bl-chev svg { display: block; overflow: visible; }
.bl-chev path { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(120, 10, 5, .9)); }
.bl-chev path:nth-child(1) { animation: blChev 1.2s linear infinite; }
.bl-chev path:nth-child(2) { animation: blChev 1.2s linear .2s infinite; }
.bl-chev path:nth-child(3) { animation: blChev 1.2s linear .4s infinite; }
@keyframes blChev { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }
.bl-label { pointer-events: none; }
.bl-label span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; padding: 3px 9px; border-radius: 11px;
  background: var(--threat-2); color: #FFFFFF; font: 700 12px/16px var(--font); box-shadow: var(--elev-1); }
@media (prefers-reduced-motion: reduce) { .bl-chev path { animation: none !important; opacity: 1; } }

/* ---------- телефон ---------- */
@media (max-width: 839px) {
  body.v2.panel-open .sheet { display: none; }
  /* розгорнутий список закриває кнопки карти й масштаб */
  body.v2 .sheet { z-index: 995; }
  body.v2.sheet-expanded #scopeBar { display: none; }
  body.v2 #top { left: 12px; width: calc(100vw - 24px); max-width: none; }
}

/* ---------- широкий екран: розділи рядком угорі, ліворуч - колонка, праворуч - карта ---------- */
@media (min-width: 840px) {
  :root { --nav-h: 0px; --rail-w: 0px; --head-h: 56px; --aside-w: 432px; }
  body.v2.panel-open { --panel-w: 0px; }
  body.v2::before { content: ""; position: fixed; z-index: 0; left: 0; top: var(--head-h); bottom: 0; width: var(--aside-w); background: var(--ground);
    border-right: 1px solid var(--line); }
  body.v2 #map { top: var(--head-h); left: var(--aside-w); bottom: 0; }
  body.v2 #nav { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: var(--head-h); padding: 0 20px; gap: 4px;
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start; border-top: 0; border-right: 0;
    border-bottom: 1px solid var(--line); }
  #brand { display: flex; align-items: center; gap: 10px; margin-right: 20px; font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--ink); text-decoration: none; }
  .brand-dot { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--primary); box-sizing: border-box; }
  body.v2 #nav button { width: auto; min-height: 0; height: 40px; flex-direction: row; gap: 8px; padding: 0 14px 0 6px; font-size: 14px; border-radius: 20px; }
  body.v2 #nav button[aria-current="page"] { background: var(--tab-pill); }
  body.v2 #nav button[aria-current="page"]::after { display: none; }
  body.v2 #nav button[aria-current="page"] .ind { background: transparent; }
  body.v2 #nav .ind { width: auto; min-width: 30px; gap: 4px; }
  body.v2 #nav .badge { position: static; border: 0; }
  .nav-mine { display: block; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
  body.v2 #top { top: calc(var(--head-h) + 16px); left: 16px; width: calc(var(--aside-w) - 32px); max-width: none; }
  body.v2 .sheet, body.v2 .sheet.expanded { left: 16px; right: auto; width: calc(var(--aside-w) - 32px); top: var(--aside-top); bottom: 16px;
    max-height: none; border-radius: 20px; box-shadow: none; background: transparent; }
  body.v2 .sheet-handle { display: none; }
  body.v2 .sheet-head { padding: 8px 4px 0; height: 40px; cursor: default; }
  .rows { padding: 0 4px; }
  .rows-note { padding: 12px 4px; }
  body.v2 .page { top: var(--head-h); left: 0; width: var(--aside-w); box-shadow: none; border-right: 1px solid var(--line); }
  body.v2 .night { left: calc(var(--aside-w) + 16px); }
  #scopeBar { left: calc(var(--aside-w) + 16px); right: auto; bottom: 28px; }
  body.v2 #fabs, body.v2.compact #fabs { top: calc(var(--head-h) + 16px); right: 16px; }
  body.v2 .music-btn, body.v2.compact .music-btn { left: calc(var(--aside-w) + 16px); top: calc(var(--head-h) + 16px); }
  body.v2.compact .menu { right: 72px; top: calc(var(--head-h) + 16px); }
  body.v2 #toast { left: calc(var(--aside-w) + (100vw - var(--aside-w)) / 2); }
  body.v2.panel-open #scopeBar { display: flex; }
}
@media (prefers-reduced-motion: reduce) { body.v2 .sheet, #scopeBar { transition: none; } }

/* ---------- «Канали»: «Події» і «Повідомлення» ---------- */
body.v2 .feed-mode { margin: 4px 0 10px; }
body.v2.feed-events #feed, body.v2.feed-events .feed-filter, body.v2.feed-events #channels, body.v2.feed-events #toTop { display: none !important; }
body.v2:not(.feed-events) #events { display: none; }
.events { list-style: none; margin: 0; padding: 0 16px 24px; }
.ev { display: grid; grid-template-columns: 46px 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0;
  border-bottom: 1px solid var(--line); cursor: pointer; }
.ev:last-child { border-bottom: 0; }
.ev-time { padding-top: 10px; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--ink2); }
.ev-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sc-high); color: var(--ink); }
.ev-ico svg { width: 24px; height: 24px; display: block; }
.ev-ico[data-c="amber"] { background: var(--yellow); color: #1A1300; }
.ev-ico[data-c="red"] { background: var(--threat-2); color: #FFFFFF; }
.ev-ico[data-c="one"] { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink3); box-sizing: border-box; }
.ev-ico[data-c="gone"] { background: transparent; color: var(--ink3); border: 1.5px dashed var(--line); box-sizing: border-box; }
.ev-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-title { font-size: 16px; font-weight: 700; line-height: 22px; color: var(--ink); }
.ev-sub { font-size: 14px; line-height: 20px; color: var(--ink2); }
.ev.gone .ev-title, .ev.gone .ev-sub { text-decoration: line-through; color: var(--ink3); }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 13px; font-weight: 600;
  line-height: 18px; color: var(--ink2); }
.ev-src { display: inline-flex; align-items: center; gap: 4px; }
.ev-src svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-tag { color: var(--ink3); }
.ev-gone { color: var(--ink3); }
.ev-lvl { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; margin: 10px 0; padding: 12px 12px 12px 0;
  border-radius: 14px; font-size: 15px; font-weight: 700; line-height: 20px; }
.ev-lvl .ev-time { padding: 0 0 0 12px; color: inherit; }
.ev-lvl[data-level="yellow"] { background: var(--yellow); color: #1A1300; }
.ev-lvl[data-level="red"] { background: var(--threat-2); color: #FFFFFF; }
.ev-lvl[data-level="none"] { background: var(--sc-high); color: var(--ink); }
.ev-empty { display: flex; flex-direction: column; gap: 6px; padding: 24px 4px; color: var(--ink2); }
.ev-empty b { color: var(--ink); font-size: 16px; }
@media (min-width: 840px) { .events { padding: 0 20px 24px; } }
