/* Draft-only page styles for /reconstitution-calculator/.
   Nav matches the interactive-site-20261110 homepage preview:
   76px desktop bar, two-row nav below 768px. Calculator colors use
   the agreed dark tokens. */
:root {
  --paper: #111925;
  --card: #1b2736;
  --ink: #edf3f7;
  --muted: #adbdca;
  --accent: #91c5d8;
  --blue: #91c5d8;
  --coral: #ffad98;
  --button-ink: #122332;
  --line: #364858;
  --surface: #162233;
  --control-h: 48px;
  --unit-col: 120px;
  --chip-gap: 8px;
  --section-gap: 24px;
  --card-pad: 24px;
}
html { color-scheme: dark; }
html body.site-calc {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.65 ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", Inter, Arial, sans-serif;
}
html body.site-calc main a { color: var(--accent); }
html body.site-calc main a:hover { color: var(--accent); filter: brightness(1.08); }
html body.site-calc .skip {
  position: absolute;
  top: -90px;
  left: 16px;
  background: var(--card);
  color: var(--accent);
  padding: 12px 16px;
  z-index: 30;
}
html body.site-calc .skip:focus { top: 12px; }

html body.site-calc > main {
  box-sizing: content-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}
html body.site-calc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-wrap: balance;
}
html body.site-calc .lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
  text-wrap: pretty;
}
html body.site-calc .lead .iq-lead-break { display: none; }
@media (max-width: 720px) {
  html body.site-calc .lead .iq-lead-break { display: block; }
}


@media (max-width: 430px) {
  html body.site-calc .lead { font-size: 1.0625rem; }
}


/* site-chrome is reused for the footer; don't let it restyle this page's nav or main. */

.iq-calc-card,
.iq-calc-download {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--card-pad);
  box-sizing: border-box;
}

/* Step label is always full width. The input and Unit select sit on the
   same row. "Unit" sits under the select, in small muted hint-style text. */
.iq-calc-steplabel {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 6px;
  text-wrap: pretty;
}
.iq-calc-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--unit-col);
  grid-template-areas:
    "ctrl-a ctrl-b"
    ". unit-label";
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
  min-width: 0;
}
.iq-calc-controls .iq-calc-unit-label { grid-area: unit-label; }
.iq-calc-controls > input { grid-area: ctrl-a; width: 100%; }
.iq-calc-controls > select { grid-area: ctrl-b; width: 100%; }
.iq-calc-unit-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

.iq-calc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.iq-calc-field > .iq-calc-steplabel { margin-bottom: 0; }
.iq-calc-field label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.iq-calc-card input[type="text"],
.iq-calc-card input[type="date"],
.iq-calc-card select {
  box-sizing: border-box;
  width: 100%;
  height: var(--control-h);
  min-height: var(--control-h);
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* batch15: keep 16px so iOS does not zoom */
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}
.iq-calc-card select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23adbdca' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 6 6 10.5 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.iq-calc-card input[aria-invalid="true"],
.iq-calc-card select[aria-invalid="true"] {
  border-color: var(--coral);
}

.iq-calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--chip-gap);
  margin: var(--chip-gap) 0 0;
}
.iq-calc-chips button {
  box-sizing: border-box;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.2;
  cursor: pointer;
}
.iq-calc-chips button.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-ink);
}
.iq-calc-chips button:hover,
.iq-calc-chips button:focus-visible { background: #244251; }
.iq-calc-chips button.is-selected:hover,
.iq-calc-chips button.is-selected:focus-visible {
  background: var(--accent);
  filter: brightness(1.05);
}

.iq-calc-help,
.iq-calc-note,
.iq-calc-placeholder {
  margin: var(--chip-gap) 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.iq-calc-block { margin-top: var(--section-gap); }

.iq-calc-error {
  min-height: 0;
  margin: 16px 0 0;
  color: var(--coral);
  font-size: 15px;
}
.iq-calc-error:empty { margin: 0; }
.iq-calc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  margin-top: 24px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--button-ink);
  background: linear-gradient(90deg, #91c5d8, #ffad98);
}
.iq-calc-submit:hover { filter: brightness(1.05); }

.iq-calc-submit:focus-visible,
html body.site-calc a:focus-visible,
.iq-calc-chips button:focus-visible,
.iq-calc-card .plan-toggle button:focus-visible,
.iq-calc-card input:focus-visible,
.iq-calc-card select:focus-visible,
.iq-calc-info summary:focus-visible,
html body.site-calc .iq-calc-next a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.iq-calc-result {
  margin-top: 24px;
  padding: var(--card-pad);
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid #91c5d8;
  box-sizing: border-box;
}
.iq-calc-result:focus,
.iq-calc-result:focus-visible {
  outline: none;
}

.iq-calc-stat { margin: 0 0 12px; }
.iq-calc-stat span {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 4px;
}
.iq-calc-stat strong {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.iq-calc-stat-lead strong {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  color: var(--accent);
}
.iq-calc-warn {
  margin: 12px 0 0;
  color: var(--coral);
  font-size: 15px;
  line-height: 1.45;
}

/* Syringe geometry:
   0-100% (fill, ticks, stopper) is the barrel INNER width.
   0 = left inner edge = fill start. 100 = right inner edge = max fill.
   Flange is fixed at the barrel's right end. The rod runs from the
   stopper, through the barrel and flange, to a thumb press outside. */
.iq-syringe {
  --syringe-inset: 2px;
  --syringe-wall: 1px;
  /* gauge-pad = barrel border + inner inset, so 0-100% is the INNER box:
     fill start, 0 tick, max tick, and max fill all share this edge. */
  --gauge-pad: calc(var(--syringe-wall) + var(--syringe-inset));
  --stopper-w: 8px;
  --barrel-h: 20px;
  --fill: 0;
  --barrel-length: 86%;
  --flange-w: 6px;
  --thumb-w: 8px;
  --end-space: 22px;
  margin: 16px 0 0;
}
.iq-legacy-track {
  position: relative;
  width: 100%;
  margin: 0;
  padding-top: calc(var(--barrel-h) + 2px);
  min-height: calc(var(--barrel-h) + 28px);
  box-sizing: border-box;
  overflow: visible;
}
.iq-legacy-barrel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--barrel-h);
  border: var(--syringe-wall) solid color-mix(in srgb, var(--muted) 70%, var(--line));
  /* Rounded toward the needle, nearly square where it meets the flange. */
  border-radius: calc(var(--barrel-h) / 2) 3px 3px calc(var(--barrel-h) / 2);
  background: color-mix(in srgb, var(--paper) 70%, var(--surface));
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.iq-legacy-inner {
  position: absolute;
  left: var(--syringe-inset);
  top: var(--syringe-inset);
  right: var(--syringe-inset);
  bottom: var(--syringe-inset);
  border-radius: calc(var(--barrel-h) / 2 - var(--syringe-inset)) 1px 1px calc(var(--barrel-h) / 2 - var(--syringe-inset));
  overflow: hidden;
  pointer-events: none;
}
.iq-legacy-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(100% * var(--fill, 0));
  background: var(--coral);
  /* No full-pill radius: the inner clip gives the left cap the barrel's
     shape. A 999px radius on a short, tall fill became a circle that
     bulged out of the walls. */
  border-radius: 0;
  pointer-events: none;
}
.iq-legacy-scale {
  position: relative;
  height: 10px;
  margin-left: var(--gauge-pad);
  margin-right: var(--gauge-pad);
  pointer-events: none;
}
.iq-legacy-scale i {
  position: absolute;
  top: 0;
  width: 1px;
  background: color-mix(in srgb, var(--muted) 80%, transparent);
  transform: translateX(-50%);
}
.iq-legacy-scale i.minor { height: 6px; }
.iq-legacy-scale i.major { height: 8px; background: var(--muted); }
.iq-legacy-scale i.label { height: 10px; background: var(--muted); }
.iq-legacy-labels {
  position: relative;
  height: 16px;
  margin-top: 2px;
  margin-left: var(--gauge-pad);
  margin-right: var(--gauge-pad);
}
.iq-legacy-labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}


.iq-calc-info { margin-top: 24px; }
.iq-calc-info summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  list-style: none;
}
.iq-calc-info summary::-webkit-details-marker { display: none; }
.iq-calc-info summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.iq-calc-info[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.iq-calc-info p { color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }

.iq-calc-download { margin-top: 24px; }
.iq-calc-download h2 { font-size: 1.375rem; margin: 0 0 8px; }
.iq-calc-download p { margin: 0 0 16px; color: var(--muted); text-wrap: pretty; }
.iq-calc-download .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.iq-calc-download .buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: var(--button-ink);
  background: linear-gradient(90deg, #91c5d8, #ffad98);
}
.iq-calc-download .buttons a:hover { filter: none; }
.iq-calc-download .buttons a.alt {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}


/* First step sits at the top of the card; later steps use --section-gap. */
.iq-calc-card > .iq-calc-block:first-child,
[data-mode-panel] > .iq-calc-block:first-child { margin-top: 0; }

.iq-calc-sublabel {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.iq-calc-diluent { margin-top: 16px; }
.iq-calc-diluent .iq-calc-sublabel { margin: 0; }
.iq-calc-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--chip-gap);
  margin: var(--chip-gap) 0 0;
  width: 100%;
}
.iq-calc-chips-grid button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 6px;
  font-size: 0.8125rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

html body.site-calc .iq-calc-help,
html body.site-calc .iq-calc-note,
html body.site-calc .iq-calc-placeholder {
  margin: var(--chip-gap) 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
html body.site-calc .iq-calc-help + .iq-calc-help { margin-top: 4px; }

html body.site-calc .iq-calc-field-error {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--coral);
  text-wrap: pretty;
}
html body.site-calc .iq-calc-field-error:empty { margin: 0; }

.iq-calc-card input[type="date"] {
  color-scheme: dark;
  min-width: 0;
}
.iq-calc-card input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.7;
  cursor: pointer;
  filter: invert(1);
}

html body.site-calc .iq-calc-draw-tail { white-space: nowrap; }
@media (max-width: 400px) {
  /* Longer names like "U-100 0.5 mL syringe (0.25 mL)." must wrap at 360. */
  html body.site-calc .iq-calc-draw-tail { white-space: normal; overflow-wrap: break-word; }
}
html body.site-calc .iq-calc-draw {
  margin: 0 0 16px;
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--accent);
  text-wrap: pretty;
}
html body.site-calc .iq-calc-result-line {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
html body.site-calc .iq-calc-expired {
  margin: 0 0 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
html body.site-calc .iq-calc-result .iq-calc-note { margin-top: 4px; }
html body.site-calc .iq-calc-result .iq-calc-placeholder { margin-top: 8px; }

html body.site-calc .iq-calc-download .buttons a { text-decoration: none; }

html body.site-calc .iq-footer-disclaimer,
html body.site-calc .footer-note {
  text-wrap: pretty;
  text-wrap: balance;
}


/* Mode toggle: same plan-toggle look as the homepage billing control. */
.iq-calc-card .plan-toggle {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  gap: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, var(--card));
}
.iq-calc-card .plan-toggle button {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  font-size: 15px;
  line-height: 1.25;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  /* 44px tap height, same as the homepage pricing toggle. Flex centers the label. */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
  text-wrap: pretty;
}
.iq-calc-card .plan-toggle button[aria-pressed="true"] {
  background: linear-gradient(145deg, #91c5d8, #ffad98);
  color: var(--button-ink);
}
html body.site-calc .iq-calc-mode-help {
  margin: 8px 0 24px;
}

[data-mode-panel][hidden] { display: none; }

/* Teaching strip: homepage feature-card tokens, static previews. */
.iq-calc-next { margin-top: 24px; }
html body.site-calc .iq-calc-next h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.iq-calc-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
  align-items: stretch;
}
.iq-calc-next .feature {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  background: #1b2736;
  border: 1px solid #364858;
  border-radius: 18px;
  overflow: visible;
  box-sizing: border-box;
}
.iq-calc-next .feature-preview {
  box-sizing: border-box;
  background: #121925;
  border: 1px solid #2b3d4e;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 0;
  min-height: 132px;
  height: auto;
  overflow: hidden;
  flex: 1 1 auto;
}
.iq-calc-next .fp-mini {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 100px;
  padding: 12px;
  background: #1b2736;
  border-radius: 10px;
}
.iq-calc-next .fp-mini .fp-title,
.iq-calc-next .fp-mini .fp-sub {
  margin: 0;
  min-width: 0;
  text-wrap: pretty;
}
html body.site-calc .iq-calc-next .fp-mini .fp-title {
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1.3;
  color: #edf3f7;
}
html body.site-calc .iq-calc-next .fp-mini .fp-sub {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  color: #adbdca;
}
.iq-calc-next .fp-mini .fp-save {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin-top: 2px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #122332;
  background: linear-gradient(145deg, #91c5d8, #ffad98);
}
.iq-calc-next .fp-mini.fp-log {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.iq-calc-next .fp-log-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.iq-calc-next .fp-log-text .fp-title {
  white-space: nowrap;
}
.iq-calc-next .fp-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #233f41;
  color: #91c5d8;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
}
.iq-calc-next .fp-bar {
  display: block;
  height: 6px;
  margin-top: 2px;
  border-radius: 999px;
  background: #2b3d4e;
  overflow: hidden;
}
.iq-calc-next .fp-bar i {
  display: block;
  height: 100%;
  width: calc(100% * var(--fill, 0));
  border-radius: inherit;
  background: #91c5d8;
}
html body.site-calc .iq-calc-next .feature h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
html body.site-calc .iq-calc-next .feature > p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.iq-calc-next .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
html body.site-calc .iq-calc-next .buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: var(--button-ink);
  background: linear-gradient(90deg, #91c5d8, #ffad98);
}
html body.site-calc .iq-calc-next .buttons a.alt {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

@media (min-width: 641px) {
  /* Equal-height cards; title and body stay a tight pair. Extra space
     falls to the bottom of the card, not between the title and body. */
  html body.site-calc .iq-calc-next .feature-preview {
    min-height: 180px;
    height: 180px;
    flex: none;
  }
}
@media (max-width: 640px) {
  html body.site-calc > main { padding: 24px 16px 16px; }
  .iq-calc-card,
  .iq-calc-result { padding: 18px; }
  .iq-calc-next-grid { grid-template-columns: 1fr; gap: 14px; }
  .iq-calc-next .feature { padding: 16px; }
  .iq-calc-next .buttons { display: grid; grid-template-columns: 1fr; }
  .iq-calc-next .buttons a { width: 100%; text-align: center; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .iq-calc-submit, .iq-calc-download .buttons a { transition: none; }
}

/* merged tree: header and footer come from the shared site chrome */
html body.site-calc > header.wrap, html body.site-calc > footer { line-height: 1.55; }


/* Interactive syringe picker and large preview (syringe-choice step). */
.iq-syringe-picker{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(88px,1fr));
  gap:8px;
  margin:10px 0 0;
  width:100%;
}
.iq-syringe-pick{
  appearance:none;
  -webkit-appearance:none;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  min-height:96px;
  margin:0;
  padding:10px 6px 8px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
  text-align:center;
}
.iq-syringe-pick-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:40px;
  flex:none;
  pointer-events:none;
}
.iq-syringe-pick-icon svg,
.iq-syringe-pick svg{
  display:block;
  width:86px;
  max-width:100%;
  height:36px;
  flex:none;
  margin:0 auto;
}
.iq-syringe-pick[aria-pressed="true"]{
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent);
  background:color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.iq-syringe-pick:hover{filter:brightness(1.06)}
.iq-syringe-pick:focus-visible{
  outline:3px solid var(--coral);
  outline-offset:3px;
}
.iq-syringe-preview{
  margin:14px 0 0;
  padding:14px 12px 10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  box-sizing:border-box;
}
.iq-syringe-preview .iq-syringe{margin:0 auto}
.iq-syringe-preview.is-over{
  border-color:var(--coral);
}
.iq-syringe-preview .iq-syringe-over{
  margin:10px 0 0;
  font-size:0.875rem;
  font-weight:650;
  line-height:1.4;
  color:var(--coral);
  text-align:center;
}
.iq-syringe-preview .iq-syringe-value{
  margin:8px 0 0;
  font-size:0.875rem;
  font-weight:700;
  line-height:1.3;
  color:var(--accent);
  text-align:center;
}
.iq-syringe-preview.is-over .iq-legacy-fill{display:none}
.iq-syringe-caption{
  margin-top:8px;
  font-size:12px;
  text-align:center;
}
@media (max-width:360px){
  .iq-syringe-picker{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Placeholder: muted hint, not a filled value. */
.iq-calc-card input::placeholder {
  color: var(--muted);
  opacity: 0.85;
  font-weight: 400;
}

/* Custom syringe capacity, same control look, no fake unit dropdown. */
.iq-calc-custom-syringe {
  margin: 12px 0 0;
  min-width: 0;
}
.iq-calc-custom-syringe[hidden] { display: none; }
.iq-calc-custom-syringe .iq-calc-steplabel { margin-bottom: 6px; }

/* Needle on the left. Shell holds the barrel plus flange and thumb on the right. */
.iq-legacy-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding-right: 0;
  min-width: 0;
}
.iq-legacy-needle {
  flex: none;
  width: 16px;
  margin-top: calc(var(--barrel-h) / 2 - 1px);
  height: 2px;
  position: relative;
  pointer-events: none;
}
.iq-legacy-needle::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 14px;
  height: 2px;
  background: #91c5d8;
  border-radius: 1px;
}
.iq-legacy-needle::after {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  border-style: solid;
  border-width: 3px 6px 3px 0;
  border-color: transparent #91c5d8 transparent transparent;
}
.iq-legacy-shell {
  flex: none;
  width: var(--barrel-length, 86%);
  max-width: calc(100% - 16px);
  min-width: 0;
  position: relative;
  box-sizing: border-box;
  padding-right: var(--end-space);
}
/* Finger flange: fixed at the barrel's right end. */
.iq-legacy-flange {
  position: absolute;
  left: calc(100% - var(--end-space));
  top: calc(var(--barrel-h) / 2);
  width: var(--flange-w);
  height: calc(var(--barrel-h) + 10px);
  transform: translateY(-50%);
  background: #adbdca;
  border-radius: 1.5px;
  pointer-events: none;
  z-index: 4;
}
/* Thumb press: outside the barrel, just past the flange. */
.iq-legacy-thumb {
  position: absolute;
  left: calc(100% - var(--end-space) + var(--flange-w) + 2px);
  top: calc(var(--barrel-h) / 2);
  width: var(--thumb-w);
  height: calc(var(--barrel-h) + 8px);
  transform: translateY(-50%);
  background: #adbdca;
  border-radius: 2px;
  pointer-events: none;
  z-index: 4;
}
/* Rod from the stopper, through the barrel and behind the flange, to the thumb. */
.iq-legacy-rod {
  position: absolute;
  left: calc(var(--gauge-pad) + (100% - var(--end-space) - 2 * var(--gauge-pad)) * var(--fill, 0) + var(--stopper-w));
  right: calc(var(--end-space) - var(--flange-w) - 2px);
  top: calc(var(--barrel-h) / 2);
  height: 3px;
  transform: translateY(-50%);
  background: #91c5d8;
  border-radius: 1px;
  pointer-events: none;
  z-index: 3;
}
/* Stopper at the fill edge, on the same 0-100% as the ticks (inner width). */
.iq-legacy-plunger {
  position: absolute;
  left: calc(var(--gauge-pad) + (100% - 2 * var(--gauge-pad)) * var(--fill, 0));
  top: calc(var(--barrel-h) / 2);
  width: 0;
  height: 0;
  z-index: 5;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
}
.iq-legacy-plunger.is-dragging,
.iq-legacy-dragging .iq-legacy-plunger { cursor: grabbing; }
.iq-legacy-plunger:focus { outline: none; }
.iq-legacy-plunger:focus-visible .iq-legacy-stopper,
.iq-legacy-interactive:focus-visible .iq-legacy-stopper {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.iq-legacy-plunger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  transform: translate(-30%, -50%);
}
.iq-legacy-stopper {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--stopper-w);
  height: calc(var(--barrel-h) + 6px);
  transform: translate(0, -50%);
  background: #c5d0d8;
  border: 1px solid #8fa0ae;
  border-radius: 2px;
  box-sizing: border-box;
  pointer-events: none;
}
.iq-legacy-interactive { cursor: pointer; }
.iq-legacy-interactive .iq-legacy-track { touch-action: none; }
.iq-legacy-disabled {
  cursor: default;
  opacity: 0.7;
}
.iq-legacy-disabled .iq-legacy-plunger { cursor: default; pointer-events: none; }

/* Every label is centered on its tick, including 0 and max. */
.iq-legacy-labels span:first-child,
.iq-legacy-labels span:last-child { transform: translateX(-50%); }

/* Overflow: keep the full barrel visible, show the warning. */
.iq-syringe-preview.is-over .iq-legacy-fill { display: block; opacity: 0.85; }

/* 8 picker items: 4 columns when they fit, 2 on the narrowest phones. */
.iq-syringe-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.iq-syringe-pick-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5em;
  max-width: 100%;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  flex: none;
}
.iq-syringe-pick-label span {
  display: block;
  min-height: 0;
  width: auto;
  text-align: center;
}
@media (max-width: 640px) {
  .iq-syringe-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.iq-legacy-interactive,
.iq-legacy-interactive * {
  user-select: none;
  -webkit-user-select: none;
}

/* Hide empty mode-help so powder no longer leaves a blank gap.
   Liquid "Already mixed." keeps the original 8/24 margin. */
html body.site-calc .iq-calc-mode-help[hidden] {
  display: none;
}
html body.site-calc .iq-calc-card .plan-toggle {
  margin-bottom: 24px;
}
html body.site-calc .iq-calc-card .plan-toggle:has(+ .iq-calc-mode-help:not([hidden])) {
  margin-bottom: 0;
}

.iq-legacy-empty .iq-legacy-fill {
  opacity: 0;
  width: 0;
}
.iq-legacy-interactive .iq-legacy-track,
.iq-legacy-interactive .iq-legacy-scale,
.iq-legacy-interactive .iq-legacy-labels,
.iq-legacy-interactive .iq-legacy-shell,
.iq-legacy-interactive .iq-legacy-row {
  pointer-events: auto;
  touch-action: none;
}
.iq-syringe-value {
  margin: 8px 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
  text-align: center;
}
.iq-syringe-over {
  margin: 10px 0 0;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--coral);
  text-align: center;
}
.iq-syringe-hint {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
}




/* ===== Realistic SVG syringe (20261113-calc5) ===== */
html body.site-calc .iq-syringe {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
html body.site-calc .iq-syringe-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
html body.site-calc .iq-syringe.is-interactive {
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
html body.site-calc .iq-syringe.is-interactive *,
html body.site-calc .iq-syringe.is-interactive {
  user-select: none;
  -webkit-user-select: none;
}
html body.site-calc .iq-syringe.is-interactive.is-dragging,
html body.site-calc .iq-syringe.is-dragging {
  cursor: grabbing;
}
html body.site-calc .iq-syringe.is-disabled {
  cursor: default;
  opacity: 0.72;
}
html body.site-calc .iq-syringe.is-disabled .iq-syringe-hit {
  display: none;
}
html body.site-calc .iq-syringe-hit {
  position: absolute;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-30%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
}
html body.site-calc .iq-syringe.is-interactive:focus {
  outline: none;
}
html body.site-calc .iq-syringe.is-interactive:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 12px;
}
html body.site-calc .iq-syringe.is-empty .iq-syringe-fill {
  opacity: 0;
}
html body.site-calc .iq-syringe-preview.is-over .iq-syringe-fill,
html body.site-calc .iq-syringe.is-over .iq-syringe-fill {
  opacity: 0.9;
}
html body.site-calc .iq-syringe-preview {
  overflow: visible;
}
html body.site-calc .iq-syringe-preview .iq-syringe {
  margin: 0 auto;
}
html body.site-calc .iq-calc-result .iq-syringe {
  margin: 0 auto;
}
html body.site-calc .iq-calc-result .iq-syringe-svg {
  max-width: 100%;
}
html body.site-calc .iq-tick-label {
  font-family: inherit;
  letter-spacing: 0;
}

html body.site-calc .iq-syringe > .iq-syringe-labels {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
