Spaces:
Running
Running
| /* ── chatbot container ── */ | |
| #hy-chat { | |
| border: none ; | |
| box-shadow: none ; | |
| background: #ffffff ; | |
| --border-color-primary: transparent ; | |
| --color-accent-soft: #ffffff ; | |
| --background-fill-secondary: #ffffff ; | |
| } | |
| .dark #hy-chat { | |
| background: #171717 ; | |
| --border-color-primary: transparent ; | |
| --color-accent-soft: #1f1f1f ; | |
| --background-fill-secondary: #171717 ; | |
| } | |
| /* ── message panel: uniform style for both user and bot ── */ | |
| #hy-chat .message-row .message-bubble-border, | |
| #hy-chat .bot .message-bubble-border, | |
| #hy-chat .user .message-bubble-border, | |
| #hy-chat [data-testid="bot"] .message-bubble-border, | |
| #hy-chat [data-testid="user"] .message-bubble-border { | |
| border-color: transparent ; | |
| border-width: 0 ; | |
| box-shadow: none ; | |
| outline: none ; | |
| background: #ffffff ; | |
| padding: 4px 16px 4px 0 ; | |
| max-width: 100% ; | |
| } | |
| .dark #hy-chat .message-row .message-bubble-border, | |
| .dark #hy-chat .bot .message-bubble-border, | |
| .dark #hy-chat .user .message-bubble-border, | |
| .dark #hy-chat [data-testid="bot"] .message-bubble-border, | |
| .dark #hy-chat [data-testid="user"] .message-bubble-border { | |
| background: #171717 ; | |
| } | |
| /* ── remove user message bubble border (all themes) ── */ | |
| #hy-chat .user, | |
| #hy-chat .user .message, | |
| #hy-chat .user .bubble, | |
| #hy-chat .user > div, | |
| #hy-chat [data-testid="user"], | |
| #hy-chat [data-testid="user"] .message, | |
| #hy-chat [data-testid="user"] .bubble, | |
| #hy-chat [data-testid="user"] > div, | |
| #hy-chat .message-row.user-row, | |
| #hy-chat .message-row.user-row > div, | |
| #hy-chat .user-message, | |
| #hy-chat .message.user { | |
| border: none ; | |
| border-width: 0 ; | |
| border-color: transparent ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| #hy-chat .user .message, | |
| #hy-chat [data-testid="user"] .message, | |
| #hy-chat .user-message { | |
| background: transparent ; | |
| padding: 4px 16px ; | |
| } | |
| .dark #hy-chat .user .message, | |
| .dark #hy-chat [data-testid="user"] .message, | |
| .dark #hy-chat .user-message { | |
| background: transparent ; | |
| } | |
| /* ── user text: match bot text style ── */ | |
| #hy-chat .user .markdown, | |
| #hy-chat .user .message-content, | |
| #hy-chat .user p, | |
| #hy-chat [data-testid="user"] .markdown, | |
| #hy-chat [data-testid="user"] .message-content, | |
| #hy-chat [data-testid="user"] p { | |
| font-size: 15px ; | |
| line-height: 1.8 ; | |
| color: #222222 ; | |
| letter-spacing: 0.01em ; | |
| } | |
| .dark #hy-chat .user .markdown, | |
| .dark #hy-chat .user .message-content, | |
| .dark #hy-chat .user p, | |
| .dark #hy-chat [data-testid="user"] .markdown, | |
| .dark #hy-chat [data-testid="user"] .message-content, | |
| .dark #hy-chat [data-testid="user"] p { | |
| color: #e8e8e8 ; | |
| } | |
| /* ── bot text styling ── */ | |
| #hy-chat .bot .markdown, | |
| #hy-chat .bot .message-content, | |
| #hy-chat [data-testid="bot"] .markdown { | |
| font-size: 15px ; | |
| line-height: 1.8 ; | |
| color: #222222 ; | |
| letter-spacing: 0.01em ; | |
| } | |
| .dark #hy-chat .bot .markdown, | |
| .dark #hy-chat .bot .message-content, | |
| .dark #hy-chat [data-testid="bot"] .markdown { | |
| color: #e8e8e8 ; | |
| } | |
| #hy-chat .bot p { margin: 0.6em 0 ; } | |
| #hy-chat .bot strong, #hy-chat .bot b { | |
| font-weight: 600 ; | |
| color: #111 ; | |
| } | |
| .dark #hy-chat .bot strong, .dark #hy-chat .bot b { | |
| color: #fff ; | |
| } | |
| #hy-chat .bot ul, #hy-chat .bot ol { | |
| padding-left: 1.5em ; | |
| margin: 0.5em 0 ; | |
| } | |
| #hy-chat .bot li { | |
| margin: 0.3em 0 ; | |
| line-height: 1.8 ; | |
| } | |
| /* ── headings ── */ | |
| #hy-chat .bot h1 { font-size: 22px ; font-weight: 700 ; color: #111 ; margin: 1em 0 0.5em ; } | |
| #hy-chat .bot h2 { font-size: 19px ; font-weight: 700 ; color: #111 ; margin: 0.9em 0 0.4em ; } | |
| #hy-chat .bot h3 { font-size: 17px ; font-weight: 600 ; color: #111 ; margin: 0.8em 0 0.35em ; } | |
| #hy-chat .bot h4 { font-size: 15px ; font-weight: 600 ; color: #222 ; margin: 0.7em 0 0.3em ; } | |
| .dark #hy-chat .bot h1 { color: #f2f2f2 ; } | |
| .dark #hy-chat .bot h2 { color: #ebebeb ; } | |
| .dark #hy-chat .bot h3 { color: #e0e0e0 ; } | |
| .dark #hy-chat .bot h4 { color: #d4d4d4 ; } | |
| /* ── tables ── */ | |
| #hy-chat table { | |
| border-collapse: collapse ; | |
| width: auto ; | |
| margin: 1em 0 ; | |
| font-size: 14px ; | |
| line-height: 1.6 ; | |
| } | |
| #hy-chat th, #hy-chat td { | |
| border: 1px solid #e8e8e8 ; | |
| padding: 10px 20px ; | |
| text-align: left ; | |
| } | |
| #hy-chat th { | |
| background: #fafafa ; | |
| font-weight: 600 ; | |
| color: #333 ; | |
| } | |
| #hy-chat td { | |
| color: #444 ; | |
| background: #fff ; | |
| } | |
| #hy-chat tr:hover td { | |
| background: #fafcff ; | |
| } | |
| .dark #hy-chat th, .dark #hy-chat td { | |
| border-color: #2a2a2a ; | |
| } | |
| .dark #hy-chat th { | |
| background: #242424 ; | |
| color: #e0e0e0 ; | |
| } | |
| .dark #hy-chat td { | |
| color: #d0d0d0 ; | |
| background: #1c1c1c ; | |
| } | |
| .dark #hy-chat tr:hover td { | |
| background: #262626 ; | |
| } | |