Spaces:
Sleeping
Sleeping
| @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap'); | |
| .gradio-container, .main { | |
| padding: 0 ; | |
| --layout-gap: 0 ; | |
| } | |
| footer { | |
| display: none ; | |
| } | |
| html { | |
| scroll-behavior: smooth; | |
| } | |
| html, body { | |
| height: 100%; | |
| overflow: hidden; | |
| } | |
| #main-row { | |
| height: var(--vh, 100%); | |
| max-height: 100%; | |
| } | |
| button[aria-label="Clear"] { | |
| display: none; | |
| } | |
| #chat-column { | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| padding: 0; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| #chatbot { | |
| flex: 1; | |
| min-height: 100px; | |
| border: 0; | |
| } | |
| .sidebar { | |
| border-right: 1px solid var(--border-color-primary); | |
| box-shadow: none; | |
| } | |
| .sidebar-parent:has(.sidebar.open:not(.right)) { | |
| padding-left: 320px; | |
| } | |
| .sidebar-content { | |
| position: relative; | |
| padding: 50px 0 0 0 ; | |
| background: none; | |
| } | |
| .sidebar-content::before { | |
| content: ""; | |
| position: absolute; | |
| inset: 0; | |
| background: url("/gradio_api/file=static/svg/logo.svg") no-repeat top; | |
| background-size: 180px 52px; | |
| pointer-events: none; | |
| z-index: 0; | |
| } | |
| .toggle-button { | |
| top: 10px; | |
| } | |
| /* New Conversation button - top spacing */ | |
| .sidebar > :first-child { | |
| margin-bottom: 8px; | |
| } | |
| /* Sidebar buttons (New/Del) */ | |
| #main-row .sidebar button { | |
| transition: all 0.15s ease; | |
| } | |
| #main-row .sidebar button:hover { | |
| transform: translateY(-1px); | |
| } | |
| .sidebar-content .form { | |
| border: 0; | |
| background: transparent; | |
| } | |
| .wrap { | |
| gap: 0; | |
| } | |
| /* Conversation items — card-style list */ | |
| #conversations-radio { | |
| padding: 0; | |
| border: 0; | |
| background: transparent; | |
| } | |
| #conversations-radio > div:last-child { | |
| display: grid; | |
| gap: 2px; | |
| } | |
| #conversations-radio input[type="radio"] { | |
| opacity: 0; | |
| position: absolute; | |
| width: 0; | |
| height: 0; | |
| } | |
| #conversations-radio span[data-testid="block-info"] { | |
| display: none; | |
| } | |
| #conversations-radio label { | |
| padding: 10px 14px; | |
| margin: 0; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| transition: all 0.2s ease; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| background: transparent; | |
| color: var(--button-secondary-text-color); | |
| border-bottom: 1px solid var(--border-color-primary); | |
| } | |
| label span { | |
| margin: 0; | |
| } | |
| .icon-button-wrapper { | |
| display: hidden; | |
| } | |
| /* --- Chat Message Animations --- */ | |
| @keyframes messageSlideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(16px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| /* Animate new messages as they appear */ | |
| #chatbot [data-testid="bot"], | |
| #chatbot [data-testid="user"], | |
| #chatbot [class*="message"] { | |
| animation: messageSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); | |
| } | |
| /* --- Input Area — Docked Bottom --- */ | |
| /* --- Send / Stop Button Micro-animations --- */ | |
| #send-btn, #stop-btn { | |
| font-size: 0; | |
| height: 100%; | |
| min-width: 40px; | |
| transition: transform 0.15s ease, opacity 0.15s ease; | |
| cursor: pointer; | |
| padding: 0; | |
| } | |
| #send-btn::after { | |
| content: ""; | |
| display: inline-block; | |
| width: 20px; | |
| height: 20px; | |
| background: url("/gradio_api/file=static/svg/send.svg") no-repeat center; | |
| background-size: contain; | |
| } | |
| #stop-btn::after { | |
| content: ""; | |
| display: inline-block; | |
| width: 20px; | |
| height: 20px; | |
| background: url("/gradio_api/file=static/svg/stop.svg") no-repeat center; | |
| background-size: contain; | |
| } | |
| /* --- Custom Scrollbars --- */ | |
| #chatbot::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| #chatbot::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| #chatbot::-webkit-scrollbar-thumb { | |
| background: var(--border-color-primary); | |
| transition: background 0.2s ease; | |
| } | |
| #chatbot::-webkit-scrollbar-thumb:hover { | |
| background: var(--neutral-400); | |
| } | |
| /* Sidebar scrollbar — thinner, subtle */ | |
| .sidebar::-webkit-scrollbar { | |
| width: 4px; | |
| } | |
| .sidebar::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .sidebar::-webkit-scrollbar-thumb { | |
| background: var(--border-color-primary); | |
| border-radius: 2px; | |
| } | |
| .input-container textarea { | |
| background: var(--background-fill-secondary) ; | |
| } | |
| .bubble-wrap { | |
| background: var(--background-fill-primary) ; | |
| } | |
| /* ============================================ | |
| LANDING PAGE - Terminal-inspired Design | |
| ============================================ */ | |
| #landing-page-container { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background: var(--background-fill-primary); | |
| z-index: 10; | |
| pointer-events: auto; | |
| } | |
| #landing-page { | |
| width: 100%; | |
| height: 100%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .landing-content { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 32px; | |
| padding: 40px; | |
| max-width: 600px; | |
| width: 100%; | |
| } | |
| /* Logo styling */ | |
| .landing-logo { | |
| margin-bottom: 100px ; | |
| } | |
| .landing-logo svg { | |
| height: 60px; | |
| width: auto; | |
| } | |
| /* Hide landing page when chat has messages */ | |
| #landing-page-container.hidden { | |
| display: none ; | |
| } | |
| .landing-prompt { | |
| bottom: 5%; | |
| position: absolute; | |
| text-align: center; | |
| } | |
| body:not(.dark) .landing-logo img, body:not(.dark) .sidebar-content::before { | |
| filter: invert(0.8); | |
| } | |
| /* ============================================ | |
| INPUT ROW - Terminal-style Global | |
| ============================================ */ | |
| /* When landing page is visible, center the input row */ | |
| #chat-column.landing-active #input-row { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| width: 100%; | |
| max-width: 600px; | |
| z-index: 20; | |
| } | |
| #chat-column.landing-active #send-btn, | |
| #chat-column.landing-active #stop-btn { | |
| align-self: stretch; | |
| min-width: 56px; | |
| padding: 0 8px; | |
| height: auto; | |
| } | |
| /* When landing page is hidden (chat active), keep input at bottom */ | |
| #chat-column:not(.landing-active) #input-row { | |
| position: relative; | |
| bottom: 3%; | |
| left: auto; | |
| transform: none; | |
| max-width: none; | |
| } | |
| /* Terminal-style input row */ | |
| #input-row { | |
| z-index: 15; | |
| position: relative; | |
| } | |
| #input-row .form { | |
| background: rgba(255, 255, 255, 0.03) ; | |
| border: 1px solid rgba(255, 255, 255, 0.1) ; | |
| border-radius: 8px ; | |
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace ; | |
| transition: all 0.2s ease ; | |
| } | |
| #input-row .form:focus-within { | |
| border-color: rgba(255, 255, 255, 0.3) ; | |
| background: rgba(255, 255, 255, 0.05) ; | |
| box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) ; | |
| } | |
| /* Terminal cursor effect on input */ | |
| #input-row textarea, | |
| #input-row input[type="text"] { | |
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace ; | |
| caret-color: var(--body-text-color) ; | |
| caret-shape: block ; | |
| } | |
| /* Blinking cursor animation for input */ | |
| @keyframes inputCursorBlink { | |
| 0%, 50% { border-right-color: var(--body-text-color); } | |
| 51%, 100% { border-right-color: transparent; } | |
| } | |
| /* Responsive adjustments */ | |
| @media (max-width: 768px) { | |
| .landing-content { | |
| padding: 20px; | |
| gap: 24px; | |
| } | |
| .landing-logo svg { | |
| height: 40px; | |
| } | |
| } | |
| /* Center chat column on larger screens */ | |
| @media (min-width: 749px) { | |
| #chat-column { | |
| max-width: 748px; | |
| margin: 0 auto; | |
| } | |
| } | |
| /* Apply monospace font to body for terminal feel */ | |
| body, .gradio-container { | |
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace ; | |
| } | |
| /* Chatbot styling when empty */ | |
| #chatbot:empty, | |
| #chatbot .empty-state { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| height: 100%; | |
| } | |
| /* Ensure proper z-index stacking */ | |
| #chatbot { | |
| z-index: 5; | |
| } | |
| .message-wrap { | |
| margin-bottom: 40px; | |
| } | |
| /* --- Provider selector (sidebar) --- */ | |
| #provider-group { | |
| margin-bottom: 16px; | |
| padding: 12px; | |
| border: 1px solid var(--border-color-primary, rgba(255, 255, 255, 0.08)); | |
| border-radius: 6px; | |
| background: rgba(0, 0, 0, 0.18); | |
| } | |
| #provider-group h3, | |
| #provider-group .markdown { | |
| margin: 0 0 10px 0; | |
| font-family: 'JetBrains Mono', monospace ; | |
| font-size: 0.78rem; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| opacity: 0.7; | |
| } | |
| #provider-dropdown, | |
| #model-dropdown { | |
| font-family: 'JetBrains Mono', monospace ; | |
| } | |
| #provider-status { | |
| margin-top: 8px; | |
| font-family: 'JetBrains Mono', monospace; | |
| font-size: 0.72rem; | |
| line-height: 1.4; | |
| } | |
| #provider-status .provider-status { | |
| padding: 6px 8px; | |
| border-radius: 4px; | |
| border: 1px solid transparent; | |
| } | |
| #provider-status .provider-status.ok { | |
| border-color: rgba(120, 200, 140, 0.35); | |
| background: rgba(60, 120, 80, 0.12); | |
| } | |
| #provider-status .provider-status.missing { | |
| border-color: rgba(220, 160, 90, 0.45); | |
| background: rgba(160, 100, 40, 0.12); | |
| } | |
| #provider-status code { | |
| font-family: 'JetBrains Mono', monospace; | |
| font-size: 0.72rem; | |
| padding: 1px 4px; | |
| border-radius: 3px; | |
| background: rgba(255, 255, 255, 0.07); | |
| } | |
| /* --- Footer glitch / attribution eat-and-replace --- */ | |
| .landing-prompt p { | |
| min-height: 1.2em; /* prevents layout jump while text is shrinking */ | |
| } | |
| .footer-glitch { | |
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; | |
| font-variant-numeric: tabular-nums; | |
| letter-spacing: 0.01em; | |
| /* Subtle CRT-style flicker to match the OpenMythos terminal aesthetic. | |
| Restrained — no purple/violet, no gradients. */ | |
| color: var(--body-text-color, #d5d8dc); | |
| text-shadow: 0 0 1px rgba(255, 255, 255, 0.08); | |
| } | |
| .footer-glitch.typing::after { | |
| content: '▍'; | |
| margin-left: 2px; | |
| animation: footer-cursor 0.9s steps(1) infinite; | |
| color: var(--primary-500, #ff4b4b); | |
| font-weight: 600; | |
| } | |
| @keyframes footer-cursor { | |
| 50% { opacity: 0; } | |
| } | |
| .sr-only-credit { | |
| /* Accessibility: original credit remains in the DOM for screen readers */ | |
| position: absolute ; | |
| width: 1px; | |
| height: 1px; | |
| padding: 0; | |
| margin: -1px; | |
| overflow: hidden; | |
| clip: rect(0, 0, 0, 0); | |
| white-space: nowrap; | |
| border: 0; | |
| } | |
| /* ============================================================ | |
| HERO GLITCH — "OpenMythos" eats itself and becomes "Omy" | |
| ============================================================ */ | |
| .hero-wrap { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| min-height: 70px; | |
| } | |
| .hero-glitch { | |
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; | |
| font-weight: 700; | |
| font-size: 2.6rem; | |
| letter-spacing: 0.04em; | |
| color: #f1ecec; /* matches the original logo's primary path color */ | |
| text-shadow: | |
| 0.7px 0 0 rgba(255, 75, 75, 0.45), | |
| -0.7px 0 0 rgba(0, 220, 220, 0.4), | |
| 0 0 18px rgba(255, 255, 255, 0.08); | |
| text-transform: uppercase; | |
| position: relative; | |
| padding: 0 6px; | |
| user-select: none; | |
| /* Subtle background plate, NOT a gradient (per palette pref) */ | |
| background: rgba(0,0,0,0.18); | |
| border: 1px solid rgba(255,255,255,0.04); | |
| border-radius: 3px; | |
| } | |
| .hero-glitch.typing::after { | |
| content: '█'; | |
| margin-left: 6px; | |
| animation: hero-cursor 0.7s steps(1) infinite; | |
| color: var(--primary-500, #ff4b4b); | |
| text-shadow: 0 0 10px rgba(255, 75, 75, 0.65); | |
| } | |
| @keyframes hero-cursor { | |
| 50% { opacity: 0; } | |
| } | |
| .hero-glitch.burst { | |
| animation: hero-burst 0.16s steps(1); | |
| } | |
| @keyframes hero-burst { | |
| 0% { transform: translateX(0) skewX(0deg); filter: brightness(1) } | |
| 25% { transform: translateX(-3px) skewX(-2deg); filter: brightness(1.4) } | |
| 50% { transform: translateX(3px) skewX(2deg); filter: brightness(0.7) } | |
| 75% { transform: translateX(-1px) skewX(0deg); filter: brightness(1.2) } | |
| 100% { transform: translateX(0) skewX(0deg); filter: brightness(1) } | |
| } | |
| .hero-svg-fallback { | |
| display: none ; | |
| } | |
| /* Re-share the burst keyframe with the footer (hero-burst was kept after revert) */ | |
| .footer-glitch.burst { | |
| animation: hero-burst 0.18s steps(1); | |
| } | |