* {
  box-sizing: border-box;
}

body {
  background: transparent;
  margin: 0;
  padding: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

#widget {
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 16px 20px;
  width: 320px;
  backdrop-filter: blur(4px);
}

#title {
  margin: 0 0 12px;
  padding: 0 0 10px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#raw:not(:empty) {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 6px 8px;
  margin-top: 12px;
  overflow-wrap: break-word;
  line-height: 1.4;
  text-align: center;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.item:last-child {
  border-bottom: none;
}

#altimeter {
  border-bottom: none;
}

.item strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-right: 8px;
  white-space: nowrap;
}

.item strong::after {
  content: '';
}

#widget.no-id {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-align: center;
}

#widget.no-id #title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  border-bottom: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

#widget.no-id #title small {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

#widget.no-id #title code {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
}
