",
+ "css": ".ds-sky { position: relative; padding: 48px 16px; background: var(--night, #040b26); color: var(--ink, #eef2ff); text-align: center; font: 15px/1.5 \"Segoe UI Variable Text\", \"Segoe UI\", system-ui, sans-serif; } .ds-sky span { position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--c); opacity: .7; animation: ds-twinkle 4s ease-in-out infinite; } @keyframes ds-twinkle { 50% { opacity: .15; } } .ds-h1 { margin: 0; font-size: clamp(24px, 6vw, 30px); font-weight: 650; line-height: 1.2; letter-spacing: -.01em; } .ds-sub { margin: 8px 0 0; color: var(--ink-2, #a9b6d8); } @media (prefers-reduced-motion: reduce) { .ds-sky span { animation: none; } }"
+ }
+ ],
+ "narrative": {
+ "northStar": "The Owl's Night Watch",
+ "overview": "A calm night sky, one lit card, and a smooth, softly shaded orange owl perched on its top edge who watches you type. Everything around the owl is quiet and dark: deep navy ground, a few small round stars, dark outlined pill controls, and the platform's own UI face. The owl is the only warm thing on the screen and the only thing that moves with purpose; its reactions (eyes following the caret, a head-shake on a wrong password, a hop on success) carry the feedback alongside plain text, never instead of it.\n\nThe world is rendered natural, not game-like. The user explicitly rejected a pixel-art or game look (\"it must not look like a game, be natural\"): shapes are smooth vector curves with radial-gradient shading, stars are soft round dots, motion is short and eased. This is an Operate tool for an ops team, so density stays low and copy stays plain.\n\nThe system has been built on one surface so far (the sign-in page). Anything below described as a single instance has only that one use in the build and should be treated as provisional, not a pattern.",
+ "keyCharacteristics": [
+ "Deep navy night ground with a sparse, seeded field of small round stars, kept clear of text and controls.",
+ "One warm accent, owl orange, reserved for the owl, focus rings, caret, selection and the hover border.",
+ "Dark outlined pill controls for both the field and the button, after the user's HOOT button.",
+ "Platform UI face for every text role, including the product name.",
+ "A smooth shaded owl mascot whose states are the page's expressive feedback; reduced motion turns them all off."
+ ],
+ "rules": [
+ { "name": "The One Warm Thing Rule", "body": "Orange belongs to the owl. In the UI it appears only as a signal (focus, caret, selection, hover border, the caps-lock note); controls and surfaces stay navy.", "section": "colors" },
+ { "name": "The Clear Sky Rule", "body": "Stars never sit behind text, the owl or the card; they are placed with a 10px keep-out around each and redrawn on resize from a fixed seed so they do not jump.", "section": "colors" },
+ { "name": "The Single Lift Rule", "body": "One raised surface per screen; controls are outlined, not shadowed.", "section": "elevation" }
+ ],
+ "dos": [
+ "Do keep the ground Night Navy and let the owl be the only warm, shaded object on screen.",
+ "Do use Owl Orange for focus rings (2px outline) on every interactive element.",
+ "Do build controls as dark outlined pills (999px, 46px tall) for both fields and primary buttons.",
+ "Do say in text whatever the owl expresses; the owl is decoration with feedback, never the only feedback.",
+ "Do give every owl or star animation a reduced-motion path that turns it off.",
+ "Do keep stars small (1.5 to 3px), round, sparse, seeded and clear of text and controls.",
+ "Do use clearly fake sample data in any design, mockup or screenshot (real run output is PHI)."
+ ],
+ "donts": [
+ "Don't make it look like a game: no pixel art, stepped edges, chunky pixel fonts or arcade effects (user decision, 22 Oct).",
+ "Don't fill controls with orange; orange is a signal, not a surface.",
+ "Don't add shadows to controls; the card is the only lifted object.",
+ "Don't add a second type family for display; hierarchy comes from weight and size in the platform face."
+ ]
+ }
+}
diff --git a/.impeccable/surfaces/src-ui-login-html.md b/.impeccable/surfaces/src-ui-login-html.md
index 5690148..ffa34b0 100644
--- a/.impeccable/surfaces/src-ui-login-html.md
+++ b/.impeccable/surfaces/src-ui-login-html.md
@@ -19,6 +19,6 @@ STORY: The ops user sees the owl, types the G2 password, and the owl's eyes foll
FIRST VIEWPORT: Centered column. Product name "Charge Billed Automation", then the card with the owl perched on its top edge (feet on the border), password field with show/hide, full-width pill Sign in. The night sky fills the viewport.
-FORM: Pinned by the user (owl screenshot); no roll was run. seed: none (user-pinned direction)
+FORM: The user's pinned owl world (their screenshot, then "be natural", not game-like) governs; the roll was run for the record and does not override it. seed:60012e4e290e73f6
FINISH: unreviewed and undocumented is unfinished; this build ends with the finish review, the verdict, DESIGN.md, and every shipping raster carrying its provenance
diff --git a/DESIGN.md b/DESIGN.md
new file mode 100644
index 0000000..707b05c
--- /dev/null
+++ b/DESIGN.md
@@ -0,0 +1,233 @@
+---
+name: Charge Billed Automation
+description: A local ops tool for running the Charge Billed bot, set in a quiet night sky watched by an orange owl.
+colors:
+ night: "#040b26"
+ panel: "#0c1638"
+ panel-line: "#26335e"
+ field: "#050c28"
+ field-line: "#56689c"
+ pill-fill: "#0a1435"
+ pill-fill-hover: "#101d45"
+ pill-line: "#c9d5f2"
+ pill-text: "#ffffff"
+ ink: "#eef2ff"
+ ink-2: "#a9b6d8"
+ owl: "#ec7d33"
+ owl-soft: "#f5a25a"
+ error: "#ff9a9a"
+typography:
+ display:
+ fontFamily: "Segoe UI Variable Text, Segoe UI, system-ui, -apple-system, sans-serif"
+ fontSize: "clamp(24px, 6vw, 30px)"
+ fontWeight: 650
+ lineHeight: 1.2
+ letterSpacing: "-0.01em"
+ title:
+ fontFamily: "Segoe UI Variable Text, Segoe UI, system-ui, -apple-system, sans-serif"
+ fontSize: "20px"
+ fontWeight: 700
+ body:
+ fontFamily: "Segoe UI Variable Text, Segoe UI, system-ui, -apple-system, sans-serif"
+ fontSize: "15px"
+ fontWeight: 400
+ lineHeight: 1.5
+ label:
+ fontFamily: "Segoe UI Variable Text, Segoe UI, system-ui, -apple-system, sans-serif"
+ fontSize: "15px"
+ fontWeight: 600
+ lineHeight: 1.5
+ button:
+ fontFamily: "Segoe UI Variable Text, Segoe UI, system-ui, -apple-system, sans-serif"
+ fontSize: "15px"
+ fontWeight: 600
+ letterSpacing: "0.02em"
+ input:
+ fontFamily: "Segoe UI Variable Text, Segoe UI, system-ui, -apple-system, sans-serif"
+ fontSize: "16px"
+ fontWeight: 400
+ letterSpacing: "0.04em"
+ message:
+ fontFamily: "Segoe UI Variable Text, Segoe UI, system-ui, -apple-system, sans-serif"
+ fontSize: "14px"
+ fontWeight: 400
+ lineHeight: 1.5
+rounded:
+ card: "18px"
+ pill: "999px"
+ round: "50%"
+spacing:
+ tight: "8px"
+ control-gap: "20px"
+ card: "24px"
+components:
+ button-pill:
+ backgroundColor: "{colors.pill-fill}"
+ textColor: "{colors.pill-text}"
+ typography: "{typography.button}"
+ rounded: "{rounded.pill}"
+ height: "46px"
+ width: "100%"
+ button-pill-hover:
+ backgroundColor: "{colors.pill-fill-hover}"
+ input-pill:
+ backgroundColor: "{colors.field}"
+ textColor: "{colors.ink}"
+ typography: "{typography.input}"
+ rounded: "{rounded.pill}"
+ padding: "0 52px 0 20px"
+ height: "46px"
+ width: "100%"
+ icon-button-reveal:
+ textColor: "{colors.ink-2}"
+ rounded: "{rounded.round}"
+ size: "38px"
+ card:
+ backgroundColor: "{colors.panel}"
+ rounded: "{rounded.card}"
+ padding: "28px 24px 24px"
+ width: "min(360px, 100%)"
+---
+
+# Design System: Charge Billed Automation
+
+## Overview
+
+**Creative North Star: "The Owl's Night Watch"**
+
+A calm night sky, one lit card, and a smooth, softly shaded orange owl perched on its top edge who watches you type. Everything around the owl is quiet and dark: deep navy ground, a few small round stars, dark outlined pill controls, and the platform's own UI face. The owl is the only warm thing on the screen and the only thing that moves with purpose; its reactions (eyes following the caret, a head-shake on a wrong password, a hop on success) carry the feedback alongside plain text, never instead of it.
+
+The world is rendered natural, not game-like. The user explicitly rejected a pixel-art or game look ("it must not look like a game, be natural"): shapes are smooth vector curves with radial-gradient shading, stars are soft round dots, motion is short and eased. This is an Operate tool for an ops team, so density stays low and copy stays plain.
+
+The system has been built on one surface so far (the sign-in page). Anything below described as a single instance has only that one use in the build and should be treated as provisional, not a pattern.
+
+**Key Characteristics:**
+- Deep navy night ground with a sparse, seeded field of small round stars, kept clear of text and controls.
+- One warm accent, owl orange, reserved for the owl, focus rings, caret, selection and the hover border.
+- Dark outlined pill controls for both the field and the button, after the user's HOOT button.
+- Platform UI face for every text role, including the product name.
+- A smooth shaded owl mascot whose states are the page's expressive feedback; reduced motion turns them all off.
+
+## Colors
+
+A cold, near-monochrome navy ramp lit by a single warm orange; the warmth belongs to the owl.
+
+### Primary
+- **Owl Orange** (`owl`): the owl's mid-tone and the system's only accent. Used for focus outlines on every control, the hover border on the pill button, the text caret, and the text-selection background (with Night as the selected text). It is never a fill for controls.
+- **Lamplight Orange** (`owl-soft`): the gentler orange for advisory text, currently only the "Caps Lock is on" note (single instance).
+
+### Neutral
+- **Night Navy** (`night`): the page ground and the sky. Also the scrollbar track.
+- **Card Navy** (`panel`): the one raised surface, the sign-in card.
+- **Card Edge** (`panel-line`): the card's 1px border and the scrollbar thumb.
+- **Well Navy** (`field`): the input fill, slightly darker than the card so the field reads as recessed.
+- **Field Edge** (`field-line`): the input's resting 1px border (about 3.4:1 against the field).
+- **Button Navy** (`pill-fill`) and **Button Navy Lifted** (`pill-fill-hover`): the pill button's fill at rest and on hover. These live as literal values in the button rule, not as custom properties.
+- **Moonlight Edge** (`pill-line`): the button's 1.5px outline. At 10% alpha it is also the reveal icon's hover wash.
+- **Starlight Ink** (`ink`): primary text and input text.
+- **Mist Ink** (`ink-2`): secondary text (the subtitle, body copy under the signed-in title) and the resting reveal icon.
+- **Pure White** (`pill-text`): the pill button label only.
+
+### Semantic
+- **Soft Alarm** (`error`): error message text and the invalid field's border and focus outline. A light coral chosen to read on navy, not a saturated red.
+
+### Star field
+Stars are drawn by script from four colors (Sky Blue `#6ea8ff`, Teal `#4fd1c5`, Ember `#f29c4b`, Frost `#dfe7ff`), 1.5 to 3px, 0.45 to 0.9 opacity, about a third twinkling. These are illustration values, not UI tokens.
+
+### Named Rules
+**The One Warm Thing Rule.** Orange belongs to the owl. In the UI it appears only as a signal (focus, caret, selection, hover border, the caps-lock note); controls and surfaces stay navy.
+
+**The Clear Sky Rule.** Stars never sit behind text, the owl or the card; they are placed with a 10px keep-out around each and redrawn on resize from a fixed seed so they do not jump.
+
+## Typography
+
+**Display Font:** Segoe UI Variable Text (with Segoe UI, system-ui, -apple-system, sans-serif)
+**Body Font:** the same stack
+**Label/Mono Font:** none distinct
+
+**Character:** One platform face for everything, as the direction contract specifies for this Windows-hosted ops tool. Hierarchy comes from weight and size, not from a second family.
+
+### Hierarchy
+- **Display** (650, clamp(24px, 6vw, 30px), 1.2, -0.01em, balanced wrapping): the product name above the card. Single instance.
+- **Title** (700, 20px): the signed-in confirmation heading. Single instance.
+- **Body** (400, 15px, 1.5): subtitle and running copy, usually in Mist Ink.
+- **Label** (600, 15px): field labels, 8px above the field.
+- **Button** (600, 15px, 0.02em): the pill button label.
+- **Input** (400, 16px, 0.04em): typed text; 16px keeps mobile browsers from zooming.
+- **Message** (400, 14px): the error and caps-lock lines under the field.
+
+## Layout
+
+A single centered column on a full-viewport sky. The column is anchored a fixed distance above mid-screen (top padding `max(32px, 50vh - 250px)`, 16px sides, 48px bottom) rather than vertically centered, so a message appearing in the card grows the card downward instead of moving the owl. The card is `min(360px, 100%)` wide, with its top margin reserving the owl's height (owl width × 150/160 + 12px) so the owl perches on the card's top edge with its feet 7px over the border.
+
+Spacing is small and repeated: 8px between label and field, title and subtitle, and field and message lines; 20px between the field block and the button; 24px card padding (28px at top). Card content is left-aligned inside a centered page.
+
+One breakpoint: at 420px and below the owl shrinks from 212px to 172px wide; nothing else reflows.
+
+## Elevation & Depth
+
+Mostly tonal: the night ground, the slightly lighter card, and the slightly darker recessed field carry the layering. The card is the one lifted object, with a single deep, soft ambient shadow that sinks it into the night rather than floating it. Under the owl a faint orange radial glow grounds it on the card. No other element casts a shadow.
+
+### Shadow Vocabulary
+- **Night lift** (`box-shadow: 0 18px 40px rgba(0, 3, 15, .5)`): the sign-in card only. Single instance.
+
+### Named Rules
+**The Single Lift Rule.** One raised surface per screen; controls are outlined, not shadowed.
+
+## Shapes
+
+Full round pills (999px) for both the field and the primary button; the reveal icon button is a 38px circle inset 4px into the field's right end. The card uses a gently rounded 18px corner with a 1px border. The owl is all smooth curves: dome head with ear tufts, egg body, round eyes and round glasses. Stars are circles. Nothing in the system is square-cornered or stepped.
+
+## Components
+
+### Buttons
+Dark, outlined and calm, after the user's HOOT button.
+- **Shape:** full pill (999px), 46px tall, full card width.
+- **Primary (pill):** Button Navy fill, Pure White label (600, 15px, 0.02em), 1.5px Moonlight Edge outline, 20px above it.
+- **Hover:** border turns Owl Orange and the fill lifts to Button Navy Lifted, over 0.15s ease-out.
+- **Active:** nudges down 1px.
+- **Focus:** 2px Owl Orange outline, 3px offset.
+- The only button variant in the build; there is no secondary or ghost button yet.
+
+### Inputs / Fields
+- **Style:** Well Navy fill, 1px Field Edge border, full pill (999px), 46px tall, 20px left padding and 52px right padding to clear the reveal button; Starlight Ink text at 16px with 0.04em tracking. Label sits above in Label weight.
+- **Focus:** 2px Owl Orange outline at 2px offset and the border also turns Owl Orange.
+- **Error:** when invalid, the border and focus outline turn Soft Alarm, and a Soft Alarm message (14px) appears 8px below; the message is announced and clears as soon as the user types.
+- **Caps Lock:** a Lamplight Orange note, "Caps Lock is on", appears below while the key is on and hides on blur.
+- **Reveal (show/hide password):** a 38px circular icon button inside the field's right end, Mist Ink at rest; on hover Starlight Ink with a 10% Moonlight wash; focus is a 2px Owl Orange outline at 0 offset. The icon is a standard 24-unit stroke eye (20px, 1.8 stroke, round caps and joins) that swaps to eye-off; it does not steal focus from the field. This is the build's only icon.
+
+### Cards / Containers
+- **Corner Style:** 18px.
+- **Background:** Card Navy, 1px Card Edge border.
+- **Shadow Strategy:** Night lift (see Elevation & Depth).
+- **Internal Padding:** 28px top, 24px sides and bottom.
+- Single instance: the sign-in card, which hosts the owl on its top edge.
+
+### The Owl (signature component)
+An inline SVG (viewBox 160×150, 212px wide, 172px at 420px and below), smooth and shaded with named gradients: fur (`#f8ad66` → `#ee7f36` → `#c55a1f`), darker wings (`#df6f2c` → `#b14e1a`), cream face disc (`#fff1df` → `#f2cba1`), peach belly (`#fbd6a9` → `#efb072`) with faint chevron feather marks, brown irises (`#b8692c` → `#6a3211`) with near-black pupils and white catchlights, a gradient beak, small orange feet, and round near-black glasses (`#1d1b20`) with a soft white glint. It is decorative (`aria-hidden`); every state it shows is also stated in text.
+
+States:
+- **Idle:** a breathing bob of 1.5px over 3.2s, continuous.
+- **Blink:** eyelids close for 160ms at random 2.5 to 6s intervals; skipped during the success hop.
+- **Gaze:** while the password field has focus, the irises look down and slide from left to right as the typed text (or masked dots) fills the field, tracking the caret; they recenter on blur.
+- **Empty submit (tilt):** the head tilts -10deg and back over 0.8s.
+- **Wrong password (no):** a 0.65s damped head-shake, with the glasses wobbling on a 70ms delay so they lag the head.
+- **Success (hop):** a 0.75s hop (14px, then a 3px rebound), both wings flap, and the eyes close into upward smile arcs; then the signed-in panel replaces the form and receives focus.
+- **Reduced motion:** all owl and star animation and transitions are off, blinking stops, and success goes straight to the signed-in panel. The gaze still repositions, without easing.
+
+## Do's and Don'ts
+
+### Do:
+- **Do** keep the ground Night Navy and let the owl be the only warm, shaded object on screen.
+- **Do** use Owl Orange for focus rings (2px outline) on every interactive element.
+- **Do** build controls as dark outlined pills (999px, 46px tall) for both fields and primary buttons.
+- **Do** say in text whatever the owl expresses; the owl is decoration with feedback, never the only feedback.
+- **Do** give every owl or star animation a reduced-motion path that turns it off.
+- **Do** keep stars small (1.5 to 3px), round, sparse, seeded and clear of text and controls.
+- **Do** use clearly fake sample data in any design, mockup or screenshot (real run output is PHI).
+
+### Don't:
+- **Don't** make it look like a game: no pixel art, stepped edges, chunky pixel fonts or arcade effects (user decision, 22 Oct).
+- **Don't** fill controls with orange; orange is a signal, not a surface.
+- **Don't** add shadows to controls; the card is the only lifted object.
+- **Don't** add a second type family for display; hierarchy comes from weight and size in the platform face.
diff --git a/src/ui/login.html b/src/ui/login.html
index e4f982e..f6738f9 100644
--- a/src/ui/login.html
+++ b/src/ui/login.html
@@ -17,7 +17,7 @@
--owl: #ec7d33;
--owl-soft: #f5a25a;
--error: #ff9a9a;
- --owl-w: 188px;
+ --owl-w: 212px;
--ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
color-scheme: dark;
scrollbar-color: var(--panel-line) var(--night);
@@ -51,8 +51,8 @@
display: flex;
flex-direction: column;
align-items: center;
- justify-content: center;
- padding: 32px 16px 48px;
+ /* Anchored near the middle rather than centered, so an error line grows the card downward instead of moving the owl. */
+ padding: max(32px, calc(50vh - 250px)) 16px 48px;
text-align: center;
}
h1 {
@@ -100,7 +100,7 @@
letter-spacing: .04em;
}
input:focus-visible { outline: 2px solid var(--owl); outline-offset: 2px; border-color: var(--owl); }
- input[aria-invalid="true"] { border-color: var(--error); }
+ input[aria-invalid="true"] { border-color: var(--error); outline-color: var(--error); }
.reveal {
position: absolute;
top: 4px;
@@ -163,7 +163,8 @@
.iris { transition: transform .14s ease-out; }
.lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .08s ease-out; }
.owl.blink .lid { transform: scaleY(1); }
- .owl.happy .lid { transform: scaleY(.55); }
+ .smile { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .12s ease-out; }
+ .owl.happy .smile { transform: none; }
.owl.idle #bob { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(1.5px); } }
@@ -193,7 +194,7 @@
@keyframes flap-r { 20%, 60% { transform: rotate(-32deg); } 40%, 80% { transform: rotate(-8deg); } }
@media (max-width: 420px) {
- :root { --owl-w: 164px; }
+ :root { --owl-w: 172px; }
}
@media (prefers-reduced-motion: reduce) {
.sky .tw, .owl, .owl * { animation: none !important; transition: none !important; }
@@ -229,10 +230,14 @@
+
+
+
+
@@ -253,7 +258,7 @@
-
+
@@ -262,11 +267,13 @@
+
+
@@ -274,9 +281,9 @@
-
-
-
+
+
+
@@ -318,17 +325,25 @@ const done = document.getElementById("done");
const irises = owl.querySelectorAll(".iris");
const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)");
-(function drawSky(el) {
+// Seeded so the stars stay put; none behind the text, owl or card.
+function drawSky() {
let seed = 7;
const rand = () => (seed = (seed * 16807) % 2147483647) / 2147483647;
const colors = ["#6ea8ff", "#4fd1c5", "#f29c4b", "#dfe7ff"];
+ const keepOut = [...document.querySelectorAll("h1, .sub, .card, .owl")].map(e => e.getBoundingClientRect());
let html = "";
for (let i = 0; i < 60; i++) {
- html += ``;
+ const tw = rand() < .35, x = rand() * innerWidth, y = rand() * innerHeight;
+ const size = (1.5 + rand() * 1.5).toFixed(1), color = colors[Math.floor(rand() * 4)];
+ const alpha = (.45 + rand() * .45).toFixed(2), delay = (rand() * 4).toFixed(2);
+ if (keepOut.some(r => x > r.left - 10 && x < r.right + 10 && y > r.top - 10 && y < r.bottom + 10)) continue;
+ html += ``;
}
- el.innerHTML = html;
-})(document.getElementById("sky"));
+ document.getElementById("sky").innerHTML = html;
+}
+drawSky();
+addEventListener("resize", drawSky);
function look(dx, dy) {
irises.forEach(g => { g.style.transform = `translate(${dx}px, ${dy}px)`; });