Spaces:
Running
Running
| :root { | |
| --cohere-ink: #212121; | |
| --cohere-primary: #17171c; | |
| --cohere-green: #003c33; | |
| --cohere-stone: #eeece7; | |
| --cohere-pale-green: #edfce9; | |
| --cohere-hairline: #d9d9dd; | |
| --cohere-muted: #75758a; | |
| --cohere-canvas: #ffffff; | |
| --cohere-surface: #ffffff; | |
| --cohere-elevated: #fbfaf7; | |
| --cohere-input: #ffffff; | |
| --cohere-user-bg: #17171c; | |
| --cohere-user-fg: #ffffff; | |
| --cohere-user-code-bg: rgba(255, 255, 255, 0.12); | |
| --cohere-user-code-border: rgba(255, 255, 255, 0.2); | |
| --cohere-button-bg: #17171c; | |
| --cohere-button-fg: #ffffff; | |
| --cohere-button-hover: #003c33; | |
| } | |
| @media (prefers-color-scheme: dark) { | |
| :root { | |
| --cohere-ink: #f7f5ef; | |
| --cohere-primary: #f7f5ef; | |
| --cohere-green: #7fd3b0; | |
| --cohere-stone: #202725; | |
| --cohere-pale-green: #102e28; | |
| --cohere-hairline: rgba(238, 236, 231, 0.22); | |
| --cohere-muted: #b9b8ad; | |
| --cohere-canvas: #07110f; | |
| --cohere-surface: #0d1714; | |
| --cohere-elevated: #111d19; | |
| --cohere-input: #07110f; | |
| --cohere-user-bg: #f7f5ef; | |
| --cohere-user-fg: #07110f; | |
| --cohere-user-code-bg: rgba(0, 0, 0, 0.12); | |
| --cohere-user-code-border: rgba(0, 0, 0, 0.18); | |
| --cohere-button-bg: #f7f5ef; | |
| --cohere-button-fg: #07110f; | |
| --cohere-button-hover: #edfce9; | |
| } | |
| } | |
| :root.dark, | |
| .dark, | |
| body.dark, | |
| .gradio-container.dark, | |
| [data-theme="dark"] { | |
| --cohere-ink: #f7f5ef; | |
| --cohere-primary: #f7f5ef; | |
| --cohere-green: #7fd3b0; | |
| --cohere-stone: #202725; | |
| --cohere-pale-green: #102e28; | |
| --cohere-hairline: rgba(238, 236, 231, 0.22); | |
| --cohere-muted: #b9b8ad; | |
| --cohere-canvas: #07110f; | |
| --cohere-surface: #0d1714; | |
| --cohere-elevated: #111d19; | |
| --cohere-input: #07110f; | |
| --cohere-user-bg: #f7f5ef; | |
| --cohere-user-fg: #07110f; | |
| --cohere-user-code-bg: rgba(0, 0, 0, 0.12); | |
| --cohere-user-code-border: rgba(0, 0, 0, 0.18); | |
| --cohere-button-bg: #f7f5ef; | |
| --cohere-button-fg: #07110f; | |
| --cohere-button-hover: #edfce9; | |
| } | |
| .gradio-container { | |
| color-scheme: light dark; | |
| background: var(--cohere-canvas); | |
| color: var(--cohere-ink); | |
| } | |
| .app-shell { | |
| max-width: 1120px; | |
| margin: 0 auto; | |
| padding: 0 0.75rem 2rem; | |
| } | |
| @media (min-width: 768px) { | |
| .app-shell { | |
| padding: 0 1.25rem 2.5rem; | |
| } | |
| } | |
| .hero { | |
| margin: 0 0 1rem; | |
| padding: 1rem 0 1.15rem; | |
| border-bottom: 1px solid var(--cohere-hairline); | |
| } | |
| .hero-grid { | |
| display: grid; | |
| gap: 1rem; | |
| } | |
| @media (min-width: 820px) { | |
| .hero-grid { | |
| grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); | |
| align-items: end; | |
| } | |
| } | |
| .gradio-container .hero h1 { | |
| margin: 0; | |
| color: var(--cohere-primary) ; | |
| font-size: clamp(2.25rem, 11.5vw, 5.25rem); | |
| font-weight: 500; | |
| letter-spacing: -0.065em; | |
| line-height: 0.95; | |
| white-space: nowrap; | |
| } | |
| .compact-note { | |
| margin: 0.9rem 0 0 ; | |
| color: var(--cohere-muted) ; | |
| font-size: 0.82rem; | |
| line-height: 1.55; | |
| } | |
| .compact-note a { | |
| color: var(--cohere-green) ; | |
| text-decoration: underline; | |
| text-underline-offset: 0.16em; | |
| } | |
| .gradio-container code:not(pre code) { | |
| border: 1px solid var(--cohere-hairline) ; | |
| border-radius: 0.35rem ; | |
| background: var(--cohere-stone) ; | |
| color: var(--cohere-primary) ; | |
| padding: 0.04rem 0.3rem ; | |
| font-size: 0.86em; | |
| } | |
| .status-banner { | |
| margin: 0 0 1rem; | |
| padding: 0.85rem 1rem; | |
| border: 1px solid rgba(255, 119, 89, 0.55); | |
| border-radius: 16px; | |
| background: rgba(255, 119, 89, 0.1); | |
| color: var(--cohere-primary); | |
| } | |
| .status-banner strong { | |
| color: var(--cohere-primary); | |
| } | |
| .command-chatbot { | |
| overflow: hidden; | |
| border: 1px solid var(--cohere-hairline) ; | |
| border-radius: 22px ; | |
| background: linear-gradient(180deg, var(--cohere-surface) 0%, var(--cohere-elevated) 100%) ; | |
| } | |
| .command-chatbot .bubble-wrap, | |
| .command-chatbot .message-wrap, | |
| .command-chatbot .message { | |
| border-radius: 18px ; | |
| } | |
| .command-chatbot .message.user, | |
| .command-chatbot [data-testid="user"] .message { | |
| background: var(--cohere-user-bg) ; | |
| color: var(--cohere-user-fg) ; | |
| } | |
| .command-chatbot .message.user *, | |
| .command-chatbot [data-testid="user"] .message *, | |
| .command-chatbot .user .message *, | |
| .command-chatbot .user-message *, | |
| .command-chatbot .user-message * { | |
| color: var(--cohere-user-fg) ; | |
| } | |
| .command-chatbot .message.bot, | |
| .command-chatbot [data-testid="bot"] .message { | |
| border: 1px solid var(--cohere-hairline) ; | |
| background: var(--cohere-surface) ; | |
| color: var(--cohere-ink) ; | |
| } | |
| .command-chatbot .message pre { | |
| margin: 0.5rem 0 ; | |
| padding: 0.65rem 0.8rem ; | |
| border-radius: 10px ; | |
| font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace ; | |
| font-size: 0.88em ; | |
| line-height: 1.45 ; | |
| overflow-x: auto ; | |
| white-space: pre ; | |
| } | |
| .command-chatbot .message pre code { | |
| background: transparent ; | |
| border: 0 ; | |
| padding: 0 ; | |
| font-size: inherit ; | |
| color: inherit ; | |
| } | |
| .command-chatbot .message.bot pre, | |
| .command-chatbot [data-testid="bot"] .message pre { | |
| border: 1px solid var(--cohere-hairline) ; | |
| background: var(--cohere-stone) ; | |
| color: var(--cohere-primary) ; | |
| } | |
| .command-chatbot .message.user pre, | |
| .command-chatbot [data-testid="user"] .message pre { | |
| border: 1px solid var(--cohere-user-code-border) ; | |
| background: var(--cohere-user-code-bg) ; | |
| color: var(--cohere-user-fg) ; | |
| } | |
| .command-chatbot .message.user :not(pre) > code, | |
| .command-chatbot [data-testid="user"] .message :not(pre) > code { | |
| border: 1px solid var(--cohere-user-code-border) ; | |
| background: var(--cohere-user-code-bg) ; | |
| color: var(--cohere-user-fg) ; | |
| } | |
| .command-chatbot details { | |
| margin-bottom: 0.65rem; | |
| border: 1px solid var(--cohere-hairline); | |
| border-radius: 12px; | |
| background: var(--cohere-elevated); | |
| } | |
| .command-chatbot summary { | |
| padding: 0.45rem 0.65rem; | |
| color: var(--cohere-muted); | |
| cursor: pointer; | |
| font-size: 0.84rem; | |
| font-weight: 600; | |
| } | |
| .command-chatbot details[open] { | |
| padding-bottom: 0.55rem; | |
| } | |
| .command-chatbot details > :not(summary) { | |
| margin: 0.45rem 0.65rem 0; | |
| color: var(--cohere-muted); | |
| font-size: 0.9rem; | |
| } | |
| .chat-placeholder { | |
| display: grid; | |
| gap: 0.45rem; | |
| max-width: 520px; | |
| margin: 0 auto; | |
| padding: 1.5rem; | |
| text-align: center; | |
| color: var(--cohere-ink); | |
| } | |
| .placeholder-kicker { | |
| justify-self: center; | |
| width: fit-content; | |
| padding: 0.3rem 0.7rem; | |
| border: 1px solid rgba(0, 60, 51, 0.18); | |
| border-radius: 999px; | |
| background: var(--cohere-pale-green); | |
| color: var(--cohere-green); | |
| font-size: 0.72rem; | |
| font-weight: 700; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| } | |
| .chat-placeholder strong { | |
| font-size: clamp(1.3rem, 4vw, 2rem); | |
| font-weight: 500; | |
| letter-spacing: -0.035em; | |
| } | |
| .chat-placeholder span { | |
| color: var(--cohere-muted); | |
| line-height: 1.45; | |
| } | |
| .command-input { | |
| margin-top: 0.85rem ; | |
| border: 2px solid var(--cohere-primary) ; | |
| border-radius: 22px ; | |
| background: var(--cohere-input) ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| .gradio-container div:has(> .command-input), | |
| .gradio-container div:has(.command-input) { | |
| background: transparent ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| .command-input, | |
| .command-input > *, | |
| .command-input > div, | |
| .command-input [class*="container"], | |
| .command-input [class*="wrap"], | |
| .command-input [data-testid] { | |
| background: var(--cohere-input) ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| .command-input textarea, | |
| .command-input input, | |
| .command-input [contenteditable="true"] { | |
| min-height: 58px ; | |
| border-radius: 18px ; | |
| background: var(--cohere-input) ; | |
| color: var(--cohere-primary) ; | |
| font-size: 1rem ; | |
| line-height: 1.45 ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| .command-input textarea::placeholder, | |
| .command-input input::placeholder { | |
| color: var(--cohere-muted) ; | |
| opacity: 1 ; | |
| } | |
| .command-input button { | |
| border-radius: 999px ; | |
| } | |
| .gradio-container button.primary, | |
| .gradio-container .gr-button-primary { | |
| border-radius: 999px ; | |
| background: var(--cohere-button-bg) ; | |
| color: var(--cohere-button-fg) ; | |
| } | |
| .gradio-container button.primary:hover, | |
| .gradio-container .gr-button-primary:hover { | |
| background: var(--cohere-button-hover) ; | |
| } | |
| .gradio-container button.secondary, | |
| .gradio-container .gr-button-secondary { | |
| border-radius: 999px ; | |
| } | |
| .gradio-container .examples, | |
| .gradio-container [data-testid="examples"] { | |
| margin-top: -1.75rem ; | |
| margin-bottom: 1rem ; | |
| transform: translateY(-0.75rem); | |
| border: 1px solid var(--cohere-hairline) ; | |
| border-radius: 16px ; | |
| background: var(--cohere-surface) ; | |
| box-shadow: none ; | |
| } | |
| .gradio-container footer { | |
| margin-top: 1rem; | |
| } | |
| @media (max-width: 640px) { | |
| .app-shell { | |
| padding-right: 0.5rem; | |
| padding-left: 0.5rem; | |
| } | |
| .hero { | |
| padding-top: 0.65rem; | |
| } | |
| .command-chatbot { | |
| border-radius: 16px ; | |
| } | |
| } | |