/* 实时数据的加载、空态与只读状态。 */
.api-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  height: 100%;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.api-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 18px;
}
.download-link {
  display: inline-block;
  padding: 10px 24px;
  margin-top: 20px;
  border: 1px solid #20aeed;
  border-radius: 5px;
  background: #0875c8;
  color: white;
  text-decoration: none;
}
.person-detail {
  overflow-x: hidden;
}
.person-detail .form-grid > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.person-detail .mini-alarm {
  overflow-wrap: anywhere;
  height: auto;
  min-height: 51px;
}
.live-paged-panel > .panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 3px;
}
.live-paged-panel .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.live-paged-panel .pagination {
  flex: none;
  height: 32px;
  min-height: 32px;
  padding: 3px 8px;
}
.live-table-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100% - 73px);
  padding: 0 8px 4px;
}
.live-table-body > .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.live-table-body > .pagination {
  height: 32px;
  min-height: 32px;
  flex: none;
}
.fences-page .live-table-body {
  height: calc(100% - 36px);
}
.fences-page #fence-groups {
  max-height: 345px;
  overflow: auto;
}
.fences-page .fence-group > .ghost {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}
.fence-detail-live {
  height: 100%;
  overflow: auto;
}
.fence-detail-live .details-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 7px;
  padding: 7px 0;
  font-size: 13px;
}
.fence-detail-live .details-row label {
  color: var(--muted);
}
.status-label.muted .dot {
  background: #7191a8;
  box-shadow: none;
}
.status-label.red .dot {
  background: #ff4d5e;
}
.status-label.orange .dot {
  background: #ff9b3f;
}
.status-label.yellow .dot {
  background: #ffd454;
}
.status-label.cyan .dot {
  background: #2dd7ef;
}
.fence-detail-live .details-row span {
  overflow-wrap: anywhere;
}
.people-page .query.live-attendance-query {
  gap: 22px;
}
.people-page .query.live-attendance-query label {
  flex: 1;
  width: auto !important;
  max-width: none;
}
.people-page .query.live-attendance-query label input,
.people-page .query.live-attendance-query label select {
  width: 140px !important;
}
.devices-page .query.live-device-query label {
  flex: 1;
  max-width: none;
  width: auto;
}
.devices-page .query.live-device-query input,
.devices-page .query.live-device-query select {
  width: 100%;
  height: 33px;
}
.location-list > .panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.location-list .table-wrap {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.location-list .location-tabs {
  flex: none;
}
.location-list .location-tabs button {
  flex: 1;
  padding: 3px 7px;
}
.location-list .location-counts {
  height: 28px;
  min-height: 28px;
  margin: 6px 0;
}
.location-list .location-filter {
  height: 30px;
  min-height: 30px;
  padding-block: 0;
  line-height: 28px;
  margin-bottom: 7px;
  width: 100%;
}
.location-list .list-actions {
  flex: none;
  margin-top: 8px;
}
.location-list .data-table {
  font-size: 11px;
}
.location-list .data-table td {
  height: 29px;
  max-width: 90px;
  text-overflow: ellipsis;
  overflow: hidden;
}
.location-list .data-table .dot {
  display: none;
}
.status-label {
  white-space: nowrap;
}
.status-label .dot {
  margin-right: 6px;
}
/* 品牌 SVG 已有透明背景，直接显示矢量边缘与文字轮廓。 */
#header .brand {
  filter: none;
}
#header {
  background-color: #031b33;
  background-image: linear-gradient(180deg, #021b33, #03172b);
  background-position: 0 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.header-meta {
  gap: 12px;
  font-size: 12px;
}
.header-meta .ghost {
  padding: 0 3px;
}
.project-name {
  max-width: 295px;
  text-overflow: ellipsis;
}

/* 桌面原稿的项目框顶边为 12px，元信息以 60px 高的内容带居中。 */
@media (min-width: 1100px) {
  #header {
    align-items: flex-start;
  }

  #header .brand {
    flex: 0 0 425px;
    align-self: flex-start;
  }

  #header .project-name {
    flex: 0 0 261px;
    height: 37px;
    margin: 12px 0 0 3px;
    padding: 0 12px;
  }

  #header .header-meta {
    height: 60px;
    margin-top: 0;
    align-items: center;
  }
}
.activity-row {
  grid-template-columns: 23px 94px 1fr 146px;
}
.activity-row > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.activity-row time {
  font-size: 10px;
}
.live-map #map-view {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #06243c;
}
.live-map .map-tools,
.live-map .map-side,
.live-map .map-zoom {
  z-index: 900;
}
.map-zoom button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 0;
  line-height: 1;
  letter-spacing: 0;
  text-indent: 0;
  text-align: center;
  font-family: Arial, "Segoe UI Symbol", sans-serif;
  appearance: none;
}
.live-map .person-detail {
  z-index: 950;
}
.map-data-note {
  position: absolute;
  bottom: 7px;
  left: 125px;
  max-width: 70%;
  z-index: 800;
  border-radius: 3px;
  background: #032038dc;
  color: #b5d7ed;
  padding: 3px 7px;
  font-size: 10px;
  pointer-events: none;
}
.location .map-data-note:empty {
  display: none;
}
.live-map .leaflet-control-attribution {
  background: #05223bdf !important;
  color: #b1d4ed;
  font-size: 9px;
  max-width: 230px;
}
.live-map .leaflet-control-attribution a {
  color: #9bd7ff;
}
.live-map .leaflet-control-scale-line {
  background: #04263aba;
  color: #d9eafa;
  border-color: #cce8fb;
  font-size: 10px;
}
.live-map .leaflet-tooltip {
  border-color: #146897;
  background: #03213deb;
  color: #e6f2ff;
  box-shadow: 0 2px 8px #0007;
}
.live-map .leaflet-container {
  font-family: Harmony, "Microsoft YaHei", sans-serif;
}
.live-map .leaflet-pane img {
  object-fit: fill;
  mix-blend-mode: normal !important;
}
.live-map .leaflet-marker-icon {
  object-fit: contain !important;
}
.location .person-detail h3 {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.location .person-detail .form-grid span {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.location .person-detail > .panel-body {
  overflow: auto;
}
.video-surface {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #0c3b59, #031725);
  overflow: hidden;
}
.video-surface > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-start {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--muted);
  background: #00152744;
  padding: 15px;
  text-align: center;
  font-size: 13px;
}
.video-start > button {
  border-color: #157eb0;
  background: #043253dd;
}
.video-top {
  z-index: 2;
  background: #012137ef !important;
}
.video-top > span:first-child {
  max-width: 78%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-surface video {
  background: #010a10;
}
.player-error {
  position: absolute;
  inset: auto 8px 8px;
  z-index: 20;
  padding: 9px;
  background: #512934ee;
  color: #ffe0df;
  font-size: 12px;
  text-align: center;
}
.video-tile:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  background: #000;
}
.video-tile:fullscreen .video-surface {
  inset: 0;
}
.video-wall:fullscreen {
  width: 100vw;
  height: 100vh;
  background: #000;
  padding: 10px;
}
.channel-list .channel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-list .channel small {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vehicles-page > .vehicle-detail-panel > .panel-body {
  padding: 14px 18px;
}
.vehicle-registration {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  height: 100%;
}
.vehicle-registration-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vehicle-registration-icon {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  height: 56px;
  border: 1px solid #14618b;
  border-radius: 8px;
  background: #073353;
}
.vehicle-registration-icon .icon {
  width: 32px;
  height: 32px;
}
.vehicle-registration-identity {
  flex: 1;
  min-width: 0;
}
.vehicle-registration-identity > span,
.vehicle-registration-fields dt,
.vehicle-registration-time > span {
  display: block;
  color: #8aafc9;
  font-size: 12px;
  line-height: 18px;
}
.vehicle-registration-identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eff9ff;
  font-size: 27px;
  letter-spacing: 1px;
  line-height: 34px;
}
.vehicle-registration-direction {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid #286283;
  border-radius: 4px;
  color: #afc9dc;
  font-size: 14px;
  line-height: 20px;
}
.vehicle-registration-direction.is-entry {
  color: #69caff;
  border-color: #17618c;
  background: #073654;
}
.vehicle-registration-direction.is-exit {
  color: #4ce2c3;
  border-color: #157263;
  background: #073c40;
}
.vehicle-registration-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 18px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #12405d;
  border-bottom: 1px solid #12405d;
}
.vehicle-registration-fields > div + div {
  padding-left: 18px;
  border-left: 1px solid #12405d;
}
.vehicle-registration-fields dd {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e0f0fb;
  font-size: 17px;
  line-height: 24px;
}
.vehicle-registration-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.vehicle-registration-time time {
  display: block;
  color: #bcd6e8;
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.vehicle-registration-status {
  padding-bottom: 2px;
  font-size: 13px;
  white-space: nowrap;
}
.vehicle-info dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.no-project-photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: #042a43;
}
.no-project-photo .icon {
  width: 85px;
  height: 85px;
}
.project-properties .property {
  min-width: 0;
}
.project-properties .property:last-child > div {
  overflow: auto;
  max-height: 64px;
}
.project-details h2 {
  display: flex;
  gap: 15px;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-details h2 .chip {
  font-size: 11px;
  flex-shrink: 0;
}
.organization-page .tree summary {
  display: flex;
  align-items: center;
  min-height: 28px;
}
.organization-page .tree summary::before,
.people-page .tree summary::before {
  content: "⌄";
  color: #74bbdf;
}
.tree summary button {
  max-width: 100%;
  text-align: left;
  height: auto;
  min-height: 27px;
  white-space: normal;
  line-height: 1.4;
  font-size: 13px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tree .tree-leaf {
  height: auto;
  min-height: 27px;
}
.tree .tree-leaf button {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  text-align: left;
}
.tree button img {
  width: 15px;
  height: 16px;
}
.tree .tree-leaf button span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.organization-page .tree > .tree-leaf {
  margin-left: 0;
}
.organization-page .tree .tree-leaf button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 0;
}
.organization-page .tree button img {
  flex-shrink: 0;
}
.people-page .tree summary button,
.people-page .tree .tree-leaf button {
  font-size: 12px;
  flex: 1;
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
}
.people-page .tree .selected {
  background: #0a4777;
  box-shadow: inset 3px 0 #19baff;
}
.people-table-title {
  gap: 12px;
}
.people-table-title .org-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 50%;
  height: 26px;
  font-size: 12px;
  font-weight: 400;
}
.org-filter-chip span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-photo {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  margin-top: 15px;
}
.menu-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.rank .rank-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.abnormal b {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  white-space: nowrap;
}
.abnormal small {
  font-size: 10px;
}
.low-battery-panel,
.low-battery-panel > .panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.low-battery-panel > .panel-title {
  flex-shrink: 0;
}
.low-battery-panel > .panel-body {
  flex: 1;
}
.low-battery-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.low-battery-row {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px 6px 12px 0;
  border-bottom: 1px solid #074168;
}
.low-battery-row:last-child {
  border-bottom: 0;
}
.low-battery-row > img {
  width: 35px;
  height: 35px;
  mix-blend-mode: screen;
}
.low-battery-identity {
  min-width: 0;
}
.low-battery-identity b,
.low-battery-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.low-battery-identity b {
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}
.low-battery-identity small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
}
.low-battery-row .tag {
  white-space: nowrap;
}
.low-battery-row > button {
  min-width: 52px;
  padding: 0 10px;
}
.vehicles-page .query label:last-of-type input {
  width: 235px;
}
.fences-page .section-tabs .right select {
  height: 27px;
  max-width: 240px;
}
.battery i {
  background: linear-gradient(
    to right,
    var(--battery-color, #00dba0) var(--battery, 0%),
    transparent var(--battery, 0%)
  ) !important;
}
.alarm-foot b {
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alarm-foot small {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview .alarm-item {
  cursor: pointer;
}
/* 中心内容按圆环内径布置，避免图标和单位压住内侧边缘。 */
.overview .onsite-ring .ring-center {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 88px;
  transform: translate(-50%, -50%);
  gap: 0;
}
.overview .onsite-ring .ring-center img {
  flex: none;
  width: 24px;
  height: 27px;
}
.overview .onsite-ring .ring-center span {
  font-size: 12px;
  line-height: 16px;
}
.overview .onsite-ring .ring-center b {
  font-size: 26px;
  line-height: 29px;
}
.overview .onsite-ring .ring-center small {
  font-size: 11px;
  line-height: 14px;
}
.overview-alarms > .panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.overview-alarms .alarm-counts {
  flex: none;
  margin: 0;
}
.overview-alarm-list {
  display: grid;
  grid-auto-rows: 52px;
  align-content: start;
  gap: 5px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.overview-alarm-list .alarm-item {
  height: auto;
  margin: 0;
  padding: 5px 8px;
}
.overview-alarm-list .alarm-head {
  margin-bottom: 3px;
  line-height: 18px;
}
.overview-alarm-list .alarm-foot {
  line-height: 18px;
}
@media (min-width: 1100px) {
  .overview-alarm-list {
    grid-auto-rows: calc((100% - 30px) / 7);
  }
}
@media (max-width: 1099px) {
  .overview-alarms .overview-alarm-list {
    flex: none;
    height: 394px;
  }
}
.event-content {
  min-width: 0;
}
.event-content > div {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 浏览器交互检查：详情、地图选中态及视频控制不再被内容挤压。 */
.location .person-detail .person-id {
  height: auto;
  min-height: 58px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.location .person-detail .person-id img {
  width: 48px;
  height: 48px;
}
.location .person-detail .person-id h3 {
  max-width: none;
  padding: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 17px;
}
.location .person-detail .person-id .chip {
  white-space: nowrap;
  padding: 2px 4px;
  font-size: 12px;
}
.location .person-detail .form-grid {
  margin-top: 12px;
  padding-left: 0;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 8px 10px;
}
.location-list .battery {
  display: none;
}
.live-map .map-side button.active {
  background: #087acc;
  box-shadow: inset 0 0 12px #1ad1ff88;
}
.location .map-zoom {
  display: flex;
  left: auto;
  right: 13px;
}
.overview-videos .video-start {
  inset: 0;
  padding: 4px;
  gap: 0;
}
.overview-videos .video-start button {
  height: 27px;
  min-height: 27px;
  padding: 0 10px;
  font-size: 12px;
}
.overview-videos .video-surface {
  bottom: 25px;
}
.overview-videos .video-bottom {
  height: 25px;
  align-items: center;
  gap: 4px;
}
.overview-videos .video-bottom > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-videos .video-controls {
  flex: none;
  gap: 3px;
}
.overview-videos .video-controls button {
  height: 21px;
  min-height: 21px;
  padding: 0 4px;
  font-size: 11px;
}
.overview-videos .player-error {
  inset: 0;
  max-height: none;
  padding: 3px 5px;
  gap: 3px;
  justify-content: center;
  line-height: 1.25;
}
.overview-videos .player-error > span {
  min-height: 0;
  overflow: auto;
}
.overview-videos .player-error > button {
  flex: none;
  height: 22px;
  min-height: 22px;
  padding: 0 7px;
  font-size: 11px;
}
.overview-videos .video-tile:fullscreen .video-bottom {
  height: 34px;
  padding: 4px 10px;
  font-size: 14px;
}
.overview-videos .video-tile:fullscreen .video-surface {
  bottom: 34px;
}
.overview-videos .video-tile:fullscreen .video-controls button {
  height: 26px;
  min-height: 26px;
  padding: 0 8px;
  font-size: 13px;
}
/* 首页进入播放后让画面占满卡片，底部信息仅在未播放时显示。 */
.overview-videos .video-tile:has([data-playing="true"]) > .video-bottom {
  display: none;
}
.overview-videos .video-tile:has([data-playing="true"]) > .video-surface {
  bottom: 0;
}
.video-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-controls button {
  height: 26px;
  padding: 0 7px;
}
.video-stop {
  display: none;
}
.video-tile:has([data-playing="true"]) .video-stop {
  display: inline-flex;
}
.video-page > .panel:last-child > .panel-body {
  height: calc(100% - 35px);
  padding: 5px 8px;
}
.video-page > .panel:last-child .metric .value {
  font-size: 28px;
}
.video-page > .panel:last-child .metric > img {
  width: 46px;
  height: 46px;
}
.video-page > .panel:last-child .metric {
  padding: 6px 10px;
  gap: 8px;
}
.player-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-height: 80%;
  overflow: auto;
}
.video-tile:fullscreen .video-top {
  display: flex;
}
.video-wall:fullscreen:not(.nine) {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.video-wall:fullscreen.nine {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.fullscreen-exit {
  display: none;
}
.video-wall:fullscreen > .fullscreen-exit {
  display: block;
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: #063855e8;
}
.organization-page .chart {
  min-width: 0;
}
.data-table td {
  text-overflow: ellipsis;
}
.map-data-note {
  max-width: calc(100% - 160px);
}

.video-page > .panel:last-child > .panel-title {
  position: relative;
  width: 100%;
  height: 30px;
}
.video-page > .panel:last-child .metric:first-child {
  padding-top: 6px;
}
.video-page > .panel:last-child .metric:last-child {
  padding-bottom: 6px;
}
.video-page > .panel:last-child .metric:first-child .fill {
  transform: none;
}
.video-page > .panel:last-child .metric .progress {
  position: static;
  margin-top: 3px;
  height: 4px;
}
.video-page > .panel:last-child .metric .label {
  font-size: 12px;
}
.video-page > .panel:last-child .metric .value {
  font-size: 24px;
  line-height: 1.15;
}

/* 新增只读数据页沿用原面板，查询条和分页不参与表格滚动。 */
.gap-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 5px 0 7px;
}
.gap-filters label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.gap-filters input,
.gap-filters select {
  height: 30px;
  min-height: 30px;
  padding: 0 8px;
  width: 170px;
}
.gap-filters select {
  max-width: 300px;
  width: 240px;
}
.gap-filters button {
  height: 30px;
  min-height: 30px;
  padding: 0 14px;
}
.organization-page > .panel:has([data-table="archives"]) > .panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.organization-page > .panel:has([data-table="archives"]) .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.live-paged-panel:has([data-table="posts"]) .table-wrap {
  flex: 1;
  min-height: 0;
}
.raw-message-detail {
  padding: 12px;
  background: #031b30;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.6 monospace;
  max-height: 60vh;
  overflow: auto;
}
#modal.trajectory-dialog {
  width: min(1050px, 94vw);
  max-width: 94vw;
}
#modal.trajectory-dialog .modal-content {
  max-height: calc(100dvh - 160px);
  padding: 16px 20px;
}
.trajectory-map {
  height: clamp(180px, calc(100dvh - 370px), 420px);
  min-height: 180px;
  width: 100%;
  border: 1px solid #075175;
  border-radius: 4px;
  background: #08253c;
}
.trajectory-status {
  min-height: 24px;
  line-height: 1.6;
  margin: 8px 0;
  color: #b1d2e7;
}
.trajectory-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.trajectory-controls input[type="range"] {
  flex: 1;
  min-width: 140px;
  padding: 0;
}
.trajectory-time {
  min-width: 158px;
  font-variant-numeric: tabular-nums;
}
.trajectory-speed {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.trajectory-speed select { min-width: 74px; }
.trajectory-view [hidden] { display: none !important; }
@media (max-width: 680px) {
  .trajectory-map { height: 32vh; }
  .gap-filters label {
    flex: 1;
    min-width: 180px;
  }
  .gap-filters input,
  .gap-filters select {
    min-width: 0;
    flex: 1;
  }
}

/* SVG 自带透明背景和状态色，不再使用裁片的提亮混合。 */
img.icon[src^="assets/icons/"],
#navigation img[src^="assets/icons/"] {
  object-fit: contain;
  mix-blend-mode: normal !important;
}
