body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #232946; /* pastel dark blue */
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  color: #b8e0d2; /* pastel green */
}

.calibrate-container {
  background: #232946; /* pastel dark blue */
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h2 {
  color: #b8c1ec; /* pastel blue */
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 1.2px;
  text-align: center;
  line-height: 1.2;
  margin-top: 48px;
}

.img-row {
  display: flex;
  gap: 48px;
  margin-bottom: 36px;
  justify-content: center;
  width: 100%;
}

.img-row div {
  text-align: center;
  font-size: 1.08em;
  color: #a1a1aa; /* pastel gray */
}

.img-row img {
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(40,42,54,0.18);
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #393e5c; /* pastel dark */
  transition: box-shadow 0.2s;
}

.threshold-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
  width: 100%;
}

.threshold-box {
  background: #393e5c; /* pastel dark */
  border-radius: 12px;
  padding: 18px 32px;
  box-shadow: 0 2px 8px 0 rgba(184,193,236,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
}

.threshold-label {
  color: #b8e0d2; /* pastel green */
  font-size: 1em;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.threshold-value {
  color: #b8c1ec; /* pastel blue */
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: 1px;
}

.slider-row {
  margin-bottom: 32px;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

input[type="range"] {
  width: 220px;
  accent-color: #b8e0d2;
  margin: 0 12px;
  height: 6px;
  background: #b8c1ec; /* pastel blue */
  border-radius: 3px;
}

#save-btn {
  background: #b8e0d2;
  color: #232946;
  border: none;
  padding: 12px 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.18em;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px 0 rgba(184,193,236,0.10);
  outline: none;
}

#save-btn:hover, #save-btn:focus {
  background: #d2f1e4;
  box-shadow: 0 4px 20px 0 rgba(184,193,236,0.16);
}

#blink-status {
  color: #f6c177; /* pastel orange */
  font-weight: 600;
  margin-top: 20px;
  font-size: 1.18em;
  min-height: 1.5em;
  text-align: center;
  transition: color 0.3s;
}

@media (max-width: 1100px) {
  .img-row img {
    width: 100%;
    height: 100%;
  }
  .img-row {
    gap: 24px;
  }
  .threshold-row {
    gap: 12px;
  }
  .threshold-box {
    padding: 12px 10px;
    min-width: 120px;
  }
}

@media (max-width: 700px) {
  .img-row {
    flex-direction: column;
    gap: 18px;
  }
  .img-row img {
    max-width: 340px;
    width: 100%;
    height: 100%;
  }
  .slider-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: 98vw;
  }
  h2 {
    margin-top: 24px;
    font-size: 2rem;
  }
  .threshold-row {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .threshold-box {
    width: 90vw;
    min-width: unset;
    padding: 10px 0;
  }
}