From 92a9c488e9edf1b71686548367972d64499eb548 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 3 May 2026 21:47:17 +0000 Subject: [PATCH 1/5] Style calculator with LI palette and add status terminal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aligns the embed styling with the main LI website (cream background, blue accent, dark navy text) and tackles the layout issues called out in review: - Inputs and selects share padding, border-radius, and a common focus ring; selects get a custom chevron and uniform width so they no longer look like raw OS controls. - Form labels are right-aligned in their column so they sit flush against the inputs; body is centred with a sensible max width so alerts no longer feel detached on wide iframes. - Date-of-birth and test-date fields each sit in a soft info card; the card escalates to an error tone when an inline message is injected (e.g. "Must be after date of birth"), so the message visually belongs to the field it relates to. - Range warnings/errors render attached to the input above (no border between them) so it's obvious which field they describe. - Unit selects are removed from tab order (`tabindex="-1"`), giving consistent keyboard navigation regardless of whether a row has alternative units. Mouse and assistive-tech access is unchanged. - New terminal-style status panel collects non-field events (CSV loaded, defaults filled, calculation complete, awaiting input, configuration errors). Field-specific errors stay inline only — no more duplicate "Error: Test date must be after date of birth" alongside the inline message. https://claude.ai/code/session_019k6FFmsULqWJPK5F5uifZW --- embed/calculators/phenoage/index.html | 8 + embed/calculators/phenoage/phenoage.js | 185 +++++++---- embed/calculators/phenoage/strings/en.json | 30 +- embed/shared/embed.css | 353 ++++++++++++++++----- 4 files changed, 421 insertions(+), 155 deletions(-) diff --git a/embed/calculators/phenoage/index.html b/embed/calculators/phenoage/index.html index fb00c65..8388144 100644 --- a/embed/calculators/phenoage/index.html +++ b/embed/calculators/phenoage/index.html @@ -27,6 +27,14 @@

Biological age calculator

+
+
+ + Status +
+
+
+