/* [WEB STYLE] For @font-face: register this font-face family name: OpenDyslexic; load this font resource: url('/fonts/OpenDyslexic-Regular.otf') format('opentype'); use the swap strategy while a downloaded font loads; associate this font face with weight 400. */
@font-face { font-family: OpenDyslexic; src: url('/fonts/OpenDyslexic-Regular.otf') format('opentype'); font-display: swap; font-weight: 400; }
/* [WEB STYLE] For @font-face: register this font-face family name: OpenDyslexic; load this font resource: url('/fonts/OpenDyslexic-Bold.otf') format('opentype'); use the swap strategy while a downloaded font loads; associate this font face with weight 700. */
@font-face { font-family: OpenDyslexic; src: url('/fonts/OpenDyslexic-Bold.otf') format('opentype'); font-display: swap; font-weight: 700; }
/* [WEB STYLE] For :root[data-theme]: tell native browser controls to use the light color scheme; set the panel/control background token to #fff; set the page background token to #f3faf6; set the main text color token to #172e26; set the secondary text color token to #475e54; set the border color token to #658476; set the main action color token to #08794f; set the text-on-action color token to #fff; set the subtle control background token to #e6f5ec; set the error text color token to #a51d25. */
:root[data-theme] { color-scheme: light; --surface: #fff; --canvas: #f3faf6; --ink: #172e26; --muted: #475e54; --edge: #658476; --primary: #08794f; --on-primary: #fff; --soft: #e6f5ec; --error: #a51d25; }
/* [WEB STYLE] For :root[data-theme='dark']: tell native browser controls to use the dark color scheme; set the panel/control background token to #17261f; set the page background token to #0b1711; set the main text color token to #edf8f0; set the secondary text color token to #c0d4c7; set the border color token to #91aa9a; set the main action color token to #93edbb; set the text-on-action color token to #05351f; set the subtle control background token to #234735; set the error text color token to #ffb4b8. */
:root[data-theme='dark'] { color-scheme: dark; --surface: #17261f; --canvas: #0b1711; --ink: #edf8f0; --muted: #c0d4c7; --edge: #91aa9a; --primary: #93edbb; --on-primary: #05351f; --soft: #234735; --error: #ffb4b8; }
/* [WEB STYLE] For :root[data-contrast='true']: set the panel/control background token to #fff; set the page background token to #fff; set the main text color token to #000; set the secondary text color token to #172e26; set the border color token to #000; set the main action color token to #004b2d; set the text-on-action color token to #fff; set the subtle control background token to #e6f5ec; set the error text color token to #900016. */
:root[data-contrast='true'] { --surface: #fff; --canvas: #fff; --ink: #000; --muted: #172e26; --edge: #000; --primary: #004b2d; --on-primary: #fff; --soft: #e6f5ec; --error: #900016; }
/* [WEB STYLE] For :root[data-theme='dark'][data-contrast='true']: set the panel/control background token to #000; set the page background token to #000; set the main text color token to #fff; set the secondary text color token to #fff; set the border color token to #fff; set the main action color token to #b9ffd4; set the text-on-action color token to #000; set the subtle control background token to #143d25; set the error text color token to #ffd2d5. */
:root[data-theme='dark'][data-contrast='true'] { --surface: #000; --canvas: #000; --ink: #fff; --muted: #fff; --edge: #fff; --primary: #b9ffd4; --on-primary: #000; --soft: #143d25; --error: #ffd2d5; }
/* [WEB STYLE] For html[data-theme] body: use var(--ink) for the text and inherited foreground color. */
html[data-theme] body { color: var(--ink); }
/* [WEB STYLE] For html[data-theme='dark'] body: paint the background with var(--canvas). */
html[data-theme='dark'] body { background: var(--canvas); }
/* [WEB STYLE] Use the surface color for panels and controls. */
html[data-theme] :is(.container,.right-panel,.chat-form,.settings-modal,.bubble,.feedback-toast) { background: var(--surface); color: var(--ink); }
/* [WEB STYLE] For html[data-theme] .message.bot .bubble: paint the background with var(--surface); use var(--ink) for the text and inherited foreground color; change the border color to var(--edge). */
html[data-theme] .message.bot .bubble { background: var(--surface); color: var(--ink); border-color: var(--edge); }
/* [WEB STYLE] For html[data-theme] .message .bubble: set the text size to 1rem; use 1.6 for the height of each text line. */
html[data-theme] .message .bubble { font-size: 1rem; line-height: 1.6; }
/* [WEB STYLE] For html[data-theme] .right-panel label: use var(--ink) for the text and inherited foreground color. */
html[data-theme] .right-panel label { color: var(--ink); }
/* [WEB STYLE] Give the floating chat header and messages one shared canvas. */
html[data-theme] :is(.chat-panel,.main-shell,.main-page-body) { background: var(--canvas); }
/* [WEB STYLE] For html[data-theme] :is(input:not([type=checkbox]):not([type=range]),select): paint the background with var(--surface); use var(--ink) for the text and inherited foreground color; change the border color to var(--edge). */
html[data-theme] :is(input:not([type=checkbox]):not([type=range]),select) { background: var(--surface); color: var(--ink); border-color: var(--edge); }
/* [WEB STYLE] For html[data-theme] :is(input,select)::placeholder: use var(--muted) for the text and inherited foreground color; set the opacity to 1, where 0 is invisible and 1 is opaque. */
html[data-theme] :is(input,select)::placeholder { color: var(--muted); opacity: 1; }
/* [WEB STYLE] For html[data-theme] :is(.login-box h1,.login-box h2,.input-group label,.header-title-group h1,.settings-label,.settings-modal h3,.chat-empty-state h2): use var(--ink) for the text and inherited foreground color. */
html[data-theme] :is(.login-box h1,.login-box h2,.input-group label,.header-title-group h1,.settings-label,.settings-modal h3,.chat-empty-state h2) { color: var(--ink); }
/* [WEB STYLE] For html[data-theme] :is(.login-box > p,.header-title-group p,.settings-help,.zoom-value,.speech-status,.suggestion-prompt,.privacy-note,.create-account,.login-data-notice,.chat-empty-state p): use var(--muted) for the text and inherited foreground color. */
html[data-theme] :is(.login-box > p,.header-title-group p,.settings-help,.zoom-value,.speech-status,.suggestion-prompt,.privacy-note,.create-account,.login-data-notice,.chat-empty-state p) { color: var(--muted); }
/* [WEB STYLE] For html[data-theme] :is(.right-panel a,.settings-modal a): use var(--primary) for the text and inherited foreground color; underline the text so its link is easier to identify. */
html[data-theme] :is(.right-panel a,.settings-modal a) { color: var(--primary); text-decoration: underline; }
/* [WEB STYLE] For html[data-theme] :is(.quick-btn,.icon-btn,.answer-feedback button,.suggestions-close,.zoom-btn,.lang-btn,.voice-btn): paint the background with var(--soft); use var(--ink) for the text and inherited foreground color; draw the border using 1px solid var(--edge). */
html[data-theme] :is(.quick-btn,.icon-btn,.answer-feedback button,.suggestions-close,.zoom-btn,.lang-btn,.voice-btn) { background: var(--soft); color: var(--ink); border: 1px solid var(--edge); }
html[data-theme] .header-action-button { background: var(--soft); color: #117850; border: 1px solid var(--edge); }
html[data-theme] .header-action-button.logout-button { background: transparent; border: none; }
html[data-theme='dark'] .header-action-button { color: var(--primary); }
/* [WEB STYLE] For html[data-theme] :is(.message.user .bubble,.chat-form button[type=submit],.submit-btn,.login-box button[type=submit],.new-chat-btn,.lang-btn.active,.voice-btn.active,.answer-feedback button[aria-pressed=true]): paint the background with var(--primary); use var(--on-primary) for the text and inherited foreground color. */
html[data-theme] :is(.message.user .bubble,.chat-form button[type=submit],.submit-btn,.login-box button[type=submit],.new-chat-btn,.lang-btn.active,.voice-btn.active,.answer-feedback button[aria-pressed=true]) { background: var(--primary); color: var(--on-primary); }
html[data-theme] :is(.bubble,.chat-form,.settings-modal) { border-color: var(--edge); }
/* [WEB STYLE] For html[data-theme] .form-message.error: use var(--error) for the text and inherited foreground color. */
html[data-theme] .form-message.error { color: var(--error); }
/* [WEB STYLE] For html[data-theme] :focus-visible: draw the focus outline with 3px solid var(--primary); leave 3px between the outline and the element border. */
html[data-theme] :focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
/* [WEB STYLE] For html[data-reading-font='true'] body, html[data-reading-font='true'] :is(button,input,select,textarea): use this font stack: OpenDyslexic, sans-serif; use 1.7 for the height of each text line; leave .02em of extra space between letters. */
html[data-reading-font='true'] body, html[data-reading-font='true'] :is(button,input,select,textarea) { font-family: OpenDyslexic, sans-serif; line-height: 1.7; letter-spacing: .02em; }
/* [WEB STYLE] For html[data-reading-font='true'] .quick-btn: set the height to auto; keep the height at least 44px. */
html[data-reading-font='true'] .quick-btn { height: auto; min-height: 44px; }
/* [WEB STYLE] For html[data-reduce-motion='true'] *, html[data-reduce-motion='true'] *::before, html[data-reduce-motion='true'] *::after: play the animation described by none; !important raises its cascade priority; animate changes with this transition setting: none; !important raises its cascade priority; use auto for programmatic or anchor scrolling; !important raises its cascade priority. */
html[data-reduce-motion='true'] *, html[data-reduce-motion='true'] *::before, html[data-reduce-motion='true'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
/* [WEB STYLE] For [data-appearance-controls] fieldset: allow no width smaller than 0; draw the border using 1px solid var(--edge); round the corners by 12px; set the inside spacing to 12px; set the outside spacing to 12px 0. */
[data-appearance-controls] fieldset { min-width: 0; border: 1px solid var(--edge); border-radius: 12px; padding: 12px; margin: 12px 0; }
/* [WEB STYLE] For [data-appearance-controls] legend: set the inside spacing to 0 4px; use a semibold text weight. */
[data-appearance-controls] legend { padding: 0 4px; font-weight: 600; }
/* [WEB STYLE] For [data-appearance-controls] label: arrange the children using a flex layout; align children across the layout axis with center; leave 10px between layout children; keep the height at least 44px; set the inside spacing to 8px 0; use anywhere to control breaking long text that would overflow. */
[data-appearance-controls] label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; overflow-wrap: anywhere; }
/* [WEB STYLE] For [data-appearance-controls] input[type=checkbox]: use 0 0 22px for flex growth, shrinking, and starting size; set the width to 22px; set the height to 22px; use var(--primary) as the accent on supported native controls. */
[data-appearance-controls] input[type=checkbox] { flex: 0 0 22px; width: 22px; height: 22px; accent-color: var(--primary); }
/* [WEB STYLE] For [data-appearance-controls] select: allow no width smaller than 0; let this flex child grow to share available space, using the shorthand defaults for shrinking and basis; set the inside spacing to 10px; draw the border using 1px solid var(--edge); round the corners by 8px; use this combined font setting: inherit. */
[data-appearance-controls] select { min-width: 0; flex: 1; padding: 10px; border: 1px solid var(--edge); border-radius: 8px; font: inherit; }
/* [WEB STYLE] For [data-appearance-controls] p: set the text size to .875rem; use 1.6 for the height of each text line; use var(--muted) for the text and inherited foreground color. */
[data-appearance-controls] p { font-size: .875rem; line-height: 1.6; color: var(--muted); }
/* [WEB STYLE] For .login-accessibility: set the top outside spacing to 12px. */
.login-accessibility { margin-top: 12px; }
/* [WEB STYLE] For .login-accessibility summary: set the inside spacing to 12px 0; keep the height at least 44px; show a pointer cursor to signal that this element can be activated; use a semibold text weight. */
.login-accessibility summary { padding: 12px 0; min-height: 44px; cursor: pointer; font-weight: 600; }
