body, html, #map { height: 100%; margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
.status-panel {
  position: absolute;
  top: 78px;
  left: 14px;
  z-index: 2;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 92px);
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.status-panel::-webkit-scrollbar {
  display: none;
}
.stats-panel {
  position: absolute;
  top: 78px;
  right: 14px;
  z-index: 2;
  box-sizing: border-box;
  width: min(300px, calc(100vw - 28px));
  max-height: calc(100vh - 92px);
  overflow-x: hidden;
  overflow-y: auto;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.stats-panel.is-collapsed {
  width: min(230px, calc(100vw - 28px));
  max-height: 52px;
  overflow: hidden;
}
.stats-panel.is-collapsed .status-panel__body {
  display: none;
}
.stats-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(229, 231, 235, 0.72);
}
.stats-tab {
  min-width: 0;
  height: 31px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  color: #4b5563;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-tab:hover,
.stats-tab:focus-visible {
  color: #111827;
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}
.stats-tab.is-active {
  color: #ffffff;
  background: #1d4ed8;
  box-shadow: 0 2px 7px rgba(29, 78, 216, 0.24);
}
.stats-tab-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.stats-tab-panel[hidden] {
  display: none;
}
.mobile-panel-toggle {
  display: none;
}
.stats-panel-launcher {
  position: absolute;
  top: 78px;
  right: 14px;
  z-index: 2;
  display: none;
}
.now-banner {
  position: absolute;
  top: 14px;
  left: 388px;
  right: 328px;
  z-index: 2;
  min-height: 50px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #f9fafb;
  background: rgba(17, 24, 39, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.now-banner__label {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #ffffff;
  background: #b91c1c;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.now-banner__feed {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  overflow: hidden;
}
.app-menu {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 7px 8px 7px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.app-menu__button {
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.app-menu__button:hover,
.app-menu__button.is-active {
  background: #b91c1c;
}
.now-item {
  min-width: 210px;
  max-width: 320px;
  height: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.now-item:hover {
  background: rgba(255, 255, 255, 0.14);
}
.now-item:nth-child(n+4) {
  display: none;
}
.now-item__time {
  grid-row: 1 / 3;
  align-self: center;
  color: #fde68a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.now-item__main {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.now-item__sub {
  overflow: hidden;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.now-banner__empty {
  align-self: center;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 800;
}
.watch-alert {
  position: absolute;
  top: 78px;
  left: 50%;
  z-index: 3;
  width: min(760px, calc(100vw - 760px));
  min-width: 340px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon body"
    "actions actions";
  gap: 8px 10px;
  align-items: start;
  padding: 10px 12px;
  transform: translateX(-50%);
  color: #7f1d1d;
  background: #fef3c7;
  border: 2px solid #b91c1c;
  border-left-width: 8px;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(69, 10, 10, 0.28);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.watch-alert[hidden] {
  display: none;
}
.watch-alert__icon {
  grid-area: icon;
  margin-top: 2px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fef3c7;
  background: #991b1b;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}
.watch-alert__body {
  grid-area: body;
  min-width: 0;
}
.watch-alert__label {
  color: #991b1b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.watch-alert__type {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #7f1d1d;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watch-alert__details {
  margin-top: 3px;
  overflow: visible;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}
.watch-alert__button {
  min-height: 34px;
  padding: 0 11px;
  color: #ffffff;
  background: #991b1b;
  border: 2px solid #7f1d1d;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.watch-alert__actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.watch-alert__button {
  width: 100%;
}
.watch-alert__button--phone {
  background: #2563eb;
  border-color: #1d4ed8;
}
.watch-alert__button:hover,
.watch-alert__button:focus-visible {
  background: #7f1d1d;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}
.watch-alert__button--phone:hover,
.watch-alert__button--phone:focus-visible {
  background: #1d4ed8;
}
.watch-alert__button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.app-view {
  position: absolute;
  top: 78px;
  left: 50%;
  z-index: 4;
  display: none;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 108px);
  overflow: auto;
  transform: translateX(-50%);
  color: #111827;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.app-view.is-open {
  display: block;
}
.app-view__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}
.app-view__title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.app-view__body {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.app-view__body[hidden] {
  display: none;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th,
.data-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  color: #374151;
  background: #f3f4f6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.data-table td {
  color: #111827;
  font-weight: 700;
}
.database-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.database-filter {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 6px;
  color: #374151;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}
.database-filter.is-active {
  color: #ffffff;
  background: #991b1b;
  border-color: #991b1b;
}
.database-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.database-control {
  display: grid;
  gap: 4px;
}
.database-control__label {
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.database-select {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.observation-list {
  display: grid;
  gap: 8px;
}
.observation-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}
.observation-item:hover,
.observation-item:focus-visible {
  border-color: rgba(153, 27, 27, 0.38);
  background: #fff7ed;
  outline: none;
}
.observation-item__time {
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}
.observation-item__date {
  display: block;
  margin-top: 3px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
}
.observation-item__main {
  min-width: 0;
}
.observation-item__title {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.observation-item__sub {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}
.observation-item__meta {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f9fafb;
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.observation-item__label {
  color: #9ca3af;
}
.observation-item__label::after {
  content: ":";
}
.observation-item__status {
  color: #7f1d1d;
  background: #fee2e2;
}
.observation-item__freshness {
  color: #374151;
  background: #f3f4f6;
}
.observation-item__freshness--fresh {
  color: #065f46;
  background: #d1fae5;
}
.feedback-form {
  display: grid;
  gap: 9px;
}
.feedback-form__honeypot {
  display: none;
}
.feedback-form__input,
.feedback-form__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 9px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
}
.feedback-form__textarea {
  min-height: 110px;
  resize: vertical;
}
.feedback-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.share-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.share-link-row .feedback-form__input {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.feedback-form__recipient {
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}
.feedback-form__recipient a {
  color: #2563eb;
}
.about-list {
  display: grid;
  gap: 10px;
}
.about-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: rgba(249, 250, 251, 0.9);
}
.about-item__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}
.about-item__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
}
.about-steps {
  margin: 9px 0;
  padding-left: 22px;
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
}
.about-steps li + li {
  margin-top: 6px;
}
.about-item__text--note {
  padding: 8px 9px;
  color: #78350f;
  background: #fef3c7;
  border-left: 4px solid #d97706;
  border-radius: 4px;
  font-weight: 750;
}
.about-item__text + .about-item__text,
.about-item__text + .feedback-form {
  margin-top: 8px;
}
.about-link {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}
.about-link:hover {
  text-decoration: underline;
}
.about-item--lightning {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.9));
}
.about-lightning-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 10px;
  text-decoration: none;
}
html[data-map-theme="dark"] .about-item--lightning {
  border-color: rgba(96, 165, 250, 0.45);
  background: linear-gradient(135deg, rgba(20, 42, 75, 0.95), rgba(31, 41, 55, 0.9));
}
.noscript-summary {
  position: relative;
  z-index: 5;
  max-width: 760px;
  margin: 24px auto;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.noscript-summary h1 {
  margin: 0 0 8px;
  font-size: 24px;
}
.noscript-summary p {
  margin: 8px 0;
  line-height: 1.45;
}
.noscript-summary a {
  color: #1d4ed8;
  font-weight: 700;
}
.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(130px, auto) auto;
  gap: 8px;
}
.admin-note {
  min-width: 180px;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  padding: 6px 7px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}
.admin-status-select {
  height: 30px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.primary-button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}
.status-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}
.status-panel__title {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.status-panel.has-connection-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.28), 0 12px 34px rgba(0, 0, 0, 0.22);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
}
.icon-button:hover {
  background: #f3f4f6;
}
.icon-button[aria-pressed="false"] {
  color: #6b7280;
  background: #f9fafb;
}
.theme-toggle {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.theme-toggle[aria-pressed="false"] {
  color: #111827;
  background: #ffffff;
}
.theme-toggle[aria-pressed="true"] {
  color: #facc15;
  background: #111827;
  border-color: rgba(17, 24, 39, 0.7);
}
.status-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 0 1 auto;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 7px;
  background: #f9fafb;
}
.language-toggle__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  gap: 4px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  color: #4b5563;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}
.language-toggle__button.is-active {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.16);
}
.language-toggle__flag {
  width: 14px;
  height: 10px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 2px;
  flex: 0 0 auto;
}
.language-toggle__flag--fi {
  background:
    linear-gradient(90deg, transparent 0 30%, #2563eb 30% 46%, transparent 46%),
    linear-gradient(180deg, transparent 0 35%, #2563eb 35% 58%, transparent 58%),
    #ffffff;
}
.language-toggle__flag--en {
  background:
    linear-gradient(90deg, transparent 0 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(180deg, transparent 0 38%, #c8102e 38% 62%, transparent 62%),
    linear-gradient(90deg, transparent 0 34%, #ffffff 34% 66%, transparent 66%),
    linear-gradient(180deg, transparent 0 28%, #ffffff 28% 72%, transparent 72%),
    linear-gradient(29deg, transparent 0 43%, #c8102e 43% 50%, #ffffff 50% 57%, transparent 57%),
    linear-gradient(151deg, transparent 0 43%, #c8102e 43% 50%, #ffffff 50% 57%, transparent 57%),
    #012169;
}
.status-panel__body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px 14px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.metric {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  background: #f9fafb;
}
.metric__label {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
}
.metric__value {
  margin-top: 3px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  background: #f9fafb;
}
.stat__label {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
}
.stat__value {
  margin-top: 4px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.threat-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.threat-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  background: #f9fafb;
}
.threat-status-card__mark {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.threat-status-card--active .threat-status-card__mark {
  color: #ef4444;
}
.threat-status-card--inactive .threat-status-card__mark {
  color: #eab308;
  text-shadow: 0 0 1px #713f12;
}
.threat-status-card__label {
  min-width: 0;
  color: #6b7280;
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.threat-status-card__value {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  color: #374151;
  font-size: 12px;
}
.stat-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.stat-row__label {
  color: #6b7280;
  font-weight: 800;
}
.stat-row__value {
  font-weight: 900;
  text-align: right;
}
.chart {
  display: grid;
  gap: 7px;
}
.threat-summary {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  background: #f9fafb;
}
.threat-summary__main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.threat-summary__label,
.threat-summary__rows span,
.threat-summary__types span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.threat-summary__value {
  color: #111827;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}
.threat-summary__types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.threat-summary__types div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
}
.threat-summary__types strong {
  color: #111827;
  font-size: 18px;
  line-height: 1;
}
.threat-summary__rows {
  display: grid;
  gap: 6px;
}
.threat-summary__rows div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  align-items: baseline;
  gap: 8px;
}
.threat-summary__rows strong {
  min-width: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}
.event-feed {
  display: grid;
  gap: 6px;
}
.event-feed__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "time main"
    "time sub";
  gap: 2px 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 6px;
  background: #f9fafb;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.event-feed__item:hover,
.event-feed__item:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
  outline: none;
}
.event-feed__item:disabled {
  cursor: default;
}
.event-feed__time {
  grid-area: time;
  align-self: center;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
}
.event-feed__main {
  grid-area: main;
  min-width: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.event-feed__sub {
  grid-area: sub;
  min-width: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.panel-section__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.panel-link-button {
  min-height: 26px;
  padding: 0 8px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.panel-link-button:hover,
.panel-link-button:focus-visible {
  background: #dbeafe;
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}
.trend-range-select {
  width: auto;
  min-width: 104px;
  max-width: 134px;
  padding: 5px 7px;
  font-size: 11px;
}
.line-chart {
  min-height: 96px;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  background: #f9fafb;
}
.line-chart svg {
  display: block;
  width: 100%;
  height: 112px;
}
.line-chart__grid {
  stroke: rgba(107, 114, 128, 0.18);
  stroke-width: 1;
}
.line-chart__area {
  fill: rgba(250, 204, 21, 0.22);
}
.line-chart__line {
  fill: none;
  stroke: #facc15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}
.line-chart__point {
  fill: #dc2626;
  stroke: #111827;
  stroke-width: 2;
}
.line-chart__label,
.line-chart__value {
  color: #6b7280;
  fill: #6b7280;
  font-size: 10px;
  font-weight: 800;
}
.line-chart__value {
  fill: #111827;
  font-size: 11px;
  font-weight: 900;
}
.line-chart__empty {
  display: grid;
  min-height: 96px;
  place-items: center;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}
.live-insights {
  display: grid;
  gap: 6px;
}
.live-insights__item {
  padding: 7px 8px;
  color: #374151;
  background: #f9fafb;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
.severity-chart {
  display: grid;
  gap: 7px;
}
.severity-bar {
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}
.severity-bar__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.severity-bar__fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #dc2626;
}
.severity-bar__fill--medium {
  background: #d97706;
}
.severity-bar__fill--low {
  background: #059669;
}
.panel-section {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.panel-section__title {
  margin: 0;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.panel-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.panel-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  background: #ffffff;
}
.panel-item__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
}
.panel-item__main > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.severity-pill {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 3px 7px;
  border-radius: 999px;
  text-align: center;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.severity-pill--high {
  color: #991b1b;
  background: #fee2e2;
}
.severity-pill--medium {
  color: #92400e;
  background: #fef3c7;
}
.severity-pill--low {
  color: #065f46;
  background: #d1fae5;
}
.severity-pill--unknown {
  color: #4b5563;
  background: #e5e7eb;
}
.panel-item__sub {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}
.panel-item__note {
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.api-status-list {
  display: grid;
  gap: 4px;
}
.api-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 7px;
  color: #374151;
  font-size: 12px;
  line-height: 1.3;
}
.api-status__dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: #9ca3af;
}
.api-status--ok .api-status__dot {
  background: #059669;
}
.api-status--error .api-status__dot {
  background: #dc2626;
}
.api-status--quiet .api-status__dot {
  background: #ca8a04;
}
.api-status--stale .api-status__dot {
  background: #d97706;
}
.api-status__main {
  font-weight: 800;
}
.api-status__sub {
  grid-column: 2;
  color: #6b7280;
  overflow-wrap: anywhere;
}
.archive-snapshot {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 7px;
  background: #fffbeb;
}
.archive-snapshot__title {
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}
.archive-snapshot__status {
  color: #78350f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.archive-snapshot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.archive-snapshot__button {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #d97706;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}
.archive-snapshot__button--clear {
  color: #92400e;
  background: #fef3c7;
}
.archive-snapshot__button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.panel-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.source-summary {
  display: grid;
  gap: 8px;
}
.source-summary__button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  white-space: nowrap;
}
.source-manager {
  position: absolute;
  inset: 0;
  z-index: 6;
}
.source-manager[hidden] {
  display: none;
}
.source-manager__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
  cursor: pointer;
}
.source-manager__sheet {
  position: absolute;
  top: 78px;
  left: 388px;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 402px));
  max-height: calc(100vh - 92px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  color: #111827;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.source-manager__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.source-manager__title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.source-manager__body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.source-manager__summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.source-manager__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.source-status-list--manager {
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
}
.source-status-list {
  display: grid;
  gap: 5px;
}
.source-status {
  display: grid;
  grid-template-columns: 18px 22px minmax(0, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #374151;
  font-size: 12px;
}
.source-status.is-off {
  opacity: 0.62;
}
.source-status__toggle {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #2563eb;
}
.source-status__toggle:disabled {
  cursor: not-allowed;
}
.source-status__country {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  border-radius: 5px;
  color: #111827;
  background: #e5e7eb;
  font-size: 10px;
  font-weight: 900;
}
.source-status__name {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-status__pill {
  min-width: 0;
  padding: 3px 6px;
  border-radius: 999px;
  color: #374151;
  background: #e5e7eb;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.source-status--verified .source-status__pill {
  color: #065f46;
  background: #d1fae5;
}
.source-status--experimental .source-status__pill {
  color: #92400e;
  background: #fef3c7;
}
.source-status--disabled .source-status__pill {
  color: #6b7280;
  background: #f3f4f6;
}
.source-status__freshness {
  grid-column: 3 / 5;
  min-width: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-status__freshness--ok {
  color: #047857;
}
.source-status__freshness--stale {
  color: #b45309;
}
.source-status__freshness--error {
  color: #b91c1c;
}
.source-status__note {
  grid-column: 3 / 5;
  min-width: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-status__review {
  grid-column: 3 / 5;
  min-width: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-status__review--ok {
  color: #4b5563;
}
.source-status__review--overdue,
.source-status__review--unknown {
  color: #b45309;
}
.place-search {
  display: grid;
  gap: 7px;
}
.place-search__form {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 6px;
}
.place-search__input {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
}
.place-search__input:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, 0.18);
}
.place-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
}
.place-search__button:disabled {
  color: #9ca3af;
  background: #f3f4f6;
  cursor: wait;
}
.place-search__results {
  display: grid;
  gap: 5px;
}
.place-search__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}
.place-search__result {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.place-search__result:hover {
  background: #f9fafb;
}
.place-search__result-main {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-search__result-sub {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}
.watch-area {
  display: grid;
  gap: 8px;
}
.watch-area__controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}
.watch-area__radius {
  min-width: 0;
}
.watch-area__button {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}
.watch-area__button--clear {
  color: #374151;
  background: #e5e7eb;
}
.watch-area__status {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}
.watch-area__notifications {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}
.watch-area__button--notifications {
  border: 1px solid rgba(37, 99, 235, 0.25);
}
.watch-area__button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.watch-area__notification-status {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.3;
}
.zone-filter {
  display: none;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(71, 85, 105, 0.22);
  border-radius: 6px;
  background: #f8fafc;
}
.zone-filter.is-active {
  display: grid;
}
.zone-filter__main {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.zone-filter__sub {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}
.zone-filter__clear {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.zone-filter__clear:hover {
  background: #f1f5f9;
}
.empty-state {
  color: #6b7280;
  font-size: 12px;
}
.map-legend {
  display: grid;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
}
.map-legend__title {
  margin: 0;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.map-legend__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}
.map-legend__item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.map-legend__swatch {
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: rgba(203, 213, 225, 0.32);
  flex: 0 0 auto;
}
.map-legend__swatch--aircraft {
  height: 3px;
  border: 0;
  background: #2563eb;
}
.map-legend__swatch--fi {
  color: #4ade80;
}
.map-legend__swatch--de {
  color: #3b82f6;
}
.map-legend__swatch--ee {
  color: #60a5fa;
}
.map-legend__swatch--fr {
  color: #f472b6;
}
.map-legend__swatch--pl {
  color: #8b5cf6;
  background: rgba(221, 214, 254, 0.45);
}
.map-legend__swatch--lv {
  color: #f87171;
}
.map-legend__swatch--se {
  color: #38bdf8;
}
.map-legend__swatch--at {
  color: #14b8a6;
  background: rgba(204, 251, 241, 0.4);
}
.map-legend__swatch--ua {
  color: #fbbf24;
}
.map-legend__swatch--threat {
  border-color: #991b1b;
  background: #ef4444;
}
.map-legend__swatch--prediction {
  height: 3px;
  border: 0;
  background: #facc15;
}
.map-legend__swatch--archive {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.22);
}
.map-legend__swatch--selected {
  border-color: #111827;
  background: rgba(250, 204, 21, 0.3);
}
html[data-map-theme="dark"] .status-panel,
html[data-map-theme="dark"] .stats-panel,
html[data-map-theme="dark"] .app-view,
html[data-map-theme="dark"] .map-legend,
html[data-map-theme="dark"] .source-manager__sheet {
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
html[data-map-theme="dark"] .status-panel {
  scrollbar-color: #4b5563 rgba(15, 23, 42, 0.92);
}
html[data-map-theme="dark"] .status-panel::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.92);
}
html[data-map-theme="dark"] .status-panel::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-color: rgba(15, 23, 42, 0.92);
}
html[data-map-theme="dark"] .status-panel::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
html[data-map-theme="dark"] .status-panel__header,
html[data-map-theme="dark"] .app-view__header,
html[data-map-theme="dark"] .source-manager__header,
html[data-map-theme="dark"] .source-manager__summary {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
html[data-map-theme="dark"] .stats-tabs {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-map-theme="dark"] .stats-tab {
  color: #9ca3af;
}
html[data-map-theme="dark"] .stats-tab:hover,
html[data-map-theme="dark"] .stats-tab:focus-visible {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.08);
}
html[data-map-theme="dark"] .stats-tab.is-active {
  color: #ffffff;
  background: #2563eb;
}
html[data-map-theme="dark"] .status-panel__title,
html[data-map-theme="dark"] .app-view__title,
html[data-map-theme="dark"] .source-manager__title,
html[data-map-theme="dark"] .about-item__title,
html[data-map-theme="dark"] .observation-item__title,
html[data-map-theme="dark"] .metric__value,
html[data-map-theme="dark"] .stat__value,
html[data-map-theme="dark"] .threat-status-card__value,
html[data-map-theme="dark"] .line-chart__value,
html[data-map-theme="dark"] .threat-summary__value,
html[data-map-theme="dark"] .threat-summary__types strong,
html[data-map-theme="dark"] .threat-summary__rows strong,
html[data-map-theme="dark"] .event-feed__main {
  color: #f9fafb;
  fill: #f9fafb;
}
html[data-map-theme="dark"] .panel-section__title,
html[data-map-theme="dark"] .map-legend__title,
html[data-map-theme="dark"] .data-table th,
html[data-map-theme="dark"] .database-control__label {
  color: #d1d5db;
}
html[data-map-theme="dark"] .panel-item,
html[data-map-theme="dark"] .metric,
html[data-map-theme="dark"] .stat,
html[data-map-theme="dark"] .threat-status-card,
html[data-map-theme="dark"] .threat-summary,
html[data-map-theme="dark"] .threat-summary__types div,
html[data-map-theme="dark"] .live-insights__item,
html[data-map-theme="dark"] .event-feed__item,
html[data-map-theme="dark"] .line-chart,
html[data-map-theme="dark"] .observation-item,
html[data-map-theme="dark"] .about-item,
html[data-map-theme="dark"] .archive-snapshot,
html[data-map-theme="dark"] .zone-filter,
html[data-map-theme="dark"] .place-search__result {
  background: rgba(31, 41, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-map-theme="dark"] .panel-item__sub,
html[data-map-theme="dark"] .about-item__text,
html[data-map-theme="dark"] .about-steps,
html[data-map-theme="dark"] .observation-item__sub,
html[data-map-theme="dark"] .stat-row,
html[data-map-theme="dark"] .stat-row__label,
html[data-map-theme="dark"] .metric__label,
html[data-map-theme="dark"] .stat__label,
html[data-map-theme="dark"] .threat-status-card__label,
html[data-map-theme="dark"] .line-chart__label,
html[data-map-theme="dark"] .line-chart__empty,
html[data-map-theme="dark"] .threat-summary__label,
html[data-map-theme="dark"] .threat-summary__rows span,
html[data-map-theme="dark"] .threat-summary__types span,
html[data-map-theme="dark"] .event-feed__time,
html[data-map-theme="dark"] .event-feed__sub,
html[data-map-theme="dark"] .api-status__sub,
html[data-map-theme="dark"] .empty-state,
html[data-map-theme="dark"] .place-search__result-sub,
html[data-map-theme="dark"] .watch-area__status,
html[data-map-theme="dark"] .source-status__review,
html[data-map-theme="dark"] .zone-filter__sub,
html[data-map-theme="dark"] .archive-snapshot__status {
  color: #9ca3af;
  fill: #9ca3af;
}
html[data-map-theme="dark"] .source-status__review--overdue,
html[data-map-theme="dark"] .source-status__review--unknown {
  color: #fbbf24;
}
html[data-map-theme="dark"] .about-item__text--note {
  color: #fef3c7;
  background: #78350f;
  border-left-color: #f59e0b;
}
html[data-map-theme="dark"] .icon-button,
html[data-map-theme="dark"] .database-filter,
html[data-map-theme="dark"] .database-select,
html[data-map-theme="dark"] .feedback-form__input,
html[data-map-theme="dark"] .feedback-form__textarea,
html[data-map-theme="dark"] .admin-note,
html[data-map-theme="dark"] .admin-status-select,
html[data-map-theme="dark"] .place-search__input,
html[data-map-theme="dark"] .place-search__button,
html[data-map-theme="dark"] .watch-area__button,
html[data-map-theme="dark"] .archive-snapshot__button,
html[data-map-theme="dark"] .zone-filter__clear {
  color: #e5e7eb;
  background: #111827;
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-map-theme="dark"] .icon-button:hover,
html[data-map-theme="dark"] .database-filter:hover,
html[data-map-theme="dark"] .place-search__button:hover,
html[data-map-theme="dark"] .watch-area__button:hover,
html[data-map-theme="dark"] .archive-snapshot__button:hover,
html[data-map-theme="dark"] .zone-filter__clear:hover,
html[data-map-theme="dark"] .place-search__result:hover,
html[data-map-theme="dark"] .event-feed__item:hover,
html[data-map-theme="dark"] .event-feed__item:focus-visible,
html[data-map-theme="dark"] .observation-item:hover,
html[data-map-theme="dark"] .observation-item:focus-visible {
  background: #1f2937;
}
html[data-map-theme="dark"] .event-feed__item:hover,
html[data-map-theme="dark"] .event-feed__item:focus-visible {
  border-color: rgba(96, 165, 250, 0.45);
}
html[data-map-theme="dark"] .theme-toggle[aria-pressed="true"] {
  color: #facc15;
  background: #030712;
}
html[data-map-theme="dark"] .theme-toggle[aria-pressed="false"] {
  color: #e5e7eb;
  background: #111827;
}
html[data-map-theme="dark"] .icon-button[aria-pressed="false"] {
  color: #9ca3af;
  background: #111827;
}
html[data-map-theme="dark"] .language-toggle {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-map-theme="dark"] .language-toggle__button {
  color: #d1d5db;
}
html[data-map-theme="dark"] .language-toggle__button.is-active {
  color: #f9fafb;
  background: #374151;
  box-shadow: none;
}
html[data-map-theme="dark"] .data-table th {
  background: #1f2937;
}
html[data-map-theme="dark"] .data-table td {
  color: #e5e7eb;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
html[data-map-theme="dark"] .observation-item__meta,
html[data-map-theme="dark"] .severity-pill,
html[data-map-theme="dark"] .severity-bar__track {
  color: #d1d5db;
  background: rgba(17, 24, 39, 0.78);
}
html[data-map-theme="dark"] .stat-row {
  border-top-color: rgba(255, 255, 255, 0.1);
}
html[data-map-theme="dark"] .line-chart__grid {
  stroke: rgba(209, 213, 219, 0.16);
}
html[data-map-theme="dark"] .panel-link-button {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.24);
}
@media (max-width: 1280px) {
  .now-banner {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .status-panel,
  .stats-panel {
    top: 78px;
  }
  .app-view {
    top: 78px;
  }
  .watch-alert {
    top: 64px;
    width: min(720px, calc(100vw - 20px));
    min-width: 0;
  }
  .status-panel > .status-panel__header .status-pill {
    display: none;
  }
}
@media (min-width: 641px) and (max-width: 1280px) {
  .now-banner {
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 44px;
  }
  .now-banner__feed {
    display: flex;
    max-width: none;
    padding: 5px 6px;
    overflow: hidden;
  }
  .now-banner__label {
    padding: 0 12px;
    font-size: 12px;
  }
  .now-item {
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
    height: 32px;
    padding: 0 8px;
  }
  .now-item:nth-child(n+3) {
    display: none;
  }
  .now-item__main {
    font-size: 12px;
  }
  .now-item__sub,
  .now-item__time {
    font-size: 10px;
  }
  .app-menu {
    min-width: max-content;
    padding: 5px 6px 5px 0;
  }
  .app-menu__button {
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
  .watch-alert {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 10px;
  }
  .status-panel {
    top: 64px;
    left: 12px;
    right: auto;
    bottom: auto;
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 76px);
  }
  .status-panel.is-mobile-collapsed {
    max-height: 48px;
    overflow: hidden;
  }
  .status-panel__header {
    min-height: 34px;
    padding: 7px 10px;
  }
  .status-panel__title {
    font-size: 14px;
  }
  .status-actions {
    gap: 5px;
  }
  .icon-button {
    width: 30px;
    height: 30px;
  }
  .status-panel.is-mobile-collapsed .status-panel__body {
    display: none;
  }
  .mobile-panel-toggle {
    display: inline-flex;
  }
  .stats-panel {
    display: none;
    top: 64px;
    right: 12px;
    left: auto;
    width: min(300px, calc(100vw - 24px));
    max-height: calc(100vh - 76px);
  }
  .stats-panel.is-overlay-open {
    display: block;
  }
  .stats-panel-launcher {
    top: 64px;
    right: 12px;
    display: inline-flex;
  }
  .stats-panel-launcher[hidden] {
    display: none !important;
  }
  .source-manager__sheet {
    top: 64px;
    left: 12px;
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - 76px);
  }
  .app-view {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 104px);
  }
}
@media (max-width: 640px) {
  body {
    overflow: hidden;
  }
  .now-banner {
    top: 8px;
    left: 8px;
    right: auto;
    width: auto;
    max-width: calc(100vw - 16px);
    min-height: 42px;
    align-items: center;
  }
  .now-banner__feed {
    display: none;
  }
  .app-menu {
    flex: 0 0 auto;
    justify-content: flex-end;
    border-left: 0;
    padding: 5px 6px 5px 8px;
    overflow-x: auto;
  }
  .app-menu__button {
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }
  .app-view {
    top: 58px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 76px);
  }
  .watch-alert {
    top: 56px;
    left: 8px;
    right: 8px;
    width: auto;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-areas:
      "icon body"
      "actions actions";
    gap: 7px;
    align-items: center;
    padding: 7px 8px;
    border-width: 1px;
    border-left-width: 5px;
    border-radius: 7px;
    transform: none;
  }
  .watch-alert__icon {
    grid-area: icon;
    width: 24px;
    height: 24px;
    font-size: 17px;
  }
  .watch-alert__body {
    grid-area: body;
  }
  .watch-alert__label {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .watch-alert__type {
    margin-top: 1px;
    font-size: 13px;
  }
  .watch-alert__details {
    margin-top: 1px;
    font-size: 10px;
  }
  .watch-alert__button {
    width: 100%;
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }
  .watch-alert__actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .watch-alert__button--phone {
    overflow: hidden;
    padding: 0 7px;
    text-overflow: ellipsis;
  }
  .now-banner__label {
    padding: 0 9px;
    font-size: 11px;
  }
  .now-item {
    min-width: 190px;
  }
  .status-panel {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    max-height: min(68vh, 560px);
    border-radius: 8px;
  }
  .status-panel.is-mobile-collapsed {
    max-height: 46px;
    overflow: hidden;
  }
  .status-panel.is-mobile-collapsed .status-panel__body {
    display: none;
  }
  .status-panel__header {
    min-height: 32px;
    padding: 7px 9px;
  }
  .status-panel__title {
    font-size: 13px;
  }
  .status-actions {
    gap: 5px;
  }
  .language-toggle {
    display: none;
  }
  .status-pill {
    min-height: 24px;
    padding: 0 7px;
    font-size: 11px;
  }
  .icon-button {
    width: 30px;
    height: 30px;
  }
  .mobile-panel-toggle {
    display: inline-flex;
  }
  .stats-panel {
    display: none;
    top: 58px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: min(320px, calc(100vw - 16px));
    max-height: min(68vh, 560px);
  }
  .stats-panel.is-overlay-open {
    display: block;
  }
  .stats-panel-launcher {
    top: 58px;
    right: 8px;
    display: inline-flex;
  }
  .stats-panel-launcher[hidden] {
    display: none !important;
  }
  .source-manager__sheet {
    top: 58px;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: none;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.18);
  }
  .source-manager__header {
    min-height: 42px;
    padding: 10px;
  }
  .source-manager__summary {
    padding: 10px;
  }
  .source-manager__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .source-status-list--manager {
    padding: 10px;
  }
  .source-status {
    grid-template-columns: 18px 22px minmax(0, 1fr);
  }
  .source-status__pill,
  .source-status__freshness {
    grid-column: 3 / 4;
  }
  .metric-grid,
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .panel-section {
    gap: 6px;
  }
  .place-search__meta {
    grid-template-columns: 1fr;
  }
  .place-search__meta .status-pill {
    justify-self: start;
  }
  .watch-area__controls {
    grid-template-columns: 1fr 86px;
    gap: 7px;
  }
  .watch-area__radius {
    grid-column: 1 / -1;
  }
  .watch-area__button {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
  }
  .watch-area__notifications {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .watch-area__button--notifications {
    width: 100%;
  }
  .watch-area__notification-status {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 430px), (max-height: 520px) {
  .now-banner {
    top: 6px;
    left: 6px;
    right: 6px;
    width: auto;
    max-width: none;
    min-height: 34px;
    border-radius: 7px;
  }
  .now-banner__label,
  .now-banner__feed {
    display: none;
  }
  .app-menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 4px;
    padding: 4px;
    overflow: hidden;
  }
  .app-menu__button {
    height: 26px;
    min-width: 0;
    padding: 0 4px;
    border-radius: 5px;
    font-size: 10px;
  }
  .app-view {
    top: 46px;
    width: calc(100vw - 12px);
    max-height: calc(100vh - 58px);
  }
  .watch-alert {
    top: 44px;
    left: 6px;
    right: 6px;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 5px;
    padding: 5px 6px;
    border-left-width: 4px;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(69, 10, 10, 0.22);
  }
  .watch-alert__icon {
    width: 18px;
    height: 18px;
    font-size: 13px;
  }
  .watch-alert__label {
    font-size: 8px;
    letter-spacing: 0.04em;
  }
  .watch-alert__type {
    font-size: 11px;
    line-height: 1.1;
  }
  .watch-alert__details {
    font-size: 9px;
    line-height: 1.1;
  }
  .watch-alert__button {
    min-height: 24px;
    padding: 0 6px;
    border-width: 1px;
    border-radius: 5px;
    font-size: 10px;
  }
  .watch-alert__actions {
    gap: 5px;
  }
  .status-panel {
    left: 6px;
    right: 6px;
    bottom: max(6px, env(safe-area-inset-bottom));
    width: calc(100vw - 12px);
    max-height: min(54vh, 420px);
    border-radius: 7px;
  }
  .status-panel.is-mobile-collapsed {
    max-height: 36px;
  }
  .status-panel__header {
    min-height: 28px;
    padding: 5px 7px;
  }
  .status-panel__title {
    font-size: 11px;
  }
  .status-panel__body {
    gap: 8px;
    padding: 8px;
  }
  .status-actions {
    gap: 4px;
  }
  .icon-button {
    width: 26px;
    height: 26px;
    border-radius: 5px;
  }
  .stats-panel-launcher {
    top: 46px;
    right: 6px;
  }
  .metric-grid,
  .stat-grid {
    gap: 5px;
  }
  .metric,
  .stat,
  .panel-item {
    padding: 6px;
    border-radius: 5px;
  }
  .metric__label,
  .panel-section__title {
    font-size: 10px;
  }
  .metric__value {
    font-size: 14px;
  }
  .place-search__form {
    grid-template-columns: 1fr 34px;
  }
  .place-search__input {
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
  .place-search__button {
    width: 34px;
    height: 34px;
  }
  .watch-area__controls {
    grid-template-columns: 1fr 72px;
    gap: 5px;
  }
  .watch-area__button {
    min-height: 28px;
    font-size: 11px;
  }
}
@media (max-height: 520px) {
  .now-banner {
    top: 4px;
    left: 6px;
    right: 6px;
  }
  .watch-alert {
    top: 42px;
    grid-template-columns: 18px minmax(0, 1fr) minmax(130px, 0.45fr);
    grid-template-areas: "icon body actions";
    align-items: center;
  }
  .watch-alert__details {
    display: none;
  }
  .watch-alert__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .status-panel {
    max-height: 36px;
    overflow: hidden;
  }
  .status-panel__body {
    display: none;
  }
}
@media (min-width: 1101px) {
  .mobile-panel-toggle {
    display: inline-flex;
  }
  .status-panel.is-desktop-compact {
    width: 50px;
    max-height: calc(100vh - 92px);
    overflow: visible;
  }
  .status-panel.is-desktop-compact .status-panel__header {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
    border-bottom: 0;
  }
  .status-panel.is-desktop-compact .status-panel__title,
  .status-panel.is-desktop-compact .status-panel__body,
  .status-panel.is-desktop-compact .language-toggle,
  .status-panel.is-desktop-compact .status-pill {
    display: none;
  }
  .status-panel.is-desktop-compact .status-actions {
    flex-direction: column;
    gap: 8px;
  }
  .status-panel.is-desktop-compact .icon-button {
    width: 32px;
    height: 32px;
  }
  .stats-panel.is-collapsed {
    width: 50px;
    max-height: calc(100vh - 92px);
    overflow: visible;
  }
  .stats-panel.is-collapsed .status-panel__header {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
    border-bottom: 0;
  }
  .stats-panel.is-collapsed .status-panel__title,
  .stats-panel.is-collapsed .status-panel__body {
    display: none;
  }
  .stats-panel.is-collapsed .panel-header-actions {
    flex-direction: column;
    gap: 8px;
  }
  .stats-panel.is-collapsed .icon-button {
    width: 32px;
    height: 32px;
  }
}
.maplibregl-popup-content {
  padding: 0;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.aircraft-tooltip {
  min-width: 190px;
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 6px;
  overflow: hidden;
}
.aircraft-tooltip__header {
  padding: 9px 11px 7px;
  background: #b91c1c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.aircraft-tooltip__body {
  display: grid;
  gap: 5px;
  padding: 9px 11px 10px;
  font-size: 13px;
  line-height: 1.35;
}
.aircraft-tooltip__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.aircraft-tooltip__label {
  color: #6b7280;
  font-weight: 700;
}
.aircraft-tooltip__value {
  color: #111827;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  text-align: right;
}
.aircraft-tooltip__value--note {
  max-width: 190px;
  color: #92400e;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.25;
  white-space: normal;
}
.drone-alert-tooltip .aircraft-tooltip__header {
  background: #7c2d12;
}
.drone-geozone-tooltip .aircraft-tooltip__header {
  background: #374151;
}
.air-threat-tooltip .aircraft-tooltip__header {
  background: #991b1b;
}
html[data-map-theme="dark"] .maplibregl-popup-content {
  background: transparent;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
html[data-map-theme="dark"] .maplibregl-popup-tip {
  border-top-color: rgba(17, 24, 39, 0.96);
  border-bottom-color: rgba(17, 24, 39, 0.96);
}
html[data-map-theme="dark"] .aircraft-tooltip {
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-map-theme="dark"] .aircraft-tooltip__body {
  background: rgba(17, 24, 39, 0.96);
}
html[data-map-theme="dark"] .aircraft-tooltip__label {
  color: #9ca3af;
}
html[data-map-theme="dark"] .aircraft-tooltip__value {
  color: #f9fafb;
}
html[data-map-theme="dark"] .aircraft-tooltip__value--note {
  color: #fbbf24;
}
html[data-map-theme="dark"] .drone-geozone-tooltip .aircraft-tooltip__header {
  background: #1f2937;
}
@media (max-width: 1280px) {
  .maplibregl-popup {
    max-width: calc(100vw - 24px) !important;
  }
  .maplibregl-popup-content {
    max-width: calc(100vw - 24px);
  }
  .aircraft-tooltip {
    min-width: 0;
    width: min(300px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
  .aircraft-tooltip__header {
    padding: 8px 10px 7px;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .aircraft-tooltip__body {
    max-height: min(46vh, 320px);
    overflow: auto;
    padding: 8px 10px 9px;
    font-size: 12px;
  }
  .aircraft-tooltip__row {
    gap: 8px;
  }
  .aircraft-tooltip__label {
    flex: 0 0 auto;
    max-width: 45%;
  }
  .aircraft-tooltip__value {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    white-space: normal;
  }
  .aircraft-tooltip__value--note {
    max-width: 100%;
  }
}
