/* Pep Lab Reconstitution Calculator */
.plc {
	--plc-bg: #f4f6f5;
	--plc-white: #ffffff;
	--plc-ink: #0b1c2c;
	--plc-muted: #4e5f6d;
	--plc-dim: #6b7b87;
	--plc-green: #087a53;
	--plc-accent: #3ddc97;
	--plc-accent-ink: #04121f;
	--plc-line: #e3e8e6;
	--plc-line-strong: #cfd8d5;
	--plc-on-dark: #eef3f6;
	--plc-on-dark-muted: #a9bac8;
	--plc-sans: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
	--plc-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
	max-width: 1120px; margin: 0 auto; padding: 56px 24px 96px;
	font-family: var(--plc-sans); color: var(--plc-ink); -webkit-font-smoothing: antialiased;
}
.plc *, .plc *::before, .plc *::after { box-sizing: border-box; }

.plc__head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 48px; text-align: center; }
.plc__eyebrow { font-family: var(--plc-mono); font-size: 13px; font-weight: 400; letter-spacing: 0.2em; line-height: 1.4; text-transform: uppercase; color: var(--plc-green); }
.plc__eyebrow--light { color: var(--plc-accent); }
.plc .plc__title { margin: 0; font-family: var(--plc-sans); font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--plc-ink); text-wrap: balance; }
.plc .plc__intro { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--plc-muted); }

.plc__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.plc__card { border-radius: 24px; padding: 40px; }
.plc__card--inputs { background: var(--plc-white); border: 1px solid var(--plc-line); display: flex; flex-direction: column; gap: 28px; }
.plc__card--result { position: sticky; top: 24px; background: var(--plc-ink); color: var(--plc-on-dark); display: flex; flex-direction: column; }

.plc__step { display: flex; align-items: center; gap: 12px; }
.plc__step-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--plc-ink); color: var(--plc-white); font-family: var(--plc-mono); font-size: 13px; }
.plc__step-label { font-family: var(--plc-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--plc-muted); }
.plc .plc__card-title { margin: -14px 0 0; font-family: var(--plc-sans); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--plc-ink); }

.plc__field { display: flex; flex-direction: column; gap: 12px; }
.plc .plc__label { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--plc-ink); }
.plc__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.plc .plc__preset {
	flex: 1 1 0; min-width: 84px; padding: 12px 10px; background: var(--plc-bg); color: var(--plc-ink);
	border: 1px solid var(--plc-line-strong); border-radius: 12px; cursor: pointer;
	font-family: var(--plc-sans); font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.plc .plc__preset:hover, .plc .plc__preset:focus { background: var(--plc-white); color: var(--plc-ink); border-color: var(--plc-ink); }
.plc .plc__preset.is-active, .plc .plc__preset.is-active:hover, .plc .plc__preset.is-active:focus { background: var(--plc-ink); color: var(--plc-white); border-color: var(--plc-ink); font-weight: 600; }

.plc__input { position: relative; }
.plc .plc__input input, .plc .plc__input select {
	width: 100%; height: 52px; margin: 0; padding: 0 56px 0 16px; background: var(--plc-white); color: var(--plc-ink);
	border: 1px solid var(--plc-line-strong); border-radius: 12px; font-family: var(--plc-sans); font-size: 16px; line-height: 1.2;
	-moz-appearance: textfield;
}
.plc .plc__input select { padding-right: 16px; cursor: pointer; }
.plc .plc__input input::-webkit-outer-spin-button, .plc .plc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plc .plc__input input:focus, .plc .plc__input select:focus { outline: 2px solid var(--plc-accent); outline-offset: 1px; border-color: var(--plc-ink); }
.plc__unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--plc-mono); font-size: 13px; color: var(--plc-dim); pointer-events: none; }

.plc__units { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.plc__units-num { font-size: 96px; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.plc__units-label { font-size: 22px; font-weight: 600; }
.plc .plc__units-note { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--plc-on-dark-muted); }
.plc__bar { height: 8px; margin: 28px 0 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.plc__bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--plc-accent); transition: width 0.3s ease; }
.plc--over .plc__bar-fill { background: #ffb454; }
.plc .plc__warning { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 180, 84, 0.14); color: #ffd9a3; font-size: 14px; line-height: 1.5; }
.plc .plc__warning[hidden] { display: none; }
.plc .plc__rows { margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.plc .plc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.plc .plc__row dt { margin: 0; font-size: 16px; font-weight: 600; color: var(--plc-on-dark); }
.plc .plc__row dd { margin: 0; font-family: var(--plc-mono); font-size: 16px; color: var(--plc-on-dark); font-variant-numeric: tabular-nums; }
.plc .plc__disclaimer { margin: 24px 0 0; font-family: var(--plc-mono); font-size: 11px; letter-spacing: 0.08em; line-height: 1.6; text-transform: uppercase; color: var(--plc-on-dark-muted); }

@media (max-width: 900px) {
	.plc { padding: 40px 16px 64px; }
	.plc__grid { grid-template-columns: minmax(0, 1fr); }
	.plc__card--result { position: static; }
	.plc .plc__title { font-size: 40px; }
}
@media (max-width: 520px) {
	.plc__card { padding: 26px 20px; border-radius: 20px; }
	.plc .plc__title { font-size: 32px; }
	.plc .plc__intro { font-size: 16px; }
	.plc .plc__card-title { font-size: 25px; }
	.plc .plc__preset { min-width: 0; flex-basis: calc(33.333% - 8px); padding: 11px 6px; font-size: 14px; }
	.plc__units-num { font-size: 76px; }
}
@media (prefers-reduced-motion: reduce) {
	.plc__bar-fill, .plc .plc__preset { transition: none; }
}
