:root { --bg: #f6f5f2; --surface: #ffffff; --text: #1d2125; --muted: #565d66; --border: #d9d6cf; --accent: #0f5c57; --accent-text: #ffffff; --accent-soft: #e3efed; --error: #a3261b; --ok: #1f6b35; --focus: #1a5fb4; --radius: 0.5rem; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; color: var(--text); background: var(--bg); } @media (prefers-color-scheme: dark) { :root { --bg: #131516; --surface: #1c1f21; --text: #e6e8e9; --muted: #a5abb0; --border: #353a3e; --accent: #6cbcb2; --accent-text: #0b1a18; --accent-soft: #1f3331; --error: #ff9a8f; --ok: #8fd6a2; --focus: #8ab4f8; } } * { box-sizing: border-box; } body { margin: 0; } [hidden] { display: none !important; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } .skip { position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.75rem; background: var(--surface); color: var(--text); } .skip:focus { top: 1rem; } :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; } .page { max-width: 44rem; min-height: 100dvh; margin: 0 auto; padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1rem; } .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; } h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.25rem; letter-spacing: -0.01em; } h2 { font-size: 1.125rem; margin: 0 0 0.25rem; } .intro { margin: 0; color: var(--muted); } .lang { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; } .lang button { font: inherit; font-size: 0.875rem; padding: 0.375rem 0.75rem; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; min-height: 2.25rem; } .lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); font-weight: 600; } .disclosure { margin: 0; padding: 0.75rem 1rem; font-size: 0.9375rem; background: var(--accent-soft); border-radius: var(--radius); border-left: 3px solid var(--accent); } .badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.0625rem 0.375rem; border-radius: 0.25rem; background: var(--accent); color: var(--accent-text); margin-right: 0.25rem; } .wake, .typing { margin: 0; color: var(--muted); font-size: 0.9375rem; } .chat { display: flex; flex-direction: column; gap: 1rem; flex: 1; } .log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; } .msg { max-width: 85%; } .msg p { margin: 0; padding: 0.625rem 0.875rem; border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; } .msg .who { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; } .msg.you { align-self: flex-end; text-align: right; } .msg.you p { background: var(--accent); color: var(--accent-text); text-align: left; } .msg.bot p { background: var(--surface); border: 1px solid var(--border); } .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; } .chips-label { width: 100%; font-size: 0.875rem; color: var(--muted); } .chips button { font: inherit; font-size: 0.9375rem; padding: 0.5rem 0.875rem; min-height: 2.5rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; } .chips button:hover { border-color: var(--accent); } .gate { display: flex; flex-direction: column; gap: 0.5rem; } .gate p { margin: 0; font-size: 0.9375rem; color: var(--muted); } .notice { margin: 0; font-size: 0.9375rem; color: var(--muted); } .notice:empty { display: none; } .notice.error, .status.error { color: var(--error); } .status.ok { color: var(--ok); font-weight: 600; } .status { margin: 0; } .contact { display: flex; flex-direction: column; gap: 0.375rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); } .contact h2:focus { outline: none; } .contact .hint { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--muted); } .contact label { font-size: 0.875rem; font-weight: 600; margin-top: 0.25rem; } .contact .primary { align-self: flex-start; margin-top: 0.5rem; } input, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.75rem; width: 100%; } textarea { resize: vertical; } .ask { position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 0.5rem; align-items: flex-end; padding: 0.75rem 0 0.25rem; background: var(--bg); } .ask textarea { resize: none; min-height: 2.75rem; max-height: 8rem; field-sizing: content; background: var(--surface); } .primary { font: inherit; font-weight: 600; padding: 0.5rem 1.125rem; min-height: 2.75rem; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); cursor: pointer; } .chips button:disabled, .primary:disabled { opacity: 0.55; cursor: not-allowed; } @media (max-width: 30rem) { .page { padding: 1rem 0.75rem; } h1 { font-size: 1.25rem; } .msg { max-width: 92%; } } @media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }