/* Wi-Fi tab (js/views/event-wifi.js, flag wifi_monitor).
   Scoped under .wifi. Tokens already in the app. No new colours. */

.wifi {
  min-width: 0;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  color: var(--text-1);
  overflow: hidden;
  font-family: var(--font-ui);
}
.wifi-head { padding: 12px 16px 10px; border-bottom: 1px solid var(--border); flex: none; }
.wifi-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.wifi-title { margin: 0; font-size: 15px; font-weight: 600; }
.wifi-band-label { font-size: 12px; color: var(--text-2); }
.wifi-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 12px 16px 24px;
}
.wifi-body > * + * { margin-top: 14px; }
.wifi-sec { min-width: 0; }
.wifi-h { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.wifi-band { margin: 10px 0 6px; font-size: 12px; color: var(--text-2); font-family: var(--font-mono); }
.wifi-note, .wifi-node, .wifi-stale {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-2);
}
.wifi-stale { margin: 8px 0 0; color: var(--warn); }
.wifi-nets { min-width: 0; }
.wifi-nets-summary { cursor: pointer; list-style: none; }
.wifi-nets-summary::-webkit-details-marker { display: none; }
.wifi-nets-summary::marker { content: ''; }
.wifi-nets-summary::before {
  content: '\25b8\00a0';
  color: var(--text-2);
  font-weight: 400;
}
.wifi-nets[open] > .wifi-nets-summary::before { content: '\25be\00a0'; }
.wifi-nets-body { min-width: 0; }
.wifi-node { font-family: var(--font-mono); color: var(--text-1); }
.wifi-ssid { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wifi-spark { color: var(--text-2); display: inline-block; min-width: 84px; min-height: 22px; }
.wifi-occ {
  display: flex;
  gap: 6px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 4px;
}
.wifi-occ-col {
  width: 92px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.wifi-occ-psc {
  /* Rendered only in a band row that has a PSC column (6 GHz); see renderOccupancy. */
  height: 22px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wifi-occ-ch { color: var(--text-1); font-size: 12px; }
.wifi-occ-regdom { max-width: 100%; }
.wifi-occ-regdom .badge {
  white-space: normal;
  text-align: center;
  height: auto;
}
.wifi-occ-plot {
  height: 72px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--bg-2);
  border-radius: var(--r-sm);
}
.wifi-occ-bar {
  width: 70%;
  background: var(--text-1);
  border-radius: 2px 2px 0 0;
}
.wifi-occ-gap {
  min-height: 72px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-family: var(--font-ui);
  line-height: 1.25;
  background: transparent;
}
.wifi-occ-power, .wifi-occ-hit { text-align: center; line-height: 1.2; }
