:root { color-scheme: light dark; --bg: #f7f8fa; --surface: #ffffff; --text: #16181d; --muted: #545b69; --border: #d5d9e0; --accent: #1d4ed8; --accent-text: #ffffff; --ok: #166534; --warn: #92400e; --error: #b91c1c; --radius: 8px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5; } @media (prefers-color-scheme: dark) { :root { --bg: #111318; --surface: #1a1d24; --text: #e8eaee; --muted: #a4abb8; --border: #353a46; --accent: #7aa2ff; --accent-text: #0b1020; --ok: #86efac; --warn: #fcd34d; --error: #fca5a5; } } * { box-sizing: border-box; } /* Author display rules (e.g. .card { display: grid }) would otherwise beat the UA style of the hidden attribute. */ [hidden] { display: none !important; } body { margin: 0; background: var(--bg); color: var(--text); } h1, h2, h3 { line-height: 1.25; margin: 0; } p { margin: 0; } a { color: var(--accent); } :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; } button, input, select, textarea { font: inherit; color: inherit; } input[type="text"], select, textarea { width: 100%; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); } textarea { min-height: 96px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; } input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); } .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); cursor: pointer; } .btn:hover { border-color: var(--muted); } .btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; } .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; } .btn-quiet { border-color: transparent; background: transparent; color: var(--muted); } .muted { color: var(--muted); } .small { font-size: 13px; } .error-text { color: var(--error); font-size: 13px; } .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; background: var(--surface); } /* State is conveyed by text; the dot is decorative. */ .status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); } .status-pill[data-state="semantic"]::before { background: var(--ok); } .status-pill[data-state="lexical-fallback"]::before, .status-pill[data-state="loading"]::before { background: var(--warn); } .status-pill[data-state="error"]::before { background: var(--error); } .switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; } .switch input { width: 18px; height: 18px; accent-color: var(--accent); } .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }