/* Approved portal direction, September 9, 2026. Presentation only; the existing
   setup and clinical intake handlers remain the authority for every state. */
.portal-refined .portal-setup {
  --p-paper: var(--paper);
  --p-cream: var(--cream);
  --p-white: var(--surface);
  --p-ink: var(--ink);
  --p-mute: var(--mute);
  --p-faint: var(--faint);
  --p-line: var(--line);
  --p-hairline: var(--line-strong);
  --p-deep: var(--deep);
  --p-champagne: var(--champagne);
  --p-green: var(--good);
  --p-red: var(--bad, #b3261e);
  --p-warn: var(--p-amber);
  --p-body: var(--sans);
  --p-serif: "Fraunces", Georgia, serif;
  --intake-action: var(--ink);
  --intake-action-text: var(--paper);
  max-width: 900px;
  width: 100%;
  overflow: visible;
  padding-bottom: 12px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
.portal-refined .portal-peptide {
  --intake-action: var(--ink);
  --intake-action-text: var(--paper);
  max-width: 900px;
  width: 100%;
  margin-inline: 0;
  font-size: 16px;
  line-height: 1.6;
}
[data-theme="dark"] .portal-refined :is(.portal-setup, .portal-peptide) {
  --intake-action: var(--gold-light, #e6d3a0);
  --intake-action-text: var(--dark-a, #100d08);
}
.portal-refined :is(.portal-setup, .portal-peptide) :is(button, input, select, textarea, summary, a):focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 4px;
}
.portal-refined :is(.portal-setup, .portal-peptide) :is(input, select, textarea) {
  scroll-margin-block: calc(var(--portal-header, 70px) + 24px) calc(var(--portal-dock, 68px) + 32px);
}
.portal-refined :is(.portal-setup, .portal-peptide) :is(input, textarea)::placeholder { color: var(--faint); opacity: 1; }
.portal-refined .portal-setup .ps-topline { min-height: 44px; margin: 0 0 12px; }
.portal-refined .portal-setup :is(.ps-back, .ps-skip) {
  min-height: 44px; padding: 8px 0; font-family: var(--sans); font-size: 14px;
  font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mute);
}
.portal-refined .portal-setup .ps-count { font-size: 12px; letter-spacing: .02em; color: var(--faint); }
.portal-refined .portal-setup .ps-bar { height: 3px; background: var(--line); margin-bottom: 36px; border-radius: 999px; }
.portal-refined .portal-setup .ps-bar > span { background: var(--champagne); border-radius: inherit; box-shadow: none; }
.portal-refined .portal-setup .p-kicker { font-size: 12px; font-weight: 400; letter-spacing: .09em; }
.portal-refined .portal-setup .p-h1,
.portal-refined .portal-peptide .pi-head h1 {
  font-family: "Fraunces", Georgia, serif; font-size: 48px !important; font-weight: 400;
  line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; max-width: 24ch;
  margin: 12px 0 16px;
}
.portal-refined .portal-setup .p-h1 em { color: var(--deep); font-style: italic; font-weight: inherit; }
.portal-refined .portal-setup .p-sub,
.portal-refined .portal-peptide .pi-head p { font-size: 16px; line-height: 1.6; max-width: 66ch; color: var(--mute); margin: 0 0 28px; }
.portal-refined .portal-setup .ps-step[data-step="0"] .ps-rows,
.portal-refined .portal-setup .ps-step[data-step="1"] .ps-sub,
.portal-refined .portal-setup .ps-lab {
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
  padding: 28px; box-shadow: var(--shadow-soft); margin-top: 24px;
}
.portal-refined .portal-setup .ps-step[data-step="0"] .ps-rows { column-gap: 24px; row-gap: 6px; }
.portal-refined .portal-setup .ps-step[data-step="1"] .ps-sub .p-kicker:not(.ps-qlabel),
.portal-refined .portal-setup .ps-lab :is(h2, .sec-title),
.portal-refined .portal-peptide .pi-sec h2 {
  font-family: "Fraunces", Georgia, serif !important; font-size: 23px; font-weight: 400;
  line-height: 1.3; letter-spacing: -.02em; text-transform: none; color: var(--ink);
}
.portal-refined .portal-setup .ps-step[data-step="1"] .ps-sub .p-kicker:not(.ps-qlabel) { margin-bottom: 20px !important; }
.portal-refined .portal-setup :is(.ps-row__l, .ps-qlabel) { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.5; }
.portal-refined .portal-setup .ps-step:is([data-step="0"], [data-step="1"]) .ps-row__l { font-size: 14px; font-weight: 500; }
.portal-refined .portal-setup .ps-step:is([data-step="0"], [data-step="1"]) .ps-row { padding-block: 10px; gap: 8px; }
.portal-refined .portal-setup .ps-step[data-step="1"] .ps-qlabel { font-size: 16px; font-weight: 500; }
.portal-refined .portal-setup :is(.ps-row__v input, .ps-row__v select, .ps-other-in, .ps-cal__field input, .ps-cal__field select, .ps-hist__in),
.portal-refined .portal-peptide .pi-f :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea) {
  font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.5;
  min-height: 48px; padding: 11px 14px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: none;
  max-width: 100%; min-width: 0;
}
.portal-refined .portal-setup .ps-step:is([data-step="0"], [data-step="1"]) .ps-row__v :is(input, select) {
  font-size: 16px; font-weight: 400; padding: 11px 14px; background: var(--paper);
}
.portal-refined .portal-setup .ps-other-in { width: 100%; }
.portal-refined .portal-setup .ps-step[data-step="0"] .ps-static { font-size: 16px; min-height: 48px; padding: 11px 14px; font-weight: 400; overflow-wrap: anywhere; }
.portal-refined .portal-setup :is(.ps-hint, .ps-other-lab, .ps-cal__field > span, .ps-cal__note, .ps-reqhint, .ps-trustline, .ps-note) {
  font-family: var(--sans); font-size: 14px; font-weight: 400; line-height: 1.6;
  letter-spacing: 0; text-transform: none; color: var(--mute);
}
.portal-refined .portal-setup .ps-chips { gap: 10px; }
.portal-refined .portal-setup .ps-step[data-step="1"] .ps-chip,
.portal-refined .portal-setup :is(.ps-chip, .ps-na, .ps-histbtn) {
  min-height: 46px; min-width: 44px; border-radius: 999px; padding: 10px 20px;
  font-family: var(--sans); font-size: 14px; font-weight: 400; line-height: 1.45;
  letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: none; white-space: normal;
}
.portal-refined .portal-setup .ps-step[data-step="1"] .ps-chip { flex: 0 1 auto; min-width: 88px; }
.portal-refined .portal-setup .ps-step[data-step="1"] .ps-chip.on,
.portal-refined .portal-setup :is(.ps-chip, .ps-na, .ps-histbtn).on {
  background: var(--intake-action); border-color: var(--intake-action); color: var(--intake-action-text); box-shadow: none;
}
.portal-refined .portal-setup .ps-subnote { font-size: 12px; letter-spacing: 0; line-height: 1.5; }
.portal-refined .portal-setup .ps-consent { font-size: 15px; line-height: 1.65; padding-block: 16px; gap: 14px; min-height: 48px; }
.portal-refined .portal-setup .ps-consent input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--deep); }
.portal-refined .portal-setup .ps-consent a { text-underline-offset: 3px; }
.portal-refined .portal-setup :is(.ps-alert, #ps-intake-alert, #ps-account-alert) {
  border: 1px solid var(--p-red); border-radius: 12px; padding: 14px 16px;
  color: var(--p-red); background: var(--bad-wash, rgba(179, 38, 30, .04));
  font-family: var(--sans); font-size: 14px; line-height: 1.6; font-weight: 400;
}
.portal-refined .portal-setup :is(.is-invalid, [aria-invalid="true"]) { border-color: var(--p-red) !important; }
.portal-refined .portal-setup :is(.ps-cta, .ps-pnl-btn--go, .ps-mkt .ps-panel__add),
.portal-refined .portal-peptide .pi-submit {
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.45;
  color: var(--intake-action-text); background: var(--intake-action); border: 1px solid var(--intake-action);
  box-shadow: var(--shadow-soft); transform: none; filter: none; white-space: normal;
  transition: background-color .16s ease, border-color .16s ease;
}
.portal-refined .portal-setup :is(.ps-cta, .ps-pnl-btn--go, .ps-mkt .ps-panel__add):hover,
.portal-refined .portal-peptide .pi-submit:hover { box-shadow: var(--shadow-soft); transform: none; filter: none; }
.portal-refined .portal-setup :is(.ps-cta, .ps-pnl-btn--go):hover:not(:disabled),
.portal-refined .portal-peptide .pi-submit:hover:not(:disabled) { background: var(--mute); border-color: var(--mute); color: var(--paper); }
[data-theme="dark"] .portal-refined .portal-setup :is(.ps-cta, .ps-pnl-btn--go):hover:not(:disabled),
[data-theme="dark"] .portal-refined .portal-peptide .pi-submit:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.portal-refined .portal-setup .ps-cta:hover svg { transform: none; }
.portal-refined .portal-setup :is(.ps-link, .ps-pnl-btn, .ps-lab__note--link, .ps-sheet__x, .ps-chipbtn) {
  min-height: 44px; min-width: 44px; font-family: var(--sans); font-size: 14px;
  line-height: 1.5; letter-spacing: 0; text-transform: none;
}
.portal-refined .portal-setup .ps-foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); gap: 16px; }
.portal-refined .portal-setup .ps-foot__r { gap: 16px; min-width: 0; }
.portal-refined .portal-setup .ps-finish-note { font-size: 14px; line-height: 1.5; }
.portal-refined .portal-setup .ps-included { background: var(--wash); border-color: var(--line); border-radius: 20px; padding: 20px; gap: 14px; }
.portal-refined .portal-setup .ps-included__tick { background: var(--deep); color: var(--paper); }
.portal-refined .portal-setup .ps-included__name { font-size: 16px; font-weight: 500; }
.portal-refined .portal-setup .ps-included__why { font-size: 14px; line-height: 1.5; }
.portal-refined .portal-setup .ps-included__tag { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.portal-refined .portal-setup .ps-panels { gap: 20px; }
.portal-refined .portal-setup .ps-glabel { font-size: 12px; font-weight: 400; letter-spacing: .04em; margin-top: 20px; padding-bottom: 12px; }
.portal-refined .portal-setup .ps-addon { border-radius: 20px; padding: 20px; gap: 14px; box-shadow: var(--shadow-soft); transform: none; }
.portal-refined .portal-setup .ps-addon:hover { box-shadow: var(--shadow-soft); transform: none; border-color: var(--deep); }
.portal-refined .portal-setup .ps-addon.on { background: var(--wash); border-color: var(--deep); box-shadow: var(--shadow-soft); }
.portal-refined .portal-setup .ps-addon__name { font-size: 16px; font-weight: 500; }
.portal-refined .portal-setup .ps-addon__why { font-size: 14px; line-height: 1.5; }
.portal-refined .portal-setup .ps-addon__now { font-family: var(--sans); font-size: 24px; font-weight: 400; }
.portal-refined .portal-setup :is(.ps-addon__anchor, .ps-addon__now small) { font-size: 12px; }
.portal-refined .portal-setup .ps-addon.on .ps-addon__tick { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.portal-refined .portal-setup :is(.ps-mkt, .ps-panel) { border-radius: 20px; border-color: var(--line); box-shadow: var(--shadow-soft); }
.portal-refined .portal-setup .ps-panel.on { border-color: var(--deep); background: var(--surface); box-shadow: var(--shadow-soft); }
.portal-refined .portal-setup .ps-mkt__art { height: 100px; background: var(--cream); border-color: var(--line); }
.portal-refined .portal-setup .ps-mkt__seal { filter: none; }
.portal-refined .portal-setup .ps-mkt__tname { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); white-space: normal; }
.portal-refined .portal-setup .ps-mkt__tcount { font-size: 11px; font-weight: 400; letter-spacing: .05em; color: var(--deep); }
.portal-refined .portal-setup .ps-mkt__check { background: var(--deep); color: var(--paper); box-shadow: none; }
.portal-refined .portal-setup .ps-mkt__body { padding: 20px; gap: 8px; }
.portal-refined .portal-setup .ps-mkt .ps-panel__name { font-family: var(--sans); font-size: 20px; font-weight: 400; line-height: 1.3; }
.portal-refined .portal-setup :is(.ps-mkt__reason, .ps-prow__detail > p, .ps-panel__mtag) { font-size: 14px; line-height: 1.6; }
.portal-refined .portal-setup .ps-mkt .ps-prow { background: transparent; }
.portal-refined .portal-setup .ps-mkt .ps-prow__face { min-height: 60px; padding: 14px 20px; }
.portal-refined .portal-setup .ps-panel__mlabel { font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.portal-refined .portal-setup .ps-mkt__incl { font-size: 14px; font-weight: 500; }
.portal-refined .portal-setup .ps-mkt .ps-prow__detail { padding: 0 20px 16px; }
.portal-refined .portal-setup .ps-mkt__buy { padding: 18px 20px 20px; gap: 14px; }
.portal-refined .portal-setup :is(.ps-prow__price, .ps-total b, .ps-payitem b) { font-family: var(--sans); font-variant-numeric: tabular-nums; font-weight: 400; }
.portal-refined .portal-setup .ps-mkt .ps-prow__price { font-size: 26px; }
.portal-refined .portal-setup :is(.ps-prow__per, .ps-prow__meta, .ps-panel__soon) { font-size: 12px; letter-spacing: 0; text-transform: none; }
.portal-refined .portal-setup .ps-panel.on.ps-mkt .ps-panel__add { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.portal-refined .portal-setup .ps-total { border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; background: var(--surface); font-size: 15px; }
.portal-refined .portal-setup .ps-step[data-step="2"] .ps-total.is-stuck { background: var(--cream); border-color: var(--line-strong); color: var(--ink); border-radius: 20px; box-shadow: none; }
.portal-refined .portal-setup .ps-step[data-step="2"] .ps-total.is-stuck :is(b, .ps-total__n) { color: var(--ink); }
.portal-refined .portal-setup .ps-total__n { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
.portal-refined .portal-setup .ps-payitem { padding: 18px 0; font-size: 16px; }
.portal-refined .portal-setup .ps-card { border-radius: 20px; padding: 24px; box-shadow: var(--shadow-soft); }
.portal-refined .portal-setup :is(.ps-card__brand, .ps-card__exp) { font-size: 12px; color: #c6b895; letter-spacing: .03em; }
.portal-refined .portal-setup .ps-card__num { font-size: 15px; }
.portal-refined .portal-setup .ps-lab__book { max-width: 100%; margin-inline: 0; padding: 20px 0; background: transparent; border: 0; box-shadow: none; }
.portal-refined .portal-setup :is(.ps-lab__copy, .ps-lab__sub, .ps-conf__sub, .ps-conf__caveat, .ps-conf__donesub, .ps-guide > p) { font-size: 15px; line-height: 1.65; max-width: 68ch; }
.portal-refined .portal-setup :is(.ps-lab__badge, .ps-appt-status, .ps-fixture) { font-size: 12px; line-height: 1.5; letter-spacing: .02em; text-transform: none; }
.portal-refined .portal-setup .ps-step[data-step="4"] .ps-lab__badge { font-size: 12px; letter-spacing: 0; padding: 6px 12px; }
.portal-refined .portal-setup .ps-cal__fields { gap: 16px; }
.portal-refined .portal-setup .ps-cal__field > span { font-size: 14px; font-weight: 500; color: var(--ink); }
.portal-refined .portal-setup .ps-guide > summary { min-height: 56px; padding-block: 16px; }
.portal-refined .portal-setup .ps-guide__label { font-size: 16px; font-weight: 500; }
.portal-refined .portal-setup .ps-conf { border: 0; background: transparent; border-radius: 0; padding: 0; }
.portal-refined .portal-setup :is(.ps-conf__panel, .ps-conf__strong, .ps-conf__donetext) { font-size: 16px; font-weight: 500; line-height: 1.5; }
.portal-refined .portal-setup .ps-conf__mon { font-size: 12px; letter-spacing: .04em; }
.portal-refined .portal-setup .ps-conf__day { font-family: var(--sans); font-size: 28px; }
.portal-refined .portal-setup :is(.ps-conf__body, .ps-appt-id) { overflow-wrap: anywhere; }
.portal-refined .portal-setup .ps-site { min-height: 76px; padding: 18px 12px; margin: 0; border-radius: 12px; box-shadow: none; }
.portal-refined .portal-setup .ps-site.on { padding: 18px 12px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--deep); }
.portal-refined .portal-setup .ps-site__name { font-size: 16px; font-weight: 500; }
.portal-refined .portal-setup .ps-site__addr { font-size: 14px; }
.portal-refined .portal-setup :is(.ps-site__dist, .ps-site__mi, .ps-site__note, .ps-sites__more) { font-size: 12px; letter-spacing: 0; text-transform: none; }
.portal-refined .portal-setup .ps-ctrls { flex-wrap: wrap; gap: 12px; }
.portal-refined .portal-setup .ps-radius button { min-height: 44px; min-width: 44px; font-size: 14px; }
.portal-refined .portal-setup :is(.ps-slot, .ps-slot-t) { min-height: 46px; font-family: var(--sans); font-size: 14px; border-radius: 12px; }
.portal-refined .portal-setup :is(.ps-slot, .ps-slot-t, .ps-cal__cell, .ps-cal__day).on { background: var(--intake-action); color: var(--intake-action-text); border-color: var(--intake-action); box-shadow: none; }
.portal-refined .portal-setup .ps-sheet { z-index: 110; background: rgba(16, 13, 8, .48); backdrop-filter: none; }
.portal-refined .portal-setup .ps-sheet__panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; max-width: 460px; padding: 24px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 24px 60px -24px rgba(16, 13, 8, .4); }
.portal-refined .portal-setup .ps-sheet__top { align-items: center; }
.portal-refined .portal-setup .ps-sheet__title { font-family: "Fraunces", Georgia, serif; font-size: 23px; font-weight: 400; }
.portal-refined .portal-setup .ps-sheet__x { width: 44px; height: 44px; }
.portal-refined .portal-setup .ps-cal { padding: 16px; border-color: var(--line); border-radius: 16px; background: transparent; }
.portal-refined .portal-setup .ps-cal__top > .ps-cal__nav { display: flex; width: auto; height: auto; min-width: 0; gap: 8px; border: 0; background: none; }
.portal-refined .portal-setup :is(button.ps-cal__nav, .ps-cal__nav button) { min-height: 44px; min-width: 44px; width: 44px; height: 44px; margin-left: 0; border: 1px solid var(--line); border-radius: 999px; }
.portal-refined .portal-setup .ps-cal__month { font-family: var(--sans); font-size: 16px; font-weight: 500; }
.portal-refined .portal-setup :is(.ps-cal__grid, .ps-cal__dow) { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.portal-refined .portal-setup :is(.ps-cal__cell, .ps-cal__day) { font-family: var(--sans); font-size: 14px; min-height: 44px; line-height: 1; }
.portal-refined .portal-setup .ps-cal__dow span { font-size: 12px; letter-spacing: 0; }
.portal-refined .portal-setup :is(.ps-tslots__tz, .ps-tslots__note, .ps-cal__picked) { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; line-height: 1.6; }
.portal-refined .portal-setup .ps-rows--num { margin-top: 24px; }
.portal-refined .portal-setup .ps-step[data-step="4"] .ps-rows--num .ps-row { background: transparent; border: 0; box-shadow: none; padding: 12px 0; }
.portal-refined .portal-setup .ps-step[data-step="4"] .ps-rows--num .ps-row__l { font-family: var(--sans); background: var(--wash); color: var(--deep); box-shadow: none; }
.portal-refined .portal-setup .ps-rows--num .ps-row__v { font-size: 15px; font-weight: 400; line-height: 1.6; }
.portal-refined .portal-setup .ps-done { padding-top: 24px; }
.portal-refined .portal-setup .ps-done .p-h1 { margin-inline: auto; }
.portal-refined .portal-setup .ps-done .p-sub { margin-inline: auto; }

/* The peptide form remains one server-validated document. Section rhythm follows
   its real question groups; conditional questions and consent controls stay in place. */
.portal-refined .portal-peptide .pi-head { margin-bottom: 36px; }
.portal-refined .portal-peptide .pi-sec { padding: 32px 0; border-color: var(--line); }
.portal-refined .portal-peptide .pi-sec h2 { margin: 0 0 20px; }
.portal-refined .portal-peptide .pi-sec > p { max-width: 70ch; margin: 0 0 20px; font-size: 15px; }
.portal-refined .portal-peptide .pi-grid { gap: 24px; }
.portal-refined .portal-peptide .pi-f { gap: 8px; font-size: 15px; }
.portal-refined .portal-peptide .pi-f > span,
.portal-refined .portal-peptide .pi-f legend { font-weight: 500; color: var(--ink); line-height: 1.55; }
.portal-refined .portal-peptide .pi-f textarea { resize: vertical; min-height: 120px; }
.portal-refined .portal-peptide .pi-f--set { min-width: 0; margin: 28px 0 0; }
.portal-refined .portal-peptide [data-pi-q] + [data-pi-q] { margin-top: 28px; }
.portal-refined .portal-peptide .pi-fs { min-width: 0; border: 0; padding: 28px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.portal-refined .portal-peptide .pi-fs > legend { padding: 0 0 12px; font-size: 16px; font-weight: 500; }
.portal-refined .portal-peptide .pi-radios { gap: 10px; margin-top: 12px; }
.portal-refined .portal-peptide .pi-radio { min-height: 48px; padding: 10px 20px; gap: 10px; font-size: 15px; background: var(--surface); }
.portal-refined .portal-peptide .pi-radio:has(input:checked) { border-color: var(--deep); background: var(--wash); box-shadow: none; }
.portal-refined .portal-peptide :is(.pi-radio, .pi-check):has(input:focus-visible) { outline: 2px solid var(--deep); outline-offset: 4px; }
.portal-refined .portal-peptide .pi-radio input { width: 20px; height: 20px; accent-color: var(--deep); margin: 0; }
.portal-refined .portal-peptide .pi-check { min-height: 48px; padding: 14px 0; gap: 14px; font-size: 15px; line-height: 1.65; }
.portal-refined .portal-peptide .pi-check input { width: 22px; height: 22px; accent-color: var(--deep); margin-top: 2px; }
.portal-refined .portal-peptide .pi-check a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.portal-refined .portal-peptide .pi-hint { font-size: 14px; line-height: 1.6; }
.portal-refined .portal-peptide .pi-err { font-size: 14px; line-height: 1.6; color: var(--bad); }
.portal-refined .portal-peptide .pi-note { font-size: 15px; line-height: 1.6; border-radius: 16px; padding: 20px; }
.portal-refined .portal-peptide [aria-invalid="true"] { border-color: var(--bad) !important; }
.portal-refined .portal-peptide .pi-actions { margin-top: 12px; padding-top: 28px; }
.portal-refined .portal-peptide .pi-actions .pi-hint { margin-top: 14px; }

/* Account entry has no authenticated shell. Keep its font and palette contract
   self-contained, using the same local font faces already loaded by these views. */
body.portal-entry {
  --surface: #fdfdfc; --paper: #fbf7ef; --cream: #f6f0e4; --ink: #191713;
  --mute: #565149; --faint: #6f6a5f; --deep: #7a5f22;
  --line: rgba(25, 23, 19, .1); --line-strong: rgba(25, 23, 19, .22);
  --text-critical: #b3261e; --text-success: #176d45; --green: #176d45;
  --entry-action: #191713; --entry-action-text: #fbf7ef;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -.005em; font-synthesis: none;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; min-height: 100dvh; background: var(--paper);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
[data-theme="dark"] body.portal-entry {
  --surface: #1d1912; --paper: #100d08; --cream: #17130c; --ink: #f1e9d8;
  --mute: #c6b895; --faint: #a89a79; --deep: #d4b366;
  --line: rgba(230, 211, 160, .16); --line-strong: rgba(230, 211, 160, .28);
  --text-critical: #ef9a8a; --text-success: #58b98a; --green: #58b98a;
  --entry-action: #e6d3a0; --entry-action-text: #100d08;
}
body.portal-entry::before { display: none; }
.portal-entry .pane { width: 100%; max-width: 580px; padding: 32px; gap: 48px; }
.portal-entry .brand { min-height: 44px; margin: 0; align-self: flex-start; }
.portal-entry a.tap44 { display: inline-flex; align-items: center; min-height: 44px; }
.portal-entry .brand b { font-size: 16px; }
.portal-entry .brand i { font-size: 9px; letter-spacing: .2em; }
.portal-entry .box { width: 100%; max-width: 516px; margin: auto 0; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.portal-entry .kick { font-size: 12px; font-weight: 400; letter-spacing: .09em; margin-bottom: 16px; }
.portal-entry .kick::after { display: none; }
.portal-entry h1 { font-family: "Fraunces", Georgia, serif; font-size: 48px; font-weight: 400; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; margin: 0 0 16px; }
.portal-entry h1 em { color: inherit; font-weight: inherit; }
.portal-entry .sub { font-size: 16px; line-height: 1.6; margin-bottom: 28px; }
.portal-entry label { font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 8px; }
.portal-entry input { min-height: 48px; padding: 11px 14px; font-size: 16px; font-weight: 400; line-height: 1.5; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); margin-bottom: 20px; }
.portal-entry input::placeholder { color: var(--faint); opacity: 1; }
.portal-entry input[readonly] { background: var(--cream); color: var(--mute); }
.portal-entry .cta { min-height: 48px; padding: 12px 24px; font-size: 15px; font-weight: 500; line-height: 1.45; background: var(--entry-action); color: var(--entry-action-text); box-shadow: var(--shadow-soft); transform: none; filter: none; transition: background-color .16s ease; }
.portal-entry .cta:hover:not(:disabled) { background: var(--mute); color: var(--paper); box-shadow: var(--shadow-soft); transform: none; filter: none; }
.portal-entry .cta:disabled { opacity: .55; transform: none; filter: none; cursor: not-allowed; }
.portal-entry :is(.req, .req-err, .alt, .note) { font-size: 14px; line-height: 1.6; }
.portal-entry .req { color: var(--mute); margin-top: -10px; }
.portal-entry .req-err { color: var(--text-critical); }
.portal-entry input[aria-invalid="true"] { border-color: var(--text-critical); }
.portal-entry .note { padding: 16px; border-radius: 12px; background: var(--cream); }
.portal-entry .verified { font-size: 13px; font-weight: 400; background: rgba(28, 122, 78, .03); border: 1px solid var(--line); }
.portal-entry :is(a, button, input):focus-visible { outline: 2px solid var(--deep); outline-offset: 4px; }
.portal-entry .alt { margin-top: 20px; }
.portal-entry .alt a { font-weight: 500; text-underline-offset: 4px; }
.portal-entry .alt a:hover { text-decoration: underline; }
.portal-entry .foot { font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; line-height: 1.6; padding: 0; }
body.portal-entry--activate { padding: calc(32px + env(safe-area-inset-top)) 32px calc(32px + env(safe-area-inset-bottom)); gap: 48px; }
.portal-entry--activate > .brand { width: 100%; max-width: 516px; margin: 0 auto; align-self: center; }
.portal-entry--activate .box { margin: auto; }
.portal-entry--activate > .foot { width: 100%; max-width: 516px; }

@media (max-width: 700px) {
  .portal-refined .portal-setup .p-h1,
  .portal-refined .portal-peptide .pi-head h1 { font-size: 38px !important; }
  .portal-refined .portal-setup .ps-bar { margin-bottom: 28px; }
  .portal-refined .portal-setup .ps-step[data-step="0"] .ps-rows,
  .portal-refined .portal-setup .ps-step[data-step="1"] .ps-sub,
  .portal-refined .portal-setup .ps-lab { padding: 22px; border-radius: 20px; }
  .portal-refined .portal-setup .ps-step[data-step="5"] .ps-lab { padding: 16px 12px; }
  .portal-refined .portal-setup #ps-cal { padding: 12px 0; border: 0; }
  .portal-refined .portal-setup .ps-foot { flex-wrap: wrap; }
  .portal-refined .portal-setup .ps-foot__r { flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
  .portal-refined .portal-setup .ps-finish-note { text-align: left; max-width: none; flex: 1 1 100%; }
  .portal-refined .portal-setup .ps-cta { max-width: 100%; }
  .portal-refined .portal-setup .ps-included { padding: 16px; flex-wrap: wrap; }
  .portal-refined .portal-setup .ps-included__tag { margin-left: 40px; }
  .portal-refined .portal-setup .ps-sheet { padding: 12px; }
  .portal-refined .portal-setup .ps-sheet__panel { padding: 16px; margin-bottom: env(safe-area-inset-bottom); }
  .portal-refined .portal-setup .ps-sheet__panel .ps-dcal { padding-inline: 0; }
  .portal-refined .portal-peptide .pi-grid { gap: 20px; }
  .portal-refined .portal-peptide .pi-sec { padding-block: 28px; }
  .portal-refined .portal-peptide .pi-submit { width: 100%; padding-inline: 18px; }
  .portal-entry .pane { padding: 28px 20px; gap: 36px; }
  .portal-entry .box { padding: 28px 24px; border-radius: 20px; }
  .portal-entry h1 { font-size: 38px; }
  body.portal-entry--activate { padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom)); gap: 36px; }
}
@media (max-width: 820px) {
  .portal-refined .portal-setup .ps-total.is-stuck { bottom: calc(var(--portal-dock, 68px) + env(safe-area-inset-bottom) + 16px); }
}
@media (max-width: 359px) {
  .portal-refined .portal-setup #ps-date-sheet { padding: 4px; }
  .portal-refined .portal-setup #ps-date-sheet .ps-sheet__panel { padding: 16px 0; }
  .portal-refined .portal-setup #ps-date-sheet :is(.ps-cal__grid, .ps-cal__dow) { gap: 0; }
  .portal-refined .portal-setup #ps-date-sheet .ps-sheet__top { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-refined :is(.portal-setup, .portal-peptide) *, .portal-entry * { scroll-behavior: auto; transition: none !important; }
  .portal-entry .done.on { animation: none; }
}
/* Preserve a visible menu indicator while allowing the intended WebKit tap size. */
body.portal-refined .portal-peptide #pi-form .pi-f select {
  -webkit-appearance: none;
  appearance: none;
  height: 48px;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--deep) 50%), linear-gradient(135deg, var(--deep) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
