.device-last-data-backdrop {
  z-index: 300;
}

.device-last-data-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: min(80vh, 560px);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}

.device-last-data-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.device-last-data-title {
  margin: 0;
  padding-right: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.device-last-data-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text3);
  background: #f8f8f8;
  border-radius: 12px;
}

.device-last-data-list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-right: 2px;
}

.device-last-data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f8f8;
}

.device-last-data-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2);
}

.device-last-data-value {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.device-last-data-close-btn {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff2a2a 0%, #ff0c0c 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.device-last-data-close-btn:hover {
  opacity: 0.95;
}
