body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.container {
  max-width: 440px;
  margin: 40px auto;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
  margin-bottom: 16px;
  font-size: 1.6rem;
  text-align: center;
}

fieldset {
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 6px;
}

legend {
  padding: 0 6px;
  font-weight: bold;
}

.form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 4px;
}

input[type="time"],
input[type="number"] {
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

button {
  flex: 1;
  padding: 10px 20px;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #005a9e;
}

.result-heading {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #0078d4;
  border-bottom: 2px solid #0078d4;
  padding-bottom: 4px;
}

#results {
  margin-top: 12px;
}

#results ul {
  list-style: none;
  padding-left: 0;
}

#results li {
  background: #e8f4ff;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

#results .note {
  font-weight: normal;
  font-size: 0.9rem;
  color: #555;
}

.best {
  background: #c9f7c5 !important;
  border: 1px solid #6bb76b;
}

.best .note {
  font-weight: bold;
  color: #2b6b2b;
}

/* Line after green results */
#results .secondary-note {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #2b6b2b;
  font-style: italic;
}

/* Explanatory note after blue results */
#results .extra-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #444;
  background: #f2f2f2;
  border-left: 4px solid #999;
  padding: 10px;
  border-radius: 4px;
}

#results .extra-note strong {
  color: #000;
}
