:root {
  color-scheme: dark;
  --bg: #111820;
  --panel: #18212b;
  --surface: #202c38;
  --line: #34414e;
  --fg: #f0f4f8;
  --fg2: #d1dbe5;
  --muted: #a8b7c6;
  --blue: #88c7ff;
  --green: #71deb0;
  --orange: #ffc477;
  --red: #ff8a89;
  --yellow: #ffe08a;
  --sep: var(--line);
  --glass: var(--panel);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  font-size: 16px;
}
body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.app {
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
}
[hidden] {
  display: none !important;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
}
button,
.button,
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  padding: 9px 14px;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #304354;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button[aria-pressed="true"],
button.on {
  background: #23486a;
  border-color: #88c7ff;
  color: #fff;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
button svg {
  width: 20px;
  height: 20px;
}
a.button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}
p {
  margin: 10px 0;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 18px;
}
small,
.muted,
.kv {
  color: var(--muted);
  font-size: 14px;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
  background: var(--panel);
  padding: 12px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fg);
}
.brand strong {
  font-size: 26px;
  letter-spacing: -1px;
}
.brand span {
  font-size: 14px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: clamp(360px, 29vw, 470px) minmax(0, 1fr);
  min-height: 0;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
}
#status {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--muted);
}
#status.ALARM {
  border-top-color: var(--red);
  background: #44272b;
}
#status.OBSERWACJA {
  border-top-color: var(--orange);
  background: #40321f;
}
#status.ODWOLANO,
#status.SPOKOJ {
  border-top-color: var(--green);
  background: #193a2e;
}
#status.ALARM #stan { color: var(--red); }
#status.OBSERWACJA #stan { color: var(--orange); }
#status.ODWOLANO #stan,
#status.SPOKOJ #stan { color: var(--green); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 8px;
}
#stan {
  font-size: 24px;
  letter-spacing: -0.5px;
}
#powod {
  margin: 12px 0 8px;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#status.ALARM #powod {
  -webkit-line-clamp: unset;
}
#freshness {
  font-size: 13px;
  color: var(--muted);
}
#status.STALE,
#status.UNKNOWN {
  border-top-color: var(--muted);
  background: var(--surface);
}
.status-link {
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.sidebar-nav {
  display: flex;
  gap: 6px;
  padding: 14px 20px 0;
}
.sidebar-nav button {
  flex: 1;
}
.pane {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.pane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 24px 10px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 24px 14px;
}
.filters button {
  font-size: 14px;
  padding: 8px 10px;
}
.pane-intro {
  padding: 0 24px 14px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.ev {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.ev .s {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.ev .s strong {
  color: var(--fg2);
}
.ev p {
  font-size: 16px;
  margin: 0 0 10px;
}
.ev details {
  font-size: 14px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
summary::before {
  content: "+";
  font-size: 20px;
  color: var(--blue);
}
details[open] > summary::before {
  content: "−";
}
summary::-webkit-details-marker {
  display: none;
}
.ev .fulltext {
  white-space: pre-wrap;
  color: var(--fg2);
  font-size: 16px;
  margin: 8px 0;
}
.ev a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.empty {
  padding: 24px;
  color: var(--muted);
}
.content-block {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.content-block > h3 {
  margin-bottom: 12px;
}
.sysrow {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.sysrow .o {
  color: var(--muted);
  font-size: 14px;
}
#map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #26323e;
}
#map {
  position: absolute;
  inset: 0;
}
.map-tools {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  pointer-events: none;
  z-index: 3;
}
.map-tools button {
  pointer-events: auto;
  box-shadow: 0 2px 12px #0004;
  background: var(--panel);
}
.map-tools .zoom {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.map-tools .zoom button {
  width: 44px;
  padding: 0;
  font-size: 24px;
}
.map-note {
  position: absolute;
  left: 16px;
  bottom: 28px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  max-width: calc(100% - 80px);
  pointer-events: none;
}
#detail {
  position: absolute;
  right: 16px;
  top: 76px;
  z-index: 4;
  width: 340px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 115px);
  overflow: auto;
  padding: 56px 20px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
}
.fold {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  padding: 0;
  font-size: 24px;
}
#tabs {
  display: none;
}
dialog {
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  width: min(640px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
}
dialog::backdrop {
  background: #080e16bb;
}
.dialog-head {
  position: sticky;
  top: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.dialog-head button {
  width: 44px;
  padding: 0;
  font-size: 24px;
}
.dialog-body {
  padding: 8px 24px 24px;
}
.dialog-body h4 {
  font-size: 17px;
  margin: 24px 0 8px;
}
.dialog-body p,
.dialog-body li {
  color: var(--fg2);
}
.dialog-body label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
}
.dialog-body input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
.dialog-body select {
  margin-left: auto;
}
.dialog-body a {
  overflow-wrap: anywhere;
}
.gnss-stations,
#gnss-stations {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
#gnss-stations > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
#gnss-stations > div > span:last-child {
  text-align: right;
}
#gnss [data-level="1"] {
  color: var(--orange);
}
#gnss [data-level="2"] {
  color: var(--red);
}
#gnss p {
  font-size: 14px;
  color: var(--muted);
}
#gnss-summary {
  font-size: 17px;
  font-weight: 600;
}
.plrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.plrow button {
  width: 44px;
  display: grid;
  place-items: center;
  padding: 0;
}
.pls {
  font-size: 14px;
}
.plauto {
  font-size: 14px;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  margin-left: auto;
}
.plauto input {
  width: 20px;
  height: 20px;
}
.plrow.playing {
  border-color: var(--yellow);
}
.large-text .ev p,
.large-text .ev .fulltext {
  font-size: 19px;
}
#player-error {
  color: var(--orange);
  font-size: 14px;
}
#player-error:empty {
  display: none;
}
.archive {
  overflow: auto;
}
.archive .topbar {
  position: sticky;
  top: 0;
  z-index: 5;
}
.archive-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}
.archive-main h1 {
  font-size: 34px;
  margin-bottom: 12px;
}
.archive-main .filters {
  padding: 20px 0;
}
.archive-main .ev {
  background: var(--panel);
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.archive-main #status {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.archive-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.archive-tools label {
  display: flex;
  gap: 12px;
  align-items: center;
}
.archive footer {
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.light {
  color-scheme: light;
  --bg: #f0f3f6;
  --panel: #fff;
  --surface: #e8eef4;
  --line: #c7d2dd;
  --fg: #162331;
  --fg2: #354a5f;
  --muted: #536779;
  --blue: #005da8;
  --green: #006f47;
  --orange: #865000;
  --red: #a92020;
}
.light button:hover {
  background: #d7e5f2;
}
.light #status.ODWOLANO,
.light #status.SPOKOJ {
  background: #e2f4e9;
}
.light #status.OBSERWACJA {
  background: #fff0d7;
}
.light #status.ALARM {
  background: #ffe5e5;
}
@media (min-width: 1800px) {
  .workspace {
    grid-template-columns: 480px minmax(0, 1fr);
  }
  #stan {
    font-size: 28px;
  }
  .ev {
    padding: 24px 28px;
  }
  .ev p {
    font-size: 17px;
  }
}
@media (max-width: 999px) {
  body.app {
    grid-template-rows: 60px minmax(0, 1fr) auto;
  }
  .topbar {
    padding: 8px 16px;
  }
  .brand span {
    font-size: 12px;
  }
  .top-actions .desktop-action {
    display: none;
  }
  .top-actions button {
    font-size: 14px;
    padding: 8px 12px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .sidebar {
    display: contents;
    border: 0;
  }
  #status {
    flex: none;
    padding: 12px 16px;
    background: var(--panel);
  }
  #status .eyebrow {
    display: none;
  }
  #stan {
    font-size: 20px;
  }
  #powod {
    font-size: 14px;
    -webkit-line-clamp: 2;
    margin: 6px 0 2px;
  }
  .status-link {
    font-size: 13px;
    min-height: 28px;
    padding: 3px 0;
  }
  #freshness {
    font-size: 12px;
  }
  .sidebar-nav {
    display: none;
  }
  .pane {
    flex: 1;
    background: var(--panel);
  }
  .pane-heading {
    padding: 20px 16px 12px;
  }
  .filters {
    padding: 0 16px 14px;
  }
  .pane-intro {
    padding: 0 16px 14px;
  }
  .ev {
    padding: 18px 16px;
  }
  .content-block {
    padding: 20px 16px;
  }
  #map-panel {
    flex: 1;
    display: none;
  }
  body[data-view="map"] #map-panel {
    display: block;
  }
  body[data-view="map"] .pane {
    display: none !important;
  }
  body[data-view="feed"] #feed {
    display: block;
  }
  #tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    gap: 4px;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  #tabs button {
    background: transparent;
    border: 0;
    min-height: 48px;
    padding: 6px 2px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted);
  }
  #tabs button.on {
    background: var(--surface);
    color: var(--fg);
  }
  .map-tools {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .map-tools button {
    padding: 8px 10px;
    font-size: 14px;
  }
  .map-note {
    font-size: 12px;
    bottom: 30px;
    left: 12px;
  }
  .archive-main {
    padding: 24px 16px;
  }
  .archive-main h1 {
    font-size: 28px;
  }
  .archive .brand span {
    display: none;
  }
}
@media (max-height: 500px) and (max-width: 999px) {
  body.app {
    grid-template-rows: 52px minmax(0, 1fr) auto;
  }
  #status {
    padding: 6px 16px;
  }
  #stan {
    font-size: 17px;
  }
  #powod {
    display: none;
  }
  #status.ALARM #powod {
    display: block;
    max-height: 90px;
    overflow: auto;
  }
  #status .status-footer {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  #tabs {
    padding-top: 2px;
    padding-bottom: 2px;
  }
  #tabs button {
    min-height: 44px;
    flex-direction: row;
    justify-content: center;
  }
  #tabs svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 999px) {
  .status-link {
    min-height: 44px;
  }
  #powod {
    -webkit-line-clamp: 3;
  }
}
@media (max-height: 500px) and (max-width: 999px) {
  .status-link {
    min-height: 28px;
  }
  .status-footer {
    min-height: 28px;
  }
}
.light button[aria-pressed="true"]:hover,
.light button.on:hover {
  background: #23486a;
  color: #fff;
}
@media (max-height: 500px) and (max-width: 999px) {
  .status-link {
    min-height: 44px;
  }
  .status-footer {
    min-height: 44px;
  }
}
#status.ALARM #powod {
  -webkit-line-clamp: 5;
}
@media (max-width: 999px) {
  #status.ALARM #powod {
    -webkit-line-clamp: 4;
  }
}
@media (max-height: 500px) and (max-width: 999px) {
  #status.ALARM #powod {
    display: -webkit-box;
    -webkit-line-clamp: 2;
  }
}
@media (max-height: 500px) and (max-width: 999px) {
  .pane-heading {
    padding: 8px 16px;
  }
  .pane-intro {
    display: none;
  }
  .filters {
    padding-bottom: 8px;
  }
}
.brand,
.pane-heading a,
.dialog-body a,
.archive-main #status > a,
.archive footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Stała sygnatura projektu; własny wiersz, bez zasłaniania mapy. */
body.app {
  grid-template-rows: 72px minmax(0, 1fr) 48px;
}
.site-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.credit-note {
  color: var(--muted);
  font-size: 13px;
}
.powered-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.powered-brand > span {
  color: var(--muted);
  font-size: 12px;
}
.powered-brand svg {
  color: var(--green);
  transform: scaleX(-1);
}
.powered-brand strong {
  font-size: 21px;
  letter-spacing: -0.6px;
}
.powered-brand strong span {
  font-weight: 500;
  color: var(--fg2);
}
.powered-brand:hover strong {
  color: var(--green);
}
.archive footer .powered-brand {
  margin-left: 8px;
  vertical-align: middle;
}
@media (max-width: 999px) {
  body.app {
    grid-template-rows: 60px minmax(0, 1fr) 44px auto;
  }
  .site-credit {
    padding: 0 16px;
  }
  .credit-note {
    font-size: 12px;
  }
}
@media (max-height: 500px) and (max-width: 999px) {
  body.app {
    grid-template-rows: 52px minmax(0, 1fr) 44px auto;
  }
}

.source-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  padding: 2px;
  background: #fff;
  border-radius: 5px;
  flex: none;
}
.source-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg2);
}
.legend-heading {
  margin: 24px 0 14px;
}
.legend-grid {
  display: grid;
  gap: 12px;
}
.legend-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 36px;
}
.legend-item svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  color: var(--fg2);
}
.legend-line {
  height: 3px;
  width: 30px;
  background: var(--legend-color);
}
.legend-zone {
  width: 28px;
  height: 22px;
  border: 2px dashed var(--legend-color);
  background: color-mix(in srgb, var(--legend-color) 20%, transparent);
}
.legend-dot {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--legend-color);
}
.map-tools {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .recenter-label {
    display: none;
  }
  .map-tools #recenter {
    width: 44px;
    padding: 0;
    font-size: 22px;
  }
  .map-tools {
    gap: 6px;
  }
  .map-tools .zoom {
    gap: 4px;
  }
  .map-tools > button {
    padding: 8px;
  }
  .map-tools .zoom {
    margin-left: auto;
  }
}

/* Direct access to the official live radio player, including narrow phones. */
.radio-live { white-space: nowrap; gap: 7px; border-color: var(--green); }
.radio-live > span[aria-hidden] { color: var(--green); }
.settings-icon { display: none; }
@media (max-width: 600px) {
  .app .topbar { padding-inline: 12px; gap: 10px; }
  .app .brand > span { display: none; }
  .app .top-actions { gap: 6px; }
  .radio-live { padding-inline: 9px; font-size: 13px; }
  .settings-label { display: none; }
  .settings-icon { display: block; }
  .app .top-actions button[data-dialog="settings"] { width: 44px; padding: 11px; }
}

 .top-actions .header-layers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  min-height: 46px;
  padding: 10px 18px;
  background: #d9ff3f;
  color: #111820;
  border: 2px solid #eaff94;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 3px #d9ff3f26, 0 3px 12px #0005;
}
.top-actions .header-layers:hover { background: #edff99; border-color: #fff; }
.top-actions .header-layers:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; }
.layers-icon { display: block; width: 21px; height: 21px; }
.layers-label { display: inline; }
#sidebar-toggle { display: inline-flex; }
@media (min-width: 1000px) {
  body.sidebar-collapsed .workspace { grid-template-columns: minmax(0, 1fr); }
  body.sidebar-collapsed .sidebar { display: none; }
}
@media (max-width: 999px) { #sidebar-toggle { display: none; } }
@media (max-width: 600px) {
  .top-actions .header-layers { width: auto; padding: 8px 10px; gap: 6px; font-size: 14px; min-height: 44px; }
  .app .topbar { gap: 6px; padding-inline: 8px; }
  .app .brand strong { font-size: 24px; }
  .radio-live { font-size: 12px; padding-inline: 7px; }
}
.gnss-marker { width: 30px; height: 30px; min-height: 30px; border-radius: 50%; padding: 0; font-size: 13px; font-weight: 800; background: #18212b; color: #fff; border: 3px solid var(--station-color); box-shadow: 0 1px 5px #0008; }
.gnss-marker:hover { background: #304354; }

.posts-main { max-width: 1200px; margin-inline: auto; }
.post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-block: 24px; }
.post-card { border: 1px solid var(--line); padding: 22px; border-radius: 12px; background: var(--panel); overflow-wrap: anywhere; }
.post-card h2 { font-size: 20px; line-height: 1.45; margin-block: 12px; }
.post-card p { line-height: 1.6; }
.post-pagination { display: flex; justify-content: space-between; gap: 16px; margin-block: 24px; }
.post-detail { max-width: 850px; margin-block: 24px; overflow-wrap: anywhere; }
.post-detail h1 { font-size: clamp(24px,3vw,38px); line-height: 1.3; }
.post-notice { padding: 18px; background: var(--surface); border-left: 3px solid var(--orange); }
.post-meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin-block: 24px; }
.post-meta dt { color: var(--muted); }
.post-meta dd { margin: 0; }
.post-detail .fulltext,.post-versions { line-height: 1.7; }
.post-permalink { display: inline-block; padding-block: 8px; }
@media(max-width: 700px) { .post-grid { grid-template-columns: 1fr; } .post-meta { grid-template-columns: 1fr; gap: 6px; } .post-meta dd { margin-bottom: 12px; } }

.posts .topbar, .posts .top-actions { flex-wrap: wrap; }
@media(max-width: 600px) { .posts .top-actions .button { font-size: 13px; padding-inline: 10px; } }

.gnss-marker[data-local="true"] { width: 38px; height: 38px; min-height: 38px; font-size: 16px; border-width: 4px; z-index: 1; }
.gnss-city { position: absolute; top: calc(100% + 6px); left: -4px; padding: 3px 6px; border-radius: 5px; background: #18212b; color: #f0f4f8; font-size: 11px; line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: 0 1px 4px #0008; }
.map-note strong { color: var(--fg); }

.gnss-city { display: none; }
body.gnss-labels-visible .gnss-city { display: block; }

@media (max-width: 360px) { .radio-live .radio-city { display: none; } }

.system-link { min-height:44px; padding:0 8px; font-size:13px; white-space:nowrap; background:transparent; border:0; text-decoration:underline; text-underline-offset:4px; }
.system-version { padding:16px; border:1px solid var(--line); border-radius:12px; overflow-wrap:anywhere; }
.system-version p { margin:6px 0 0; }
.system-source { padding:16px 0; border-bottom:1px solid var(--line); }
.system-source > div { display:flex; gap:8px 16px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.system-source p { margin:6px 0 0; overflow-wrap:anywhere; }
.system-badge { font-size:12px; color:var(--muted); }
.system-source[data-state="ok"] .system-badge { color:var(--green); }
.system-source[data-state="error"] .system-badge { color:var(--red); }
.sidebar-handle, #sidebar-resize { display:none; }
@media (min-width:1000px) {
  .workspace { grid-template-columns:var(--sidebar-width, clamp(360px,29vw,480px)) minmax(0,1fr); }
  .sidebar { position:relative; min-width:0; overflow:visible; }
  .sidebar-handle { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 16px; flex-shrink:0; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
  .sidebar-handle button { min-height:36px; padding:4px 8px; border:0; background:transparent; }
  #sidebar-resize { display:block; position:absolute; top:0; bottom:0; right:-5px; width:10px; cursor:col-resize; z-index:8; touch-action:none; }
  #sidebar-resize::after { content:""; position:absolute; top:45%; height:56px; left:3px; width:4px; border-radius:4px; background:var(--muted); }
  #sidebar-resize:hover::after, #sidebar-resize:focus-visible::after { background:var(--green); }
  .resizing-sidebar { cursor:col-resize; user-select:none; }
  .resizing-sidebar #map-panel { pointer-events:none; }
  body:not(.sidebar-collapsed) #sidebar-toggle { display:none; }
}
