* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f4f5f7;
  color: #252525;
  line-height: 1.5;
}

.topbar {
  background: #1a2b4a;
  color: #fff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar h1 { font-size: 20px; font-weight: 600; }

.user-line { display: flex; gap: 8px; }

.container { max-width: 860px; margin: 24px auto; padding: 0 16px; }

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card h2 { font-size: 15px; color: #1a2b4a; margin-bottom: 12px; }

.row { display: flex; gap: 8px; flex-wrap: wrap; }

input, select {
  flex: 1;
  min-width: 140px;
  padding: 9px 12px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

input:focus, select:focus { border-color: #1a2b4a; }

.btn {
  padding: 9px 16px;
  border: 1px solid #cfd4dc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.btn.primary { background: #1a2b4a; color: #fff; border-color: #1a2b4a; }

.btn:hover { opacity: 0.9; }

.device-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }

.device-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f4f5f7;
  border-radius: 6px;
  font-size: 13px;
}

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #d9e2ef;
  color: #1a2b4a;
}

.badge.offline { background: #ececec; color: #767676; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; }

.tab {
  padding: 7px 14px;
  border: none;
  background: #eceef1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.tab.active { background: #1a2b4a; color: #fff; }

.panel { margin-top: 14px; }

.item {
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f3;
  font-size: 13px;
}

.item .meta { color: #767676; font-size: 12px; margin-top: 3px; }

.status-escalated { color: #b84c3a; font-weight: 600; }
.status-resolved, .status-dismissed { color: #3a7d52; }
.status-confirming { color: #c8861a; }

.del-btn {
  float: right;
  border: none;
  background: transparent;
  color: #b84c3a;
  cursor: pointer;
  font-size: 12px;
}

.empty { color: #767676; font-size: 13px; padding: 8px; }

#track-map {
  height: 320px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e3e6eb;
}

.track-marker { background: transparent; border: none; }

.track-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a2b4a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.track-list { margin-top: 10px; }

.live-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.live-status { font-size: 12px; color: #c8861a; }
