/* Melatonin Dose & Timing — its own styles (the shared ones are core/tools.css). Scoped .chqt-ml*. */
.chqt-ml-h { margin: 12px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--chqt-muted); }
.chqt-ml-bar { position: relative; height: 22px; border-radius: 11px; overflow: hidden; border: 1px solid var(--chqt-line); background: #fff; }
.chqt-ml-zone { position: absolute; top: 0; bottom: 0; background: #cfe3dc; }
.chqt-ml-you { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: var(--chqt-ink); }
.chqt-ml-scale { position: relative; height: 18px; margin: 2px 0 0; font-size: 12.5px; color: var(--chqt-muted); font-variant-numeric: tabular-nums; }
/* each label sits at its own value on the bar (evenly spread labels put "90" left of where 90 is) */
.chqt-ml-scale span { position: absolute; top: 0; transform: translateX(-50%); }
.chqt-ml-scale span:first-child { left: 0; transform: none; }
.chqt-ml-scale span:last-child { left: auto; right: 0; transform: none; }
.chqt-ml-quotes { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.45; }
.chqt-ml-quotes li + li { margin-top: 4px; }
.chqt-ml-safety { margin-top: 10px; }
.chqt-ml-med { margin-top: 6px; }
/* the live header is ~123 px taller than the preview's (VN49): on a phone the answer must clear the 390×664 first screen,
   so the lede, the kicker and the tip (said again in the copy below) step aside, the five fields sit in two rows, and the gaps tighten */
@media (max-width: 460px) {
  .chqt[data-tool="melatonin-dose-calculator"] .chqt-lede, .chqt[data-tool="melatonin-dose-calculator"] .chqt-kicker, .chqt[data-tool="melatonin-dose-calculator"] .chqt-ml-tip { display: none; }
  .chqt[data-tool="melatonin-dose-calculator"] .chqt-form { gap: 8px; }
  .chqt[data-tool="melatonin-dose-calculator"] .chqt-grid { gap: 10px; }
  /* two selects side by side on a phone: 16px (never under — iPhone zooms) and a tighter arrow, so the words fit */
  .chqt[data-tool="melatonin-dose-calculator"] select { font-size: 16px; padding: 10px 26px 10px 10px; background-position: right 9px center; }
  .chqt[data-tool="melatonin-dose-calculator"] .chqt-answer { font-size: 30px; }
}
/* three fields in a row: a time field keeps its own padding small so "11:00 PM" fits a third of a phone */
.chqt-ml-trio input[type="time"] { padding-left: 8px; padding-right: 4px; min-width: 0; height: 46px; box-sizing: border-box; }
/* a line that has nothing to say (no window note, not over 10 mg, not a gummy) takes no room */
.chqt[data-tool="melatonin-dose-calculator"] .chqt-note:empty { display: none; }
