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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0f2027;
  color: #e8eef1;
  min-height: 100vh;
  padding: 32px 16px;
}

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

h1 { font-size: 26px; margin-bottom: 6px; }
.sub { color: #8fb0bd; font-size: 14px; margin-bottom: 20px; }

.status { color: #ffd54f; font-size: 14px; margin-bottom: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

label {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label output {
  align-self: flex-end;
  font-size: 15px;
  font-weight: 700;
  color: #4dd0a7;
}

input[type="range"] { width: 100%; accent-color: #4dd0a7; }

button {
  background: #4dd0a7;
  color: #06231a;
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-bottom: 16px;
}
button:disabled { opacity: 0.5; cursor: wait; }
button:not(:disabled):hover { background: #6fe3bc; }

.result {
  display: none;
  background: rgba(77, 208, 167, 0.12);
  border: 1px solid #4dd0a7;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  margin-bottom: 22px;
}
.result.show { display: block; }
.value { font-size: 30px; font-weight: 800; color: #4dd0a7; }
.grade { margin-top: 6px; font-size: 15px; color: #e8eef1; }
.warn { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #ffb74d;
  background: rgba(255,183,77,0.12); border-radius: 6px; font-size: 13px; color: #ffd180; text-align: left; }

.plots { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
@media (min-width: 760px) { .plots { grid-template-columns: 1fr 1fr; } }
.plots img { width: 100%; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); }
.plots figcaption { font-size: 12px; color: #8fb0bd; margin-top: 6px; text-align: center; }

footer { margin-top: 26px; font-size: 12px; color: #6f8c99; line-height: 1.6; }
a { color: #4dd0a7; }