/* Generated by tools/build_app_css.py from the Vawito app (release-2026-11-17): Resources/web/chat.css and the
   Slate block of themes.css. Do not edit by hand. */
.vx {--font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; --font-display: 'Fraunces', Georgia, 'Times New Roman', serif; --font-code: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Monaco', monospace; --font-size-xs: 11px; --font-size-sm: 13px; --font-size-base: 14px; --font-size-md: 16px; --font-size-lg: 18px; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --line-height-prose: 1.62; --line-height-code: 1.5; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-8: 32px; --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px; --motion-quick: 150ms; --motion-standard: 250ms; --motion-gentle: 400ms; --ease-standard: cubic-bezier(0.2, 0, 0, 1); --duration-micro: var(--motion-quick); --duration-standard: var(--motion-standard); --easing-standard: var(--ease-standard); --font-size-prose: 15px; --bg: #F4F2ED; --surface: #ECE9E1; --surface-hover: #E6E2D8; --surface-active: #DED9CD; --input-bg: #F4F2ED; --text-primary: #0A0A0A; --text-secondary: #3A3A3A; --text-tertiary: #66635F; --text-accent: #0A0A0A; --accent: #0A0A0A; --accent-hover: #3A3A3A; --accent-subtle: rgba(10, 10, 10, 0.06); --accent-2: #0A0A0A; --accent-2-subtle: rgba(10, 10, 10, 0.06); --card-border: #E3DED3; --card-border-subtle: #E9E5DB; --card-border-hover: #D9D4CA; --msg-user-bg: rgba(10, 10, 10, 0.055); --msg-assistant-bg: rgba(10, 10, 10, 0.018); --code-surface: #F6F4EF; --code-text: #24292e; --code-header-bg: rgba(10, 10, 10, 0.04);}
.vx-chat * {margin: 0; padding: 0; box-sizing: border-box;}
.vx-chat {height: 100%; background-color: var(--bg); background-image: var(--canvas-gradient); background-attachment: fixed; color: var(--text-primary); font-family: var(--font-ui); font-size: var(--font-size-base); line-height: var(--line-height-prose); -webkit-font-smoothing: antialiased; overflow: hidden;}
.vx-chat ::selection {background: var(--text-primary); color: var(--bg);}
.vx-chat .chat-view__messages {position: relative; z-index: 1; height: 100%; overflow-y: auto; padding: 28px 48px; display: flex; flex-direction: column; align-items: center; gap: 0;}
.vx-chat .chat-view__messages::-webkit-scrollbar {width: 6px;}
.vx-chat .chat-view__messages::-webkit-scrollbar-track {background: transparent;}
.vx-chat .chat-view__messages::-webkit-scrollbar-thumb {background: var(--surface-active); border-radius: 3px;}
.vx-chat .chat-msg {display: block; width: 100%; max-width: 1080px; align-self: center; position: relative; padding: 16px 20px; margin: 7px 0; border-radius: 10px; box-shadow: var(--card-shadow);}
.vx-chat .chat-msg--user {background: var(--msg-user-bg); border-left: 2px solid var(--text-primary); padding-left: 18px;}
.vx-chat .chat-msg--other {background: var(--msg-assistant-bg);}
.vx-chat .chat-msg--brainstorm {border-left: 2px solid var(--accent); padding-left: 18px;}
.vx-chat .chat-msg--type-system {background: transparent; padding: 3px 20px; margin: 2px 0;}
.vx-chat .chat-msg--type-system .chat-msg__body {display: flex; align-items: baseline; gap: 10px;}
.vx-chat .chat-msg--type-system .chat-msg__time {flex: 0 0 auto;}
.vx-chat .chat-msg--type-system .chat-msg__content {min-width: 0;}
.vx-chat .chat-msg--type-system .chat-msg__content p {margin: 0;}
.vx-chat .chat-msg__body {min-width: 0; position: relative;}
.vx-chat .chat-msg--prompt {background: var(--msg-assistant-bg); border: 1px solid var(--card-border); border-left: 2px solid var(--accent); padding: 14px 20px 14px 18px;}
.vx-chat .chat-msg--prompt[data-prompt-status="answered"], .vx-chat .chat-msg--prompt[data-prompt-status="cancelled"] {padding-top: 10px; padding-bottom: 10px;}
.vx-chat .chat-msg--prompt[data-prompt-status="cancelled"] {border-left-color: var(--card-border-hover);}
.vx-chat .chat-msg--prompt[data-sending="true"] {opacity: 0.75;}
.vx-chat .prompt-card__header {display: flex; align-items: center; gap: 8px; margin-bottom: 8px;}
.vx-chat .prompt-card__badge {font-family: var(--font-ui); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); padding: 2px 8px; border-radius: var(--radius-full); background: var(--accent-subtle); color: var(--text-primary);}
.vx-chat .prompt-card__badge--cancelled, .vx-chat .prompt-card__badge--expired {background: var(--surface-hover); color: var(--text-secondary);}
.vx-chat .chat-msg--prompt[data-expired="true"] {border-left-color: var(--card-border-hover);}
.vx-chat .prompt-card__title {margin: 0 0 10px; font-family: var(--font-ui); font-size: var(--font-size-sm); color: var(--text-secondary); white-space: pre-wrap; overflow-wrap: anywhere;}
.vx-chat .prompt-card__form {display: flex; flex-direction: column; gap: 16px;}
.vx-chat .prompt-q {border: none; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px;}
.vx-chat .prompt-q legend {padding: 0; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-ui);}
.vx-chat .prompt-q__header {font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--text-secondary);}
.vx-chat .prompt-q__question {font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); color: var(--text-primary); overflow-wrap: anywhere;}
.vx-chat .prompt-q__note {font-size: var(--font-size-sm); color: var(--text-secondary);}
.vx-chat .prompt-q__options {display: flex; flex-wrap: wrap; gap: 8px;}
.vx-chat .prompt-option, .vx-chat .prompt-card__submit, .vx-chat .prompt-card__dismiss {font-family: var(--font-ui); font-size: var(--font-size-sm); min-height: 30px; padding: 5px 14px; border-radius: var(--radius-md); cursor: pointer; transition: background var(--motion-quick) var(--ease-standard), color var(--motion-quick) var(--ease-standard);}
.vx-chat .prompt-option {border: 1px solid var(--card-border-hover); background: var(--bg); color: var(--text-primary); overflow-wrap: anywhere;}
.vx-chat .prompt-option:hover {background: var(--surface-hover);}
.vx-chat .prompt-option[aria-pressed="true"] {background: var(--text-primary); border-color: var(--text-primary); color: var(--bg);}
.vx-chat .prompt-q__checks {display: flex; flex-direction: column; gap: 6px;}
.vx-chat .prompt-check {display: flex; align-items: baseline; gap: 8px; font-family: var(--font-ui); font-size: var(--font-size-sm); color: var(--text-primary); cursor: pointer;}
.vx-chat .prompt-check input {accent-color: var(--accent);}
.vx-chat .prompt-check__detail {font-size: var(--font-size-xs); color: var(--text-secondary);}
.vx-chat .prompt-q__custom, .vx-chat .prompt-q__text {box-sizing: border-box; width: 100%; max-width: 480px; padding: 6px 10px; border: 1px solid var(--card-border-hover); border-radius: var(--radius-md); background: var(--input-bg); color: var(--text-primary); font-family: var(--font-ui); font-size: var(--font-size-sm);}
.vx-chat .prompt-q__range {display: flex; align-items: center; gap: 10px; max-width: 480px;}
.vx-chat .prompt-q__slider {flex: 1; min-width: 0; accent-color: var(--accent);}
.vx-chat .prompt-q__bound {font-family: var(--font-ui); font-size: var(--font-size-xs); color: var(--text-secondary); font-variant-numeric: tabular-nums;}
.vx-chat .prompt-q__value {min-width: 3ch; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--surface-hover); color: var(--text-primary); font-family: var(--font-ui); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; text-align: center;}
.vx-chat .prompt-card__actions {display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;}
.vx-chat .prompt-card__submit {border: 1px solid var(--text-primary); background: var(--text-primary); color: var(--bg); font-weight: var(--font-weight-semibold);}
.vx-chat .prompt-card__submit:disabled {opacity: 0.45; cursor: default;}
.vx-chat .prompt-card__dismiss {border: 1px solid var(--card-border-hover); background: transparent; color: var(--text-secondary);}
.vx-chat .prompt-card__dismiss:hover {background: var(--surface-hover); color: var(--text-primary);}
.vx-chat .prompt-option:focus-visible, .vx-chat .prompt-card__submit:focus-visible, .vx-chat .prompt-card__dismiss:focus-visible, .vx-chat .prompt-q__custom:focus-visible, .vx-chat .prompt-q__text:focus-visible, .vx-chat .prompt-q__slider:focus-visible, .vx-chat .prompt-check input:focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
.vx-chat .prompt-card__error {margin: 0; font-family: var(--font-ui); font-size: var(--font-size-sm); color: var(--danger);}
.vx-chat .prompt-summary {margin: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-ui); font-size: var(--font-size-sm);}
.vx-chat .prompt-summary__row {display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 2px;}
.vx-chat .prompt-summary dt {flex: 1 1 220px; min-width: 0; color: var(--text-secondary); overflow-wrap: anywhere;}
.vx-chat .prompt-summary dd {flex: 1 1 160px; min-width: 0; margin: 0; color: var(--text-primary); font-weight: var(--font-weight-semibold); overflow-wrap: anywhere;}
.vx-chat .prompt-summary dd.prompt-summary__none {color: var(--text-secondary); font-weight: 400; font-style: italic;}
.vx-chat .prompt-card__detail {margin: 6px 0 0; font-family: var(--font-ui); font-size: var(--font-size-xs); color: var(--text-secondary);}
.vx-chat .chat-msg__header {display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-right: 200px; flex-wrap: wrap; overflow-wrap: anywhere;}
.vx-chat .chat-msg__avatar {width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;}
.vx-chat .chat-msg--user .chat-msg__avatar {background: var(--text-primary);}
.vx-chat .chat-msg--brainstorm .chat-msg__avatar {background: var(--accent-2);}
.vx-chat .chat-msg__role {font-family: var(--font-ui); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--text-primary);}
.vx-chat .chat-msg__time {font-family: var(--font-ui); font-size: var(--font-size-xs); color: var(--text-tertiary);}
.vx-chat .chat-msg__reaction {font-size: var(--font-size-sm); line-height: 1; padding: 2px 6px; border-radius: var(--radius-full); background: var(--accent-subtle); cursor: default;}
.vx-chat .chat-msg__credentials {display: inline-flex; gap: 4px; flex-wrap: wrap;}
.vx-chat .chat-msg__credential {font-size: var(--font-size-sm); line-height: 1; padding: 2px 6px; border-radius: var(--radius-full); background: var(--accent-subtle); cursor: default;}
.vx-chat .chat-msg__credential-undo {margin-left: 4px; font: inherit; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer;}
.vx-chat .chat-msg__credential-note {margin-left: 6px; opacity: 0.8;}
.vx-chat .chat-msg__auto {font-family: var(--font-ui); font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); color: var(--accent); padding: 1px 7px; border-radius: var(--radius-full); background: var(--accent-subtle);}
.vx-chat .chat-msg__skills {font-family: var(--font-ui); font-size: var(--font-size-xs); color: var(--text-tertiary); background: none; border: 0; padding: 0 2px; cursor: pointer; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.vx-chat .chat-msg__skills:hover {color: var(--text-secondary, var(--text-tertiary)); text-decoration: underline;}
.vx-chat .chat-msg__toolbar {position: absolute; top: -4px; right: 0; display: flex; gap: 2px; padding: 2px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--card-border-subtle); box-shadow: var(--card-shadow); opacity: 0; transform: translateY(-2px); transition: opacity var(--motion-quick) var(--ease-standard), transform var(--motion-quick) var(--ease-standard); z-index: 2;}
.vx-chat .chat-msg__toolbar [data-keep="true"] {opacity: 1;}
.vx-chat .chat-msg:hover .chat-msg__toolbar, .vx-chat .chat-msg:focus-within .chat-msg__toolbar {opacity: 1; transform: none;}
.vx-chat .chat-msg:not(:hover):not(:focus-within) .chat-msg__toolbar {background: transparent; border-color: transparent; box-shadow: none;}
.vx-chat .chat-msg:not(:hover):not(:focus-within) .chat-msg__toolbar {opacity: 1;}
.vx-chat .chat-msg:not(:hover):not(:focus-within) .chat-msg__action-btn:not([data-keep="true"]) {opacity: 0; pointer-events: none;}
.vx-chat .chat-msg:not(:hover):not(:focus-within) .chat-msg__action-btn[data-keep="true"] {opacity: 0.45;}
.vx-chat .chat-msg__action-btn {display: flex; align-items: center; justify-content: center; min-width: 26px; min-height: 26px; width: auto; height: auto; border: none; border-radius: var(--radius-sm); background: var(--surface-hover); color: var(--text-secondary); cursor: pointer; transition: all 0.15s ease; padding: 4px 7px; font-size: var(--font-size-xs); line-height: 1.3;}
.vx-chat .chat-msg__action-btn:hover {background: var(--surface-active); color: var(--text-secondary);}
.vx-chat html:not([data-motion="off"]) .chat-msg__action-btn, .vx-chat html:not([data-motion="off"]) .chat-view__jump-present, .vx-chat html:not([data-motion="off"]) .chat-msg__code-copy {transition: background var(--duration-standard) ease, color var(--duration-standard) ease, box-shadow 180ms ease, transform 180ms ease;}
.vx-chat html:not([data-motion="off"]) .chat-msg__action-btn:hover, .vx-chat html:not([data-motion="off"]) .chat-view__jump-present:hover {box-shadow: 0 0 0 1px var(--accent-subtle), 0 0 12px color-mix(in srgb, var(--glow) 35%, transparent);}
.vx-chat html:not([data-motion="off"]) .chat-msg--entering {animation: msg-in var(--motion-standard) var(--ease-standard) both;}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.vx-chat .chat-msg__action-btn svg {width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;}
.vx-chat .chat-msg__action-btn--copied {color: var(--accent); animation: copied-pop var(--motion-standard) var(--ease-standard);}
@keyframes copied-pop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.1); }
  100% { transform: none; }
}
.vx-chat .chat-msg__continuation-toggle {display: inline-flex; align-items: center; gap: 4px; border: none; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; padding: 0; cursor: pointer;}
.vx-chat .chat-msg__continuation-toggle:hover {color: var(--text-primary);}
.vx-chat .chat-msg__continuation-toggle svg {width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--motion-quick) var(--ease-standard);}
.vx-chat .chat-msg__continuation-toggle[aria-expanded="true"] svg {transform: rotate(90deg);}
.vx-chat .chat-msg__continuation-panel {margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--card-border-subtle); font-family: var(--font-ui); font-size: var(--font-size-sm); letter-spacing: 0; color: var(--text-secondary);}
.vx-chat .chat-msg--continuation .chat-msg__continuation-panel p {margin: 0 0 6px;}
.vx-chat .chat-msg__claim {display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-family: var(--font-ui); font-size: var(--font-size-xs); color: var(--text-tertiary);}
.vx-chat .chat-msg__claim-run {border: 1px solid var(--card-border); border-radius: var(--radius-full); background: transparent; color: var(--text-secondary); font-family: var(--font-ui); font-size: var(--font-size-xs); padding: 2px 10px; cursor: pointer;}
.vx-chat .chat-msg__claim-run:hover {background: var(--surface-hover); color: var(--text-primary);}
.vx-chat .chat-msg__helpers {margin-top: 8px; font-family: var(--font-ui); font-size: var(--font-size-xs); color: var(--text-tertiary);}
.vx-chat .chat-msg__helpers summary {cursor: pointer;}
.vx-chat .chat-msg__helpers ul {list-style: none; margin: 6px 0 0; padding: 0;}
.vx-chat .chat-msg__helper {padding: 6px 0; border-top: 1px solid var(--card-border);}
.vx-chat .chat-msg__helper-head {color: var(--text-secondary);}
.vx-chat .chat-msg__helper-answer {margin-top: 4px; white-space: pre-wrap; color: var(--text-secondary); max-height: 240px; overflow: auto;}
.vx-chat .chat-msg__claim-run:disabled {opacity: 0.6; cursor: default;}
.vx-chat .claim-notices-off .chat-msg__claim {display: none;}
.vx-chat .chat-msg__files {margin-top: 10px;}
.vx-chat .chat-msg__files-toggle {display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--card-border); border-radius: var(--radius-full); background: transparent; color: var(--text-secondary); font-family: var(--font-ui); font-size: var(--font-size-xs); padding: 3px 10px 3px 6px; cursor: pointer; transition: background var(--motion-quick) var(--ease-standard), color var(--motion-quick) var(--ease-standard);}
.vx-chat .chat-msg__files-toggle:hover {background: var(--surface-hover); color: var(--text-primary);}
.vx-chat .chat-msg__files-toggle svg {width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--motion-quick) var(--ease-standard);}
.vx-chat .chat-msg__files-toggle[aria-expanded="true"] svg {transform: rotate(90deg);}
.vx-chat .chat-msg__files-panel {margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--card-border-subtle);}
.vx-chat .chat-msg__files-list {list-style: none; margin: 0 0 8px; padding: 0; font-family: var(--font-code); font-size: var(--font-size-xs); color: var(--text-secondary);}
.vx-chat .chat-msg__files-list li {padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.vx-chat .chat-msg__files-more, .vx-chat .chat-msg__files-none {font-family: var(--font-ui); font-size: var(--font-size-xs); color: var(--text-tertiary); margin: 0 0 8px;}
.vx-chat .chat-msg__files-open {border: none; background: var(--surface-hover); color: var(--text-primary); border-radius: var(--radius-sm); font-family: var(--font-ui); font-size: var(--font-size-xs); padding: 4px 10px; cursor: pointer;}
.vx-chat .chat-msg__files-open:hover {background: var(--surface-active);}
.vx-chat .chat-msg__action-btn--copied-text {width: auto; padding: 0 8px; font-size: var(--font-size-xs); font-family: var(--font-ui);}
.vx-chat .chat-msg__content {font-family: var(--font-display); font-size: var(--font-size-prose); font-weight: 300; line-height: var(--line-height-prose); word-wrap: break-word; overflow-wrap: break-word; color: var(--text-primary);}
.vx-chat .chat-msg--type-system .chat-msg__content {font-family: var(--font-code); font-size: 11px; letter-spacing: 0.04em; color: var(--text-tertiary);}
.vx-chat .chat-msg__stream-tail {white-space: pre-wrap; word-break: break-word;}
.vx-chat .chat-msg__stream-tail--code {font-family: var(--font-code); font-size: var(--font-size-sm); line-height: var(--line-height-code);}
.vx-chat .chat-msg__stream-caret {display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: var(--text-primary); animation: stream-caret 1s step-end infinite;}
.vx-chat .chat-msg__stream-caret--solo {margin-left: 0;}
@keyframes stream-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
.vx-chat html:not([data-motion="off"]) .chat-msg__stream-caret {animation: stream-caret 1.1s ease-in-out infinite; border-radius: 1px;}
.vx-chat .chat-msg__content p {margin: 0 0 var(--space-2);}
.vx-chat .chat-msg__content p:last-child {margin-bottom: 0;}
.vx-chat .chat-msg__content h1, .vx-chat .chat-msg__content h2, .vx-chat .chat-msg__content h3, .vx-chat .chat-msg__content h4 {margin: var(--space-3) 0 var(--space-2); font-weight: var(--font-weight-semibold); color: var(--text-primary);}
.vx-chat .chat-msg__content h1 {font-size: var(--font-size-lg);}
.vx-chat .chat-msg__content h2 {font-size: var(--font-size-md);}
.vx-chat .chat-msg__content h3 {font-size: var(--font-size-base);}
.vx-chat .chat-msg__content ul, .vx-chat .chat-msg__content ol {margin: var(--space-2) 0; padding-left: var(--space-5);}
.vx-chat .chat-msg__content li {margin-bottom: var(--space-1);}
.vx-chat .chat-msg__content blockquote {margin: var(--space-2) 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--accent); background: var(--accent-subtle); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary);}
.vx-chat .chat-msg__content hr {border: none; border-top: 1px solid var(--card-border); margin: var(--space-3) 0;}
.vx-chat .chat-msg__content code:not(pre code) {font-family: var(--font-code); font-size: 0.9em; padding: 1px 6px; border-radius: 4px; background: var(--accent-subtle); color: var(--text-primary);}
.vx-chat .chat-msg__content a {color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--text-tertiary); transition: border-color var(--duration-micro);}
.vx-chat .chat-msg__content a:hover {border-bottom-color: var(--text-primary);}
.vx-chat .chat-msg__code-block {margin: var(--space-2) 0; border-radius: var(--radius-md); overflow: hidden; background: var(--code-surface); border: 1px solid var(--card-border);}
.vx-chat .chat-msg__code-header {display: flex; justify-content: space-between; align-items: center; padding: var(--space-1) var(--space-3); background: var(--code-header-bg); border-bottom: 1px solid var(--card-border-subtle);}
.vx-chat .chat-msg__code-lang {font-size: var(--font-size-xs); color: var(--text-tertiary); font-family: var(--font-code); text-transform: uppercase;}
.vx-chat .chat-msg__code-copy {font-size: var(--font-size-xs); color: var(--text-tertiary); background: none; border: none; cursor: pointer; padding: 2px 8px; border-radius: var(--radius-sm); transition: all var(--duration-micro) var(--easing-standard);}
.vx-chat .chat-msg__code-copy:hover {background: var(--surface-hover); color: var(--text-primary);}
.vx-chat .chat-msg__code-block pre {margin: 0; padding: var(--space-3); overflow-x: auto;}
.vx-chat .chat-msg__code-block code {font-family: var(--font-code); font-size: var(--font-size-sm); line-height: var(--line-height-code); color: var(--code-text);}
.vx-chat .chat-msg__table-wrap {overflow-x: auto; margin: var(--space-2) 0; border-radius: var(--radius-md); border: 1px solid var(--card-border); max-height: 480px; overflow-y: auto;}
.vx-chat .chat-msg__content table {width: 100%; border-collapse: collapse; font-size: var(--font-size-sm);}
.vx-chat .chat-msg__content th, .vx-chat .chat-msg__content td {padding: var(--space-2) var(--space-3); text-align: left; border-bottom: 1px solid var(--card-border-subtle);}
.vx-chat .chat-msg__content th {position: sticky; top: 0; z-index: 1; font-weight: var(--font-weight-semibold); background: var(--surface-hover); color: var(--text-secondary); font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 0.3px;}
.vx-chat .chat-msg__content tr:last-child td {border-bottom: none;}
.vx-chat .chat-msg__content tbody tr:nth-child(even) td {background: var(--accent-subtle);}
.vx-chat .chat-view__typing {position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px; background: var(--bg); border: 1px solid var(--card-border-hover); border-radius: 0;}
.vx-chat .chat-view__typing-dots {display: flex; gap: 4px;}
.vx-chat .chat-view__typing-dot {width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); animation: typing-bounce 1.4s infinite ease-in-out;}
.vx-chat .chat-view__typing-dot:nth-child(2) {animation-delay: 0.2s;}
.vx-chat .chat-view__typing-dot:nth-child(3) {animation-delay: 0.4s;}
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.vx-chat .chat-view__typing-label {font-family: var(--font-code); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary);}
.vx-chat .chat-view__jump-present {position: fixed; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 31; display: flex; align-items: center; gap: 6px; padding: 8px 16px 8px 12px; border: 1px solid var(--card-border-hover); border-radius: var(--radius-full); background: var(--bg); color: var(--text-secondary); font-family: var(--font-code); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 2px 8px rgba(10, 10, 10, 0.08); transition: background var(--duration-micro) var(--easing-standard), border-color var(--duration-micro) var(--easing-standard), color var(--duration-micro) var(--easing-standard);}
.vx-chat .chat-view__jump-present:hover {background: var(--surface-hover); border-color: var(--card-border); color: var(--text-primary);}
.vx-chat .chat-view__jump-present:active {background: var(--surface-active);}
.vx-chat .chat-view__jump-present[hidden] {display: none;}
.vx-chat .chat-view__jump-present-icon {width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.vx-chat .chat-view__jump-present-label {line-height: 1;}
.vx-chat .chat-msg--highlighted {animation: highlight-pulse 3s ease-out;}
@keyframes highlight-pulse {
  0% { background: rgba(250, 204, 21, 0.2); }
  100% { background: transparent; }
}
.vx-chat .chat-msg__tool {display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; margin: 2px 0; border-radius: var(--radius-sm); background: var(--accent-2-subtle); border: 1px solid var(--accent-2-subtle); font-size: var(--font-size-xs); color: var(--text-secondary); font-family: var(--font-code);}
.vx-chat #empty-state {position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; pointer-events: none;}
.vx-chat #empty-state .empty-art {width: 240px; height: 150px; border-radius: var(--radius-lg); background-size: cover; background-position: center; opacity: 0.9; box-shadow: var(--card-shadow); -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);}
.vx-chat #empty-state .empty-text {font-family: 'Fraunces', Georgia, serif; font-size: 22px; color: var(--text-primary);}
.vx-chat #empty-state .empty-hint {font-family: var(--font-ui); font-size: var(--font-size-sm); color: var(--text-tertiary);}
.vx-chat #empty-state .empty-action {margin-top: 4px; border: none; border-radius: var(--radius-full); background: var(--accent); color: var(--bg); font-family: var(--font-ui); font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); padding: 7px 16px; cursor: pointer; transition: transform var(--motion-quick) var(--ease-standard), filter var(--motion-quick) var(--ease-standard);}
.vx-chat #empty-state .empty-action:hover {filter: brightness(1.08);}
.vx-chat #empty-state .empty-action:active {transform: scale(0.97);}
@media (prefers-reduced-motion: reduce) {
.vx-chat *, .vx-chat *::before, .vx-chat *::after {animation: none !important; transition: none !important; scroll-behavior: auto !important;}
}
.vx-chat button:focus-visible, .vx-chat a:focus-visible, .vx-chat [tabindex="0"]:focus-visible {outline: 2px solid currentColor; outline-offset: 3px;}
.vx-chat .chat-view__messages:focus-visible {outline-offset: -3px;}
@media (prefers-contrast: more) {
.vx-chat .chat-msg__toolbar {opacity: 1;}
.vx-chat .chat-msg__time, .vx-chat .chat-msg__action-btn, .vx-chat .chat-msg__role {color: var(--text-primary);}
}
@media (max-width: 540px) {
.vx-chat .chat-view__messages {padding: 16px 12px;}
.vx-chat .chat-msg {padding: 12px;}
.vx-chat .chat-msg__header {gap: 6px 10px;}
}
.vx-chat #empty-state {z-index: 1;}
@keyframes blob-a { to { transform: translate(14vw, 10vh) scale(1.08); } }
@keyframes blob-b { to { transform: translate(-12vw, -8vh) scale(1.05); } }
@keyframes blob-c { to { transform: translate(-8vw, 12vh); } }
@keyframes wave-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes cloud-breathe { 50% { opacity: var(--ambient-cloud-max); } }
@keyframes stars-far { to { transform: translate3d(512px, 128px, 0); } }
@keyframes stars-near { to { transform: translate3d(512px, 128px, 0); } }
@keyframes stars-twinkle { 50% { opacity: 0.65; } }
.vx-chat .chat-msg__artifacts {display: flex; flex-direction: column; gap: 6px; margin-top: 10px;}
.vx-chat .chat-artifact {display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--card-border); border-radius: 8px; background: var(--surface); max-width: 420px;}
.vx-chat .chat-artifact__icon svg {width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block;}
.vx-chat .chat-artifact__text {display: flex; flex-direction: column; min-width: 0; flex: 1;}
.vx-chat .chat-artifact__name {font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.vx-chat .chat-artifact__detail {font-size: 11px; color: var(--text-secondary);}
.vx-chat .chat-artifact__open {font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--card-border); background: transparent; color: inherit; cursor: pointer;}
.vx-chat .chat-artifact__open:hover {background: var(--surface-hover);}
.vx-chat .chat-msg__code-panel {margin-left: auto; margin-right: 6px;}
.vx-chat .chat-visual {position: relative; margin: 10px 0;}
.vx-chat .chat-visual__render {display: none; overflow-x: auto;}
.vx-chat .chat-visual--ready .chat-visual__render {display: block; padding: 8px 0;}
.vx-chat .chat-visual__render svg {max-width: 100%; height: auto;}
.vx-chat .chat-visual__render .vega-embed {width: 100%;}
.vx-chat .chat-visual__render .katex-display {margin: 4px 0; overflow-x: auto; overflow-y: hidden;}
.vx-chat .chat-visual--ready .chat-visual__source {display: none;}
.vx-chat .chat-visual--ready.chat-visual--source .chat-visual__source {display: block;}
.vx-chat .chat-visual__pill {font-size: 11px; padding: 1px 8px; border-radius: 8px; background: var(--accent-subtle); color: var(--text-secondary); margin-left: auto;}
.vx-chat .chat-visual__notice {font-size: 12px; color: var(--text-secondary); margin: 0 0 6px;}
.vx-chat .chat-visual__toolbar {position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; opacity: 0; pointer-events: none; z-index: 2;}
.vx-chat .chat-visual--ready:hover .chat-visual__toolbar, .vx-chat .chat-visual--ready:focus-within .chat-visual__toolbar {opacity: 1; pointer-events: auto;}
.vx-chat .chat-visual__btn {font: inherit; font-size: 11px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--card-border); background: var(--surface); color: var(--text-primary); cursor: pointer;}
.vx-chat .chat-visual__btn:hover {background: var(--surface-hover);}
.vx-chat .chat-visual__table-chart {margin: 4px 0;}
.vx-chat html:not([data-motion="off"]) .chat-visual--ready .chat-visual__render {animation: msg-in var(--motion-standard) var(--ease-standard) both;}
.vx-chat html:not([data-motion="off"]) .chat-visual__toolbar {transition: opacity var(--duration-standard) ease;}
.vx {--bg: #EEF1F5; --surface: #FFFFFF; --surface-hover: #F6F8FA; --surface-active: #E9EDF2; --input-bg: #FFFFFF; --text-primary: #1C2B36; --text-secondary: #3F4E5A; --text-tertiary: #616E79; --text-accent: #5D51A6; --accent: #5D51A6; --accent-hover: #7266BA; --accent-subtle: rgba(114, 102, 186, 0.1); --accent-2: #177A9E; --accent-2-subtle: rgba(35, 183, 229, 0.12); --card-border: #E2E8EF; --card-border-subtle: #EBF0F5; --card-border-hover: #C9D2DC; --msg-user-bg: #FFFFFF; --msg-assistant-bg: #FFFFFF; --code-surface: #F7F9FB; --code-text: #24292E; --code-header-bg: rgba(28, 43, 54, 0.04); --card-shadow: 0 1px 2px rgba(28, 43, 54, 0.05), 0 8px 24px rgba(28, 43, 54, 0.06); --msg-blur: 0px; --sidebar-bg: #1C2B36; --sidebar-text: #E6ECF1; --surface-glass: rgba(255, 255, 255, 0.86); --glow: #F4C542; --positive: #2B7A53; --warning: #8F640A; --danger: #C53030; --info: #2B6CB0; --ambient-a: #7266BA; --ambient-b: #23B7E5; --ambient-c: #F4C542; --canvas-gradient: none;}
