#shift-calculator {
  margin-top: 26px;
  padding: clamp(14px, 4vw, 24px);
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: #f3ecd5;
}

#shift-calculator fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#shift-calculator legend {
  margin-bottom: 12px;
  padding: 0;
  font-weight: 700;
}

.shift-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.shift-fields label {
  display: grid;
  gap: 6px;
}

.shift-fields input {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: #fffef9;
  color: var(--ink);
}

#shift-calculator input:focus-visible {
  outline: 3px solid #8c3cbe;
  outline-offset: 2px;
}

.shift-overnight {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 8px 0;
}

.shift-overnight input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.shift-result:not(:empty) {
  margin: 20px 0 0;
  padding: 9px 12px;
  border-left: 4px solid #42672e;
  background: #fffef9;
  font-weight: 700;
}
