.tool-page,
.calculator-shell,
.duty-form,
.duty-result,
.tool-notes {
  box-sizing: border-box;
}

.calculator-shell {
  width: 100%;
  margin-inline: auto;
}

.duty-form,
.duty-result {
  width: 100%;
  min-width: 0;
}

.duty-form label {
  min-width: 0;
}

.duty-form input,
.duty-form select,
.duty-form button {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.time-picker-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  box-sizing: border-box;
  overflow: hidden;
}

.time-picker-shell.has-value {
  color: var(--ink);
}

.time-picker-display {
  display: block;
  min-width: 0;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
}

.time-picker-chevron {
  flex: 0 0 auto;
  margin-left: 12px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}

.duty-form input.native-time-picker {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
}

.time-picker-shell:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 600px) {
  .tool-page {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .calculator-shell {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .duty-form,
  .duty-result,
  .tool-notes {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .duty-form input,
  .duty-form select,
  .duty-form button,
  .time-picker-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
