User, October 2026: add bright/dark mode to the site for both tools.
- Each page sets data-theme on <html> before first paint: the saved choice
(localStorage "cnx-theme", shared by all cnxvinyl.lol pages) or, without
one, the system setting (prefers-color-scheme), which it keeps following
until the user picks a mode. Toggle: header button (sun / moon).
- Plant overview: light overrides for every SVG class; pipe colours are
now CSS variables (--p-*), used by the pipes and the legend, darkened in
light mode where the dark-mode tints were too pale (DI water, granulate,
stamper sets, cooling return); press state text and the VEX zone fills
use variables instead of inline hex, so they flip with the theme.
- Fleet calculator and landing page: light palettes; input, flag, badge
and ladder-highlight colours moved to variables.
Checked headless in Edge: both system schemes pick the right mode, the
toggle persists across pages, computed colours flip (press text, zones,
pipes, legend), no text overflow in either mode, no JS errors.
User, October 2026: calculations for the later business plan, starting
from 2 Duplex + 1 Classic at 3 records a minute per Duplex and 2 per
Classic, as an interactive tool on the website: pick the yearly output
and the share of splatter/specials, get the machine mix and all the
requirements (people, hydraulics, power, ...).
docs/fleet-calculator.html (single static page, no dependencies):
- target mode sizes the fleet (specials only on Duplex with its EX 35;
grow with Classics or with Duplex systems; start fleet as the floor);
fleet mode takes a fleet and gives its output at the specials share;
- output, capacity, utilisation and the mix bar per machine type;
- needs: people per shift and in total, galvanics operators, machines,
connected kVA and average kW, MWh/yr, central hydraulics (flow, motor,
oil, accumulator), steam, cooling and cooling water, compressed air,
press floor, room climate, compound, trim, titles, electroformed parts
and plating units; checks against the 400 kg/h boiler, 250 kW chiller
and the 870 m2 Payap press hall;
- ladder from the start fleet to a full Payap press hall, click to load;
- every assumption editable with its source (Newbilt Duplex site
requirements V14 and offer 240620-04, scale.md, galvanics.md, revenue
model, Payap model; estimates labelled), shareable link via the hash.
The Classic counts as one HRP 12 press plus one extruder until Newbilt
states figures (Toolex Alpha leaflet as a cross-check).
Site: DEMOS entry (/demos/fleet-calculator/) and landing-page entry.
README bullet and layout line; backlinks from scale.md (capacity) and
pressing-line.md (current plan).