Files
tiny-worlds/web/style.css
T
mute e60fd63d2b the provider round and the provider-flow round, plus the template and box packages
the provider round (2026-11-18, batteries-included): providers are first-class entities, the config is server-written state (state/config.json), and a fresh clone boots playable -- the opencode/free singleton auto-added and discovered on the empty list, playable with zero secrets. Every request resolves a full spec {provider, model, effort}: no unset effort, the per-run params layer retired, the mind verb the only sampling source. The registry is per-provider sections (state/models.json), refine caches adjudications under the double spec tuple (state/refine-cache.json), run picks are invalidatable (a removed provider or drifted model blocks the run with the note naming what died), and the housekeeper inherits the player spec's provider default (#16 closed). The no-legacy pass died the same day it shipped: bootImport deleted (server.json is bind + contwin), the registry's v1/v2 in-memory migrations deleted (models.json rewritten on disk into the per-provider shape), bare-string model picks deleted (Chloe's run.json migrated to spec objects, shape-preserving), the clerk's create model arg deleted, apiKeyEnv and the contextWindow alias gone. The live arc proven from a bare boot: invite minted, o/f auto-added, a custom provider with a bogus key (the recognizable 401), the auth fixed (13 models), the default pair selected, and a real glm-5.3 turn through the full path. Two live findings: opencode.ai serves 89 models keyless but 401s an empty Bearer header (the auth header rides only when a key exists), and the failure log line rides stderr.

the provider-flow round (2026-11-19, GM-designed): discovery IS the probe. The add takes only the endpoint -- {slug, baseUrl} or {builtin: true}, an apiKey in the body 400s (the auth route is the only key path) -- and a working keyless listing never sees a key field. A 401/403 stands the provider broken: the entity carries a probe record (outcome ok/auth/error, detail, at), the card opens the ask, and only the explicit acts move the record -- add, key, remove-key, discover; usage errors are transient and the op's to fix, nothing in the runtime flips provider state. The auth route is probe-then-save: the candidate key checks on reception, saves only on success -- a still-refused key never reaches the config, the previous state returns, the ask repeats. Every other discovery failure refuses the add outright with rollback: an endpoint that cannot answer is not a provider, nothing stands (the old code let it stand on any failure). The remove-key control (custom providers, armed) clears and re-probes: a provider gone public lands working keyless, a locked one re-opens the ask -- which is the key-replacement path. o/f never asks in any state: its auth failures are upstream breakage to show, not a prompt. The universal retry rule: NO automatic retries anywhere -- every inference call is user-initiated (the send, the housekeeping run, the refine) and every act has its manual retry; the curator's one auto-retry (the 2026-11-17 hiccup lesson) is deleted, the machine-label fallback the designed outcome. And failures never cache (GM: a failure is the absence of a measurement, not a measurement) -- the adjudication cache skips inference:false entries, the receipt line says "never cached, retried at every refine", and a transient battery error can never pin a false verdict; gev's 400s cost one cheap probe per refine and self-heal the day the backend learns tools. En-route fix the smoke earned: the create route validated body.spec AFTER the clerk built the run dir -- a refused spec left an orphan run (restart-check's exact count caught the sixth run); the spec validates first now, nothing lands on refusal.

the sheet's transport at the lint: the record is the only channel, the tag is view machinery composed by renderView, never authored by anyone -- the authored gate names the tag in any content (hers would never apply and primes the guarded emission; GM prose rides the view and story raw, the GM-side strips do not know it), names a sheet record on her turn, and checks object-ness on GM-turn records and boundary state notes both kinds; her emitted sheet in a carried tail stays legitimate history (the log keeps guard-conflicted emissions verbatim, and a stop can move one into the slidwin). The carryover editor teaches its own format now: a per-file hint between the editor and the save bar (one JSON object per line; status and agenda ride her turns; the sheet rides yours as the "sheet" field, never as a tag; the sigils and $VARS expand at start on the authored opening only).

the packages: template (the base for new packages -- the mood-indexed voice examples, the settings comment convention, non-playable as-is) and box (the sheet's first consumer: an incremental-game economy as ERP, GP and BP as two currencies with the room pushing her to fund her own punishments; the opening turn third-person per the typography ruling, ending on the display that needs a second read; the amnesiac rings empty by design; the erased name reading "(redacted)" after sigil expansion). The review found and fixed: both carryovers were pretty-printed JSON with duplicate keys -- unstartable under every per-line reader, flattened to true JSONL; the box's opening sheet rode her authored prose -- dead on every surface (the scan reads GM-turn records only, the strips eat it) and priming the exact emission the guard conflicts -- moved to the GM turn's sheet record, the override's shape; the gm.md "take of leave" typo fixed in all three packages.

the lint's rule 4 scoped to the substrate (GM, 2026-11-19): a banned word in a package's prose is fine -- the packages are the fiction and their words are the story's; README and the root prompts stay patrolled, and the box's "Or windows" is an architectural plural in a padded cell.

verified: typecheck green both programs; smoke ALL PASS (+27 the provider-flow battery: apiKey-on-add 400, the dead-endpoint refusal with config rollback, the auth-standing card with its probe record, probe-then-save both ways, the remove-key round trip, the o/f guards, the failures-never-cache proof over mock-fail -- verdict with the marker, absent from the cache file, re-probed fresh while the passing three serve from cache, not selectable, no orphan run; +8 the sheet-transport lint battery); restart + reminder checks green; a browser pass driving the whole add-flow machine on a mock+debug server (the hidden key field opening on the 401, the key landing through the auth route, the remove-key round trip re-opening the ask, the dead add refusing with the banner and no card, zero console errors beyond the expected 401/500 resource lines); check-repo clean with the box's windows. detention stays untracked WIP, untouched.
2026-11-19 08:35:23 +00:00

520 lines
19 KiB
CSS

/* Tiny Worlds SPA -- dark, quiet, fiction-first. Three registers: speech is
plain, narration is italic (rendered dimmer), OOC is boxed. Machinery
(tools, notes, deltas) stays small and muted. Home / setup views are
workbenches: cards, a file editor, read-only context. */
:root {
--bg: #16161a;
--panel: #1e1e24;
--line: #2c2c34;
--text: #d6d3cb;
--dim: #8a877f;
--accent: #c9a26d;
--danger: #c96d6d;
--ok: #7da87d;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
height: 100%;
background: var(--bg);
color: var(--text);
font: 15px/1.55 ui-sans-serif, system-ui, sans-serif;
}
body {
display: grid;
grid-template:
"header" auto
"main" 1fr
"footer" auto / 1fr;
height: 100vh;
}
/* play keeps the two-column transcript + aside layout; the footer
(the composer) sits under the transcript's column only -- the
input's width is the pane's width (GM, 2026-11-16) */
body.play {
grid-template:
"header header" auto
"main aside" 1fr
"footer ." auto / 1fr 300px;
}
/* --- header --- */
header {
grid-area: header;
display: flex;
align-items: center;
gap: 12px;
padding: 8px 14px;
background: var(--panel);
border-bottom: 1px solid var(--line);
}
#home-link { color: var(--accent); text-decoration: none; font-weight: 600; letter-spacing: 0.04em; }
#home-link:hover { text-decoration: underline; }
#session-info { color: var(--dim); font-size: 13px; margin-left: auto; white-space: nowrap; }
#context-meter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); visibility: hidden; }
body.play #context-meter { visibility: visible; }
#context-bar { width: 90px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
#context-fill { height: 100%; width: 0; background: var(--ok); transition: width 0.4s; }
#context-fill.hot { background: var(--danger); }
.provider-card { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.refine-progress { margin: 10px 0 2px; }
.refine-topline { display: flex; align-items: baseline; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.refine-count { color: var(--accent); font-weight: 600; white-space: nowrap; }
.refine-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refine-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.refine-fill { height: 100%; width: 0; background: var(--ok); }
.refine-lines { margin: 6px 0; font-size: 11px; color: var(--dim); max-height: 180px; overflow-y: auto; }
.refine-line { font-family: monospace; white-space: pre-wrap; }
.turn-live { margin: 10px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.turn-live-line { font-size: 12px; margin-bottom: 6px; }
.turn-live-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.turn-live-fill { height: 100%; width: 0; background: var(--ok); }
.turn-live-segs { display: flex; gap: 4px; }
.turn-live-seg { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.turn-live-seg.on { background: var(--ok); }
#diag-btn { font-size: 11px; padding: 1px 8px; color: var(--dim); }
#diag {
position: fixed;
right: 14px;
top: 46px;
width: min(620px, 85vw);
max-height: 45vh;
overflow-y: auto;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 6px;
padding: 10px 12px;
font: 11px/1.5 ui-monospace, Consolas, monospace;
color: var(--dim);
white-space: pre-wrap;
z-index: 20;
}
select, input, textarea, button {
background: var(--bg);
color: var(--text);
border: 1px solid var(--line);
border-radius: 4px;
padding: 5px 8px;
font: inherit;
}
button { cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { opacity: 0.4; cursor: default; }
button.primary { border-color: var(--accent); color: var(--accent); }
/* --- main / views --- */
main { grid-area: main; overflow-y: auto; padding: 18px 22px; overflow-anchor: none; }
h1 { font-size: 15px; letter-spacing: 0.1em; color: var(--dim); font-weight: normal; margin: 4px 0 14px; }
.hint { color: var(--dim); font-size: 13px; font-style: italic; }
/* cards: runs on home, packages on /new -- real buttons, left-aligned */
.card {
display: block;
width: 100%;
max-width: 560px;
text-align: left;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--panel);
padding: 10px 14px;
margin-bottom: 10px;
cursor: pointer;
}
.card:hover { border-color: var(--accent); }
.card.busy { opacity: 0.5; cursor: wait; }
.card-name { display: block; font-weight: 600; letter-spacing: 0.02em; }
.card-meta { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }
.card-state { display: block; font-size: 12px; margin-top: 6px; color: var(--dim); }
.card-state.draft { color: var(--accent); }
.card-state.ok { color: var(--ok); }
.card-state.attention { color: var(--danger); }
#new-run-btn { margin-top: 8px; }
/* --- identity + admin --- */
#who { color: var(--dim); font-size: 13px; }
#claim-form { max-width: 480px; }
#admin { max-width: 560px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
#admin h2 {
margin: 0 0 10px; font-size: 11px; letter-spacing: 0.14em;
color: var(--dim); font-weight: normal;
}
#invite-code { font: 12px ui-monospace, Consolas, monospace; color: var(--accent); word-break: break-all; }
.admin-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); padding: 3px 0; }
.admin-row .grow { flex: 1; }
.admin-row button { font-size: 11px; padding: 1px 8px; color: var(--dim); }
.admin-row button.danger { color: var(--danger); }
/* --- setup: save-as-package --- */
#setup-savepkg { display: flex; gap: 8px; max-width: 560px; margin-bottom: 14px; align-items: center; }
#setup-savepkg input { flex: 1; }
#savepkg-state { color: var(--dim); font-size: 12px; }
/* --- aside: fork, models --- */
#fork-pane { margin-top: 22px; }
#fork-pane .hint { margin: 0 0 8px; }
#fork-pane button { width: 100%; }
#story-pane { margin-top: 22px; }
#story-pane button { width: 100%; }
#models-pane { margin-top: 22px; }
#models-pane .field { margin-bottom: 6px; }
#models-pane .field select { flex: 1; }
#models-pane button { width: 100%; margin-top: 4px; }
/* the naming form (new run) and the vars box (setup) */
#create-form { max-width: 560px; }
#create-form h2 { font-size: 15px; margin: 0 0 14px; color: var(--text); font-weight: 600; }
.field { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--dim); font-size: 13px; }
.field input { flex: 1; }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
#setup-vars, #setup-models {
max-width: 560px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--panel);
padding: 10px 14px;
margin-bottom: 14px;
}
#setup-vars h2, #setup-models h2 {
margin: 0 0 10px; font-size: 11px; letter-spacing: 0.14em;
color: var(--dim); font-weight: normal;
}
#setup-vars-state, .save-state { color: var(--dim); font-size: 12px; }
#setup-models .field select { flex: 1; }
/* --- setup: the editor --- */
.setup-head {
display: flex;
align-items: baseline;
gap: 14px;
margin-bottom: 14px;
}
.setup-head h1 { margin: 0; }
#setup-state { color: var(--dim); font-size: 13px; flex: 1; }
#setup-delete { font-size: 12px; color: var(--danger); }
.setup-body {
display: grid;
grid-template-columns: 190px 1fr;
gap: 14px;
height: calc(100vh - 130px);
}
#setup-files { overflow-y: auto; }
.file-item {
display: flex;
justify-content: space-between;
width: 100%;
text-align: left;
padding: 6px 10px;
border: 1px solid transparent;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
color: var(--text);
}
.file-item:hover { border-color: var(--line); }
.file-item.current { border-color: var(--accent); }
.file-item.absent { color: var(--dim); font-style: italic; }
.file-item.ro { color: var(--dim); }
.file-item.dirty .file-dirty { color: var(--accent); }
#setup-editor { display: flex; flex-direction: column; min-width: 0; }
#edit-stack { position: relative; flex: 1; min-height: 0; }
/* the highlight overlay: a pre behind a transparent-text textarea,
identical metrics, scroll-synced -- sigils and vars light up in place */
#edit-hl, #setup-edit {
position: absolute;
inset: 0;
margin: 0;
padding: 5px 8px;
font: 13px/1.5 ui-monospace, Consolas, monospace;
white-space: pre-wrap;
overflow-wrap: break-word;
border: 1px solid var(--line);
border-radius: 4px;
}
#edit-hl { pointer-events: none; overflow: hidden; color: var(--text); border-color: transparent; }
#setup-edit {
background: transparent;
color: transparent;
caret-color: var(--text);
resize: none;
overflow-y: auto;
}
#setup-edit::selection { background: rgba(201, 162, 109, 0.3); }
.tok-sigil { color: var(--accent); }
.tok-var { color: var(--ok); }
#setup-edit-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
#setup-edit-state { color: var(--dim); font-size: 12px; }
#edit-hint { color: var(--dim); font-size: 12px; margin-top: 8px; }
/* --- transcript (play) --- */
/* --- the table's tabs: the curated table and the raw audit log --- */
#table-tabs { display: flex; gap: 6px; margin: 0 0 14px; }
#table-tabs .tab { font-size: 12px; padding: 2px 14px; }
#table-tabs .tab.active { border-color: var(--accent); color: var(--accent); }
/* raw blocks: labeled wire dumps -- plain text, no register rendering */
.raw-block { margin: 0 0 16px; max-width: 860px; }
.raw-block .who { font-size: 11px; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 3px; }
.raw-block pre { margin: 0 0 6px; white-space: pre-wrap; font: inherit; }
.raw-block pre.raw-thinking { color: var(--dim); }
.turn { margin: 0 0 20px; max-width: 760px; }
.turn .who { display: flex; align-items: baseline; gap: 8px; font-size: 11px; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 3px; }
.turn .who .raw-toggle { margin-left: auto; font-size: 11px; padding: 0 8px; color: var(--dim); }
/* the rewind control rides beside the raw toggle (the play view owns
its arm state; the disabled rename is the affordance, not hiding) */
.turn .who .rewind-toggle { font-size: 11px; padding: 0 8px; color: var(--dim); }
.turn.gm .who { color: var(--accent); }
.turn.player .who { color: var(--ok); }
.raw-slot { margin: 10px 0 2px; }
.line { margin: 2px 0; white-space: pre-wrap; }
.narration { color: var(--dim); } /* colour-only: no italic face -- same glyphs, same widths */
.emph { color: var(--accent); }
.ooc { color: var(--dim); border-left: 2px solid var(--line); padding-left: 8px; font-size: 13px; }
.tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
font-size: 11px; padding: 1px 7px; border-radius: 9px;
border: 1px solid var(--line); color: var(--dim);
}
.chip.lost { text-decoration: line-through; }
.chip.gained { color: var(--ok); border-color: var(--ok); }
.chip.drop { text-decoration: line-through; }
.chip.add { color: var(--ok); border-color: var(--ok); }
.chip.mind { color: var(--accent); border-color: var(--accent); }
.machinery {
margin: 6px 0; font-size: 12px; color: var(--dim);
border-left: 2px solid var(--line); padding-left: 8px;
}
.machinery .head { color: var(--text); }
/* the sampling knobs: per-knob override toggle + number input, one
row per role; the shared hint bar sits under both rows */
.knobs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; align-items: baseline; }
.knobs-head { width: 100%; font-size: 11px; letter-spacing: 0.12em; color: var(--dim); }
.knobs .knob { display: flex; align-items: baseline; gap: 5px; font-size: 11px; color: var(--dim); }
.knobs .knob input[type='number'] { width: 72px; padding: 2px 6px; font-size: 12px; }
.knobs .knob input[type='number']:disabled { opacity: 0.45; }
.knobs .knob .knob-default { color: var(--accent); }
.knob-hint {
min-height: 3.1em; /* the bar holds its place -- focus walks never jump the layout */
margin: 2px 0 8px;
font-size: 12px;
line-height: 1.45;
color: var(--dim);
}
/* the admin's models block: verdict rows */
#models-admin h3 { margin: 14px 0 4px; }
#models-list .admin-row { flex-wrap: wrap; gap: 4px 10px; }
#models-list .hint { font-style: italic; }
/* the dormant bar: the review window's banner over the carryover
preview, with the start button */
.beat {
display: flex; align-items: center; gap: 14px;
border: 1px solid var(--accent); border-radius: 6px;
padding: 8px 12px; margin: 0 0 16px; max-width: 760px;
font-size: 13px; color: var(--dim);
}
.beat button { margin-left: auto; }
/* the bundle: a collapsed card, per part -- the system message is
inspectable like the rest, read-only */
details.bundle {
margin: 14px 0; border: 1px solid var(--line); border-radius: 6px;
background: var(--panel); font-size: 13px; color: var(--dim);
}
details.bundle summary { cursor: pointer; padding: 6px 10px; letter-spacing: 0.06em; }
details.bundle pre { margin: 0; padding: 0 12px 10px; white-space: pre-wrap; font: inherit; }
.error-line { color: var(--danger); }
/* --- the story view --- */
.story-head {
display: flex;
align-items: baseline;
gap: 14px;
margin-bottom: 14px;
}
.story-head h1 { margin: 0; }
#story { max-width: 760px; }
/* the book earns its typography: the story's narration is italic and
its emphasis is bold -- the workbench's colour-only rule stops at
the story's door (the renderers are separate by the same ruling) */
#story .narration { color: var(--dim); font-style: italic; }
#story .narration strong { color: var(--text); font-style: italic; }
.session-break { margin: 26px 0 12px; border-top: 1px solid var(--line); }
/* --- aside (play) --- */
#play-aside {
grid-area: aside;
border-left: 1px solid var(--line);
background: var(--panel);
padding: 14px;
overflow-y: auto;
font-size: 13px;
display: none;
}
body.play #play-aside { display: block; }
#play-aside h2 {
margin: 4px 0 8px; font-size: 11px; letter-spacing: 0.14em;
color: var(--dim); font-weight: normal;
}
.pane-head { display: flex; align-items: baseline; gap: 8px; }
.pane-head h2 { flex: 1; margin: 4px 0 8px; }
.pane-head button { font-size: 11px; padding: 1px 8px; color: var(--dim); }
#status { margin: 0; line-height: 1.5; }
#status.empty { color: var(--dim); font-style: italic; }
#agenda-pane { margin-top: 16px; }
#agenda { margin: 0; line-height: 1.5; white-space: pre-wrap; }
#agenda.empty { color: var(--dim); font-style: italic; }
.pane-editor textarea { width: 100%; resize: vertical; font: 13px/1.5 inherit; }
.pane-editor-actions { display: flex; gap: 6px; margin-top: 6px; }
.pane-editor-actions button { font-size: 12px; padding: 2px 12px; }
.pane-pending { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; }
.pane-pending[hidden] { display: none; }
.pane-pending button { font-size: 12px; padding: 2px 12px; }
#conflict {
margin-top: 10px; padding: 8px; border: 1px solid var(--danger);
border-radius: 4px; color: var(--danger); font-size: 12px;
}
/* the GM's notepad: always on screen during play, auto-saved */
#notes-pane { margin-top: 22px; }
#notes-state { color: var(--dim); font-size: 11px; }
#gm-notes {
width: 100%;
min-height: 150px;
resize: vertical;
font-size: 13px;
line-height: 1.5;
}
#housekeeping { margin-top: 22px; }
#hk-state { color: var(--dim); margin-bottom: 8px; white-space: pre-wrap; }
#hk-state.rejected { color: var(--danger); }
#hk-state.applied { color: var(--ok); }
#hk-log pre { white-space: pre-wrap; font-size: 12px; max-height: 40vh; overflow-y: auto; }
#housekeeping button { width: 100%; margin-top: 6px; }
#hk-override-row { display: block; margin-top: 6px; color: var(--dim); font-size: 12px; }
/* --- footer (play) --- */
footer {
grid-area: footer;
gap: 8px; padding: 10px 22px 14px; /* the composer's edges align with the transcript's column */
background: var(--panel); border-top: 1px solid var(--line);
display: none;
}
body.play footer { display: flex; flex-wrap: wrap; }
/* the rewind note (GM, 2026-11-17): a full-width row above the
composer while a rewind is armed -- it names the cut and explains
the tint (the colour alone says that something is pending, not
what dies) */
#rewind-note { flex-basis: 100%; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--accent); }
#rewind-note[hidden] { display: none; }
#rewind-note button { font-size: 12px; padding: 2px 12px; }
/* the armed composer: the background tint is the mark of an outgoing
rewrite -- the turn in the box replaces its target on send */
#gm-stack.rewind-pending { background: rgba(201, 162, 109, 0.10); border-radius: 4px; }
#gm-stack { position: relative; flex: 1; display: grid; min-width: 0; }
#gm-stack.off { opacity: 0.4; }
/* the highlight overlay: the setup editor's stack pattern -- a pre
behind a transparent-text textarea, identical metrics, so the
tokens light up in place without moving the caret. The tokens are
colour-only (real faces shift advance widths and dragged the
caret); scrollbar-gutter keeps the columns aligned when the box
starts scrolling; field-sizing grows the box with the turn from
its six-line floor (the rows attribute is the no-support floor) */
#gm-hl, #gm-input {
grid-area: 1 / 1;
margin: 0;
padding: 5px 8px;
font: inherit;
line-height: 1.5;
white-space: pre-wrap;
overflow-wrap: break-word;
border: 1px solid var(--line);
border-radius: 4px;
scrollbar-gutter: stable;
min-height: 6lh;
max-height: 50vh;
}
#gm-hl { pointer-events: none; overflow: hidden; color: var(--text); border-color: transparent; background: transparent; }
#gm-input {
background: transparent;
color: transparent;
caret-color: var(--text);
resize: none;
overflow-y: auto;
field-sizing: content; /* the box grows with the turn; max-height caps it */
}
#gm-input::placeholder { color: var(--dim); }
#gm-send { padding: 5px 18px; }
#busy { color: var(--dim); font-size: 12px; font-style: italic; white-space: nowrap; align-self: center; }
/* in-page banner -- replaces JS alert()/confirm() (they block the
embedded pane); errors and notices land here instead */
#banner {
position: fixed; left: 50%; top: 12px; transform: translateX(-50%);
max-width: 70%; padding: 8px 14px; border-radius: 6px;
background: var(--panel); border: 1px solid var(--danger);
color: var(--danger); font-size: 13px; white-space: pre-wrap; z-index: 10;
}
#banner.info { border-color: var(--accent); color: var(--text); }
/* --- ask modal --- */
dialog {
background: var(--panel); color: var(--text);
border: 1px solid var(--accent); border-radius: 8px;
min-width: 380px; max-width: 560px; padding: 18px 20px;
}
dialog::backdrop { background: rgba(0,0,0,0.6); }
dialog h2 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
dialog p { margin: 0 0 12px; }
dialog textarea { width: 100%; }
dialog button { margin-top: 10px; }