Alarm Log
@@ -142,7 +487,7 @@
SHOW LOCAL - STANDBY
-
+
Acknowledge
Print Log
@@ -150,7 +495,7 @@
SHOW LOCAL - STANDBY
-
+
Interlocks
@@ -186,7 +531,7 @@ SHOW LOCAL - STANDBY
-
+
@@ -207,6 +552,7 @@
Confirm Exit
+
diff --git a/docs/radar.html b/docs/radar.html
new file mode 100644
index 0000000..f3c2cc1
--- /dev/null
+++ b/docs/radar.html
@@ -0,0 +1,872 @@
+
+
+
+
+
+
SEASCAN RM-12 RADAR — Amber Console
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Skip to content
+
+
+
+
+
+ Amber Console
+
+
+
+ DISPLAY:PLASMA · NEON
+
+ REV 2.0
+ A project by Diederik
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Switches
+
+
Simulation · never a color
+
+
+ Plasma OFF
+
+
+ CRT ON
+
+
+
+ Retrace Band ON
+
+
+
+
Style & engine · never the hardware
+
+
+
+ JS Effects ON
+
+
+
+ Classic Buttons ON
+
+
+
+
+
The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.
+
JS Effects need the CRT simulation and a phosphor that holds long enough to see.
+
JS Effects off: no ghosting, smear or framebuffer
+ decay. Everything else here is CSS.
+
+
+
Running · what CSS cannot do
+
+ Ghosting — rewritten text leaves its old value to decay
+ Scroll smear — the image trails while the page moves
+ Framebuffer decay — the old screen drains behind the new
+
+
+
+
+
+
+
+
State
+
+
+
Technology
+
+ PLASMA
+
+
+
Emitter
+
+ NEON
+
+
+
Emission
+
+ 585.2 nm
+
+
+
Mode
+
+ PRESET
+
+
+
Engine
+
+ CSS + JS
+
+
+
+
+
+
+
Technology
+
+
A gas in a sealed gap, struck by a
+ sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one
+ hue and varies only how hard it is driven.
+
+
Argon puts most of its
+ output past 700nm, where the eye scores under 0.01 — so the 696.5nm peak above is the
+ strongest line, not the color. What you see is the faint 415–475nm group, a hundred
+ times weaker and a hundred times better placed. It is also why argon is a dim GAS — though not a dim palette: every stop here is solved to the same contrast ratio as every other, so what changes between displays is the hue, never the brightness.
+
Krypton spreads its
+ visible output across a blue-violet cluster at 427–450nm, a green line at 557.0nm and a
+ yellow one at 587.1nm. Spread that wide integrates close to white, which is why the
+ panel reads violet rather than any one of those colors.
+
A beam sweeps a phosphor coating,
+ which emits while struck and then persists. The color belongs to the phosphor, not the
+ beam; the P-number names the compound.
+
The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.
+
The palest gas here, and structurally so: helium has no low-lying manifold to dominate the way the heavier gases do. Its visible lines all fall from n=3 and n=4 at comparable energies, so none outranks the rest and every one contributes. That integrates to near-white with a pink cast — 587.6nm carries the luminance while 447.1nm and 667.8nm pull it off the blackbody locus. A display gas by mixture rather than on its own.
+
Zn₂SiO₄:Mn — willemite, the oldest CRT phosphor and the one the first oscilloscopes and radar indicators were built around. A silicate host rather than a sulfide, so a narrow 48nm band against P31's 78nm: a purer green, and a less efficient one. P39 is this same compound with arsenic added to stretch the decay.
+
The amber terminal, and the ramp this framework was drawn against. Not a pure orange but a broad band with real green content — the fit lands at 594nm across 110nm — which is what holds amber text legible at small sizes. It was the standard alternative to green on office terminals, sold on being easier on the eyes across a working day.
+
ZnS:Cu — the green everybody actually pictures when they picture a terminal or a laboratory oscilloscope. It carries the highest luminous efficiency of any phosphor here, sitting near the peak of the eye's photopic curve, which is why it displaced the willemites for anything meant to be looked at directly rather than photographed.
+
The radar phosphor, and it went onto scope tubes for a reason: the flash gives
+ position and the trail gives history. Two coatings, not one. The beam writes into a blue
+ ZnS:Ag layer that decays in microseconds, and that layer's own photons pump a
+ yellow-green one behind it which holds for seconds. So the ink is blue and the halo is
+ green: text you are reading is being re-struck sixty times a second, and text that stops
+ being written leaves only the glow.
+
P1's willemite with arsenic added, which lengthens the decay by orders of magnitude
+ and leaves the color alone — this palette and P1 are the same green, and differ only in
+ how long it lasts. At hundreds of milliseconds the screen is still near full brightness
+ when the next refresh arrives, so there is no flicker to see at any refresh rate. It is
+ paid for in smear.
+
A photographic-recording phosphor. Blue is where film emulsion is most sensitive, so
+ P11 was fitted to screens meant to be photographed rather than watched — and watched, it
+ is the worst screen here. It decays in tens of microseconds, three orders below a
+ refresh interval, so the screen is genuinely dark between frames. Short persistence and
+ heavy flicker are the same fact.
+
The television white, and a BLEND rather than a cascade: a blue and a yellow emitter
+ mixed into one coating, emitting together, which the eye integrates to white. That is
+ what separates it from P7 — two powders mixed have one color, two powders layered emit
+ in sequence and the color changes as you watch.
+
+
+
+
+
+
+
+
+
+
+
+
+
SEASCAN
+
RM-12 · 3 NM · HEAD-UP
+
+
+
+ Head-Up
+ North-Up
+ Course-Up
+
+
+
+
+
+
+
+
+
Plan Position Indicator
+
+
+
+
+
+
+
+
+
+
+
000 030 060
+
090 120 150
+
180 210 240
+
270 300 330
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+ Bearing 073.5°
+ 3 NM
+
+
+
+
+
+
Guard Zone · Track T1
+
+
+
+
+
+
+
+
Transmitter
+
+
+
TRANSMIT
+
Pulse Short · 80 ns
+
+
+
+
+
Standby
+
+
+
+
+
Own Ship
+
+
+
Heading
+
+ 047.5°T
+
+
+
Course
+
+ 049°T
+
+
+
Speed
+
+ 12.4 KN
+
+
+
Log
+
+ 11.8 KN
+
+
+
+
+
+
Decca 5B
+
+ R 12.34 G 45.67
+
+
+
Fix
+
+ 51°57.2'N 004°06.8'E
+
+
+
+
+
+
Markers
+
+
+ EBL
+ 073.5°
+ ◄
+ ►
+
+
+ VRM
+ 1.62 NM
+ ◄
+ ►
+
+
+
+
+
+
+
+
+
+
+
Receiver
+
+
+
+
+
+ Trails
+ Off
+ 1 Min
+ 3 Min
+ 6 Min
+
+
+
+ Pulse
+ Short
+ Med
+ Long
+
+
+
+ Interference Rejection ON
+
+
+
+
+
+
+
+
+ HEAD-UP
+ RELATIVE MOTION
+ TRAILS 3 MIN
+ IR ON
+ ANT 24 RPM
+
+ UTC 00:00:00
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/radar.js b/docs/radar.js
new file mode 100644
index 0000000..93d617e
--- /dev/null
+++ b/docs/radar.js
@@ -0,0 +1,560 @@
+/* SEASCAN RM-12 radar demo behavior. Vanilla, no dependencies.
+ *
+ * Demo logic only. The display board, the toggles and the persistence tier are
+ * the framework's (../dist/amber-console.js and .effects.js); the radar face,
+ * its wake and every contact's decay are pure CSS in sweep.css and docs.css.
+ * What is left for this file is the fiction of a set that is running.
+ *
+ * THE SWEEP IS THE CLOCK, and that is the one structural decision here.
+ *
+ * Everything on the face happens when the beam crosses it, so this file does not
+ * own a timer for the radar at all — it listens for `animationiteration` on the
+ * beam and advances the world once per revolution. A setInterval would drift
+ * against the CSS animation within a minute, and the whole subject of this page
+ * is that the beam and the light it leaves behind are the same event. It also
+ * means the period is never hard-coded: switch to P39 and the antenna slows to
+ * match the phosphor, because both come off --ac-persist-tail.
+ *
+ * Determinism, as on the server page: THE MARKUP IS FRAME ZERO. Nothing is
+ * randomized on load, drift comes from a seeded Lehmer generator rather than
+ * Math.random, and no revolution has happened when the visual suite takes its
+ * screenshot — capture.mjs disables every animation, so `animationiteration`
+ * never fires there at all. Only the UTC clock is painted at load, and it reads
+ * a Date the harness has frozen.
+ */
+
+/* ------------------------------------------------------------- P7 first -- *
+ * FIT THE RIGHT TUBE BEFORE THE FRAMEWORK LOOKS.
+ *
+ * The chosen display is stored under one key namespace shared by every page in
+ * this repo, which is what makes it stick while you read the guide. Arriving
+ * here it is a problem: a visitor coming from the console demo brings PLASMA ·
+ * NEON with them, and a radar in neon is a red strobe with no flash layer —
+ * the sweep's leading edge falls back to the trail color and the one thing
+ * this page exists to show is simply absent.
+ *
+ * So on a FIRST visit this seeds the store with the set's own tube and records
+ * that it has done so. It runs at parse time, before the framework's
+ * DOMContentLoaded init reads any of it, so there is no frame of the wrong
+ * palette and nothing to repaint. On every later visit the flag is set and
+ * whatever you chose here is what you get — deliberately picking P39 to watch a
+ * green screen survives, which is the whole point of the board being on the
+ * page.
+ * ------------------------------------------------------------------------- */
+(function () {
+ try {
+ if (localStorage.getItem("ac.radar.fitted")) return;
+ localStorage.setItem("ac.sim.tech", "crt");
+ localStorage.setItem("ac.sim.emitter", "p7");
+ localStorage.setItem("ac.sim.crt", "1");
+ localStorage.setItem("ac.sim.plasma", "0");
+ localStorage.setItem("ac.sim.mod", "0");
+ localStorage.setItem("ac.radar.fitted", "1");
+ } catch {
+ /* Private mode and sandboxed file:// frames throw. The markup has P7
+ checked, so a store that cannot be written still opens on the right tube;
+ only the CRT simulation is lost, and the board can turn it on. */
+ }
+})();
+
+(function () {
+ var $ = function (s) { return document.querySelector(s); };
+ var $$ = function (s) { return [].slice.call(document.querySelectorAll(s)); };
+ var pad = function (n, w) { n = String(n); while (n.length < w) n = "0" + n; return n; };
+ var clamp = function (v, lo, hi) { return v < lo ? lo : v > hi ? hi : v; };
+ var deg = function (d) { d %= 360; return d < 0 ? d + 360 : d; };
+
+ /* Bearings are always three digits and one decimal — 073.5°, never 73.5° —
+ because that is how they are spoken and how a helm order is read back. */
+ function brgStr(v) {
+ var s = deg(v).toFixed(1);
+ while (s.indexOf(".") < 3) s = "0" + s;
+ return s + "°";
+ }
+
+ function setText(el, s) {
+ if (el && el.textContent !== s) el.textContent = s;
+ }
+
+ /* MINSTD, as on the server page: 16807 * 2147483646 is exact in a double, so
+ the sequence is reproducible. */
+ var seed = 19831104;
+ function rnd() {
+ seed = (seed * 16807) % 2147483647;
+ return seed / 2147483647;
+ }
+
+ /* Wrap a discrete change so the screen it replaces drains per pixel instead of
+ cutting. The effects module declines safely when persistence is off or the
+ API is missing, so this is always callable. */
+ function withDecay(fn) {
+ var vt = window.AmberConsoleEffects && window.AmberConsoleEffects.transition;
+ if (typeof vt === "function") vt(fn);
+ else fn();
+ }
+
+ var beam = $("#beam");
+ var ppi = $("#ppi");
+ var panel = $("#scope-panel");
+
+ /* --- the picture ------------------------------------------------------ */
+
+ var range = 3; /* nautical miles to the edge of the face */
+ var eblBrg = 73.5; /* electronic bearing line, degrees relative */
+ var vrmRng = 1.62; /* variable range marker, NM */
+ var guard = { from: 40, to: 80, inner: 0.55 };
+
+ /* Receiver controls. These are the markup's values; nothing recomputes from
+ them until one is actually moved, so frame zero stays frame zero. */
+ var knobs = { gain: 62, sea: 30, rain: 12, tune: 84 };
+
+ /* Sea clutter is banded rather than continuous: each ring of wave tops needs
+ more suppression than the one outside it, which is exactly what a swept
+ gain control did. */
+ var CLUTTER_THRESHOLD = { 1: 40, 2: 60, 3: 80 };
+
+ /* The four tracked contacts. Bearing and range are what the set has measured;
+ the rates are per HOUR, so a revolution advances them by the real amount and
+ the plot moves at the speed the vessels are actually doing. A ferry at 17.5
+ knots closing head-on covers a third of a mile a minute, which is thirteen
+ revolutions — visible without anything being exaggerated. */
+ var TRACKS = {
+ 1: { brg: 41, rng: 1.86, dBrg: -2.1, dRng: -3.2, cpa: 0.4, tcpa: 430, state: "Tracked" },
+ 2: { brg: 105, rng: 1.32, dBrg: 4.8, dRng: 1.9, cpa: 1.1, tcpa: 760, state: "Tracked" },
+ 3: { brg: 168, rng: 2.25, dBrg: -0.7, dRng: -18.4, cpa: 0.9, tcpa: 355, state: "Tracked" },
+ 4: { brg: 214, rng: 0.9, dBrg: 1.2, dRng: 0.4, cpa: 0.9, tcpa: null, state: "Acquiring" }
+ };
+
+ /* Every contact on the face remembers the range it was drawn at, so a change
+ of range scale is a re-projection rather than a redraw from a table. */
+ var echoes = $$(".doc-echo").map(function (el) {
+ return {
+ el: el,
+ nm: parseFloat(el.style.getPropertyValue("--rng")) * 3,
+ brg: parseFloat(el.style.getPropertyValue("--brg")),
+ sz: parseFloat(el.style.getPropertyValue("--sz")),
+ clutter: Number(el.getAttribute("data-clutter") || 0),
+ land: el.classList.contains("doc-echo--land"),
+ trk: (el.id.match(/^echo-(\d)$/) || [])[1]
+ };
+ });
+
+ function placeEcho(e) {
+ var frac = e.nm / range;
+ var suppressed = e.clutter && knobs.sea >= CLUTTER_THRESHOLD[e.clutter];
+ e.el.hidden = frac > 1 || Boolean(suppressed);
+ if (frac <= 1) e.el.style.setProperty("--rng", frac.toFixed(4));
+ }
+
+ /* --- range scale ------------------------------------------------------ */
+
+ function setRange(nm, rings) {
+ if (nm === range) return;
+ /* The one change on this page big enough to be worth a framebuffer decay:
+ the entire picture is re-projected at once, and on a long phosphor the old
+ one is still draining while the new one fills in behind the beam. That is
+ what changing range looked like. */
+ withDecay(function () {
+ range = nm;
+ for (var i = 0; i < echoes.length; i++) placeEcho(echoes[i]);
+ paintMarkers();
+ paintHeadline();
+ /* The guard zone is a fraction of the range scale, so changing the scale
+ moves the zone rather than the traffic — a track that was inside it at
+ 3 NM is a fifth of the way out at 12. Re-evaluating here rather than
+ waiting for the next scan is the one place this page does not let the
+ beam be the clock, because an alarm that outlives its cause is worse
+ than one that arrives a scan early. */
+ paintTracks();
+ setText($("#ascope-max"), nm + " NM");
+ log(nm + " NM · RINGS " + rings);
+ });
+ }
+
+ $$("[data-range]").forEach(function (input) {
+ input.addEventListener("change", function () {
+ if (input.checked) setRange(Number(input.dataset.range), input.dataset.rings);
+ });
+ });
+
+ /* --- markers ---------------------------------------------------------- */
+
+ function paintMarkers() {
+ $("#ebl").style.setProperty("--brg", deg(eblBrg).toFixed(1));
+ setText($("#ebl-out"), brgStr(eblBrg));
+ $("#vrm").style.setProperty("--rng", (vrmRng / range).toFixed(4));
+ setText($("#vrm-out"), vrmRng.toFixed(2) + " NM");
+ setText($("#ascope-brg"), "Bearing " + brgStr(eblBrg));
+ }
+
+ $$("[data-ebl]").forEach(function (btn) {
+ btn.addEventListener("click", function () {
+ eblBrg = deg(eblBrg + Number(btn.dataset.ebl));
+ paintMarkers();
+ });
+ });
+
+ $$("[data-vrm]").forEach(function (btn) {
+ btn.addEventListener("click", function () {
+ vrmRng = clamp(vrmRng + Number(btn.dataset.vrm), 0.04, range);
+ paintMarkers();
+ });
+ });
+
+ /* --- receiver controls ------------------------------------------------ */
+
+ function setKnob(name, value) {
+ knobs[name] = clamp(value, 0, 100);
+ var meter = document.getElementById("k-" + name);
+ var track = meter.querySelector(".ac-meter__track");
+ track.style.setProperty("--ac-meter-value", String(knobs[name]));
+ track.setAttribute("aria-valuenow", String(knobs[name]));
+ setText(meter.querySelector("[data-pct]"), knobs[name] + "%");
+ applyReceiver();
+ }
+
+ /* What the controls actually DO to the picture, which is the half a panel of
+ dead knobs would be missing. */
+ function applyReceiver() {
+ for (var i = 0; i < echoes.length; i++) {
+ var e = echoes[i];
+
+ /* Anti-clutter sea: wave tops go band by band. Turn it far enough up and
+ the buoy inside the clutter goes with them, which is the mistake the
+ control has always invited. */
+ if (e.clutter) {
+ e.el.hidden = knobs.sea >= CLUTTER_THRESHOLD[e.clutter] || e.nm / range > 1;
+ continue;
+ }
+
+ /* Anti-clutter rain differentiates the video, so an extended return keeps
+ its leading edge and loses its body. Land is what that is visible on. */
+ if (e.land) {
+ e.el.style.setProperty("--sz", (e.sz * (1 - knobs.rain / 260)).toFixed(1));
+ }
+ }
+
+ /* Off-tune costs echo strength before it costs anything else. */
+ var q = 0.35 + 0.65 * (1 - Math.min(1, Math.abs(knobs.tune - 84) / 45));
+ ppi.style.filter = q >= 0.999 ? "" : "brightness(" + q.toFixed(2) + ")";
+ $("#ascope").style.filter = ppi.style.filter;
+ }
+
+ $$("[data-knob]").forEach(function (btn) {
+ btn.addEventListener("click", function () {
+ setKnob(btn.dataset.knob, knobs[btn.dataset.knob] + Number(btn.dataset.step));
+ });
+ });
+
+ /* --- soft keys -------------------------------------------------------- */
+
+ function exclusive(attr, btn) {
+ $$("[" + attr + "]").forEach(function (b) {
+ b.setAttribute("aria-pressed", String(b === btn));
+ });
+ }
+
+ $$("[data-trails]").forEach(function (btn) {
+ btn.addEventListener("click", function () {
+ exclusive("data-trails", btn);
+ /* The floor the contacts decay to, NOT .ac-afterglow — that class belongs
+ to the CRT simulation on the board. See the note in radar.html. */
+ panel.style.setProperty("--doc-trail-floor", btn.dataset.trails);
+ setText($("#st-trails"), "TRAILS " + btn.textContent.toUpperCase());
+ });
+ });
+
+ $$("[data-pulse]").forEach(function (btn) {
+ btn.addEventListener("click", function () {
+ exclusive("data-pulse", btn);
+ setText($("#tx-note"), "Pulse " + btn.dataset.pulse);
+ });
+ });
+
+ $$("[data-pres]").forEach(function (btn) {
+ btn.addEventListener("click", function () {
+ exclusive("data-pres", btn);
+ setText($("#st-pres"), btn.dataset.pres);
+ paintHeadline();
+ });
+ });
+
+ /* INTERFERENCE REJECTION. The switch shipped painted but unwired — it carried
+ no data-ac="toggle", so amber-console.js never bound it, and nothing here
+ listened either. It looked like a control and was set dressing.
+
+ The attribute is on it now, so the shared toggle handler flips aria-pressed
+ and the ON/OFF word, and this only has to follow it.
+
+ WATCHING THE ATTRIBUTE RATHER THAN THE CLICK, and that is a correctness fix
+ rather than a preference. A second `click` listener on the same element runs
+ in BIND order, and this file is a plain
+
+
+
+
diff --git a/docs/server.js b/docs/server.js
new file mode 100644
index 0000000..1456c67
--- /dev/null
+++ b/docs/server.js
@@ -0,0 +1,479 @@
+/* D-STAR server dashboard demo behavior. Vanilla, no dependencies.
+ *
+ * This file is DEMO logic only — the fiction of a machine that is running. The
+ * tab keyboard model, the PLASMA/CRT toggles, the display board and the dialog
+ * are handled by the framework's optional module (../dist/amber-console.js), so
+ * nothing generic lives here.
+ *
+ * TWO RULES SHAPE ALL OF IT, and both come from test/visual/capture.mjs.
+ *
+ * 1. THE MARKUP IS FRAME ZERO. Every number in server.html is what this file
+ * computes before the first tick, so the page a screenshot catches at 250ms
+ * is the page in the HTML. Nothing is randomized on load, and setInterval has
+ * no leading tick() — the first one lands at t=1s, well after the shutter.
+ * The single exception is the wall clock, which is painted immediately and is
+ * deterministic anyway because the harness freezes Date.
+ *
+ * 2. DRIFT IS SEEDED, NEVER Math.random(). A Lehmer generator with a fixed seed
+ * means two runs of the visual suite produce the same numbers even if the
+ * timing ever slips, so a baseline that differs is a real regression rather
+ * than the dice. The wall clock reads new Date(), which the harness freezes.
+ *
+ * The numbers are also INTERNALLY CONSISTENT rather than four independent
+ * wobbles: host CPU is the sum of what the containers are using, memory is what
+ * they have allocated plus the ARC, and both the package temperature and the
+ * wall draw are functions of the CPU. Stop Jellyfin and the machine gets cooler
+ * and cheaper, which is the whole reason a dashboard is worth looking at.
+ */
+/* ------------------------------------------------------------- P3 first -- *
+ * FIT THE RIGHT TUBE BEFORE THE FRAMEWORK LOOKS.
+ *
+ * Same mechanism as the radar and terminal demos, and the same reason. The
+ * chosen display is stored under one key namespace shared by every page in this
+ * repo, which is what makes it stick while you read the guide — and which means
+ * a visitor arriving from the console demo brings PLASMA · NEON with them. This
+ * page is a server dashboard on a P3 amber terminal, which is the tube most
+ * people mean by "amber terminal", so it fits its own.
+ *
+ * Note it seeds the SIMULATION as well as the palette. The board's markup ships
+ * with P3 checked and the CRT switch on (scripts/build.mjs writes both from the
+ * page's `emitter=` argument), but the framework restores simulations from their
+ * own storage keys rather than from the checked preset — a preset is a starting
+ * point, not a lock, so a simulation you switched yourself has to survive a
+ * reload. Without a seeded value there is nothing to restore and the SIMS
+ * defaults win, which is plasma. That is why the page opened amber-on-plasma.
+ *
+ * Runs at parse time, before the framework's DOMContentLoaded init reads any of
+ * it, so there is no frame of the wrong palette. On every later visit the flag
+ * is set and whatever you chose here is what you get.
+ * ------------------------------------------------------------------------- */
+(function () {
+ try {
+ if (localStorage.getItem("ac.server.fitted")) return;
+ localStorage.setItem("ac.sim.tech", "crt");
+ localStorage.setItem("ac.sim.emitter", "p3");
+ localStorage.setItem("ac.sim.crt", "1");
+ localStorage.setItem("ac.sim.plasma", "0");
+ localStorage.setItem("ac.sim.mod", "0");
+ localStorage.setItem("ac.server.fitted", "1");
+ } catch {
+ /* Private mode and sandboxed file:// frames throw. The markup has P3 checked
+ and the CRT switch on, so a store that cannot be written still opens on the
+ right tube; only the simulation is lost, and the board can turn it on. */
+ }
+})();
+
+(function () {
+ var $ = function (s) { return document.querySelector(s); };
+ var $$ = function (s) { return [].slice.call(document.querySelectorAll(s)); };
+ var pad = function (n, w) { n = String(n); while (n.length < w) n = "0" + n; return n; };
+ var clamp = function (v, lo, hi) { return v < lo ? lo : v > hi ? hi : v; };
+
+ /* Write only when the string actually changed.
+ This is not a micro-optimization. The afterglow simulation watches the frame
+ for text mutations and leaves a decaying ghost behind every one it sees, so
+ re-writing "ACTIVE" into eight rows every second would spray the panel with
+ ghosts of text that never changed and burn the ghost budget the mutations
+ that matter need. */
+ function setText(el, s) {
+ if (el && el.textContent !== s) el.textContent = s;
+ }
+
+ /* A value plus its unit, which is two nodes because .ac-readout__unit is a
+ smaller face — the digits have to keep the eye. */
+ function setValue(el, value, unitText) {
+ if (el.firstChild && el.firstChild.nodeType === 3 && el.childNodes.length === 2) {
+ setText(el.firstChild, value);
+ return;
+ }
+ el.textContent = value;
+ var span = document.createElement("span");
+ span.className = "ac-readout__unit";
+ span.textContent = unitText;
+ el.appendChild(span);
+ }
+
+ /* MINSTD. The multiplier is 16807 rather than a fatter one because
+ 16807 * 2147483646 is under 2^53 and therefore exact in a double — a bigger
+ constant silently loses the low bits and stops being reproducible, which is
+ the one property this generator exists for. */
+ var seed = 20260728;
+ function rnd() {
+ seed = (seed * 16807) % 2147483647;
+ return seed / 2147483647;
+ }
+ /* Symmetric noise: +/- `spread`, biased by nothing. */
+ function noise(spread) {
+ return (rnd() * 2 - 1) * spread;
+ }
+
+ /* --- the machine ------------------------------------------------------ */
+
+ var MEM_TOTAL = 32768; /* MB of RAM fitted */
+ var ARC = 14694; /* MB the filesystem cache holds regardless of load */
+ var hostSec = 3651067; /* 42d 06:11:07, the host's own uptime */
+
+ /* cpu is a percentage of one machine, mem is MB, up is that container's own
+ uptime in seconds — which resets to zero when it is started by hand. */
+ var SERVICES = {
+ caddy: { name: "Caddy", cpu: 0.4, mem: 62, up: 3564660, on: true },
+ postgres: { name: "Postgres", cpu: 2.1, mem: 884, up: 3564660, on: true },
+ immich: { name: "Immich", cpu: 7.8, mem: 2400, up: 1118400, on: true },
+ jellyfin: { name: "Jellyfin", cpu: 19.4, mem: 1100, up: 1118400, on: true },
+ paperless: { name: "Paperless", cpu: 0.9, mem: 410, up: 1118400, on: true },
+ grafana: { name: "Grafana", cpu: 1.6, mem: 236, up: 705300, on: true },
+ wireguard: { name: "Wireguard", cpu: 0.2, mem: 28, up: 3564660, on: true },
+ syncthing: { name: "Syncthing", cpu: 3.3, mem: 174, up: 705300, on: true }
+ };
+
+ /* Remember what each container idles at. A drift with no pull back toward a
+ baseline is a random walk, and a random walk always leaves: left running an
+ hour, every meter on the page ends up pinned at 100% and the dashboard has
+ quietly become a lie. */
+ for (var svcId in SERVICES) SERVICES[svcId].base = SERVICES[svcId].cpu;
+
+ var scrub = { running: false, pct: 0 };
+ var backupBusy = false;
+
+ /* --- log -------------------------------------------------------------- */
+
+ var LOG_MAX = 12;
+
+ function stamp() {
+ var d = new Date();
+ return pad(d.getHours(), 2) + ":" + pad(d.getMinutes(), 2) + ":" + pad(d.getSeconds(), 2);
+ }
+
+ /* Newest first. Built with createElement rather than innerHTML: the strings
+ are ours, but a log is the one place a demo should not teach the other
+ habit. */
+ function log(message) {
+ var list = $("#log");
+ var item = document.createElement("div");
+ item.className = "ac-list__item";
+
+ var key = document.createElement("dt");
+ key.className = "ac-list__key";
+ key.textContent = stamp();
+
+ var fill = document.createElement("span");
+ fill.className = "ac-list__fill";
+
+ var value = document.createElement("dd");
+ value.className = "ac-list__value";
+ value.textContent = message;
+
+ item.appendChild(key);
+ item.appendChild(fill);
+ item.appendChild(value);
+ list.insertBefore(item, list.firstChild);
+
+ while (list.children.length > LOG_MAX) {
+ var last = list.lastElementChild;
+ /* Leave a decaying copy behind rather than have the row blink out of
+ existence. A no-op unless the afterglow is running. */
+ if (window.AmberConsoleEffects) window.AmberConsoleEffects.afterglow(last);
+ list.removeChild(last);
+ }
+ }
+
+ /* --- services --------------------------------------------------------- */
+
+ function row(id) { return $('#services tr[data-svc="' + id + '"]'); }
+
+ function running() {
+ var n = 0;
+ for (var id in SERVICES) if (SERVICES[id].on) n++;
+ return n;
+ }
+
+ /* The headline, the status bar and the banner all say the same thing at three
+ volumes: a title you read once, a machine voice you glance at, and — only
+ when something is actually down — the loudest element the system has. */
+ function paintFleet() {
+ var n = running();
+ var down = 8 - n;
+
+ setText($("#headline"), "NODE 01 · " + n + " OF 8 SERVICES UP");
+ setText($("#running"), n + " OF 8 RUNNING");
+ setText($("#status"), "STATUS:" + (down ? "DEGRADED" : "NOMINAL"));
+
+ var slot = $("#alarm-slot");
+ var banner = slot.firstElementChild;
+
+ if (down && !banner) {
+ banner = document.createElement("div");
+ banner.className = "ac-banner ac-blink";
+ banner.setAttribute("role", "alert");
+ slot.appendChild(banner);
+ slot.hidden = false;
+ } else if (!down && banner) {
+ if (window.AmberConsoleEffects) window.AmberConsoleEffects.afterglow(banner);
+ slot.removeChild(banner);
+ slot.hidden = true;
+ return;
+ }
+ if (banner) {
+ setText(banner, down + (down === 1 ? " Service Down" : " Services Down"));
+ }
+ }
+
+ function paintService(id) {
+ var svc = SERVICES[id];
+ var tr = row(id);
+ var starting = tr.hasAttribute("data-starting");
+
+ setText(tr.querySelector("[data-cpu]"), svc.on ? svc.cpu.toFixed(1) + "%" : "—");
+ setText(tr.querySelector("[data-mem]"), svc.on
+ ? (svc.mem >= 1024 ? (svc.mem / 1024).toFixed(1) + " GB" : Math.round(svc.mem) + " MB")
+ : "—");
+ setText(tr.querySelector("[data-up]"), svc.on
+ ? pad(Math.floor(svc.up / 86400), 2) + "d " +
+ pad(Math.floor(svc.up / 3600) % 24, 2) + ":" +
+ pad(Math.floor(svc.up / 60) % 60, 2)
+ : "—");
+
+ var state = tr.querySelector("[data-state]");
+ if (starting) {
+ /* A spinner and not a meter, and the distinction is the component's own
+ rule: a machine that can measure progress shows a bar, one that cannot
+ admits it. Nothing here knows how long a container takes to come up. */
+ state.textContent = "";
+ var spin = document.createElement("span");
+ spin.className = "ac-spinner";
+ spin.setAttribute("role", "status");
+ spin.setAttribute("aria-label", "Starting");
+ state.appendChild(spin);
+ state.appendChild(document.createTextNode(" Starting"));
+ } else {
+ setText(state, svc.on ? "Active" : "Stopped");
+ }
+
+ /* Faint for anything not currently reporting, which includes a container on
+ its way up. With one hue available, "off" is said with brightness. */
+ if (svc.on && !starting) tr.removeAttribute("data-stopped");
+ else tr.setAttribute("data-stopped", "");
+
+ var btn = tr.querySelector("[data-svc-toggle]");
+ var lit = svc.on || starting;
+ btn.setAttribute("aria-pressed", String(lit));
+ btn.classList.toggle("ac-toggle--on", lit);
+ setText(btn.querySelector(".ac-toggle__state"), lit ? "ON" : "OFF");
+ }
+
+ /* The switch is wired here rather than with data-ac="toggle" on purpose: the
+ framework's own handler would flip it, and this needs the flip and its
+ consequences to happen in one place and in a known order. */
+ function setService(id, on) {
+ var svc = SERVICES[id];
+ var tr = row(id);
+
+ if (on) {
+ if (svc.on || tr.hasAttribute("data-starting")) return;
+ tr.setAttribute("data-starting", "");
+ paintService(id);
+ paintFleet();
+
+ setTimeout(function () {
+ tr.removeAttribute("data-starting");
+ svc.on = true;
+ svc.up = 0;
+ svc.cpu = svc.base;
+ paintService(id);
+ paintFleet();
+ paintHost();
+ log(svc.name.toUpperCase() + " ACTIVE");
+ }, 1600);
+ return;
+ }
+
+ if (!svc.on && !tr.hasAttribute("data-starting")) return;
+ svc.on = false;
+ tr.removeAttribute("data-starting");
+ paintService(id);
+ paintFleet();
+ paintHost();
+ log(svc.name.toUpperCase() + " STOPPED");
+ }
+
+ $$("[data-svc-toggle]").forEach(function (btn) {
+ btn.addEventListener("click", function () {
+ var id = btn.parentNode.parentNode.getAttribute("data-svc");
+ setService(id, btn.getAttribute("aria-pressed") !== "true");
+ });
+ });
+
+ $("#svc-all-on").addEventListener("click", function () {
+ for (var id in SERVICES) if (!SERVICES[id].on) setService(id, true);
+ });
+
+ /* --- host load -------------------------------------------------------- */
+
+ function setMeter(id, pct, label) {
+ var meter = document.getElementById(id);
+ var track = meter.querySelector(".ac-meter__track");
+ var shown = Math.round(pct);
+
+ track.style.setProperty("--ac-meter-value", String(shown));
+ track.setAttribute("aria-valuenow", String(shown));
+ setText(meter.querySelector("[data-pct]"), shown + "%");
+
+ var gb = meter.querySelector("[data-gb]");
+ if (gb && label) setText(gb, label);
+
+ /* Over-range inverse-videos the track and blinks it. There is no red. */
+ if (id === "m-cpu") meter.classList.toggle("ac-meter--alarm", shown > 90);
+ }
+
+ function paintHost() {
+ var cpu = 3.6;
+ var mem = ARC;
+ for (var id in SERVICES) {
+ if (!SERVICES[id].on) continue;
+ cpu += SERVICES[id].cpu * 0.85;
+ mem += SERVICES[id].mem;
+ }
+ /* A scrub is the machine reading every block it owns. It costs a core and
+ it pins the disks, which is the point of showing both meters at once. */
+ if (scrub.running) cpu += 11;
+ cpu = clamp(cpu, 1, 100);
+
+ setMeter("m-cpu", cpu);
+ setMeter("m-mem", (mem / MEM_TOTAL) * 100,
+ "Memory · " + (mem / 1024).toFixed(1) + " / 32 GB");
+ setMeter("m-io", scrub.running ? 92 : clamp(18 + noise(9), 0, 100));
+
+ /* Both of these are consequences, not readings: silicon that works harder
+ runs hotter and pulls more from the wall. */
+ setValue($("#v-temp"), String(Math.round(47.4 + cpu * 0.4)), "°C");
+ setValue($("#v-watts"), String(Math.round(52 + cpu * 0.65)), "W");
+ setText($("#v-load"), (cpu / 100 * 1.24).toFixed(2));
+ }
+
+ /* --- backup ----------------------------------------------------------- */
+
+ $("#backup").addEventListener("click", function () {
+ if (backupBusy) return;
+ backupBusy = true;
+
+ var btn = this;
+ btn.disabled = true;
+ btn.textContent = "Backup Running";
+ setText($("#b-when"), "In Progress");
+ log("BACKUP STARTED");
+
+ setTimeout(function () {
+ var size = (40 + rnd() * 4).toFixed(1);
+ setValue($("#b-size"), size, "GB");
+ setText($("#b-when"), "Completed " + stamp().slice(0, 5));
+ btn.disabled = false;
+ btn.textContent = "Run Backup Now";
+ backupBusy = false;
+ log("BACKUP OK " + size + " GB");
+ }, 3200);
+ });
+
+ /* --- scrub ------------------------------------------------------------ */
+
+ $("#scrub").addEventListener("click", function () {
+ if (scrub.running) return;
+ scrub.running = true;
+ scrub.pct = 0;
+ this.disabled = true;
+ this.textContent = "Scrub Running";
+ setText($("#s-state"), "Reading Tank · 10.9 TB");
+ log("SCRUB STARTED");
+ });
+
+ function paintScrub() {
+ var pct = Math.round(scrub.pct);
+ var track = $("#s-meter .ac-meter__track");
+ track.style.setProperty("--ac-meter-value", String(pct));
+ track.setAttribute("aria-valuenow", String(pct));
+ setValue($("#s-pct"), String(pct), "%");
+ }
+
+ /* --- clock and counters ----------------------------------------------- */
+
+ /* The clock and the uptime counter, and the ONE thing painted before the first
+ tick. Both are pure functions of the wall clock and of a fixed starting
+ count, so painting them on load is deterministic — and leaving them unpainted
+ is not free: the markup has to carry SOME time, and whatever it carries would
+ sit on the glass for a full second before the first tick corrected it. */
+ function paintClock() {
+ var d = new Date();
+ setText($("#clock"),
+ "TIME " + pad(d.getHours(), 2) + ":" + pad(d.getMinutes(), 2) + ":" + pad(d.getSeconds(), 2));
+
+ setText($("#uptime"),
+ "UP " + Math.floor(hostSec / 86400) + "D " +
+ pad(Math.floor(hostSec / 3600) % 24, 2) + ":" +
+ pad(Math.floor(hostSec / 60) % 60, 2) + ":" +
+ pad(hostSec % 60, 2));
+ setValue($("#v-uptime"), String(Math.floor(hostSec / 86400)), "d");
+ }
+
+ function tick() {
+ hostSec += 1;
+ paintClock();
+
+ /* Container load wanders around its own baseline rather than a shared one,
+ so a busy transcoder stays busy and a reverse proxy stays idle. */
+ for (var id in SERVICES) {
+ var svc = SERVICES[id];
+ if (!svc.on) continue;
+ svc.up += 1;
+ svc.cpu = clamp(
+ svc.cpu + (svc.base - svc.cpu) * 0.25 + noise(svc.base * 0.35 + 0.3), 0.1, 96);
+
+ /* A transcode. Roughly once a minute the media server takes most of the
+ machine for a few seconds, and the mean reversion above walks it back
+ down over the following ten. This exists to drive the CPU meter over
+ its range and into .ac-meter--alarm, which is the only way to see that
+ treatment on a page whose numbers are otherwise well behaved. */
+ if (id === "jellyfin" && rnd() < 0.02) svc.cpu = 85 + rnd() * 11;
+ paintService(id);
+ }
+
+ if (scrub.running) {
+ scrub.pct += 4.5 + noise(1.5);
+ if (scrub.pct >= 100) {
+ scrub.pct = 100;
+ scrub.running = false;
+ $("#scrub").disabled = false;
+ $("#scrub").textContent = "Start Scrub";
+ setText($("#s-state"), "Complete · 0 Errors");
+ log("SCRUB COMPLETE 0 ERR");
+ }
+ paintScrub();
+ }
+
+ setValue($("#n-down"), String(Math.round(clamp(118 + noise(46), 0, 940))), "Mb/s");
+ setValue($("#n-up"), String(Math.round(clamp(27 + noise(14), 0, 220))), "Mb/s");
+
+ paintHost();
+ }
+
+ /* No leading tick(). See rule 1 at the top of this file: the markup already IS
+ the first frame, and a tick here would redraw every number on the page
+ before the visual suite's shutter opens. Only the clock is painted, and only
+ because a stale one would be visible to a human for a whole second.
+
+ THE FIRST TICK IS HELD BACK TO SIX SECONDS, and that number is not taste.
+ capture.mjs waits for networkidle (500ms of quiet), injects a stylesheet,
+ waits 250ms, walks the whole DOM for the overflow probe, and opens whatever
+ tabs the page ships closed — then the shutter. A first tick inside that
+ window makes the same page screenshot as frame zero or frame one depending
+ on how busy the machine was, and the suite goes red at random.
+
+ THIS WAS 2.5 SECONDS AND IT WENT RED, which is why the margin is now this
+ wide. The window is not a property of this page: it grows every time a demo
+ is added to the suite, because a slower run delays every capture in it. 2.5
+ was comfortable at two pages and marginal at four. Six is clear of the whole
+ sequence, and nobody watching the page can tell the difference. */
+ paintClock();
+ setTimeout(function () {
+ tick();
+ setInterval(tick, 1000);
+ }, 6000);
+})();
diff --git a/docs/social-card.png b/docs/social-card.png
index 709996a..b645d1a 100644
Binary files a/docs/social-card.png and b/docs/social-card.png differ
diff --git a/docs/terminal.html b/docs/terminal.html
new file mode 100644
index 0000000..3fedb92
--- /dev/null
+++ b/docs/terminal.html
@@ -0,0 +1,769 @@
+
+
+
+
+
+
TELEMARK 400 MARKET TERMINAL — Amber Console
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Skip to content
+
+
+
+
+
+ Amber Console
+
+
+
+ DISPLAY:PLASMA · NEON
+
+ REV 2.0
+ A project by Diederik
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Switches
+
+
Simulation · never a color
+
+
+ Plasma OFF
+
+
+ CRT ON
+
+
+
+ Retrace Band ON
+
+
+
+
Style & engine · never the hardware
+
+
+
+ JS Effects ON
+
+
+
+ Classic Buttons ON
+
+
+
+
+
The retrace band is part of the CRT simulation, and there is no sweep across a plasma panel to switch off.
+
JS Effects need the CRT simulation and a phosphor that holds long enough to see.
+
JS Effects off: no ghosting, smear or framebuffer
+ decay. Everything else here is CSS.
+
+
+
Running · what CSS cannot do
+
+ Ghosting — rewritten text leaves its old value to decay
+ Scroll smear — the image trails while the page moves
+ Framebuffer decay — the old screen drains behind the new
+
+
+
+
+
+
+
+
State
+
+
+
Technology
+
+ PLASMA
+
+
+
Emitter
+
+ NEON
+
+
+
Emission
+
+ 585.2 nm
+
+
+
Mode
+
+ PRESET
+
+
+
Engine
+
+ CSS + JS
+
+
+
+
+
+
+
Technology
+
+
A gas in a sealed gap, struck by a
+ sustain pulse. It emits directly — no phosphor in the stack — so the panel lights one
+ hue and varies only how hard it is driven.
+
+
Argon puts most of its
+ output past 700nm, where the eye scores under 0.01 — so the 696.5nm peak above is the
+ strongest line, not the color. What you see is the faint 415–475nm group, a hundred
+ times weaker and a hundred times better placed. It is also why argon is a dim GAS — though not a dim palette: every stop here is solved to the same contrast ratio as every other, so what changes between displays is the hue, never the brightness.
+
Krypton spreads its
+ visible output across a blue-violet cluster at 427–450nm, a green line at 557.0nm and a
+ yellow one at 587.1nm. Spread that wide integrates close to white, which is why the
+ panel reads violet rather than any one of those colors.
+
A beam sweeps a phosphor coating,
+ which emits while struck and then persists. The color belongs to the phosphor, not the
+ beam; the P-number names the compound.
+
The gas the plasma panel was actually built on, and what this framework opens to. In a low-pressure glow the 2p→1s array dominates — the lowest excited states that radiate visibly, populated far more heavily than anything above them — so the discharge is one narrow orange-red rather than a mixture. Nixie tubes and the first flat panels ran on it.
+
The palest gas here, and structurally so: helium has no low-lying manifold to dominate the way the heavier gases do. Its visible lines all fall from n=3 and n=4 at comparable energies, so none outranks the rest and every one contributes. That integrates to near-white with a pink cast — 587.6nm carries the luminance while 447.1nm and 667.8nm pull it off the blackbody locus. A display gas by mixture rather than on its own.
+
Zn₂SiO₄:Mn — willemite, the oldest CRT phosphor and the one the first oscilloscopes and radar indicators were built around. A silicate host rather than a sulfide, so a narrow 48nm band against P31's 78nm: a purer green, and a less efficient one. P39 is this same compound with arsenic added to stretch the decay.
+
The amber terminal, and the ramp this framework was drawn against. Not a pure orange but a broad band with real green content — the fit lands at 594nm across 110nm — which is what holds amber text legible at small sizes. It was the standard alternative to green on office terminals, sold on being easier on the eyes across a working day.
+
ZnS:Cu — the green everybody actually pictures when they picture a terminal or a laboratory oscilloscope. It carries the highest luminous efficiency of any phosphor here, sitting near the peak of the eye's photopic curve, which is why it displaced the willemites for anything meant to be looked at directly rather than photographed.
+
The radar phosphor, and it went onto scope tubes for a reason: the flash gives
+ position and the trail gives history. Two coatings, not one. The beam writes into a blue
+ ZnS:Ag layer that decays in microseconds, and that layer's own photons pump a
+ yellow-green one behind it which holds for seconds. So the ink is blue and the halo is
+ green: text you are reading is being re-struck sixty times a second, and text that stops
+ being written leaves only the glow.
+
P1's willemite with arsenic added, which lengthens the decay by orders of magnitude
+ and leaves the color alone — this palette and P1 are the same green, and differ only in
+ how long it lasts. At hundreds of milliseconds the screen is still near full brightness
+ when the next refresh arrives, so there is no flicker to see at any refresh rate. It is
+ paid for in smear.
+
A photographic-recording phosphor. Blue is where film emulsion is most sensitive, so
+ P11 was fitted to screens meant to be photographed rather than watched — and watched, it
+ is the worst screen here. It decays in tens of microseconds, three orders below a
+ refresh interval, so the screen is genuinely dark between frames. Short persistence and
+ heavy flicker are the same fact.
+
The television white, and a BLEND rather than a cascade: a blue and a yellow emitter
+ mixed into one coating, emitting together, which the eye integrates to white. That is
+ what separates it from P7 — two powders mixed have one color, two powders layered emit
+ in sequence and the color changes as you watch.
+
+
+
+
+
+
+
+
+
+
+
+
+
TELEMARK
+
FXSP · SPOT FOREIGN EXCHANGE
+
+
+
+
+
LON
+
+ 00:00:00
+
+
+
NYC
+
+ 00:00
+
+
+
TOK
+
+ 00:00
+
+
+
+
+
+
+
Page
+
+
+ Code:
+
+
+
+ FXSP
+ XRAT
+ DEPO
+ GOVT
+ INDX
+
+
+
+
+ Hold OFF
+
+
+
Type a page code and press Enter. FXSP · XRAT · DEPO · GOVT · INDX
+
+
+
+
+
FXSP · Spot Foreign Exchange
+
+
+
+
+
+
XRAT · Cross Rates
+
+
Read across. JPY, FRF and NLG per 100 · ITL per 1000 ·
+ computed 14:32
+
+
+
+
+
DEPO · Eurocurrency Deposits
+
+
Bid-offer, per cent per annum, in sixteenths.
+
+
+
+
+
GOVT · Government Bonds
+
+
Treasuries and gilts in 32nds · bunds, OATs and JGBs decimal · spread to the 10-year Treasury in basis points.
+
+
+
+
+
INDX · Index Summary
+
+
+
+
+
+
+
Book · Spot
+
+
+ NET USD
+
+ -10,950
+
+
+
+
+
Session
+
+
+
Date
+
+ TUE 15 MAR 88
+
+
+
Turnover
+
+ USD 1.284 BN
+
+
+
Tickets
+
+ 218
+
+
+
Contributors
+
+ 142 OF 147
+
+
+
Updates
+
+ 0
+
+
+
+
ITL Limit Down
+
+
+
+
+
+
+
+
+
USD/DEM 1.7825 -58 · USD/JPY 128.45 -45 · GBP/USD 1.7640 +26 · USD/CHF 1.4285 -31 · USD/FRF 6.0150 -190 · USD/NLG 2.0075 -64 · USD/ITL 1268.50 -310 · USD/CAD 1.3125 +14 · USD/BEF 37.250 -115 · DEM/JPY 72.04 +9 · GBP/DEM 3.1450 -42 · ECU/USD 1.1685 +18 · XAU/USD 478.30 +210 · XAG/USD 6.4750 -21 · USD/DEM 1.7825 -58 · USD/JPY 128.45 -45 · GBP/USD 1.7640 +26 · USD/CHF 1.4285 -31 · USD/FRF 6.0150 -190 · USD/NLG 2.0075 -64 · USD/ITL 1268.50 -310 · USD/CAD 1.3125 +14 · USD/BEF 37.250 -115 · DEM/JPY 72.04 +9 · GBP/DEM 3.1450 -42 · ECU/USD 1.1685 +18 · XAU/USD 478.30 +210 · XAG/USD 6.4750 -21 ·
+
+
+
+ LINE 1 OK · 9600 BAUD
+ PAGE FXSP
+ RUNNING
+
+ READY
+
+
+
+
+
+
+
+
+
diff --git a/docs/terminal.js b/docs/terminal.js
new file mode 100644
index 0000000..3fa2185
--- /dev/null
+++ b/docs/terminal.js
@@ -0,0 +1,443 @@
+/* TELEMARK 400 market terminal demo behavior. Vanilla, no dependencies.
+ *
+ * Demo logic only. The tab keyboard model, the display board and the toggles are
+ * the framework's (../dist/amber-console.js); the ghosting is the effects
+ * module's (../dist/amber-console.effects.js). What is left here is the fiction
+ * of a line that is delivering prices.
+ *
+ * THE GHOST BUDGET IS WHAT SHAPES THIS FILE, and it is worth writing down
+ * because the constraint and the period behavior turn out to be the same thing.
+ *
+ * amber-console.effects.js caps concurrent ghosts at GHOST_LIMIT = 24, and
+ * MAX_GENERATIONS = 4 decides whether a rewrite gets the emitter's full tail or
+ * the capped fast path. A page that repriced forty cells at once would blow both
+ * in a single tick and the screen would turn to mush.
+ *
+ * It never happened on the real thing either. A contributed page did not update
+ * wholesale — one bank revised one pair, and that cell was the only thing on the
+ * screen that moved. So this file reprices ONE INSTRUMENT PER TICK and writes
+ * three or four cells doing it. On P39 (--ac-persist: 2000ms) the fast-path
+ * threshold is tail/4 = 500ms, so the 1400ms cadence below runs the FULL tail:
+ * two legible generations of the same quote, which is exactly the effect the
+ * constant was written for. Concurrent ghosts settle around six.
+ *
+ * Determinism, as on the server and radar pages: THE MARKUP IS FRAME ZERO. Every
+ * number in terminal.html is what this file would compute before the first tick;
+ * nothing is randomized on load; drift comes from a seeded Lehmer generator
+ * rather than Math.random; and the first tick is held to 2.5s so it lands well
+ * clear of the visual suite's shutter, measured at 800-1300ms. Only the three
+ * clocks are painted at load, and they read a Date the harness freezes.
+ */
+
+/* ------------------------------------------------------------ P39 first -- *
+ * FIT THE RIGHT TUBE BEFORE THE FRAMEWORK LOOKS.
+ *
+ * Same mechanism, and the same reasoning, as the note at the top of radar.js:
+ * the chosen display is stored under one key namespace shared by every page in
+ * this repo, so a visitor arriving from the console demo brings PLASMA · NEON
+ * with them. Neon is a 105ms panel. On it a reprice is simply gone by the next
+ * frame, and the argument this page exists to make — that you can read the value
+ * a quote replaced — has nothing to stand on.
+ *
+ * P39 is willemite with arsenic: the same green as P1 with the decay lengthened
+ * by orders of magnitude. On a first visit this seeds it and records that it has
+ * done so, at parse time, before the framework's DOMContentLoaded init reads any
+ * of it — so there is no frame of the wrong palette. On every later visit the
+ * flag is set and whatever you chose here is what you get.
+ * ------------------------------------------------------------------------- */
+(function () {
+ try {
+ if (localStorage.getItem("ac.term.fitted")) return;
+ localStorage.setItem("ac.sim.tech", "crt");
+ localStorage.setItem("ac.sim.emitter", "p39");
+ localStorage.setItem("ac.sim.crt", "1");
+ localStorage.setItem("ac.sim.plasma", "0");
+ localStorage.setItem("ac.sim.mod", "0");
+ localStorage.setItem("ac.term.fitted", "1");
+ } catch {
+ /* Private mode and sandboxed file:// frames throw. The markup has P39
+ checked, so a store that cannot be written still opens on the right tube;
+ only the CRT simulation is lost, and the board can turn it on. */
+ }
+})();
+
+(function () {
+ var $ = function (s) { return document.querySelector(s); };
+ var $$ = function (s) { return [].slice.call(document.querySelectorAll(s)); };
+ var pad = function (n, w) { n = String(n); while (n.length < w) n = "0" + n; return n; };
+
+ function setText(el, s) {
+ if (el && el.textContent !== s) el.textContent = s;
+ }
+
+ /* MINSTD, as on the other two demo pages: 16807 * 2147483646 is exact in a
+ double, so the sequence is reproducible run to run. */
+ var seed = 15031988;
+ function rnd() {
+ seed = (seed * 16807) % 2147483647;
+ return seed / 2147483647;
+ }
+ var pick = function (arr) { return arr[Math.floor(rnd() * arr.length)]; };
+
+ /* Wrap a discrete change so the screen it replaces drains per pixel. Declines
+ safely when persistence is off or the API is missing. */
+ function withDecay(fn) {
+ var vt = window.AmberConsoleEffects && window.AmberConsoleEffects.transition;
+ if (typeof vt === "function") vt(fn);
+ else fn();
+ }
+
+ /* ------------------------------------------------------------- quotes -- */
+
+ /* Read the page rather than carry a second copy of it. The markup is the
+ source of truth for frame zero, so parsing it back is what guarantees the
+ first tick continues from exactly what is on the glass. */
+ var QUOTES = $$("#fxsp tr").map(function (tr) {
+ var cell = function (q) { return tr.querySelector('[data-q="' + q + '"]'); };
+ var dp = (cell("bid").textContent.split(".")[1] || "").length;
+ return {
+ tr: tr,
+ pair: tr.getAttribute("data-pair"),
+ dp: dp,
+ pip: Math.pow(10, -dp),
+ bid: parseFloat(cell("bid").textContent),
+ ask: parseFloat(cell("ask").textContent),
+ high: parseFloat(cell("high").textContent),
+ low: parseFloat(cell("low").textContent),
+ net: parseInt(cell("net").textContent, 10),
+ cell: cell
+ };
+ });
+
+ var BY_PAIR = {};
+ QUOTES.forEach(function (q) { BY_PAIR[q.pair] = q; });
+
+ /* A field that has just changed inverts for a moment. That is how these
+ screens flagged an update before a color tube was affordable, and it is the
+ law-1 answer to the same question today. The ghost of the old value is the
+ effects module's doing and is a separate mechanism — together they read as
+ one event, which is the point. */
+ var TICK_MS = 1500;
+ function flash(el) {
+ if (!el) return;
+ el.classList.add("doc-tick");
+ clearTimeout(el._t);
+ el._t = setTimeout(function () { el.classList.remove("doc-tick"); }, TICK_MS);
+ }
+
+ function quoteTime() {
+ var d = new Date();
+ return pad(d.getUTCHours(), 2) + ":" + pad(d.getUTCMinutes(), 2);
+ }
+
+ var updates = 0;
+ var tickets = 218;
+
+ /* ONE INSTRUMENT, THREE OR FOUR CELLS. See the note at the top of the file:
+ this budget is the whole reason the page reads as a market rather than as a
+ screensaver. */
+ function reprice() {
+ var q = pick(QUOTES);
+
+ /* A move of one to six pips, occasionally a jump. Spreads widen when it
+ moves hard, which is the first thing that happens on a real screen and the
+ last thing a demo usually bothers with. */
+ var jump = rnd() < 0.08;
+ var pips = Math.ceil(rnd() * (jump ? 14 : 6));
+ var dir = rnd() < 0.5 ? -1 : 1;
+ var spread = Math.round((q.ask - q.bid) / q.pip);
+ if (jump) spread = Math.min(spread + Math.ceil(rnd() * 4), spread * 3);
+
+ q.bid = +(q.bid + dir * pips * q.pip).toFixed(q.dp);
+ q.ask = +(q.bid + spread * q.pip).toFixed(q.dp);
+ q.net += dir * pips;
+
+ setText(q.cell("bid"), q.bid.toFixed(q.dp));
+ setText(q.cell("ask"), q.ask.toFixed(q.dp));
+ setText(q.cell("net"), (q.net >= 0 ? "+" : "") + q.net);
+ setText(q.cell("time"), quoteTime());
+ flash(q.cell("bid"));
+ flash(q.cell("ask"));
+
+ /* The extremes only move when they are actually taken out, which is most
+ ticks writing nothing here at all. */
+ if (q.bid > q.high) {
+ q.high = q.bid;
+ setText(q.cell("high"), q.high.toFixed(q.dp));
+ flash(q.cell("high"));
+ } else if (q.bid < q.low) {
+ q.low = q.bid;
+ setText(q.cell("low"), q.low.toFixed(q.dp));
+ flash(q.cell("low"));
+ }
+
+ updates += 1;
+ if (rnd() < 0.35) tickets += 1;
+ return q;
+ }
+
+ /* --------------------------------------------------------------- book -- */
+
+ /* The desk is marked every fourth tick rather than every one. A book being
+ revalued on every quote in the market is not how it worked, and it is three
+ more cell rewrites per tick against a budget this page is deliberately
+ spending carefully. */
+ var BOOK = {
+ DEM: { pos: 12500000, avg: 1.7802, pair: "USD/DEM", inverse: true },
+ JPY: { pos: -850000000, avg: 128.92, pair: "USD/JPY", inverse: true },
+ GBP: { pos: 3000000, avg: 1.7688, pair: "GBP/USD", inverse: false },
+ CHF: { pos: 0, avg: null, pair: "USD/CHF", inverse: true }
+ };
+
+ var group = function (n) {
+ return (n < 0 ? "-" : "+") + Math.abs(Math.round(n)).toLocaleString("en-US");
+ };
+
+ function markBook() {
+ var net = 0;
+ for (var ccy in BOOK) {
+ var b = BOOK[ccy];
+ var q = BY_PAIR[b.pair];
+ if (!q) continue;
+ var mid = (q.bid + q.ask) / 2;
+ var row = $('#book tr[data-book="' + ccy + '"]');
+
+ /* USD/XXX is quoted the other way up from the position it creates, so the
+ P&L is in dollars either way — which is the column heading. */
+ var pnl = b.avg === null ? 0
+ : b.inverse ? b.pos * (1 / mid - 1 / b.avg)
+ : b.pos * (mid - b.avg);
+
+ setText(row.querySelector("[data-mark]"), mid.toFixed(q.dp));
+ setText(row.querySelector("[data-pnl]"), b.pos === 0 ? "0" : group(pnl));
+ net += pnl;
+ }
+ setText($("#pnl-net"), group(net));
+ }
+
+ /* --------------------------------------------------------------- page -- */
+
+ var PAGES = ["FXSP", "XRAT", "DEPO", "GOVT", "INDX"];
+ var TITLES = {
+ FXSP: "SPOT FOREIGN EXCHANGE",
+ XRAT: "CROSS RATES",
+ DEPO: "EUROCURRENCY DEPOSITS",
+ GOVT: "GOVERNMENT BONDS",
+ INDX: "INDEX SUMMARY"
+ };
+
+ var MID_UNIT = { USD: 1, DEM: 1, JPY: 100, GBP: 1, CHF: 1, FRF: 100, NLG: 100, ITL: 1000 };
+ var MID_CCY = ["USD", "DEM", "JPY", "GBP", "CHF", "FRF", "NLG", "ITL"];
+
+ /* THE MATRIX IS RECOMPUTED WHEN THE PAGE IS ASKED FOR, not as the spot page
+ moves. Two reasons, and they agree: a page terminal computed a page when you
+ called it up, and repricing 56 cells behind a tab nobody is looking at would
+ be the one thing on this page capable of emptying the ghost budget in a
+ single frame. Deriving it from the live quotes is also what stops the two
+ pages ever contradicting each other. */
+ function paintCrossRates() {
+ var mid = { USD: 1 };
+ var legs = {
+ DEM: "USD/DEM", JPY: "USD/JPY", CHF: "USD/CHF",
+ FRF: "USD/FRF", NLG: "USD/NLG", ITL: "USD/ITL"
+ };
+ for (var c in legs) {
+ var q = BY_PAIR[legs[c]];
+ mid[c] = (q.bid + q.ask) / 2;
+ }
+ var g = BY_PAIR["GBP/USD"];
+ mid.GBP = 1 / ((g.bid + g.ask) / 2);
+
+ var sig = function (v) {
+ if (v >= 10000) return Math.round(v).toLocaleString("en-US");
+ if (v >= 1000) return v.toFixed(1);
+ if (v >= 100) return v.toFixed(2);
+ if (v >= 10) return v.toFixed(3);
+ return v.toFixed(4);
+ };
+
+ var rows = $$("#xrat tr");
+ for (var r = 0; r < MID_CCY.length; r++) {
+ var row = MID_CCY[r];
+ var cells = rows[r].querySelectorAll("td");
+ var i = 0;
+ for (var k = 0; k < MID_CCY.length; k++) {
+ var col = MID_CCY[k];
+ if (col === row) { i++; continue; }
+ setText(cells[i], sig((mid[col] / mid[row]) * MID_UNIT[row]));
+ i++;
+ }
+ }
+ /* Stamped, because it is a snapshot and saying so is the difference between
+ a derived page and a page that is quietly stale. */
+ setText($("#xrat-at"), quoteTime());
+ }
+
+ var current = "FXSP";
+ var TABS = $$("[data-code]");
+
+ /* Exactly what initTabs' own select() does in amber-console.js, done here
+ instead. THE POINT IS TO OWN THE MOMENT IT HAPPENS: the panel swap has to
+ occur INSIDE the view transition's callback or the framebuffer decay has
+ nothing to compare against, and a listener on the container cannot promise
+ that. The soft key stops the event before it reaches the framework's
+ delegated handler and calls this instead, so both doors — the key and the
+ entry line — go through one place and the screen drains either way.
+ The framework keeps the roving tabindex and the arrow keys, which is the
+ half of a tablist worth having and the half that is tedious to get right. */
+ function select(code) {
+ for (var i = 0; i < TABS.length; i++) {
+ var tab = TABS[i];
+ var on = tab.getAttribute("data-code") === code;
+ tab.setAttribute("aria-selected", String(on));
+ tab.tabIndex = on ? 0 : -1;
+ tab.classList.toggle("ac-tab--active", on);
+ var panel = document.getElementById(tab.getAttribute("aria-controls"));
+ if (panel) panel.hidden = !on;
+ }
+ current = code;
+ setText($("#headline"), code + " · " + TITLES[code]);
+ setText($("#st-page"), "PAGE " + code);
+ setText($("#st-msg"), "PAGE " + code + " RETRIEVED");
+ $("#page-entry").value = code;
+ $("#page-entry").removeAttribute("aria-invalid");
+ }
+
+ function showPage(code) {
+ code = String(code || "").trim().toUpperCase();
+ if (PAGES.indexOf(code) === -1) {
+ $("#page-entry").setAttribute("aria-invalid", "true");
+ setText($("#st-msg"), "PAGE " + (code || "?") + " NOT FOUND");
+ return false;
+ }
+ if (code === current) {
+ $("#page-entry").removeAttribute("aria-invalid");
+ return true;
+ }
+
+ /* Changing page on a long phosphor is not a cut. The old screen is still
+ draining while the new one fills in underneath it — the same call the
+ radar page uses for a range change. The matrix is recomputed inside the
+ callback so it is already right in the frame being transitioned to. */
+ withDecay(function () {
+ if (code === "XRAT") paintCrossRates();
+ select(code);
+ });
+ return true;
+ }
+
+ TABS.forEach(function (tab) {
+ tab.addEventListener("click", function (e) {
+ /* Keep it away from the framework's delegated handler on the container —
+ it would swap the panels a second time, outside the transition. */
+ e.stopPropagation();
+ showPage(tab.getAttribute("data-code"));
+ });
+ });
+
+ $("#page-entry").addEventListener("keydown", function (e) {
+ if (e.key !== "Enter") return;
+ e.preventDefault();
+ showPage(this.value);
+ });
+ $("#page-entry").addEventListener("input", function () {
+ this.removeAttribute("aria-invalid");
+ });
+
+ /* --------------------------------------------------------------- hold -- */
+
+ var held = false;
+ $("#hold").addEventListener("click", function () {
+ held = this.getAttribute("aria-pressed") !== "true";
+ this.setAttribute("aria-pressed", String(held));
+ this.classList.toggle("ac-toggle--on", held);
+ setText(this.querySelector(".ac-toggle__state"), held ? "ON" : "OFF");
+ setText($("#st-hold"), held ? "HELD" : "RUNNING");
+ setText($("#st-msg"), held ? "PAGE HELD" : "READY");
+ });
+
+ /* -------------------------------------------------------------- clocks -- */
+
+ /* One wall clock, three offsets. March 1988: London is on GMT until the 27th,
+ New York five hours behind it, Tokyo nine ahead.
+
+ ONLY THE LOCAL CLOCK CARRIES SECONDS, and that is a ghost-budget decision as
+ much as a period one. Three fields rewriting every second is six concurrent
+ ghosts on a two-second tail before the market has quoted anything — a fixed
+ charge against a budget of twenty-four, levied on the least interesting text
+ on the screen. Seconds on the clock you are working to and hours and minutes
+ on the two you are working AGAINST is also what a dealing room's wall looked
+ like. */
+ var ZONES = [["#clk-lon", 0, true], ["#clk-nyc", -5, false], ["#clk-tok", 9, false]];
+
+ function paintClocks() {
+ var d = new Date();
+ var base = d.getUTCHours() * 3600 + d.getUTCMinutes() * 60 + d.getUTCSeconds();
+ for (var i = 0; i < ZONES.length; i++) {
+ var t = ((base + ZONES[i][1] * 3600) % 86400 + 86400) % 86400;
+ var hhmm = pad(Math.floor(t / 3600), 2) + ":" + pad(Math.floor(t / 60) % 60, 2);
+ setText($(ZONES[i][0]), ZONES[i][2] ? hhmm + ":" + pad(t % 60, 2) : hhmm);
+ }
+ }
+
+ /* ---------------------------------------------------------------- run -- */
+
+ var ticks = 0;
+
+ function tick() {
+ if (held) return;
+ reprice();
+ ticks += 1;
+
+ /* The book and the session counters share the slow cycle. Every one of these
+ is a text rewrite and therefore a ghost, and a running total refreshed on
+ every quote in the market would spend a third of the budget on two numbers
+ nobody is watching tick. A desk statistic updating every few seconds is
+ also what these panels actually did. */
+ if (ticks % 4 === 0) {
+ markBook();
+ setText($("#updates"), String(updates));
+ setText($("#tickets"), String(tickets));
+
+ /* THE MATRIX IS NOT REFRESHED HERE, and that is deliberate — it is a
+ SNAPSHOT, computed when the page is called up and stamped with the time
+ it was computed. Which is what a cross rate page was: a derived page,
+ not a feed.
+
+ It is also the only shape that fits the budget. One leg moving changes
+ that currency's whole row and its whole column, so a live repaint is
+ fourteen visible cells at once — measured, that alone held twenty of the
+ twenty-four ghosts the engine allows, and the quote trails this page
+ exists to show were being evicted to make room for it. Wrapping it in a
+ framebuffer decay does not help either, which is worth writing down:
+ transition() snapshots the screen, but the mutations inside the callback
+ still reach the observer and still ghost. There is no way to spend less
+ than fourteen except not to spend it. */
+ }
+ }
+
+ /* THE MARKET IS DRIVEN BY AN ANIMATION, NOT A TIMER, and that is a
+ determinism decision before it is anything else.
+
+ The other two demos hold their first tick back by a fixed delay chosen to
+ clear the visual suite's shutter. That works until the suite grows: every
+ page added makes every run slower, and this page made it slower than most —
+ capture.mjs probes the whole DOM six times here, once per page it opens, and
+ this is the largest DOM in the repo. A 2.5s delay went red. So did six.
+
+ A delay is the wrong instrument for the job. capture.mjs kills every
+ animation on the page before it shoots, so an animation-driven tick cannot
+ fire during a capture AT ALL — not unlikely-to, cannot — and the baseline is
+ frame zero by construction at any machine speed. docs/radar.js already runs
+ on this principle, where the sweep's own rotation is the clock; the metronome
+ below is the same idea for a page that has no rotating part to borrow.
+
+ It follows that a reader who has asked for reduced motion gets a static
+ page. That is the right answer rather than a side effect: the ghosting, the
+ inverse-video flash and the tape are the motion, and a market that reprices
+ under someone who asked things to stop moving is not honouring the request.
+ Every number stays on the glass and stays legible. */
+ paintClocks();
+ setInterval(paintClocks, 1000);
+ $("#metronome").addEventListener("animationiteration", tick);
+})();
diff --git a/package.json b/package.json
index c88b6fc..24f6d0a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "amber-console",
- "version": "1.0.0",
+ "version": "2.0.0",
"description": "A monochrome amber-terminal CSS framework — the look of a late-1980s industrial control panel. Zero runtime dependencies.",
"keywords": [
"css",
@@ -13,7 +13,7 @@
"monochrome",
"no-dependencies"
],
- "license": "MIT",
+ "license": "BSD-3-Clause",
"author": "Diederik (https://diederik.blog)",
"type": "module",
"main": "dist/amber-console.css",
@@ -22,7 +22,10 @@
"*.css",
"./dist/amber-console.js",
"./dist/amber-console.global.js",
- "./src/amber-console.js"
+ "./dist/amber-console.effects.js",
+ "./dist/amber-console.effects.global.js",
+ "./src/amber-console.js",
+ "./src/amber-console.effects.js"
],
"exports": {
".": "./dist/amber-console.css",
@@ -31,6 +34,8 @@
"./min": "./dist/amber-console.min.css",
"./js": "./dist/amber-console.js",
"./js/global": "./dist/amber-console.global.js",
+ "./effects": "./dist/amber-console.effects.js",
+ "./effects/global": "./dist/amber-console.effects.global.js",
"./src/*": "./src/*",
"./fonts/*": "./fonts/*",
"./package.json": "./package.json"
@@ -39,8 +44,11 @@
"dist",
"src",
"fonts",
+ "starter.html",
"README.md",
"CHANGELOG.md",
+ "DEPRECATIONS.md",
+ "RATIONALE.md",
"LICENSE"
],
"scripts": {
@@ -52,7 +60,9 @@
"dev": "node scripts/build.mjs --watch --serve",
"lint": "stylelint \"src/**/*.css\"",
"test:visual": "node test/visual/capture.mjs",
- "test": "npm run check && npm run contrast && npm run build"
+ "test:computed": "node test/computed/capture.mjs",
+ "test": "npm run lint && npm run check && npm run gas -- --check && npm run contrast && npm run build",
+ "gas": "node scripts/derive-gas.mjs"
},
"devDependencies": {
"playwright": "^1.62.0",
@@ -64,7 +74,7 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/DutchDiederik/amber-console.git"
+ "url": "git+https://github.com/DutchDiederik/AmberConsole.git"
},
- "homepage": "https://github.com/DutchDiederik/amber-console#readme"
+ "homepage": "https://github.com/DutchDiederik/AmberConsole#readme"
}
diff --git a/scripts/build.mjs b/scripts/build.mjs
index 5387b31..de1921d 100644
--- a/scripts/build.mjs
+++ b/scripts/build.mjs
@@ -16,7 +16,7 @@
* dist/amber-console.layer.css the bundle wrapped in @layer amber-console
* dist/amber-console.js copy of the optional behavior module
*/
-import { readFile, writeFile, mkdir, copyFile } from "node:fs/promises";
+import { readFile, writeFile, mkdir, readdir } from "node:fs/promises";
import { watch } from "node:fs";
import { fileURLToPath } from "node:url";
import path from "node:path";
@@ -185,7 +185,7 @@ function minify(css) {
/** Indenting inside @layer would churn the diff; a bare wrap is enough. */
function wrapLayer(css) {
const banner =
- `/* Amber Console ${VERSION} — @layer build.\n` +
+ `/*! Amber Console ${VERSION} | BSD-3-Clause | @layer build.\n` +
` * Identical to amber-console.css, wrapped in @layer amber-console so the\n` +
` * framework loses specificity fights against your own unlayered rules.\n` +
` * Link this INSTEAD OF amber-console.css, never alongside it.\n` +
@@ -203,23 +203,334 @@ function wrapLayer(css) {
* double-clicking it" is a hard requirement, the pages load this build instead.
* The module build stays the canonical one for bundlers and npm consumers.
*/
-function toGlobal(source) {
+/**
+ * The optional modules, as [source file, global name, exported functions].
+ *
+ * amber-console.js is BEHAVIOR — tablist, dialogs, toggles, DISPLAY presets.
+ * amber-console.effects.js is PERSISTENCE — ghosting, scroll smear, framebuffer
+ * decay. Separately optional on purpose: accessible tabs without the eye-candy,
+ * or the full phosphor simulation over somebody else's tab implementation.
+ */
+const MODULES = [
+ ["amber-console.js", "AmberConsole", ["init", "afterglow"]],
+ ["amber-console.effects.js", "AmberConsoleEffects", ["init", "afterglow", "transition"]],
+];
+
+/**
+ * THE SOURCE BANNER, STAMPED WITH THE VERSION src/ IS NOT ALLOWED TO CARRY.
+ *
+ * Same rule as the stylesheet — see the header of src/amber-console.css. The
+ * two JS modules open with an unversioned `/*! … *\/` line so nothing in src/
+ * can drift from package.json, and both dist/ flavors get the number written in
+ * here on the way out. The ESM builds used to be a straight copyFile, which
+ * meant they were the only two files in dist/ shipping without a version.
+ */
+const stampBanner = (source) =>
+ source.replace(/^\/\*! Amber Console \|/, `/*! Amber Console ${VERSION} |`);
+
+function toGlobal(source, file, globalName, exports) {
const body = source
+ /* The classic-script banner below says everything the source banner says
+ and more, so the source one is dropped rather than nested inside it. */
+ .replace(/^\/\*! Amber Console \|[^\n]*\n/, "")
.replace(/^export default [\s\S]*?;\s*$/m, "")
.replace(/^export /gm, "")
.trim();
+ const surface = exports.map((n) => `${n}: ${n}`).join(", ");
+
return (
- `/*! Amber Console ${VERSION} | MIT | classic-script build\n` +
- ` * Generated from src/amber-console.js by scripts/build.mjs.\n` +
+ `/*! Amber Console ${VERSION} | BSD-3-Clause | classic-script build\n` +
+ ` * Generated from src/${file} by scripts/build.mjs.\n` +
` * Use this with a plain .
* Using React/Vue/Svelte? Skip it — drive the same ARIA attributes yourself and
* the CSS follows.
@@ -25,14 +41,23 @@
const STORE_PREFIX = "ac.sim.";
/**
- * Live, so a preference changed mid-session is honoured without a reload — and
- * guarded, so importing this module in a Node/SSR pass does not throw before it
- * reaches the DOM check at the bottom of the file.
+ * Wrap a DOM change so the screen it replaces decays per pixel.
+ *
+ * The one place this file reaches for amber-console.effects.js, and it reaches
+ * by runtime lookup rather than by import — deliberately, because the two
+ * modules are independently optional and an import would make one require the
+ * other. Without the effects module this is a plain call, and every tab and
+ * dialog behaves exactly as it did before persistence existed.
+ *
+ * Only DISCRETE changes are wrapped. A view transition cancels any transition
+ * already running, so wrapping frequent updates would mean a long P7 snapshot
+ * being discarded before it ever finished. See the note in the effects module.
*/
-const REDUCED_MOTION =
- typeof matchMedia === "function"
- ? matchMedia("(prefers-reduced-motion: reduce)")
- : { matches: false };
+const withDecay = (fn) => {
+ const vt = globalThis.AmberConsoleEffects?.transition;
+ if (typeof vt === "function") vt(fn);
+ else fn();
+};
/** localStorage can throw in private mode and in sandboxed file:// frames. */
function readStored(key) {
@@ -49,6 +74,18 @@ function writeStored(key, value) {
/* Not persisting is survivable; the toggle still works this session. */
}
}
+/**
+ * Forget a stored preference — which is a different act from storing its
+ * default. An absent key means "the user has never said", and that is the only
+ * state a derived default is allowed to fill in. See syncDerivedStyles.
+ */
+function clearStored(key) {
+ try {
+ localStorage.removeItem(STORE_PREFIX + key);
+ } catch {
+ /* Same as above: the session is still correct, only the next one is not. */
+ }
+}
/* ---------------------------------------------------------------- tablist -- */
@@ -78,7 +115,7 @@ function initTabs(root) {
root.addEventListener("click", (e) => {
const tab = e.target.closest('[role="tab"]');
- if (tab && tabs.includes(tab)) select(tab);
+ if (tab && tabs.includes(tab)) withDecay(() => select(tab));
});
root.addEventListener("keydown", (e) => {
@@ -96,7 +133,7 @@ function initTabs(root) {
e.preventDefault();
const next = tabs[(moves[e.key] + tabs.length) % tabs.length];
next.focus();
- select(next);
+ withDecay(() => select(next));
});
select(tabs.find((t) => t.getAttribute("aria-selected") === "true") ?? tabs[0]);
@@ -122,211 +159,6 @@ function initToggle(btn) {
});
}
-/* ---------------------------------------------------- plasma afterglow -- */
-
-/**
- * A cell that stops being driven relaxes rather than switching off, so the
- * value a readout held one frame ago is still faintly on the glass. CSS handles
- * that for anything that merely *hides* — see the decay-out block in
- * tokens/effects.css — but it cannot reach the case that sells the effect: text
- * being rewritten in place. Nothing in the cascade remembers the old string.
- *
- * So: watch the frame, and when text changes, park a copy of the OLD text at
- * the rect it occupied and let tokens/effects.css drain it.
- */
-
-/** Enough of the source's paint to make a detached clone look identical. */
-const GHOST_STYLES = [
- "font", "letterSpacing", "lineHeight", "textAlign", "textTransform",
- "whiteSpace", "color", "textShadow", "padding", "borderRadius",
-];
-
-/**
- * More than this many draining ghosts means something is rewriting text far
- * faster than the decay, and every extra one is invisible under the pile.
- */
-const GHOST_LIMIT = 24;
-
-/** Ghosts are decoration made of duplicated content — hide them completely. */
-function sanitize(node) {
- node.removeAttribute?.("id");
- for (const el of node.querySelectorAll?.("[id]") ?? []) el.removeAttribute("id");
- node.setAttribute("aria-hidden", "true");
- node.inert = true;
- node.tabIndex = -1;
-}
-
-/**
- * Park a decaying copy of `source` on the persistence layer.
- *
- * @param {Element} source the element to ghost — must still be in the document,
- * because its rect is what the ghost is pinned to
- * @param {string} [text] value to show instead of the source's current one;
- * this is how a rewritten readout ghosts its old value
- * @param {boolean} [fast] use --ac-decay-fast, for continuously updating text
- */
-function spawnGhost(source, text, fast) {
- /* A background tab does not advance the animation clock, so a ghost spawned
- into one never reaches animationend and never cleans itself up. Nothing is
- being looked at either way — decline, rather than bank stale nodes for
- whenever the tab comes back.
-
- Same failure, different cause, under prefers-reduced-motion: the CSS hides
- .ac-ghost outright, and a display:none element never runs its animation, so
- animationend never fires and the self-removal below never happens. GHOST_LIMIT
- caps the pile at 24 rather than letting it grow without bound, but the right
- answer is not to clone, measure and park a node nobody will ever see — for
- exactly the users who asked for less of this. */
- if (document.hidden || REDUCED_MOTION.matches) return;
-
- const frame = source.closest(".ac-afterglow");
- const layer = frame?.querySelector(":scope > .ac-persist");
- if (!layer) return;
-
- const rect = source.getBoundingClientRect();
- if (!rect.width || !rect.height) return;
-
- const box = frame.getBoundingClientRect();
- const ghost = source.cloneNode(true);
- sanitize(ghost);
- if (text !== undefined) ghost.textContent = text;
-
- /* The clone leaves its ancestors behind, so every inherited and
- descendant-selected style leaves with them. Copy the paint back on. */
- const from = getComputedStyle(source);
- for (const prop of GHOST_STYLES) ghost.style[prop] = from[prop];
-
- ghost.classList.add("ac-ghost");
- if (fast) ghost.classList.add("ac-ghost--fast");
- ghost.style.left = `${rect.left - box.left}px`;
- ghost.style.top = `${rect.top - box.top}px`;
- ghost.style.width = `${rect.width}px`;
- ghost.style.height = `${rect.height}px`;
-
- layer.append(ghost);
- while (layer.querySelectorAll(".ac-ghost").length > GHOST_LIMIT) {
- layer.querySelector(".ac-ghost").remove();
- }
- ghost.addEventListener("animationend", () => ghost.remove(), { once: true });
-}
-
-/**
- * Ghost every text rewrite inside the frame.
- *
- * Both mutation kinds matter and they carry the old string differently:
- * `el.textContent = x` REPLACES the text node, which is a childList record with
- * the old node in removedNodes; editing a text node in place is a characterData
- * record with oldValue. Miss either one and half the updates on a page ghost.
- */
-function makeGhostObserver(frame) {
- return new MutationObserver((records) => {
- /* One ghost per element per batch — a single textContent assignment can
- produce a remove and an insert, and two stacked copies read as a smear. */
- const seen = new Map();
-
- for (const m of records) {
- let host = m.type === "characterData" ? m.target.parentElement : m.target;
- if (!(host instanceof Element)) continue;
- /* Our own ghosts are DOM changes too. Watching them would feed itself. */
- if (host.closest(".ac-persist")) continue;
-
- let old;
- if (m.type === "characterData") {
- old = m.oldValue;
- } else {
- for (const node of m.removedNodes) {
- if (node.nodeType === Node.TEXT_NODE) old = node.nodeValue;
- }
- }
-
- /* A rewrite to the same string is not a change the panel ever saw —
- the console demo reassigns its date field every second unchanged. */
- if (!old?.trim() || old === host.textContent) continue;
- if (!seen.has(host)) seen.set(host, old);
- }
-
- for (const [host, old] of seen) spawnGhost(host, old, true);
- });
-}
-
-/* ---------------------------------------------------- scroll smear -- */
-
-/** Per-frame scroll distance, in px, that saturates the smear. */
-const SMEAR_FULL = 55;
-/**
- * Geometric drain per frame once the scroll stops. At 60fps the loop stops
- * itself ~130ms in, when it crosses the floor. The tail wants to be short: a
- * smear that outlives the scroll by much stops reading as persistence and starts
- * reading as lag. While you are actually scrolling the smear is held up by
- * velocity, so this governs the release and nothing else.
- */
-const SMEAR_DRAIN = 0.55;
-
-/**
- * Drive `--ac-smear` on the frame from actual scroll speed.
- *
- * Scrolling hands every cell on the panel a new value at once, which is the
- * largest light-off event there is, so it is also where the gas visibly fails
- * to keep up. The CSS in tokens/effects.css turns this number into a blurred
- * additive copy of the backdrop.
- *
- * Speed comes from the delta between animation frames rather than from the
- * scroll events themselves: scroll fires at wildly different rates depending on
- * input device, and a wheel notch and a trackpad flick that move the same
- * distance in the same time should smear identically.
- */
-function makeScrollSmear(frame) {
- let last = 0;
- let smear = 0;
- let raf = 0;
-
- const clear = () => {
- smear = 0;
- frame.removeAttribute("data-ac-scrolling");
- frame.style.removeProperty("--ac-smear");
- };
-
- const step = () => {
- raf = 0;
- const y = window.scrollY;
- const target = Math.min(Math.abs(y - last) / SMEAR_FULL, 1);
- last = y;
-
- /* Rise immediately, drain gradually — the same asymmetry as everything else
- here. The panel keeps up with getting brighter; it lags going dark. */
- smear = target > smear ? target : smear * SMEAR_DRAIN;
-
- if (smear < 0.01) {
- clear();
- return;
- }
- frame.setAttribute("data-ac-scrolling", "");
- frame.style.setProperty("--ac-smear", smear.toFixed(3));
- raf = requestAnimationFrame(step);
- };
-
- const onScroll = () => {
- if (!raf) raf = requestAnimationFrame(step);
- };
-
- return {
- connect() {
- /* Smearing the viewport in response to scrolling is the most motion-sick-
- making thing in the simulation; the CSS hides it too, but there is no
- reason to run the loop at all. */
- if (REDUCED_MOTION.matches) return;
- last = window.scrollY;
- window.addEventListener("scroll", onScroll, { passive: true });
- },
- disconnect() {
- window.removeEventListener("scroll", onScroll);
- if (raf) cancelAnimationFrame(raf);
- raf = 0;
- clear();
- },
- };
-}
-
/* ------------------------------------------------------- screen sims -- */
/**
@@ -349,65 +181,118 @@ const SIMS = {
};
/**
- * PLASMA / CRT / AFTERGLOW toggles. `data-ac-sim="plasma|crt|afterglow"` on an
- * .ac-toggle button, `data-ac-screen` on the frame they apply to (defaults to
- * the first .ac-screen).
+ * Simulations that make the same kind of claim and therefore cannot both be on.
+ *
+ * PLASMA and CRT are not two layers of glass, they are two display
+ * technologies, and no panel is both: a frame carrying .ac-bloom and .ac-crt at
+ * once has gas gaps and a scanning beam in the same enclosure, wearing a cell
+ * mesh and raster blanking gaps at the same time. Those are the two textures
+ * section 04 of the guide spends a paragraph telling apart — a screen door is
+ * not a scanline, and there is no scan in a plasma panel to blank. Switching
+ * either one ON switches the other OFF, in the same click, and both toggles
+ * move to prove it.
+ *
+ * Both OFF stays allowed. That is a flat lit surface — no particular hardware,
+ * and an honest thing to want to look at. This is exclusion, not a radio group.
+ *
+ * A DISPLAY preset must therefore name at most one of them in `data-ac-sims`;
+ * listing both leaves whichever is applied last, which is not a useful thing to
+ * have asked for.
*/
-function initSims() {
- const buttons = [...document.querySelectorAll("[data-ac-sim]")];
- if (!buttons.length) return;
+const EXCLUSIVE_SIMS = ["plasma", "crt"];
+
+/** The frame every simulation paints on. Resolved once, on first use. */
+function screenFrame() {
+ return (screenFrame.cached ??=
+ document.querySelector("[data-ac-screen]") ??
+ document.querySelector(".ac-screen") ??
+ null);
+}
- const frame =
- document.querySelector("[data-ac-screen]") ?? document.querySelector(".ac-screen");
- if (!frame) return;
-
- const apply = (name, on) => {
- const sim = SIMS[name];
- for (const klass of sim.classes) frame.classList.toggle(klass, on);
-
- /* Reversed, because each one is PREPENDED: walking the list as written puts
- the children into the frame back-to-front. That is not cosmetic —
- .ac-retrace and .ac-persist both sit at z-index 45, so DOM order is the
- only thing breaking the tie between them, and a frame that mounted them
- from script composited fractionally differently from one that shipped them
- in markup. The list is declared in paint order; keep it that way. */
- for (const child of [...sim.children].reverse()) {
- const existing = frame.querySelector(`:scope > .${child}`);
- if (on && !existing) {
- const span = document.createElement("span");
- span.className = child;
- frame.prepend(span);
- } else if (!on && existing) {
- existing.remove();
- }
+/**
+ * Mount or unmount one simulation, and repaint every toggle that names it.
+ *
+ * Module scope rather than a closure inside initSims, because the DISPLAY
+ * presets drive the same switches: picking CRT/P3 has to be able to put the
+ * PLASMA toggle in the OFF position and mean it. Two code paths writing the
+ * frame independently is how you end up with a lit .ac-bloom and a toggle
+ * insisting plasma is off.
+ */
+function applySim(name, on) {
+ const sim = SIMS[name];
+ const frame = screenFrame();
+ if (!sim || !frame) return;
+
+ /* Exclusion runs here rather than in the click handler, because the DISPLAY
+ presets and the restore path both write simulations through this function
+ and a rule enforced in one of the three is not a rule. Only the ON branch
+ recurses, and it recurses with `false`, so this is exactly one level deep
+ and cannot loop. */
+ if (on && EXCLUSIVE_SIMS.includes(name)) {
+ for (const other of EXCLUSIVE_SIMS) {
+ if (other !== name) applySim(other, false);
}
+ }
- if (sim.classes.includes("ac-afterglow")) {
- ghostObserver ??= makeGhostObserver(frame);
- scrollSmear ??= makeScrollSmear(frame);
- if (on) {
- ghostObserver.observe(frame, {
- subtree: true,
- childList: true,
- characterData: true,
- characterDataOldValue: true,
- });
- scrollSmear.connect();
- } else {
- ghostObserver.disconnect();
- scrollSmear.disconnect();
- }
+ for (const klass of sim.classes) frame.classList.toggle(klass, on);
+
+ /* Reversed, because each one is PREPENDED: walking the list as written puts
+ the children into the frame back-to-front. That is not cosmetic —
+ .ac-retrace and .ac-persist both sit at z-index 45, so DOM order is the
+ only thing breaking the tie between them, and a frame that mounted them
+ from script composited fractionally differently from one that shipped them
+ in markup. The list is declared in paint order; keep it that way. */
+ for (const child of [...sim.children].reverse()) {
+ const existing = frame.querySelector(`:scope > .${child}`);
+ if (on && !existing) {
+ const span = document.createElement("span");
+ span.className = child;
+ frame.prepend(span);
+ } else if (!on && existing) {
+ existing.remove();
}
+ }
- for (const btn of buttons.filter((b) => b.dataset.acSim === name)) {
- btn.setAttribute("aria-pressed", String(on));
- btn.classList.toggle("ac-toggle--on", on);
- const state = btn.querySelector(".ac-toggle__state");
- if (state) state.textContent = on ? "ON" : "OFF";
- }
+ /* NOTHING HERE STARTS THE PERSISTENCE EFFECTS, and that is the split.
+ Ghosting, the scroll smear and the framebuffer decay live in
+ amber-console.effects.js, which may not be loaded — and when it is, it
+ watches the frame's class list for `.ac-afterglow` itself rather than being
+ told. Toggling the simulation is a DOM change; a module that can see the DOM
+ needs no handshake, and a handshake would be one more thing to keep in sync
+ across two files that are meant to be independently optional. */
- writeStored(name, on ? "1" : "0");
- };
+ for (const btn of document.querySelectorAll(`[data-ac-sim="${name}"]`)) {
+ btn.setAttribute("aria-pressed", String(on));
+ btn.classList.toggle("ac-toggle--on", on);
+ const state = btn.querySelector(".ac-toggle__state");
+ if (state) state.textContent = on ? "ON" : "OFF";
+ }
+
+ /* Some styles have no default of their own — they take one from whatever the
+ glass is now doing. The frame's classes are settled by this point, so this
+ is the moment they can be read. */
+ syncDerivedStyles();
+
+ writeStored(name, on ? "1" : "0");
+}
+
+/**
+ * PLASMA / CRT toggles. `data-ac-sim="plasma|crt"` on an .ac-toggle button,
+ * `data-ac-screen` on the frame they apply to (defaults to the first .ac-screen).
+ *
+ * These switch the SIMULATION — what the glass does. They do not touch the
+ * palette; which gas or which phosphor is lighting up is initDisplay's business
+ * and lives on different attributes entirely. A user is free to run the CRT
+ * simulation with a plasma gas in it, and the DISPLAY presets will tell them
+ * they have (see MOD below), but nothing here stops them.
+ *
+ * The two simulations do exclude EACH OTHER — see EXCLUSIVE_SIMS. That is a
+ * different statement from the one above: a gas behind a tube's glass is a
+ * mismatch a user can want to look at, two enclosures at once is not a panel.
+ */
+function initSims() {
+ const buttons = [...document.querySelectorAll("[data-ac-sim]")];
+ if (!buttons.length || !screenFrame()) return;
for (const name of Object.keys(SIMS)) {
if (!buttons.some((b) => b.dataset.acSim === name)) continue;
@@ -419,74 +304,789 @@ function initSims() {
display technology, and its scanlines are the one thing a plasma panel
conspicuously does not have. Shipping both on by default meant the first
impression of the system was a plasma screen wearing a tube's blanking
- gaps. It stays one click away. */
+ gaps. It stays one click away.
+
+ A session stored before these two became exclusive can have BOTH keys
+ reading "1". Declaration order settles it without extra bookkeeping:
+ PLASMA is restored first, switches CRT off through applySim and writes
+ that through, so CRT's own key already says "0" by the time it is read.
+ Plasma winning is the right way round — it is the system's own hardware,
+ and the one a returning visitor is least surprised to find still lit. */
const stored = readStored(name);
- apply(name, stored === null ? SIMS[name].defaultOn : stored === "1");
+ applySim(name, stored === null ? SIMS[name].defaultOn : stored === "1");
for (const btn of buttons.filter((b) => b.dataset.acSim === name)) {
if (wired.has(btn)) continue;
wired.add(btn);
btn.addEventListener("click", () => {
- apply(name, btn.getAttribute("aria-pressed") !== "true");
+ applySim(name, btn.getAttribute("aria-pressed") !== "true");
+ /* Deviating from the preset is allowed and is the point of the toggles
+ still being there. It is just no longer the preset. */
+ markModified();
});
}
}
}
-/* -------------------------------------------------------------------- gas -- */
+/* ---------------------------------------------------------------- display -- */
+
+/**
+ * DISPLAY — which hardware is in the panel. Two attributes on the ROOT element:
+ *
+ * data-ac-tech the technology: "plasma" (gas emitting directly) or "crt"
+ * (a beam on a phosphor). What is making light at all.
+ * data-ac-emitter which gas, or which phosphor, inside that technology.
+ *
+ * Root, not the frame, because the palette is not a property of the screen the
+ * way .ac-bloom is. Tokens cascade, and a page can put .ac-badge or a code
+ * sample outside .ac-screen — scoping the switch to the frame would leave those
+ * on whichever palette :root happened to declare, which is the kind of split
+ * nobody notices until a screenshot has two hues in it.
+ *
+ * TWO attributes and not one, because "which color" is not answerable on its
+ * own: a gas and a phosphor can be the same color and are not the same thing.
+ * Keeping the technology in the selector is what makes it impossible to offer
+ * P39 as a gas or krypton as a phosphor — see the header of tokens/colors.css.
+ *
+ * THE CATALOG IS MARKUP, NOT A TABLE IN HERE. Each preset is a radio:
+ *
+ *
+ *
+ * so a consumer who ships their own palettes writes their own rows and this file
+ * needs no edit. `data-ac-sims` is the space-separated list of simulations that
+ * technology implies; every other known simulation is switched OFF. That is the
+ * whole preset behavior — pick CRT P3 and the CRT glass comes on and the plasma
+ * bloom goes off, in one click, and both toggles move to prove it.
+ *
+ * A preset is a STARTING POINT, not a lock. Flip a simulation or a style
+ * afterwards and the readout says MOD; nothing is prevented.
+ */
+function initDisplay() {
+ const radios = [...document.querySelectorAll("[data-ac-display]")];
+ const root = document.documentElement;
+
+ /** Write the palette. Attributes only — no simulation is touched. */
+ const paint = (tech, emitter) => {
+ root.setAttribute("data-ac-tech", tech);
+ root.setAttribute("data-ac-emitter", emitter);
+ /* Deprecated, removed in 3.0. Kept in sync so a page still selecting on
+ [data-ac-gas] does not silently fall back to :root mid-session. */
+ if (tech === "plasma" && emitter === "neon") root.setAttribute("data-ac-gas", "neon");
+ else if (tech === "crt" && emitter === "p3") root.setAttribute("data-ac-gas", "amber");
+ else root.removeAttribute("data-ac-gas");
+
+ for (const r of radios) {
+ r.checked = r.dataset.acTech === tech && r.dataset.acEmitter === emitter;
+ }
+
+ writeStored("tech", tech);
+ writeStored("emitter", emitter);
+ paintReadout();
+ };
+
+ /* Restore. The palette is restored WITHOUT applying the preset's simulations,
+ because initSims has already restored those from their own keys and they may
+ legitimately disagree — that disagreement is exactly what MOD records. Only
+ an actual click applies a whole preset. */
+ const storedTech = readStored("tech");
+ const storedEmitter = readStored("emitter");
+ const known = radios.some(
+ (r) => r.dataset.acTech === storedTech && r.dataset.acEmitter === storedEmitter
+ );
+ /* An unrecognized stored pair falls back rather than being written through — a
+ stale key from a palette that has since been removed must not leave the
+ panel unstyled. */
+ if (known) paint(storedTech, storedEmitter);
+ else if (radios.length) {
+ const first = radios.find((r) => r.checked) ?? radios[0];
+ paint(first.dataset.acTech, first.dataset.acEmitter);
+ }
+ modified = readStored("mod") === "1";
+ paintReadout();
+
+ for (const radio of radios) {
+ if (wired.has(radio)) continue;
+ wired.add(radio);
+ radio.addEventListener("change", () => {
+ if (!radio.checked) return;
+ paint(radio.dataset.acTech, radio.dataset.acEmitter);
+
+ /* The preset half of a preset: every simulation this technology implies
+ goes on, every other one goes off. Listed sims that are not installed
+ are ignored rather than throwing, so markup can name a simulation this
+ build does not have yet. */
+ const wanted = new Set((radio.dataset.acSims ?? "").split(/\s+/).filter(Boolean));
+ for (const name of Object.keys(SIMS)) applySim(name, wanted.has(name));
+
+ modified = false;
+ writeStored("mod", "0");
+ paintReadout();
+ });
+ }
+
+ /* [data-ac-display-reset] puts the whole board back: the selected preset's
+ simulations, every STYLE flag, and the ENGINE flag.
+
+ IT USED TO CLEAR ONLY THE DERIVED STYLES, which was the bug. A flag with a
+ FIXED default — `classic` — kept its stored value through a reset, so a
+ visitor who had once switched the corners off could not get them back from
+ this button, on any preset, ever; and the ENGINE key was not touched at all,
+ so JS Effects was in the same position. "Reset" that resets two of the four
+ axes is not a reset, it is a partial one nobody can predict the shape of.
+ Every axis the board can move, this button moves back. */
+ for (const btn of document.querySelectorAll("[data-ac-display-reset]")) {
+ if (wired.has(btn)) continue;
+ wired.add(btn);
+ btn.addEventListener("click", () => {
+ /* FORGET THE STORED PREFERENCES FIRST, and first is the load-bearing word:
+ the change below runs applySim, which re-derives the derived flags — but
+ only for flags with nothing stored. Clearing after would leave the user's
+ old choice in place for one more preset, which is not what a reset is.
+
+ `persist: false` on the way back is the other half. Writing the default
+ to storage here would CLAIM the preference on the user's behalf — the key
+ would exist, syncDerivedStyles would stop filling it, and a derived flag
+ would never follow the simulation again. An absent key means "the user
+ has never said", which is exactly the state a reset is restoring. */
+ for (const name of Object.keys(STYLES)) {
+ clearStored(`style.${name}`);
+ applyStyle(name, styleDefault(name), false);
+ }
+ clearStored("engine");
+ applyEngine(ENGINE_DEFAULT_JS, false);
+
+ const current = radios.find((r) => r.checked);
+ if (current) {
+ current.dispatchEvent(new Event("change", { bubbles: true }));
+ return;
+ }
+
+ /* NO CATALOG ROW IS SELECTED — a board that ships the reset button without
+ the radios, or one whose stored palette was dropped from the catalog. The
+ change handler above is what normally clears MOD and repaints, so
+ without this the styles and the engine went back while the readout went
+ on saying MOD for a board that is now exactly on its defaults. Nothing
+ restores a palette here because there is no preset to restore it from. */
+ modified = false;
+ writeStored("mod", "0");
+ paintReadout();
+ });
+ }
+}
+
+/**
+ * Fill every [data-ac-display-out] with the current state.
+ *
+ * `label` is the one that matters: it rides in the menu bar, it is always
+ * visible, and it always names the TECHNOLOGY first. Somebody scanning the board
+ * should never have to remember whether P39 was a gas.
+ *
+ * `peak` comes off the catalog row rather than a table in here, for the same
+ * reason the catalog itself does: a page shipping its own palettes states its own
+ * wavelengths. The row is found by matching tech and emitter rather than by
+ * reading `:checked`, so the legacy gas toggle — which sets the attributes
+ * without touching a radio — still gets a number, and so a value that arrived
+ * from localStorage cannot be interpolated into a selector.
+ */
+function paintReadout() {
+ const root = document.documentElement;
+ const tech = root.getAttribute("data-ac-tech") ?? "";
+ const emitter = root.getAttribute("data-ac-emitter") ?? "";
+ const mode = modified ? "MOD" : "PRESET";
+
+ const row = [...document.querySelectorAll("[data-ac-display]")].find(
+ (r) => r.dataset.acTech === tech && r.dataset.acEmitter === emitter
+ );
+
+ const values = {
+ tech: tech.toUpperCase(),
+ emitter: emitter.toUpperCase(),
+ mode,
+ /* An em dash, not an empty string: a readout that renders as nothing reads
+ as a broken panel rather than as a palette that never declared a peak. */
+ peak: row?.dataset.acPeak || "—",
+ label: `${tech.toUpperCase()} · ${emitter.toUpperCase()}${modified ? " *MOD" : ""}`,
+ /* Not part of the preset — see initEngine — but it belongs on the board,
+ because "three of these effects are dark right now" is exactly the kind
+ of thing a State panel exists to stop being a surprise. */
+ /* What is actually rendering this panel, not what the flag permits. Under a
+ plasma simulation or a microsecond phosphor the effects module contributes
+ nothing, so "CSS + JS" beside a switch that reads OFF would be the readout
+ disagreeing with the control right next to it. */
+ engine: engineOn() && engineUseful() ? "CSS + JS" : "CSS ONLY",
+ };
+
+ for (const el of document.querySelectorAll("[data-ac-display-out]")) {
+ const key = el.dataset.acDisplayOut;
+ if (key in values) el.textContent = values[key];
+ }
+
+ paintInfo();
+
+ /* AND THE PALETTE IS THE OTHER HALF OF THE ENGINE GATE. Every display change
+ comes through here — presets, the legacy gas toggle, the restore path — and a
+ change of emitter can move --ac-persist across the floor without the
+ simulation moving at all. P39 to P11 is exactly that: still CRT, still
+ afterglow, and the effects go from a two-second tail to 35 microseconds. */
+ syncEngineControls();
+}
+
+/**
+ * Show the note that describes the hardware currently in the panel.
+ *
+ * The prose is MARKUP, like the catalog is — one `[data-ac-display-info]` node
+ * per key, all but the matching one `hidden`. Keeping the copy out of here is
+ * what lets a page describe its own palettes, and what keeps the same string
+ * from having to be escaped through JavaScript to reach a paragraph.
+ *
+ * A key is either a technology ("crt") or an exact palette ("crt/p3"). Exact
+ * wins where one exists, so a phosphor whose behavior is not typical of its
+ * technology — P7, whose whole point is a second, much slower layer — can say so
+ * without every other phosphor needing its own paragraph.
+ */
+function paintInfo() {
+ const root = document.documentElement;
+ const tech = root.getAttribute("data-ac-tech");
+ const exact = `${tech}/${root.getAttribute("data-ac-emitter")}`;
+
+ const nodes = [...document.querySelectorAll("[data-ac-display-info]")];
+ const specific = nodes.some((el) => el.dataset.acDisplayInfo === exact);
+
+ for (const el of nodes) {
+ const key = el.dataset.acDisplayInfo;
+ el.hidden = specific ? key !== exact : key !== tech;
+ }
+}
+
+/** Any deviation from the selected preset, by simulation or by style. */
+function markModified() {
+ modified = true;
+ writeStored("mod", "1");
+ paintReadout();
+}
-/** Palette names, in toggle order. See the header of tokens/colors.css. */
-const GASES = ["neon", "amber"];
+/* ------------------------------------------------------- gas (deprecated) -- */
/**
- * GAS toggle. `data-ac-gas-toggle` on an .ac-toggle button; the attribute this
- * writes is `data-ac-gas` on the ROOT element, not on the frame.
- *
- * Root, because the palette is not a property of the screen the way .ac-bloom
- * is. Tokens cascade, and a page can put .ac-badge or a code sample outside
- * .ac-screen — scoping the switch to the frame would leave those on whichever
- * gas :root happened to declare, which is the kind of split nobody notices until
- * a screenshot has two hues in it.
- *
- * Unlike the sims this is NOT on/off, so aria-pressed would be a lie: neither
- * state is "not pressed". The button carries the palette name instead, and
- * .ac-toggle--on tracks the non-default gas purely so the track renders as
- * thrown. CSS-only consumers can set data-ac-gas in their own markup and never
- * load this file.
+ * DEPRECATED, removed in 3.0. The old two-position GAS toggle, kept working for
+ * pages that still ship `data-ac-gas-toggle` on a button.
+ *
+ * It was never a gas toggle. One of its two positions was a CRT phosphor, and a
+ * control that calls a phosphor a gas is the confusion this release exists to
+ * remove — see initDisplay. It now cycles the same two palettes through the new
+ * attributes, so a page using it stays correct while it migrates, but it cannot
+ * reach the rest of the catalog and will not grow to.
+ *
+ * Migrate to a [data-ac-display] radio per palette.
*/
+const LEGACY_GASES = [
+ { gas: "neon", tech: "plasma", emitter: "neon" },
+ { gas: "amber", tech: "crt", emitter: "p3" },
+];
+
function initGas() {
const buttons = [...document.querySelectorAll("[data-ac-gas-toggle]")];
if (!buttons.length) return;
- const apply = (gas) => {
- document.documentElement.setAttribute("data-ac-gas", gas);
+ const root = document.documentElement;
+ const apply = (entry) => {
+ root.setAttribute("data-ac-tech", entry.tech);
+ root.setAttribute("data-ac-emitter", entry.emitter);
+ root.setAttribute("data-ac-gas", entry.gas);
for (const btn of buttons) {
- btn.classList.toggle("ac-toggle--on", gas !== GASES[0]);
+ btn.classList.toggle("ac-toggle--on", entry.gas !== LEGACY_GASES[0].gas);
const state = btn.querySelector(".ac-toggle__state");
- if (state) state.textContent = gas.toUpperCase();
+ if (state) state.textContent = entry.gas.toUpperCase();
}
- writeStored("gas", gas);
+ writeStored("tech", entry.tech);
+ writeStored("emitter", entry.emitter);
+ paintReadout();
};
- /* NEON is the default because it is the one derived from the hardware this
- system claims to be; AMBER is the phosphor look kept as an option. An
- unrecognised stored value falls back rather than being written through — a
- stale key from a future palette must not leave the panel unstyled. */
- const stored = readStored("gas");
- apply(GASES.includes(stored) ? stored : GASES[0]);
+ /* RESTORE ONLY WHAT THIS CONTROL CAN EXPRESS, and otherwise leave the panel
+ alone. initGas runs LAST, after initDisplay has already restored the real
+ catalog — so falling back to LEGACY_GASES[0] here meant a page that still
+ ships the old button dragged a visitor's saved P39 or krypton back to neon
+ on every load, silently, using a control that cannot even reach those
+ palettes. A two-position switch has no opinion about the other nine.
+
+ When the stored emitter is one of its two, paint it so the switch shows the
+ right position. When it is not, repaint only the button's own label — the
+ palette on the root stays whatever initDisplay restored. */
+ const stored = readStored("emitter");
+ const legacy = LEGACY_GASES.find((e) => e.emitter === stored);
+ if (legacy) apply(legacy);
+ else {
+ for (const btn of buttons) {
+ btn.classList.remove("ac-toggle--on");
+ const state = btn.querySelector(".ac-toggle__state");
+ if (state) state.textContent = (root.getAttribute("data-ac-emitter") ?? "").toUpperCase();
+ }
+ }
for (const btn of buttons) {
if (wired.has(btn)) continue;
wired.add(btn);
btn.addEventListener("click", () => {
- const now = document.documentElement.getAttribute("data-ac-gas");
- apply(GASES[(GASES.indexOf(now) + 1) % GASES.length]);
+ const now = root.getAttribute("data-ac-emitter");
+ const i = LEGACY_GASES.findIndex((e) => e.emitter === now);
+ apply(LEGACY_GASES[(i + 1) % LEGACY_GASES.length]);
});
}
}
+/* ----------------------------------------------------------------- engine -- */
+
+/**
+ * ENGINE — which of the two files is allowed to contribute.
+ *
+ *
+ *
+ * writes data-ac-engine="css" or "css+js" on the ROOT element.
+ *
+ * A THIRD AXIS, and it has to be, because it is not the same kind of statement
+ * as either of the other two. SIMULATION says what the glass is. STYLE says what
+ * the viewer prefers. ENGINE says how much of the machinery is running — and the
+ * answer changes which effects exist at all, without changing either what the
+ * panel claims to be or what the viewer asked for. Filing it under STYLES would
+ * have made "does this page run JavaScript" a comfort preference, which it is
+ * not.
+ *
+ * It exists because the split is the library's actual shape and was, until now,
+ * only ever described in source comments. Almost everything here is CSS: the
+ * bloom, the cell mesh, the scanlines and the vignette, the blink decay, the
+ * lingering halo, the residual patches, the radar sweep. Three effects are not,
+ * and all three live in amber-console.effects.js — the ghosting of rewritten
+ * text, the scroll smear, and the framebuffer decay on discrete swaps. Turning
+ * this off leaves exactly those three dark and everything else running, which is
+ * a far better answer to "what does the JavaScript buy me" than a paragraph.
+ *
+ * That file reads this attribute off the root itself; nothing here calls it.
+ *
+ * A SEPARATE AXIS IS NOT THE SAME AS AN AXIS OUTSIDE THE PRESET, and the two used
+ * to be confused here. This flag is still not a style and still not hardware —
+ * that is what the paragraph above is defending — but "Reset to Preset" restores
+ * it along with everything else, and moving it therefore reads as MOD. See the
+ * click handler in initEngine.
+ */
+const ENGINE_DEFAULT_JS = true;
+
+/** True when the JS effects are permitted. Mirrors engineOn() in the effects module. */
+function engineOn() {
+ const set = document.documentElement.getAttribute("data-ac-engine");
+ return set === null ? ENGINE_DEFAULT_JS : set !== "css";
+}
+
+/**
+ * THE SHORTEST TAIL WORTH OFFERING A SWITCH FOR, in milliseconds.
+ *
+ * All three JS effects are timed by --ac-persist. Measured against a 60Hz frame,
+ * what each phosphor actually buys is:
+ *
+ * P11 0.035ms 0.00 frames nothing is composited at all
+ * P31 0.038ms 0.00 frames
+ * P4 0.06ms 0.00 frames
+ * P1 24ms 1.44 frames one frame of ghost, then gone
+ * P3 25ms 1.50 frames
+ * gas 105ms 6.3 frames the :root fallback
+ * P39 2000ms 120 frames
+ * P7 3000ms 180 frames
+ *
+ * THIS USED TO BE 5ms, WHICH IS A COMPOSITING FLOOR RATHER THAN A PERCEPTUAL
+ * ONE. It asked "can a frame be drawn at all", so P1 and P3 cleared it and the
+ * module spent real work on them — cloning nodes, mounting them into the
+ * persistence layer, animating and removing them — to produce a ghost that
+ * survives about one frame. That is not persistence, it is a single-frame
+ * flicker, and on the two phosphors most people actually pick.
+ *
+ * 80ms is the perceptual floor, and it is not a new number: tokens/effects.css
+ * has always said that "much under ~80ms and the eye stops reading a relaxation
+ * and starts reading a switch". Using the figure the stylesheet already reasons
+ * from makes the two agree instead of drawing different lines.
+ *
+ * The catalog is nowhere near the boundary in either direction — the nearest
+ * values are 25ms below and 105ms above — so a single threshold stays safe
+ * rather than becoming a fudge.
+ *
+ * WHAT THIS COSTS ON P1 AND P3: ghosting and the framebuffer decay, both of
+ * which were invisible there. It also costs the scroll smear, and that one is
+ * deliberate rather than collateral — the smear IS persistence, seen while the
+ * image moves. A phosphor that does not hold between frames has nothing to trail
+ * with, so a 25ms tube should not smear any more than it should ghost.
+ *
+ * THE NUMBER IS ENFORCED IN TWO PLACES AND MUST MATCH IN BOTH. This file only
+ * paints the switch; PERSIST_FLOOR_MS in amber-console.effects.js is what
+ * actually stops the work, and scripts/build.mjs uses the same figure to decide
+ * whether a docs board ships the switch enabled. When they drifted apart — this
+ * one at 80 and the effects module still at its old 5 — P1 and P3 got a switch
+ * that read OFF over a module that was still running. Change one, change all
+ * three, and the comment above each says so.
+ */
+const ENGINE_FLOOR_MS = 80;
+
+/** The active palette's uncapped tail, in ms. Falls back to the :root default. */
+function persistTailMs() {
+ const raw = getComputedStyle(document.documentElement)
+ .getPropertyValue("--ac-persist-tail")
+ .trim();
+ const n = parseFloat(raw);
+ if (!Number.isFinite(n)) return 105;
+ return raw.endsWith("ms") ? n : n * 1000;
+}
+
+/**
+ * Whether the ENGINE switch has anything on the other end of it.
+ *
+ * TWO CONDITIONS, AND THEY FAIL FOR DIFFERENT REASONS. Every effect in the
+ * module is scoped to .ac-afterglow, which ships with the CRT simulation — so
+ * under any plasma preset the switch is wired to nothing at all. And even with
+ * the simulation on, a phosphor whose tail is measured in microseconds gives
+ * those effects no time to be seen. The first is a mechanical no-op, the second
+ * a perceptual one, and a control that cannot change what you are looking at
+ * should say so either way rather than inviting a click that does nothing.
+ */
+function engineUseful() {
+ return (
+ Boolean(screenFrame()?.classList.contains("ac-afterglow")) &&
+ persistTailMs() >= ENGINE_FLOOR_MS
+ );
+}
+
+/**
+ * Disable the ENGINE switch wherever it would be a no-op, and reveal the note
+ * that says why. Runs from every path that can change either condition: the
+ * simulation (applySim -> syncDerivedStyles), the palette (paintReadout) and the
+ * flag itself (applyEngine).
+ */
+function syncEngineControls() {
+ const live = engineUseful();
+ /* FORCED OFF, NOT MERELY UNCLICKABLE. A switch reading ON while nothing it
+ governs is running is a small lie, and it is the one the smear switch used to
+ tell before it was removed. So the control shows what is actually
+ contributing — engineOn() AND useful — rather than what the flag permits.
+
+ THE FLAG ITSELF IS NOT WRITTEN, and that is the important half. Forcing
+ data-ac-engine to "css" here would clobber a preference the user did express,
+ and picking P39 again would leave the effects off with no way to know why.
+ The attribute stays what it was, the module gates on the same three
+ conditions in effectsActive(), and the switch comes back ON by itself when
+ the panel is one where it means something. Same rule as the derived style
+ defaults: a derived value fills a silence, it does not overwrite an answer. */
+ const showing = live && engineOn();
+
+ for (const btn of document.querySelectorAll("button[data-ac-engine]")) {
+ btn.disabled = !live;
+ btn.setAttribute("aria-pressed", String(showing));
+ btn.classList.toggle("ac-toggle--on", showing);
+ const state = btn.querySelector(".ac-toggle__state");
+ if (state) state.textContent = showing ? "ON" : "OFF";
+ }
+ /* THREE NOTES, ONE VISIBLE AT A TIME, because the switch has three states and
+ only one of them is "off". A control that reads OFF for two different
+ reasons — you turned it off, or this hardware gives it nothing to do — is
+ the same small lie the forced-ON state above exists to avoid.
+
+ -note the switch cannot do anything here (wrong sim, or too short a
+ phosphor). Shown whenever it is not useful, on or off.
+ -off it could, and you have turned it off.
+ -on it is contributing, and this is what it is contributing. */
+ for (const note of document.querySelectorAll("[data-ac-engine-note]")) {
+ note.hidden = live;
+ }
+ for (const note of document.querySelectorAll("[data-ac-engine-off]")) {
+ note.hidden = showing || !live;
+ }
+ for (const note of document.querySelectorAll("[data-ac-engine-on]")) {
+ note.hidden = !showing;
+ }
+}
+
+function applyEngine(on, persist = true) {
+ document.documentElement.setAttribute("data-ac-engine", on ? "css+js" : "css");
+
+ if (persist) writeStored("engine", on ? "1" : "0");
+
+ /* THE PAINTING IS ALL DOWN THERE, deliberately. This used to set aria-pressed
+ and the ON/OFF text from `on` directly, which is the flag — but the control
+ shows what is CONTRIBUTING, and those differ wherever the effects cannot be
+ seen. Two code paths painting the same switch from two different truths is
+ how it would end up reading ON under neon again. */
+ syncEngineControls();
+}
+
+function initEngine() {
+ /* The attribute goes on , and the buttons are found there too — so the
+ root itself would match [data-ac-engine] once applyEngine has written it.
+ Buttons only. */
+ const buttons = [...document.querySelectorAll("button[data-ac-engine]")];
+
+ /* Same rule as the style flags: a stored preference is only restored while the
+ page still ships a way to change it back. */
+ const stored = buttons.length ? readStored("engine") : null;
+ applyEngine(stored === null ? engineOn() : stored === "1", buttons.length > 0);
+
+ for (const btn of buttons) {
+ if (wired.has(btn)) continue;
+ wired.add(btn);
+ btn.addEventListener("click", () => {
+ applyEngine(btn.getAttribute("aria-pressed") !== "true");
+
+ /* Controls for effects that just stopped existing have to say so. */
+ syncDerivedStyles();
+
+ /* AND IT DOES MARK MOD, which is a reversal worth stating plainly because
+ this line used to be a comment arguing the opposite. The argument was
+ that a preset is a statement about HARDWARE — which gas, which phosphor,
+ which simulation — and how much of the library is running is not part of
+ that claim.
+
+ What changed is the button beside it. "Reset to Preset" now restores the
+ engine flag along with the styles and the simulations, and once a control
+ is something the reset puts BACK, it is by definition part of what the
+ preset describes. A board that resets a switch it never admitted was
+ moved is the readout and the button disagreeing about the same fact.
+
+ In practice this is only reachable on P39 and P7 — everywhere else the
+ switch is disabled because engineUseful() is false — and those are
+ exactly the two panels where turning it off is a visible change. */
+ markModified();
+ });
+ }
+}
+
+/* ------------------------------------------------------------------ style -- */
+
+/**
+ * STYLE — everything that is NOT the hardware.
+ *
+ * Deliberately a separate axis from both DISPLAY and SIMULATION, on its own
+ * attributes, in its own region of the drawer. A style is a LOOK the viewer
+ * chose: comfort, density, typography — and, since `classic`, a look that
+ * imitates a coarser raster. It makes no claim about WHAT THE PANEL IS. That is
+ * the boundary, and it is worth stating precisely now that one of these flags
+ * cuts the corners off every control: a bevel is not an assertion about which
+ * gas is in the gap or which phosphor is on the glass, which is exactly what
+ * DISPLAY and SIMULATION are for. "Turn the blink off" and "cut the corners" are
+ * both preferences; "make it krypton" is not, and a user must never read one as
+ * the other.
+ *
+ *
+ *
+ * writes data-ac-style-blink="on|off" on the ROOT element. Always explicit, both
+ * ways: CSS selecting on the absence of an attribute cannot express "the author
+ * has not chosen" separately from "the author chose off", and the defaults below
+ * are the only place that distinction is allowed to live.
+ *
+ * A `defaultOn` may be a FUNCTION, and then the default is derived from the
+ * panel's current state rather than fixed. `needs` names the frame class the
+ * style has no effect without, which is what lets a control that cannot do
+ * anything say so instead of lying. See syncDerivedStyles.
+ */
+const STYLES = {
+ blink: { defaultOn: true },
+ /* NO `smear` ENTRY ANY MORE, and it is worth saying why rather than leaving a
+ gap where a reader expects one.
+
+ The smear was a STYLE flag that could only ever be on under CRT: every
+ selector implementing it is scoped to .ac-afterglow, and a plasma cell is
+ driven continuously and has nothing that trails. So it derived its default
+ from the simulation and disabled itself under plasma — which is a switch
+ that spends most of its life explaining why it cannot do anything, and a
+ third axis of state for a preference nobody was expressing.
+
+ It is now simply part of what amber-console.effects.js does: on wherever the
+ persistence simulation is running and the engine flag permits it, off
+ everywhere else, with no separate control and nothing to keep in sync.
+ prefers-reduced-motion still stops it, which was the only accessibility case
+ the flag was actually carrying. */
+ /* CLASSIC BUTTONS — the cut corner, the extruded key edge and the top-left
+ label. components/classic.css.
+
+ No `needs`, and that is the interesting half. It is pure CSS on tokens and the
+ corner shape, so it works under plasma, under CRT and with the effects bundle
+ absent entirely; there is no frame class it could be a no-op without, so
+ unlike `smear` this switch never has cause to disable itself.
+
+ ON, because it is what the hardware looked like. Turning it off is a
+ preference for a smoother corner than the panel could draw, which is a real
+ thing to want and the reason the switch exists — but it is the departure from
+ the panel, not the default reading of it. .ac-rounded is the same opt-out
+ scoped to a region instead of the page. */
+ classic: { defaultOn: true },
+ /* THE RETRACE BAND — the band that sweeps down the tube every 13s. sim/crt.css.
+ `needs` is the interesting half here, and it is the opposite of `classic`:
+ every rule drawing the band is scoped to .ac-crt, so under plasma this
+ switch has nothing on the other end of it and says so rather than lying.
+ `needsEngine` is deliberately absent — the band is pure CSS and does not
+ care whether the effects module is loaded.
+
+ IT IS A STYLE AND NOT A SIMULATION, which is the one call worth defending.
+ The band is real: it is what a short phosphor actually looked like, and
+ crt.css spends a screen of comment on why it is rendered spatially. But it
+ is also, by a wide margin, the largest moving object in the system — 26% of
+ the frame, traversing all of it, on the one surface a reader is trying to
+ read — and "that motion bothers me" is a comfort preference in exactly the
+ way blink is. Filing it under SIMULATION would have made turning it off a
+ claim that the tube had no retrace, which is not what anybody clicking it
+ means. ON, because it is what the hardware did.
+
+ prefers-reduced-motion hides the band regardless, in sim/frame.css. This
+ switch is for the people that media query does not cover: no system-level
+ preference set, and one effect on one site they would rather not watch. */
+ retrace: { defaultOn: true, needs: "ac-crt" },
+};
+
+/**
+ * What a style flag would be if nobody had ever touched it — the attribute is
+ * deliberately NOT consulted.
+ *
+ * Split out of styleOn because "Reset to Preset" needs the default while the
+ * root is still carrying the value it is about to discard. Asking styleOn there
+ * would answer with the very preference the reset exists to forget.
+ */
+function styleDefault(name) {
+ const fallback = STYLES[name]?.defaultOn ?? true;
+ return typeof fallback === "function" ? Boolean(fallback()) : Boolean(fallback);
+}
+
+/** Current value of a style flag, defaults included. Safe before init. */
+function styleOn(name) {
+ const set = document.documentElement.getAttribute(`data-ac-style-${name}`);
+ if (set !== null) return set === "on";
+ return styleDefault(name);
+}
+
+/**
+ * Write one style flag and repaint every control that names it.
+ *
+ * Module scope rather than a closure inside initStyle, for exactly the reason
+ * applySim is: more than one code path writes these now — the click handler, the
+ * restore, and applySim itself through syncDerivedStyles — and a rule enforced
+ * in one of three places is not a rule.
+ *
+ * `persist` is the whole distinction between a preference and a derived default.
+ * A value the USER chose is written to storage and owned by them from then on; a
+ * value DERIVED from the simulation must not be, or the first switch of the
+ * simulation would silently claim the preference and the derivation would never
+ * run again.
+ */
+function applyStyle(name, on, persist = true) {
+ document.documentElement.setAttribute(`data-ac-style-${name}`, on ? "on" : "off");
+
+ for (const btn of document.querySelectorAll(`[data-ac-style="${name}"]`)) {
+ btn.setAttribute("aria-pressed", String(on));
+ btn.classList.toggle("ac-toggle--on", on);
+ const state = btn.querySelector(".ac-toggle__state");
+ if (state) state.textContent = on ? "ON" : "OFF";
+ }
+
+ if (persist) writeStored(`style.${name}`, on ? "1" : "0");
+}
+
+/**
+ * Re-derive every style whose default is a function, and settle whether its
+ * control can do anything at all.
+ *
+ * Called from applySim, because the thing these derive FROM is the simulation.
+ *
+ * A DERIVED DEFAULT ONLY FILLS IN A SILENCE. The moment the user clicks the
+ * switch themselves the value is written to storage, and a stored value is never
+ * overwritten here — from then on it is theirs and it stops following the
+ * simulation. "Reset to Preset" clears the key, which is what puts it back to
+ * following. That is the entire mechanism; there is no separate "has the user
+ * touched this" flag, because localStorage already answers that question and a
+ * second source of truth for it would be a thing to keep in sync.
+ */
+function syncDerivedStyles() {
+ for (const [name, spec] of Object.entries(STYLES)) {
+ if (typeof spec.defaultOn === "function" && readStored(`style.${name}`) === null) {
+ applyStyle(name, Boolean(spec.defaultOn()), false);
+ }
+
+ /* A SWITCH THAT CANNOT DO ANYTHING SAYS SO. `retrace` is the shipped flag
+ that needs this — every rule drawing the band is scoped to .ac-crt, so
+ under plasma the switch is wired to nothing — and the ENGINE switch is
+ gated the same way a few functions down. A control that can be clicked ON
+ and produce nothing reads as a broken effect rather than as an effect this
+ hardware does not have.
+
+ `needsEngine` IS A SECOND, SEPARATE CONDITION and it used to be welded on
+ unconditionally. That was inherited from `smear`, the flag this mechanism
+ was written for, which was implemented in the effects module and genuinely
+ did go dark with the engine. Nothing else does: `retrace` is pure CSS, and
+ gating it on engineOn() would have disabled the band's switch for anybody
+ running the framework without the JS effects — which is most consumers.
+ A flag opts into that condition now instead of inheriting it. */
+ if (!spec.needs) continue;
+ const live =
+ Boolean(screenFrame()?.classList.contains(spec.needs)) &&
+ (!spec.needsEngine || engineOn());
+ for (const btn of document.querySelectorAll(`[data-ac-style="${name}"]`)) {
+ btn.disabled = !live;
+ }
+ for (const note of document.querySelectorAll(`[data-ac-style-note="${name}"]`)) {
+ note.hidden = live;
+ }
+ }
+
+ /* The ENGINE switch depends on the simulation too — every effect it governs is
+ scoped to .ac-afterglow — so it is settled on the same signal rather than
+ given its own hook into applySim. */
+ syncEngineControls();
+}
+
+function initStyle() {
+ const buttons = [...document.querySelectorAll("[data-ac-style]")];
+ const apply = applyStyle;
+
+ for (const name of Object.keys(STYLES)) {
+ /* A STORED PREFERENCE IS ONLY RESTORED WHILE THE PAGE STILL OFFERS A WAY TO
+ CHANGE IT BACK. Take the switch out of the markup and the flag falls back
+ to the author's own attribute, or to its default — because a preference
+ with no control left on the page is not a preference, it is a setting the
+ visitor can no longer reach, and one earlier click would have turned
+ blink off on this page forever.
+
+ Nothing is written back in that case either: the stored value still
+ belongs to whatever page does ship the switch, and a page that only
+ consumes the flag has no business overwriting it. */
+ const control = buttons.some((b) => b.dataset.acStyle === name);
+ const stored = control ? readStored(`style.${name}`) : null;
+
+ /* AND A DERIVED DEFAULT IS NOT WRITTEN BACK ON LOAD EITHER, which is the
+ same rule one level down: persisting it here would claim the preference
+ on the first page view, before the user had touched anything, and a
+ derived flag would stop following the simulation forever after. Only a value
+ that was already stored — i.e. one the user chose — is re-stored. */
+ const derived = typeof STYLES[name].defaultOn === "function";
+ apply(
+ name,
+ stored === null ? styleOn(name) : stored === "1",
+ control && !(derived && stored === null)
+ );
+ }
+
+ for (const btn of buttons) {
+ if (wired.has(btn)) continue;
+ const name = btn.dataset.acStyle;
+ if (!(name in STYLES)) continue;
+ wired.add(btn);
+ btn.addEventListener("click", () => {
+ /* Clicking it is what makes it a preference: apply() persists, and from
+ here on syncDerivedStyles leaves this flag alone. */
+ apply(name, btn.getAttribute("aria-pressed") !== "true");
+ markModified();
+ });
+ }
+
+ /* Settle the disabled state for pages that ship no simulation switches at
+ all — applySim is the usual caller and never runs on those. */
+ syncDerivedStyles();
+}
+
/* ----------------------------------------------------------------- dialog -- */
/** [data-ac-dialog-open="id"] calls showModal(); [data-ac-dialog-close] closes. */
@@ -495,12 +1095,13 @@ function initDialogs() {
const opener = e.target.closest("[data-ac-dialog-open]");
if (opener) {
const dialog = document.getElementById(opener.dataset.acDialogOpen);
- if (dialog?.showModal) dialog.showModal();
+ if (dialog?.showModal) withDecay(() => dialog.showModal());
return;
}
const closer = e.target.closest("[data-ac-dialog-close]");
- if (closer) closer.closest("dialog")?.close();
+ const dialog = closer?.closest("dialog");
+ if (dialog) withDecay(() => dialog.close());
});
}
@@ -509,10 +1110,8 @@ function initDialogs() {
/** Elements already wired, so a second init() cannot double-bind a listener. */
const wired = new WeakSet();
let globalsWired = false;
-/** One observer for the page, connected and disconnected by the toggle. */
-let ghostObserver = null;
-/** One scroll-smear driver, likewise. */
-let scrollSmear = null;
+/** True once the panel differs from the DISPLAY preset it was set from. */
+let modified = false;
/** Wire every [data-ac] element on the page. Safe to call more than once. */
export function init(scope = document) {
@@ -523,8 +1122,16 @@ export function init(scope = document) {
}
for (const el of scope.querySelectorAll('[data-ac="toggle"]')) {
- /* Sim toggles are driven by initSims; wiring both would flip twice. */
- if (wired.has(el) || el.hasAttribute("data-ac-sim")) continue;
+ /* Sim and style toggles are driven by their own initializers; wiring both
+ would flip twice and land back where it started. */
+ if (
+ wired.has(el) ||
+ el.hasAttribute("data-ac-sim") ||
+ el.hasAttribute("data-ac-style") ||
+ el.hasAttribute("data-ac-engine")
+ ) {
+ continue;
+ }
wired.add(el);
initToggle(el);
}
@@ -533,24 +1140,36 @@ export function init(scope = document) {
globalsWired = true;
initDialogs();
}
+ /* Order matters exactly once: initSims restores the simulations from their own
+ keys, and initDisplay then reads that settled state to decide whether the
+ panel is on its preset or has been played with.
+
+ initEngine goes first of all, because applySim derives style defaults and
+ one of them asks whether the JS effects are running. Settling that after
+ would mean the first pass computing it from the default rather than from
+ the restored value. */
+ initEngine();
initSims();
- initGas();
+ initStyle();
+ initDisplay();
+ initGas(); /* deprecated; no-op unless a page still ships the old button */
}
/**
- * Leave a decaying copy of `el` behind. Call it BEFORE you remove or empty the
- * element — a detached node has no rect, so there is nowhere to pin the ghost.
+ * MOVED — this is a forwarding shim, kept so existing calls keep working.
*
- * Text rewrites inside the frame already ghost themselves; this is for the case
- * the observer cannot serve, which is a node that is about to stop existing.
+ * Ghosting now lives in amber-console.effects.js, because it is an effect and
+ * this file is behavior. Call `AmberConsoleEffects.afterglow(row)` directly;
+ * this delegates when that module is present and does nothing when it is not,
+ * which is the same no-op it always was with the simulation switched off.
*
- * AmberConsole.afterglow(row);
+ * AmberConsole.afterglow(row); // still works
* row.remove();
*
- * A no-op when the afterglow simulation is off, so it is always safe to call.
+ * Removed in 3.0, with the rest of the deprecations.
*/
export function afterglow(el) {
- if (el instanceof Element) spawnGhost(el);
+ globalThis.AmberConsoleEffects?.afterglow?.(el);
}
if (typeof document !== "undefined") {
diff --git a/src/base/a11y.css b/src/base/a11y.css
index 3d52405..94aa25e 100644
--- a/src/base/a11y.css
+++ b/src/base/a11y.css
@@ -1,7 +1,7 @@
/* ===========================================================================
Forced colors
- This whole design is a colour trick, so high-contrast mode needs a real
+ This whole design is a color trick, so high-contrast mode needs a real
fallback rather than a broken one. Per the Forced Colors Mode spec the UA
forces text-shadow and box-shadow to none, which kills the discharge glow —
but ONLY while an element keeps forced-color-adjust: auto. What is left to do:
@@ -16,23 +16,65 @@
POINT 4 IS NOT BOOKKEEPING. `forced-color-adjust: none` opts an element out
of forced colors WHOLESALE, and that hands it back its box-shadow — so the
very rules that preserve inverse video also reinstate an amber discharge halo
- around it, which is an off-palette colour bleeding into the one mode that
- exists to have no off-palette colours. Every block below that sets
+ around it, which is an off-palette color bleeding into the one mode that
+ exists to have no off-palette colors. Every block below that sets
forced-color-adjust: none must also restate its shadows.
The inverse-video list is the whole set of components that fill with
- var(--fill). Grep for it before adding a component: a state that reads as
+ var(--ac-fill). Grep for it before adding a component: a state that reads as
"the machine is speaking" and flattens to an outline here has lost its
meaning, not just its styling.
=========================================================================== */
@media (forced-colors: active) {
+ /* THE HALO AND THE KEY EDGE ARE SWITCHED OFF AT THE TOKEN, NOT PER RULE.
+ ---------------------------------------------------------------------
+ Every box-shadow this framework paints is built from these four tokens, so
+ zeroing them here removes the discharge colour from all of them at once —
+ and, crucially, does it in a way NO component rule can out-specify. A rule
+ can beat `box-shadow: none` by weighing more; it cannot beat a token it is
+ itself reading.
+
+ That distinction is not theoretical. The per-selector suppression below
+ lists `.ac-btn--filled` and `.ac-tab--active` at (0,1,0), and a component
+ only has to say `.ac-btn--filled:hover` at (0,2,0) to take the halo back —
+ which is exactly what happened twice: once when components/classic.css
+ appended the extruded edge from a scope-prefixed rule, and again when
+ button.css and tabs.css restated the pressed edge on :hover. Both put a
+ full-strength rgba(255,120,30) glow around a latched control in the one
+ mode that exists to contain no off-palette colour at all.
+
+ `0 0 0 transparent` rather than `none`, because these are consumed inside a
+ comma-separated list — `var(--ac-glow-box), var(--ac-edge)` resolving to
+ `none, …` is not a valid shadow list and invalidates the whole declaration.
+ A transparent shadow paints nothing and stays valid.
+
+ The selector list is every element that REDECLARES one of these: .ac-bloom
+ amplifies the glow, and the corner scopes set the edge. Adding a new scope
+ means adding it here. */
+ :root,
+ .ac-bloom,
+ .ac-classic,
+ .ac-rounded,
+ [data-ac-style-classic] {
+ --ac-glow-box: 0 0 0 transparent;
+ --ac-glow-box-dim: 0 0 0 transparent;
+ --ac-edge: 0 0 0 transparent;
+ --ac-edge-press: 0 0 0 transparent;
+ }
+
.ac-bloom::before,
.ac-crt::after,
.ac-scanlines::after,
.ac-retrace,
.ac-persist,
- .ac-mesh {
+ .ac-mesh,
+ /* The radar wake is a gradient in --ac-halo-N, which forced colors has no way to
+ map and no reason to keep. It is also the last blended element left in this
+ mode, and one `mix-blend-mode` anywhere promotes the stacking context and
+ costs subpixel text antialiasing page-wide — see the matching note in
+ print.css. The face and its rings stay; they are drawn with borders. */
+ .ac-sweep__beam {
display: none;
}
@@ -44,8 +86,43 @@
filter: none;
}
+ /* Same argument for the de-energizing afterimage. The UA forces shadows off
+ for anything still at forced-color-adjust: auto, but this halo is built from
+ --ac-halo-N rather than from a forced system color, and the elements it sits on
+ are exactly the ones this file opts OUT of forced colors further down —
+ which hands them their box-shadow back.
+
+ Through the token, so the five selectors are not restated here — and being
+ an inherited value rather than a competing rule, there is no longer a weight
+ to match. The scroll smear rides along for the same reason, in case the page
+ is captured mid-scroll.
+
+ BLINK IS THE ONE THAT COMES BACK rather than going away. It carries the
+ alarm, so it survives forced colors — but it returns to a hard steps(1)
+ edge, because every frame the decay adds is a partly-transparent one, and a
+ user who asked for maximum contrast did not ask for an alarm that spends a
+ third of its cycle sliding through it. */
+ :root {
+ --ac-afterimage-display: none;
+ --ac-smear-filter: none;
+ --ac-blink-force: ac-blink;
+ --ac-blink-force-ease: steps(1);
+ }
+
+ /* A trailing bar is a low-contrast duplicate of the live one, which is what high-contrast mode exists to prevent. */
+ .ac-afterglow .ac-meter__track::before {
+ display: none;
+ }
+
+ /* A page dissolving into the next one is a low-contrast duplicate of the whole
+ screen, for the same reason the ghosts are. */
+ html:has(.ac-afterglow)::view-transition-old(root),
+ html:has(.ac-afterglow)::view-transition-new(root) {
+ animation: none;
+ }
+
/* Blanket, for the same reason as the reduced-motion block in
- tokens/effects.css: every decay is a descendant rule under .ac-afterglow and
+ sim/frame.css: every decay is a descendant rule under .ac-afterglow and
outranks a plain reset, so catching them by name means missing the next one. */
.ac-afterglow *,
.ac-afterglow *::before,
@@ -53,24 +130,11 @@
transition: none !important;
}
- /* And the scroll smear, in case the page is captured mid-scroll. The :not()
- list mirrors the one in tokens/effects.css — keep them identical. */
- .ac-afterglow[data-ac-scrolling] > *:not(.ac-persist, .ac-retrace, .ac-mesh) {
- filter: none;
- }
-
- /* Blink survives forced colors — it carries the alarm — but it goes back to a
- hard steps(1) edge. Every frame the decay adds is a partly-transparent one,
- and a user who asked for maximum contrast did not ask for an alarm that
- spends a third of its cycle sliding through it. */
- .ac-afterglow .ac-blink,
- .ac-afterglow .ac-cursor::after,
- .ac-afterglow .ac-field--invalid .ac-input,
- .ac-afterglow .ac-input[aria-invalid="true"],
- .ac-afterglow .ac-meter--alarm .ac-meter__bar {
- animation-name: ac-blink;
- animation-timing-function: steps(1);
- filter: none;
+ /* NOT redundant with the --ac-blink-force above. That one is what outranks the
+ CRT simulation's own blink curve; without this rule restating it for the
+ flag, the block above would restart a blink the user has switched off. */
+ [data-ac-style-blink="off"] {
+ --ac-blink-force: none;
}
.ac-btn,
@@ -165,6 +229,33 @@
box-shadow: none;
}
+ /* OVER-RANGE, WITH THE SAME INVERSION THE PALETTE DOES. components/meter.css
+ lights the track and cuts the bar out of it, because the blink that used to
+ be the only alarm signal is switched off in this mode. Restated here or the
+ rule above would paint the bar Highlight on a Canvas track and the alarm
+ would read as an ordinary meter — which is the exact failure the fill was
+ added to prevent. */
+ .ac-meter--alarm .ac-meter__track {
+ forced-color-adjust: none;
+ background: Highlight;
+ box-shadow: none;
+ }
+ .ac-meter--alarm .ac-meter__bar {
+ background: HighlightText;
+ }
+
+ /* A meter driven below full is not the same reading as one at full drive, and
+ Highlight has no way to say "less". The rule above matched every bar
+ unconditionally, so a .ac-meter--dim bar — which is deliberately drawn at
+ the faint tier with its halo off — came back at full strength here and
+ claimed a reading it does not have. GrayText is this mode's own word for
+ present-but-not-active, and it is what the disabled thumb already uses.
+ Print needs no equivalent: base/print.css re-points --ac-ink-faint to a mid
+ grey, so a dim bar already prints grey against a black one. */
+ .ac-meter--dim .ac-meter__bar {
+ background: GrayText;
+ }
+
/* The radio keeps its ring: the gap is punched with an inset shadow, so this
one cannot take `box-shadow: none` with the rest — the lamp would fill in
solid and stop reading as a radio. Restate the gap in Canvas instead. */
diff --git a/src/base/blink.css b/src/base/blink.css
new file mode 100644
index 0000000..9533168
--- /dev/null
+++ b/src/base/blink.css
@@ -0,0 +1,71 @@
+/* ===========================================================================
+ Blink — law-2 emphasis, and the one animation that is NOT a simulation.
+
+ Every display technology in this framework blinks, so switching it off says
+ nothing about which hardware is being simulated. That is why it is base/ and
+ not sim/: components/input.css and components/meter.css are blink sites and
+ would lose their alarm if a consumer dropped the simulations.
+
+ The decay variants of these keyframes live with the persistence engine, in
+ sim/afterglow.css, because that is what softens the OFF edge.
+ =========================================================================== */
+
+
+/* BLINK IS DRIVEN BY TWO INHERITED TOKENS, NOT BY A SELECTOR LIST.
+ ---------------------------------------------------------------------------
+ Every blink site reads the same pair, and every environment that wants to
+ change blink sets the pair ONCE instead of restating where the blink sites
+ are. Custom properties inherit, so a declaration on the root or on the frame
+ reaches all of them without a specificity fight — which is what the four
+ mirrored copies of this list used to be paying for.
+
+ --ac-blink-name which keyframe, or `none` to stop blinking
+ --ac-blink-ease its timing function
+
+ --ac-blink-force the same two, but reserved for the ROOT. Read FIRST at
+ --ac-blink-force-ease every site, and never declared on .ac-afterglow, so
+ an environment override cannot lose to the simulation
+ simply for being further from the element. That inversion
+ is exactly what the doubled `[data-ac-style-blink="off"]
+ .ac-afterglow ...` selectors existed to defeat.
+
+ ADDING A BLINK SITE is now one declaration pair on the site itself. Nothing
+ else in this file, and nothing in print.css or a11y.css, has to learn it.
+
+ The two defaults are declared in tokens/effects.css, NOT here. This file is the
+ contract and the keyframes; the token block that seeds them sits with the other
+ tokens, because a consumer overriding blink overrides it there. */
+
+/* Hard on/off blink — no fades on a plasma panel */
+@keyframes ac-blink { 0%, 54% { opacity: 1; } 55%, 100% { opacity: 0.1; } }
+.ac-blink {
+ animation-name: var(--ac-blink-force, var(--ac-blink-name));
+ animation-duration: 1.1s;
+ animation-timing-function: var(--ac-blink-force-ease, var(--ac-blink-ease));
+ animation-iteration-count: infinite;
+}
+
+/* Block cursor — same pair, its own 1s cycle. */
+.ac-cursor::after {
+ content: "█";
+ margin-left: 2px;
+ animation-name: var(--ac-blink-force, var(--ac-blink-name));
+ animation-duration: 1s;
+ animation-timing-function: var(--ac-blink-force-ease, var(--ac-blink-ease));
+ animation-iteration-count: infinite;
+}
+
+/* A STYLE FLAG, NOT A SIMULATION. Every display technology here blinks, so
+ turning it off says nothing about which one is being simulated.
+
+ Off settles LIT, not dark: the keyframe's dark half is 0.1 opacity, and a
+ blink stopped there is an element that has silently vanished. Once blink is
+ off, the inverse fill and the ✳✳ glyphs are what carry an alarm.
+
+ ONE DECLARATION, on the root, where the flag already is. It uses the -force
+ pair rather than --ac-blink-name so that switching the CRT simulation on —
+ which declares --ac-blink-name on the nearer .ac-afterglow frame — cannot
+ quietly restart a blink the user has turned off. */
+[data-ac-style-blink="off"] {
+ --ac-blink-force: none;
+}
diff --git a/src/base/layout.css b/src/base/layout.css
index d78fcd5..bace865 100644
--- a/src/base/layout.css
+++ b/src/base/layout.css
@@ -18,7 +18,7 @@
viewport-sized backdrop-filter (.ac-bloom::before) behind it. `100svh` is
static and can never overflow. It leaves a gap when the bar retracts, and
that gap is invisible: this element paints no background of its own, `body`
- owns --screen, and the overlays are fixed to the real viewport regardless.
+ owns --ac-screen, and the overlays are fixed to the real viewport regardless.
Declared after the 100vh fallback, which older engines keep. */
min-height: 100vh;
min-height: 100svh;
@@ -38,23 +38,23 @@
flex: 1;
flex-direction: column;
/* 20px 24px — five and six half-cells. Override with --ac-screen-pad. */
- padding: var(--ac-screen-pad, 20px var(--space-6));
- gap: var(--space-4);
+ padding: var(--ac-screen-pad, 20px var(--ac-space-6));
+ gap: var(--ac-space-4);
min-width: 0;
}
-/* --- Stack / Row: one axis, gap driven by a --gap custom property --- */
+/* --- Stack / Row: one axis, gap driven by a --ac-gap custom property --- */
.ac-stack {
display: flex;
flex-direction: column;
- gap: var(--gap, var(--space-4));
+ gap: var(--ac-gap, var(--ac-space-4));
min-width: 0;
}
.ac-row {
display: flex;
flex-direction: row;
- gap: var(--gap, var(--space-4));
+ gap: var(--ac-gap, var(--ac-space-4));
min-width: 0;
}
.ac-row--wrap { flex-wrap: wrap; }
@@ -97,8 +97,8 @@
/* --- Grid --- */
.ac-grid {
display: grid;
- grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
- gap: var(--gap, var(--space-6));
+ grid-template-columns: repeat(var(--ac-cols, 1), minmax(0, 1fr));
+ gap: var(--ac-gap, var(--ac-space-6));
min-width: 0;
}
diff --git a/src/base/print.css b/src/base/print.css
index 8f5d5af..af9a445 100644
--- a/src/base/print.css
+++ b/src/base/print.css
@@ -8,40 +8,92 @@
The 2px rules stay — they are the layout. Glow, bloom, scanlines and every
animation go, because they describe energized hardware and paper is not.
- This is the one file besides tokens/colors.css and tokens/effects.css that is
- allowed to contain literal hex colours; scripts/check-prohibitions.mjs
- enforces that.
+ Literal hex is allowed here, in tokens/colors.css, and in the two sim/ files
+ that use #000 inside a mask-image — where the value is alpha rather than a
+ color. scripts/check-prohibitions.mjs enforces that list, and splitting
+ effects.css let it get shorter: the glow tokens no longer contain a hex.
=========================================================================== */
@media print {
- :root {
- --screen: #ffffff;
- --screen-raised: #f2f2f2;
- --screen-well: #ffffff;
-
- --ink: #000000;
- --ink-bright: #000000;
- --ink-dim: #333333;
- --ink-faint: #666666;
- --ink-trace: #999999;
-
- --fill: #000000;
- --fill-bright: #000000;
- --on-fill: #ffffff;
-
- --stroke: #000000;
- --stroke-dim: #666666;
-
- --glow-text: none;
- --glow-box: none;
+ /* THE SELECTOR LIST IS THE FIX, AND IT HAS TO STAY THIS SHAPE.
+ `:root` alone is specificity (0,1,0). The palettes in tokens/colors.css are
+ `[data-ac-tech="crt"][data-ac-emitter="p3"]` — (0,2,0) — and a media query
+ adds NO specificity, so a plain `:root` here loses to every palette for the
+ four tokens they declare: --ac-screen, --ac-screen-raised, --ac-screen-well
+ and --ac-on-fill.
+ It lost silently and it lost HALF the palette, which is the dangerous shape.
+ --ac-ink, --ac-fill and --ac-stroke are declared at :root in colors.css, so
+ those inverted correctly and the inverse-video fills went solid black — over
+ text that stayed --ac-on-fill #1e0c00. Black on near-black, 1.05:1, on every
+ status strip, panel title, filled key and input on paper. The setup board
+ kept --ac-screen too and printed as a full page of solid ink.
+ Matching (0,2,0) and relying on this file being imported LAST is the same
+ contract the rest of the file already runs on — see the header. Anything
+ that beats the palettes works; nothing weaker does.
+
+ .ac-root IS THE FOURTH ENTRY AND IT IS NOT OPTIONAL. tokens/colors.css
+ declares the semantic aliases on `:root, .ac-root` so that a scoped embed
+ re-resolves them against its own palette. That rule sits on a CLOSER element
+ than this one, and proximity beats a same-weight declaration on an ancestor
+ — so without .ac-root here, `--ac-ink: var(--ac-emit-90)` on the wrapper
+ would win over `--ac-ink: #000` on :root and a scoped embed would print the
+ whole panel in amber on white. The two lists have to move together. */
+ :root,
+ .ac-root,
+ [data-ac-tech][data-ac-emitter],
+ [data-ac-gas] {
+ --ac-screen: #ffffff;
+ --ac-screen-raised: #f2f2f2;
+ --ac-screen-well: #ffffff;
+
+ --ac-ink: #000000;
+ --ac-ink-bright: #000000;
+ --ac-ink-dim: #333333;
+ --ac-ink-faint: #666666;
+ --ac-ink-trace: #999999;
+
+ --ac-fill: #000000;
+ --ac-fill-bright: #000000;
+ --ac-on-fill: #ffffff;
+
+ --ac-stroke: #000000;
+ --ac-stroke-dim: #666666;
+
+ --ac-glow-text: none;
+ /* Transparent rather than `none`, and the difference is load-bearing now
+ that components compose the halo with the key edge:
+ `var(--ac-glow-box), var(--ac-edge)` resolving to `none, …` is not a valid
+ shadow list, so the whole declaration is dropped. That happened to leave
+ `none` behind and print correctly — by way of an invalid declaration
+ rather than on purpose. Same value the forced-colors block in a11y.css
+ uses, for the same reason. */
+ --ac-glow-box: 0 0 0 transparent;
+ --ac-glow-box-dim: 0 0 0 transparent;
+ --ac-edge: 0 0 0 transparent;
+ --ac-edge-press: 0 0 0 transparent;
+
+ /* Every blink site at once — see the blink header in base/blink.css.
+ -force rather than -name so the CRT simulation, which declares -name on a
+ nearer ancestor, cannot reinstate a blink on paper. */
+ --ac-blink-force: none;
+
+ /* The de-energizing afterimage is a halo around a control that is no longer
+ lit — an argument about elapsed time, which paper does not have — and it
+ prints as an unexplained smudge. The scroll smear is the same claim about
+ a page that is not moving, in case one is captured mid-scroll. Both go
+ through their own tokens, so neither of the two selector lists that used
+ to be mirrored into this file is restated here at all. */
+ --ac-afterimage-display: none;
+ --ac-smear-filter: none;
}
/* .ac-bloom redefines the glow tokens on the frame itself, which is a closer
ancestor than :root and so wins for every descendant. Reset it here or the
whole page prints with an amber halo around the text. */
.ac-bloom {
- --glow-text: none;
- --glow-box: none;
+ --ac-glow-text: none;
+ --ac-glow-box: 0 0 0 transparent;
+ --ac-glow-box-dim: 0 0 0 transparent;
}
body {
@@ -55,7 +107,21 @@
.ac-scanlines::after,
.ac-retrace,
.ac-persist,
- .ac-mesh {
+ .ac-mesh,
+ /* The radar wake is a rotating light, and paper does not rotate — frozen, it
+ prints as an unexplained bright wedge across the face. Hiding it also keeps
+ the LAST blended element off the printed page, which matters more than it
+ looks: a single `mix-blend-mode` anywhere in the document promotes the
+ containing stacking context and costs SUBPIXEL TEXT ANTIALIASING for the
+ whole page. Every other overlay here was already hidden in print, so this
+ one arriving quietly turned every printed glyph grayscale. */
+ .ac-sweep__beam {
+ display: none;
+ }
+
+
+ /* A trailing bar is an argument about elapsed time, which paper does not have. */
+ .ac-afterglow .ac-meter__track::before {
display: none;
}
@@ -68,7 +134,7 @@
}
/* Blanket, for the same reason as the reduced-motion block in
- tokens/effects.css: every decay is a descendant rule under .ac-afterglow and
+ sim/frame.css: every decay is a descendant rule under .ac-afterglow and
outranks a plain reset, so catching them by name means missing the next one. */
.ac-afterglow *,
.ac-afterglow *::before,
@@ -76,23 +142,10 @@
transition: none !important;
}
- /* And the scroll smear, in case the page is captured mid-scroll. The :not()
- list mirrors the one in tokens/effects.css — keep them identical. */
- .ac-afterglow[data-ac-scrolling] > *:not(.ac-persist, .ac-retrace, .ac-mesh) {
- filter: none;
- }
- .ac-blink,
- .ac-cursor::after,
- .ac-spinner::before,
- .ac-meter--alarm .ac-meter__bar,
- .ac-field--invalid .ac-input,
- /* Restated at the afterglow override's own weight — see tokens/effects.css. */
- .ac-afterglow .ac-blink,
- .ac-afterglow .ac-cursor::after,
- .ac-afterglow .ac-field--invalid .ac-input,
- .ac-afterglow .ac-input[aria-invalid="true"],
- .ac-afterglow .ac-meter--alarm .ac-meter__bar {
+ /* The spinner is not a blink site — it runs its own keyframe, so it is still
+ named here. Blink itself is switched off via --ac-blink-force above. */
+ .ac-spinner::before {
animation: none;
filter: none;
}
@@ -106,7 +159,7 @@
Anything whose meaning is "this cell is lit" belongs here.
The visual suite cannot catch a gap in this list. Playwright's
- emulateMedia({ media: "print" }) renders to a screen surface, which honours
+ emulateMedia({ media: "print" }) renders to a screen surface, which honors
backgrounds regardless — so console-1280-print.png shows filled interlocks
that a real printer would not. Check it by hand against a print preview. */
@@ -133,7 +186,12 @@
.ac-check input:checked,
.ac-radio input:checked,
.ac-toggle__thumb,
- .ac-meter__bar {
+ .ac-meter__bar,
+ /* The over-range track, which is inverse video like everything above it and
+ is the ONLY thing left saying "alarm" on paper — the blink that used to
+ carry it cannot print. Without this the track drops its background and an
+ alarmed meter prints as an ordinary one. See components/meter.css. */
+ .ac-meter--alarm .ac-meter__track {
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
diff --git a/src/base/reset-scoped.css b/src/base/reset-scoped.css
index 58c1a0a..df0d7e0 100644
--- a/src/base/reset-scoped.css
+++ b/src/base/reset-scoped.css
@@ -8,6 +8,15 @@
Use ONE of reset.css or reset-scoped.css, not both. amber-console.css imports
the global one; to switch, edit that single @import line and rebuild.
+
+ THE PALETTE MAY GO ON THIS ELEMENT, AND THAT IS WORTH STATING BECAUSE IT ONCE
+ DID NOT WORK. Put data-ac-tech / data-ac-emitter on and everything is
+ normal. Put them HERE instead — which is the natural thing to do when you are
+ embedding and do not own — and the five --ac-emit-* stops changed on
+ this subtree while --ac-ink, --ac-fill and --ac-stroke stayed resolved from
+ the document root's default: the surfaces moved and the text did not.
+ tokens/colors.css now declares the semantic aliases on `:root, .ac-root`, so
+ both placements work. Either is supported; do not split them across the two.
=========================================================================== */
.ac-root,
@@ -18,12 +27,13 @@
}
.ac-root {
- background: var(--screen);
- color: var(--ink);
- font-family: var(--font-terminal);
- font-size: var(--type-body);
- line-height: var(--leading);
- letter-spacing: var(--tracking-body);
+ background: var(--ac-screen);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
+ line-height: var(--ac-leading);
+ letter-spacing: var(--ac-tracking-body);
-webkit-font-smoothing: none;
}
@@ -37,18 +47,20 @@
}
.ac-root a {
- color: var(--ink-bright);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
text-decoration: underline;
text-underline-offset: 3px;
}
.ac-root a:hover {
- color: var(--fill-bright);
- text-shadow: var(--glow-text);
+ color: var(--ac-fill-bright);
+ text-shadow: var(--ac-glow-text);
}
.ac-root ::selection {
- background: var(--fill);
- color: var(--on-fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
}
.ac-root button,
@@ -60,9 +72,10 @@
line-height: inherit;
letter-spacing: inherit;
color: inherit;
+ text-shadow: inherit;
}
.ac-root :focus-visible {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
diff --git a/src/base/reset.css b/src/base/reset.css
index 2162e83..b9ce44c 100644
--- a/src/base/reset.css
+++ b/src/base/reset.css
@@ -14,12 +14,13 @@
body {
margin: 0;
- background: var(--screen);
- color: var(--ink);
- font-family: var(--font-terminal);
- font-size: var(--type-body);
- line-height: var(--leading);
- letter-spacing: var(--tracking-body);
+ background: var(--ac-screen);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
+ line-height: var(--ac-leading);
+ letter-spacing: var(--ac-tracking-body);
/* Antialiasing softens the bitmap grid and kills the effect. Keep this. */
-webkit-font-smoothing: none;
}
@@ -37,21 +38,27 @@ h4 {
/* Undefined links render browser-default blue and instantly break the illusion. */
a {
- color: var(--ink-bright);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
text-decoration: underline;
text-underline-offset: 3px;
}
a:hover {
- color: var(--fill-bright);
- text-shadow: var(--glow-text);
+ color: var(--ac-fill-bright);
+ text-shadow: var(--ac-glow-text);
}
::selection {
- background: var(--fill);
- color: var(--on-fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
}
-/* Form controls do not inherit type by default. On a character grid they must. */
+/* Form controls do not inherit type by default. On a character grid they must.
+ text-shadow is on that list and is the one nobody expects: the halo is applied
+ at the frame and inherits everywhere, but a or an stops it,
+ so a toggle's own label sat flat on a panel where every word around it glowed.
+ A control is made of lit cells like anything else. */
button,
input,
select,
@@ -61,11 +68,12 @@ textarea {
line-height: inherit;
letter-spacing: inherit;
color: inherit;
+ text-shadow: inherit;
}
/* The shared focus ring. Every interactive ac-* class repeats this so it still
works when a consumer imports components without the reset. */
:focus-visible {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
diff --git a/src/components/badge.css b/src/components/badge.css
index 82e9f50..0250d74 100644
--- a/src/components/badge.css
+++ b/src/components/badge.css
@@ -10,24 +10,29 @@
.ac-badge {
display: inline-block;
- font-family: var(--font-micro);
- font-size: var(--type-micro);
+ font-family: var(--ac-font-micro);
+ font-size: var(--ac-type-micro);
line-height: 1.4;
- letter-spacing: var(--tracking-micro);
+ letter-spacing: var(--ac-tracking-micro);
text-transform: uppercase;
padding: 4px 8px;
- border: 1px solid var(--stroke);
+ border: 1px solid var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
border-radius: 2px;
- color: var(--ink);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
}
.ac-badge--filled {
- background: var(--fill);
- color: var(--on-fill);
- border-color: var(--fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
+ border-color: var(--ac-fill);
}
.ac-badge--dim {
- color: var(--ink-faint);
- border-color: var(--stroke-dim);
+ color: var(--ac-ink-faint);
+ text-shadow: var(--ac-glow-text-faint);
+ border-color: var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
}
diff --git a/src/components/banner.css b/src/components/banner.css
index 0619003..18231d7 100644
--- a/src/components/banner.css
+++ b/src/components/banner.css
@@ -14,17 +14,18 @@
display: flex;
justify-content: center;
align-items: center;
- gap: var(--space-6);
- border: var(--border-w) solid var(--stroke);
+ gap: var(--ac-space-6);
+ border: var(--ac-border-w) solid var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
border-radius: 2px;
padding: 10px 24px;
- font-family: var(--font-terminal);
- font-size: var(--type-display);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-display);
line-height: 1;
letter-spacing: 0.14em;
- color: var(--ink-bright);
+ color: var(--ac-ink-bright);
text-transform: uppercase;
- text-shadow: var(--glow-text);
+ text-shadow: var(--ac-glow-text);
}
.ac-banner::before,
@@ -39,23 +40,24 @@
the parts that carry the alarm — are untouched. */
@media (max-width: 480px) {
.ac-banner {
- gap: var(--space-3);
- padding: 10px var(--space-3);
- font-size: var(--type-title);
+ gap: var(--ac-space-3);
+ padding: 10px var(--ac-space-3);
+ font-size: var(--ac-type-title);
flex-wrap: wrap;
}
}
/* Inverse video for an alarm that must survive a static screenshot. */
.ac-banner--filled {
- background: var(--fill);
- color: var(--on-fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
text-shadow: none;
- box-shadow: var(--glow-box);
+ box-shadow: var(--ac-glow-box);
}
.ac-banner--dim {
- color: var(--ink-faint);
- border-color: var(--stroke-dim);
- text-shadow: none;
+ color: var(--ac-ink-faint);
+ border-color: var(--ac-stroke-dim);
+ text-shadow: var(--ac-glow-text-faint);
+ box-shadow: var(--ac-glow-box-dim);
}
diff --git a/src/components/button.css b/src/components/button.css
index f2fc16f..4bef763 100644
--- a/src/components/button.css
+++ b/src/components/button.css
@@ -10,68 +10,114 @@
.ac-btn {
display: inline-block;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
line-height: 1;
text-transform: uppercase;
text-decoration: none;
- letter-spacing: var(--tracking-body);
- color: var(--ink);
+ letter-spacing: var(--ac-tracking-body);
+ color: var(--ac-ink);
background: transparent;
- border: var(--border-w) solid var(--stroke);
- border-radius: var(--radius);
+ border: var(--ac-border-w) solid var(--ac-stroke);
+ /* HALO PLUS EXTRUSION, IN THAT ORDER, ON EVERY STATE THAT HAS A HALO.
+ --ac-edge is the classic key edge and is set only by a corner scope
+ (components/classic.css); outside one it is undefined and the fallback
+ paints nothing, so a rounded key is unchanged.
+
+ IT IS DECLARED HERE RATHER THAN IN classic.css, and that is the fix for a
+ real bug. classic.css used to add the edge from a scope-prefixed rule at
+ (0,2,0), which outranked .ac-btn--dim at (0,1,0) and handed a dim key the
+ FULL halo — so under the default corner style every dim key glowed as hard
+ as a lit one, contradicting the drive-tier law the framework gates
+ everywhere else. Each state now carries its own tier and its own edge, so
+ the two cannot disagree. */
+ box-shadow: var(--ac-glow-box), var(--ac-edge, 0 0 0 transparent);
+ border-radius: var(--ac-radius);
padding: 10px 22px;
cursor: pointer;
- text-shadow: var(--glow-text);
+ text-shadow: var(--ac-glow-text);
}
.ac-btn:hover {
- color: var(--ink-bright);
- border-color: var(--amber-100);
- box-shadow: var(--glow-box);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
+ border-color: var(--ac-ink-bright);
+ box-shadow: var(--ac-glow-box), var(--ac-edge, 0 0 0 transparent);
}
/* Press snaps to inverse video. No transition — a redrawn screen has no
- in-between frames. */
+ in-between frames. The edge flips to --ac-edge-press: a pressed key is IN, and
+ the light is what moves. */
.ac-btn:active {
- background: var(--fill);
- color: var(--on-fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
text-shadow: none;
+ box-shadow: var(--ac-glow-box), var(--ac-edge-press, 0 0 0 transparent);
}
+/* A latched key reads pressed for as long as it is latched, so --filled and
+ aria-pressed take the pressed edge too. */
.ac-btn--filled,
.ac-btn[aria-pressed="true"] {
- background: var(--fill);
- color: var(--on-fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
text-shadow: none;
- box-shadow: var(--glow-box);
+ box-shadow: var(--ac-glow-box), var(--ac-edge-press, 0 0 0 transparent);
}
+/* Restated because .ac-btn:hover weighs the same and lands earlier: without it a
+ hovered latched key would pop back out to the resting edge. */
.ac-btn--filled:hover,
.ac-btn[aria-pressed="true"]:hover {
- background: var(--fill-bright);
- color: var(--on-fill);
+ background: var(--ac-fill-bright);
+ color: var(--ac-on-fill);
+ text-shadow: none;
+ box-shadow: var(--ac-glow-box), var(--ac-edge-press, 0 0 0 transparent);
}
-/* Dim never glows — glow is the signal of energization. */
+/* Dim is a DRIVE LEVEL, not an off state — emit-50 is still a lit cell, so it
+ still scatters, just less. The key is still EXTRUDED, though: the edge is
+ geometry and does not answer to how hard the cell behind it is driven. Only
+ genuinely inert things go flat; see the :disabled rule below and the
+ drive-tier note in tokens/effects.css. */
.ac-btn--dim {
- color: var(--ink-faint);
- border-color: var(--stroke-dim);
- text-shadow: none;
+ color: var(--ac-ink-faint);
+ border-color: var(--ac-stroke-dim);
+ text-shadow: var(--ac-glow-text-faint);
+ box-shadow: var(--ac-glow-box-dim), var(--ac-edge, 0 0 0 transparent);
}
.ac-btn--lg {
- font-size: var(--type-title);
+ font-size: var(--ac-type-title);
padding: 14px 28px;
}
-/* NOTE: --sm computes to roughly 30px tall, below the 44px hit-target floor.
- The value is fixed by the source design system, so it is documented rather
- than changed — see "Known constraints" in README.md. Reserve it for dense,
- mouse-driven tooling; never use it for a primary control on a touch panel. */
+/* ---------------------------------------------------------------------------
+ ACCESSIBILITY WARNING — READ BEFORE USING THIS CLASS.
+
+ .ac-btn--sm computes to 34px tall. WCAG 2.2 Target Size (Minimum,
+ 2.5.8, AA) asks for 24x24 CSS px and the widely-used practical floor is 44px;
+ this clears the spec minimum and misses the comfortable one. On a touch
+ screen it is genuinely hard to hit.
+
+ It is not silently resized because the value comes from the source design
+ system and every other size in the scale is solved against it.
+
+ SAFE: dense mouse-driven tooling — a log filter, a table's row actions,
+ a settings row in an admin panel.
+ UNSAFE: anything on a touch panel, and any PRIMARY action anywhere. Use the
+ default .ac-btn for those — it measures 46px tall, clearing the 44px
+ practical floor, and it is the default for this reason. (46 rather
+ than a round 44 because the height is the sum of the parts: 22px body
+ text at line-height 1, plus 10px padding twice, plus a 2px border
+ twice. Nothing here is set to a target size directly.)
+
+ If you need small AND touch-safe, keep .ac-btn--sm for the look and give the
+ control padding or a pseudo-element that extends the hit area to 44px without
+ changing the drawn box. --------------------------------------------------- */
.ac-btn--sm {
- font-size: var(--type-small);
+ font-size: var(--ac-type-small);
padding: 6px 14px;
- border-radius: var(--radius-sm);
+ border-radius: var(--ac-radius-sm);
}
/* The gloved-finger touch pad: label parked top-left, body deliberately empty. */
@@ -95,15 +141,25 @@
.ac-btn:disabled,
.ac-btn[aria-disabled="true"] {
- color: var(--ink-faint);
- border-color: var(--stroke-dim);
+ color: var(--ac-ink-faint);
+ border-color: var(--ac-stroke-dim);
background: transparent;
text-shadow: none;
+ /* Inert, so no halo at all — not a dimmer one. This is the half of law 1 that
+ the drive tiers must never quietly absorb.
+
+ THE RULE HOLDS FOR EVERY CONTROL THAT IS ITSELF THE LAMP: this key,
+ .ac-tab, .ac-input, .ac-check and .ac-radio all go to `none`. There is ONE
+ stated exception and it is the toggle HOUSING, which keeps
+ --ac-glow-box-dim because it is a box that is still drawn rather than a cell
+ that is no longer lit — components/toggle.css argues that case where it
+ makes it, and the thumb inside it, which IS the lamp, goes dark like
+ everything here. Anything else keeping a halo while disabled is drift. */
box-shadow: none;
cursor: default;
}
.ac-btn:focus-visible {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
diff --git a/src/components/checkbox.css b/src/components/checkbox.css
index d6be396..7456217 100644
--- a/src/components/checkbox.css
+++ b/src/components/checkbox.css
@@ -16,12 +16,13 @@
align-items: center;
gap: 10px;
min-height: 44px;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
line-height: 1;
- color: var(--ink);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
text-transform: uppercase;
- letter-spacing: var(--tracking-body);
+ letter-spacing: var(--ac-tracking-body);
cursor: pointer;
}
@@ -32,34 +33,37 @@
height: 20px;
margin: 0;
flex: none;
- border: var(--border-w) solid var(--stroke);
+ border: var(--ac-border-w) solid var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
border-radius: 0;
background: transparent;
cursor: pointer;
}
.ac-check input:checked {
- background: var(--fill);
- box-shadow: var(--glow-box);
+ background: var(--ac-fill);
+ box-shadow: var(--ac-glow-box);
}
.ac-check--disabled,
.ac-check:has(input:disabled) {
- color: var(--ink-faint);
+ color: var(--ac-ink-faint);
+ text-shadow: none;
cursor: default;
}
.ac-check--disabled input,
.ac-check input:disabled {
- border-color: var(--stroke-dim);
+ border-color: var(--ac-stroke-dim);
+ box-shadow: none;
cursor: default;
}
.ac-check--disabled input:checked,
.ac-check input:disabled:checked {
- background: var(--ink-faint);
+ background: var(--ac-ink-faint);
box-shadow: none;
}
.ac-check input:focus-visible {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
diff --git a/src/components/classic.css b/src/components/classic.css
new file mode 100644
index 0000000..aee1564
--- /dev/null
+++ b/src/components/classic.css
@@ -0,0 +1,234 @@
+/* ===========================================================================
+ Classic — the corner a real panel could actually draw, the extruded key edge
+ that came with it, and the label parked in the corner of the face.
+
+ THIS IS THE DEFAULT LOOK. An 8px quarter-circle is a thing a modern rasterizer
+ does; a gas-discharge panel addressing a coarse cell grid could not, and the
+ keys on one stood on a hard offset edge with their label in the top-left corner
+ and the body left empty for a value. That is what these panels were, so it is
+ what the framework ships. The smooth corner is still here and still supported —
+ it is now the thing you opt into rather than the thing you opt out of.
+
+ IT IS THE DEFAULT IN CSS, WITH NO JAVASCRIPT. `:root` carries the classic
+ tokens, so a page that links the stylesheet and authors nothing at all gets
+ the chamfer and the extruded edge. This used to be true only when
+ ../amber-console.js was loaded — that file writes data-ac-style-classic="on",
+ and without it a CSS-only consumer silently got the rounded corner this
+ paragraph calls an opt-out. The stylesheet says what it means now.
+
+ (nothing) classic. The default.
+ .ac-rounded the way back to the arc, at any scope.
+ data-ac-style-classic="off" the same opt-out for a whole page; what the
+ optional JS writes when the switch is thrown.
+ .ac-classic back to classic inside a rounded region.
+ data-ac-style-classic="on" the page-level form of that.
+
+ All are the same set of rules reading the same tokens; none is more real than
+ the others, and they nest in either direction.
+
+ HOW THE SCOPING WORKS — the thing to understand before editing. The three
+ scopes set nothing but CUSTOM PROPERTIES, and custom properties inherit. Every
+ rule below is written ONCE and reads its values out of the cascade, so
+ `.ac-rounded` needs no mirror of any rule and nesting resolves by ordinary
+ inheritance rather than a specificity coin toss. Adding a fourth scope, or a
+ per-region override, is a token block and nothing else.
+
+ IT IS `border-radius` / `corner-shape` AND NOT A CLIP because `clip-path` and
+ `mask-image` clip the element's ENTIRE painting, outer box-shadow included —
+ so a clipped corner would buy a stepped edge by deleting the discharge halo
+ off all four sides. The two corner paths carry different radii rather than one
+ degraded chamfer, so Firefox loses the chamfer and nothing else. Both in
+ RATIONALE.md § components/classic.css.
+
+ =========================================================================== */
+
+/* --- (1) The scopes. Tokens only; no rule below is repeated per scope. --- */
+
+/* CLASSIC IS THE DEFAULT, IN CSS, WITH NO JAVASCRIPT.
+ `:root` leads this list, which is the whole point: a page that links the
+ stylesheet and authors no attribute and no class gets the classic corner. The
+ two opt-in scopes ride along so a classic REGION works inside a rounded page,
+ and so the attribute the optional JS writes keeps meaning what it says. */
+:root,
+.ac-classic,
+[data-ac-style-classic="on"] {
+ /* Grid-quantized corner, from tokens/spacing.css. Restated here only so a
+ .ac-classic region nested inside a .ac-rounded one gets it back. */
+ --ac-radius: 2px;
+ --ac-radius-sm: 2px;
+ --ac-corner: bevel;
+ --ac-edge: var(--ac-edge-3d);
+ --ac-edge-press: var(--ac-edge-3d-in);
+}
+
+@supports (corner-shape: bevel) {
+ /* The default's chamfer. It sits HERE, above the opt-out, and that position is
+ load-bearing: `:root` and `[data-ac-style-classic="off"]` both match
+ at the same weight, so whichever is written last wins. Below the opt-out,
+ this block handed the bevel radii back to a page that had explicitly asked
+ for round corners — visible as a chamfered key with no extrusion, which is
+ neither of the two looks this file ships. */
+ :root {
+ --ac-radius: 2px 4px 8px 4px;
+ --ac-radius-sm: 1px 2px 4px 2px;
+ }
+}
+
+/* The opt-out, at any scope: a page (the attribute, which is what the optional
+ JS writes) or a region (the class). Declared AFTER the :root default above so
+ that when both land on — `:root` and `[data-ac-style-classic="off"]`
+ weigh the same — the explicit off wins on order. */
+.ac-rounded,
+[data-ac-style-classic="off"] {
+ --ac-radius: 8px;
+ --ac-radius-sm: 4px;
+ --ac-corner: round;
+ /* A shadow that paints nothing, rather than `none`: `none` is not a valid item
+ inside a comma-separated shadow list, so `var(--ac-glow-box), none` would
+ invalidate the whole declaration and take the halo down with it. */
+ --ac-edge: 0 0 0 transparent;
+ --ac-edge-press: 0 0 0 transparent;
+}
+
+@supports (corner-shape: bevel) {
+ /* Where the shape can be cut, the radius is spent on the CUT instead of an arc,
+ and NOT EVENLY: these keys are lit from the top left, so the far corner is
+ barely cut and the near one is cut hardest. Cut all four the same and the key
+ reads as an octagon. 2 / 4 / 8 / 4 in TL TR BR BL order, from the system's own
+ radius steps; --ac-radius-sm runs the same diagonal at half depth.
+ See RATIONALE.md § The four corners are not the same size.
+
+ The :root half of this is declared above the opt-out; these two scopes are
+ declared below it, so a classic REGION inside a rounded page is chamfered
+ rather than inheriting the opt-out's arc. */
+ .ac-classic,
+ [data-ac-style-classic="on"] {
+ --ac-radius: 2px 4px 8px 4px;
+ --ac-radius-sm: 1px 2px 4px 2px;
+ }
+}
+
+/* --- (2) The corner. One rule, three scopes, value from the cascade. --- */
+
+/* THE LIST IS THE EIGHT PLACES A RADIUS IS DECLARED, and it was derived rather
+ than chosen: grep `border-radius: var(--ac-radius` across components/ and this is
+ what comes back. .ac-badge and .ac-banner are literal 2px, .ac-check is square,
+ and .ac-radio and .ac-sweep are circles — a circle has no corner to cut, so none
+ of the five belong here. Add to this list when a new component takes a --ac-radius,
+ or its corner will stay round while everything around it is cut. */
+@supports (corner-shape: bevel) {
+ /* The scope half is folded into one :is() so the component list is written
+ ONCE. Specificity is unchanged — :is() takes the highest of its arguments,
+ so both halves weigh (0,1,0) exactly as the two-selector form did, and the
+ pair still lands at (0,2,0). A complex selector inside :is() is safe to lean
+ on HERE and nowhere else in this file: everything in this block is already
+ gated behind corner-shape, which no engine lacking Selectors-4 supports. */
+ :is(
+ .ac-classic,
+ .ac-rounded,
+ :is(.ac-classic, .ac-rounded, [data-ac-style-classic="on"]) *
+ ):is(
+ .ac-btn, .ac-tab, .ac-panel, .ac-dialog, .ac-input, .ac-nav__link,
+ .ac-toggle__track, .ac-meter__track
+ ) {
+ /* stylelint-disable-next-line property-no-unknown -- corner-shape is newer
+ than the property list stylelint ships. The @supports is the real gate; an
+ engine that does not know the property never reads this block. */
+ corner-shape: var(--ac-corner, round);
+ }
+}
+
+/* --- (3) The extrusion — on the controls, and only on the controls. --- */
+
+/* A KEY IS EXTRUDED; A PANEL IS A HOLE IN THE BEZEL. The corner belongs to the
+ raster and reaches everything, but a drop shadow claims the thing stands off the
+ glass, and that is true of a soft key and a switch housing and of nothing else
+ on the board. Giving .ac-panel an edge too was tried and reads as a floating
+ card, which is a different design language from a control surface.
+
+ THE RULES THAT USED TO BE HERE ARE GONE, AND THIS FILE IS BETTER FOR IT.
+ Four scope-prefixed rules once lived at this point — the resting edge, the
+ pressed edge, a blank for disabled, and one for the toggle housing — each
+ repeating the same doubled `:is(scopes):is(X), :is(scopes) :is(X)` prefix.
+ They existed only to APPEND --ac-edge to a box-shadow the component had
+ already declared, and they did it by out-specifying the component, which is
+ what made a dim key glow at full drive.
+
+ components/button.css and components/toggle.css now write
+ `var(--ac-glow-box), var(--ac-edge, 0 0 0 transparent)` on each state
+ themselves, reading a token this file sets. Outside a corner scope --ac-edge
+ is undefined and paints nothing, so nothing needs to match a scope at all —
+ which is exactly what the scopes-set-only-tokens design at the top of this
+ file promised, and what these four rules were quietly breaking.
+
+ Disabled needs no rule for the same reason: button.css already blanks the
+ shadow, and nothing outranks it any more. */
+
+/* --- (4) The face: label top-left. --- */
+
+/* A soft key is a label plus room for a value, so the label parks in the corner
+ and the body is left empty. This is .ac-btn--pad's alignment WITHOUT its 96px
+ height, so it applies at any key size and composes with --pad unchanged.
+
+ NO `display` HERE, DELIBERATELY: inline-flex would outweigh .ac-btn--block's
+ `display: block` and .ac-btn--pad's `flex`, and a corner style that silently
+ unblocks a full-width key is worse than one that does nothing. The three
+ properties it does set are inert on a non-flex box.
+
+ THE KEYPAD IS EXEMPT — a digit has no label/value split to serve, and those
+ keys are centered on purpose. keypad.css states the reason. */
+.ac-classic.ac-btn:not(.ac-keypad__key),
+.ac-classic .ac-btn:not(.ac-keypad__key),
+[data-ac-style-classic="on"] .ac-btn:not(.ac-keypad__key) {
+ align-items: flex-start;
+ justify-content: flex-start;
+ text-align: left;
+}
+
+/* Back to undeclared, which is what a bare .ac-btn computes to — `normal` on both
+ flex properties and an inherited text-align. NOT `center`: that would center a
+ --pad, and a pad parks its label top-left in either corner style. --pad is
+ excluded outright for the same reason, since it out-specifies nothing here.
+
+ `text-align` is restated rather than token-driven because a CSS-wide keyword
+ arriving through var() substitution is the one part of this mechanism not worth
+ betting the alignment on. */
+.ac-rounded.ac-btn:not(.ac-btn--pad),
+.ac-rounded .ac-btn:not(.ac-btn--pad) {
+ align-items: normal;
+ justify-content: normal;
+ text-align: inherit;
+}
+
+/* --- (5) Inert keeps nothing, and it no longer has to be said twice. --- */
+
+/* NOTHING HERE ANY MORE, DELIBERATELY.
+
+ Two rules used to sit at this point: one blanking the shadow on a disabled key,
+ one restoring the dimmed housing on a disabled toggle. Both existed purely to
+ win back ground the extrusion rules above had taken by out-specifying the
+ components — `[data-ac-style-classic="on"] .ac-btn` weighs the same as
+ `.ac-btn:disabled` and landed later, so a dead key was being handed its halo
+ back and needed it removed again.
+
+ With the edge declared on the components, `.ac-btn:disabled { box-shadow:
+ none }` in button.css is simply the last word, and `.ac-toggle:disabled
+ .ac-toggle__track` in toggle.css already carried --ac-glow-box-dim at a weight
+ nothing here contested. Both rules were restating what those files say.
+
+ scripts/check-prohibitions.mjs could never have caught the underlying bug —
+ it gates an ink level set without its halo, and the extrusion rules set no
+ color — which is the argument for not having written them that way. */
+
+/* --- (6) Print pays for shadow in ink. --- */
+
+/* The extrusion goes and the cut corner stays: the corner is the shape of the
+ control and survives being printed, the shadow is a lighting effect and does
+ not. Blanked through the token rather than by restating four selectors — which
+ is the same reason `--ac-edge` exists at all. */
+@media print {
+ :root {
+ --ac-edge-3d: 0 0 0 transparent;
+ --ac-edge-3d-in: 0 0 0 transparent;
+ }
+}
diff --git a/src/components/dialog.css b/src/components/dialog.css
index 81938b3..8239208 100644
--- a/src/components/dialog.css
+++ b/src/components/dialog.css
@@ -28,12 +28,13 @@
box-sizing: border-box;
max-width: min(90vw, 560px);
padding: 0;
- border: var(--border-w) solid var(--stroke);
- border-radius: var(--radius);
- background: var(--screen);
- color: var(--ink);
- font-family: var(--font-terminal);
- box-shadow: var(--glow-box);
+ border: var(--ac-border-w) solid var(--ac-stroke);
+ border-radius: var(--ac-radius);
+ background: var(--ac-screen);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
+ font-family: var(--ac-font-terminal);
+ box-shadow: var(--ac-glow-box);
overflow: hidden;
}
@@ -47,27 +48,28 @@
margin: 0;
padding: 4px 16px;
text-align: center;
- background: var(--fill);
- color: var(--on-fill);
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.ac-dialog__body {
- padding: var(--space-4);
- font-size: var(--type-body);
- line-height: var(--leading);
+ padding: var(--ac-space-4);
+ font-size: var(--ac-type-body);
+ line-height: var(--ac-leading);
}
.ac-dialog__actions {
display: flex;
- gap: var(--space-4);
+ gap: var(--ac-space-4);
justify-content: flex-end;
flex-wrap: wrap;
- padding: 0 var(--space-4) var(--space-4);
+ padding: 0 var(--ac-space-4) var(--ac-space-4);
}
.ac-dialog--wide {
diff --git a/src/components/input.css b/src/components/input.css
index 46f9e26..5eb52d0 100644
--- a/src/components/input.css
+++ b/src/components/input.css
@@ -1,7 +1,7 @@
/* ===========================================================================
Field / Input / Textarea — recessed data wells.
- Input text is --ink-bright on --screen-well: the operator's own entry is the
+ Input text is --ac-ink-bright on --ac-screen-well: the operator's own entry is the
brightest thing in the region, because it is the one part of the panel a
human wrote.
@@ -16,8 +16,8 @@
.ac-field {
display: inline-flex;
flex-direction: column;
- gap: var(--space-1);
- font-family: var(--font-terminal);
+ gap: var(--ac-space-1);
+ font-family: var(--ac-font-terminal);
min-width: 0;
}
@@ -27,44 +27,55 @@
}
.ac-field__label {
- font-size: var(--type-small);
+ font-size: var(--ac-type-small);
line-height: 1;
- color: var(--ink-dim);
+ color: var(--ac-ink-dim);
+ text-shadow: var(--ac-glow-text-dim);
text-transform: uppercase;
- letter-spacing: var(--tracking-body);
+ letter-spacing: var(--ac-tracking-body);
}
.ac-input {
box-sizing: border-box;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
- color: var(--ink-bright);
- background: var(--screen-well);
- border: var(--border-w) solid var(--stroke-dim);
- border-radius: var(--radius-sm);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
+ background: var(--ac-screen-well);
+ border: var(--ac-border-w) solid var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
+ border-radius: var(--ac-radius-sm);
padding: 6px 12px;
- letter-spacing: var(--tracking-body);
- caret-color: var(--ink-bright);
+ letter-spacing: var(--ac-tracking-body);
+ caret-color: var(--ac-ink-bright);
text-transform: uppercase;
}
.ac-input::placeholder {
- color: var(--ink-faint);
+ color: var(--ac-ink-faint);
+ text-shadow: var(--ac-glow-text-faint);
}
.ac-input:focus {
outline: none;
- border-color: var(--stroke);
- box-shadow: var(--glow-box);
+ border-color: var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
}
.ac-input:disabled {
- color: var(--ink-faint);
- border-color: var(--ink-trace);
+ color: var(--ac-ink-faint);
+ text-shadow: none;
+ border-color: var(--ac-ink-trace);
+ /* Inert, so no halo at all — the base rule above carries --ac-glow-box-dim and
+ without this line a dead well kept it, glowing harder than its own
+ trace-level border implied. Matches .ac-btn:disabled; see the drive-tier
+ note in components/button.css. */
+ box-shadow: none;
}
.ac-input:read-only {
- color: var(--ink-dim);
+ color: var(--ac-ink-dim);
+ text-shadow: var(--ac-glow-text-dim);
}
.ac-input--block {
@@ -76,32 +87,34 @@
textarea.ac-input {
display: block;
width: 100%;
- line-height: var(--leading);
+ line-height: var(--ac-leading);
resize: vertical;
}
/* Invalid = the machine rejecting the entry. Inverse video carries it; the
blink is the alarm on top. Pair with aria-invalid for assistive tech. */
.ac-field--invalid .ac-field__label {
- color: var(--ink-bright);
- text-shadow: var(--glow-text);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
}
.ac-field--invalid .ac-input,
.ac-input[aria-invalid="true"] {
- background: var(--fill);
- color: var(--on-fill);
- border-color: var(--stroke);
- caret-color: var(--on-fill);
- animation: ac-blink 1.1s steps(1) infinite;
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
+ border-color: var(--ac-stroke);
+ caret-color: var(--ac-on-fill);
+ /* A blink site: reads the pair declared in tokens/effects.css and explained in
+ base/blink.css, which is also what switches it off for the blink flag,
+ reduced motion, print and forced colors. Nothing outside this rule needs to
+ know this element blinks. */
+ animation-name: var(--ac-blink-force, var(--ac-blink-name));
+ animation-duration: 1.1s;
+ animation-timing-function: var(--ac-blink-force-ease, var(--ac-blink-ease));
+ animation-iteration-count: infinite;
}
.ac-field--invalid .ac-input::placeholder,
.ac-input[aria-invalid="true"]::placeholder {
- color: var(--on-fill);
-}
-
-@media (prefers-reduced-motion: reduce) {
- .ac-field--invalid .ac-input,
- .ac-input[aria-invalid="true"] {
- animation: none;
- }
+ color: var(--ac-on-fill);
+ text-shadow: none;
}
diff --git a/src/components/keypad.css b/src/components/keypad.css
index 75584cb..7647481 100644
--- a/src/components/keypad.css
+++ b/src/components/keypad.css
@@ -2,7 +2,7 @@
Keypad — a 3-column numeric entry grid.
These panels are operated with gloves, so the keys are large and square-ish
- and the digit is centred rather than parked top-left: on a key with one
+ and the digit is centered rather than parked top-left: on a key with one
character there is no label/value split for the top-left rule to serve.
Keys are ordinary .ac-btn elements, so every button state applies unchanged.
@@ -23,7 +23,7 @@
.ac-keypad {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: var(--space-2);
+ gap: var(--ac-space-2);
max-width: 420px;
min-width: 0;
}
@@ -37,12 +37,12 @@
min-height: 72px;
min-width: 0;
padding: 10px 16px;
- font-size: var(--type-title);
+ font-size: var(--ac-type-title);
}
/* CLR / ENT read as commands rather than digits. */
.ac-keypad__key--fn {
- font-size: var(--type-body);
+ font-size: var(--ac-type-body);
}
.ac-keypad__key--wide {
diff --git a/src/components/list.css b/src/components/list.css
index 96939d7..43f0931 100644
--- a/src/components/list.css
+++ b/src/components/list.css
@@ -20,28 +20,29 @@
.ac-list {
display: flex;
flex-direction: column;
- gap: var(--space-1);
+ gap: var(--ac-space-1);
margin: 0;
padding: 0;
list-style: none;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
line-height: 1;
text-transform: uppercase;
- letter-spacing: var(--tracking-body);
+ letter-spacing: var(--ac-tracking-body);
min-width: 0;
}
.ac-list__item {
display: flex;
align-items: baseline;
- gap: var(--space-2);
+ gap: var(--ac-space-2);
margin: 0;
min-width: 0;
}
.ac-list__key {
- color: var(--ink-dim);
+ color: var(--ac-ink-dim);
+ text-shadow: var(--ac-glow-text-dim);
white-space: nowrap;
}
@@ -49,32 +50,35 @@
lands exactly on the row's text baseline. */
.ac-list__fill {
flex: 1;
- min-width: var(--space-6);
+ min-width: var(--ac-space-6);
align-self: baseline;
- border-bottom: var(--border-w) dotted var(--ink-trace);
+ border-bottom: var(--ac-border-w) dotted var(--ac-ink-trace);
}
.ac-list__value {
margin: 0;
- color: var(--ink);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* Values that are the point of the panel rather than context. */
.ac-list--bright .ac-list__value {
- color: var(--ink-bright);
- text-shadow: var(--glow-text);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
}
.ac-list--dense {
gap: 0;
- font-size: var(--type-small);
+ font-size: var(--ac-type-small);
}
.ac-list--dim .ac-list__key {
- color: var(--ink-faint);
+ color: var(--ac-ink-faint);
+ text-shadow: var(--ac-glow-text-faint);
}
.ac-list--dim .ac-list__value {
- color: var(--ink-dim);
+ color: var(--ac-ink-dim);
+ text-shadow: var(--ac-glow-text-dim);
}
diff --git a/src/components/meter.css b/src/components/meter.css
index 0e6c6f7..9ffb1c9 100644
--- a/src/components/meter.css
+++ b/src/components/meter.css
@@ -22,38 +22,46 @@
.ac-meter {
display: flex;
flex-direction: column;
- gap: var(--space-1);
- font-family: var(--font-terminal);
+ gap: var(--ac-space-1);
+ font-family: var(--ac-font-terminal);
min-width: 0;
}
.ac-meter__track {
position: relative;
height: 24px;
- border: var(--border-w) solid var(--stroke-dim);
- border-radius: var(--radius-sm);
- background: var(--screen-well);
+ border: var(--ac-border-w) solid var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
+ border-radius: var(--ac-radius-sm);
+ background: var(--ac-screen-well);
overflow: hidden;
}
.ac-meter__bar {
+ /* POSITIONED SO IT PAINTS ABOVE ITS OWN GHOST. sim/afterglow.css hangs a
+ lagging copy of this bar on .ac-meter__track::before, and an unpositioned
+ block child paints BELOW any positioned pseudo-element — so without this the
+ draining ghost would cover the live bar instead of trailing behind it. With
+ both positioned, tree order settles it and ::before goes underneath. */
+ position: relative;
height: 100%;
width: calc(var(--ac-meter-value, 0) * 1%);
background: repeating-linear-gradient(
90deg,
- var(--fill) 0 8px,
+ var(--ac-fill) 0 8px,
transparent 8px 12px
);
- box-shadow: var(--glow-box);
+ box-shadow: var(--ac-glow-box);
}
.ac-meter__scale {
display: flex;
justify-content: space-between;
- font-family: var(--font-micro);
- font-size: var(--type-micro);
- letter-spacing: var(--tracking-micro);
- color: var(--ink-faint);
+ font-family: var(--ac-font-micro);
+ font-size: var(--ac-type-micro);
+ letter-spacing: var(--ac-tracking-micro);
+ color: var(--ac-ink-faint);
+ text-shadow: var(--ac-glow-text-faint);
}
.ac-meter--lg .ac-meter__track {
@@ -63,22 +71,47 @@
.ac-meter--dim .ac-meter__bar {
background: repeating-linear-gradient(
90deg,
- var(--ink-faint) 0 8px,
+ var(--ac-ink-faint) 0 8px,
transparent 8px 12px
);
box-shadow: none;
}
-/* Over-range. Inverse-video the whole track and blink it — there is no red. */
+/* Over-range. Inverse video on the whole track, and blink on top — there is no
+ red, so the FILL is what carries the alarm and the blink is the emphasis.
+
+ THE TRACK LIGHTS AND THE BAR CUTS INTO IT, which is the only way round that
+ works. The bar is already --ac-fill, so filling the track with the same token
+ would make the bar vanish into it and the reading would be gone. Inverting the
+ pair keeps the value legible and states the alarm at the same time.
+
+ THE FILL IS NOT DECORATION ON TOP OF THE BLINK, IT IS THE HALF THAT SURVIVES.
+ Blink is switched off by prefers-reduced-motion, by the blink style flag, by
+ print and by forced colors — four environments in which this rule used to
+ leave an over-range meter looking exactly like a normal one, because a
+ strengthened border was the only thing it changed. That is the same argument
+ .ac-banner--filled and .ac-table__row--active already make, and this component
+ was the one place the system did not follow it. */
.ac-meter--alarm .ac-meter__track {
- border-color: var(--stroke);
+ border-color: var(--ac-stroke);
+ background: var(--ac-fill);
+ box-shadow: var(--ac-glow-box);
}
.ac-meter--alarm .ac-meter__bar {
- animation: ac-blink 1.1s steps(1) infinite;
-}
-
-@media (prefers-reduced-motion: reduce) {
- .ac-meter--alarm .ac-meter__bar {
- animation: none;
- }
+ background: repeating-linear-gradient(
+ 90deg,
+ var(--ac-on-fill) 0 8px,
+ transparent 8px 12px
+ );
+ /* Unlit cells on a lit block do not scatter — the same rule that takes the
+ halo off every other piece of inverse video in the framework. */
+ box-shadow: none;
+ /* A blink site: reads the pair declared in tokens/effects.css and explained in
+ base/blink.css, which is also what switches it off for the blink flag,
+ reduced motion, print and forced colors. Nothing outside this rule needs to
+ know this element blinks. */
+ animation-name: var(--ac-blink-force, var(--ac-blink-name));
+ animation-duration: 1.1s;
+ animation-timing-function: var(--ac-blink-force-ease, var(--ac-blink-ease));
+ animation-iteration-count: infinite;
}
diff --git a/src/components/nav.css b/src/components/nav.css
index 23b5424..962562d 100644
--- a/src/components/nav.css
+++ b/src/components/nav.css
@@ -13,11 +13,12 @@
box-sizing: border-box;
display: flex;
align-items: stretch;
- gap: var(--space-4);
+ gap: var(--ac-space-4);
flex-wrap: wrap;
- border-bottom: var(--border-w) solid var(--stroke);
- background: var(--screen);
- padding: 0 var(--space-6);
+ border-bottom: var(--ac-border-w) solid var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
+ background: var(--ac-screen);
+ padding: 0 var(--ac-space-6);
}
.ac-nav--sticky {
@@ -32,61 +33,64 @@
gap: 10px;
padding: 10px 0;
margin-right: auto;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
line-height: 1;
letter-spacing: 0.22em;
- color: var(--ink-bright);
+ color: var(--ac-ink-bright);
text-transform: uppercase;
- text-shadow: var(--glow-text);
+ text-shadow: var(--ac-glow-text);
}
/* A typeset block, not a logo. There is no logo — see law 6 in README.md. */
.ac-nav__mark::before {
content: "█";
+ /* Below the 18px VT323 floor on purpose — a filled block has no letterform to
+ lose. The other stated exception in tokens/typography.css. */
font-size: 16px;
- color: var(--fill);
+ color: var(--ac-fill);
}
.ac-nav__links {
display: flex;
align-items: stretch;
- gap: var(--space-2);
+ gap: var(--ac-space-2);
flex-wrap: wrap;
}
.ac-nav__link {
display: flex;
align-items: center;
- padding: 0 var(--space-4);
+ padding: 0 var(--ac-space-4);
margin: 6px 0;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
line-height: 1;
- color: var(--ink);
+ color: var(--ac-ink);
text-decoration: none;
- letter-spacing: var(--tracking-body);
- border: var(--border-w) solid transparent;
- border-radius: var(--radius-sm);
- text-shadow: var(--glow-text);
+ letter-spacing: var(--ac-tracking-body);
+ border: var(--ac-border-w) solid transparent;
+ border-radius: var(--ac-radius-sm);
+ text-shadow: var(--ac-glow-text);
}
.ac-nav__link:hover {
- color: var(--ink-bright);
- border-color: var(--stroke);
- box-shadow: var(--glow-box);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
+ border-color: var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
}
.ac-nav__link[aria-current="page"],
.ac-nav__link--active {
- background: var(--fill);
- color: var(--on-fill);
- border-color: var(--fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ border-color: var(--ac-fill);
text-shadow: none;
}
.ac-nav__link:focus-visible {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
@@ -94,16 +98,17 @@
display: flex;
align-items: center;
flex-wrap: wrap;
- gap: var(--space-4);
- font-family: var(--font-micro);
- font-size: var(--type-micro);
- letter-spacing: var(--tracking-micro);
- color: var(--ink-faint);
+ gap: var(--ac-space-4);
+ font-family: var(--ac-font-micro);
+ font-size: var(--ac-type-micro);
+ letter-spacing: var(--ac-tracking-micro);
+ color: var(--ac-ink-faint);
+ text-shadow: var(--ac-glow-text-faint);
}
@media (max-width: 720px) {
.ac-nav {
- padding: 0 var(--space-4);
+ padding: 0 var(--ac-space-4);
}
/* Wrap to a second row rather than hiding anything behind a menu glyph. */
.ac-nav__mark {
diff --git a/src/components/panel.css b/src/components/panel.css
index 12d011d..2ae9d8e 100644
--- a/src/components/panel.css
+++ b/src/components/panel.css
@@ -6,22 +6,24 @@
.ac-panel--bar +
.ac-panel__barTitle full-width inverse strip (the machine's own heading)
- The legend chip paints --screen to mask the border behind it. On a panel
+ The legend chip paints --ac-screen to mask the border behind it. On a panel
sitting over a different background, override --ac-panel-title-bg.
=========================================================================== */
.ac-panel {
position: relative;
box-sizing: border-box;
- border: var(--border-w) solid var(--stroke);
- border-radius: var(--radius);
- padding: var(--space-6) var(--space-4) var(--space-4);
+ border: var(--ac-border-w) solid var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
+ border-radius: var(--ac-radius);
+ padding: var(--ac-space-6) var(--ac-space-4) var(--ac-space-4);
min-width: 0;
}
/* Read-only / secondary regions recede. */
.ac-panel--dim {
- border-color: var(--stroke-dim);
+ border-color: var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
}
.ac-panel__title {
@@ -29,18 +31,19 @@
top: -10px;
left: 12px;
padding: 0 8px;
- background: var(--ac-panel-title-bg, var(--screen));
- font-family: var(--font-terminal);
- font-size: var(--type-small);
+ background: var(--ac-panel-title-bg, var(--ac-screen));
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-small);
line-height: 1;
- color: var(--ink);
+ color: var(--ac-ink);
text-transform: uppercase;
letter-spacing: 0.12em;
- text-shadow: var(--glow-text);
+ text-shadow: var(--ac-glow-text);
}
.ac-panel--dim .ac-panel__title {
- color: var(--ink-dim);
+ color: var(--ac-ink-dim);
+ text-shadow: var(--ac-glow-text-dim);
}
.ac-panel--bar {
@@ -49,13 +52,14 @@
}
.ac-panel__barTitle {
- margin: 0 calc(-1 * var(--space-4)) var(--space-3);
+ margin: 0 calc(-1 * var(--ac-space-4)) var(--ac-space-3);
padding: 4px 16px;
text-align: center;
- background: var(--fill);
- color: var(--on-fill);
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
text-transform: uppercase;
letter-spacing: 0.1em;
}
diff --git a/src/components/radio.css b/src/components/radio.css
index 3227d0f..395e0e8 100644
--- a/src/components/radio.css
+++ b/src/components/radio.css
@@ -1,7 +1,7 @@
/* ===========================================================================
Radio — the same indicator lamp, round.
- :checked punches the ring gap with an inset --screen shadow rather than
+ :checked punches the ring gap with an inset --ac-screen shadow rather than
drawing a dot, so the lit area reads as one solid gas cell.
Markup: Label
@@ -12,12 +12,13 @@
align-items: center;
gap: 10px;
min-height: 44px;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
line-height: 1;
- color: var(--ink);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
text-transform: uppercase;
- letter-spacing: var(--tracking-body);
+ letter-spacing: var(--ac-tracking-body);
cursor: pointer;
}
@@ -28,34 +29,37 @@
height: 20px;
margin: 0;
flex: none;
- border: var(--border-w) solid var(--stroke);
+ border: var(--ac-border-w) solid var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
border-radius: 50%;
background: transparent;
cursor: pointer;
}
.ac-radio input:checked {
- background: var(--fill);
- box-shadow: inset 0 0 0 3px var(--screen), var(--glow-box);
+ background: var(--ac-fill);
+ box-shadow: inset 0 0 0 3px var(--ac-screen), var(--ac-glow-box);
}
.ac-radio--disabled,
.ac-radio:has(input:disabled) {
- color: var(--ink-faint);
+ color: var(--ac-ink-faint);
+ text-shadow: none;
cursor: default;
}
.ac-radio--disabled input,
.ac-radio input:disabled {
- border-color: var(--stroke-dim);
+ border-color: var(--ac-stroke-dim);
+ box-shadow: none;
cursor: default;
}
.ac-radio--disabled input:checked,
.ac-radio input:disabled:checked {
- background: var(--ink-faint);
- box-shadow: inset 0 0 0 3px var(--screen);
+ background: var(--ac-ink-faint);
+ box-shadow: inset 0 0 0 3px var(--ac-screen);
}
.ac-radio input:focus-visible {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
diff --git a/src/components/readout.css b/src/components/readout.css
index 33e8a9d..a55b4a2 100644
--- a/src/components/readout.css
+++ b/src/components/readout.css
@@ -1,7 +1,7 @@
/* ===========================================================================
Readout — an instrument value.
- The number is the largest thing on the panel and the only --ink-bright text
+ The number is the largest thing on the panel and the only --ac-ink-bright text
in its region. Units ride at body size so the digits keep the eye.
Markup:
@@ -13,17 +13,18 @@
.ac-readout {
display: flex;
flex-direction: column;
- gap: var(--space-2);
- font-family: var(--font-terminal);
+ gap: var(--ac-space-2);
+ font-family: var(--ac-font-terminal);
text-align: center;
min-width: 0;
}
.ac-readout__label {
- background: var(--fill);
- color: var(--on-fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
padding: 3px 12px;
- font-size: var(--type-small);
+ font-size: var(--ac-type-small);
line-height: 1.2;
text-transform: uppercase;
letter-spacing: 0.1em;
@@ -31,22 +32,24 @@
.ac-readout__label--plain {
background: transparent;
- color: var(--ink-dim);
+ color: var(--ac-ink-dim);
+ text-shadow: var(--ac-glow-text-dim);
padding: 0;
}
.ac-readout__value {
- font-size: var(--type-display);
+ font-size: var(--ac-type-display);
line-height: 1;
- color: var(--ink-bright);
- text-shadow: var(--glow-text);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
letter-spacing: 0.06em;
font-variant-numeric: tabular-nums;
}
.ac-readout__unit {
- font-size: var(--type-body);
- color: var(--ink);
+ font-size: var(--ac-type-body);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
margin-left: 6px;
}
@@ -60,9 +63,9 @@
flex-direction: row;
align-items: baseline;
justify-content: space-between;
- gap: var(--space-4);
+ gap: var(--ac-space-4);
text-align: left;
}
.ac-readout--inline .ac-readout__value {
- font-size: var(--type-title);
+ font-size: var(--ac-type-title);
}
diff --git a/src/components/rule.css b/src/components/rule.css
index ea5731b..9dd07e4 100644
--- a/src/components/rule.css
+++ b/src/components/rule.css
@@ -4,11 +4,12 @@
.ac-hr {
border: none;
- border-top: var(--border-w) solid var(--stroke-dim);
- margin: var(--space-4) 0;
+ border-top: var(--ac-border-w) solid var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
+ margin: var(--ac-space-4) 0;
}
/* Full-strength divider, for separating two regions rather than two rows. */
.ac-hr--bright {
- border-top-color: var(--stroke);
+ border-top-color: var(--ac-stroke);
}
diff --git a/src/components/select.css b/src/components/select.css
index fb83ded..35c16e4 100644
--- a/src/components/select.css
+++ b/src/components/select.css
@@ -33,17 +33,22 @@
top: 50%;
transform: translateY(-50%);
pointer-events: none;
- color: var(--ink);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
+ /* Below the 18px VT323 floor on purpose — a triangle has no letterform to lose
+ to resampling. One of the two stated exceptions in tokens/typography.css. */
font-size: 14px;
- font-family: var(--font-terminal);
+ font-family: var(--ac-font-terminal);
}
/* The dropdown list is painted by the OS; this is as far as we can reach. */
.ac-select .ac-input option {
- background: var(--screen);
- color: var(--ink);
+ background: var(--ac-screen);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
}
.ac-select:has(.ac-input:disabled)::after {
- color: var(--ink-faint);
+ color: var(--ac-ink-faint);
+ text-shadow: none;
}
diff --git a/src/components/setup.css b/src/components/setup.css
new file mode 100644
index 0000000..cd11296
--- /dev/null
+++ b/src/components/setup.css
@@ -0,0 +1,112 @@
+/* ===========================================================================
+ Setup — the permanently-open control board under the menu bar.
+
+ It does not open, close, scroll or stick. That is the whole design: a machine
+ with a settings page does not hide it behind a key, and a board you have to
+ reveal is a board whose state you cannot read at a glance. Every switch the
+ panel has is on the glass, all the time, which is the same argument .ac-nav
+ makes for wrapping its links to a second row rather than folding them behind a
+ menu glyph — a control panel shows you every key it has.
+
+ Nothing here scrolls either, and that is a constraint on the CONTENTS rather
+ than a feature of this file: the regions have to be short enough to fit. It is
+ why the emitter catalog is split by technology across two regions instead of
+ stacked into one tall column — see the demo markup.
+
+
…
+
+
+ NOT STICKY, deliberately. The bar above it can be — it is one row and it
+ carries the page links. This is four regions tall, and a sticky element that
+ size is not chrome any more, it is the page. It scrolls away like content
+ because it is content.
+
+ WHEN NOT TO USE: a control the operator reaches for mid-task. This is setup —
+ things you set once and then work under. Live controls belong on the console.
+ =========================================================================== */
+
+.ac-setup {
+ box-sizing: border-box;
+ border-bottom: var(--ac-border-w) solid var(--ac-stroke);
+ box-shadow: var(--ac-glow-box);
+ background: var(--ac-screen);
+ padding: var(--ac-space-8) var(--ac-space-6) var(--ac-space-6);
+}
+
+/* Quarters — and THREE COLUMNS IS NOT ONE OF THE STOPS, which is why this is
+ three stated breakpoints rather than the one auto-fit line it wants to be.
+ Four regions across three tracks wraps the fourth under the first and leaves a
+ region-sized hole beside it; the board measured 516px tall at four columns and
+ 847px at three, for less content per row. Two-by-two is the honest middle: the
+ two catalogs share a row, the two control stacks share the next.
+
+ minmax(0, 1fr) rather than 1fr because a grid item's automatic minimum size is
+ its content, and an emitter row that cannot shrink pushes the track wider than
+ its share — one long "NOT FITTED" note and the quarters stop being quarters. */
+.ac-setup__grid {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr);
+ gap: var(--ac-space-6);
+ align-items: start;
+}
+
+@media (min-width: 721px) {
+ .ac-setup__grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+}
+
+@media (min-width: 1100px) {
+ .ac-setup__grid {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ }
+}
+
+/* The board's own background is --ac-screen, so the legend chips that mask the
+ panel border behind themselves already match. Stated rather than assumed:
+ drop the board on a raised surface and this is the one line to override. */
+.ac-setup .ac-panel {
+ --ac-panel-title-bg: var(--ac-screen);
+}
+
+/* Every region on the board is drawn in --ac-stroke, INCLUDING the read-only ones.
+ .ac-panel--dim normally dims its frame as well as its contents, which is right
+ for a panel standing on its own — but here four regions sit edge to edge in
+ one grid, and one frame drawn a step darker than the three beside it does not
+ read as "this one recedes", it reads as a panel that failed to light. The
+ board is a single instrument; its divisions are all the same wall.
+
+ The recede is not lost, it moves to where it belongs: the dim title and the
+ dim contents still say read-only, and those are the parts an operator is
+ actually reading. Only the frame is normalized. */
+.ac-setup .ac-panel--dim {
+ border-color: var(--ac-stroke);
+}
+
+.ac-setup__foot {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: var(--ac-space-4);
+ margin-top: var(--ac-space-6);
+ padding-top: var(--ac-space-4);
+ border-top: var(--ac-border-w) solid var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
+}
+
+@media (max-width: 720px) {
+ .ac-setup {
+ padding: var(--ac-space-8) var(--ac-space-4) var(--ac-space-4);
+ }
+ /* One column here, and the regions are tall. Open the gap up so two stacked
+ panels do not read as one region with a rule through it. */
+ .ac-setup__grid {
+ gap: var(--ac-space-8);
+ }
+}
diff --git a/src/components/spinner.css b/src/components/spinner.css
index 551c1e4..b772392 100644
--- a/src/components/spinner.css
+++ b/src/components/spinner.css
@@ -22,10 +22,10 @@
height: 1em;
line-height: 1;
vertical-align: -0.1em;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
- color: var(--ink-bright);
- text-shadow: var(--glow-text);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
}
.ac-spinner::before {
@@ -43,12 +43,12 @@
}
.ac-spinner--dim {
- color: var(--ink-faint);
- text-shadow: none;
+ color: var(--ac-ink-faint);
+ text-shadow: var(--ac-glow-text-faint);
}
.ac-spinner--lg {
- font-size: var(--type-title);
+ font-size: var(--ac-type-title);
}
/* Static, but still unmistakably "working". */
diff --git a/src/components/statusbar.css b/src/components/statusbar.css
index c72712f..dd6b750 100644
--- a/src/components/statusbar.css
+++ b/src/components/statusbar.css
@@ -13,25 +13,31 @@
.ac-statusbar {
box-sizing: border-box;
display: flex;
- gap: var(--space-8);
+ gap: var(--ac-space-8);
align-items: baseline;
flex-wrap: wrap;
- background: var(--fill);
- color: var(--on-fill);
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
line-height: 1;
text-transform: uppercase;
- letter-spacing: var(--tracking-body);
- padding: 6px var(--space-4);
- box-shadow: var(--glow-box);
+ letter-spacing: var(--ac-tracking-body);
+ padding: 6px var(--ac-space-4);
+ box-shadow: var(--ac-glow-box);
min-width: 0;
}
.ac-statusbar--line {
background: transparent;
- color: var(--ink);
- box-shadow: none;
- border-top: var(--border-w) solid var(--stroke-dim);
- border-bottom: var(--border-w) solid var(--stroke-dim);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
+ border-top: var(--ac-border-w) solid var(--ac-stroke-dim);
+ border-bottom: var(--ac-border-w) solid var(--ac-stroke-dim);
+ /* The `none` that used to sit here canceled the filled bar's halo, which was
+ right when a border could not carry one. Now it can: the rules are lit
+ cells at emit-50, so they get that tier rather than nothing. Note the text
+ above keeps full drive — only the STROKES stepped down. */
+ box-shadow: var(--ac-glow-box-dim);
}
diff --git a/src/components/sweep.css b/src/components/sweep.css
new file mode 100644
index 0000000..a89900e
--- /dev/null
+++ b/src/components/sweep.css
@@ -0,0 +1,224 @@
+/* PPI SWEEP — the radar face, and the one place persistence is the whole widget.
+ ============================================================================
+
+ Markup:
+
+
+
+
+ THE TRAIL IS A GRADIENT, NOT AN ANIMATION, and that is the entire trick. The
+ obvious way to draw a decaying radar trail is to stamp a mark every frame and
+ fade each one — which is a per-pixel framebuffer problem, needs a canvas, and
+ is exactly what CSS cannot do. But a PPI trail is not really a history of
+ marks: it is one continuous falloff behind a rotating line, and a
+ conic-gradient IS that falloff. Rotate it and the decay comes for free,
+ composited on the GPU, in one element, with no script.
+
+ So the angular stops below are the phosphor's decay curve read in degrees
+ instead of milliseconds. That is legitimate rather than a pun: the beam sweeps
+ at a constant rate, so angle behind the beam IS time since that bearing was
+ painted. Same curve, same shape, different axis.
+
+ THE LEADING EDGE IS --ac-halo-flash WHERE THERE IS ONE. On P7 the beam writes in
+ blue and the screen holds in yellow-green, so the first few degrees are the
+ flash and everything behind is the afterglow — the cascade rendered exactly as
+ the hardware does it, and the reason P7 was fitted to radar in the first
+ place. Every other emitter falls back to --ac-halo-1 and the leading edge is
+ simply a brighter version of the trail, which is also correct for them.
+
+ No `transition` anywhere in this file: scripts/check-prohibitions.mjs forbids
+ it in src/components/, and nothing here needs one. */
+
+.ac-sweep {
+ position: relative;
+ aspect-ratio: 1;
+ width: 100%;
+ max-width: var(--ac-sweep-size, 260px);
+ border: 2px solid var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
+ border-radius: 50%;
+ overflow: hidden;
+ background:
+ /* Range rings. Drawn as hard-stopped radial gradients rather than as nested
+ elements, so the whole graticule costs no extra nodes. */
+ radial-gradient(circle at 50% 50%,
+ transparent 0 24%, rgba(var(--ac-halo-3), 0.16) 24% 24.6%, transparent 24.6%),
+ radial-gradient(circle at 50% 50%,
+ transparent 0 49%, rgba(var(--ac-halo-3), 0.16) 49% 49.6%, transparent 49.6%),
+ radial-gradient(circle at 50% 50%,
+ transparent 0 74%, rgba(var(--ac-halo-3), 0.13) 74% 74.6%, transparent 74.6%),
+ /* The unlit screen behind them. */
+ radial-gradient(circle at 50% 50%, var(--ac-screen-raised), var(--ac-screen-well));
+}
+
+/* The crosshair, on the face rather than on the beam so it does not rotate. */
+.ac-sweep::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ background:
+ linear-gradient(to right, transparent calc(50% - 1px), rgba(var(--ac-halo-3), 0.15) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
+ linear-gradient(to bottom, transparent calc(50% - 1px), rgba(var(--ac-halo-3), 0.15) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
+}
+
+/* THE BEAM AND ITS WAKE.
+
+ THE STOPS RUN BACKWARDS, AND THE ROTATION DOES NOT. Both a conic-gradient and
+ rotate() go clockwise, so a point at screen bearing θ shows gradient angle
+ θ − A, where A is the current rotation. Writing the flash at 0deg therefore
+ puts the whole falloff at θ ∈ [A, A+arc] — clockwise AHEAD of the beam, in the
+ direction it is travelling toward, which is the bug this file shipped with for
+ its whole life. Light lands behind a beam, not in front of it.
+
+ So the flash goes at 360deg and the tail counts DOWN from there, and the fix
+ is not to reverse the rotation: bearings on a PPI increase clockwise, and the
+ bearing scale, the EBL, the guard sector and every contact arm on the radar
+ page are built on that. The contacts are also the proof — each one delays its
+ strike so that it fires when A equals its own bearing, then drains where the
+ beam has already been. The wedge now drains with them instead of against them.
+
+ ALPHAS ARE THE PALETTE'S OWN DECAY LAW READ IN DEGREES. --ac-decay-ease in
+ tokens/colors.css is sampled from the Becquerel law I = 1/(1 + t/t0)^1.4, and
+ back-solving its linear() stops gives t0 = 0.032 × the tail. Angle behind the
+ beam is time since that bearing was painted, so the same curve lands on the
+ same shape here — through a ^0.75 perceptual compression, which is what the
+ hand-picked stops this replaces were already doing by eye.
+
+ --AC-SWEEP-ARC IS ARITHMETIC RATHER THAN TASTE, and it is a fallback rather
+ than a declaration for the same reason --ac-sweep-period and --ac-sweep-size
+ are: a property set on the element cannot be reached from a page, and the
+ radar page sets two of those three. The period below is the tail × 1.5, so on
+ every phosphor above that floor the tail occupies tail ÷ period × 360 =
+ 240deg of the face. The remaining 10deg is a taper to nothing — the curve is
+ a power law, it is still near 2/255 where it runs out, and cutting it off
+ there leaves a banded edge where the wake should have gone dark. An emitter
+ BELOW the floor wants this smaller: neon drains in 0.16s against a 2.5s
+ revolution, which is 23deg — a thin spinning line, not a wake. Deriving it
+ here would want calc(var(--ac-persist-tail) / var(--ac-sweep-period) * 360deg)
+ and division that type-checks a time against a time, which is younger than
+ this file's floor. So it stays a knob, and the 250deg in the stops below is
+ what that expression evaluates to.
+
+ THE COLOR MARCH IS THE P7 CASCADE. --ac-halo-flash holds for the first degree and
+ a half — about 19ms at 4.5s a revolution, a frame or two, which is what the
+ blue ZnS:Ag layer is worth — then hands to --ac-halo-4 at the hottest point of the
+ yellow-green (Zn,Cd)S:Cu response and drains down through --ac-halo-1 and --ac-halo-2
+ to --ac-halo-3. Every stop keeps the var(--ac-halo-flash, var(--ac-halo-1)) fallback, so a
+ single-coating emitter gets a brighter leading edge and no cascade, which is
+ correct for it. */
+.ac-sweep__beam {
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ mix-blend-mode: screen;
+ border-radius: 50%;
+
+ /* Each stop is one reading off that curve, at the fraction of the arc named
+ in the multiplier. THE STOPS ARE CLOSE TOGETHER AT THE KNEE because the
+ curve is convex and a gradient interpolates straight: sampled sparsely, the
+ straight line between two stops runs ABOVE the curve it is meant to be, and
+ the first forty degrees fill in as a flat bright slab with an edge on it
+ instead of draining. Sampling the knee finely and the tail coarsely is the
+ same trade the linear() easings in tokens/colors.css make, for the same
+ reason. */
+ background: conic-gradient(
+ from 0deg,
+ rgba(var(--ac-halo-3), 0) calc(360deg - var(--ac-sweep-arc, 250deg)),
+ rgba(var(--ac-halo-3), 0.008) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.9),
+ rgba(var(--ac-halo-3), 0.024) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.8),
+ rgba(var(--ac-halo-3), 0.038) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.6),
+ rgba(var(--ac-halo-3), 0.059) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.38),
+ rgba(var(--ac-halo-3), 0.085) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.26),
+ rgba(var(--ac-halo-2), 0.12) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.18),
+ rgba(var(--ac-halo-2), 0.18) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.11),
+ rgba(var(--ac-halo-2), 0.25) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.072),
+ rgba(var(--ac-halo-1), 0.33) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.05),
+ rgba(var(--ac-halo-1), 0.4) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.036),
+ rgba(var(--ac-halo-1), 0.49) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.024),
+ rgba(var(--ac-halo-4), 0.58) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.016),
+ rgba(var(--ac-halo-flash, var(--ac-halo-1)), 0.75) calc(360deg - var(--ac-sweep-arc, 250deg) * 0.006),
+ rgba(var(--ac-halo-flash, var(--ac-halo-1)), 0.9) 360deg
+ );
+ /* THE PERIOD IS THE PHOSPHOR'S, WITH A FLOOR, and the floor is the point.
+ A sweep wants to come round about as the trail finishes draining — that is
+ the trade P7 and P39 were bought to make. Scaling straight off the tail does
+ that for the long phosphors (P39 -> 3s, P7 -> 4.5s), and gives neon 0.16s,
+ which is not a radar, it is a strobe. So the floor holds the slow ones
+ honest and keeps everything else watchable. */
+ animation: ac-sweep-rotate
+ var(--ac-sweep-period, max(2.5s, calc(var(--ac-persist-tail, 2s) * 1.5)))
+ linear infinite;
+}
+
+/* THE ORIGIN, WHICH IS THE ONE PLACE A RADIAL FALLOFF IS EARNED. Everywhere else
+ on the face the wake is as bright at the rim as at half range, because every
+ bearing is painted for the same length of time however far out you stand. The
+ center is not: all 360 bearings cross it, so it takes the whole revolution's
+ dose and saturates toward the flash color. That is the bright spot on the
+ middle of every scope photograph ever taken.
+
+ It is radially symmetric, so rotating with the beam costs nothing and buys the
+ right thing — it lives inside the beam's screen group where the light belongs,
+ and it goes out with the beam on standby, which is correct: a set that is not
+ transmitting is not writing a center either.
+
+ closest-side pins the gradient's 100% to the radius rather than to the corner,
+ so these percentages are RANGES. */
+.ac-sweep__beam::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ border-radius: 50%;
+ background: radial-gradient(
+ circle closest-side at 50% 50%,
+ rgba(var(--ac-halo-flash, var(--ac-halo-1)), 0.3) 0 1.5%,
+ rgba(var(--ac-halo-4), 0.2) 3.5%,
+ rgba(var(--ac-halo-1), 0.08) 7%,
+ rgba(var(--ac-halo-1), 0) 13%
+ );
+}
+
+/* THE WRITING LINE, AND IT IS AN ARM RATHER THAN AN ANGLE. A few degrees of the
+ gradient is a WEDGE: 1.8px wide at the rim of a 260px face and under half a
+ pixel at quarter range, so the beam thins out and aliases away exactly where
+ the picture is densest. A CRT spot is a constant width at every radius, so the
+ line is drawn the way every mark on the radar page is drawn — a span pinned at
+ the center, given a height in percent, rotated to a bearing.
+
+ It gets that bearing for free: it is a child of the rotating element, and
+ `from 0deg` starts the conic at twelve o'clock, so the bar and the gradient's
+ leading edge are the same bearing by construction rather than by two numbers
+ being kept in step.
+
+ The horizontal ramp is the spot's finite width. Not a filter: blur(), which
+ would put a second raster layer inside one that turns continuously. The
+ brightness does not fall off outward because the radial deflection is linear
+ and the writing speed is therefore constant. */
+.ac-sweep__beam::after {
+ content: "";
+ position: absolute;
+ left: 50%;
+ bottom: 50%;
+ width: var(--ac-sweep-line, 3px);
+ height: 50%;
+ margin-left: calc(var(--ac-sweep-line, 3px) / -2);
+ background: linear-gradient(
+ to right,
+ rgba(var(--ac-halo-flash, var(--ac-halo-1)), 0),
+ rgba(var(--ac-halo-flash, var(--ac-halo-1)), 0.95) 50%,
+ rgba(var(--ac-halo-flash, var(--ac-halo-1)), 0)
+ );
+}
+
+@keyframes ac-sweep-rotate {
+ from { transform: rotate(0deg); }
+ to { transform: rotate(360deg); }
+}
+
+/* A rotating light is unambiguously motion, and unlike the mesh it is not the
+ shape of the hardware — it is the hardware doing something. It stops, and what
+ is left is a static lit sector, which still reads as a radar face. */
+@media (prefers-reduced-motion: reduce) {
+ .ac-sweep__beam { animation: none; }
+}
diff --git a/src/components/table.css b/src/components/table.css
index ee3b7ae..9b3ad9c 100644
--- a/src/components/table.css
+++ b/src/components/table.css
@@ -1,7 +1,7 @@
/* ===========================================================================
Table — the data grid this UI genre lives on.
- Inverse-video
in Silkscreen micro caps, --ink-trace row separators,
+ Inverse-video in Silkscreen micro caps, --ac-ink-trace row separators,
zero rounding. Numeric columns get .ac-table__num for tabular alignment.
__row--active is the live row: inverse video. Add .ac-blink for an
@@ -15,27 +15,29 @@
.ac-table {
width: 100%;
border-collapse: collapse;
- font-family: var(--font-terminal);
- font-size: var(--type-small);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-small);
}
.ac-table th {
text-align: left;
font-weight: 400;
text-transform: uppercase;
- font-family: var(--font-micro);
- font-size: var(--type-micro);
- letter-spacing: var(--tracking-micro);
- background: var(--fill);
- color: var(--on-fill);
+ font-family: var(--ac-font-micro);
+ font-size: var(--ac-type-micro);
+ letter-spacing: var(--ac-tracking-micro);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
padding: 6px 12px;
white-space: nowrap;
}
.ac-table td {
padding: 6px 12px;
- color: var(--ink);
- border-bottom: var(--border-w) solid var(--ink-trace);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
+ border-bottom: var(--ac-border-w) solid var(--ac-ink-trace);
text-transform: uppercase;
}
@@ -44,12 +46,13 @@
}
.ac-table__row--active td {
- background: var(--fill);
- color: var(--on-fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
+ text-shadow: none;
}
.ac-table--zebra tbody tr:nth-child(even) td {
- background: var(--screen-raised);
+ background: var(--ac-screen-raised);
}
.ac-table--dense td,
diff --git a/src/components/tabs.css b/src/components/tabs.css
index d001444..f097991 100644
--- a/src/components/tabs.css
+++ b/src/components/tabs.css
@@ -11,7 +11,7 @@
.ac-tabs {
display: flex;
- gap: var(--space-2);
+ gap: var(--ac-space-2);
/* Three title-size soft keys need ~455px. Wrap to a second row rather than
be clipped — same rule as .ac-nav, and for the same reason: a control panel
shows you every key it has. */
@@ -19,42 +19,69 @@
}
.ac-tab {
- font-family: var(--font-terminal);
- font-size: var(--type-title);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-title);
line-height: 1;
- color: var(--ink);
+ color: var(--ac-ink);
background: transparent;
text-transform: none;
- border: var(--border-w) solid var(--stroke);
- border-radius: var(--radius);
+ border: var(--ac-border-w) solid var(--ac-stroke);
+ /* A TAB IS A KEY, so it is extruded like one. It was not, and that was the
+ visible inconsistency: a tab is a bordered, cut-cornered, pressable box that
+ is the same species as .ac-btn, sitting beside real buttons with the same
+ corner and no edge. "A key is extruded; a panel is a hole in the bezel" —
+ a tab is on the key side of that line. Same token, same states, so the two
+ cannot drift apart again. See components/button.css. */
+ box-shadow: var(--ac-glow-box), var(--ac-edge, 0 0 0 transparent);
+ border-radius: var(--ac-radius);
/* The 20px bottom padding is dead space that makes a soft key read as a
physical key. It is intentional. Do not snap it to the 4/8px grid. */
padding: 8px 24px 20px;
cursor: pointer;
- text-shadow: var(--glow-text);
+ text-shadow: var(--ac-glow-text);
}
.ac-tab:hover {
- color: var(--ink-bright);
- border-color: var(--amber-100);
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
+ border-color: var(--ac-ink-bright);
+ box-shadow: var(--ac-glow-box), var(--ac-edge, 0 0 0 transparent);
+}
+
+/* A selected tab is latched, so it presses IN — same as .ac-btn[aria-pressed]. */
+.ac-tab:active {
+ box-shadow: var(--ac-glow-box), var(--ac-edge-press, 0 0 0 transparent);
}
.ac-tab--active,
.ac-tab[aria-selected="true"] {
- background: var(--fill);
- color: var(--on-fill);
+ background: var(--ac-fill);
+ color: var(--ac-on-fill);
text-shadow: none;
- box-shadow: var(--glow-box);
+ box-shadow: var(--ac-glow-box), var(--ac-edge-press, 0 0 0 transparent);
+}
+/* Restated because .ac-tab:hover weighs the same and lands earlier: without it
+ a hovered selected tab would pop back out to the raised edge. */
+.ac-tab--active:hover,
+.ac-tab[aria-selected="true"]:hover {
+ box-shadow: var(--ac-glow-box), var(--ac-edge-press, 0 0 0 transparent);
}
.ac-tab:disabled {
- color: var(--ink-faint);
- border-color: var(--stroke-dim);
+ color: var(--ac-ink-faint);
+ border-color: var(--ac-stroke-dim);
+ /* Inert keeps NO HALO AND NO EDGE, the same as a disabled key — and this line
+ used to say exactly that while carrying --ac-glow-box-dim, which is a
+ dimmer halo rather than none. A tab is the same species as .ac-btn and
+ .ac-btn:disabled goes to `none`, so the two were rendering different
+ answers to the same question. See the drive-tier note in
+ components/button.css: dim is a LIT cell driven low, off is not lit. */
+ box-shadow: none;
text-shadow: none;
cursor: default;
}
.ac-tab:focus-visible {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
diff --git a/src/components/toggle.css b/src/components/toggle.css
index 4df6398..657afda 100644
--- a/src/components/toggle.css
+++ b/src/components/toggle.css
@@ -2,7 +2,7 @@
Toggle — a two-position switch.
The literal ON / OFF text is MANDATORY. On a monochrome panel a thumb
- position alone is ambiguous: there is no colour to say "this one is live".
+ position alone is ambiguous: there is no color to say "this one is live".
The thumb jumps. No transition.
@@ -27,14 +27,15 @@
.ac-toggle {
display: inline-flex;
align-items: center;
- gap: var(--space-3);
+ gap: var(--ac-space-3);
min-height: 44px;
- font-family: var(--font-terminal);
- font-size: var(--type-body);
+ font-family: var(--ac-font-terminal);
+ font-size: var(--ac-type-body);
line-height: 1;
- color: var(--ink);
+ color: var(--ac-ink);
+ text-shadow: var(--ac-glow-text);
text-transform: uppercase;
- letter-spacing: var(--tracking-body);
+ letter-spacing: var(--ac-tracking-body);
background: none;
border: none;
padding: 0;
@@ -46,8 +47,13 @@
width: 64px;
height: 28px;
flex: none;
- border: var(--border-w) solid var(--stroke);
- border-radius: var(--radius-sm);
+ border: var(--ac-border-w) solid var(--ac-stroke);
+ /* The switch housing is extruded like a key — see the note in button.css for
+ why the edge is declared on the component rather than in classic.css. The
+ disabled rules below deliberately drop it: a housing that is not driven is
+ still drawn, but it no longer stands off the glass. */
+ box-shadow: var(--ac-glow-box), var(--ac-edge, 0 0 0 transparent);
+ border-radius: var(--ac-radius-sm);
}
.ac-toggle__thumb {
@@ -56,43 +62,51 @@
left: 3px;
width: 26px;
height: 18px;
- background: var(--ink-faint);
+ background: var(--ac-ink-faint);
}
+/* The three ON hooks, stated once: the modifier class, the ARIA state, and the
+ CSS-only variant's :checked. They were three identical blocks in two places
+ and had already drifted apart on the disabled track below. */
.ac-toggle--on .ac-toggle__thumb,
-.ac-toggle[aria-pressed="true"] .ac-toggle__thumb {
+.ac-toggle[aria-pressed="true"] .ac-toggle__thumb,
+.ac-toggle--input input:checked ~ .ac-toggle__track .ac-toggle__thumb {
left: auto;
right: 3px;
- background: var(--fill);
- box-shadow: var(--glow-box);
+ background: var(--ac-fill);
+ box-shadow: var(--ac-glow-box);
}
.ac-toggle__state {
min-width: 2.2em;
text-align: left;
- color: var(--ink-dim);
+ color: var(--ac-ink-dim);
+ text-shadow: var(--ac-glow-text-dim);
}
.ac-toggle--on .ac-toggle__state,
-.ac-toggle[aria-pressed="true"] .ac-toggle__state {
- color: var(--ink-bright);
- text-shadow: var(--glow-text);
+.ac-toggle[aria-pressed="true"] .ac-toggle__state,
+.ac-toggle--input input:checked ~ .ac-toggle__state {
+ color: var(--ac-ink-bright);
+ text-shadow: var(--ac-glow-text);
}
.ac-toggle:disabled {
- color: var(--ink-faint);
+ color: var(--ac-ink-faint);
+ text-shadow: none;
cursor: default;
}
.ac-toggle:disabled .ac-toggle__track {
- border-color: var(--stroke-dim);
+ border-color: var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
}
.ac-toggle:disabled .ac-toggle__thumb {
- background: var(--ink-trace);
+ background: var(--ac-ink-trace);
box-shadow: none;
}
.ac-toggle:focus-visible {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
@@ -112,30 +126,31 @@
content: "OFF";
}
-.ac-toggle--input input:checked ~ .ac-toggle__track .ac-toggle__thumb {
- left: auto;
- right: 3px;
- background: var(--fill);
- box-shadow: var(--glow-box);
-}
-
-.ac-toggle--input input:checked ~ .ac-toggle__state {
- color: var(--ink-bright);
- text-shadow: var(--glow-text);
-}
+/* The lit thumb and state colour for this variant are declared with the other
+ two ON hooks above; only the generated text is specific to it. */
.ac-toggle--input input:checked ~ .ac-toggle__state::after {
content: "ON";
}
+/* Matches .ac-toggle:disabled above, and that is the point: the two forms are
+ documented as equivalent, so they have to LOOK equivalent. This one used to
+ blank the shadow while the button form dimmed it, which meant a disabled
+ switch built the CSS-only way sat flat on the panel while the same switch
+ built the button way still read as a drawn housing.
+
+ The housing dims rather than going dark because it is a box that is still
+ there, not a lamp that is out. The THUMB is the lamp, and it does go dark —
+ see the rule below. */
.ac-toggle--input input:disabled ~ .ac-toggle__track {
- border-color: var(--stroke-dim);
+ border-color: var(--ac-stroke-dim);
+ box-shadow: var(--ac-glow-box-dim);
}
.ac-toggle--input input:disabled ~ .ac-toggle__track .ac-toggle__thumb {
- background: var(--ink-trace);
+ background: var(--ac-ink-trace);
box-shadow: none;
}
.ac-toggle--input input:focus-visible ~ .ac-toggle__track {
- outline: 2px dashed var(--ink-dim);
+ outline: 2px dashed var(--ac-ink-dim);
outline-offset: 3px;
}
diff --git a/src/sim/afterglow.css b/src/sim/afterglow.css
new file mode 100644
index 0000000..03be46a
--- /dev/null
+++ b/src/sim/afterglow.css
@@ -0,0 +1,510 @@
+/* ===========================================================================
+ AFTERGLOW — the persistence engine, and by a wide margin the most expensive
+ thing in the framework: ~490 lines, a viewport-sized backdrop-filter, and a
+ registered @property. It is also the most droppable — nothing else needs it.
+
+ THE ONE FILE ALLOWED TO HOLD A `transition`, together with sim/frame.css.
+ scripts/check-prohibitions.mjs names them both explicitly, and it names only
+ them: a screen redrawn at the refresh has no in-between frames, but the decay
+ of a phosphor genuinely is a timed change. See RATIONALE.md § Persistence is
+ three phenomena.
+ =========================================================================== */
+
+/* --- PLASMA AFTERGLOW ---
+
+ Three things, because "persistence" is three different phenomena and only one
+ of them is expressible without JavaScript:
+
+ 1. DECAY-OUT. Anything that disappears relaxes instead of switching off.
+ Pure CSS, below. This is the one that carries the effect on its own.
+ 2. GHOSTING. Text that is rewritten leaves the previous value behind for a
+ beat. Needs the old value, which only JS has — amber-console.js mounts
+ those into .ac-persist. The effect degrades to (1) and (3) without it.
+ 3. RESIDUAL PATCHES. The glass never sits perfectly uniform; charge relaxes
+ unevenly and slowly. Pure CSS, on .ac-persist::before.
+
+ Note the direction: this decays OUT and never in. Nothing here fades a thing
+ into existence. A cell lights on the next refresh — instantly — and it is only
+ the switching OFF that hardware cannot do sharply. That asymmetry is the whole
+ reason this file may hold a `transition` at all while src/components/ may not;
+ see the header of stylelint.config.mjs. */
+.ac-afterglow {
+ position: relative;
+ /* Persistence softens the blink's OFF edge — see (4) below. Declared here as
+ an inherited pair so it reaches every blink site without naming one. */
+ --ac-blink-name: var(--ac-blink-anim, ac-blink-decay);
+ --ac-blink-ease: linear;
+}
+
+/* (1) DECAY-OUT.
+
+ The transition lives on the DESTINATION state, which is the whole trick:
+ transition properties are read from the after-change style, so declaring them
+ only on the hidden half means hiding decays and showing snaps back instantly.
+
+ `display` is transitioned with allow-discrete so `display: none` is deferred
+ to the end of the decay rather than cutting it off on the first frame. The
+ blur is the gap losing definition as it drains — a discharge dies soft, not
+ sharp. */
+.ac-afterglow [hidden],
+.ac-afterglow dialog:not([open]) {
+ opacity: 0;
+ filter: blur(0.4px) brightness(1.16);
+ transition:
+ opacity var(--ac-decay) var(--ac-decay-ease),
+ filter var(--ac-decay) var(--ac-decay-ease),
+ display var(--ac-decay) allow-discrete,
+ overlay var(--ac-decay) allow-discrete;
+}
+
+/* (2) + (3) The persistence layer. One child element hosts all of it, so a frame
+ needs exactly one extra node — same contract as .ac-crt and .ac-retrace.
+
+ `screen` is the physically right blend: emitted light adds, it never
+ occludes, so a ghost can only ever brighten what is under it. Note it is set
+ on each child rather than on this element, and that is not a style choice —
+ mix-blend-mode makes an element a BACKDROP ROOT, and a backdrop root resets
+ what `backdrop-filter` inside it can see. Put the blend here and the scroll
+ smear below samples an empty backdrop and silently does nothing. */
+.ac-afterglow > .ac-persist {
+ position: absolute; inset: 0;
+ z-index: 45;
+ pointer-events: none;
+ overflow: hidden;
+}
+
+/* (3) RESIDUAL PATCHES — four slow, overlapping pools of charge that never
+ quite line up, so the panel is never evenly lit. At 3% over the amber this is
+ below the threshold of noticing directly; you only see it when it stops.
+
+ The drift is background-position over an oversized background rather than a
+ transform on an oversized box, deliberately: a box larger than its parent adds
+ scrollable overflow, and the frame is exactly where a stray 288px of it would
+ go unnoticed. A background cannot overflow anything. */
+.ac-afterglow > .ac-persist::before {
+ content: "";
+ position: absolute; inset: 0;
+ background:
+ radial-gradient(38% 30% at 22% 28%, rgba(var(--ac-halo-1), 0.032), transparent 70%),
+ radial-gradient(46% 34% at 78% 62%, rgba(var(--ac-halo-2), 0.026), transparent 72%),
+ radial-gradient(30% 44% at 58% 12%, rgba(var(--ac-halo-4), 0.022), transparent 68%),
+ radial-gradient(52% 40% at 34% 84%, rgba(var(--ac-halo-3), 0.028), transparent 74%);
+ background-size: 150% 150%;
+ background-repeat: no-repeat;
+ mix-blend-mode: screen;
+ animation: ac-persist-drift 47s ease-in-out infinite;
+}
+@keyframes ac-persist-drift {
+ 0%, 100% { background-position: 22% 34%; opacity: 0.85; }
+ 33% { background-position: 36% 20%; opacity: 1; }
+ 66% { background-position: 14% 46%; opacity: 0.9; }
+}
+
+/* (4) THE BLINK OFF-EDGE.
+
+ A blinking alarm is the most visible thing on the panel that stops being
+ driven, over and over, once a second — so it is the last place the decay
+ should be missing. .ac-blink is steps(1) by default and snaps both ways; with
+ persistence on, only the ON edge stays hard. A cell lights on the next
+ refresh and then relaxes, so: instant up, curve down.
+
+ Retuning the TOKEN PAIR on the frame rather than naming the blink sites is
+ what lets one rule cover every one of them — the cursor runs a 1s cycle and
+ the rest run 1.1s, and each keeps its own duration. Keyframe stops cannot read
+ a custom property, so the window below is a percentage of whatever cycle it
+ lands in rather than a duration: 54%->62% is ~88ms at 1.1s and ~80ms on the
+ cursor's 1s. Retuning --ac-decay does not move it; the stops are the handle.
+
+ --ac-blink-anim comes from the PALETTE — a long phosphor points it at the
+ throb curve below — so this file still never names one. The pair is declared
+ on .ac-afterglow itself, where the frame's `position: relative` is. */
+/* The stops are spread wider than a literal decay curve would be. A true
+ exponential loses most of its light in the first ~80ms, which is close enough
+ to the flicker-fusion threshold that the eye files it as a hard switch — the
+ decay measures correctly and still looks instant. This holds, then drains over
+ the 54%->62% window — ~88ms of the 1.1s cycle — which sits right at the
+ threshold described above: the alarm still reads as a hard blink, with the edge
+ taken off it rather than a visible fade. The opacity ramp carries it;
+ the blur only stops the edge staying razor-sharp on the way down. The ON edge
+ is still a single-frame snap. */
+@keyframes ac-blink-decay {
+ 0%, 54% { opacity: 1; filter: blur(0); }
+ 56% { opacity: 0.72; filter: blur(0.08px); }
+ 58% { opacity: 0.48; filter: blur(0.16px); }
+ 60% { opacity: 0.30; filter: blur(0.22px); }
+ 61% { opacity: 0.17; filter: blur(0.27px); }
+ 62%, 100% { opacity: 0.1; filter: blur(0.3px); }
+}
+
+/* THE SAME EDGE ON A LONG PHOSPHOR, which is a different edge entirely.
+ The window above is ~88ms of a 1.1s cycle — right for a gas gap and for the
+ medium phosphors, and wrong by more than an order of magnitude for P7 and P39,
+ whose light is still visible seconds after the drive stops. An alarm on a P39
+ screen does not blink so much as pulse: it never reaches the dark half at all,
+ because the next ON edge arrives while the previous one is still draining.
+
+ Selected by the PALETTE, not by this file, on the same indirection
+ --ac-ghost-anim already uses: keyframe offsets cannot read a custom property,
+ so the shape has to be a second keyframe rather than a retuned one, and
+ scripts/derive-gas.mjs points the long-class emitters at it. Everything else
+ falls through the var() fallback above and is untouched.
+
+ Note where it bottoms out: 0.34, not 0.1. That IS the effect — the floor of a
+ long phosphor's blink is lifted because the cell never fully relaxes between
+ strikes, and the alarm reads as a throb rather than a chop. */
+@keyframes ac-blink-decay-long {
+ 0%, 54% { opacity: 1; filter: blur(0); }
+ 60% { opacity: 0.88; filter: blur(0.10px); }
+ 68% { opacity: 0.72; filter: blur(0.18px); }
+ 78% { opacity: 0.57; filter: blur(0.26px); }
+ 88% { opacity: 0.44; filter: blur(0.34px); }
+ 100% { opacity: 0.34; filter: blur(0.4px); }
+}
+
+/* (5) DE-ENERGIZING — a lit cell that goes unlit.
+
+ The single most common light-off event on a control panel is not a node
+ disappearing, it is a lamp going out: a pressed button releasing, a tab
+ deselecting, an interlock unchecking. Those elements never hide, so the
+ decay-out rule above never saw them, and they were snapping off in one frame
+ while everything around them relaxed.
+
+ Same mechanism as decay-out, same direction rule: the transition is declared
+ on the UNLIT state, so de-energizing decays and energizing is instant.
+
+ On --ac-decay-fast rather than --ac-decay, and that is the difference between
+ subtle and distracting. Hover lands here too — moving off a control is a
+ de-energization — which means this fires on every control the pointer crosses,
+ not just on the ones you press. At the full decay a sweep across a dense panel
+ leaves a wake behind the cursor. At the fast one it reads as the glow simply
+ taking a moment to let go.
+
+ These live here rather than in the component files on purpose: components stay
+ free of `transition`, which is what scripts/check-prohibitions.mjs enforces. */
+.ac-afterglow .ac-btn,
+.ac-afterglow .ac-tab,
+.ac-afterglow .ac-nav__link,
+.ac-afterglow .ac-badge,
+.ac-afterglow .ac-banner,
+.ac-afterglow .ac-check input,
+.ac-afterglow .ac-radio input,
+.ac-afterglow .ac-toggle__track,
+.ac-afterglow .ac-toggle__thumb,
+/* The bar was missing from this list entirely, which is why an alarm clearing
+ used to snap. Its WIDTH is deliberately not transitioned — that is the live
+ edge and it must stay instant; only its color and halo relax. The vacated
+ region is (5c)'s job. */
+.ac-afterglow .ac-meter__bar,
+.ac-afterglow .ac-table__row--active td {
+ transition:
+ background-color var(--ac-decay-fast) var(--ac-decay-ease),
+ border-color var(--ac-decay-fast) var(--ac-decay-ease),
+ color var(--ac-decay-fast) var(--ac-decay-ease),
+ box-shadow var(--ac-decay-fast) var(--ac-decay-ease),
+ text-shadow var(--ac-decay-fast) var(--ac-decay-ease),
+ --ac-lit var(--ac-persist-tail) var(--ac-decay-ease);
+}
+
+/* (5b) THE AFTERIMAGE — the part a long phosphor actually shows you.
+ ------------------------------------------------------------------
+ The two halves are split by what they describe, which is also the physical
+ split: a control's GEOMETRY snaps on --ac-decay-fast, because a button must
+ read as released the instant you let go, and the LIGHT it was emitting decays
+ on --ac-persist-tail, uncapped.
+
+ A REGISTERED NUMBER RATHER THAN A box-shadow TRANSITION, so the components
+ keep their own shadows and one variable drives the afterimage's alpha and its
+ halo radius together. HOVER IS DELIBERATELY NOT IN THE LIT LIST — at a 2s tail
+ it leaves a wake of glowing boxes behind the cursor. Both in
+ RATIONALE.md § The afterimage. */
+/* INHERITS, AND IT HAS TO: the afterimage is a ::after, and a pseudo-element
+ does not read its originator's non-inherited properties. With `inherits:
+ false` the halo resolved to alpha 0 at every drive level, which looks exactly
+ like the effect being off. */
+@property --ac-lit {
+ syntax: "";
+ inherits: true;
+ initial-value: 0;
+}
+
+/* The lit states. Instant on: no transition is declared here, so --ac-lit jumps
+ to 1 and only the release is timed by the rule above. */
+.ac-afterglow .ac-btn--filled,
+.ac-afterglow .ac-btn[aria-pressed="true"],
+.ac-afterglow .ac-tab--active,
+.ac-afterglow .ac-tab[aria-selected="true"],
+.ac-afterglow .ac-nav__link[aria-current="page"],
+.ac-afterglow .ac-badge--filled,
+.ac-afterglow .ac-banner--filled,
+.ac-afterglow .ac-check input:checked,
+.ac-afterglow .ac-radio input:checked,
+.ac-afterglow .ac-toggle--on .ac-toggle__thumb,
+.ac-afterglow .ac-toggle[aria-pressed="true"] .ac-toggle__thumb,
+.ac-afterglow .ac-table__row--active td {
+ --ac-lit: 1;
+}
+
+/* THE AFTERIMAGE LAYER ITSELF, and it is a short list for a mechanical reason.
+ An element has exactly one ::after, and four components have already spent
+ theirs: .ac-toggle (thumb), .ac-banner (the ✳✳ ornaments, both pseudos),
+ .ac-select (the ▼) and .ac-spinner. Declaring one here would silently replace
+ those — the same trap .ac-crt::after and .ac-bloom::after already document.
+ .ac-check and .ac-radio light the itself, and a replaced element
+ renders no pseudo-element at all.
+
+ Those all still de-energize; they just do it through --ac-lit driving nothing
+ but their own halo above, rather than through a shape-accurate afterimage.
+ The five below are the ones where the lit area is a solid block big enough for
+ the difference to matter, and where ::after was free. */
+.ac-afterglow .ac-btn::after,
+.ac-afterglow .ac-tab::after,
+.ac-afterglow .ac-nav__link::after,
+.ac-afterglow .ac-badge::after,
+.ac-afterglow .ac-table__row--active td::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ /* The whole layer's on/off switch, as an inherited token rather than a
+ selector list. `block` is what an absolutely-positioned ::after already
+ computes to, so stating it changes nothing — it just gives print.css,
+ a11y.css and the reduced-motion block below one declaration to write
+ instead of five selectors each. */
+ display: var(--ac-afterimage-display, block);
+ /* NO mix-blend-mode HERE, though the ghosts and patches both use it: a blended
+ element forces its own compositing group, which regressed TEXT ANTIALIASING
+ on every button and tab on the page. It is also unnecessary over a
+ near-black panel. NO BACKGROUND EITHER — --ac-lit sits at 1 for as long as
+ the control is lit, so a fill would paint over its inverse-video text
+ permanently and spend the --ac-on-fill contrast ratio contrast.mjs gates.
+ Both in RATIONALE.md § The afterimage. */
+ box-shadow: 0 0 calc(18px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-1), calc(0.26 * var(--ac-lit)));
+}
+.ac-afterglow .ac-btn,
+.ac-afterglow .ac-tab,
+.ac-afterglow .ac-nav__link,
+.ac-afterglow .ac-badge,
+.ac-afterglow .ac-table__row--active td {
+ position: relative;
+}
+
+/* Lighting up is instant — a cell energizes on the next refresh. Declared on the
+ lit half so it wins only in that direction. */
+.ac-afterglow .ac-btn--filled,
+.ac-afterglow .ac-btn[aria-pressed="true"],
+.ac-afterglow .ac-btn:hover,
+.ac-afterglow .ac-tab--active,
+.ac-afterglow .ac-tab[aria-selected="true"],
+.ac-afterglow .ac-tab:hover,
+.ac-afterglow .ac-nav__link[aria-current="page"],
+.ac-afterglow .ac-nav__link:hover,
+.ac-afterglow .ac-badge--filled,
+.ac-afterglow .ac-banner--filled,
+.ac-afterglow .ac-check input:checked,
+.ac-afterglow .ac-radio input:checked,
+.ac-afterglow .ac-toggle--on .ac-toggle__thumb,
+.ac-afterglow .ac-toggle[aria-pressed="true"] .ac-toggle__thumb {
+ transition: none;
+}
+
+/* (5c) A LIT AREA THAT SHRINKS — the bargraph, and a phenomenon none of the
+ decays above covers.
+ ---------------------------------------------------------------------------
+ A meter's element stays, its text is elsewhere and its color never moves; what
+ changes is its WIDTH, so the region it vacates was lit a moment ago and is now
+ simply not drawn, with nothing timing the difference.
+
+ THE GHOST IS A SECOND BAR THAT LAGS, and the asymmetry falls out of paint
+ order rather than needing a rule of its own — which is what makes this cheap.
+ Both bars read the same --ac-meter-value; the live one snaps to it and this
+ one takes --ac-persist-tail to get there. On a DECREASE the ghost is briefly
+ wider, and the strip between them is the vacated region draining. On an
+ INCREASE it sits under the live bar, invisible. Instant up, curve down, free.
+
+ This is the half that works with no JavaScript at all, and it models a bar
+ falling GRADUALLY — a taper behind a receding edge. A bar that drops SUDDENLY
+ should fade uniformly instead; CSS cannot hold the old width to tell those
+ apart, so amber-console.effects.js covers that case. See RATIONALE.md § The
+ lagging bar.
+
+ The mask keeps it reading as light rather than as a wipe: the trailing end is
+ soft, so the strip fades along its length instead of ending on an edge.
+
+ HERE RATHER THAN IN components/meter.css because this is a `transition` and
+ scripts/check-prohibitions.mjs forbids those under src/components/. Only the
+ `position: relative` that puts the live bar on top belongs to the component. */
+.ac-afterglow .ac-meter__track::before {
+ content: "";
+ position: absolute;
+ inset: 0 auto 0 0;
+ width: calc(var(--ac-meter-value, 0) * 1%);
+ pointer-events: none;
+ background: repeating-linear-gradient(
+ 90deg,
+ var(--ac-fill) 0 8px,
+ transparent 8px 12px
+ );
+ opacity: 0.5;
+ mask-image: linear-gradient(90deg, #000 0 55%, transparent 100%);
+ -webkit-mask-image: linear-gradient(90deg, #000 0 55%, transparent 100%);
+ transition: width var(--ac-persist-tail) var(--ac-decay-ease);
+}
+
+/* THE SAME GHOST ON AN OVER-RANGE METER, INVERTED WITH THE REST OF IT.
+ components/meter.css lights the alarm TRACK and cuts the bar out of it in
+ --ac-on-fill, so the rule above — which paints in --ac-fill — draws the ghost
+ in exactly the colour the track behind it now is, and the draining strip
+ becomes invisible. An alarmed bar was the one bargraph in the system that
+ snapped instead of trailing, which is the bug (5c) exists to fix, reintroduced
+ by the alarm fill for the one state where a falling reading matters most.
+ Same geometry, same timing, the other ink. */
+.ac-afterglow .ac-meter--alarm .ac-meter__track::before {
+ background: repeating-linear-gradient(
+ 90deg,
+ var(--ac-on-fill) 0 8px,
+ transparent 8px 12px
+ );
+}
+
+/* (6) SCROLL SMEAR.
+
+ Scrolling is the largest light-off event there is: every cell on the panel is
+ handed a new value at once. Real gas cannot keep up, and the image
+ trails.
+
+ This is a blurred, additive copy of the backdrop, faded in with scroll speed
+ and drained when the scroll stops — amber-console.effects.js drives --ac-smear
+ from the actual per-frame delta. Two details are load-bearing: it is `fixed`, so
+ the cost is one viewport rather than one document (the guide page is 26,000px
+ tall), and it filters the BACKDROP rather than blurring the content itself,
+ so the text you are reading stays sharp while its afterimage does not. */
+/* The image itself loses focus, and this HAS to be a filter on the CONTENT — an
+ additive copy of the backdrop cannot do it, however hard it is blurred.
+
+ THE :not() LIST IS THE GLASS, NOT THE IMAGE. Only the frame's real children
+ are filtered; the scanline mask, vignette and cell mesh do not go out of focus
+ when the picture moves. .ac-nav--sticky is excluded from the other direction:
+ it is pinned to the viewport, so its pixels are NOT being handed a new value.
+
+ (THERE ARE NO COPIES OF THIS LIST ANY MORE, and this note used to say to keep
+ three of them in step. print.css and a11y.css each carried their own duplicate
+ of the selector until --ac-smear-filter replaced both with one declaration —
+ so if you change the list, change it HERE and nowhere else. Recreating a copy
+ in either of those files is the thing this paragraph now exists to prevent.)
+
+ The blur is isotropic and a real smear is not; the directional form costs
+ every page an inline SVG node, which is not worth the axis. See
+ RATIONALE.md § Scroll smear. */
+.ac-afterglow[data-ac-scrolling] > *:not(.ac-persist, .ac-retrace, .ac-mesh, .ac-nav--sticky) {
+ /* The whole filter is the token, not a scale inside it, so an environment that
+ wants no smear gets a literal `none` rather than a blur(0px) — which would
+ still be a filter, and a filter creates a containing block for fixed
+ descendants. One declaration replaces this selector in print.css, a11y.css
+ and the reduced-motion block. */
+ filter: var(--ac-smear-filter, blur(calc(var(--ac-smear, 0) * 1.8px)));
+}
+
+/* …and the panel blooms while it cannot keep up: a blurred, additive copy of
+ the backdrop, fixed to the viewport so the cost is one screen rather than one
+ document — the guide page is 26,000px tall. */
+.ac-afterglow > .ac-persist::after {
+ content: "";
+ position: fixed; inset: 0;
+ pointer-events: none;
+ opacity: calc(var(--ac-smear, 0) * 0.45);
+ mix-blend-mode: screen;
+ backdrop-filter: blur(calc(var(--ac-smear, 0) * 4px)) brightness(1.12);
+ -webkit-backdrop-filter: blur(calc(var(--ac-smear, 0) * 4px)) brightness(1.12);
+}
+/* Nothing to composite when still — and a permanently live backdrop-filter over
+ the viewport is exactly the kind of thing that costs a frame budget for free.
+ The attribute is set by amber-console.effects.js only while the smear is
+ above zero. */
+.ac-afterglow:not([data-ac-scrolling]) > .ac-persist::after { display: none; }
+
+/* (2) GHOSTS — a copy of what was just there, parked at the rect it occupied
+ and left to drain. Mounted and removed by amber-console.js; nothing in the
+ DOM when the effect is off or the module is absent. */
+.ac-afterglow .ac-ghost {
+ position: absolute;
+ margin: 0;
+ pointer-events: none;
+ mix-blend-mode: screen;
+ /* Invisible until the animation drives it. A ghost is only ever legible mid-
+ decay, so if animations are off — a screenshot harness, a print, a browser
+ that never ran the keyframes — the right thing to show is nothing at all,
+ not an opaque duplicate of live text sitting on top of it. */
+ opacity: 0;
+ /* ON --ac-persist-tail, THE UNCAPPED ONE — a ghost is pure decoration, so this
+ is where the long phosphors run at their real length.
+
+ animation-NAME comes from the palette, defaulting to the single-hue curve.
+ A two-layer phosphor declares --ac-ghost-anim in its own block and gets the
+ cascade below instead; this file never names a palette to do it. */
+ animation: var(--ac-ghost-anim, ac-ghost-decay) var(--ac-persist-tail) var(--ac-decay-ease) forwards;
+}
+/* Continuously-rewritten text — a clock, a frame counter. Capped at 400ms even
+ under a long phosphor, and the cap is arithmetic rather than taste: a field
+ rewriting once a second under P7's 3000ms tail would stack three generations
+ of ghost on top of each other, and the third one is not persistence, it is a
+ pile. 400ms keeps at most one generation legible at a time. */
+.ac-afterglow .ac-ghost--fast {
+ animation-duration: min(var(--ac-persist-tail), 400ms);
+}
+@keyframes ac-ghost-decay {
+ from { opacity: 0.38; filter: blur(0); }
+ to { opacity: 0; filter: blur(0.8px); }
+}
+
+/* THE CASCADE — P7, and anything else with two coatings. A ghost here shows not
+ one color fading but TWO in sequence: the flash, then the afterglow.
+
+ 4% is the crossover, hardcoded because keyframe offsets cannot read a custom
+ property. --ac-persist-fast in tokens/colors.css carries the true figure
+ (0.04ms on P7) and is read by nothing — it exists so this 4% has a stated
+ provenance rather than looking like a number somebody liked. The color is ANIMATED
+ rather than set, so it beats the inline `color` amber-console.js copies onto
+ the clone. Palettes with one coating never reach this keyframe.
+ See RATIONALE.md § Ghosts. */
+@keyframes ac-ghost-cascade {
+ 0% { opacity: 0.46; color: rgb(var(--ac-halo-flash)); filter: blur(0); }
+ 4% { opacity: 0.38; color: rgb(var(--ac-halo-1)); filter: blur(0.1px); }
+ 100% { opacity: 0; color: rgb(var(--ac-halo-1)); filter: blur(0.8px); }
+}
+
+/* (7) THE PAGE ITSELF DECAYS — cross-document persistence, and the only place in
+ this system where a REAL framebuffer snapshot is available without JavaScript.
+
+ Everything else here decays an ELEMENT. A phosphor decays whatever was DRAWN,
+ including the middle of a glyph; the View Transition API is the one primitive
+ that hands us that. The direction rule survives intact — the OLD snapshot
+ decays on the emitter's curve, the NEW page gets `animation: none` and is
+ simply THERE on the first frame.
+
+ THE AT-RULE IS NOT SHIPPED, DELIBERATELY — THE ONE OPT-IN IN THE FRAMEWORK.
+ `@view-transition { navigation: auto; }` is a document-level switch that
+ cannot be scoped, and linking a stylesheet must not rewrite how a site
+ navigates. Add that one line yourself and the rules below take it from there;
+ docs/docs.css does exactly that.
+
+ CAPPED AT 900ms SEPARATELY from --ac-persist-tail: the overlay sits above the
+ document while it runs, so P7's 3000ms tail would mean three seconds of a page
+ that cannot be clicked. See RATIONALE.md § The page itself decays. */
+html:has(.ac-afterglow)::view-transition-old(root) {
+ animation: ac-page-decay min(var(--ac-persist-tail), 900ms) var(--ac-decay-ease) forwards;
+ mix-blend-mode: screen;
+}
+html:has(.ac-afterglow)::view-transition-new(root) {
+ animation: none;
+ opacity: 1;
+}
+html:has(.ac-afterglow)::view-transition-group(root) {
+ animation-duration: min(var(--ac-persist-tail), 900ms);
+}
+::view-transition {
+ pointer-events: none;
+}
+@keyframes ac-page-decay {
+ from { opacity: 0.85; filter: blur(0); }
+ to { opacity: 0; filter: blur(1.1px); }
+}
diff --git a/src/sim/crt.css b/src/sim/crt.css
new file mode 100644
index 0000000..f2d0d27
--- /dev/null
+++ b/src/sim/crt.css
@@ -0,0 +1,165 @@
+/* ===========================================================================
+ CRT — the tube itself: scanline texture, vignette, line drift, the retrace
+ sweep and the mains flicker. Independent of the other two simulations.
+ =========================================================================== */
+
+
+/* --- CRT --- */
+.ac-crt { position: relative; }
+/* Scanline texture + vignette, drifting one cell every 11s.
+
+ THE HUM IS A BACKGROUND-COLOR ON THIS LAYER RATHER THAN ITS OPACITY, and the
+ difference is the whole point of the flicker being visible at all. This
+ element is a DARKENING layer — a black vignette and black scanlines — so
+ fading it out made the panel BRIGHTER, which is backwards for a mains sag, and
+ what moved was 3.5% of an overlay whose own mean darkening is about 15%: half
+ a percent of panel luminance, in the wrong direction. Filling the same layer
+ with black instead removes light directly, so the same 3.5% constant is 3.5%
+ of the picture and the scanlines stop breathing along with it.
+
+ It costs nothing extra: ac-crt-drift already animates background-position on
+ this element, so the layer is being repainted every frame regardless.
+
+ It is NOT a `::before` on .ac-crt, which is what a separate wash layer would
+ want. .ac-bloom::before is the plasma bleed, and a frame is allowed to carry
+ both classes — screen.css calls the three simulations independent and means
+ it — so the two would be one pseudo-element fighting over a backdrop-filter. */
+.ac-crt::after {
+ content: "";
+ position: absolute; inset: 0; z-index: 50;
+ pointer-events: none;
+ background-color: rgba(0,0,0,0);
+ background-image:
+ radial-gradient(135% 125% at 50% 50%, transparent 58%, rgba(0,0,0,0.34) 100%),
+ repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0 1px, transparent 1px 3px);
+ animation: ac-crt-drift 11s linear infinite, ac-crt-hum 5.5s ease-in-out infinite;
+}
+@keyframes ac-crt-drift {
+ from { background-position: 0 0, 0 0; }
+ to { background-position: 0 0, 0 -3px; }
+}
+/* MAINS FLICKER, SCALED BY THE PHOSPHOR — and the first thing to say is what
+ this is NOT, because the obvious reading of it is wrong.
+
+ THE ACTUAL FLICKER OF A CRT CANNOT BE RENDERED HERE, EVER — a 60Hz modulation
+ watched on a 60Hz display is sampling a signal at its own frequency. That is
+ Nyquist, not a browser limitation. What IS renderable is the perceptual
+ signature, so the FREQUENCY is fixed and slow and only the AMPLITUDE answers
+ to the hardware, via --ac-flicker:
+
+ P11, P31, P4 1.000 fully dark between frames. Maximum unsteadiness.
+ P1, P3 ~0.79 medium persistence, visibly less settled.
+ P7, P39 0.091 the long phosphors — rock steady at any refresh rate,
+ paid for in smear. Both halves, from one number.
+
+ AND THE OTHER HALF IS SPATIAL, which is the part this keyframe cannot carry.
+ See the retrace band below: temporal amplitude says how hard the picture
+ breathes, the band says WHERE the tube has already gone dark, and only the
+ second one is really what a short phosphor looks like.
+
+ THE 0.035 IS A WCAG 2.3.1 BUDGET, NOT A TASTE SETTING, and the margins are
+ large on purpose. Raising it spends them; redo the arithmetic first, exactly
+ as the --ac-mesh-wire note above demands — RATIONALE.md § The three flash
+ budgets. The constant is unchanged from when this animated opacity; what
+ changed is that it now lands on the picture instead of on the vignette, which
+ is a sevenfold gain in what you can see for no gain in what it spends. */
+@keyframes ac-crt-hum {
+ 0%, 100% { background-color: rgba(0,0,0,0); }
+ 31% { background-color: rgba(0,0,0,calc(0.035 * var(--ac-flicker, 1))); }
+ 32% { background-color: rgba(0,0,0,0); }
+ 68% { background-color: rgba(0,0,0,calc(0.015 * var(--ac-flicker, 1))); }
+}
+
+/* THE RETRACE BAND — the unsteadiness of a short phosphor, rendered SPATIALLY
+ because temporally it cannot be rendered at all.
+
+ The refresh itself is unwatchable here for the Nyquist reason above. But the
+ thing a short phosphor actually did was never the whole screen blinking: at
+ any instant only the band the beam had just written was at full brightness,
+ and everything behind it had already decayed. That is the dark bar you see
+ when a phone camera looks at a CRT, and being SPATIAL it can move as slowly as
+ you like and still read — there is no frequency to alias.
+
+ SO THE BAND IS THE RADAR WAKE IN ONE DIMENSION: it moves down the frame, its
+ leading (lower) edge is freshly written and bright, and what trails above it
+ is the trough where the phosphor has given up. --ac-flicker sets how deep the
+ trough goes and how hot the edge is, so P7 and P39 keep the almost-invisible
+ lightening sweep this was before, and P11, P31 and P4 get a band you can
+ watch. That is the emitter axis finally rendering the difference it claims.
+
+ NORMAL BLENDING, NOT `screen`, and it is the trough that forces it: screen
+ only ever adds light, so the dark half of the gradient would be a no-op — and
+ a black child inside a screen-blended element is a no-op too, so the trough
+ cannot be a pseudo-element hiding inside this one either. The cost is that the
+ bright edge alpha-blends rather than adding: at its strongest it moves the
+ brightest glyph in the system by about one part in 255, toward the halo color
+ it is already glowing in — half of what it was before the amplitude came down.
+ The gain is one fewer mix-blend-mode on the page, which a11y.css and print.css
+ both have notes about.
+
+ THE HEIGHT DOES NOT SCALE WITH --ac-flicker even though the decayed region
+ physically would. ac-retrace translates by percentages of this element's OWN
+ box, so a taller band travels further in the same 13s and starts spending most
+ of the cycle off-screen — the timing would become a property of the emitter,
+ and RATIONALE.md § the detune has four other periods depending on this one
+ staying put. Amplitude carries it instead.
+
+ AND THE AMPLITUDE IS HALF WHAT IT WAS, which is a correction rather than a
+ taste change. The previous constants — a 8.5% trough under a 10.6% hot edge at
+ full flicker — made the band the first thing anybody saw and the last thing
+ they stopped seeing: a bar sweeping the page, read as an overlay playing over
+ the panel rather than as the panel's own unevenness. The thing being simulated
+ is a REGION THAT HAS DECAYED, which is a gradient in brightness across a
+ surface, not an object crossing it. At these levels it is something you notice
+ on a pale readout and stop noticing on text, which is where it belongs; the
+ shape, the timing and the --ac-flicker scaling are all unchanged, so P11 still
+ gets several times what P39 gets and the emitter axis still renders. Somebody
+ who wants the old reading has one switch — see the flag at the foot of this
+ file — and it is a better default to arrive under. */
+.ac-crt > .ac-retrace {
+ position: absolute; left: 0; right: 0; top: 0; height: 26%;
+ z-index: 45; pointer-events: none;
+ background: linear-gradient(180deg,
+ rgba(0,0,0,0) 0%,
+ rgba(0,0,0,calc(0.042 * var(--ac-flicker, 1))) 30%,
+ rgba(0,0,0,calc(0.025 * var(--ac-flicker, 1))) 58%,
+ rgba(var(--ac-halo-1), calc(0.005 + 0.027 * var(--ac-flicker, 1))) 78%,
+ rgba(var(--ac-halo-4), calc(0.008 + 0.045 * var(--ac-flicker, 1))) 90%,
+ rgba(0,0,0,0) 100%);
+ animation: ac-retrace 13s linear infinite;
+}
+@keyframes ac-retrace {
+ 0% { transform: translateY(-110%); }
+ 100% { transform: translateY(500%); }
+}
+
+/* THE BAND IS OPTIONAL, AND IT IS THE ONLY EFFECT HERE THAT IS.
+ Everything else on this file is texture: the scanlines, the vignette and the
+ hum are the shape and the state of the tube, and they sit still. The band
+ TRAVELS — 26% of the frame, across all of it, every 13s, over the one surface
+ somebody is trying to read. It is by a wide margin the largest moving object
+ in the system, and "I would rather that did not sweep past while I read" is a
+ comfort preference in exactly the way the blink flag is.
+
+ TWO WAYS TO SAY IT, and they are for two different people:
+
+ the whole page. What the demo switch
+ writes; a viewer preference, and the
+ one amber-console.js persists.
+ …just do not ship the child the band is a
+ you put in the frame yourself. Leave it
+ out and there is nothing to switch off.
+ The author's answer, and it costs a
+ node rather than a rule.
+
+ The attribute exists because the SCRIPT mounts that child when the CRT
+ simulation comes on (SIMS.crt.children in amber-console.js), so a page driving
+ the simulation from the toggle cannot express "CRT, but not the band" by
+ omission alone. It hides rather than unmounts, so flipping the flag is a style
+ recalculation and not a remount of the simulation.
+
+ 0,3,0 against the 0,2,0 of the rule above, which is what it takes to win —
+ `:root[…]` is an element plus an attribute. It agrees with the reduced-motion
+ `display: none` in frame.css rather than fighting it: both say the same word,
+ so whichever matches, the band is gone. */
+:root[data-ac-style-retrace="off"] .ac-retrace { display: none; }
diff --git a/src/sim/frame.css b/src/sim/frame.css
new file mode 100644
index 0000000..b3975e8
--- /dev/null
+++ b/src/sim/frame.css
@@ -0,0 +1,111 @@
+/* ===========================================================================
+ Frame — the rules that must run AFTER all three simulations, which is the
+ whole reason this is a file rather than a section of one of them:
+
+ - the shared stacking normalisation (content above the overlays)
+ - the viewport anchoring: the glass does not scroll, so on a full-screen
+ frame the overlays are fixed rather than document-absolute
+ - prefers-reduced-motion, which switches all three off at once
+
+ Selectors here naming a simulation you have deleted match nothing and cost
+ nothing, so this file is safe to keep whichever of the three you ship.
+ =========================================================================== */
+
+
+.ac-bloom > *, .ac-crt > *, .ac-afterglow > * { position: relative; z-index: 1; }
+.ac-crt > .ac-retrace, .ac-bloom > .ac-retrace { z-index: 45; }
+.ac-bloom > .ac-mesh, .ac-crt > .ac-mesh { z-index: 48; }
+
+/* --- THE GLASS IS THE VIEWPORT, NOT THE DOCUMENT ---
+
+ Anchoring these overlays to a document-height frame is wrong physically (glass
+ does not scroll, so a vignette would darken the top of the PAGE rather than the
+ edges of the SCREEN) and practically (a document-height backdrop-filter
+ rasterizes in tiles, and the seams band). Fixing them to the viewport fixes the
+ look, the physics and the cost at once.
+
+ SCOPED TO .ac-screen ON PURPOSE: .ac-bloom and .ac-crt also go on small tiles,
+ which must stay local to the tile. .ac-persist stays document-absolute —
+ ghosts are pinned to a document coordinate.
+ See RATIONALE.md § The glass is the viewport, not the document. */
+.ac-screen.ac-bloom::before,
+.ac-screen.ac-crt::after,
+.ac-screen.ac-afterglow > .ac-persist::before {
+ position: fixed;
+ inset: 0;
+}
+.ac-screen.ac-crt > .ac-retrace {
+ position: fixed;
+}
+.ac-screen.ac-bloom > .ac-mesh {
+ position: fixed;
+ inset: 0;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ /* Everything this block switches off that has a token, switched off in one
+ place. No selector lists and no specificity restatement — see the blink
+ contract at the top of base/blink.css, which is where that mechanism is
+ documented.
+
+ blink every blink site at once.
+ smear smearing the whole viewport in response to scrolling is the
+ single most motion-sick-making thing in here.
+ afterimage no animation of its own — it reads --ac-lit, and the
+ transition blanket below already stops that from moving — but
+ what is left is a STATIC extra halo around every lit control,
+ which is not motion and is also not something anybody opted
+ into. */
+ :root {
+ --ac-blink-force: none;
+ --ac-smear-filter: none;
+ --ac-afterimage-display: none;
+ }
+
+ .ac-bloom::before, .ac-crt::after,
+ .ac-persist::before { animation: none; }
+ .ac-retrace { display: none; }
+
+ /* .ac-mesh is the one overlay here that keeps rendering. Note it is in an
+ animation rule and NOT in the display rule beside .ac-retrace: the screen
+ door is not an effect playing over the panel, it is the shape of the panel,
+ and hiding it would change what the hardware IS in response to a motion
+ preference. Only the buzz is motion.
+
+ Restated with the child combinator rather than folded into the bare list
+ above, and that is the third time this file has had to say it: a media query
+ adds no specificity, so `.ac-mesh` (0,1,0) loses to the `.ac-bloom > .ac-mesh`
+ (0,2,0) that declares the animation, and the buzz goes on running for exactly
+ the users who asked it not to. It has to be matched at its own weight. */
+ .ac-bloom > .ac-mesh,
+ .ac-crt > .ac-mesh { animation: none; }
+
+ /* Every decay in the simulation is a descendant rule under .ac-afterglow, so
+ each one outranks a plain reset here and has to be caught. Restating the
+ selector list one by one is how the blink override slipped through twice —
+ a blanket is the only version that also covers the next rule added. */
+ .ac-afterglow *,
+ .ac-afterglow *::before,
+ .ac-afterglow *::after { transition: none !important; }
+
+ /* The smear's additive bloom is a node of its own rather than one of the
+ filtered children, so --ac-smear-filter above does not reach it. */
+ .ac-afterglow > .ac-persist::after { display: none; }
+
+ /* The lagging bar would already be harmless — the blanket above stops its width
+ from transitioning, so it sits exactly under the live bar and cannot be seen.
+ It goes anyway rather than painting a gradient nobody will ever look at. */
+ .ac-afterglow .ac-meter__track::before { display: none; }
+
+ /* A whole page dissolving into the next one is the largest moving image in the
+ system. Both halves are cut, not just the old one — leaving the NEW page's
+ animation suppressed while the OLD one still ran would be worse than either. */
+ html:has(.ac-afterglow)::view-transition-old(root),
+ html:has(.ac-afterglow)::view-transition-new(root) { animation: none; }
+
+ /* Persistence is motion by definition: a decaying ghost is a moving image.
+ There is nothing to soften here, so the whole thing goes. */
+ .ac-ghost { display: none; }
+ .ac-afterglow [hidden],
+ .ac-afterglow dialog:not([open]) { transition: none; filter: none; }
+}
diff --git a/src/sim/plasma.css b/src/sim/plasma.css
new file mode 100644
index 0000000..3ce9fdd
--- /dev/null
+++ b/src/sim/plasma.css
@@ -0,0 +1,125 @@
+/* ===========================================================================
+ PLASMA — the panel itself: the bloom, the cell mesh, and the shimmer of an
+ AC sustain. Independent of sim/crt.css and sim/afterglow.css; delete this
+ file and .ac-bloom simply stops doing anything.
+ =========================================================================== */
+
+
+/* --- PLASMA --- */
+.ac-bloom {
+ position: relative;
+ /* Same split as the base tokens: the 2px core is the lit cell, everything
+ wider is scattered light and answers to --ac-halo-scatter / --ac-halo-spread. This
+ is where the difference between the gases actually shows, because the bloom
+ is where the halo is big enough to see. */
+ /* EVERY TIER IS RESTATED HERE, not just the full one. The bloom redefines the
+ glow tokens on the frame, which is a closer ancestor than :root and so wins
+ for every descendant — so a tier left undeclared here would keep its :root
+ value and a dim label would end up glowing HARDER on a plasma panel than the
+ bright text beside it. The bloom changes how much light the glass throws,
+ not how hard the cell behind it is driven. */
+ --ac-glow-text:
+ 0 0 2px rgba(var(--ac-halo-4), 0.75),
+ 0 0 calc(9px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-2), calc(0.4 * var(--ac-halo-scatter, 1))),
+ 0 0 calc(26px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.2 * var(--ac-halo-scatter, 1))),
+ 0 0 calc(56px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.1 * var(--ac-halo-scatter, 1)));
+ --ac-glow-text-dim:
+ 0 0 2px rgba(var(--ac-halo-4), calc(0.75 * var(--ac-drive-dim))),
+ 0 0 calc(9px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-2), calc(0.4 * var(--ac-halo-scatter, 1) * var(--ac-drive-dim))),
+ 0 0 calc(26px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.2 * var(--ac-halo-scatter, 1) * var(--ac-drive-dim))),
+ 0 0 calc(56px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.1 * var(--ac-halo-scatter, 1) * var(--ac-drive-dim)));
+ --ac-glow-text-faint:
+ 0 0 2px rgba(var(--ac-halo-4), calc(0.75 * var(--ac-drive-faint))),
+ 0 0 calc(9px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-2), calc(0.4 * var(--ac-halo-scatter, 1) * var(--ac-drive-faint))),
+ 0 0 calc(26px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.2 * var(--ac-halo-scatter, 1) * var(--ac-drive-faint))),
+ 0 0 calc(56px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.1 * var(--ac-halo-scatter, 1) * var(--ac-drive-faint)));
+
+ --ac-glow-box:
+ 0 0 calc(11px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-1), calc(0.4 * var(--ac-halo-scatter, 1))),
+ 0 0 calc(34px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-2), calc(0.16 * var(--ac-halo-scatter, 1))),
+ inset 0 0 14px rgba(var(--ac-halo-1), 0.1);
+ --ac-glow-box-dim:
+ 0 0 calc(11px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-1), calc(0.4 * var(--ac-halo-scatter, 1) * var(--ac-drive-faint))),
+ 0 0 calc(34px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-2), calc(0.16 * var(--ac-halo-scatter, 1) * var(--ac-drive-faint))),
+ inset 0 0 14px rgba(var(--ac-halo-1), calc(0.1 * var(--ac-drive-faint)));
+}
+.ac-bloom::before {
+ content: "";
+ position: absolute; inset: 0; z-index: 40;
+ pointer-events: none;
+ backdrop-filter: blur(3.5px) brightness(1.22) saturate(1.08);
+ -webkit-backdrop-filter: blur(3.5px) brightness(1.22) saturate(1.08);
+ mix-blend-mode: screen;
+ opacity: 0.34;
+ mask-image: radial-gradient(125% 125% at 50% 48%, #000 50%, rgba(0,0,0,0.4) 100%);
+ -webkit-mask-image: radial-gradient(125% 125% at 50% 48%, #000 50%, rgba(0,0,0,0.4) 100%);
+ animation: ac-bloom-breathe 9s ease-in-out infinite;
+}
+/* Mains-hum breathing — barely perceptible, just enough to feel alive */
+@keyframes ac-bloom-breathe {
+ 0%, 100% { opacity: 0.31; }
+ 50% { opacity: 0.37; }
+}
+
+/* THE SCREEN DOOR — a crossed mesh, not a stack of horizontal lines. A cell
+ lights at the intersection of two wires, boxed in by barrier ribs that emit
+ nothing; the horizontal blanking gaps belong to .ac-crt and the tube it
+ simulates. There is no scan here, so there is nothing to blank.
+
+ THE RIBS ARE PURE BLACK RATHER THAN TINTED, and that is the whole trick: over
+ the near-black unlit panel black alpha has nothing to take away, so the grid
+ appears only where the panel is lit — for free.
+
+ z-index 48 puts it ABOVE the bleed, which is upside down physically and is a
+ deliberate performance trade. It is A CHILD NODE, not .ac-bloom::after,
+ because .ac-crt::after already owns that pseudo-element for the scanlines and
+ would silently replace a mesh declared there. Both explained in
+ RATIONALE.md § The screen door. */
+.ac-bloom > .ac-mesh {
+ position: absolute; inset: 0; z-index: 48;
+ pointer-events: none;
+ background:
+ repeating-linear-gradient(0deg, rgba(0,0,0,var(--ac-mesh-wire)) 0 1px, transparent 1px var(--ac-mesh-pitch)),
+ repeating-linear-gradient(90deg, rgba(0,0,0,var(--ac-mesh-wire)) 0 1px, transparent 1px var(--ac-mesh-pitch));
+ animation:
+ ac-mesh-buzz 0.29s steps(1, end) infinite,
+ ac-mesh-hum 0.37s ease-in-out infinite;
+}
+
+/* THE PLASMA SHIMMER — the residue of an AC sustain, which reads as the panel
+ being energized rather than merely bright.
+
+ TWO ANIMATIONS, DETUNED, and the periods are load-bearing: 0.29 and 0.37 are
+ coprime, so the pair does not repeat for 10.7s, and neither divides into
+ ac-crt-hum (5.5s), ac-bloom-breathe (9s), ac-crt-drift (11s) or ac-retrace
+ (13s). RETUNE THEM AND ALL FOUR RELATIONSHIPS MUST SURVIVE, or the panel finds
+ a beat and starts throbbing.
+
+ Both rest at their zero frame — translate 0, opacity 1. The screenshot harness
+ freezes animation, so whatever sits at 0% is what gets baselined. */
+
+/* Sub-pixel vibration of the mesh. steps(1, end) so each position is held and
+ then jumped, never interpolated — a wire that eases between two places is a
+ wobble. The 0.35px ceiling keeps the wires sharp; past about half a pixel the
+ resampling turns the mesh gray and the screen door is gone. */
+@keyframes ac-mesh-buzz {
+ 0% { transform: translate3d(0, 0, 0); }
+ 14% { transform: translate3d(0.28px, -0.16px, 0); }
+ 28% { transform: translate3d(-0.19px, 0.31px, 0); }
+ 43% { transform: translate3d(0.33px, 0.22px, 0); }
+ 57% { transform: translate3d(-0.3px, -0.27px, 0); }
+ 71% { transform: translate3d(0.15px, 0.34px, 0); }
+ 86% { transform: translate3d(-0.34px, 0.11px, 0); }
+ 100% { transform: translate3d(0, 0, 0); }
+}
+/* …and the discharge itself is not perfectly even. A 1.8% swing on a layer whose
+ own mean darkening is 5% moves panel luminance by about 0.09%, three orders
+ below the WCAG 2.3.1 general flash threshold (>3/sec at >=10% relative
+ luminance over >25% of the field). That is a ceiling, not a starting point. */
+@keyframes ac-mesh-hum {
+ 0%, 100% { opacity: 1; }
+ 23% { opacity: 0.988; }
+ 47% { opacity: 1; }
+ 61% { opacity: 0.982; }
+ 79% { opacity: 0.994; }
+}
diff --git a/src/sim/screen.css b/src/sim/screen.css
new file mode 100644
index 0000000..30259c8
--- /dev/null
+++ b/src/sim/screen.css
@@ -0,0 +1,54 @@
+/* ===========================================================================
+ Screen — the z-index contract the three simulations share, plus the one
+ static texture that is not a simulation at all.
+
+ ITS POSITION IS NOT LOAD-BEARING, and an earlier version of this header
+ claimed otherwise. The z-index budget below is DOCUMENTATION — a comment, not
+ a rule — and the only two rules in this file style `.ac-scanlines`, a static
+ texture nothing else in sim/ touches. Reorder this file freely.
+
+ sim/frame.css is the one that genuinely must stay last.
+ =========================================================================== */
+
+
+/* ---------------------------------------------------------------------------
+ Three independent screen simulations, all applied to the outermost frame:
+
+ .ac-bloom PLASMA — the panel itself. Amplifies the glow tokens for every
+ descendant, lays a soft bleed layer over it, and rules it into
+ the cell matrix the gas actually sits in.
+ .ac-crt CRT — the tube itself: scanline texture, vignette, slow line
+ drift, retrace sweep, faint mains flicker.
+ .ac-afterglow PERSISTENCE — the panel does not go dark instantly. Anything
+ that disappears decays, live text leaves a ghost of the value
+ it just replaced, the glass holds faint uneven patches, and the
+ image smears while you scroll.
+
+ Three classes, but the demos drive them from two switches: .ac-afterglow rides
+ with .ac-crt, because persistence is a property of the same glass the
+ scanlines are on. Each still works alone if you wire it yourself. All stop
+ under prefers-reduced-motion.
+
+ THE STACK — stated here in one place, because a sticky bar carrying its own
+ z-index will otherwise punch straight through the simulations:
+
+ 1 frame content
+ 20 sticky chrome — .ac-nav--sticky, and anything else that outranks content
+ 40 .ac-bloom::before plasma bleed
+ 45 .ac-retrace CRT retrace band
+ 45 .ac-persist afterglow ghosts and residual patches
+ 48 .ac-mesh plasma cell mesh
+ 50 .ac-crt::after scanlines and vignette
+
+ Everything from 40 up is above the sticky bar on purpose: a screen simulation
+ that stops at the edge of the menu bar is not simulating a screen.
+ --------------------------------------------------------------------------- */
+
+/* Static scanline texture only (no motion) — for print, thumbnails, cards */
+.ac-scanlines { position: relative; }
+.ac-scanlines::after {
+ content: "";
+ position: absolute; inset: 0; z-index: 6;
+ pointer-events: none;
+ background: repeating-linear-gradient(0deg, rgba(0,0,0,0.17) 0 1px, transparent 1px 3px);
+}
diff --git a/src/tokens/colors.css b/src/tokens/colors.css
index 435fe27..7f2dca7 100644
--- a/src/tokens/colors.css
+++ b/src/tokens/colors.css
@@ -1,120 +1,590 @@
-/* TWO GASES, ONE RAMP.
- *
- * The system ships two palettes and the switch between them is `data-ac-gas` on
- * the root element. They are not a light/dark pair and not a theme — they are
- * two different pieces of hardware:
- *
- * data-ac-gas="neon" 24deg. The default. A monochrome AC plasma panel, where
- * the light is neon emitting directly and there is no
- * phosphor anywhere in the stack. This is what law 1
- * describes and what the rest of the system simulates.
- *
- * data-ac-gas="amber" 38deg. The classic amber CRT phosphor (P3), a broad
- * ~590nm band with real green content. Historically this
- * is a DIFFERENT display technology — but it is the look
- * most people mean by "amber terminal", it is the ramp the
- * source design system was drawn against, and it pairs
- * naturally with the .ac-crt simulation.
- *
- * Everything below is defined twice and only twice: the five discharge stops,
- * the three surfaces, --on-fill, and the four glow triples. Every other token in
- * the system is an alias or is built from those, so adding a third gas means
- * adding one block and nothing else.
- *
- * BOTH PALETTES ARE GATED. scripts/contrast.mjs runs the full pair table against
- * each block independently — a ratio that passes under neon and fails under
- * amber is a failure. Do not add a stop to one block without the other.
+/* TECHNOLOGY, THEN EMITTER — the palettes.
+ *
+ * It takes TWO attributes on the root element to name a palette, because the
+ * same color word means different physics on different glass:
+ *
+ * data-ac-tech "plasma" (a gas gap emitting directly) or
+ * "crt" (a phosphor, which emits and then PERSISTS).
+ * data-ac-emitter which gas or phosphor within that technology.
+ *
+ * Every block below is selected by BOTH, so a mismatched pair selects nothing
+ * rather than silently rendering the wrong hardware.
+ *
+ * plasma / neon 24deg. The default. What .ac-bloom simulates.
+ * plasma / helium pale pink. plasma / argon pale lavender.
+ * plasma / krypton pale violet-white.
+ *
+ * THE SEVEN PHOSPHORS SPLIT IN TWO, AND THE SPLIT IS WHAT THE TUBE WAS FOR
+ * rather than what colour it is. It decides whether a palette is a reasonable
+ * default for an interface or a deliberate costume, so the demo board groups
+ * them the same way.
+ *
+ * GENERAL PURPOSE — built to be read, for hours, by a person.
+ * crt / p3 38deg amber. The classic terminal, and .ac-crt's pair.
+ * crt / p1 green, willemite. The early scope and terminal tube.
+ * crt / p4 television white. A BLEND of two emitters.
+ * crt / p31 green. The monitor and scope phosphor most people picture.
+ *
+ * SPECIALIZED — built for an instrument, where reading was not the job. Each
+ * is legible here, but each is a costume with a reason attached.
+ * crt / p7 radar. Blue flash over a yellow-green afterglow that
+ * holds for seconds so a sweep leaves a picture behind.
+ * crt / p39 long-persistence yellow-green. Same trade as P7 without
+ * the two coatings: no flicker at any refresh, paid in smear.
+ * crt / p11 photographic recording. Blue is where film emulsion is
+ * most sensitive; nobody read text off one on purpose.
+ *
+ * THE FOUR GENERAL TUBES ALL DECAY IN UNDER ~25ms, which is under the ~80ms the
+ * eye needs to read a decay as a decay rather than as a switch — so on those the
+ * optional effects module has nothing visible to add, and says so by disabling
+ * its own switch. Persistence you can SEE is the specialized group's whole
+ * point. See ENGINE_FLOOR_MS in ../amber-console.js.
+ *
+ * P1/P39 and P7/P11 share a ramp on purpose — same compound, different decay.
+ * Note that puts one of each pair on either side of the split: the difference
+ * between a terminal and an instrument here is time, not colour.
+ *
+ * WHAT EVERY BLOCK MUST DEFINE: the five --ac-emit-* stops, the three surfaces,
+ * --ac-on-fill, the four --ac-halo-* glow triples, and --ac-halo-scatter / --ac-halo-spread.
+ * Every other color token is an alias or is built from those, so adding a
+ * palette means adding one block and nothing else.
+ *
+ * A BLOCK MAY ALSO CARRY TIME, where the emitter has a documented decay:
+ * --ac-persist, --ac-flicker and --ac-decay-ease. These are consumed WITH A CAP
+ * by tokens/effects.css, not raw. The four gases declare none of them and fall
+ * back to its :root defaults.
+ *
+ * --ac-persist-fast IS THE ODD ONE OUT: it is DOCUMENTATION, not an input. A
+ * two-layer phosphor declares it to record how fast its FIRST coating decays,
+ * and nothing reads it — no rule, no keyframe, no script. It exists because
+ * keyframe offsets cannot read a custom property, so ac-ghost-cascade in
+ * sim/afterglow.css has to hardcode the crossover as a percentage, and without
+ * this token there would be no machine-readable record of the figure that
+ * percentage was computed from. Do not wire it up expecting it to do something.
+ *
+ * EVERY PALETTE IS GATED. scripts/contrast.mjs runs the full pair table against
+ * each block independently — a ratio that passes under one emitter and fails
+ * under another is a failure. Do not add a stop to one block without the others.
+ *
+ * GENERATED. Nine of the eleven blocks are computed by scripts/derive-gas.mjs
+ * and must not be hand-edited; `npm test` re-derives them and fails on drift.
+ * Neon and P3 predate the script and stay hand-built.
+ *
+ * DEPRECATED, removed in 3.0: data-ac-gas="neon" | "amber". Migrate to
+ * data-ac-tech="plasma" data-ac-emitter="neon" / ="crt" ="p3".
+ *
+ * Why 24deg, why the phosphor bands are back-solved, why saturation is an
+ * output rather than a setting, and why P7's halo is not its ink:
+ * see RATIONALE.md § tokens/colors.css.
*/
:root,
+[data-ac-tech="plasma"][data-ac-emitter="neon"],
[data-ac-gas="neon"] {
/* Surfaces — warm blacks (the unlit gas panel) */
- --screen: #100600; /* base panel */
- --screen-raised: #1b0c02; /* subtly lifted region */
- --screen-well: #060200; /* recessed input wells */
+ --ac-screen: #100600; /* base panel */
+ --ac-screen-raised: #1b0c02; /* subtly lifted region */
+ --ac-screen-well: #060200; /* recessed input wells */
/* Discharge scale — ONE hue, five intensities. Never introduce a second hue
- WITHIN a palette; the two blocks here are hardware, not decoration.
-
- THE HUE IS 24deg AND IT IS DERIVED, NOT PICKED. Weight the Ne I visible
- lines by the CIE 1931 observer and the discharge lands at x=0.631 y=0.369 —
- just outside sRGB, gamut-mapping to hue 19deg. That is a DC neon tube. This
- panel is not one: the sustain is a short high-field pulse, which enriches
- the 585.2nm line (the highest-energy of the 2p->1s group, and already the
- strongest) against the 640nm red group, and the hue walks up with it. At the
- ~2x enrichment a pulsed cell plausibly sees, 24deg. The band 19-31deg is the
- defensible range; 24 sits in the middle of it.
-
- Saturation is held at 100% for every stop the gas emits, because a
- near-monochromatic emitter has no way to be pale. --amber-100 is the sole
- exception and the exception is also physics: no fully-saturated colour at
- this hue can exceed L=0.318, so a HOTTER cell can only get there by
- whitening — which is exactly what an overdriven neon cell does.
-
- Luminance is not free-floating either. Each stop is solved to a contrast
- ratio against --screen (10.5 / 7.0 / 5.2 / 3.4), because rotating hue at
- constant lightness drops --amber-50 to 2.79:1 and silently fails the 3:1
- non-text gate. Re-solve, never re-tint. scripts/contrast.mjs is the check.
-
- The --amber-* prefix is historical and now names the ramp, not the hue —
- under this palette it is not amber. Renaming is a public API break; see the
- token table in README.md. */
- --amber-100: #ffa86d; /* hot highlight / focus — 10.57:1 */
- --amber-90: #ff6b08; /* primary discharge — 7.02:1 */
- --amber-70: #dd5800; /* secondary — 5.22:1 */
- --amber-50: #ab4500; /* dim / disabled — 3.42:1 */
- --amber-30: #5b2500; /* trace / ghost — 1.63:1, decorative */
- --on-fill: #1e0c00;
-
- /* THE GLOW SOURCE. Four points on the discharge hue, as bare "r, g, b" triples
- so tokens/effects.css can build every halo from them with its own alphas —
- rgba(var(--gas-1), 0.4). That indirection is the whole reason the palettes
- switch cleanly: the halo is the same photons the cell emits, scattered in
- the glass, so a glow left behind at the other hue puts an amber corona
- around neon text. Twelve hardcoded rgba() used to live in effects.css and
- every one of them was a place to forget. */
- --gas-1: 255, 120, 30; /* core halo */
- --gas-2: 255, 109, 12; /* mid */
- --gas-3: 255, 102, 0; /* deep / outermost */
- --gas-4: 255, 140, 64; /* pale — hot cores and the retrace band */
+ WITHIN a palette; these blocks are hardware, not decoration.
+
+ HAND-BUILT, and stays that way: this ramp was solved hue-first at maximum
+ saturation, which is not what derive-gas.mjs does, and neither of its gamut
+ strategies reproduces it. Each stop is solved to a contrast ratio against
+ --ac-screen (10.5 / 7.0 / 5.2 / 3.4) — rotating hue at constant lightness drops
+ --ac-emit-50 to 2.79:1 and silently fails the 3:1 non-text gate. Re-solve,
+ never re-tint; scripts/contrast.mjs is the check.
+
+ Why the hue is 24deg and why regenerating neon would be a mistake:
+ RATIONALE.md § Hue — why neon is 24deg. */
+ --ac-emit-100: #ffa86d; /* hot highlight / focus — 10.57:1 */
+ --ac-emit-90: #ff6b08; /* primary discharge — 7.02:1 */
+ --ac-emit-70: #dd5800; /* secondary — 5.22:1 */
+ --ac-emit-50: #ab4500; /* dim / disabled — 3.42:1 */
+ --ac-emit-30: #5b2500; /* trace / ghost — 1.63:1, decorative */
+ --ac-on-fill: #1e0c00;
+
+ /* THE GLOW SOURCE — four points on the discharge hue, as bare "r, g, b"
+ triples so tokens/effects.css can build every halo with its own alphas:
+ rgba(var(--ac-halo-1), 0.4). That indirection is why the palettes switch
+ cleanly; hardcoding a halo puts an amber corona around neon text.
+
+ --ac-halo-scatter is how much light reaches the halo, with NEON AT 1.00 BY
+ DEFINITION — every other palette's figure is stated against it — and
+ --ac-halo-spread is its square root. See RATIONALE.md § Scattering. */
+ --ac-halo-scatter: 1;
+ --ac-halo-spread: 1;
+
+ --ac-halo-1: 255, 120, 30; /* core halo */
+ --ac-halo-2: 255, 109, 12; /* mid */
+ --ac-halo-3: 255, 102, 0; /* deep / outermost */
+ --ac-halo-4: 255, 140, 64; /* pale — hot cores and the retrace band */
}
-/* --- AMBER CRT PHOSPHOR (P3) — the source design system's ramp, kept as an
- option. Same structure as the block above, same contrast gate. --- */
+/* --- CRT / P3 — the amber phosphor, and the source design system's ramp. Same
+ structure as the block above, same contrast gate. NOT a gas: this is a
+ phosphor on a tube, which is why it is namespaced under a different
+ technology and not sitting beside neon. --- */
+[data-ac-tech="crt"][data-ac-emitter="p3"],
[data-ac-gas="amber"] {
- --screen: #0d0700;
- --screen-raised: #170e02;
- --screen-well: #060200;
-
- --amber-100: #ffd052; /* hot highlight / focus — 13.74:1 */
- --amber-90: #ffae1e; /* primary discharge — 10.81:1 */
- --amber-70: #cd8817; /* secondary — 6.81:1 */
- --amber-50: #8d5b10; /* dim / disabled — 3.47:1 */
- --amber-30: #4a2f08; /* trace / ghost — 1.62:1, decorative */
- --on-fill: #1a0e00;
-
- --gas-1: 255, 174, 30;
- --gas-2: 255, 150, 12;
- --gas-3: 255, 120, 0;
- --gas-4: 255, 186, 64;
+ --ac-screen: #0d0700;
+ --ac-screen-raised: #170e02;
+ --ac-screen-well: #060200;
+
+ --ac-emit-100: #ffd052; /* hot highlight / focus — 13.74:1 */
+ --ac-emit-90: #ffae1e; /* primary discharge — 10.81:1 */
+ --ac-emit-70: #cd8817; /* secondary — 6.81:1 */
+ --ac-emit-50: #8d5b10; /* dim / disabled — 3.47:1 */
+ --ac-emit-30: #4a2f08; /* trace / ghost — 1.62:1, decorative */
+ --ac-on-fill: #1a0e00;
+
+ --ac-halo-1: 255, 174, 30;
+ --ac-halo-2: 255, 150, 12;
+ --ac-halo-3: 255, 120, 0;
+ --ac-halo-4: 255, 186, 64;
+
+ /* Derived from the band model, replacing a placeholder held at neon's 1.00
+ that was wrong by 23%. The RAMP above stays hand-built (emit: false in
+ scripts/data/emitters.json); only the halo width was ever a placeholder.
+ See RATIONALE.md § Scattering. */
+ --ac-halo-scatter: 1.23;
+ --ac-halo-spread: 1.11;
+
+ /* Persistence: 25ms to 10% (medium). 22% still lit at the next frame.
+ --ac-flicker is the same quantity read the other way; the WCAG amplitude
+ budget that consumes it lives in tokens/effects.css, in one place. */
+ --ac-persist: 25ms;
+ --ac-flicker: 0.785;
+
+ /* The decay curve, sampled from the exponential — a shape no single
+ cubic-bezier expresses, which is why it is a linear(). */
+ --ac-decay-ease: linear(0, 0.013 0.5%, 0.023 0.9%, 0.041 1.6%, 0.072 2.9%, 0.127 5.3%, 0.218 9.5%, 0.362 17%, 0.564 31%, 0.802 56%, 1.000 100%);
+}
+
+/* --- PLASMA / HELIUM — pale pink / salmon-white.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The line data, its source
+ and the reason this gas uses the line selection it does are in
+ scripts/data/emitters.json.
+
+ CIE 1931 2-deg integral over all 15 listed lines: x=0.3944 y=0.2986.
+ Inside sRGB as measured; no gamut mapping needed.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.40:1 on --ac-emit-90. --- */
+[data-ac-tech="plasma"][data-ac-emitter="helium"] {
+ --ac-screen: #0e0809;
+ --ac-screen-raised: #1b1214;
+ --ac-screen-well: #060404;
+
+ --ac-emit-100: #ffa2b9;
+ --ac-emit-90: #dc7d96;
+ --ac-emit-70: #bc6a80;
+ --ac-emit-50: #925163;
+ --ac-emit-30: #502a34;
+ --ac-on-fill: #201216;
+
+ --ac-halo-1: 255, 158, 183;
+ --ac-halo-2: 255, 153, 180;
+ --ac-halo-3: 255, 150, 178;
+ --ac-halo-4: 255, 170, 191;
+
+ /* Rayleigh: this gas throws 26% more light into the halo than neon. */
+ --ac-halo-scatter: 1.26;
+ --ac-halo-spread: 1.12;
+}
+
+/* --- PLASMA / ARGON — pale violet-lavender.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The line data, its source
+ and the reason this gas uses the line selection it does are in
+ scripts/data/emitters.json.
+
+ CIE 1931 2-deg integral over 43 of 102 listed lines: x=0.2163 y=0.1047.
+ Outside sRGB at the luminance --ac-emit-90 needs, so it is
+ desaturated 35% toward D65 — the gas is paler here than it is in the tube.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.37:1 on --ac-emit-90. --- */
+[data-ac-tech="plasma"][data-ac-emitter="argon"] {
+ --ac-screen: #0b0812;
+ --ac-screen-raised: #171222;
+ --ac-screen-well: #050309;
+
+ --ac-emit-100: #c9b0ff;
+ --ac-emit-90: #af81ff;
+ --ac-emit-70: #9f5dff;
+ --ac-emit-50: #8925f1;
+ --ac-emit-30: #4b1088;
+ --ac-on-fill: #1b112c;
+
+ --ac-halo-1: 186, 149, 255;
+ --ac-halo-2: 182, 143, 255;
+ --ac-halo-3: 180, 138, 255;
+ --ac-halo-4: 194, 164, 255;
+
+ /* Rayleigh: this gas throws 49% more light into the halo than neon. */
+ --ac-halo-scatter: 1.49;
+ --ac-halo-spread: 1.22;
+}
+
+/* --- PLASMA / KRYPTON — pale violet-white.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The line data, its source
+ and the reason this gas uses the line selection it does are in
+ scripts/data/emitters.json.
+
+ CIE 1931 2-deg integral over all 95 listed lines: x=0.3153 y=0.2551.
+ Inside sRGB as measured; no gamut mapping needed.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.35:1 on --ac-emit-90. --- */
+[data-ac-tech="plasma"][data-ac-emitter="krypton"] {
+ --ac-screen: #0b080b;
+ --ac-screen-raised: #181318;
+ --ac-screen-well: #050405;
+
+ --ac-emit-100: #eaa5eb;
+ --ac-emit-90: #bf86c0;
+ --ac-emit-70: #a372a3;
+ --ac-emit-50: #7f587f;
+ --ac-emit-30: #442e45;
+ --ac-on-fill: #1b141b;
+
+ --ac-halo-1: 251, 185, 252;
+ --ac-halo-2: 241, 173, 242;
+ --ac-halo-3: 229, 162, 230;
+ --ac-halo-4: 254, 201, 255;
+
+ /* Rayleigh: this gas throws 31% more light into the halo than neon. */
+ --ac-halo-scatter: 1.31;
+ --ac-halo-spread: 1.14;
+}
+
+/* --- CRT / P1 — willemite green.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The band data, its source
+ and the reason this phosphor uses the band shape it does are in
+ scripts/data/emitters.json.
+
+ Band 529nm FWHM 48nm: x=0.2154 y=0.7110.
+ Outside sRGB at the luminance --ac-emit-90 needs, so it is
+ desaturated 57% toward D65 — the phosphor is paler here than it is in the tube.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.39:1 on --ac-emit-90. --- */
+[data-ac-tech="crt"][data-ac-emitter="p1"] {
+ --ac-screen: #000c03;
+ --ac-screen-raised: #001908;
+ --ac-screen-well: #000601;
+
+ --ac-emit-100: #00d871;
+ --ac-emit-90: #00b05b;
+ --ac-emit-70: #00964d;
+ --ac-emit-50: #00753a;
+ --ac-emit-30: #003f1c;
+ --ac-on-fill: #001a08;
+
+ --ac-halo-1: 0, 237, 125;
+ --ac-halo-2: 0, 225, 118;
+ --ac-halo-3: 0, 212, 111;
+ --ac-halo-4: 46, 255, 140;
+
+ /* Rayleigh: this phosphor throws 63% more light into the halo than neon. */
+ --ac-halo-scatter: 1.63;
+ --ac-halo-spread: 1.28;
+
+ /* Persistence: 24ms to 10% (medium).
+ 20% still lit when the next frame arrives.
+ --ac-flicker is the inter-frame modulation depth these two share; the
+ amplitude budget that keeps it under the WCAG flash threshold is in
+ tokens/effects.css, in one place, on purpose. */
+ --ac-persist: 24ms;
+ --ac-flicker: 0.798;
+
+ /* The decay curve itself, sampled from the exponential.
+ A shape no single cubic-bezier expresses, which is why it is a linear(). */
+ --ac-decay-ease: linear(0, 0.013 0.5%, 0.023 0.9%, 0.041 1.6%, 0.072 2.9%, 0.127 5.3%, 0.218 9.5%, 0.362 17%, 0.564 31%, 0.802 56%, 1.000 100%);
+}
+
+/* --- CRT / P4 — white.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The band data, its source
+ and the reason this phosphor uses the band shape it does are in
+ scripts/data/emitters.json.
+
+ 2 bands 466nm FWHM 76nm + 572nm FWHM 130nm x0.5: x=0.2701 y=0.3000.
+ Inside sRGB as measured; no gamut mapping needed.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.37:1 on --ac-emit-90. --- */
+[data-ac-tech="crt"][data-ac-emitter="p4"] {
+ --ac-screen: #08090b;
+ --ac-screen-raised: #121516;
+ --ac-screen-well: #040405;
+
+ --ac-emit-100: #9dc1d8;
+ --ac-emit-90: #7f9db0;
+ --ac-emit-70: #6c8696;
+ --ac-emit-50: #536874;
+ --ac-emit-30: #2b373e;
+ --ac-on-fill: #121618;
+
+ --ac-halo-1: 176, 211, 234;
+ --ac-halo-2: 165, 201, 223;
+ --ac-halo-3: 153, 189, 211;
+ --ac-halo-4: 197, 228, 248;
+
+ /* Rayleigh: this phosphor throws 55% more light into the halo than neon. */
+ --ac-halo-scatter: 1.55;
+ --ac-halo-spread: 1.24;
+
+ /* Persistence: 0.06ms to 10% (medium-short).
+ Fully dark between frames — flicker at maximum, no persistence to see.
+ --ac-flicker is the inter-frame modulation depth these two share; the
+ amplitude budget that keeps it under the WCAG flash threshold is in
+ tokens/effects.css, in one place, on purpose. */
+ --ac-persist: 0.06ms;
+ --ac-flicker: 1.000;
+}
+
+/* --- CRT / P7 — blue flash over a yellow-green afterglow.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The band data, its source
+ and the reason this phosphor uses the band shape it does are in
+ scripts/data/emitters.json.
+
+ Band 466nm FWHM 76nm: x=0.1384 y=0.1502.
+ Outside sRGB at the luminance --ac-emit-90 needs, so it is
+ desaturated 29% toward D65 — the phosphor is paler here than it is in the tube.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.35:1 on --ac-emit-90.
+
+ TWO EMITTERS, IN SEQUENCE. --ac-emit-* is the ZnS:Ag FLASH (x=0.1384 y=0.1502),
+ which is what the beam writes. --ac-halo-* is the (Zn,Cd)S:Cu AFTERGLOW
+ (x=0.3553 y=0.5373), which is what the screen holds after it. The halo
+ therefore does NOT track the ink here, which inverts the rule stated at the
+ top of tokens/effects.css and is the reason P7 exists as a part number. --- */
+[data-ac-tech="crt"][data-ac-emitter="p7"] {
+ --ac-screen: #040a11;
+ --ac-screen-raised: #0b1520;
+ --ac-screen-well: #020409;
+
+ --ac-emit-100: #8bc0ff;
+ --ac-emit-90: #00a0fb;
+ --ac-emit-70: #0088d7;
+ --ac-emit-50: #0069a8;
+ --ac-emit-30: #00385d;
+ --ac-on-fill: #03182a;
+
+ --ac-halo-1: 156, 226, 72;
+ --ac-halo-2: 145, 215, 54;
+ --ac-halo-3: 135, 203, 40;
+ --ac-halo-4: 176, 242, 107;
+
+ /* Rayleigh: this phosphor throws 47% more light into the halo than neon. */
+ --ac-halo-scatter: 1.47;
+ --ac-halo-spread: 1.21;
+
+ /* THE FLASH, as a halo triple. --ac-halo-* above is the AFTERGLOW, which is what
+ this screen holds; this is the layer the beam actually writes, and the ghost
+ keyframe starts here before crossing to the afterglow within one frame.
+ --ac-ghost-anim is how this palette tells tokens/effects.css it decays
+ through two hues rather than one, without effects.css naming it. */
+ --ac-halo-flash: 175, 209, 255;
+ --ac-ghost-anim: ac-ghost-cascade;
+
+ /* Persistence: 400ms to 10%, visible tail to 3000ms (long).
+ 91% still lit when the next frame arrives.
+ --ac-flicker is the inter-frame modulation depth these two share; the
+ amplitude budget that keeps it under the WCAG flash threshold is in
+ tokens/effects.css, in one place, on purpose. */
+ --ac-persist: 3000ms;
+ --ac-flicker: 0.091;
+ --ac-persist-fast: 0.04ms;
+
+ /* Long enough that the next ON edge lands before this one has
+ drained: the alarm throbs rather than chops. */
+ --ac-blink-anim: ac-blink-decay-long;
+
+ /* The decay curve itself, sampled from the Becquerel power law I0/(1+t/t0)^1.4.
+ A shape no single cubic-bezier expresses, which is why it is a linear(). */
+ --ac-decay-ease: linear(0, 0.186 0.5%, 0.296 0.9%, 0.441 1.6%, 0.602 2.9%, 0.750 5.3%, 0.862 9.5%, 0.932 17%, 0.971 31%, 0.991 56%, 1.000 100%);
+}
+
+/* --- CRT / P11 — blue.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The band data, its source
+ and the reason this phosphor uses the band shape it does are in
+ scripts/data/emitters.json.
+
+ Band 466nm FWHM 76nm: x=0.1384 y=0.1502.
+ Outside sRGB at the luminance --ac-emit-90 needs, so it is
+ desaturated 29% toward D65 — the phosphor is paler here than it is in the tube.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.35:1 on --ac-emit-90. --- */
+[data-ac-tech="crt"][data-ac-emitter="p11"] {
+ --ac-screen: #040a11;
+ --ac-screen-raised: #0b1520;
+ --ac-screen-well: #020409;
+
+ --ac-emit-100: #8bc0ff;
+ --ac-emit-90: #00a0fb;
+ --ac-emit-70: #0088d7;
+ --ac-emit-50: #0069a8;
+ --ac-emit-30: #00385d;
+ --ac-on-fill: #03182a;
+
+ --ac-halo-1: 87, 174, 255;
+ --ac-halo-2: 70, 170, 255;
+ --ac-halo-3: 56, 167, 255;
+ --ac-halo-4: 119, 184, 255;
+
+ /* Rayleigh: this phosphor throws 104% more light into the halo than neon. */
+ --ac-halo-scatter: 2.04;
+ --ac-halo-spread: 1.43;
+
+ /* Persistence: 0.035ms to 10% (medium-short).
+ Fully dark between frames — flicker at maximum, no persistence to see.
+ --ac-flicker is the inter-frame modulation depth these two share; the
+ amplitude budget that keeps it under the WCAG flash threshold is in
+ tokens/effects.css, in one place, on purpose. */
+ --ac-persist: 0.035ms;
+ --ac-flicker: 1.000;
+}
+
+/* --- CRT / P31 — green.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The band data, its source
+ and the reason this phosphor uses the band shape it does are in
+ scripts/data/emitters.json.
+
+ Band 513nm FWHM 78nm: x=0.2079 y=0.5295.
+ Outside sRGB at the luminance --ac-emit-90 needs, so it is
+ desaturated 45% toward D65 — the phosphor is paler here than it is in the tube.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.36:1 on --ac-emit-90. --- */
+[data-ac-tech="crt"][data-ac-emitter="p31"] {
+ --ac-screen: #010c06;
+ --ac-screen-raised: #03180e;
+ --ac-screen-well: #010503;
+
+ --ac-emit-100: #00d791;
+ --ac-emit-90: #00af76;
+ --ac-emit-70: #009564;
+ --ac-emit-50: #00744c;
+ --ac-emit-30: #003e27;
+ --ac-on-fill: #001b0e;
+
+ --ac-halo-1: 0, 235, 160;
+ --ac-halo-2: 0, 223, 151;
+ --ac-halo-3: 0, 210, 142;
+ --ac-halo-4: 0, 254, 173;
+
+ /* Rayleigh: this phosphor throws 67% more light into the halo than neon. */
+ --ac-halo-scatter: 1.67;
+ --ac-halo-spread: 1.29;
+
+ /* Persistence: 0.038ms to 10% (medium-short).
+ Fully dark between frames — flicker at maximum, no persistence to see.
+ --ac-flicker is the inter-frame modulation depth these two share; the
+ amplitude budget that keeps it under the WCAG flash threshold is in
+ tokens/effects.css, in one place, on purpose. */
+ --ac-persist: 0.038ms;
+ --ac-flicker: 1.000;
}
-/* Aliases and structural tokens — defined ONCE, for every palette. Anything
- that is the same shape regardless of which gas is in the panel belongs here;
- anything that is a colour belongs in a palette block above. */
-:root {
- --ink: var(--amber-90);
- --ink-bright: var(--amber-100);
- --ink-dim: var(--amber-70);
- --ink-faint: var(--amber-50);
- --ink-trace: var(--amber-30);
+/* --- CRT / P39 — yellow-green, long persistence.
+
+ GENERATED by scripts/derive-gas.mjs. Do not edit these values by hand;
+ `npm test` re-derives and fails on drift. The band data, its source
+ and the reason this phosphor uses the band shape it does are in
+ scripts/data/emitters.json.
+
+ Band 529nm FWHM 52nm: x=0.2248 y=0.6962.
+ Outside sRGB at the luminance --ac-emit-90 needs, so it is
+ desaturated 54% toward D65 — the phosphor is paler here than it is in the tube.
+ Stops solved to 10.5 / 7.0 / 5.2 / 3.4 / 1.63 : 1 against this palette's
+ own --ac-screen; --ac-on-fill lands at 6.39:1 on --ac-emit-90. --- */
+[data-ac-tech="crt"][data-ac-emitter="p39"] {
+ --ac-screen: #000c03;
+ --ac-screen-raised: #001908;
+ --ac-screen-well: #000601;
+
+ --ac-emit-100: #00d86e;
+ --ac-emit-90: #00b059;
+ --ac-emit-70: #00964b;
+ --ac-emit-50: #007538;
+ --ac-emit-30: #003f1b;
+ --ac-on-fill: #001a07;
+
+ --ac-halo-1: 0, 237, 121;
+ --ac-halo-2: 0, 225, 115;
+ --ac-halo-3: 0, 212, 108;
+ --ac-halo-4: 49, 255, 137;
+
+ /* Rayleigh: this phosphor throws 62% more light into the halo than neon. */
+ --ac-halo-scatter: 1.62;
+ --ac-halo-spread: 1.27;
+
+ /* Persistence: 400ms to 10%, visible tail to 2000ms (long).
+ 91% still lit when the next frame arrives.
+ --ac-flicker is the inter-frame modulation depth these two share; the
+ amplitude budget that keeps it under the WCAG flash threshold is in
+ tokens/effects.css, in one place, on purpose. */
+ --ac-persist: 2000ms;
+ --ac-flicker: 0.091;
+
+ /* Long enough that the next ON edge lands before this one has
+ drained: the alarm throbs rather than chops. */
+ --ac-blink-anim: ac-blink-decay-long;
+
+ /* The decay curve itself, sampled from the Becquerel power law I0/(1+t/t0)^1.6.
+ A shape no single cubic-bezier expresses, which is why it is a linear(). */
+ --ac-decay-ease: linear(0, 0.118 0.5%, 0.197 0.9%, 0.313 1.6%, 0.465 2.9%, 0.632 5.3%, 0.781 9.5%, 0.889 17%, 0.953 31%, 0.985 56%, 1.000 100%);
+}
+
+/* Aliases and structural tokens — defined once per PALETTE SCOPE, for every
+ palette. Anything that is the same shape regardless of which gas is in the
+ panel belongs here; anything that is a color belongs in a palette block above.
+
+ THE SELECTOR LIST IS NOT DECORATION, AND `:root` ALONE WAS A FOOTGUN. These
+ are indirections — `--ac-ink: var(--ac-emit-90)` — and a var() is substituted
+ AT THE ELEMENT THAT DECLARES IT, then inherits as a resolved color. Declared
+ only on :root, they resolve once against whatever palette the ROOT carries and
+ every descendant inherits that answer.
+ So a consumer following the embed guidance in base/reset-scoped.css, who puts
+ data-ac-tech / data-ac-emitter on .ac-root rather than on , changed the
+ five --ac-emit-* stops on that subtree and nothing else: --ac-ink, --ac-fill
+ and --ac-stroke stayed resolved from :root's neon. Half a palette, silently —
+ the surfaces moved and the text did not.
+ .ac-root IS THE WHOLE FIX, AND THE ATTRIBUTE SELECTORS ARE DELIBERATELY NOT
+ HERE. `[data-ac-tech][data-ac-emitter]` would cover every element that can
+ carry a palette — and would weigh (0,2,0), which beats a consumer's own
+ `:root { --ac-ink: … }` at (0,1,0) and silently breaks the one override the
+ REFERENCE chapter tells people they may write. .ac-root weighs the same
+ (0,1,0) as :root and wins for its subtree by PROXIMITY rather than by weight,
+ which is exactly the behaviour wanted: closer scope, same authority.
+ base/print.css carries .ac-root in its own re-point list for the same reason —
+ drop it there and a scoped embed prints in amber. */
+:root,
+.ac-root {
+ --ac-ink: var(--ac-emit-90);
+ --ac-ink-bright: var(--ac-emit-100);
+ --ac-ink-dim: var(--ac-emit-70);
+ --ac-ink-faint: var(--ac-emit-50);
+ --ac-ink-trace: var(--ac-emit-30);
/* Inverse video (solid discharge block, dark text) */
- --fill: var(--amber-90);
- --fill-bright: var(--amber-100);
+ --ac-fill: var(--ac-emit-90);
+ --ac-fill-bright: var(--ac-emit-100);
- --stroke: var(--amber-90);
- --stroke-dim: var(--amber-50);
+ --ac-stroke: var(--ac-emit-90);
+ --ac-stroke-dim: var(--ac-emit-50);
/* No red, no green. Alarm/danger = inverse video + blink, never a new hue. */
}
diff --git a/src/tokens/effects.css b/src/tokens/effects.css
index 3ca48c2..50a2921 100644
--- a/src/tokens/effects.css
+++ b/src/tokens/effects.css
@@ -1,580 +1,187 @@
:root {
- /* The halo is the same photons the cell emits, scattered in the glass, so it
- tracks the discharge hue exactly. NOTHING in this file names a colour: every
- rgba() is built from the --gas-N triples in tokens/colors.css, which is what
- makes `data-ac-gas` switch the panel and its glow together. Hardcode one and
- it will keep an amber corona around neon text, which is the one place the
- mismatch is legible side by side. */
- --glow-text: 0 0 2px rgba(var(--gas-1), 0.6), 0 0 9px rgba(var(--gas-2), 0.26), 0 0 24px rgba(var(--gas-3), 0.1);
- --glow-box: 0 0 8px rgba(var(--gas-1), 0.32), inset 0 0 10px rgba(var(--gas-1), 0.07);
-
- /* Plasma decay. A gas gap that stops being driven does not go dark on the next
- refresh — it relaxes: the discharge leaves excited and metastable neon behind,
- and that keeps emitting while it recombines. No phosphor is involved; see
- law 1 in the system guide. The curve is the shape of that relaxation: most of the
- light is gone in the first third, then a long dim tail. Override to retune
- the panel; --ac-decay-fast is for text that is rewritten continuously (a
- clock, a frame counter) where the full tail would smear into the next value.
-
- These are deliberately near the floor of what registers as a decay at all:
- much under ~80ms and the eye stops reading a relaxation and starts reading a
- switch. That is the intended side of the line to be on — the effect should
- be felt rather than seen. */
- --ac-decay: 105ms;
- --ac-decay-fast: 60ms;
+ /* NOTHING IN THIS FILE NAMES A COLOR. Every rgba() is built from the --ac-halo-N
+ triples in tokens/colors.css, which is what makes the display switch the
+ panel and its glow together. Hardcode one and it keeps an amber corona
+ around neon text. (On P7 the halo is a DIFFERENT spectrum from the ink, and
+ that is correct rather than a bug — RATIONALE.md § P7.)
+
+ The wide layers scale by --ac-halo-scatter / --ac-halo-spread, per palette, both
+ falling back to 1. THE 2px LAYER IS NOT SCALED: it is the glyph's own lit
+ edge, not scattered light. RADIUS NEVER SCALES WITH DRIVE — only alpha.
+
+ THE DRIVE TIERS ARE ARITHMETIC, NOT TASTE. Each stop's luminance is already
+ fixed by the contrast ratio it was solved to, so the ratios fall out:
+
+ --ac-ink, --ac-stroke emit-90 7.00:1 drive 1.00
+ --ac-ink-dim emit-70 5.20:1 drive 0.70
+ --ac-ink-faint, -dim emit-50 3.40:1 drive 0.41
+ --ac-ink-trace emit-30 1.63:1 drive 0.11 -> none
+
+ THE TOKEN FAMILIES DO NOT LINE UP and the names actively mislead:
+ --ac-ink-dim is emit-70 but --ac-stroke-dim is emit-50. The tier is chosen by
+ DRIVE LEVEL, never by whether the token has "dim" in it.
+
+ EACH TIER IS ITS OWN FULLY-RESOLVED TOKEN rather than one --ac-drive
+ multiplier, and that is not a stylistic choice — the multiplier version
+ fails SILENTLY. Before rebuilding it that way, read RATIONALE.md § Why the
+ tiers are three tokens and not one multiplier. The derivation behind the
+ table, and why the box tier is separate, are in the same section. */
+ --ac-drive-dim: 0.7;
+ --ac-drive-faint: 0.41;
+
+ --ac-glow-text:
+ 0 0 2px rgba(var(--ac-halo-1), 0.6),
+ 0 0 calc(9px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-2), calc(0.26 * var(--ac-halo-scatter, 1))),
+ 0 0 calc(24px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.1 * var(--ac-halo-scatter, 1)));
+ --ac-glow-text-dim:
+ 0 0 2px rgba(var(--ac-halo-1), calc(0.6 * var(--ac-drive-dim))),
+ 0 0 calc(9px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-2), calc(0.26 * var(--ac-halo-scatter, 1) * var(--ac-drive-dim))),
+ 0 0 calc(24px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.1 * var(--ac-halo-scatter, 1) * var(--ac-drive-dim)));
+ --ac-glow-text-faint:
+ 0 0 2px rgba(var(--ac-halo-1), calc(0.6 * var(--ac-drive-faint))),
+ 0 0 calc(9px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-2), calc(0.26 * var(--ac-halo-scatter, 1) * var(--ac-drive-faint))),
+ 0 0 calc(24px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-3), calc(0.1 * var(--ac-halo-scatter, 1) * var(--ac-drive-faint)));
+
+ --ac-glow-box:
+ 0 0 calc(8px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-1), calc(0.32 * var(--ac-halo-scatter, 1))),
+ inset 0 0 10px rgba(var(--ac-halo-1), 0.07);
+ --ac-glow-box-dim:
+ 0 0 calc(8px * var(--ac-halo-spread, 1)) rgba(var(--ac-halo-1), calc(0.32 * var(--ac-halo-scatter, 1) * var(--ac-drive-faint))),
+ inset 0 0 10px rgba(var(--ac-halo-1), calc(0.07 * var(--ac-drive-faint)));
+
+ /* THE EXTRUDED KEY EDGE — the one shadow here that is NOT a halo, so it takes
+ neither --ac-halo-spread nor --ac-halo-scatter: those describe light scattering
+ through glass, and this is geometry. It stays the same size when the palette
+ changes, while its color still follows --ac-halo-1.
+
+ TWO LAYERS BECAUSE IT IS AN EDGE, NOT A GHOST: a bright 2px lip against the
+ stroke, then 3px more at lower drive falling away from it. The alphas are
+ set against the bloom rather than the screen — see RATIONALE.md § The
+ extruded key edge.
+
+ Consumed by components/classic.css and nothing else. Override to blunt or
+ kill the extrusion wholesale; print does exactly that. */
+ --ac-edge-3d:
+ 2px 2px 0 rgba(var(--ac-halo-1), 0.92),
+ 5px 5px 0 rgba(var(--ac-halo-1), 0.6);
+
+ /* A KEY PRESSED IN, AND IT IS A RECESS RATHER THAN A SECOND BAND.
+
+ This used to mirror --ac-edge-3d: the same bright discharge-colored band,
+ moved to the top-left. Geometrically that was the sunken key's near wall and
+ it was self-consistent — and it read wrong in both directions:
+
+ Same-hue palettes a pressed key is INVERSE VIDEO, so its fill is already
+ the discharge color. A band in that same color beside
+ that same fill is invisible: on neon a latched .ac-btn
+ --filled showed no 3D at all, which is the "some
+ buttons have no shadow" report.
+ P7 halo and ink are different spectra there, so the band
+ did show — as a green outline around a blue block.
+ That reads as a highlight, not a recess: "inverted
+ instead of depressed".
+
+ A bright band cannot mean two opposite things. Raised is the only state that
+ gets one, so the two can never be confused: PROUD = a lit face outside the
+ box, PRESSED = a shadow inside it.
+
+ INSET, so it paints over the fill rather than beside it, and the fill is
+ always bright when this token is used — :active, --filled and aria-pressed
+ all set inverse video. Positive offsets on an inset shadow paint the TOP and
+ LEFT inner edges, which is where a recess shades.
+
+ BLACK ALPHA RATHER THAN A PALETTE COLOR, on the same reasoning the cell mesh
+ uses: over a lit fill it darkens, and over a dark surface it has nothing to
+ take away. That makes it correct on all eleven palettes without naming one.
+
+ A SHADOW RATHER THAN A TRANSFORM, and that is still load-bearing:
+ `translate` DOES contribute to scrollable overflow, so every latched key
+ flush against its container pushed 4px past it.
+ See RATIONALE.md § The extruded key edge. */
+ --ac-edge-3d-in:
+ inset 2px 2px 0 rgba(0, 0, 0, 0.34),
+ inset 5px 5px 0 rgba(0, 0, 0, 0.18);
+
+ /* PERSISTENCE IS A PROPERTY OF THE EMITTER, not of this file. A palette that
+ knows its own decay declares --ac-persist, --ac-flicker and a sampled
+ --ac-decay-ease in tokens/colors.css; the tokens below are derived from it.
+ This block is the fallback for every palette that declares nothing — all
+ four gases — so they render unchanged at 105ms / 60ms.
+
+ THE CAP IS THE WHOLE POINT OF min(), and it is a usability decision made
+ against the physics on purpose: P7's tail is 3000ms, and a dialog painted
+ for three seconds after it closes is a bug that can cite a source.
+
+ --ac-decay things that must actually LEAVE — [hidden], a closing
+ dialog. Capped at 250ms.
+ --ac-decay-fast de-energizing controls and hover release. Capped at
+ 60ms — this fires on every control the pointer crosses.
+ --ac-persist-tail ghosts and residual patches. NOT capped; pure
+ decoration, and where the long phosphors earn their keep.
+
+ See RATIONALE.md § The persistence caps. */
+ --ac-persist: 105ms;
+ --ac-decay: min(var(--ac-persist), 250ms);
+ --ac-decay-fast: min(var(--ac-persist), 60ms);
+ --ac-persist-tail: var(--ac-persist);
--ac-decay-ease: cubic-bezier(0.1, 0.72, 0.22, 1);
+ /* HOW MUCH OF THE IMAGE IS GONE BY THE NEXT REFRESH, 0..1 — the other half of
+ --ac-persist and not an independent knob. A palette that declares one
+ declares both, from one decay constant, in scripts/derive-gas.mjs.
+ 1 is the default and means "no palette said", which resolves the flicker
+ amplitude below to exactly the value it had before persistence existed. */
+ --ac-flicker: 1;
+
/* The cell matrix. A plasma panel is not a lit surface, it is a grid of gas
gaps at wire intersections, and the barrier ribs between them do not emit.
--ac-mesh-pitch is the cell spacing; --ac-mesh-wire is the per-axis alpha of
one rib.
- THE ALPHA IS A BUDGET, NOT A TASTE SETTING. Two crossed 1px wires on a pitch
- p lose a mean 1 - (1 - a/3)^2 of everything under them, and 0.075 is the
- value that lands that at 0.050 — exactly the mean loss of the CRT scanlines
- it sits beside, so turning plasma on costs the same legibility the tube
- already does. Crossings land at 0.144, near enough to double, which is what
- makes an intersection read as an intersection.
-
- scripts/contrast.mjs computes from colors.css and cannot see an overlay, so
- nothing will fail if this is raised. Redo the arithmetic first. */
+ THE ALPHA IS A BUDGET, NOT A TASTE SETTING. 0.075 lands the mean loss at
+ 0.050 — exactly what the CRT scanlines beside it cost, so turning plasma on
+ costs the same legibility the tube already does. scripts/contrast.mjs cannot
+ see an overlay, so nothing will fail if this is raised: redo the arithmetic
+ first, in RATIONALE.md § The cell matrix alpha is a budget. */
--ac-mesh-pitch: 3px;
--ac-mesh-wire: 0.075;
-}
-
-/* Hard on/off blink — no fades on a plasma panel */
-@keyframes ac-blink { 0%, 54% { opacity: 1; } 55%, 100% { opacity: 0.1; } }
-.ac-blink { animation: ac-blink 1.1s steps(1) infinite; }
-
-/* Block cursor */
-.ac-cursor::after { content: "█"; margin-left: 2px; animation: ac-blink 1s steps(1) infinite; }
-
-/* ---------------------------------------------------------------------------
- Three independent screen simulations, all applied to the outermost frame:
-
- .ac-bloom PLASMA — the panel itself. Amplifies the glow tokens for every
- descendant, lays a soft bleed layer over it, and rules it into
- the cell matrix the gas actually sits in.
- .ac-crt CRT — the tube itself: scanline texture, vignette, slow line
- drift, retrace sweep, faint mains flicker.
- .ac-afterglow PERSISTENCE — the panel does not go dark instantly. Anything
- that disappears decays, live text leaves a ghost of the value
- it just replaced, the glass holds faint uneven patches, and the
- image smears while you scroll.
-
- Three classes, but the demos drive them from two switches: .ac-afterglow rides
- with .ac-crt, because persistence is a property of the same glass the
- scanlines are on. Each still works alone if you wire it yourself. All stop
- under prefers-reduced-motion.
-
- THE STACK. Every overlay is absolutely positioned to the frame, so the order
- they paint in is the whole design. It has to be stated in one place, because
- a sticky bar carrying its own z-index will otherwise punch straight through
- the simulations and sit on top of them — which is exactly what .ac-nav--sticky
- (z-index 20) used to do:
-
- 1 frame content
- 20 sticky chrome — .ac-nav--sticky, and anything else that outranks content
- 40 .ac-bloom::before plasma bleed
- 45 .ac-retrace CRT retrace band
- 45 .ac-persist afterglow ghosts and residual patches
- 48 .ac-mesh plasma cell mesh
- 50 .ac-crt::after scanlines and vignette
-
- Everything from 40 up is above the sticky bar on purpose: a screen simulation
- that stops at the edge of the menu bar is not simulating a screen.
- --------------------------------------------------------------------------- */
-
-/* Static scanline texture only (no motion) — for print, thumbnails, cards */
-.ac-scanlines { position: relative; }
-.ac-scanlines::after {
- content: "";
- position: absolute; inset: 0; z-index: 6;
- pointer-events: none;
- background: repeating-linear-gradient(0deg, rgba(0,0,0,0.17) 0 1px, transparent 1px 3px);
-}
-
-/* --- PLASMA --- */
-.ac-bloom {
- position: relative;
- --glow-text: 0 0 2px rgba(var(--gas-4), 0.75), 0 0 9px rgba(var(--gas-2), 0.4), 0 0 26px rgba(var(--gas-3), 0.2), 0 0 56px rgba(var(--gas-3), 0.1);
- --glow-box: 0 0 11px rgba(var(--gas-1), 0.4), 0 0 34px rgba(var(--gas-2), 0.16), inset 0 0 14px rgba(var(--gas-1), 0.1);
-}
-.ac-bloom::before {
- content: "";
- position: absolute; inset: 0; z-index: 40;
- pointer-events: none;
- backdrop-filter: blur(3.5px) brightness(1.22) saturate(1.08);
- -webkit-backdrop-filter: blur(3.5px) brightness(1.22) saturate(1.08);
- mix-blend-mode: screen;
- opacity: 0.34;
- mask-image: radial-gradient(125% 125% at 50% 48%, #000 50%, rgba(0,0,0,0.4) 100%);
- -webkit-mask-image: radial-gradient(125% 125% at 50% 48%, #000 50%, rgba(0,0,0,0.4) 100%);
- animation: ac-bloom-breathe 9s ease-in-out infinite;
-}
-/* Mains-hum breathing — barely perceptible, just enough to feel alive */
-@keyframes ac-bloom-breathe {
- 0%, 100% { opacity: 0.31; }
- 50% { opacity: 0.37; }
-}
-
-/* THE SCREEN DOOR.
-
- The one structural fact about this hardware, and the thing that most clearly
- is not a CRT. A cell lights at the intersection of a row wire and a column
- wire, boxed in on four sides by barrier ribs that carry no discharge and emit
- nothing. So a lit pixel is a neon dot trapped in a square aperture, and a
- crossed mesh — not a stack of horizontal lines — is what you see when you put
- your eye close to the glass. The dark horizontal blanking gaps between raster
- lines belong to .ac-crt and to the tube it simulates; there is no scan here,
- so there is nothing to blank.
-
- The ribs are pure black rather than tinted, and that is the whole trick: over
- the unlit panel (--screen is a near-black under either gas) black alpha has
- nothing to take away and
- the mesh is simply not there, while over lit amber it occludes. The grid
- appears only where the panel is lit, which is exactly the behaviour of a real
- screen door and costs nothing to get.
-
- z-index 48 puts it ABOVE the bleed, which is upside down physically — the ribs
- sit behind the front glass, so the bleed ought to soften them. It is worth the
- inaccuracy. .ac-bloom::before is a viewport-sized backdrop-filter, this layer
- jitters ~24 times a second (below), and anything inside that filter's backdrop
- drags a full-screen re-blur along on every one of those frames. Today that
- happens once per 9s breathe. Above the bleed the mesh is compositor-only,
- costs nothing, and stays sharp — which is what it is for.
-
- A CHILD NODE, not .ac-bloom::after, and the reason is worth stating because
- ::after looks free and is not. .ac-bloom and .ac-crt are both classes on the
- SAME frame, an element has exactly one ::after, and .ac-crt::after — equal
- specificity, later in this file — already owns it for the scanlines. A mesh
- declared there is silently replaced the moment both simulations are on, which
- is the default. Same contract as .ac-retrace and .ac-persist instead: one span,
- mounted and removed with the switch by amber-console.js. */
-.ac-bloom > .ac-mesh {
- position: absolute; inset: 0; z-index: 48;
- pointer-events: none;
- background:
- repeating-linear-gradient(0deg, rgba(0,0,0,var(--ac-mesh-wire)) 0 1px, transparent 1px var(--ac-mesh-pitch)),
- repeating-linear-gradient(90deg, rgba(0,0,0,var(--ac-mesh-wire)) 0 1px, transparent 1px var(--ac-mesh-pitch));
- animation:
- ac-mesh-buzz 0.29s steps(1, end) infinite,
- ac-mesh-hum 0.37s ease-in-out infinite;
-}
-
-/* THE PLASMA SHIMMER.
-
- The sustain voltage is AC, so the gas is never held — it is struck, and struck
- again, tens of thousands of times a second. None of that is visible directly;
- what is visible is the residue, a microscopic buzz in the cells that reads as
- the panel being energized rather than merely bright.
-
- Two animations because it is two phenomena, and DETUNED because that is the
- only thing standing between a buzz and a pulse. 0.29 and 0.37 are coprime, so
- the pair does not repeat for 10.7s, and neither divides into ac-crt-hum (5.5s),
- ac-bloom-breathe (9s), ac-crt-drift (11s) or ac-retrace (13s). Retune them and
- all four of those relationships have to survive, or the whole panel finds a
- beat and starts throbbing.
-
- Both rest at their zero frame — translate 0, opacity 1. The screenshot harness
- freezes animation, so whatever sits at 0% is what gets baselined. */
-
-/* Sub-pixel vibration of the mesh itself. steps(1, end) so each position is held
- and then jumped, never interpolated: a wire that eases between two places is a
- wobble, and a wobble is a much bigger, much worse effect than this one. The
- 0.35px ceiling is what keeps the wires reading as sharp — past about half a
- pixel the resampling turns the mesh grey and the screen door is gone. */
-@keyframes ac-mesh-buzz {
- 0% { transform: translate3d(0, 0, 0); }
- 14% { transform: translate3d(0.28px, -0.16px, 0); }
- 28% { transform: translate3d(-0.19px, 0.31px, 0); }
- 43% { transform: translate3d(0.33px, 0.22px, 0); }
- 57% { transform: translate3d(-0.3px, -0.27px, 0); }
- 71% { transform: translate3d(0.15px, 0.34px, 0); }
- 86% { transform: translate3d(-0.34px, 0.11px, 0); }
- 100% { transform: translate3d(0, 0, 0); }
-}
-/* …and the discharge itself is not perfectly even. A 1.8% swing on a layer whose
- own mean darkening is 5% moves panel luminance by about 0.09%, three orders
- below the WCAG 2.3.1 general flash threshold (>3/sec at >=10% relative
- luminance over >25% of the field). That is a ceiling, not a starting point. */
-@keyframes ac-mesh-hum {
- 0%, 100% { opacity: 1; }
- 23% { opacity: 0.988; }
- 47% { opacity: 1; }
- 61% { opacity: 0.982; }
- 79% { opacity: 0.994; }
-}
-
-/* --- CRT --- */
-.ac-crt { position: relative; }
-/* Scanline texture + vignette, drifting one cell every 11s */
-.ac-crt::after {
- content: "";
- position: absolute; inset: 0; z-index: 50;
- pointer-events: none;
- background:
- radial-gradient(135% 125% at 50% 50%, transparent 58%, rgba(0,0,0,0.34) 100%),
- repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0 1px, transparent 1px 3px);
- animation: ac-crt-drift 11s linear infinite, ac-crt-hum 5.5s ease-in-out infinite;
-}
-@keyframes ac-crt-drift {
- from { background-position: 0 0, 0 0; }
- to { background-position: 0 0, 0 -3px; }
-}
-/* Mains flicker: ±2% brightness, plus one shallow single-frame dip per cycle */
-@keyframes ac-crt-hum {
- 0%, 100% { opacity: 1; }
- 31% { opacity: 0.965; }
- 32% { opacity: 1.0; }
- 68% { opacity: 0.985; }
-}
-/* Vertical retrace band — a slow, almost invisible lightening sweep */
-.ac-crt > .ac-retrace {
- position: absolute; left: 0; right: 0; top: 0; height: 26%;
- z-index: 45; pointer-events: none; mix-blend-mode: screen; opacity: 0.32;
- background: linear-gradient(180deg, transparent 0%, rgba(var(--gas-1), 0.028) 50%, rgba(var(--gas-4), 0.05) 66%, transparent 100%);
- animation: ac-retrace 13s linear infinite;
-}
-@keyframes ac-retrace {
- 0% { transform: translateY(-110%); }
- 100% { transform: translateY(500%); }
-}
-/* --- PLASMA AFTERGLOW ---
-
- Three things, because "persistence" is three different phenomena and only one
- of them is expressible without JavaScript:
-
- 1. DECAY-OUT. Anything that disappears relaxes instead of switching off.
- Pure CSS, below. This is the one that carries the effect on its own.
- 2. GHOSTING. Text that is rewritten leaves the previous value behind for a
- beat. Needs the old value, which only JS has — amber-console.js mounts
- those into .ac-persist. The effect degrades to (1) and (3) without it.
- 3. RESIDUAL PATCHES. The glass never sits perfectly uniform; charge relaxes
- unevenly and slowly. Pure CSS, on .ac-persist::before.
-
- Note the direction: this decays OUT and never in. Nothing here fades a thing
- into existence. A cell lights on the next refresh — instantly — and it is only
- the switching OFF that hardware cannot do sharply. That asymmetry is the whole
- reason this file may hold a `transition` at all while src/components/ may not;
- see the header of stylelint.config.mjs. */
-.ac-afterglow { position: relative; }
-
-/* (1) DECAY-OUT.
-
- The transition lives on the DESTINATION state, which is the whole trick:
- transition properties are read from the after-change style, so declaring them
- only on the hidden half means hiding decays and showing snaps back instantly.
-
- `display` is transitioned with allow-discrete so `display: none` is deferred
- to the end of the decay rather than cutting it off on the first frame. The
- blur is the gap losing definition as it drains — a discharge dies soft, not
- sharp. */
-.ac-afterglow [hidden],
-.ac-afterglow dialog:not([open]) {
- opacity: 0;
- filter: blur(0.4px) brightness(1.16);
- transition:
- opacity var(--ac-decay) var(--ac-decay-ease),
- filter var(--ac-decay) var(--ac-decay-ease),
- display var(--ac-decay) allow-discrete,
- overlay var(--ac-decay) allow-discrete;
-}
-/* (2) + (3) The persistence layer. One child element hosts all of it, so a frame
- needs exactly one extra node — same contract as .ac-crt and .ac-retrace.
-
- `screen` is the physically right blend: emitted light adds, it never
- occludes, so a ghost can only ever brighten what is under it. Note it is set
- on each child rather than on this element, and that is not a style choice —
- mix-blend-mode makes an element a BACKDROP ROOT, and a backdrop root resets
- what `backdrop-filter` inside it can see. Put the blend here and the scroll
- smear below samples an empty backdrop and silently does nothing. */
-.ac-afterglow > .ac-persist {
- position: absolute; inset: 0;
- z-index: 45;
- pointer-events: none;
- overflow: hidden;
+ /* Blink, as an inherited pair rather than a selector list. base/blink.css
+ holds the keyframe, the sites that read these, and the full contract. */
+ --ac-blink-name: ac-blink;
+ --ac-blink-ease: steps(1);
}
-/* (3) RESIDUAL PATCHES — four slow, overlapping pools of charge that never
- quite line up, so the panel is never evenly lit. At 3% over the amber this is
- below the threshold of noticing directly; you only see it when it stops.
-
- The drift is background-position over an oversized background rather than a
- transform on an oversized box, deliberately: a box larger than its parent adds
- scrollable overflow, and the frame is exactly where a stray 288px of it would
- go unnoticed. A background cannot overflow anything. */
-.ac-afterglow > .ac-persist::before {
- content: "";
- position: absolute; inset: 0;
- background:
- radial-gradient(38% 30% at 22% 28%, rgba(var(--gas-1), 0.032), transparent 70%),
- radial-gradient(46% 34% at 78% 62%, rgba(var(--gas-2), 0.026), transparent 72%),
- radial-gradient(30% 44% at 58% 12%, rgba(var(--gas-4), 0.022), transparent 68%),
- radial-gradient(52% 40% at 34% 84%, rgba(var(--gas-3), 0.028), transparent 74%);
- background-size: 150% 150%;
- background-repeat: no-repeat;
- mix-blend-mode: screen;
- animation: ac-persist-drift 47s ease-in-out infinite;
-}
-@keyframes ac-persist-drift {
- 0%, 100% { background-position: 22% 34%; opacity: 0.85; }
- 33% { background-position: 36% 20%; opacity: 1; }
- 66% { background-position: 14% 46%; opacity: 0.9; }
-}
+/* ---------------------------------------------------------------------------
+ THE HALO IS INHERITED, NOT REQUESTED.
-/* (4) THE BLINK OFF-EDGE.
-
- A blinking alarm is the most visible thing on the panel that stops being
- driven, over and over, once a second — so it is the last place the decay
- should be missing. .ac-blink is steps(1) by default and snaps both ways; with
- persistence on, only the ON edge stays hard. A cell lights on the next
- refresh and then relaxes, so: instant up, curve down.
-
- Swapping animation-NAME rather than the shorthand is what lets one rule cover
- every blink site — the cursor runs a 1s cycle and the rest run 1.1s, and each
- keeps its own duration. Keyframe stops cannot read a custom property, so the
- window below is a percentage of whatever cycle it lands in rather than a
- duration: 54%->62% is ~88ms at 1.1s and ~80ms on the cursor's 1s. Retuning
- --ac-decay does not move it; the stops themselves are the only handle. */
-.ac-afterglow .ac-blink,
-.ac-afterglow .ac-cursor::after,
-.ac-afterglow .ac-field--invalid .ac-input,
-.ac-afterglow .ac-input[aria-invalid="true"],
-.ac-afterglow .ac-meter--alarm .ac-meter__bar {
- animation-name: ac-blink-decay;
- animation-timing-function: linear;
-}
-/* The stops are spread wider than a literal decay curve would be. A true
- exponential loses most of its light in the first ~80ms, which is close enough
- to the flicker-fusion threshold that the eye files it as a hard switch — the
- decay measures correctly and still looks instant. This holds, then drains over
- the 54%->62% window — ~88ms of the 1.1s cycle — which sits right at the
- threshold described above: the alarm still reads as a hard blink, with the edge
- taken off it rather than a visible fade. The opacity ramp carries it;
- the blur only stops the edge staying razor-sharp on the way down. The ON edge
- is still a single-frame snap. */
-@keyframes ac-blink-decay {
- 0%, 54% { opacity: 1; filter: blur(0); }
- 56% { opacity: 0.72; filter: blur(0.08px); }
- 58% { opacity: 0.48; filter: blur(0.16px); }
- 60% { opacity: 0.30; filter: blur(0.22px); }
- 61% { opacity: 0.17; filter: blur(0.27px); }
- 62%, 100% { opacity: 0.1; filter: blur(0.3px); }
-}
+ The glow is light scattered in the glass, and the glass has no idea which
+ component a lit cell belongs to. So it is applied ONCE here and inherits to
+ every descendant, rather than being opted into per component.
-/* (5) DE-ENERGIZING — a lit cell that goes unlit.
-
- The single most common light-off event on a control panel is not a node
- disappearing, it is a lamp going out: a pressed button releasing, a tab
- deselecting, an interlock unchecking. Those elements never hide, so the
- decay-out rule above never saw them, and they were snapping off in one frame
- while everything around them relaxed.
-
- Same mechanism as decay-out, same direction rule: the transition is declared
- on the UNLIT state, so de-energizing decays and energizing is instant.
-
- On --ac-decay-fast rather than --ac-decay, and that is the difference between
- subtle and distracting. Hover lands here too — moving off a control is a
- de-energization — which means this fires on every control the pointer crosses,
- not just on the ones you press. At the full decay a sweep across a dense panel
- leaves a wake behind the cursor. At the fast one it reads as the glow simply
- taking a moment to let go.
-
- These live here rather than in the component files on purpose: components stay
- free of `transition`, which is what scripts/check-prohibitions.mjs enforces. */
-.ac-afterglow .ac-btn,
-.ac-afterglow .ac-tab,
-.ac-afterglow .ac-nav__link,
-.ac-afterglow .ac-badge,
-.ac-afterglow .ac-banner,
-.ac-afterglow .ac-check input,
-.ac-afterglow .ac-radio input,
-.ac-afterglow .ac-toggle__track,
-.ac-afterglow .ac-toggle__thumb,
-.ac-afterglow .ac-table__row--active td {
- transition:
- background-color var(--ac-decay-fast) var(--ac-decay-ease),
- border-color var(--ac-decay-fast) var(--ac-decay-ease),
- color var(--ac-decay-fast) var(--ac-decay-ease),
- box-shadow var(--ac-decay-fast) var(--ac-decay-ease),
- text-shadow var(--ac-decay-fast) var(--ac-decay-ease);
-}
+ That direction matters more than it looks: when glow was opt-in, thirty-four
+ elements were still rendering flat because nobody remembered to ask.
+ Inheriting inverts the failure — a new component glows because it is lit.
+ See RATIONALE.md § The halo is inherited, not requested.
-/* Lighting up is instant — a cell energizes on the next refresh. Declared on the
- lit half so it wins only in that direction. */
-.ac-afterglow .ac-btn--filled,
-.ac-afterglow .ac-btn[aria-pressed="true"],
-.ac-afterglow .ac-btn:hover,
-.ac-afterglow .ac-tab--active,
-.ac-afterglow .ac-tab[aria-selected="true"],
-.ac-afterglow .ac-tab:hover,
-.ac-afterglow .ac-nav__link[aria-current="page"],
-.ac-afterglow .ac-nav__link:hover,
-.ac-afterglow .ac-badge--filled,
-.ac-afterglow .ac-banner--filled,
-.ac-afterglow .ac-check input:checked,
-.ac-afterglow .ac-radio input:checked,
-.ac-afterglow .ac-toggle--on .ac-toggle__thumb,
-.ac-afterglow .ac-toggle[aria-pressed="true"] .ac-toggle__thumb {
- transition: none;
-}
+ WHAT MUST THEN SUPPRESS IT, and why it is a short list rather than a long one:
-/* (6) SCROLL SMEAR.
-
- Scrolling is the largest light-off event there is: every cell on the panel is
- handed a new value at once. Real gas cannot keep up, and the image
- trails.
-
- This is a blurred, additive copy of the backdrop, faded in with scroll speed
- and drained when the scroll stops — amber-console.js drives --ac-smear from
- the actual per-frame delta. Two details are load-bearing: it is `fixed`, so
- the cost is one viewport rather than one document (the guide page is 15,000px
- tall), and it filters the BACKDROP rather than blurring the content itself,
- so the text you are reading stays sharp while its afterimage does not. */
-/* The image itself loses focus. This is the part you actually see, and it has to
- be a filter on the CONTENT — an additive copy of the backdrop cannot do it, no
- matter how hard it is blurred, because `screen` leaves the live text perfectly
- sharp underneath and you get a halo instead of a smear. Displacing that copy
- does not rescue it either: a filtered backdrop is sampled in the element's own
- transformed space, so translating the layer slides the window over the
- backdrop rather than moving the image.
-
- Only the frame's real children are filtered, never the overlay nodes. The
- scanline mask, the vignette and the cell mesh are the glass, not the image —
- the glass does not go out of focus when the picture moves. */
-.ac-afterglow[data-ac-scrolling] > *:not(.ac-persist, .ac-retrace, .ac-mesh) {
- filter: blur(calc(var(--ac-smear, 0) * 0.9px));
-}
+ --ac-ink-dim / --ac-ink-faint glow is the signal of energization, so a disabled
+ control that glows is a lie about the hardware.
+ inverse video dark text on a lit block is the UNLIT part of the
+ block. Unlit cells do not scatter.
-/* …and the panel blooms while it cannot keep up: a blurred, additive copy of
- the backdrop, fixed to the viewport so the cost is one screen rather than one
- document — the guide page is 15,000px tall. */
-.ac-afterglow > .ac-persist::after {
- content: "";
- position: fixed; inset: 0;
- pointer-events: none;
- opacity: calc(var(--ac-smear, 0) * 0.32);
- mix-blend-mode: screen;
- backdrop-filter: blur(calc(var(--ac-smear, 0) * 4px)) brightness(1.12);
- -webkit-backdrop-filter: blur(calc(var(--ac-smear, 0) * 4px)) brightness(1.12);
-}
-/* Nothing to composite when still — and a permanently live backdrop-filter over
- the viewport is exactly the kind of thing that costs a frame budget for free.
- The attribute is set by amber-console.js only while the smear is above zero. */
-.ac-afterglow:not([data-ac-scrolling]) > .ac-persist::after { display: none; }
-
-/* (2) GHOSTS — a copy of what was just there, parked at the rect it occupied
- and left to drain. Mounted and removed by amber-console.js; nothing in the
- DOM when the effect is off or the module is absent. */
-.ac-afterglow .ac-ghost {
- position: absolute;
- margin: 0;
- pointer-events: none;
- mix-blend-mode: screen;
- /* Invisible until the animation drives it. A ghost is only ever legible mid-
- decay, so if animations are off — a screenshot harness, a print, a browser
- that never ran the keyframes — the right thing to show is nothing at all,
- not an opaque duplicate of live text sitting on top of it. */
- opacity: 0;
- animation: ac-ghost-decay var(--ac-decay) var(--ac-decay-ease) forwards;
-}
-.ac-afterglow .ac-ghost--fast { animation-duration: var(--ac-decay-fast); }
-@keyframes ac-ghost-decay {
- from { opacity: 0.38; filter: blur(0); }
- to { opacity: 0; filter: blur(0.8px); }
-}
+ Both are enumerable, and scripts/check-prohibitions.mjs enforces the first —
+ a rule that sets dim or faint ink without switching the halo off fails the
+ build, because that is the half of this that drifts.
-.ac-bloom > *, .ac-crt > *, .ac-afterglow > * { position: relative; z-index: 1; }
-.ac-crt > .ac-retrace, .ac-bloom > .ac-retrace { z-index: 45; }
-.ac-bloom > .ac-mesh, .ac-crt > .ac-mesh { z-index: 48; }
-
-/* --- THE GLASS IS THE VIEWPORT, NOT THE DOCUMENT ---
-
- Every overlay above is positioned against the frame, and on a full-screen
- frame the frame is the whole document — 15,105px on the system guide. That is
- wrong twice over.
-
- Physically: the bleed, the scanline mask, the vignette and the retrace are all
- properties of the glass. Glass does not scroll. A vignette anchored to the
- document darkens the top and bottom of the PAGE instead of the edges of the
- SCREEN, which is not an effect any hardware has.
-
- Practically: it banded. A backdrop-filter stretched over a document-height
- layer is rasterised in tiles, and the tile seams show up as static horizontal
- and vertical steps across the background — the bars this fixes. The enormous
- mask and vignette gradients quantise into visible steps for the same reason,
- 8-bit alpha spread over thousands of pixels.
-
- Anchoring to the viewport fixes the look, the physics and the cost — the
- backdrop-filter now covers one screen instead of one document.
-
- Scoped to .ac-screen on purpose: .ac-bloom and .ac-crt also go on small tiles
- (the guide documents itself with them), and those must stay local to the tile.
- .ac-persist itself stays document-absolute — ghosts are pinned to the rect
- their source occupied, which is a document coordinate. */
-.ac-screen.ac-bloom::before,
-.ac-screen.ac-crt::after,
-.ac-screen.ac-afterglow > .ac-persist::before {
- position: fixed;
- inset: 0;
-}
-.ac-screen.ac-crt > .ac-retrace {
- position: fixed;
-}
-.ac-screen.ac-bloom > .ac-mesh {
- position: fixed;
- inset: 0;
-}
+ SUPPRESSION IS ALWAYS `text-shadow: none`, NEVER A TOKEN OVERRIDE.
+ var(--ac-glow-text) is resolved HERE, at the frame, and the resolved shadow list
+ is what inherits — a descendant setting its own --ac-glow-text changes nothing.
-@media (prefers-reduced-motion: reduce) {
- .ac-blink, .ac-cursor::after,
- .ac-bloom::before, .ac-crt::after,
- .ac-persist::before { animation: none; }
- .ac-retrace { display: none; }
-
- /* .ac-mesh is the one overlay here that keeps rendering. Note it is in an
- animation rule and NOT in the display rule beside .ac-retrace: the screen
- door is not an effect playing over the panel, it is the shape of the panel,
- and hiding it would change what the hardware IS in response to a motion
- preference. Only the buzz is motion.
-
- Restated with the child combinator rather than folded into the bare list
- above, and that is the third time this file has had to say it: a media query
- adds no specificity, so `.ac-mesh` (0,1,0) loses to the `.ac-bloom > .ac-mesh`
- (0,2,0) that declares the animation, and the buzz goes on running for exactly
- the users who asked it not to. It has to be matched at its own weight. */
- .ac-bloom > .ac-mesh,
- .ac-crt > .ac-mesh { animation: none; }
-
- /* The afterglow blink override is a descendant selector and therefore beats a
- bare `.ac-blink { animation: none }` on specificity. Restated at matching
- weight, or turning the simulation on would quietly reinstate every blink
- that this block just switched off. Same reason it is restated in print.css
- and a11y.css. */
- .ac-afterglow .ac-blink,
- .ac-afterglow .ac-cursor::after,
- .ac-afterglow .ac-field--invalid .ac-input,
- .ac-afterglow .ac-input[aria-invalid="true"],
- .ac-afterglow .ac-meter--alarm .ac-meter__bar { animation: none; filter: none; }
-
- /* Every decay in the simulation is a descendant rule under .ac-afterglow, so
- each one outranks a plain reset here and has to be caught. Restating the
- selector list one by one is how the blink override slipped through twice —
- a blanket is the only version that also covers the next rule added. */
- .ac-afterglow *,
- .ac-afterglow *::before,
- .ac-afterglow *::after { transition: none !important; }
-
- /* Smearing the whole viewport in response to scrolling is the single most
- motion-sick-making thing in here. */
- .ac-afterglow > .ac-persist::after { display: none; }
- .ac-afterglow[data-ac-scrolling] > *:not(.ac-persist, .ac-retrace, .ac-mesh) { filter: none; }
-
- /* Persistence is motion by definition: a decaying ghost is a moving image.
- There is nothing to soften here, so the whole thing goes. */
- .ac-ghost { display: none; }
- .ac-afterglow [hidden],
- .ac-afterglow dialog:not([open]) { transition: none; filter: none; }
+ Print and forced colors need no rule of their own; both already blank it
+ upstream. --------------------------------------------------------------- */
+.ac-screen,
+.ac-root {
+ text-shadow: var(--ac-glow-text);
}
diff --git a/src/tokens/fonts.css b/src/tokens/fonts.css
index 7eaefb5..0607523 100644
--- a/src/tokens/fonts.css
+++ b/src/tokens/fonts.css
@@ -3,13 +3,13 @@
Two bitmap faces, both SIL Open Font License 1.1 (see fonts/OFL-*.txt):
- VT323 everything at 18px and up -> --font-terminal
- Silkscreen 8-10px micro labels ONLY -> --font-micro
+ VT323 everything at 18px and up -> --ac-font-terminal
+ Silkscreen 8-10px micro labels ONLY -> --ac-font-micro
These are era-correct SUBSTITUTES, not the original face. The source hardware
used a mask-ROM bitmap font with no digital release; VT323 is a digitization of
the DEC VT320 terminal ROM. To swap in a licensed face closer to the hardware,
- replace --font-terminal in tokens/typography.css and nothing else.
+ replace --ac-font-terminal in tokens/typography.css and nothing else.
GENERATED by scripts/fetch-fonts.mjs — do not edit by hand.
diff --git a/src/tokens/spacing.css b/src/tokens/spacing.css
index 365ddc6..b0fd50c 100644
--- a/src/tokens/spacing.css
+++ b/src/tokens/spacing.css
@@ -1,14 +1,28 @@
:root {
/* Character-cell grid: everything snaps to 4px half-cells */
- --space-1: 4px;
- --space-2: 8px;
- --space-3: 12px;
- --space-4: 16px;
- --space-6: 24px;
- --space-8: 32px;
- --space-12: 48px;
-
- --border-w: 2px; /* every stroke is 2px — no hairlines */
- --radius: 8px; /* touch pads, panels (CRT-rounded, not modern-pill) */
- --radius-sm: 4px; /* inputs, small chips */
+ --ac-space-1: 4px;
+ --ac-space-2: 8px;
+ --ac-space-3: 12px;
+ --ac-space-4: 16px;
+ --ac-space-6: 24px;
+ --ac-space-8: 32px;
+ --ac-space-12: 48px;
+
+ --ac-border-w: 2px; /* every stroke is 2px — no hairlines */
+
+ /* THE CORNER, QUANTIZED TO THE GRID. 2px is what a gas-discharge panel
+ addressing a coarse cell matrix could actually draw, and it is the figure
+ .ac-badge and .ac-banner have always used literally.
+
+ This is the BASE value, not the whole story: components/classic.css spends
+ it on a real chamfer where `corner-shape` exists, adds the extruded key
+ edge, and provides the .ac-rounded opt-out. Those live there so this file
+ stays what it says it is — a spacing scale.
+
+ It is stated here rather than only there so that dropping classic.css
+ degrades to a plain 2px corner instead of leaving --ac-radius undefined,
+ which would make `border-radius: var(--ac-radius)` invalid and square off
+ every control in the framework. */
+ --ac-radius: 2px;
+ --ac-radius-sm: 2px;
}
diff --git a/src/tokens/typography.css b/src/tokens/typography.css
index 43be44d..5367137 100644
--- a/src/tokens/typography.css
+++ b/src/tokens/typography.css
@@ -1,17 +1,28 @@
:root {
- --font-terminal: "VT323", "Courier New", ui-monospace, monospace;
- --font-micro: "Silkscreen", "VT323", ui-monospace, monospace;
+ --ac-font-terminal: "VT323", "Courier New", ui-monospace, monospace;
+ --ac-font-micro: "Silkscreen", "VT323", ui-monospace, monospace;
- /* VT323 is a bitmap face: it needs LARGE sizes. Never below 18px. */
- --type-display: 44px; /* page titles, banners */
- --type-title: 30px; /* panel/soft-key headers */
- --type-body: 22px; /* default UI text */
- --type-small: 18px; /* field labels, legends */
- --type-micro: 8px; /* Silkscreen only — bit labels, badges */
+ /* VT323 is a bitmap face: it needs LARGE sizes. Never below 18px — below that
+ the grid collapses and it turns to mud. --ac-type-micro is Silkscreen's,
+ never VT323's; components/badge.css states the same rule from the other end.
- --tracking-display: 0.1em;
- --tracking-body: 0.04em;
- --tracking-micro: 0.08em;
+ TWO DELIBERATE EXCEPTIONS, AND BOTH ARE GLYPHS RATHER THAN TEXT.
+ components/select.css sets the dropdown chevron at 14px and
+ components/nav.css sets the mark block at 16px, both in the terminal face.
+ The floor exists because a bitmap face loses its letterforms when it is
+ resampled small, and neither of these HAS a letterform to lose: they are
+ solid geometry, one triangle and one filled square, and they read the same
+ at any size. Nothing anybody has to READ goes below 18px. Add to that list
+ only for another single non-alphanumeric glyph, and say so at the site. */
+ --ac-type-display: 44px; /* page titles, banners */
+ --ac-type-title: 30px; /* panel/soft-key headers */
+ --ac-type-body: 22px; /* default UI text */
+ --ac-type-small: 18px; /* field labels, legends */
+ --ac-type-micro: 8px; /* Silkscreen only — bit labels, badges */
- --leading: 1.15; /* terminal rows sit tight */
+ --ac-tracking-display: 0.1em;
+ --ac-tracking-body: 0.04em;
+ --ac-tracking-micro: 0.08em;
+
+ --ac-leading: 1.15; /* terminal rows sit tight */
}
diff --git a/starter.html b/starter.html
new file mode 100644
index 0000000..ceaf9a8
--- /dev/null
+++ b/starter.html
@@ -0,0 +1,254 @@
+
+
+
+
+
+Amber Console — starter
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Reactor Control
+
+
+
+
+
+
+
+
+
Core Instrumentation
+
+
+
+
+
+
+
+
+
+
+
+
+
Rod Position
+
+ 48%
+
+
+
Loop Pressure
+
+ 7.1 MPA
+
+
+
Uptime
+
+ 0412:07
+
+
+
+
+
+ Loop A
+ Armed
+ Spare
+
+
+
+
+
+
+
+
+
Rounded Region
+
+ Softer
+ Corners
+
+
+
+
+
+
+
+
diff --git a/stylelint.config.mjs b/stylelint.config.mjs
index d7489a1..39de16a 100644
--- a/stylelint.config.mjs
+++ b/stylelint.config.mjs
@@ -22,12 +22,20 @@ export default {
},
],
"keyframes-name-pattern": "^ac-[a-z0-9-]+$",
- "custom-property-pattern": "^(ac-)?[a-z0-9]+(-[a-z0-9]+)*$",
+ // Law: every token this framework owns is --ac-* prefixed. The prefix used
+ // to be optional here and 60 of 76 tokens skipped it, which is what made the
+ // @layer build's promise hollow — cascade layers do not protect custom
+ // properties, so a host app's unlayered `--radius` beat the framework's.
+ // Required now, so the next token cannot quietly go bare.
+ "custom-property-pattern": "^ac-[a-z0-9]+(-[a-z0-9]+)*$",
- // Law: state changes are instant redraws. A screen has no in-between frames.
- "declaration-property-value-disallowed-list": { "/^transition/": ["/.*/"] },
+ // NOTE: the ban on `transition` used to live here too, with its own
+ // exemption list in an `overrides` block, duplicating the one in
+ // scripts/check-prohibitions.mjs. Two gates for one law meant two exemption
+ // lists to keep in agreement; check-prohibitions.mjs is now the sole owner
+ // and enforces it across all of src/ rather than only src/components/.
- // Law: one gas, one hue. Named colours would smuggle in a second one.
+ // Law: one gas, one hue. Named colors would smuggle in a second one.
"color-named": "never",
/* --- Deliberate opt-outs --- */
@@ -65,17 +73,4 @@ export default {
"declaration-block-single-line-max-declarations": null,
},
- overrides: [
- {
- /* The instant-redraw law is about UI state: a button does not ease into
- being pressed. It is not about the panel's physics. Plasma persistence
- IS a timed decay — that is the entire phenomenon — and the only way to
- hold an element on screen past `display: none` is a transition with
- allow-discrete. scripts/check-prohibitions.mjs already scopes its own
- `transition` ban to src/components/ for exactly this reason; this brings
- stylelint in line with it. Components stay instant. */
- files: ["src/tokens/effects.css", "src/base/a11y.css", "src/base/print.css"],
- rules: { "declaration-property-value-disallowed-list": null },
- },
- ],
};
diff --git a/test/computed/baselines/computed.json b/test/computed/baselines/computed.json
new file mode 100644
index 0000000..765e589
--- /dev/null
+++ b/test/computed/baselines/computed.json
@@ -0,0 +1,922 @@
+{
+ "blink / screen / default / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / screen / default / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none",
+ "blink / screen / default / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / screen / default / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / screen / default / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / screen / blink-off / blink": "name=none filter=none",
+ "blink / screen / blink-off / cursor": "name=none filter=none",
+ "blink / screen / blink-off / invalid-class": "name=none filter=none",
+ "blink / screen / blink-off / invalid-aria": "name=none filter=none",
+ "blink / screen / blink-off / meter-alarm": "name=none filter=none",
+ "blink / screen / afterglow / blink": "name=ac-blink-decay ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow / cursor": "name=ac-blink-decay ease=linear dur=1s filter=blur(0px)",
+ "blink / screen / afterglow / invalid-class": "name=ac-blink-decay ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow / invalid-aria": "name=ac-blink-decay ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow / meter-alarm": "name=ac-blink-decay ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+blink-off / blink": "name=none filter=none",
+ "blink / screen / afterglow+blink-off / cursor": "name=none filter=none",
+ "blink / screen / afterglow+blink-off / invalid-class": "name=none filter=none",
+ "blink / screen / afterglow+blink-off / invalid-aria": "name=none filter=none",
+ "blink / screen / afterglow+blink-off / meter-alarm": "name=none filter=none",
+ "blink / screen / afterglow+p39 / blink": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+p39 / cursor": "name=ac-blink-decay-long ease=linear dur=1s filter=blur(0px)",
+ "blink / screen / afterglow+p39 / invalid-class": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+p39 / invalid-aria": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+p39 / meter-alarm": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+p7 / blink": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+p7 / cursor": "name=ac-blink-decay-long ease=linear dur=1s filter=blur(0px)",
+ "blink / screen / afterglow+p7 / invalid-class": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+p7 / invalid-aria": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+p7 / meter-alarm": "name=ac-blink-decay-long ease=linear dur=1.1s filter=blur(0px)",
+ "blink / screen / afterglow+p39+blink-off / blink": "name=none filter=none",
+ "blink / screen / afterglow+p39+blink-off / cursor": "name=none filter=none",
+ "blink / screen / afterglow+p39+blink-off / invalid-class": "name=none filter=none",
+ "blink / screen / afterglow+p39+blink-off / invalid-aria": "name=none filter=none",
+ "blink / screen / afterglow+p39+blink-off / meter-alarm": "name=none filter=none",
+ "blink / reduced-motion / default / blink": "name=none filter=none",
+ "blink / reduced-motion / default / cursor": "name=none filter=none",
+ "blink / reduced-motion / default / invalid-class": "name=none filter=none",
+ "blink / reduced-motion / default / invalid-aria": "name=none filter=none",
+ "blink / reduced-motion / default / meter-alarm": "name=none filter=none",
+ "blink / reduced-motion / blink-off / blink": "name=none filter=none",
+ "blink / reduced-motion / blink-off / cursor": "name=none filter=none",
+ "blink / reduced-motion / blink-off / invalid-class": "name=none filter=none",
+ "blink / reduced-motion / blink-off / invalid-aria": "name=none filter=none",
+ "blink / reduced-motion / blink-off / meter-alarm": "name=none filter=none",
+ "blink / reduced-motion / afterglow / blink": "name=none filter=none",
+ "blink / reduced-motion / afterglow / cursor": "name=none filter=none",
+ "blink / reduced-motion / afterglow / invalid-class": "name=none filter=none",
+ "blink / reduced-motion / afterglow / invalid-aria": "name=none filter=none",
+ "blink / reduced-motion / afterglow / meter-alarm": "name=none filter=none",
+ "blink / reduced-motion / afterglow+blink-off / blink": "name=none filter=none",
+ "blink / reduced-motion / afterglow+blink-off / cursor": "name=none filter=none",
+ "blink / reduced-motion / afterglow+blink-off / invalid-class": "name=none filter=none",
+ "blink / reduced-motion / afterglow+blink-off / invalid-aria": "name=none filter=none",
+ "blink / reduced-motion / afterglow+blink-off / meter-alarm": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39 / blink": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39 / cursor": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39 / invalid-class": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39 / invalid-aria": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39 / meter-alarm": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p7 / blink": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p7 / cursor": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p7 / invalid-class": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p7 / invalid-aria": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p7 / meter-alarm": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39+blink-off / blink": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39+blink-off / cursor": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39+blink-off / invalid-class": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39+blink-off / invalid-aria": "name=none filter=none",
+ "blink / reduced-motion / afterglow+p39+blink-off / meter-alarm": "name=none filter=none",
+ "blink / forced-colors / default / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / default / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none",
+ "blink / forced-colors / default / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / default / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / default / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / blink-off / blink": "name=none filter=none",
+ "blink / forced-colors / blink-off / cursor": "name=none filter=none",
+ "blink / forced-colors / blink-off / invalid-class": "name=none filter=none",
+ "blink / forced-colors / blink-off / invalid-aria": "name=none filter=none",
+ "blink / forced-colors / blink-off / meter-alarm": "name=none filter=none",
+ "blink / forced-colors / afterglow / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none",
+ "blink / forced-colors / afterglow / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+blink-off / blink": "name=none filter=none",
+ "blink / forced-colors / afterglow+blink-off / cursor": "name=none filter=none",
+ "blink / forced-colors / afterglow+blink-off / invalid-class": "name=none filter=none",
+ "blink / forced-colors / afterglow+blink-off / invalid-aria": "name=none filter=none",
+ "blink / forced-colors / afterglow+blink-off / meter-alarm": "name=none filter=none",
+ "blink / forced-colors / afterglow+p39 / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+p39 / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none",
+ "blink / forced-colors / afterglow+p39 / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+p39 / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+p39 / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+p7 / blink": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+p7 / cursor": "name=ac-blink ease=steps(1) dur=1s filter=none",
+ "blink / forced-colors / afterglow+p7 / invalid-class": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+p7 / invalid-aria": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+p7 / meter-alarm": "name=ac-blink ease=steps(1) dur=1.1s filter=none",
+ "blink / forced-colors / afterglow+p39+blink-off / blink": "name=none filter=none",
+ "blink / forced-colors / afterglow+p39+blink-off / cursor": "name=none filter=none",
+ "blink / forced-colors / afterglow+p39+blink-off / invalid-class": "name=none filter=none",
+ "blink / forced-colors / afterglow+p39+blink-off / invalid-aria": "name=none filter=none",
+ "blink / forced-colors / afterglow+p39+blink-off / meter-alarm": "name=none filter=none",
+ "blink / print / default / blink": "name=none filter=none",
+ "blink / print / default / cursor": "name=none filter=none",
+ "blink / print / default / invalid-class": "name=none filter=none",
+ "blink / print / default / invalid-aria": "name=none filter=none",
+ "blink / print / default / meter-alarm": "name=none filter=none",
+ "blink / print / blink-off / blink": "name=none filter=none",
+ "blink / print / blink-off / cursor": "name=none filter=none",
+ "blink / print / blink-off / invalid-class": "name=none filter=none",
+ "blink / print / blink-off / invalid-aria": "name=none filter=none",
+ "blink / print / blink-off / meter-alarm": "name=none filter=none",
+ "blink / print / afterglow / blink": "name=none filter=none",
+ "blink / print / afterglow / cursor": "name=none filter=none",
+ "blink / print / afterglow / invalid-class": "name=none filter=none",
+ "blink / print / afterglow / invalid-aria": "name=none filter=none",
+ "blink / print / afterglow / meter-alarm": "name=none filter=none",
+ "blink / print / afterglow+blink-off / blink": "name=none filter=none",
+ "blink / print / afterglow+blink-off / cursor": "name=none filter=none",
+ "blink / print / afterglow+blink-off / invalid-class": "name=none filter=none",
+ "blink / print / afterglow+blink-off / invalid-aria": "name=none filter=none",
+ "blink / print / afterglow+blink-off / meter-alarm": "name=none filter=none",
+ "blink / print / afterglow+p39 / blink": "name=none filter=none",
+ "blink / print / afterglow+p39 / cursor": "name=none filter=none",
+ "blink / print / afterglow+p39 / invalid-class": "name=none filter=none",
+ "blink / print / afterglow+p39 / invalid-aria": "name=none filter=none",
+ "blink / print / afterglow+p39 / meter-alarm": "name=none filter=none",
+ "blink / print / afterglow+p7 / blink": "name=none filter=none",
+ "blink / print / afterglow+p7 / cursor": "name=none filter=none",
+ "blink / print / afterglow+p7 / invalid-class": "name=none filter=none",
+ "blink / print / afterglow+p7 / invalid-aria": "name=none filter=none",
+ "blink / print / afterglow+p7 / meter-alarm": "name=none filter=none",
+ "blink / print / afterglow+p39+blink-off / blink": "name=none filter=none",
+ "blink / print / afterglow+p39+blink-off / cursor": "name=none filter=none",
+ "blink / print / afterglow+p39+blink-off / invalid-class": "name=none filter=none",
+ "blink / print / afterglow+p39+blink-off / invalid-aria": "name=none filter=none",
+ "blink / print / afterglow+p39+blink-off / meter-alarm": "name=none filter=none",
+ "layers / screen / scroll=false / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=false / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=false / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=false / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=false / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=false / afterimage-btn-display": "block",
+ "layers / screen / scroll=false / afterimage-td-display": "block",
+ "layers / screen / scroll=false / meterghost-display": "block",
+ "layers / screen / scroll=false / smear-child": "none",
+ "layers / screen / scroll=false / smear-persist": "none",
+ "layers / screen / scroll=false / smear-sticky": "none",
+ "layers / screen / scroll=false / smearbloom-display": "none",
+ "layers / screen / scroll=true / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=true / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=true / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=true / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=true / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / screen / scroll=true / afterimage-btn-display": "block",
+ "layers / screen / scroll=true / afterimage-td-display": "block",
+ "layers / screen / scroll=true / meterghost-display": "block",
+ "layers / screen / scroll=true / smear-child": "blur(1.8px)",
+ "layers / screen / scroll=true / smear-persist": "none",
+ "layers / screen / scroll=true / smear-sticky": "none",
+ "layers / screen / scroll=true / smearbloom-display": "block",
+ "layers / reduced-motion / scroll=false / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=false / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=false / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=false / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=false / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=false / afterimage-btn-display": "none",
+ "layers / reduced-motion / scroll=false / afterimage-td-display": "none",
+ "layers / reduced-motion / scroll=false / meterghost-display": "none",
+ "layers / reduced-motion / scroll=false / smear-child": "none",
+ "layers / reduced-motion / scroll=false / smear-persist": "none",
+ "layers / reduced-motion / scroll=false / smear-sticky": "none",
+ "layers / reduced-motion / scroll=false / smearbloom-display": "none",
+ "layers / reduced-motion / scroll=true / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=true / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=true / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=true / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=true / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / reduced-motion / scroll=true / afterimage-btn-display": "none",
+ "layers / reduced-motion / scroll=true / afterimage-td-display": "none",
+ "layers / reduced-motion / scroll=true / meterghost-display": "none",
+ "layers / reduced-motion / scroll=true / smear-child": "none",
+ "layers / reduced-motion / scroll=true / smear-persist": "none",
+ "layers / reduced-motion / scroll=true / smear-sticky": "none",
+ "layers / reduced-motion / scroll=true / smearbloom-display": "none",
+ "layers / forced-colors / scroll=false / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=false / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=false / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=false / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=false / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=false / afterimage-btn-display": "none",
+ "layers / forced-colors / scroll=false / afterimage-td-display": "none",
+ "layers / forced-colors / scroll=false / meterghost-display": "none",
+ "layers / forced-colors / scroll=false / smear-child": "none",
+ "layers / forced-colors / scroll=false / smear-persist": "none",
+ "layers / forced-colors / scroll=false / smear-sticky": "none",
+ "layers / forced-colors / scroll=false / smearbloom-display": "none",
+ "layers / forced-colors / scroll=true / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=true / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=true / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=true / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=true / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / forced-colors / scroll=true / afterimage-btn-display": "none",
+ "layers / forced-colors / scroll=true / afterimage-td-display": "none",
+ "layers / forced-colors / scroll=true / meterghost-display": "none",
+ "layers / forced-colors / scroll=true / smear-child": "none",
+ "layers / forced-colors / scroll=true / smear-persist": "none",
+ "layers / forced-colors / scroll=true / smear-sticky": "none",
+ "layers / forced-colors / scroll=true / smearbloom-display": "block",
+ "layers / print / scroll=false / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=false / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=false / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=false / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=false / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=false / afterimage-btn-display": "none",
+ "layers / print / scroll=false / afterimage-td-display": "none",
+ "layers / print / scroll=false / meterghost-display": "none",
+ "layers / print / scroll=false / smear-child": "none",
+ "layers / print / scroll=false / smear-persist": "none",
+ "layers / print / scroll=false / smear-sticky": "none",
+ "layers / print / scroll=false / smearbloom-display": "none",
+ "layers / print / scroll=true / afterimage-btn": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=true / afterimage-tab": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=true / afterimage-nav": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=true / afterimage-badge": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=true / afterimage-td": "rgba(255, 120, 30, 0.26) 0px 0px 18px 0px",
+ "layers / print / scroll=true / afterimage-btn-display": "none",
+ "layers / print / scroll=true / afterimage-td-display": "none",
+ "layers / print / scroll=true / meterghost-display": "none",
+ "layers / print / scroll=true / smear-child": "none",
+ "layers / print / scroll=true / smear-persist": "none",
+ "layers / print / scroll=true / smear-sticky": "none",
+ "layers / print / scroll=true / smearbloom-display": "block",
+ "meters / screen / bare / #m-plain": "ink=rgb(6, 2, 0) shadow=yes ghost=-",
+ "meters / screen / bare / #m-plain-bar": "ink=rgb(255, 107, 8) shadow=yes ghost=-",
+ "meters / screen / bare / #m-dim": "ink=rgb(6, 2, 0) shadow=yes ghost=-",
+ "meters / screen / bare / #m-dim-bar": "ink=rgb(171, 69, 0) shadow=none ghost=-",
+ "meters / screen / bare / #m-alarm": "ink=rgb(255, 107, 8) shadow=yes ghost=-",
+ "meters / screen / bare / #m-alarm-bar": "ink=rgb(30, 12, 0) shadow=none ghost=-",
+ "meters / screen / ac-afterglow / #m-plain": "ink=rgb(6, 2, 0) shadow=yes ghost=rgb(255, 107, 8)",
+ "meters / screen / ac-afterglow / #m-plain-bar": "ink=rgb(255, 107, 8) shadow=yes ghost=-",
+ "meters / screen / ac-afterglow / #m-dim": "ink=rgb(6, 2, 0) shadow=yes ghost=rgb(255, 107, 8)",
+ "meters / screen / ac-afterglow / #m-dim-bar": "ink=rgb(171, 69, 0) shadow=none ghost=-",
+ "meters / screen / ac-afterglow / #m-alarm": "ink=rgb(255, 107, 8) shadow=yes ghost=rgb(30, 12, 0)",
+ "meters / screen / ac-afterglow / #m-alarm-bar": "ink=rgb(30, 12, 0) shadow=none ghost=-",
+ "meters / reduced-motion / bare / #m-plain": "ink=rgb(6, 2, 0) shadow=yes ghost=-",
+ "meters / reduced-motion / bare / #m-plain-bar": "ink=rgb(255, 107, 8) shadow=yes ghost=-",
+ "meters / reduced-motion / bare / #m-dim": "ink=rgb(6, 2, 0) shadow=yes ghost=-",
+ "meters / reduced-motion / bare / #m-dim-bar": "ink=rgb(171, 69, 0) shadow=none ghost=-",
+ "meters / reduced-motion / bare / #m-alarm": "ink=rgb(255, 107, 8) shadow=yes ghost=-",
+ "meters / reduced-motion / bare / #m-alarm-bar": "ink=rgb(30, 12, 0) shadow=none ghost=-",
+ "meters / reduced-motion / ac-afterglow / #m-plain": "ink=rgb(6, 2, 0) shadow=yes ghost=-",
+ "meters / reduced-motion / ac-afterglow / #m-plain-bar": "ink=rgb(255, 107, 8) shadow=yes ghost=-",
+ "meters / reduced-motion / ac-afterglow / #m-dim": "ink=rgb(6, 2, 0) shadow=yes ghost=-",
+ "meters / reduced-motion / ac-afterglow / #m-dim-bar": "ink=rgb(171, 69, 0) shadow=none ghost=-",
+ "meters / reduced-motion / ac-afterglow / #m-alarm": "ink=rgb(255, 107, 8) shadow=yes ghost=-",
+ "meters / reduced-motion / ac-afterglow / #m-alarm-bar": "ink=rgb(30, 12, 0) shadow=none ghost=-",
+ "meters / forced-colors / bare / #m-plain": "ink=Canvas|HighlightText shadow=none ghost=-",
+ "meters / forced-colors / bare / #m-plain-bar": "ink=Highlight shadow=none ghost=-",
+ "meters / forced-colors / bare / #m-dim": "ink=Canvas|HighlightText shadow=none ghost=-",
+ "meters / forced-colors / bare / #m-dim-bar": "ink=GrayText shadow=none ghost=-",
+ "meters / forced-colors / bare / #m-alarm": "ink=Highlight shadow=none ghost=-",
+ "meters / forced-colors / bare / #m-alarm-bar": "ink=Canvas|HighlightText shadow=none ghost=-",
+ "meters / forced-colors / ac-afterglow / #m-plain": "ink=Canvas|HighlightText shadow=none ghost=-",
+ "meters / forced-colors / ac-afterglow / #m-plain-bar": "ink=Highlight shadow=none ghost=-",
+ "meters / forced-colors / ac-afterglow / #m-dim": "ink=Canvas|HighlightText shadow=none ghost=-",
+ "meters / forced-colors / ac-afterglow / #m-dim-bar": "ink=GrayText shadow=none ghost=-",
+ "meters / forced-colors / ac-afterglow / #m-alarm": "ink=Highlight shadow=none ghost=-",
+ "meters / forced-colors / ac-afterglow / #m-alarm-bar": "ink=Canvas|HighlightText shadow=none ghost=-",
+ "meters / print / bare / #m-plain": "ink=rgb(255, 255, 255) shadow=yes ghost=-",
+ "meters / print / bare / #m-plain-bar": "ink=rgb(0, 0, 0) shadow=yes ghost=-",
+ "meters / print / bare / #m-dim": "ink=rgb(255, 255, 255) shadow=yes ghost=-",
+ "meters / print / bare / #m-dim-bar": "ink=rgb(102, 102, 102) shadow=none ghost=-",
+ "meters / print / bare / #m-alarm": "ink=rgb(0, 0, 0) shadow=yes ghost=-",
+ "meters / print / bare / #m-alarm-bar": "ink=rgb(255, 255, 255) shadow=none ghost=-",
+ "meters / print / ac-afterglow / #m-plain": "ink=rgb(255, 255, 255) shadow=yes ghost=-",
+ "meters / print / ac-afterglow / #m-plain-bar": "ink=rgb(0, 0, 0) shadow=yes ghost=-",
+ "meters / print / ac-afterglow / #m-dim": "ink=rgb(255, 255, 255) shadow=yes ghost=-",
+ "meters / print / ac-afterglow / #m-dim-bar": "ink=rgb(102, 102, 102) shadow=none ghost=-",
+ "meters / print / ac-afterglow / #m-alarm": "ink=rgb(0, 0, 0) shadow=yes ghost=-",
+ "meters / print / ac-afterglow / #m-alarm-bar": "ink=rgb(255, 255, 255) shadow=none ghost=-",
+ "corners / bare / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / bare / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / bare / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / rest / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / rest / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / bare / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / bare / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / hover / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / hover / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / bare / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / bare / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / bare / active / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / bare / active / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / rest / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / rest / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / flag-on / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / rest / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / rest / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / hover / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / hover / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / flag-on / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / hover / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / hover / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / active / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / active / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / flag-on / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / flag-on / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on / active / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on / active / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-off / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / flag-off / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / rest / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / rest / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-off / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / flag-off / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / hover / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / hover / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-off / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / flag-off / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-off / active / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-off / active / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / rest / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / rest / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / frame-classic / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / frame-classic / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / rest / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / rest / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / hover / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / hover / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / frame-classic / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / frame-classic / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / hover / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / hover / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / active / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / active / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / frame-classic / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / frame-classic / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / frame-classic / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-classic / active / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-classic / active / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / frame-rounded / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / frame-rounded / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / rest / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / rest / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / frame-rounded / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / frame-rounded / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / hover / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / hover / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / frame-rounded / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / frame-rounded / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / frame-rounded / active / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / frame-rounded / active / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on+frame-rounded / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / flag-on+frame-rounded / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / rest / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / rest / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on+frame-rounded / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / flag-on+frame-rounded / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / hover / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / hover / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on+frame-rounded / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / flag-on+frame-rounded / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+frame-rounded / active / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+frame-rounded / active / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / rest / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / rest / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / self-classic / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / self-classic / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / rest / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / rest / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / hover / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / hover / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / self-classic / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / self-classic / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / hover / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / hover / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / active / #b-disabled": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / active / #b-ariadis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=block",
+ "corners / self-classic / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / self-classic / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0.34) 2px 2px 0px 0px inset, rgba(0, 0, 0, 0.18) 5px 5px 0px 0px inset ; borderRadius=2px 4px 8px ; alignItems=center ; justifyContent=center ; textAlign=center ; display=flex",
+ "corners / self-classic / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(255, 120, 30, 0.92) 2px 2px 0px 0px, rgba(255, 120, 30, 0.6) 5px 5px 0px 0px ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / self-classic / active / #tb-dis": "boxShadow=none ; borderRadius=2px 4px 8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / self-classic / active / #i-input-dis": "boxShadow=none ; borderRadius=1px 2px 4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #b-dim": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on+self-rounded / rest / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / flag-on+self-rounded / rest / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / rest / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / rest / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / rest / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / rest / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on+self-rounded / hover / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / flag-on+self-rounded / hover / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / hover / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / hover / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / hover / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / hover / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #b-plain": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #b-filled": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #b-pressed": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #b-dim": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #b-disabled": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #b-ariadis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #b-block": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #b-pad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=flex-start ; justifyContent=flex-start ; textAlign=left ; display=flex",
+ "corners / flag-on+self-rounded / active / #b-keypad": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=flex",
+ "corners / flag-on+self-rounded / active / #t-track": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / active / #t-track-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / active / #t-track-inp": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #t-track-inp-dis": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #p-panel": "boxShadow=rgba(255, 120, 30, 0.32) 0px 0px 8px 0px, rgba(255, 120, 30, 0.07) 0px 0px 10px 0px inset ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #i-input": "boxShadow=rgba(255, 120, 30, 0.13) 0px 0px 8px 0px, rgba(255, 120, 30, 0.027) 0px 0px 10px 0px inset ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "corners / flag-on+self-rounded / active / #tb-dis": "boxShadow=none ; borderRadius=8px ; alignItems=normal ; justifyContent=normal ; textAlign=center ; display=block",
+ "corners / flag-on+self-rounded / active / #i-input-dis": "boxShadow=none ; borderRadius=4px ; alignItems=normal ; justifyContent=normal ; textAlign=start ; display=block",
+ "suppression / forced-colors / none / s-btn / rest": "none",
+ "suppression / forced-colors / none / s-btn / hover": "transparent",
+ "suppression / forced-colors / none / s-btn-p / rest": "none",
+ "suppression / forced-colors / none / s-btn-p / hover": "transparent",
+ "suppression / forced-colors / none / s-tab / rest": "none",
+ "suppression / forced-colors / none / s-tab / hover": "transparent",
+ "suppression / forced-colors / none / s-track / rest": "none",
+ "suppression / forced-colors / none / s-track / hover": "none",
+ "suppression / forced-colors / ac-classic / s-btn / rest": "none",
+ "suppression / forced-colors / ac-classic / s-btn / hover": "transparent",
+ "suppression / forced-colors / ac-classic / s-btn-p / rest": "none",
+ "suppression / forced-colors / ac-classic / s-btn-p / hover": "transparent",
+ "suppression / forced-colors / ac-classic / s-tab / rest": "none",
+ "suppression / forced-colors / ac-classic / s-tab / hover": "transparent",
+ "suppression / forced-colors / ac-classic / s-track / rest": "none",
+ "suppression / forced-colors / ac-classic / s-track / hover": "none",
+ "suppression / forced-colors / ac-rounded / s-btn / rest": "none",
+ "suppression / forced-colors / ac-rounded / s-btn / hover": "transparent",
+ "suppression / forced-colors / ac-rounded / s-btn-p / rest": "none",
+ "suppression / forced-colors / ac-rounded / s-btn-p / hover": "transparent",
+ "suppression / forced-colors / ac-rounded / s-tab / rest": "none",
+ "suppression / forced-colors / ac-rounded / s-tab / hover": "transparent",
+ "suppression / forced-colors / ac-rounded / s-track / rest": "none",
+ "suppression / forced-colors / ac-rounded / s-track / hover": "none",
+ "suppression / print / none / s-btn / rest": "transparent",
+ "suppression / print / none / s-btn / hover": "transparent",
+ "suppression / print / none / s-btn-p / rest": "transparent",
+ "suppression / print / none / s-btn-p / hover": "transparent",
+ "suppression / print / none / s-tab / rest": "transparent",
+ "suppression / print / none / s-tab / hover": "transparent",
+ "suppression / print / none / s-track / rest": "transparent",
+ "suppression / print / none / s-track / hover": "transparent",
+ "suppression / print / ac-classic / s-btn / rest": "transparent",
+ "suppression / print / ac-classic / s-btn / hover": "transparent",
+ "suppression / print / ac-classic / s-btn-p / rest": "transparent",
+ "suppression / print / ac-classic / s-btn-p / hover": "transparent",
+ "suppression / print / ac-classic / s-tab / rest": "transparent",
+ "suppression / print / ac-classic / s-tab / hover": "transparent",
+ "suppression / print / ac-classic / s-track / rest": "transparent",
+ "suppression / print / ac-classic / s-track / hover": "transparent",
+ "suppression / print / ac-rounded / s-btn / rest": "transparent",
+ "suppression / print / ac-rounded / s-btn / hover": "transparent",
+ "suppression / print / ac-rounded / s-btn-p / rest": "transparent",
+ "suppression / print / ac-rounded / s-btn-p / hover": "transparent",
+ "suppression / print / ac-rounded / s-tab / rest": "transparent",
+ "suppression / print / ac-rounded / s-tab / hover": "transparent",
+ "suppression / print / ac-rounded / s-track / rest": "transparent",
+ "suppression / print / ac-rounded / s-track / hover": "transparent",
+ "palette / screen / default / --ac-screen": "#100600",
+ "palette / screen / default / --ac-screen-raised": "#1b0c02",
+ "palette / screen / default / --ac-screen-well": "#060200",
+ "palette / screen / default / --ac-ink": "#ff6b08",
+ "palette / screen / default / --ac-ink-dim": "#dd5800",
+ "palette / screen / default / --ac-fill": "#ff6b08",
+ "palette / screen / default / --ac-fill-bright": "#ffa86d",
+ "palette / screen / default / --ac-on-fill": "#1e0c00",
+ "palette / screen / default / --ac-stroke": "#ff6b08",
+ "palette / screen / default / p-status / legible": "AA",
+ "palette / screen / default / p-title / legible": "AA",
+ "palette / screen / default / p-filled / legible": "AA",
+ "palette / screen / plasma-neon / --ac-screen": "#100600",
+ "palette / screen / plasma-neon / --ac-screen-raised": "#1b0c02",
+ "palette / screen / plasma-neon / --ac-screen-well": "#060200",
+ "palette / screen / plasma-neon / --ac-ink": "#ff6b08",
+ "palette / screen / plasma-neon / --ac-ink-dim": "#dd5800",
+ "palette / screen / plasma-neon / --ac-fill": "#ff6b08",
+ "palette / screen / plasma-neon / --ac-fill-bright": "#ffa86d",
+ "palette / screen / plasma-neon / --ac-on-fill": "#1e0c00",
+ "palette / screen / plasma-neon / --ac-stroke": "#ff6b08",
+ "palette / screen / plasma-neon / p-status / legible": "AA",
+ "palette / screen / plasma-neon / p-title / legible": "AA",
+ "palette / screen / plasma-neon / p-filled / legible": "AA",
+ "palette / screen / crt-p3 / --ac-screen": "#0d0700",
+ "palette / screen / crt-p3 / --ac-screen-raised": "#170e02",
+ "palette / screen / crt-p3 / --ac-screen-well": "#060200",
+ "palette / screen / crt-p3 / --ac-ink": "#ffae1e",
+ "palette / screen / crt-p3 / --ac-ink-dim": "#cd8817",
+ "palette / screen / crt-p3 / --ac-fill": "#ffae1e",
+ "palette / screen / crt-p3 / --ac-fill-bright": "#ffd052",
+ "palette / screen / crt-p3 / --ac-on-fill": "#1a0e00",
+ "palette / screen / crt-p3 / --ac-stroke": "#ffae1e",
+ "palette / screen / crt-p3 / p-status / legible": "AA",
+ "palette / screen / crt-p3 / p-title / legible": "AA",
+ "palette / screen / crt-p3 / p-filled / legible": "AA",
+ "palette / screen / crt-p7 / --ac-screen": "#040a11",
+ "palette / screen / crt-p7 / --ac-screen-raised": "#0b1520",
+ "palette / screen / crt-p7 / --ac-screen-well": "#020409",
+ "palette / screen / crt-p7 / --ac-ink": "#00a0fb",
+ "palette / screen / crt-p7 / --ac-ink-dim": "#0088d7",
+ "palette / screen / crt-p7 / --ac-fill": "#00a0fb",
+ "palette / screen / crt-p7 / --ac-fill-bright": "#8bc0ff",
+ "palette / screen / crt-p7 / --ac-on-fill": "#03182a",
+ "palette / screen / crt-p7 / --ac-stroke": "#00a0fb",
+ "palette / screen / crt-p7 / p-status / legible": "AA",
+ "palette / screen / crt-p7 / p-title / legible": "AA",
+ "palette / screen / crt-p7 / p-filled / legible": "AA",
+ "palette / reduced-motion / default / --ac-screen": "#100600",
+ "palette / reduced-motion / default / --ac-screen-raised": "#1b0c02",
+ "palette / reduced-motion / default / --ac-screen-well": "#060200",
+ "palette / reduced-motion / default / --ac-ink": "#ff6b08",
+ "palette / reduced-motion / default / --ac-ink-dim": "#dd5800",
+ "palette / reduced-motion / default / --ac-fill": "#ff6b08",
+ "palette / reduced-motion / default / --ac-fill-bright": "#ffa86d",
+ "palette / reduced-motion / default / --ac-on-fill": "#1e0c00",
+ "palette / reduced-motion / default / --ac-stroke": "#ff6b08",
+ "palette / reduced-motion / default / p-status / legible": "AA",
+ "palette / reduced-motion / default / p-title / legible": "AA",
+ "palette / reduced-motion / default / p-filled / legible": "AA",
+ "palette / reduced-motion / plasma-neon / --ac-screen": "#100600",
+ "palette / reduced-motion / plasma-neon / --ac-screen-raised": "#1b0c02",
+ "palette / reduced-motion / plasma-neon / --ac-screen-well": "#060200",
+ "palette / reduced-motion / plasma-neon / --ac-ink": "#ff6b08",
+ "palette / reduced-motion / plasma-neon / --ac-ink-dim": "#dd5800",
+ "palette / reduced-motion / plasma-neon / --ac-fill": "#ff6b08",
+ "palette / reduced-motion / plasma-neon / --ac-fill-bright": "#ffa86d",
+ "palette / reduced-motion / plasma-neon / --ac-on-fill": "#1e0c00",
+ "palette / reduced-motion / plasma-neon / --ac-stroke": "#ff6b08",
+ "palette / reduced-motion / plasma-neon / p-status / legible": "AA",
+ "palette / reduced-motion / plasma-neon / p-title / legible": "AA",
+ "palette / reduced-motion / plasma-neon / p-filled / legible": "AA",
+ "palette / reduced-motion / crt-p3 / --ac-screen": "#0d0700",
+ "palette / reduced-motion / crt-p3 / --ac-screen-raised": "#170e02",
+ "palette / reduced-motion / crt-p3 / --ac-screen-well": "#060200",
+ "palette / reduced-motion / crt-p3 / --ac-ink": "#ffae1e",
+ "palette / reduced-motion / crt-p3 / --ac-ink-dim": "#cd8817",
+ "palette / reduced-motion / crt-p3 / --ac-fill": "#ffae1e",
+ "palette / reduced-motion / crt-p3 / --ac-fill-bright": "#ffd052",
+ "palette / reduced-motion / crt-p3 / --ac-on-fill": "#1a0e00",
+ "palette / reduced-motion / crt-p3 / --ac-stroke": "#ffae1e",
+ "palette / reduced-motion / crt-p3 / p-status / legible": "AA",
+ "palette / reduced-motion / crt-p3 / p-title / legible": "AA",
+ "palette / reduced-motion / crt-p3 / p-filled / legible": "AA",
+ "palette / reduced-motion / crt-p7 / --ac-screen": "#040a11",
+ "palette / reduced-motion / crt-p7 / --ac-screen-raised": "#0b1520",
+ "palette / reduced-motion / crt-p7 / --ac-screen-well": "#020409",
+ "palette / reduced-motion / crt-p7 / --ac-ink": "#00a0fb",
+ "palette / reduced-motion / crt-p7 / --ac-ink-dim": "#0088d7",
+ "palette / reduced-motion / crt-p7 / --ac-fill": "#00a0fb",
+ "palette / reduced-motion / crt-p7 / --ac-fill-bright": "#8bc0ff",
+ "palette / reduced-motion / crt-p7 / --ac-on-fill": "#03182a",
+ "palette / reduced-motion / crt-p7 / --ac-stroke": "#00a0fb",
+ "palette / reduced-motion / crt-p7 / p-status / legible": "AA",
+ "palette / reduced-motion / crt-p7 / p-title / legible": "AA",
+ "palette / reduced-motion / crt-p7 / p-filled / legible": "AA",
+ "palette / forced-colors / default / --ac-screen": "#100600",
+ "palette / forced-colors / default / --ac-screen-raised": "#1b0c02",
+ "palette / forced-colors / default / --ac-screen-well": "#060200",
+ "palette / forced-colors / default / --ac-ink": "#ff6b08",
+ "palette / forced-colors / default / --ac-ink-dim": "#dd5800",
+ "palette / forced-colors / default / --ac-fill": "#ff6b08",
+ "palette / forced-colors / default / --ac-fill-bright": "#ffa86d",
+ "palette / forced-colors / default / --ac-on-fill": "#1e0c00",
+ "palette / forced-colors / default / --ac-stroke": "#ff6b08",
+ "palette / forced-colors / plasma-neon / --ac-screen": "#100600",
+ "palette / forced-colors / plasma-neon / --ac-screen-raised": "#1b0c02",
+ "palette / forced-colors / plasma-neon / --ac-screen-well": "#060200",
+ "palette / forced-colors / plasma-neon / --ac-ink": "#ff6b08",
+ "palette / forced-colors / plasma-neon / --ac-ink-dim": "#dd5800",
+ "palette / forced-colors / plasma-neon / --ac-fill": "#ff6b08",
+ "palette / forced-colors / plasma-neon / --ac-fill-bright": "#ffa86d",
+ "palette / forced-colors / plasma-neon / --ac-on-fill": "#1e0c00",
+ "palette / forced-colors / plasma-neon / --ac-stroke": "#ff6b08",
+ "palette / forced-colors / crt-p3 / --ac-screen": "#0d0700",
+ "palette / forced-colors / crt-p3 / --ac-screen-raised": "#170e02",
+ "palette / forced-colors / crt-p3 / --ac-screen-well": "#060200",
+ "palette / forced-colors / crt-p3 / --ac-ink": "#ffae1e",
+ "palette / forced-colors / crt-p3 / --ac-ink-dim": "#cd8817",
+ "palette / forced-colors / crt-p3 / --ac-fill": "#ffae1e",
+ "palette / forced-colors / crt-p3 / --ac-fill-bright": "#ffd052",
+ "palette / forced-colors / crt-p3 / --ac-on-fill": "#1a0e00",
+ "palette / forced-colors / crt-p3 / --ac-stroke": "#ffae1e",
+ "palette / forced-colors / crt-p7 / --ac-screen": "#040a11",
+ "palette / forced-colors / crt-p7 / --ac-screen-raised": "#0b1520",
+ "palette / forced-colors / crt-p7 / --ac-screen-well": "#020409",
+ "palette / forced-colors / crt-p7 / --ac-ink": "#00a0fb",
+ "palette / forced-colors / crt-p7 / --ac-ink-dim": "#0088d7",
+ "palette / forced-colors / crt-p7 / --ac-fill": "#00a0fb",
+ "palette / forced-colors / crt-p7 / --ac-fill-bright": "#8bc0ff",
+ "palette / forced-colors / crt-p7 / --ac-on-fill": "#03182a",
+ "palette / forced-colors / crt-p7 / --ac-stroke": "#00a0fb",
+ "palette / print / default / --ac-screen": "#ffffff",
+ "palette / print / default / --ac-screen-raised": "#f2f2f2",
+ "palette / print / default / --ac-screen-well": "#ffffff",
+ "palette / print / default / --ac-ink": "#000000",
+ "palette / print / default / --ac-ink-dim": "#333333",
+ "palette / print / default / --ac-fill": "#000000",
+ "palette / print / default / --ac-fill-bright": "#000000",
+ "palette / print / default / --ac-on-fill": "#ffffff",
+ "palette / print / default / --ac-stroke": "#000000",
+ "palette / print / default / p-status / legible": "AA",
+ "palette / print / default / p-title / legible": "AA",
+ "palette / print / default / p-filled / legible": "AA",
+ "palette / print / plasma-neon / --ac-screen": "#ffffff",
+ "palette / print / plasma-neon / --ac-screen-raised": "#f2f2f2",
+ "palette / print / plasma-neon / --ac-screen-well": "#ffffff",
+ "palette / print / plasma-neon / --ac-ink": "#000000",
+ "palette / print / plasma-neon / --ac-ink-dim": "#333333",
+ "palette / print / plasma-neon / --ac-fill": "#000000",
+ "palette / print / plasma-neon / --ac-fill-bright": "#000000",
+ "palette / print / plasma-neon / --ac-on-fill": "#ffffff",
+ "palette / print / plasma-neon / --ac-stroke": "#000000",
+ "palette / print / plasma-neon / p-status / legible": "AA",
+ "palette / print / plasma-neon / p-title / legible": "AA",
+ "palette / print / plasma-neon / p-filled / legible": "AA",
+ "palette / print / crt-p3 / --ac-screen": "#ffffff",
+ "palette / print / crt-p3 / --ac-screen-raised": "#f2f2f2",
+ "palette / print / crt-p3 / --ac-screen-well": "#ffffff",
+ "palette / print / crt-p3 / --ac-ink": "#000000",
+ "palette / print / crt-p3 / --ac-ink-dim": "#333333",
+ "palette / print / crt-p3 / --ac-fill": "#000000",
+ "palette / print / crt-p3 / --ac-fill-bright": "#000000",
+ "palette / print / crt-p3 / --ac-on-fill": "#ffffff",
+ "palette / print / crt-p3 / --ac-stroke": "#000000",
+ "palette / print / crt-p3 / p-status / legible": "AA",
+ "palette / print / crt-p3 / p-title / legible": "AA",
+ "palette / print / crt-p3 / p-filled / legible": "AA",
+ "palette / print / crt-p7 / --ac-screen": "#ffffff",
+ "palette / print / crt-p7 / --ac-screen-raised": "#f2f2f2",
+ "palette / print / crt-p7 / --ac-screen-well": "#ffffff",
+ "palette / print / crt-p7 / --ac-ink": "#000000",
+ "palette / print / crt-p7 / --ac-ink-dim": "#333333",
+ "palette / print / crt-p7 / --ac-fill": "#000000",
+ "palette / print / crt-p7 / --ac-fill-bright": "#000000",
+ "palette / print / crt-p7 / --ac-on-fill": "#ffffff",
+ "palette / print / crt-p7 / --ac-stroke": "#000000",
+ "palette / print / crt-p7 / p-status / legible": "AA",
+ "palette / print / crt-p7 / p-title / legible": "AA",
+ "palette / print / crt-p7 / p-filled / legible": "AA"
+}
diff --git a/test/computed/capture.mjs b/test/computed/capture.mjs
new file mode 100644
index 0000000..bb95756
--- /dev/null
+++ b/test/computed/capture.mjs
@@ -0,0 +1,582 @@
+#!/usr/bin/env node
+/**
+ * capture.mjs — computed-style regression for the things a SCREENSHOT CANNOT SEE.
+ *
+ * npm run test:computed compare against baselines
+ * npm run test:computed -- --update (re)write the baselines
+ *
+ * WHY THIS EXISTS, AND IT IS NOT THEORETICAL.
+ *
+ * test/visual/ freezes animation before it captures — it has to, or a blinking
+ * alarm makes every run non-deterministic. So at the frozen frame a blinking
+ * element and a stopped one are both fully opaque and look identical. It also
+ * never hovers and never presses, so the extruded key edge, the pressed edge and
+ * every :hover state are invisible to it.
+ *
+ * During the effects.css split an unterminated comment silently swallowed a live
+ * rule. stylelint passed. The build passed. All 85 screenshots passed. This
+ * suite caught it, because the rule it ate was `display: none` on an overlay
+ * whose computed value it checks.
+ *
+ * WHAT IT COVERS
+ * blink 5 blink sites x 7 page states x 4 media — which keyframe is
+ * running, at what timing function, and whether the decay filter is
+ * applied. This is the machinery with the most environment overrides
+ * and the least screenshot coverage.
+ * layers the afterimage, the meter ghost and the scroll smear, in every
+ * media that suppresses them. All are mid-decay-only effects.
+ * corners 13 controls x 8 corner scopes x 3 interaction states — including
+ * :hover and :active, which no screenshot in this repo takes.
+ *
+ * PLATFORM-INDEPENDENT, unlike the visual suite. Nothing here depends on font
+ * rasterisation, so unlike test/visual/ this one is safe to run in CI.
+ */
+import { chromium } from "playwright";
+import { mkdir, readFile, writeFile } from "node:fs/promises";
+import { fileURLToPath } from "node:url";
+import path from "node:path";
+
+const HERE = path.dirname(fileURLToPath(import.meta.url));
+const ROOT = path.resolve(HERE, "../..");
+const BASELINES = path.join(HERE, "baselines");
+const update = process.argv.includes("--update");
+
+const CSS = await readFile(path.join(ROOT, "dist/amber-console.css"), "utf8");
+
+/* Inlined rather than linked: page.setContent gives the page an about:blank
+ origin, which blocks file:// subresources — a linked stylesheet would
+ silently never apply and every probe would read the UA default. */
+const page$ = async (browser, media, body) => {
+ const ctx = await browser.newContext();
+ const p = await ctx.newPage();
+ await p.emulateMedia(media);
+ await p.setContent(
+ `${body}`
+ );
+ await p.waitForLoadState("load");
+ return { p, ctx };
+};
+
+const MEDIA = [
+ ["screen", { media: "screen", reducedMotion: "no-preference", forcedColors: "none" }],
+ ["reduced-motion", { media: "screen", reducedMotion: "reduce", forcedColors: "none" }],
+ ["forced-colors", { media: "screen", reducedMotion: "no-preference", forcedColors: "active" }],
+ ["print", { media: "print", reducedMotion: "no-preference", forcedColors: "none" }],
+];
+
+/* ---------------------------------------------------------------- blink -- */
+
+const BLINK_BODY = `
+`;
+
+const BLINK_SITES = [
+ ["blink", "#s-blink", null],
+ ["cursor", "#s-cursor", "::after"],
+ ["invalid-class", "#s-invalid-class", null],
+ ["invalid-aria", "#s-invalid-aria", null],
+ ["meter-alarm", "#s-meter", null],
+];
+
+/* P7 and P39 select the long-decay keyframe, so both are worth a column. */
+const BLINK_STATES = [
+ ["default", {}, []],
+ ["blink-off", { "data-ac-style-blink": "off" }, []],
+ ["afterglow", {}, ["ac-afterglow"]],
+ ["afterglow+blink-off", { "data-ac-style-blink": "off" }, ["ac-afterglow"]],
+ ["afterglow+p39", { "data-ac-tech": "crt", "data-ac-emitter": "p39" }, ["ac-afterglow"]],
+ ["afterglow+p7", { "data-ac-tech": "crt", "data-ac-emitter": "p7" }, ["ac-afterglow"]],
+ ["afterglow+p39+blink-off",
+ { "data-ac-tech": "crt", "data-ac-emitter": "p39", "data-ac-style-blink": "off" },
+ ["ac-afterglow"]],
+];
+
+async function blink(browser, out) {
+ for (const [mName, media] of MEDIA) {
+ for (const [sName, attrs, frameCls] of BLINK_STATES) {
+ const { p, ctx } = await page$(browser, media, BLINK_BODY);
+ await p.evaluate(({ attrs, frameCls }) => {
+ for (const [k, v] of Object.entries(attrs)) document.documentElement.setAttribute(k, v);
+ for (const c of frameCls) document.getElementById("frame").classList.add(c);
+ }, { attrs, frameCls });
+
+ for (const [label, sel, pseudo] of BLINK_SITES) {
+ out[`blink / ${mName} / ${sName} / ${label}`] = await p.evaluate(
+ ({ sel, pseudo }) => {
+ const el = document.querySelector(sel);
+ if (!el) return "MISSING";
+ const cs = getComputedStyle(el, pseudo || undefined);
+ /* Only animation-NAME and filter render. Duration and timing are
+ inert once the name is `none`, and reporting them would make an
+ `animation: none` -> `animation-name: none` refactor look like a
+ regression when nothing about the paint changed. */
+ return cs.animationName === "none"
+ ? `name=none filter=${cs.filter}`
+ : `name=${cs.animationName} ease=${cs.animationTimingFunction} dur=${cs.animationDuration} filter=${cs.filter}`;
+ },
+ { sel, pseudo }
+ );
+ }
+ await ctx.close();
+ }
+ }
+}
+
+/* --------------------------------------------------------------- layers -- */
+
+const LAYER_BODY = `
+
+
+
+
KEY
+
TAB
+
NAV
+
B
+
+
+
+
S
+
`;
+
+const LAYER_SITES = [
+ ["afterimage-btn", "#a-btn", "::after", "boxShadow"],
+ ["afterimage-tab", "#a-tab", "::after", "boxShadow"],
+ ["afterimage-nav", "#a-nav", "::after", "boxShadow"],
+ ["afterimage-badge", "#a-badge", "::after", "boxShadow"],
+ ["afterimage-td", "#a-td", "::after", "boxShadow"],
+ ["afterimage-btn-display", "#a-btn", "::after", "display"],
+ ["afterimage-td-display", "#a-td", "::after", "display"],
+ ["meterghost-display", "#a-track", "::before", "display"],
+ ["smear-child", "#child", null, "filter"],
+ ["smear-persist", "#persist", null, "filter"],
+ ["smear-sticky", "#sticky", null, "filter"],
+ ["smearbloom-display", "#persist", "::after", "display"],
+];
+
+async function layers(browser, out) {
+ for (const [mName, media] of MEDIA) {
+ for (const scrolling of [false, true]) {
+ const { p, ctx } = await page$(browser, media, LAYER_BODY);
+ await p.evaluate((s) => {
+ const f = document.getElementById("frame");
+ /* --ac-smear is what the effects module drives, on the frame. */
+ if (s) { f.setAttribute("data-ac-scrolling", ""); f.style.setProperty("--ac-smear", "1"); }
+ document.getElementById("a-track").style.setProperty("--ac-meter-value", "40");
+ }, scrolling);
+
+ for (const [label, sel, pseudo, prop] of LAYER_SITES) {
+ out[`layers / ${mName} / scroll=${scrolling} / ${label}`] = await p.evaluate(
+ ({ sel, pseudo, prop }) => {
+ const el = document.querySelector(sel);
+ return el ? getComputedStyle(el, pseudo || undefined)[prop] : "MISSING";
+ },
+ { sel, pseudo, prop }
+ );
+ }
+ await ctx.close();
+ }
+ }
+}
+
+/* -------------------------------------------------------------- corners -- */
+
+const CORNER_BODY = `
+
+
A
+
B
+
C
+
D
+
E
+
F
+
G
+
H
+
7
+
+
+
+
+
+
+
+
+
+
+
+
P
+
+
+
T
+
+
`;
+
+const CORNER_TARGETS = [
+ "#b-plain", "#b-filled", "#b-pressed", "#b-dim", "#b-disabled", "#b-ariadis",
+ "#b-block", "#b-pad", "#b-keypad", "#t-track", "#t-track-dis",
+ "#t-track-inp", "#t-track-inp-dis", "#p-panel", "#i-input",
+ "#tb-dis", "#i-input-dis",
+];
+
+/* `bare` is the CSS-only consumer — no attribute, no class, no JavaScript. It is
+ the most important column here and the one that was wrong until 2.0. */
+const CORNER_SCOPES = [
+ ["bare", {}, [], null],
+ ["flag-on", { "data-ac-style-classic": "on" }, [], null],
+ ["flag-off", { "data-ac-style-classic": "off" }, [], null],
+ ["frame-classic", {}, ["ac-classic"], null],
+ ["frame-rounded", {}, ["ac-rounded"], null],
+ ["flag-on+frame-rounded", { "data-ac-style-classic": "on" }, ["ac-rounded"], null],
+ ["self-classic", {}, [], "ac-classic"],
+ ["flag-on+self-rounded", { "data-ac-style-classic": "on" }, [], "ac-rounded"],
+];
+
+const CORNER_PROPS = ["boxShadow", "borderRadius", "alignItems", "justifyContent", "textAlign", "display"];
+
+/* THE HALO MUST NOT SURVIVE INTO FORCED COLORS OR PRINT — AT REST *OR* HOVERED.
+ The per-selector suppression in a11y.css weighs (0,1,0), so any component rule
+ with more specificity takes the halo back. That has happened twice: once from
+ a scope-prefixed rule in classic.css, once from `:hover` restatements in
+ button.css and tabs.css. Both put a full-strength discharge glow around a
+ latched control in the one mode that must contain no off-palette colour.
+ Hover is the half a screenshot can never catch. */
+async function suppression(browser, out) {
+ const BODY = ``;
+ for (const [mName, media] of MEDIA) {
+ if (mName === "screen" || mName === "reduced-motion") continue;
+ for (const scope of ["", "ac-classic", "ac-rounded"]) {
+ const { p, ctx } = await page$(browser, media, BODY);
+ if (scope) await p.evaluate((c) => document.getElementById("frame").classList.add(c), scope);
+ for (const id of ["s-btn", "s-btn-p", "s-tab", "s-track"]) {
+ for (const state of ["rest", "hover"]) {
+ if (state === "hover") await p.hover("#" + id).catch(() => {});
+ /* Anything non-transparent here is an off-palette leak. */
+ out[`suppression / ${mName} / ${scope || "none"} / ${id} / ${state}`] =
+ await p.evaluate((i) => {
+ const sh = getComputedStyle(document.getElementById(i)).boxShadow;
+ if (sh === "none") return "none";
+ const opaque = sh.split(/,(?![^(]*\))/).filter((s) => !/rgba\([^)]*,\s*0\)/.test(s));
+ return opaque.length ? `LEAK ${opaque.join(",")}` : "transparent";
+ }, id);
+ }
+ }
+ await ctx.close();
+ }
+ }
+}
+
+/* -------------------------------------------------------------- palette -- */
+
+/**
+ * THE RESOLVED PALETTE, PER MEDIA — the gate that was missing when the print
+ * stylesheet half-worked for an entire release.
+ *
+ * base/print.css re-points the semantic tokens to black-on-white on `:root`.
+ * `:root` is (0,1,0); the palettes in tokens/colors.css are
+ * `[data-ac-tech="…"][data-ac-emitter="…"]`, which is (0,2,0), and a media query
+ * adds no specificity — so print won --ac-ink, --ac-fill and --ac-stroke, which
+ * colors.css declares at :root, and LOST --ac-screen, --ac-screen-raised,
+ * --ac-screen-well and --ac-on-fill, which it does not. Filled elements printed
+ * as solid black boxes with #1e0c00 text on them: 1.05:1, on every status strip,
+ * panel title and filled key in the library.
+ *
+ * NOTHING IN THE REPOSITORY COULD SEE IT. scripts/contrast.mjs reads the token
+ * values out of colors.css and never resolves a cascade, so it only ever knew
+ * about screen. The visual suite has five print captures and they all passed —
+ * they had photographed the bug and called it the baseline, which is the one
+ * failure mode a screenshot comparison cannot report.
+ *
+ * So this probe reads the tokens off a real root, through the real cascade, in
+ * every media — and asserts the pairs a human actually reads are still legible.
+ * A palette that stops inverting on paper changes a value here and fails in CI.
+ */
+const PALETTE_TOKENS = [
+ "--ac-screen", "--ac-screen-raised", "--ac-screen-well",
+ "--ac-ink", "--ac-ink-dim", "--ac-fill", "--ac-fill-bright",
+ "--ac-on-fill", "--ac-stroke",
+];
+
+/* One gas and one phosphor: the two palettes with their own selector block that
+ print has to beat. neon also answers to :root, p3 does not, and it was p3-shaped
+ pages that printed worst. */
+const PALETTE_SCOPES = [
+ ["default", {}],
+ ["plasma-neon", { "data-ac-tech": "plasma", "data-ac-emitter": "neon" }],
+ ["crt-p3", { "data-ac-tech": "crt", "data-ac-emitter": "p3" }],
+ ["crt-p7", { "data-ac-tech": "crt", "data-ac-emitter": "p7" }],
+];
+
+const srgb = (v) => (v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4));
+const relLum = (rgb) => {
+ const [r, g, b] = rgb.map((c) => srgb(c / 255));
+ return 0.2126 * r + 0.7152 * g + 0.0722 * b;
+};
+const contrast = (a, b) => {
+ const [l1, l2] = [relLum(a), relLum(b)];
+ return (Math.max(l1, l2) + 0.05) / (Math.min(l1, l2) + 0.05);
+};
+const parse = (c) => (c.match(/\d+(\.\d+)?/g) || []).slice(0, 3).map(Number);
+/* Only rgba() with a literal zero alpha. Testing the string for a trailing
+ ", 0)" reads opaque BLACK — `rgb(0, 0, 0)` — as transparent, which is exactly
+ the colour every one of these probes is supposed to be looking at. */
+const isTransparent = (c) => {
+ const m = c.match(/rgba?\(([^)]+)\)/);
+ if (!m) return true;
+ const parts = m[1].split(",").map((s) => parseFloat(s));
+ return parts.length === 4 && parts[3] === 0;
+};
+
+async function palette(browser, out) {
+ const BODY = ``;
+
+ for (const [mName, media] of MEDIA) {
+ for (const [sName, attrs] of PALETTE_SCOPES) {
+ const { p, ctx } = await page$(browser, media, BODY);
+ await p.evaluate((a) => {
+ for (const [k, v] of Object.entries(a)) document.documentElement.setAttribute(k, v);
+ }, attrs);
+
+ for (const t of PALETTE_TOKENS) {
+ out[`palette / ${mName} / ${sName} / ${t}`] = await p.evaluate(
+ (tok) => getComputedStyle(document.documentElement).getPropertyValue(tok).trim(),
+ t
+ );
+ }
+
+ /* The point of the whole suite: inverse video has to stay readable in
+ every medium. forced-colors is exempt — the UA replaces both sides with
+ system colors there, so the author values say nothing about what a
+ reader sees. */
+ if (mName !== "forced-colors") {
+ for (const id of ["p-status", "p-title", "p-filled"]) {
+ const pair = await p.evaluate((i) => {
+ const s = getComputedStyle(document.getElementById(i));
+ return [s.color, s.backgroundColor];
+ }, id);
+ const [fg, bg] = pair.map(parse);
+ out[`palette / ${mName} / ${sName} / ${id} / legible`] = isTransparent(pair[1])
+ ? "transparent-bg"
+ : contrast(fg, bg) >= 4.5
+ ? "AA"
+ : `FAIL ${contrast(fg, bg).toFixed(2)}:1 ${pair[0]} on ${pair[1]}`;
+ }
+ }
+ await ctx.close();
+ }
+ }
+}
+
+/* ------------------------------------------------------------- meters -- */
+
+/* THE METER'S DRIVE LEVELS, WHICH NOTHING IN EITHER SUITE COULD SEE.
+ `.ac-meter--alarm` is inverse video plus blink, and the FILL is the half that
+ has to survive — blink is switched off by reduced motion, the blink flag,
+ print and forced colors, and without the fill an over-range meter is
+ indistinguishable from a healthy one in all four. `.ac-meter--dim` is the
+ opposite claim: a reading below full drive, which forced colors flattened to
+ Highlight and so reported at full strength.
+
+ NEITHER WAS MEASURABLE. The blink group above already renders an alarm meter,
+ but it records animation properties only — name, easing, duration, filter —
+ so the entire inverse-video change was invisible to it. And the only alarmed
+ meter on a baselined page lives inside server.html's `#view-storage`, which
+ ships `hidden`; the visual harness clicks `#tab-services`, so it never renders.
+ Two suites, one fixture between them, and zero coverage of the state.
+
+ Colour rather than shadow, because colour is the whole claim here — and across
+ all four media, because the three environment stylesheets each restate this
+ pair by hand and a hand-written selector list is exactly what drifts. */
+const METER_BODY = `
+`;
+
+const METER_TARGETS = [
+ "#m-plain", "#m-plain-bar", "#m-dim", "#m-dim-bar", "#m-alarm", "#m-alarm-bar",
+];
+
+async function meters(browser, out) {
+ for (const [mName, media] of MEDIA) {
+ for (const frameCls of ["", "ac-afterglow"]) {
+ const { p, ctx } = await page$(browser, media, METER_BODY);
+ if (frameCls) {
+ await p.evaluate((c) => document.getElementById("frame").classList.add(c), frameCls);
+ }
+ const scope = frameCls || "bare";
+ for (const sel of METER_TARGETS) {
+ out[`meters / ${mName} / ${scope} / ${sel}`] = await p.evaluate((sel) => {
+ const el = document.querySelector(sel);
+ if (!el) return "MISSING";
+ const cs = getComputedStyle(el);
+
+ /* SYSTEM COLOURS ARE REPORTED BY NAME, NEVER BY VALUE, and this group
+ is the only one in the file that has to care. Under forced colors
+ the UA substitutes its own emulated palette — Highlight came back
+ as rgb(55, 0, 110) here — and those numbers belong to the browser
+ build, not to this stylesheet. Every other probe in this file
+ measures something platform-neutral on purpose, because the computed
+ suite is the half of the testing that DOES run on a Linux CI runner
+ (see .github/workflows/ci.yml). Baking the emulated RGB into the
+ baseline would have made the first CI run red for a reason that is
+ not a regression. Resolving the keywords live and diffing the NAME
+ keeps the assertion — "the alarm track is Highlight" — and drops the
+ dependency on what Highlight happens to be today. */
+ /* EVERY match is reported, not the first, because several system
+ colours legitimately resolve to the same RGB — Canvas and
+ HighlightText are both white in the emulated palette, and
+ first-match-wins labelled the plain track "HighlightText" when it is
+ Canvas. Joining them is deterministic, states the ambiguity instead
+ of picking a side, and still fails loudly if the pair a rule lands
+ on ever changes. A colour that matches no keyword is a palette
+ colour and is returned as-is; those come from this stylesheet and
+ are the same everywhere. */
+ const named = (c) => {
+ if (c === "-" || !matchMedia("(forced-colors: active)").matches) return c;
+ const probe = document.createElement("span");
+ probe.style.display = "none";
+ document.body.appendChild(probe);
+ const hits = [];
+ for (const k of ["Canvas", "CanvasText", "Highlight", "HighlightText", "GrayText"]) {
+ probe.style.color = k;
+ if (getComputedStyle(probe).color === c) hits.push(k);
+ }
+ probe.remove();
+ return hits.length ? hits.join("|") : c;
+ };
+ /* The bar is a repeating-linear-gradient, so its ink is the first
+ colour in background-image rather than background-color. Reported as
+ one field so a track and a bar read the same way in the diff. */
+ const ink = (cs.backgroundImage.match(/rgba?\([^)]*\)/) || [cs.backgroundColor])[0];
+ /* The lagging ghost only exists under .ac-afterglow, and on an alarmed
+ track it has to invert with the component or it paints the colour of
+ the track behind it and the drain goes invisible. */
+ const ghost = getComputedStyle(el, "::before");
+ /* `display: none` counts as absent, not just missing content. The
+ forced-colors block in base/a11y.css hides this ghost outright — a
+ trailing bar is a low-contrast duplicate of the live one, which is
+ what that mode exists to prevent — and reading only `content` made
+ the baseline report a colour for a pseudo-element that is never
+ painted. */
+ const ghostInk = ghost.content === "none" || ghost.display === "none"
+ ? "-"
+ : (ghost.backgroundImage.match(/rgba?\([^)]*\)/) || ["-"])[0];
+ return `ink=${named(ink)} shadow=${cs.boxShadow === "none" ? "none" : "yes"} ghost=${named(ghostInk)}`;
+ }, sel);
+ }
+ await ctx.close();
+ }
+ }
+}
+
+async function corners(browser, out) {
+ const { p, ctx } = await page$(browser, MEDIA[0][1], CORNER_BODY);
+ for (const [label, attrs, frameCls, selfCls] of CORNER_SCOPES) {
+ for (const state of ["rest", "hover", "active"]) {
+ await p.setContent(
+ `${CORNER_BODY}`
+ );
+ await p.evaluate(({ attrs, frameCls, selfCls, targets }) => {
+ for (const [k, v] of Object.entries(attrs)) document.documentElement.setAttribute(k, v);
+ for (const c of frameCls) document.getElementById("frame").classList.add(c);
+ if (selfCls) for (const t of targets) document.querySelector(t)?.classList.add(selfCls);
+ }, { attrs, frameCls, selfCls, targets: CORNER_TARGETS });
+
+ for (const sel of CORNER_TARGETS) {
+ if (state !== "rest") {
+ const box = await p.locator(sel).boundingBox().catch(() => null);
+ if (!box) { out[`corners / ${label} / ${state} / ${sel}`] = "NOBOX"; continue; }
+ await p.mouse.move(box.x + box.width / 2, box.y + box.height / 2);
+ if (state === "active") await p.mouse.down();
+ }
+ out[`corners / ${label} / ${state} / ${sel}`] = await p.evaluate(
+ ({ sel, props }) => {
+ const el = document.querySelector(sel);
+ if (!el) return "MISSING";
+ const cs = getComputedStyle(el);
+ return props.map((k) => `${k}=${cs[k]}`).join(" ; ");
+ },
+ { sel, props: CORNER_PROPS }
+ );
+ if (state === "active") await p.mouse.up();
+ }
+ }
+ }
+ await ctx.close();
+}
+
+/* ----------------------------------------------------------------- main -- */
+
+const browser = await chromium.launch();
+const out = {};
+await blink(browser, out);
+await layers(browser, out);
+await meters(browser, out);
+await corners(browser, out);
+await suppression(browser, out);
+await palette(browser, out);
+await browser.close();
+
+await mkdir(BASELINES, { recursive: true });
+const file = path.join(BASELINES, "computed.json");
+const next = JSON.stringify(out, null, 2) + "\n";
+
+if (update) {
+ await writeFile(file, next);
+ console.log(`\n ${Object.keys(out).length} probes, baselines updated\n`);
+ process.exit(0);
+}
+
+let prev;
+try {
+ prev = JSON.parse(await readFile(file, "utf8"));
+} catch {
+ console.error(
+ `\n no baseline at ${path.relative(ROOT, file)} — run:\n` +
+ ` npm run test:computed -- --update\n`
+ );
+ process.exit(1);
+}
+
+const keys = [...new Set([...Object.keys(prev), ...Object.keys(out)])].sort();
+const diffs = keys.filter((k) => prev[k] !== out[k]);
+
+for (const k of diffs) {
+ console.error(` CHANGED ${k}\n before ${prev[k] ?? "(absent)"}\n after ${out[k] ?? "(absent)"}`);
+}
+console.log(
+ `\n ${Object.keys(out).length} probes, ${diffs.length} change(s)` +
+ (diffs.length ? " — review, then re-run with --update if intended\n" : "\n")
+);
+process.exit(diffs.length ? 1 : 0);
diff --git a/test/visual/baselines/console-1280-print.png b/test/visual/baselines/console-1280-print.png
index b41e21d..f4f3f21 100644
Binary files a/test/visual/baselines/console-1280-print.png and b/test/visual/baselines/console-1280-print.png differ
diff --git a/test/visual/baselines/console-1440-forced-colors.png b/test/visual/baselines/console-1440-forced-colors.png
index 42c9d27..b074b2a 100644
Binary files a/test/visual/baselines/console-1440-forced-colors.png and b/test/visual/baselines/console-1440-forced-colors.png differ
diff --git a/test/visual/baselines/console-1440-reduced-motion.png b/test/visual/baselines/console-1440-reduced-motion.png
index de20b97..609f650 100644
Binary files a/test/visual/baselines/console-1440-reduced-motion.png and b/test/visual/baselines/console-1440-reduced-motion.png differ
diff --git a/test/visual/baselines/console-1440-sims-off.png b/test/visual/baselines/console-1440-sims-off.png
index 33f2108..26dbc90 100644
Binary files a/test/visual/baselines/console-1440-sims-off.png and b/test/visual/baselines/console-1440-sims-off.png differ
diff --git a/test/visual/baselines/console-1440-sims-on.png b/test/visual/baselines/console-1440-sims-on.png
index 2784266..5c26fea 100644
Binary files a/test/visual/baselines/console-1440-sims-on.png and b/test/visual/baselines/console-1440-sims-on.png differ
diff --git a/test/visual/baselines/console-390-sims-off.png b/test/visual/baselines/console-390-sims-off.png
index ec7d3f8..d8e2c1d 100644
Binary files a/test/visual/baselines/console-390-sims-off.png and b/test/visual/baselines/console-390-sims-off.png differ
diff --git a/test/visual/baselines/console-390-sims-on.png b/test/visual/baselines/console-390-sims-on.png
index c93f1e1..2a76c8b 100644
Binary files a/test/visual/baselines/console-390-sims-on.png and b/test/visual/baselines/console-390-sims-on.png differ
diff --git a/test/visual/baselines/guide-1280-print.png b/test/visual/baselines/guide-1280-print.png
index 356d4a3..e973886 100644
Binary files a/test/visual/baselines/guide-1280-print.png and b/test/visual/baselines/guide-1280-print.png differ
diff --git a/test/visual/baselines/guide-1440-forced-colors.png b/test/visual/baselines/guide-1440-forced-colors.png
index 23fbd11..4b012c6 100644
Binary files a/test/visual/baselines/guide-1440-forced-colors.png and b/test/visual/baselines/guide-1440-forced-colors.png differ
diff --git a/test/visual/baselines/guide-1440-reduced-motion.png b/test/visual/baselines/guide-1440-reduced-motion.png
index 2eb5f81..c75d960 100644
Binary files a/test/visual/baselines/guide-1440-reduced-motion.png and b/test/visual/baselines/guide-1440-reduced-motion.png differ
diff --git a/test/visual/baselines/guide-1440-sims-off.png b/test/visual/baselines/guide-1440-sims-off.png
index 08faa35..7180aa7 100644
Binary files a/test/visual/baselines/guide-1440-sims-off.png and b/test/visual/baselines/guide-1440-sims-off.png differ
diff --git a/test/visual/baselines/guide-1440-sims-on.png b/test/visual/baselines/guide-1440-sims-on.png
index 3faad96..e3d2752 100644
Binary files a/test/visual/baselines/guide-1440-sims-on.png and b/test/visual/baselines/guide-1440-sims-on.png differ
diff --git a/test/visual/baselines/guide-390-sims-off.png b/test/visual/baselines/guide-390-sims-off.png
index 8fb6fb1..44c9c3a 100644
Binary files a/test/visual/baselines/guide-390-sims-off.png and b/test/visual/baselines/guide-390-sims-off.png differ
diff --git a/test/visual/baselines/guide-390-sims-on.png b/test/visual/baselines/guide-390-sims-on.png
index 56cd168..b8c6c70 100644
Binary files a/test/visual/baselines/guide-390-sims-on.png and b/test/visual/baselines/guide-390-sims-on.png differ
diff --git a/test/visual/baselines/guide-controls-1280-print.png b/test/visual/baselines/guide-controls-1280-print.png
new file mode 100644
index 0000000..320646c
Binary files /dev/null and b/test/visual/baselines/guide-controls-1280-print.png differ
diff --git a/test/visual/baselines/guide-controls-1440-forced-colors.png b/test/visual/baselines/guide-controls-1440-forced-colors.png
new file mode 100644
index 0000000..59d7404
Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-forced-colors.png differ
diff --git a/test/visual/baselines/guide-controls-1440-reduced-motion.png b/test/visual/baselines/guide-controls-1440-reduced-motion.png
new file mode 100644
index 0000000..f332036
Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-reduced-motion.png differ
diff --git a/test/visual/baselines/guide-controls-1440-rounded.png b/test/visual/baselines/guide-controls-1440-rounded.png
new file mode 100644
index 0000000..6b90854
Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-rounded.png differ
diff --git a/test/visual/baselines/guide-controls-1440-sims-off.png b/test/visual/baselines/guide-controls-1440-sims-off.png
new file mode 100644
index 0000000..3dd7d35
Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-sims-off.png differ
diff --git a/test/visual/baselines/guide-controls-1440-sims-on.png b/test/visual/baselines/guide-controls-1440-sims-on.png
new file mode 100644
index 0000000..2690aae
Binary files /dev/null and b/test/visual/baselines/guide-controls-1440-sims-on.png differ
diff --git a/test/visual/baselines/guide-controls-390-sims-off.png b/test/visual/baselines/guide-controls-390-sims-off.png
new file mode 100644
index 0000000..7e4ae8e
Binary files /dev/null and b/test/visual/baselines/guide-controls-390-sims-off.png differ
diff --git a/test/visual/baselines/guide-controls-390-sims-on.png b/test/visual/baselines/guide-controls-390-sims-on.png
new file mode 100644
index 0000000..556cf80
Binary files /dev/null and b/test/visual/baselines/guide-controls-390-sims-on.png differ
diff --git a/test/visual/baselines/radar-1280-print.png b/test/visual/baselines/radar-1280-print.png
new file mode 100644
index 0000000..857be35
Binary files /dev/null and b/test/visual/baselines/radar-1280-print.png differ
diff --git a/test/visual/baselines/radar-1440-forced-colors.png b/test/visual/baselines/radar-1440-forced-colors.png
new file mode 100644
index 0000000..fad028d
Binary files /dev/null and b/test/visual/baselines/radar-1440-forced-colors.png differ
diff --git a/test/visual/baselines/radar-1440-reduced-motion.png b/test/visual/baselines/radar-1440-reduced-motion.png
new file mode 100644
index 0000000..d2c3e94
Binary files /dev/null and b/test/visual/baselines/radar-1440-reduced-motion.png differ
diff --git a/test/visual/baselines/radar-1440-sims-off.png b/test/visual/baselines/radar-1440-sims-off.png
new file mode 100644
index 0000000..b7b0349
Binary files /dev/null and b/test/visual/baselines/radar-1440-sims-off.png differ
diff --git a/test/visual/baselines/radar-1440-sims-on.png b/test/visual/baselines/radar-1440-sims-on.png
new file mode 100644
index 0000000..a39eb75
Binary files /dev/null and b/test/visual/baselines/radar-1440-sims-on.png differ
diff --git a/test/visual/baselines/radar-390-sims-off.png b/test/visual/baselines/radar-390-sims-off.png
new file mode 100644
index 0000000..2b13880
Binary files /dev/null and b/test/visual/baselines/radar-390-sims-off.png differ
diff --git a/test/visual/baselines/radar-390-sims-on.png b/test/visual/baselines/radar-390-sims-on.png
new file mode 100644
index 0000000..8bacae2
Binary files /dev/null and b/test/visual/baselines/radar-390-sims-on.png differ
diff --git a/test/visual/baselines/server-1280-print.png b/test/visual/baselines/server-1280-print.png
new file mode 100644
index 0000000..1da36f0
Binary files /dev/null and b/test/visual/baselines/server-1280-print.png differ
diff --git a/test/visual/baselines/server-1440-forced-colors.png b/test/visual/baselines/server-1440-forced-colors.png
new file mode 100644
index 0000000..40d7f6e
Binary files /dev/null and b/test/visual/baselines/server-1440-forced-colors.png differ
diff --git a/test/visual/baselines/server-1440-reduced-motion.png b/test/visual/baselines/server-1440-reduced-motion.png
new file mode 100644
index 0000000..3fc909e
Binary files /dev/null and b/test/visual/baselines/server-1440-reduced-motion.png differ
diff --git a/test/visual/baselines/server-1440-sims-off.png b/test/visual/baselines/server-1440-sims-off.png
new file mode 100644
index 0000000..1583d4a
Binary files /dev/null and b/test/visual/baselines/server-1440-sims-off.png differ
diff --git a/test/visual/baselines/server-1440-sims-on.png b/test/visual/baselines/server-1440-sims-on.png
new file mode 100644
index 0000000..1583d4a
Binary files /dev/null and b/test/visual/baselines/server-1440-sims-on.png differ
diff --git a/test/visual/baselines/server-390-sims-off.png b/test/visual/baselines/server-390-sims-off.png
new file mode 100644
index 0000000..b1808b8
Binary files /dev/null and b/test/visual/baselines/server-390-sims-off.png differ
diff --git a/test/visual/baselines/server-390-sims-on.png b/test/visual/baselines/server-390-sims-on.png
new file mode 100644
index 0000000..b1808b8
Binary files /dev/null and b/test/visual/baselines/server-390-sims-on.png differ
diff --git a/test/visual/baselines/terminal-1280-print.png b/test/visual/baselines/terminal-1280-print.png
new file mode 100644
index 0000000..e5022cb
Binary files /dev/null and b/test/visual/baselines/terminal-1280-print.png differ
diff --git a/test/visual/baselines/terminal-1440-forced-colors.png b/test/visual/baselines/terminal-1440-forced-colors.png
new file mode 100644
index 0000000..ecabdf9
Binary files /dev/null and b/test/visual/baselines/terminal-1440-forced-colors.png differ
diff --git a/test/visual/baselines/terminal-1440-reduced-motion.png b/test/visual/baselines/terminal-1440-reduced-motion.png
new file mode 100644
index 0000000..4b3f13a
Binary files /dev/null and b/test/visual/baselines/terminal-1440-reduced-motion.png differ
diff --git a/test/visual/baselines/terminal-1440-sims-off.png b/test/visual/baselines/terminal-1440-sims-off.png
new file mode 100644
index 0000000..fd75da6
Binary files /dev/null and b/test/visual/baselines/terminal-1440-sims-off.png differ
diff --git a/test/visual/baselines/terminal-1440-sims-on.png b/test/visual/baselines/terminal-1440-sims-on.png
new file mode 100644
index 0000000..28fe45a
Binary files /dev/null and b/test/visual/baselines/terminal-1440-sims-on.png differ
diff --git a/test/visual/baselines/terminal-390-sims-off.png b/test/visual/baselines/terminal-390-sims-off.png
new file mode 100644
index 0000000..4a79800
Binary files /dev/null and b/test/visual/baselines/terminal-390-sims-off.png differ
diff --git a/test/visual/baselines/terminal-390-sims-on.png b/test/visual/baselines/terminal-390-sims-on.png
new file mode 100644
index 0000000..dac4b3b
Binary files /dev/null and b/test/visual/baselines/terminal-390-sims-on.png differ
diff --git a/test/visual/capture.mjs b/test/visual/capture.mjs
index e737d87..56c3711 100644
--- a/test/visual/capture.mjs
+++ b/test/visual/capture.mjs
@@ -47,24 +47,123 @@ const update = process.argv.includes("--update");
* WHAT IT DOES NOT GIVE UP: the overflow probe below walks the entire DOM
* regardless of what is screenshotted, so the responsive-collapse regression
* this suite was built for is still gated across the whole guide at every width.
+ *
+ * `click` exists for the server page and states the one thing the probe cannot
+ * reach on its own. A hidden tab panel is display:none, which reports a
+ * scrollWidth of zero — so a panel nobody opens is not measured, it is merely
+ * absent. The server demo hides its widest markup by far behind a tab (a
+ * seven-column table with a switch in every row, which overflowed a 390px frame
+ * by 214px the first time it was written), and that is exactly the regression
+ * this suite exists to catch. So the page is probed as it loads, the tab is
+ * opened, and it is probed again; the worse of the two is what gets reported,
+ * and the screenshot is taken of the opened state.
+ *
+ * `click` TAKES A LIST, because the terminal page carries five pages behind one
+ * tablist and opening only the first would leave four of the densest tables in
+ * the repo ungated. Each selector is clicked in turn and the page is probed
+ * after each; the worst figure across all of them is what gets reported. The
+ * screenshot is of the LAST one, so put the widest page last — for the terminal
+ * that is XRAT, an eight-by-eight matrix.
+ */
+/**
+ * `probeOnly` IS THE ANSWER TO THE GUIDE BECOMING EIGHT PAGES.
+ *
+ * The two jobs this file does are separable, and the split made that matter. The
+ * screenshot gates appearance and costs a PNG in git forever; the overflow probe
+ * gates responsive collapse, walks the whole DOM, and costs nothing at all. When
+ * the guide was one document, listing it once bought both. Eight chapters would
+ * buy eight times the bytes for a shape that is the same on all of them — and
+ * NOT listing them would silently drop the overflow probe from six of the seven,
+ * which is the regression this suite was actually built to catch.
+ *
+ * So every chapter is probed and two are photographed: the overview, which is
+ * the only page carrying the chapter strip and the directory cards, and CONTROLS,
+ * which is where the anchor already pointed and where the forced-colors and print
+ * fallbacks have the most to get wrong.
*/
const PAGES = [
{ name: "console", file: "docs/index.html", fullPage: true },
- { name: "guide", file: "docs/guide.html", fullPage: false, anchor: "#controls .doc-grid2" },
+ { name: "server", file: "docs/server.html", fullPage: true, click: "#tab-services" },
+ { name: "radar", file: "docs/radar.html", fullPage: true },
+ {
+ name: "terminal",
+ file: "docs/terminal.html",
+ fullPage: true,
+ click: ["#tab-depo", "#tab-govt", "#tab-indx", "#tab-fxsp", "#tab-xrat"],
+ },
+ /* The directory rather than the masthead: the cards are the new shape on this
+ page, and the board above them is already gated on four other captures. */
+ { name: "guide", file: "docs/guide.html", fullPage: false, anchor: "#chapters" },
+ { name: "guide-controls", file: "docs/guide-controls.html", fullPage: false, anchor: "#controls .doc-grid2" },
+ { name: "guide-color", file: "docs/guide-color.html", probeOnly: true },
+ { name: "guide-type", file: "docs/guide-type.html", probeOnly: true },
+ { name: "guide-effects", file: "docs/guide-effects.html", probeOnly: true },
+ { name: "guide-persistence", file: "docs/guide-persistence.html", probeOnly: true },
+ { name: "guide-display", file: "docs/guide-display.html", probeOnly: true },
+ { name: "guide-screen", file: "docs/guide-screen.html", probeOnly: true },
+ /* The two index chapters. Probed rather than photographed on the same
+ economics as the six above — but they earn the probe more than any of them,
+ because they are almost entirely WIDE TABLES, which is the one shape that
+ overflows a 390px frame without anyone noticing on a laptop. */
+ { name: "guide-reference", file: "docs/guide-reference.html", probeOnly: true },
+ { name: "guide-deprecations", file: "docs/guide-deprecations.html", probeOnly: true },
];
+/**
+ * `sims` NAMES ONE SIMULATION, or false for none. It cannot seed both any more:
+ * PLASMA and CRT are two display technologies and the module now switches either
+ * one off when the other comes on (see EXCLUSIVE_SIMS in src/amber-console.js),
+ * so a run that wrote both keys would capture whichever survived restore rather
+ * than what it asked for — a baseline nobody could read the intent of.
+ *
+ * PLASMA carries the "sims-on" cases because it is what the demo ships lit and
+ * therefore what a first visitor sees. CRT is not left uncovered: it takes the
+ * reduced-motion case, which is a better home for it than plasma was. Nearly
+ * every moving part in the system belongs to the tube — the retrace sweep, the
+ * line drift, the flicker and the afterglow — so a capture that exists to prove
+ * the motion fallbacks fire is now pointed at the thing that moves most.
+ */
+/**
+ * `styles` SEEDS THE STYLE FLAGS, and `only` narrows a case to named pages.
+ *
+ * The rounded case is the reason both exist. CLASSIC IS THE DEFAULT, so the seven
+ * cases above already gate it on all five pages; what nothing covered was the
+ * page with it switched OFF, which is a whole second set of corner geometry and an
+ * .ac-btn alignment reset. This case is that, and it is CONTROLS-only on the same
+ * economics the `fullPage` note above argues: five full-page captures would be
+ * five of the largest files in the repo, re-written on every --update, to gate a
+ * shape identical on all of them. The guide's CONTROLS chapter is a viewport
+ * capture and the paired specimen lives there, so one case costs a screen and
+ * covers buttons, a pad, a toggle and the panels around them.
+ *
+ * WHAT THIS GIVES UP: the rounded path is not gated on the console, server, radar
+ * or terminal boards. It is the same CSS on all five — a token override and a
+ * corner shape, no per-page markup — so a regression that spared the guide would
+ * be a strange one. Every other case still walks every page.
+ */
const CASES = [
- { id: "1440-sims-on", width: 1440, height: 900, sims: true },
+ { id: "1440-sims-on", width: 1440, height: 900, sims: "plasma" },
{ id: "1440-sims-off", width: 1440, height: 900, sims: false },
- { id: "390-sims-on", width: 390, height: 844, sims: true },
+ { id: "390-sims-on", width: 390, height: 844, sims: "plasma" },
{ id: "390-sims-off", width: 390, height: 844, sims: false },
- { id: "1440-reduced-motion", width: 1440, height: 900, sims: true, reducedMotion: "reduce" },
- { id: "1440-forced-colors", width: 1440, height: 900, sims: true, forcedColors: "active" },
- { id: "1280-print", width: 1280, height: 800, sims: true, media: "print" },
+ { id: "1440-reduced-motion", width: 1440, height: 900, sims: "crt", reducedMotion: "reduce" },
+ { id: "1440-forced-colors", width: 1440, height: 900, sims: "plasma", forcedColors: "active" },
+ { id: "1280-print", width: 1280, height: 800, sims: "plasma", media: "print" },
+ {
+ id: "1440-rounded",
+ width: 1440,
+ height: 900,
+ sims: "plasma",
+ styles: { classic: "0" },
+ only: ["guide-controls"],
+ /* Its own anchor, because the point of the case is the corner and the paired
+ specimen is the one place both corners are in frame together. */
+ anchor: "#controls .doc-demo:has(.ac-classic)",
+ },
];
/**
- * Rasterisation noise floor — the one thing byte equality cannot promise.
+ * Rasterization noise floor — the one thing byte equality cannot promise.
*
* `backdrop-filter` is composited on the GPU and Chrome has two raster paths for
* it, picking between them per run. The output is not bit-identical: measured
@@ -151,6 +250,10 @@ async function measure(baseline, shot) {
for (const page of PAGES) {
for (const c of CASES) {
+ /* A case may name the pages it applies to. No `only` means every page, so
+ the seven that came before this option are untouched by it. */
+ if (c.only && !c.only.includes(page.name)) continue;
+
const context = await browser.newContext({
viewport: { width: c.width, height: c.height },
reducedMotion: c.reducedMotion ?? "no-preference",
@@ -158,16 +261,37 @@ for (const page of PAGES) {
deviceScaleFactor: 1,
});
- /* Seed the simulation state before the page's script reads it. */
- await context.addInitScript((on) => {
+ /* Seed the simulation state before the page's script reads it. Both keys are
+ always written, and at most one of them says "1" — leaving the other key
+ absent would hand it back to its own default, which for plasma is ON. */
+ await context.addInitScript(({ want, styles }) => {
try {
- localStorage.setItem("ac.sim.plasma", on ? "1" : "0");
+ localStorage.setItem("ac.sim.plasma", want === "plasma" ? "1" : "0");
/* CRT carries the afterglow; there is no separate key any more. */
- localStorage.setItem("ac.sim.crt", on ? "1" : "0");
+ localStorage.setItem("ac.sim.crt", want === "crt" ? "1" : "0");
+ /* The radar page fits its own tube on a first visit — CRT · P7, with the
+ CRT simulation on — because the display store is shared with the other
+ demos and a radar in neon has no flash layer to show. Every context
+ here is a fresh profile, so without this the page would seize both sim
+ keys on all seven cases and `sims-off` would stop testing anything.
+ Marking it already fitted leaves the case in charge of the simulation;
+ the display still lands on P7, because that is the radio the page
+ ships checked and there is no stored palette to override it. */
+ localStorage.setItem("ac.radar.fitted", "1");
+ localStorage.setItem("ac.term.fitted", "1");
+
+ /* STYLE FLAGS ARE SEEDED THE SAME WAY AND FOR THE SAME REASON: initStyle
+ reads storage on load, so a flag set after the fact would capture the
+ page repainting rather than the page as configured. Only the flags a
+ case names are written — an absent key means "the user never said",
+ which is the state every other case is testing and must keep. */
+ for (const [name, on] of Object.entries(styles)) {
+ localStorage.setItem(`ac.sim.style.${name}`, on);
+ }
} catch {
/* ignore */
}
- }, c.sims);
+ }, { want: c.sims, styles: c.styles ?? {} });
/* The console demo renders a live wall clock, so a byte comparison would
never match twice. Freeze time before any page script runs. */
@@ -212,10 +336,39 @@ for (const page of PAGES) {
concerned. The simulation dutifully blurred whichever tiles happened to be
mid-stitch, and a tall capture came back different roughly one run in
three. The `anchor` scroll below would trip it the same way. */
+ /* `content-visibility` HAS TO GO TOO, and for the same class of reason.
+ docs.css puts `content-visibility: auto` with `contain-intrinsic-size:
+ auto 320px` on every specimen tile, which is a real and worthwhile saving
+ on a 27,000px chapter. But `auto` means "remember the size this box was
+ the last time it rendered", so an off-screen tile's contribution to page
+ height depends on whether it has ever been scrolled through — and the
+ anchored scroll below therefore lands at a slightly different offset
+ depending on render timing. That surfaces as the whole viewport shifted
+ one pixel, which a full-frame comparison scores as ~76% changed.
+
+ Forcing every tile to lay out for real makes the capture depend on the CSS
+ and nothing else. It costs a little time on the tall chapters and buys a
+ suite that cannot fail for a reason that is not a regression. */
+ /* .ac-retrace GOES FOR THE SAME REASON .ac-persist::after DOES: it is an
+ overlay whose only meaningful state is in motion. The band is the tube's
+ rolling unsteadiness — it exists at a POSITION, sweeping down the frame
+ every 13s — so freezing the animation does not photograph it dimmed, it
+ photographs it parked at top:0 with no transform, lying across the top
+ quarter of every CRT page in a place no reader will ever see it.
+
+ This was invisible until the band started carrying a --ac-flicker-scaled
+ trough (sim/crt.css); before that it was a near-transparent screen-blended
+ wash and the parked copy scored under tolerance by luck. The band still
+ gets gated: reduced-motion drops it in sim/frame.css, forced-colors and
+ print in a11y.css and print.css, and all three of those cases are captured
+ here. What is not gated is the one thing this suite cannot photograph
+ anyway, which is where it is at a given instant. */
await tab.addStyleTag({
content:
"*,*::before,*::after{animation:none !important;transition:none !important}" +
+ "*{content-visibility:visible !important}" +
".ac-persist::after{display:none !important}" +
+ ".ac-retrace{display:none !important}" +
".ac-afterglow[data-ac-scrolling]>*{filter:none !important}",
});
await tab.waitForTimeout(250);
@@ -224,13 +377,32 @@ for (const page of PAGES) {
so the simulation overlays can be positioned against it, which silently
CLIPS a too-wide row instead of scrolling it. So also look for any
element whose content is wider than its box. */
- const overflow = await tab.evaluate(() => {
+ const probe = () => tab.evaluate(() => {
const d = document.documentElement;
let worst = d.scrollWidth - d.clientWidth;
for (const el of document.body.querySelectorAll("*")) {
/* .ac-sr-only is a 1px clip box and .ac-spinner is a 1ch window over a
- 4-line block — both are wider than their box on purpose. */
- if (el.closest(".ac-sr-only, .ac-spinner")) continue;
+ 4-line block — both are wider than their box on purpose.
+
+ .doc-ppi — the radar dial — is the third of that kind and the least
+ obvious. EVERYTHING ON IT IS POLAR: a bearing mark, a contact and the
+ bearing line are each a ZERO-WIDTH arm pinned at the center of the
+ dial and rotated to their bearing, carrying their mark centered on the
+ far end. Both halves of that defeat this measurement. A zero-width box
+ reports its mark's full width as overflow, and scroll overflow is
+ measured on axis-aligned bounds, so a rotated arm reports a box far
+ wider than the thing at the end of it — while every one of those marks
+ is inside the circle and clipped by nothing.
+
+ The dial cannot overflow its own parent regardless: it carries
+ aspect-ratio: 1 and a max-width, and every box above it is still
+ probed at every width.
+
+ .doc-ticker is the fourth and is the same shape of thing as the
+ spinner: a marquee is CONTENT WIDER THAN ITS BOX as its entire
+ definition, translated through a fixed window. Measuring it reports
+ the length of the tape. */
+ if (el.closest(".ac-sr-only, .ac-spinner, .doc-ppi, .doc-ticker")) continue;
/* Form controls scroll their own value; that is not a layout bug. */
if (["INPUT", "TEXTAREA", "SELECT"].includes(el.tagName)) continue;
@@ -247,17 +419,41 @@ for (const page of PAGES) {
return worst;
});
+ let overflow = await probe();
+
+ /* Open the tabs the page ships closed, then probe what each one revealed.
+ See the note on `click` above: a display:none panel measures zero, so this
+ is the only way their markup is gated at all. */
+ for (const selector of [page.click ?? []].flat()) {
+ await tab.click(selector);
+ await tab.waitForTimeout(120);
+ overflow = Math.max(overflow, await probe());
+ }
+
/* Scroll AFTER the overflow probe, so the probe always measures the page in
its loaded state. `instant` and a settle frame because a smooth scroll is
- still in flight when the shutter opens. */
- if (page.anchor) {
+ still in flight when the shutter opens.
+
+ A CASE MAY POINT SOMEWHERE ELSE THAN ITS PAGE DOES. The page's anchor is
+ chosen for what is worth one screen in general; a case that exists to gate
+ one feature is worth pointing at that feature instead. */
+ const anchor = c.anchor ?? page.anchor;
+ if (anchor) {
await tab.evaluate((sel) => {
document.querySelector(sel)?.scrollIntoView({ behavior: "instant", block: "start" });
- }, page.anchor);
+ }, anchor);
await tab.waitForTimeout(120);
}
const name = `${page.name}-${c.id}.png`;
+
+ /* Probed, not photographed — see the note on PAGES. */
+ if (page.probeOnly) {
+ results.push({ name, status: "probed", overflow, errors });
+ await context.close();
+ continue;
+ }
+
const shot = await tab.screenshot({ fullPage: page.fullPage });
const target = path.join(BASELINES, name);