* {
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  background: #20334d;
  color: #f7f9ff;
  font-family: "Segoe UI", Arial, sans-serif;
}
:root {
  --table-row-odd: rgba(0, 0, 0, 0.14);
  --table-row-even: rgba(0, 0, 0, 0.35);
}
#mapa {
  height: 100vh;
  filter: saturate(1.1) brightness(1.15);
  background: #20334d;
}
body[data-map-style="dark"] .leaflet-tile {
  filter: none;
}
body[data-map-style="light"] .leaflet-tile {
  filter: none;
}
body[data-map-style="satellite"] .leaflet-tile,
body[data-map-style="satellite-labels"] .leaflet-tile,
body[data-map-style="satellite-blue-marble-relief"] .leaflet-tile,
body[data-map-style="satellite-blue-marble-bathy"] .leaflet-tile,
body[data-map-style="satellite-modis-terra"] .leaflet-tile,
body[data-map-style="satellite-modis-aqua"] .leaflet-tile,
body[data-map-style="satellite-viirs-snpp"] .leaflet-tile,
body[data-map-style="satellite-viirs-noaa20"] .leaflet-tile,
body[data-map-style="satellite-viirs-noaa21"] .leaflet-tile {
  filter: brightness(1.05) saturate(1.1);
}
body[data-map-style="terrain"] .leaflet-tile {
  filter: none;
}
input, select, button, textarea {
  background: #0f1a2a;
  color: #e6edf7;
  border: 1px solid #1f2c45;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3a5a8f;
  background: #111a2e;
}
button {
  cursor: pointer;
  transition: all 0.2s;
}
button:hover {
  background: #1f2c45;
  border-color: #3a5a8f;
}
a {
  color: #64b5f6;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #1b1f2b;
  color: #f5f7ff;
  width: max-content;
  min-width: 280px;
  max-width: 90vw;
}
.leaflet-popup-content {
  margin: 10px 12px;
  width: max-content;
  max-width: 90vw;
}
.leaflet-popup-content iframe,
.leaflet-popup-content embed,
.leaflet-popup-content video {
  max-width: 100%;
}
.popup-table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  color: #f5f7ff;
  font-size: 13px;
}
.popup-table tr:nth-child(even) {
  background: var(--table-row-even);
}
.popup-table tr:nth-child(odd) {
  background: var(--table-row-odd);
}
.popup-table th {
  text-align: left;
  padding-bottom: 6px;
  font-size: 14px;
}
.popup-table td {
  padding: 3px 4px;
  vertical-align: top;
}
.popup-label {
  font-weight: 600;
  opacity: 0.85;
  width: 80px;
}
.leaflet-popup-content a,
.leaflet-popup-content a:visited,
.leaflet-popup-content a:hover,
.leaflet-popup-content a:active {
  color: #f5f7ff !important;
  text-decoration: none;
}
.leaflet-popup-content a.popup-title-link {
  color: inherit !important;
  text-decoration: none;
}
.leaflet-popup-content a.popup-title-link:hover {
  text-decoration: underline;
}
.controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.controls.group-select {
  margin-top: 8px;
}
.controls.streetview-controls {
  flex-wrap: wrap;
  gap: 6px;
}
.controls.streetview-controls .streetview-control-break {
  flex-basis: 100%;
  height: 0;
}
.controls .external-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f1a2a;
  color: #e6edf7;
  border: 1px solid #1f2c45;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.controls .external-link-button:visited {
  color: #e6edf7;
}
.controls .external-link-button:hover {
  background: #1f2c45;
  border-color: #3a5a8f;
  text-decoration: none;
}
.controls.streetview-controls #open-markers-modal {
  margin-left: auto;
}
.controls.streetview-controls #open-myriota-access-modal {
  margin-left: 0;
}
.controls .controls-label {
  font-weight: 700;
  font-size: 12px;
  color: #b9c6e0;
}
.controls label {
  font-weight: 700;
  font-size: 12px;
  color: #b9c6e0;
}
.controls select {
  flex: 1 1 auto;
  min-width: 0;
  background: #294165;
  color: #f7f9ff;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
}
.tile-classic-osm-dark {
  filter: invert(0.92) hue-rotate(180deg) brightness(0.88) contrast(0.9) saturate(0.9);
}
.tile-legacy-dark {
  filter: brightness(1.5) contrast(1) saturate(1);
}
.controls .layer-option {
  font-weight: 600;
  color: #f7f9ff;
}
.controls .map-borders-toggle {
  margin-left: auto;
  white-space: nowrap;
}
.locate-control .locate-control__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #1d2b44;
  background: #f7f9ff;
  text-decoration: none;
}
.locate-control .locate-control__button:hover {
  background: #e3ebf8;
}
.locate-control .locate-control__button.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.locate-control__icon {
  width: 14px;
  height: 14px;
  border: 2px solid #1d2b44;
  border-radius: 50%;
  position: relative;
  box-sizing: border-box;
}
.locate-control__icon::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #1d2b44;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.layer-controls {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(15, 26, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.layer-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.layer-title {
  display: flex;
  font-weight: 700;
  font-size: 12px;
  color: #b9c6e0;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.layer-title::after {
  content: '+';
  font-size: 14px;
}
.layer-controls.expanded .layer-title::after {
  content: '-';
}
.layer-controls.collapsed .layer-body {
  display: none;
}
.satellite-card {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px;
  background: rgba(26, 38, 58, 0.7);
}
.satellite-card--inmarsat {
  --sat-accent: #4a86ff;
  border-color: rgba(74, 134, 255, 0.45);
  background: linear-gradient(120deg, rgba(74, 134, 255, 0.14), rgba(26, 38, 58, 0.7) 55%);
}
.satellite-card--iridium {
  --sat-accent: #f29a3a;
  border-color: rgba(242, 154, 58, 0.45);
  background: linear-gradient(120deg, rgba(242, 154, 58, 0.14), rgba(26, 38, 58, 0.7) 55%);
}
.satellite-card--globalstar {
  --sat-accent: #44d189;
  border-color: rgba(68, 209, 137, 0.45);
  background: linear-gradient(120deg, rgba(68, 209, 137, 0.14), rgba(26, 38, 58, 0.7) 55%);
}
.satellite-card-title {
  display: block;
  font-weight: 700;
  font-size: 11px;
  color: var(--sat-accent, #b9c6e0);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.satellite-card-note {
  font-size: 11px;
  color: #9fb0cc;
}
.layer-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #f7f9ff;
}
.layer-option input[type="checkbox"] {
  margin: 0;
}
.beam-controls {
  margin-top: 0;
  padding-top: 0;
}
.layer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.layer-row .layer-subtitle {
  margin: 0;
}
.panel-options {
  margin: 8px 0;
}
.layer-subtitle {
  display: block;
  font-weight: 600;
  font-size: 11px;
  color: #9fb0cc;
  margin: 6px 0 4px;
}
.beam-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.beam-filter-options--stacked {
  margin-top: 2px;
}
.beam-option {
  font-size: 11px;
  color: #f7f9ff;
}
.beam-filter-note {
  font-size: 11px;
  color: #9fb0cc;
}
.beam-status-card {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 240px;
  max-height: 45vh;
  overflow-y: auto;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(26, 38, 58, 0.92);
  color: #f7f9ff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: none;
}
.beam-status-card.is-visible {
  display: block;
}
.beam-status-card__title {
  display: block;
  font-weight: 700;
  font-size: 11px;
  color: #b9c6e0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.beam-status-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 2px 0 6px;
}
.beam-status-legend__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.beam-status-legend__title {
  font-size: 10px;
  color: #9fb0cc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.beam-status-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #f7f9ff;
}
.beam-status-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--swatch-color, #3c4b6b);
  opacity: var(--swatch-opacity, 1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  flex: 0 0 auto;
}
.beam-label {
  background: transparent;
  border: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.beam-label__text {
  display: inline-block;
  padding: 2px 4px;
  border-radius: 6px;
  background: rgba(6, 12, 24, 0.68);
  color: #f7f9ff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.leaflet-tooltip.device-label {
  --device-label-bg: #1f6b3b;
  background: var(--device-label-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f7f9ff;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.leaflet-tooltip.device-label.device-label--online {
  --device-label-bg: #1f6b3b;
}
.leaflet-tooltip.device-label.device-label--offline {
  --device-label-bg: #7a2b2b;
}
.leaflet-tooltip.device-label.device-label--static {
  --device-label-bg: #235a8a;
}
.leaflet-tooltip.device-label.leaflet-tooltip-top:before {
  border-top-color: var(--device-label-bg);
}
.leaflet-tooltip.device-label.leaflet-tooltip-bottom:before {
  border-bottom-color: var(--device-label-bg);
}
.leaflet-tooltip.device-label.leaflet-tooltip-left:before {
  border-left-color: var(--device-label-bg);
}
.leaflet-tooltip.device-label.leaflet-tooltip-right:before {
  border-right-color: var(--device-label-bg);
}
.device-label__text {
  white-space: nowrap;
}
.satellite-marker {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.satellite-marker__icon {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 14px solid var(--sat-color, #64b5f6);
  opacity: var(--sat-opacity, 1);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.45));
}
.marker-list {
  position: absolute;
  top: 10px;
  left: 60px;
  max-height: 80vh;
  width: 320px;
  overflow-y: auto;
  background: rgba(44, 64, 96, 0.9);
  color: #f7f9ff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  z-index: 1000;
  border: 1px solid rgba(255,255,255,0.14);
}
.marker-panel-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 12, 24, 0.72);
  border-radius: 8px;
  z-index: 6;
  cursor: progress;
}
.marker-panel-loading-card {
  padding: 10px 14px;
  border-radius: 8px;
  background: #15263d;
  border: 1px solid #2b4a70;
  color: #bcd3ff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.marker-row {
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.marker-row.is-focused {
  border-color: #64b5f6;
  box-shadow: 0 0 0 1px rgba(100, 181, 246, 0.5);
  background: rgba(100, 181, 246, 0.12);
}
.marker-row:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.marker-row.online { color: #7CFF6B; }
.marker-row.offline { color: #ffb0b0; }
.marker-row.static { color: #9ad1ff; }
.marker-row .title {
  font-weight: 700;
  display: block;
}
.marker-row .meta {
  display: block;
  opacity: 0.8;
}
.group-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 85px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #1f2c45;
  border-radius: 6px;
  background: #0f1a2a;
}
.group-readonly {
  min-height: 85px;
  padding: 8px;
  border: 1px solid #1f2c45;
  border-radius: 6px;
  background: #0f1a2a;
  color: #e6edf7;
  font-size: 13px;
  white-space: pre-line;
}
.group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e6edf7;
  cursor: pointer;
  user-select: none;
}
.group-item.admin .group-name {
  font-weight: 700;
}
.group-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.group-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.group-indicator {
  width: 14px;
  height: 14px;
  border: 1px solid #3a5a8f;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f1a2a;
  flex-shrink: 0;
}
.group-item input:checked + .group-indicator {
  background: #64b5f6;
  border-color: #64b5f6;
}
.group-item input:checked + .group-indicator::after {
  content: '';
  width: 6px;
  height: 10px;
  border-right: 2px solid #0d1a2b;
  border-bottom: 2px solid #0d1a2b;
  transform: rotate(45deg);
  margin-top: -2px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  padding: 20px;
}
.modal-card {
  background: #111a2e;
  border: 1px solid #1f2c45;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  width: min(1200px, 95vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.modal-loading {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 24, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-loading-card {
  padding: 12px 16px;
  border-radius: 8px;
  background: #15263d;
  border: 1px solid #2b4a70;
  color: #bcd3ff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1f2c45;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
}
.modal-body {
  padding: 12px 16px 16px;
  overflow: auto;
}
.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.modal-body table th {
  text-align: left;
  border-bottom: 1px solid #223450;
  color: #bcd3ff;
  font-weight: 600;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
}
.modal-body table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31,44,69,0.5);
  vertical-align: top;
}
.modal-body .coord-cell input {
  width: 100%;
  box-sizing: border-box;
}
.modal-body .coord-cell .pick-coords-btn {
  margin-top: 6px;
  width: 100%;
}
.modal-body textarea[name="description"] {
  min-height: 85px;
  width: 250px;
  max-width: 100%;
  resize: vertical;
}
.myriota-access-modal-card {
  width: min(980px, 95vw);
}
.myriota-access-form {
  margin: 0;
}
.myriota-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}
.myriota-access-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.myriota-access-field label,
.myriota-access-field span {
  color: #bcd3ff;
  font-size: 12px;
  font-weight: 700;
}
.myriota-access-field input,
.myriota-access-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
}
.myriota-access-field button {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  padding: 6px 10px;
}
.myriota-access-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.myriota-access-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f1a2a;
  color: #e6edf7;
  border: 1px solid #1f2c45;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}
.myriota-access-external:visited {
  color: #e6edf7;
}
.myriota-access-external:hover {
  background: #1f2c45;
  border-color: #3a5a8f;
  text-decoration: none;
}
.myriota-access-result {
  margin-top: 12px;
}
.myriota-access-result:empty {
  display: none;
}
.myriota-access-summary {
  margin-bottom: 8px;
  color: #d9ffe9;
  font-size: 13px;
}
.myriota-access-table-wrap {
  overflow-x: auto;
}
.myriota-access-table {
  min-width: 620px;
}
.myriota-access-chart-card {
  margin: 10px 0 12px;
  padding: 10px;
  border: 1px solid #1f2c45;
  border-radius: 8px;
  background: rgba(0,0,0,0.16);
}
.myriota-access-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.myriota-access-chart-title {
  color: #bcd3ff;
  font-size: 13px;
  font-weight: 700;
}
.myriota-access-color-key {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9ab0d1;
  font-size: 11px;
  white-space: nowrap;
}
.myriota-access-color-key-bar {
  display: inline-block;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(0, 82%, 52%), hsl(60, 82%, 52%), hsl(120, 82%, 42%));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}
.myriota-access-chart-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
}
.myriota-access-chart {
  position: relative;
  min-width: 760px;
  height: 220px;
  border-left: 1px solid rgba(188, 211, 255, 0.18);
  border-bottom: 1px solid rgba(188, 211, 255, 0.18);
  box-sizing: border-box;
  background: rgba(0,0,0,0.08);
}
.myriota-access-hour-line {
  position: absolute;
  top: 0;
  bottom: 24px;
  width: 1px;
  background: rgba(188,211,255,0.1);
  pointer-events: none;
  z-index: 0;
}
.myriota-access-now-line {
  position: absolute;
  top: 0;
  bottom: 24px;
  width: 2px;
  background: #ff5252;
  box-shadow: 0 0 0 1px rgba(255,82,82,0.25), 0 0 10px rgba(255,82,82,0.35);
  pointer-events: none;
  z-index: 3;
}
.myriota-access-now-label {
  position: absolute;
  top: 3px;
  left: 5px;
  color: #ffd8d8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}
.myriota-access-bar {
  position: absolute;
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22), 0 6px 14px rgba(0,0,0,0.24);
  overflow: hidden;
  z-index: 2;
}
.myriota-access-bar-label {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 2px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.myriota-access-tick {
  position: absolute;
  bottom: 4px;
  transform: translateX(-50%);
  color: #9ab0d1;
  font-size: 11px;
  white-space: nowrap;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.myriota-access-tick.is-start {
  left: 0 !important;
  transform: none;
  text-align: left;
}
.myriota-access-tick.is-end {
  left: auto !important;
  right: 0;
  transform: none;
  text-align: right;
}
.myriota-access-ylabel {
  position: absolute;
  left: 6px;
  transform: translateY(50%);
  color: rgba(220, 234, 255, 0.72);
  font-size: 11px;
}
.myriota-access-pick.is-active {
  background: #3a5a8f;
  border-color: #3a5a8f;
}
.modal-body table tr:nth-child(even) {
  background: var(--table-row-even);
}
.modal-body table tr:nth-child(odd) {
  background: var(--table-row-odd);
}
.modal-close {
  background: #0f1a2a;
  color: #e6edf7;
  border: 1px solid #1f2c45;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.modal-close:hover {
  background: #1f2c45;
  border-color: #3a5a8f;
}
.modal-note {
  margin: 8px 0 12px;
  color: #9ab0d1;
  font-size: 12px;
}
.modal-notice {
  margin: 0 0 12px 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.modal-notice.error {
  background: #3a1b1b;
  border: 1px solid #703030;
}
.modal-notice.loading {
  background: #15263d;
  border: 1px solid #2b4a70;
  color: #bcd3ff;
}
.modal-body button.is-loading {
  opacity: 0.7;
  cursor: progress;
}
.modal-table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
body.pick-coords-active #mapa,
body.pick-coords-active .leaflet-container {
  cursor: crosshair;
}
.pick-coords-btn.is-active {
  background: #3a5a8f;
  border-color: #3a5a8f;
}
.btn-danger {
  border-color: #7a2b2b;
}
.btn-danger:hover {
  background: #3b1b1b;
  border-color: #9b3b3b;
}
.muted {
  color: #9ab0d1;
}
body.modal-open {
  overflow: hidden;
}
.status-bar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  margin-top: 8px;
  font-weight: 700;
  color: #e8f0ff;
}
.status-counts {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-toggle {
  margin-left: auto;
  font-weight: 600;
}
.status-bar .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.status-bar .online { color: #7CFF6B; }
.status-bar .offline { color: #ff9a9a; }
.status-bar .no-messages { color: #ffd166; }
.status-bar .no-messages.is-hidden { display: none; }
.track-panel {
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(15, 26, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.track-title {
  font-weight: 700;
  font-size: 12px;
  color: #b9c6e0;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.track-title::after {
  content: '+';
  font-size: 14px;
}
.track-panel.expanded .track-title::after {
  content: '-';
}
.track-panel.collapsed .track-body {
  display: none;
}
.track-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.track-field label {
  font-weight: 700;
  font-size: 12px;
  color: #b9c6e0;
}
.track-field input,
.track-field select {
  width: 100%;
  box-sizing: border-box;
}
.track-actions {
  display: flex;
  gap: 6px;
}
.track-actions button {
  flex: 1;
}
.track-status {
  margin-top: 8px;
  font-size: 12px;
  color: #b9c6e0;
  min-height: 16px;
}
.track-status[data-state="error"] {
  color: #ff9a9a;
}
