Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.
TypeScript
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
color-scheme: light;
/* RGB channels are the source of truth so Tailwind opacity modifiers
* (`bg-paper/60`) keep working. `--name` is the hex-equivalent used by
* inline `var(--ink-900)` styles. Dark mode only remaps the channels. */
--skype-rgb: 0 168 240;
--skype-deep-rgb: 0 120 200;
--skype-ink-rgb: 0 59 111;
--sky-50-rgb: 242 250 254;
--sky-100-rgb: 225 243 253;
--sky-200-rgb: 194 230 251;
--sky-300-rgb: 143 211 247;
--sky-glow-rgb: 79 194 244;
--coral-rgb: 255 122 107;
--coral-soft-rgb: 255 217 210;
--coral-deep-rgb: 200 78 63;
--gold-rgb: 244 183 64;
--gold-deep-rgb: 186 132 24;
/* Whisper accent — a refined dusty iris / wisteria purple. Clearly
* reads as PURPLE (not gray, not candy), more sophisticated than the
* original electric #7C5CFF candy violet. Sits as the "private /
* intimate" register opposite the brand sky-blue and the warm coral. */
--whisper-rgb: 123 108 176;
--whisper-deep-rgb: 78 63 140;
--whisper-50-rgb: 247 245 251;
--whisper-100-rgb: 236 231 245;
--whisper-200-rgb: 210 201 233;
--avail-rgb: 110 197 106;
--working-rgb: 244 183 64;
/* Thinking = agent is mid-compute / about to act. Sits in the same
* purple register as --whisper but a touch more saturated so the small
* status dot still reads ACTIVE (not the muted resting gray). */
--thinking-rgb: 138 120 200;
--waiting-rgb: 255 122 107;
--resting-rgb: 184 196 209;
--ink-900-rgb: 10 27 46;
--ink-700-rgb: 35 58 83;
--ink-500-rgb: 91 113 134;
--ink-300-rgb: 148 168 188;
--ink-200-rgb: 197 210 222;
--ink-100-rgb: 229 236 242;
--paper-rgb: 250 252 254;
--cloud-rgb: 255 255 255;
--skype: rgb(var(--skype-rgb));
--skype-deep: rgb(var(--skype-deep-rgb));
--skype-ink: rgb(var(--skype-ink-rgb));
--sky-50: rgb(var(--sky-50-rgb));
--sky-100: rgb(var(--sky-100-rgb));
--sky-200: rgb(var(--sky-200-rgb));
--sky-300: rgb(var(--sky-300-rgb));
--sky-glow: rgb(var(--sky-glow-rgb));
/* Aliases matching the Tailwind palette name ("sky2"). Components refer to
* both spellings; an undefined var() here doesn't just miss a color — it
* invalidates the whole shorthand it appears in (a `border: 1.5px solid
* var(--sky2-300)` loses the border entirely and the element shrinks). */
--sky2-50: var(--sky-50);
--sky2-100: var(--sky-100);
--sky2-200: var(--sky-200);
--sky2-300: var(--sky-300);
--sky2-glow: var(--sky-glow);
--coral: rgb(var(--coral-rgb));
--coral-soft: rgb(var(--coral-soft-rgb));
--coral-deep: rgb(var(--coral-deep-rgb));
--gold: rgb(var(--gold-rgb));
--gold-deep: rgb(var(--gold-deep-rgb));
--whisper: rgb(var(--whisper-rgb));
--whisper-deep: rgb(var(--whisper-deep-rgb));
--whisper-50: rgb(var(--whisper-50-rgb));
--whisper-100: rgb(var(--whisper-100-rgb));
--whisper-200: rgb(var(--whisper-200-rgb));
--avail: rgb(var(--avail-rgb));
--working: rgb(var(--working-rgb));
--thinking: rgb(var(--thinking-rgb));
--waiting: rgb(var(--waiting-rgb));
--resting: rgb(var(--resting-rgb));
--ink-900: rgb(var(--ink-900-rgb));
--ink-700: rgb(var(--ink-700-rgb));
--ink-500: rgb(var(--ink-500-rgb));
--ink-300: rgb(var(--ink-300-rgb));
--ink-200: rgb(var(--ink-200-rgb));
--ink-100: rgb(var(--ink-100-rgb));
--paper: rgb(var(--paper-rgb));
--cloud: rgb(var(--cloud-rgb));
/* Chrome washes used by the rail, titlebar, and side drawers. Dark
* mode collapses them to the paper surface so they don't stay a
* frozen light-blue gradient. */
--chrome: linear-gradient(180deg, #FBFDFF 0%, #F1F7FB 100%);
--chrome-rail: linear-gradient(180deg, #F8FBFD, #EDF4F9);
--chrome-pane: linear-gradient(180deg, #FBFDFE, #F4F8FC);
--chrome-whisper: linear-gradient(180deg, #FBFAFE, #EFE9F7);
--chrome-warm: linear-gradient(180deg, #FBF8F0, #F4EEDD);
--chrome-warm-rule: rgba(120, 110, 95, 0.25);
--chrome-warm-rule-soft: rgba(120, 110, 95, 0.18);
--chrome-warm-icon: #7A6A3F;
--chrome-warm-shadow: -12px 0 32px -10px rgba(60, 50, 30, 0.18);
--email-backdrop: rgb(var(--ink-900-rgb) / 0.15);
--email-muted: rgb(var(--ink-300-rgb));
--modal-scrim: rgb(var(--ink-900-rgb) / 0.4);
--select-face: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.94));
--select-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset, 0 10px 24px -24px rgba(26, 78, 120, 0.55);
--select-menu-shadow: 0 22px 55px -24px rgba(10, 30, 60, 0.38), 0 8px 18px -12px rgba(10, 30, 60, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
--select-menu-border: rgb(var(--sky-100-rgb));
/* Desktop-corner toast (Electron panel) + in-app frost toast. Light
* keeps the original white card; dark remaps onto cloud / ink. */
--toast-bg: #ffffff;
--toast-border: rgb(33 28 22 / 0.12);
--toast-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
--toast-frost-bg: rgb(255 255 255 / 0.82);
--toast-frost-border: rgb(10 30 60 / 0.08);
--toast-frost-shadow: 0 18px 40px -14px rgba(10, 30, 60, 0.24), 0 6px 14px -8px rgba(10, 30, 60, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
/* Chat surface atmosphere + a few chrome pieces that were frozen as
* light RGBA. Dark remaps these; light stays pixel-identical. */
--chat-wash: radial-gradient(ellipse 80% 40% at 0% 0%, rgba(194, 230, 251, 0.3), transparent 60%), radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 217, 210, 0.25), transparent 60%), var(--cloud);
--whispers-wash: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(210, 201, 233, 0.30), transparent 60%), linear-gradient(180deg, var(--paper) 0%, var(--whisper-50) 100%);
--whisper-room-wash: radial-gradient(ellipse 70% 50% at 0% 0%, rgba(210, 201, 233, 0.28), transparent 60%), radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 217, 210, 0.18), transparent 60%), var(--paper);
--error-card: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 217, 210, 0.18));
--error-card-border: 1px solid rgba(255, 122, 107, 0.18);
--error-card-shadow: 0 12px 32px -16px rgba(200, 78, 63, 0.25);
--error-icon-bg: rgba(255, 122, 107, 0.12);
--unread-fresh: rgb(var(--gold-rgb));
--unread-fresh-fg: rgb(var(--ink-900-rgb));
/* Shipping workspace canvas + nested cards. Light keeps the original
* hex; dark collapses onto paper / cloud so the contract pane doesn't
* stay a frozen white sheet. */
--ship-canvas: #F7FAFC;
--ship-face: #FAFCFD;
/* Markdown / TipTap editor. Light keeps the original stone hexes;
* dark remaps onto ink / paper so the toolbar doesn't stay a frozen
* wash and body copy doesn't stay near-black on charcoal. */
--doc-toolbar: rgb(250 250 249 / 0.6);
--doc-toolbar-border: #f5f5f4;
--doc-toolbar-icon: #57534e;
--doc-toolbar-icon-muted: #d6d3d1;
--doc-toolbar-hover: #f5f5f4;
--doc-toolbar-rule: #e7e5e4;
--doc-muted: #a8a29e;
--doc-muted-strong: #78716c;
--doc-body: #1c1917;
--doc-quote: #57534e;
--doc-rule: #e7e5e4;
--doc-placeholder: #a8a29e;
--doc-img-bg: #fafaf9;
--doc-img-border: #e7e5e4;
--doc-img-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
--doc-pre-bg: #0f172a;
--doc-pre-fg: #e2e8f0;
--doc-code-bg: rgb(var(--skype-rgb) / 0.08);
--doc-cell: #e7e5e4;
--doc-th: rgb(var(--skype-rgb) / 0.05);
/* Kanban columns + tiles. Light keeps the original cloud/60 well and
* white card; dark splits them so tiles don't vanish into the canvas. */
--board-column: rgb(var(--cloud-rgb) / 0.6);
--board-card: rgb(var(--cloud-rgb));
--board-card-border: rgb(var(--ink-100-rgb));
--board-card-shadow: 0 2px 8px -2px rgba(10, 30, 60, 0.08);
--safe-top: env(safe-area-inset-top);
--safe-bottom: env(safe-area-inset-bottom);
--safe-left: env(safe-area-inset-left);
--safe-right: env(safe-area-inset-right);
/* Live keyboard height — set from Capacitor's keyboardWillShow event
so bottom-anchored composers can lift above the soft keyboard. */
--kb-height: 0px;
}
/* Dark palette is One Dark Pro's editor chrome (Atom / VS Code), mapped
* onto Cumora's existing token names so `bg-paper` / `text-ink-900` /
* `border-ink-100` flip without a `dark:` variant on every component.
* Accents (skype / coral / gold / whisper) become the One Dark syntax
* hues so status dots and brand buttons still read, just on a cooler
* ground. */
html.dark {
color-scheme: dark;
--skype-rgb: 97 175 239;
--skype-deep-rgb: 82 139 255;
--skype-ink-rgb: 171 178 191;
--sky-50-rgb: 44 49 60;
--sky-100-rgb: 49 54 64;
--sky-200-rgb: 62 68 81;
--sky-300-rgb: 75 82 99;
--sky-glow-rgb: 97 175 239;
--coral-rgb: 224 108 117;
--coral-soft-rgb: 61 42 46;
--coral-deep-rgb: 224 108 117;
--gold-rgb: 229 192 123;
--gold-deep-rgb: 209 154 102;
--whisper-rgb: 198 120 221;
--whisper-deep-rgb: 198 120 221;
--whisper-50-rgb: 47 42 56;
--whisper-100-rgb: 53 45 64;
--whisper-200-rgb: 74 61 92;
--avail-rgb: 152 195 121;
--working-rgb: 229 192 123;
--thinking-rgb: 198 120 221;
--waiting-rgb: 224 108 117;
--resting-rgb: 92 99 112;
--ink-900-rgb: 171 178 191;
--ink-700-rgb: 157 165 180;
--ink-500-rgb: 127 132 142;
--ink-300-rgb: 92 99 112;
--ink-200-rgb: 62 68 81;
--ink-100-rgb: 44 49 60;
--paper-rgb: 33 37 43;
--cloud-rgb: 40 44 52;
--chrome: rgb(var(--paper-rgb));
--chrome-rail: rgb(var(--paper-rgb));
--chrome-pane: rgb(var(--paper-rgb));
--chrome-whisper: rgb(var(--whisper-50-rgb));
--chrome-warm: rgb(var(--paper-rgb));
--chrome-warm-rule: rgb(var(--ink-200-rgb));
--chrome-warm-rule-soft: rgb(var(--ink-100-rgb));
--chrome-warm-icon: rgb(var(--gold-rgb));
--chrome-warm-shadow: -12px 0 32px -10px rgba(0, 0, 0, 0.5);
--email-backdrop: rgb(0 0 0 / 0.5);
--email-muted: rgb(var(--ink-500-rgb));
--modal-scrim: rgb(0 0 0 / 0.5);
--select-face: none;
--select-shadow: 0 0 #0000;
--select-menu-shadow: 0 22px 55px -24px rgba(0, 0, 0, 0.55), 0 8px 18px -12px rgba(0, 0, 0, 0.35);
--select-menu-border: rgb(var(--ink-200-rgb));
--toast-bg: rgb(var(--cloud-rgb));
--toast-border: rgb(var(--ink-200-rgb));
--toast-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
--toast-frost-bg: rgb(var(--cloud-rgb) / 0.88);
--toast-frost-border: rgb(var(--ink-200-rgb) / 0.85);
--toast-frost-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55), 0 6px 14px -8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgb(255 255 255 / 0.04) inset;
--chat-wash: rgb(var(--cloud-rgb));
--whispers-wash: rgb(var(--cloud-rgb));
--whisper-room-wash: rgb(var(--paper-rgb));
--error-card: rgb(var(--sky-50-rgb));
--error-card-border: 1px solid rgb(var(--ink-200-rgb));
--error-card-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.55);
--error-icon-bg: rgba(224, 108, 117, 0.18);
--unread-fresh: rgb(var(--gold-deep-rgb));
--unread-fresh-fg: #21252b;
--ship-canvas: rgb(var(--paper-rgb));
--ship-face: rgb(var(--cloud-rgb));
--doc-toolbar: rgb(var(--paper-rgb));
--doc-toolbar-border: rgb(var(--ink-100-rgb));
--doc-toolbar-icon: rgb(var(--ink-700-rgb));
--doc-toolbar-icon-muted: rgb(var(--ink-300-rgb));
--doc-toolbar-hover: rgb(var(--ink-100-rgb));
--doc-toolbar-rule: rgb(var(--ink-200-rgb));
--doc-muted: rgb(var(--ink-300-rgb));
--doc-muted-strong: rgb(var(--ink-500-rgb));
--doc-body: rgb(var(--ink-900-rgb));
--doc-quote: rgb(var(--ink-500-rgb));
--doc-rule: rgb(var(--ink-200-rgb));
--doc-placeholder: rgb(var(--ink-300-rgb));
--doc-img-bg: rgb(var(--paper-rgb));
--doc-img-border: rgb(var(--ink-200-rgb));
--doc-img-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
--doc-pre-bg: rgb(var(--paper-rgb));
--doc-pre-fg: rgb(var(--ink-900-rgb));
--doc-code-bg: rgb(var(--skype-rgb) / 0.16);
--doc-cell: rgb(var(--ink-200-rgb));
--doc-th: rgb(var(--skype-rgb) / 0.12);
--board-column: rgb(var(--paper-rgb));
--board-card: rgb(var(--sky-100-rgb));
--board-card-border: rgb(var(--ink-200-rgb));
--board-card-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.45);
}
/* Native-shell tweaks (iOS / Android Capacitor builds). main.tsx adds
the `.native` class to <body> when the Capacitor bridge is present;
pure CSS, no impact on the web bundle.
NOTE: we do NOT set `user-select: none` on body itself anymore.
The earlier blanket rule killed long-press-to-select on message
bubbles, which iOS users absolutely expect ("hold to copy"). The
chrome-specific rules below opt out individual UI surfaces. */
body.native {
overscroll-behavior: none;
-webkit-text-size-adjust: none;
/* Native default: nothing is text-selectable and long-press never pops the
iOS selection magnifier / callout. We then opt selection BACK IN only for
real text content (inputs/contenteditable below, and message rows further
down). Without this, long-pressing a list row to open its context menu
also kicked off a page-wide text selection — the most web-y tell there is. */
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
/* Opt selection back in for message rows so "hold to copy" still works on
chat bubbles (id is `m-<messageId>`). Scoped tightly so it doesn't re-enable
selection on list rows / chrome. */
body.native [id^="m-"],
body.native [id^="m-"] * {
-webkit-user-select: text;
user-select: text;
-webkit-touch-callout: default;
}
body.native input,
body.native textarea,
body.native [contenteditable] {
user-select: text;
-webkit-user-select: text;
}
body.native button,
body.native [role="button"],
body.native a {
touch-action: manipulation;
}
/* iOS native polish — applied only inside Capacitor's WebView so
desktop / browser surfaces keep their normal selection + scroll
chrome. The goal is: UI chrome (buttons, headers, list rows,
tab bar) cannot be text-selected or callout-magnified; long
text content (message bubbles, documents) still can. */
body.native {
/* Block iOS's "double-tap to zoom" gesture system-wide. Without
this, double-tapping anywhere quickly fires a viewport zoom
animation even with `touch-action: manipulation` on individual
buttons, because the zoom is triggered at the document root. */
touch-action: manipulation;
/* Disable rubber-band overscroll on the BODY — individual scroll
containers can still bounce. Without this, dragging up at the
top of a list bounces the whole app shell, which exposes the
transparent webview background. */
overscroll-behavior: none;
}
body.native button,
body.native [role="button"],
body.native nav,
body.native header,
body.native .mobile-chrome {
/* Stop iOS's tap-and-hold from popping up a magnifier / "Copy"
callout over UI chrome. Apply `.mobile-chrome` to a container
whose entire subtree is UI (e.g. tab bar). */
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
/* iOS-native typography. The `-apple-system` keyword resolves to
SF Pro Text / SF Pro Display on Apple platforms — auto-switching
between the two by font size (Display ≥20pt, Text below). Using
the system stack instead of Manrope is the single highest-leverage
"feels native" tweak for an iOS WKWebView app: the moment a user
sees SF Pro instead of a custom web font, the cognitive frame
flips from "this is a website" to "this is an iOS app".
Desktop / browser surfaces keep Manrope for Cumora's brand
identity — the override is `body.native`-scoped. */
body.native,
body.native .font-display,
body.native input,
body.native textarea,
body.native button,
body.native [contenteditable] {
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
/* Manrope ships with discretionary ligatures + alternate forms via
`ss01` / `cv11`; SF Pro doesn't use those tags, so let the
system font use its own defaults. */
font-feature-settings: normal;
/* SF Pro has slightly tighter optical kerning by default; turn it
on explicitly so headings don't look "looser" than what a real
UIKit Title 1 renders. */
font-kerning: normal;
}
/* Display sizes — SF Pro Display kicks in automatically at ≥20pt
via the `-apple-system` keyword. We just bump the weight a touch
so big titles still read as "headings" without leaning on the
custom font's display optical sizing. */
body.native .font-display {
font-weight: 600;
letter-spacing: -0.012em;
}
/* `.kb-aware` opts a bottom-anchored row (the composer) into keyboard-following
padding. Falls back to safe-area-inset-bottom on web / when the keyboard is
down. With Capacitor `resize: 'none'` the WebView stays full height and the
keyboard overlays the bottom, so we lift the composer by the keyboard height
ourselves. The transition is tuned to iOS's keyboard curve (~0.25s); because
`keyboardWillShow` (native.ts) sets `--kb-height` + the `keyboard-open` class
as the keyboard animation BEGINS, the input slides up locked to the keyboard
instead of snapping into place after it has already appeared. */
.kb-aware {
padding-bottom: max(env(safe-area-inset-bottom), 10px);
transition: padding-bottom 0.25s cubic-bezier(0.17, 0.59, 0.4, 0.77);
}
body.keyboard-open .kb-aware {
padding-bottom: var(--kb-height);
}
* { box-sizing: border-box; }
html, body, #root { height: 100%; width: 100%; margin: 0; padding: 0; }
html {
-webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: 100%;
}
body {
font-family: 'Manrope', system-ui, -apple-system, sans-serif;
color: var(--ink-900);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-feature-settings: "ss01", "cv11";
background: var(--cloud);
overflow: hidden;
}
/* Browser-mode atmospheric backdrop (skipped in Electron via :has() check) */
@media (min-width: 768px) {
body:not(.electron) {
background:
radial-gradient(ellipse 80% 60% at 20% 0%, rgba(143, 211, 247, 0.55), transparent 60%),
radial-gradient(ellipse 70% 50% at 90% 100%, rgba(255, 217, 210, 0.45), transparent 55%),
radial-gradient(ellipse 60% 40% at 50% 50%, rgba(194, 230, 251, 0.35), transparent 65%),
linear-gradient(180deg, #E6F3FB 0%, #F5F0EA 100%);
background-attachment: fixed;
}
body:not(.electron)::before, body:not(.electron)::after {
content: '';
position: fixed;
border-radius: 50%;
filter: blur(60px);
opacity: 0.5;
pointer-events: none;
z-index: 0;
}
body:not(.electron)::before {
width: 500px; height: 300px;
background: radial-gradient(ellipse, rgba(255,255,255,0.9), transparent 70%);
top: 8%; left: 60%;
animation: drift 40s ease-in-out infinite;
}
body:not(.electron)::after {
width: 400px; height: 250px;
background: radial-gradient(ellipse, rgba(255, 217, 210, 0.6), transparent 70%);
bottom: 10%; left: 10%;
animation: drift 55s ease-in-out infinite reverse;
}
}
@keyframes drift {
0%, 100% { transform: translate(0, 0); }
50% { transform: translate(60px, 30px); }
}
html.dark body:not(.electron) {
background: var(--paper);
}
html.dark body:not(.electron)::before,
html.dark body:not(.electron)::after {
display: none;
}
/* Toast auto-dismiss progress bar — drains right-to-left over the toast's
* lifetime. Used by NotificationToasts; the toast pauses the animation on
* hover so the user gets time to read longer messages. */
@keyframes cumora-toast-drain {
from { transform: scaleX(1); }
to { transform: scaleX(0); }
}
/* ChatPane empty-state loader — three breathing dots that lift and fade
* in sequence. The stagger lives in inline animation-delay so each dot
* shares the same keyframes but offsets its phase. */
@keyframes cumora-pulse-dot {
0%, 80%, 100% { transform: translateY(0) scale(0.85); opacity: 0.35; }
40% { transform: translateY(-6px) scale(1); opacity: 1; }
}
/* Soft halo around the loader — slow, ambient pulse so the empty state
* doesn't feel inert while the dots animate above it. */
@keyframes cumora-halo {
0%, 100% { transform: scale(0.9); opacity: 0.35; }
50% { transform: scale(1.05); opacity: 0.7; }
}
/* Empty-state container — gentle fade + lift on mount so loading/error
* panels don't pop in jarringly when a conversation is first opened. */
@keyframes cumora-empty-in {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
/* Empty-conversation hero — gentle Y wave for the floating chat bubbles.
* Three bubbles share the same keyframes but offset their phase via
* animation-delay so the cluster reads as a "drifting cloud" rather than
* a synchronized pulse. Translation is small (4-5px) on purpose — at
* larger amplitudes it starts feeling like a loader. */
@keyframes cumora-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}
/* Cute-cloud bob for the empty-state hero — a four-stop circuit that
* mixes a gentle X sway with a Y lift so the cumulus puff reads as
* WEIGHTLESS (lazily floating in a breeze), not as a metronome. The
* rotation is tiny on purpose — anything past ~1.5° starts looking like
* a logo animation. */
@keyframes cumora-cloud-bob {
0%, 100% { transform: translate(0, 0) rotate(0deg); }
25% { transform: translate(2px, -4px) rotate(0.6deg); }
50% { transform: translate(0, -6px) rotate(0deg); }
75% { transform: translate(-2px, -3px) rotate(-0.6deg); }
}
.cumora-cloud-float {
animation: cumora-cloud-bob 9.5s ease-in-out infinite;
transform-origin: center 68%;
will-change: transform;
}
/* Hover reaction for the empty-state cloud button — pure CSS so it
* stays smooth even when the React tree isn't repainting. JUST scale,
* no rotation: rotation was reading as "the cloud shakes its head"
* instead of "the cloud notices you and puffs up a tiny bit". Pure
* uniform scale is the cleaner / more elegant signal. Amplitude kept
* tiny (1.03 ≈ +7px at 240 px wide) so the motion is FELT but never
* looks like a big jump. */
.cumora-cloud-poke:hover { transform: scale(1.03); }
.cumora-cloud-poke:active { transform: scale(0.985); }
/* Eye-blink keyframe — asymmetric timing modeled on real eyelid
* biology: fast snap shut, brief hold closed, slower open. A symmetric
* fade (the previous 60 ms ease-out in both directions) reads as a
* "flash" — both ends moving at the same speed feels like a strobe.
* Real blinks have the eyelid accelerating shut and decelerating open,
* with the closed phase being the briefest part. 220 ms total = 62 ms
* close, 53 ms held closed, 105 ms open. */
@keyframes cumora-eye-blink {
0% { opacity: 0; } /* eyes open (rest) */
28% { opacity: 1; } /* fully closed (fast snap shut) */
52% { opacity: 1; } /* briefly held closed */
100% { opacity: 0; } /* eyes back open (slower opening phase) */
}
/* Click "pop" keyframe — happy spring-jump for the cloud, retuned for
* a softer, jellier (Q 弹) feel. Two changes from the previous version:
* (1) amplitudes halved across the board (translateY -7 instead of
* -14, scale 1.04 instead of 1.08, rotate ±2° instead of ±5°)
* so the motion is FELT but not BIG.
* (2) added an extra micro-rebound frame around 82% (tiny lift +
* 1.005 scale + 0.2° tilt) before the rest pose. This is the
* damped second oscillation that turns a single-bounce into the
* jelly-wobble that reads as "Q 弹". `both` fill-mode in the
* inline animation prop holds the final state through the React
* state-clear window so it doesn't snap mid-frame. */
@keyframes cumora-cloud-pop {
0% { transform: translateY(0) scale(1) rotate(0deg); }
18% { transform: translateY(-7px) scale(1.04) rotate(-2deg); } /* apex */
40% { transform: translateY(-2px) scale(1.02) rotate(1deg); }
62% { transform: translateY(2px) scale(0.985) rotate(-0.5deg); } /* squash */
82% { transform: translateY(-1px) scale(1.005) rotate(0.2deg); } /* micro-rebound */
100% { transform: translateY(0) scale(1) rotate(0deg); }
}
/* Sparkle twinkle for the gold ★ accents on the empty-state hero —
* shrinks + dims at the trough so the stars feel like they're "breathing"
* rather than flashing. Paired with a soft text-shadow on the element. */
@keyframes cumora-twinkle {
0%, 100% { transform: scale(1); opacity: 0.95; }
50% { transform: scale(1.25); opacity: 0.45; }
}
/* Click-on-quote → scroll + brief flash on the jumped-to bubble. The
* MessageRow wrapper carries `id="m-<id>"`; QuoteCard adds this class for
* ~1.4s after a jump so the user can spot which message was quoted. */
@keyframes cumora-quote-flash {
0% { background-color: transparent; }
20% { background-color: rgba(96, 165, 250, 0.18); }
100% { background-color: transparent; }
}
.quote-jump-flash {
animation: cumora-quote-flash 1.4s ease-out;
border-radius: 12px;
}
/* ─── Cumora code-block syntax theme ─────────────────────────────────────
* Token colors mapped onto the brand palette (sky / coral / gold / wisteria
* / ink) so highlighted code never visually fights the surrounding chat.
* Used by `<CodeBlock>` in Message.tsx. Light: paper-toned. Dark: One
* Dark Pro roles (purple keywords, green strings, blue functions) so a
* fenced block reads like the editor the palette came from.
*/
.cumora-code, .cumora-code code { color: var(--ink-700); }
.cumora-code .hljs-keyword,
.cumora-code .hljs-built_in,
.cumora-code .hljs-literal,
.cumora-code .hljs-selector-tag,
.cumora-code .hljs-tag,
.cumora-code .hljs-name { color: var(--skype-deep); font-weight: 600; }
.cumora-code .hljs-string,
.cumora-code .hljs-regexp,
.cumora-code .hljs-symbol,
.cumora-code .hljs-template-tag,
.cumora-code .hljs-template-variable { color: var(--coral-deep); }
.cumora-code .hljs-number,
.cumora-code .hljs-attr,
.cumora-code .hljs-attribute { color: var(--gold-deep); }
.cumora-code .hljs-title,
.cumora-code .hljs-title.class_,
.cumora-code .hljs-title.function_,
.cumora-code .hljs-class .hljs-title,
.cumora-code .hljs-function .hljs-title,
.cumora-code .hljs-type,
.cumora-code .hljs-section { color: var(--whisper-deep); font-weight: 600; }
.cumora-code .hljs-comment,
.cumora-code .hljs-quote { color: var(--ink-300); font-style: italic; }
.cumora-code .hljs-meta,
.cumora-code .hljs-meta .hljs-keyword,
.cumora-code .hljs-doctag { color: var(--ink-500); }
.cumora-code .hljs-variable,
.cumora-code .hljs-property,
.cumora-code .hljs-params { color: var(--ink-700); }
.cumora-code .hljs-operator,
.cumora-code .hljs-punctuation { color: var(--ink-500); }
.cumora-code .hljs-bullet,
.cumora-code .hljs-link { color: var(--skype-deep); }
.cumora-code .hljs-emphasis { font-style: italic; }
.cumora-code .hljs-strong { font-weight: 700; }
.cumora-code .hljs-addition { background: rgba(110, 197, 106, 0.12); color: #2D6F2A; }
.cumora-code .hljs-deletion { background: rgba(255, 122, 107, 0.12); color: var(--coral-deep); }
html.dark .cumora-code,
html.dark .cumora-code code { color: #abb2bf; }
html.dark .cumora-code .hljs-keyword,
html.dark .cumora-code .hljs-selector-tag,
html.dark .cumora-code .hljs-tag,
html.dark .cumora-code .hljs-name { color: #c678dd; font-weight: 600; }
html.dark .cumora-code .hljs-built_in { color: #56b6c2; font-weight: 600; }
html.dark .cumora-code .hljs-literal { color: #d19a66; font-weight: 600; }
html.dark .cumora-code .hljs-string,
html.dark .cumora-code .hljs-regexp,
html.dark .cumora-code .hljs-symbol,
html.dark .cumora-code .hljs-template-tag,
html.dark .cumora-code .hljs-template-variable { color: #98c379; }
html.dark .cumora-code .hljs-number,
html.dark .cumora-code .hljs-attr,
html.dark .cumora-code .hljs-attribute { color: #d19a66; }
html.dark .cumora-code .hljs-title,
html.dark .cumora-code .hljs-title.class_,
html.dark .cumora-code .hljs-title.function_,
html.dark .cumora-code .hljs-class .hljs-title,
html.dark .cumora-code .hljs-function .hljs-title,
html.dark .cumora-code .hljs-type,
html.dark .cumora-code .hljs-section { color: #61afef; font-weight: 600; }
html.dark .cumora-code .hljs-comment,
html.dark .cumora-code .hljs-quote { color: #5c6370; font-style: italic; }
html.dark .cumora-code .hljs-meta,
html.dark .cumora-code .hljs-meta .hljs-keyword,
html.dark .cumora-code .hljs-doctag { color: #5c6370; }
html.dark .cumora-code .hljs-variable,
html.dark .cumora-code .hljs-property,
html.dark .cumora-code .hljs-params { color: #e06c75; }
html.dark .cumora-code .hljs-operator,
html.dark .cumora-code .hljs-punctuation { color: #abb2bf; }
html.dark .cumora-code .hljs-bullet,
html.dark .cumora-code .hljs-link { color: #61afef; }
html.dark .cumora-code .hljs-addition { background: rgba(152, 195, 121, 0.15); color: #98c379; }
html.dark .cumora-code .hljs-deletion { background: rgba(224, 108, 117, 0.15); color: #e06c75; }
/* Scrollbars */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--ink-100); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-200); }
/* `.scroll-clean` — aggressive scrollbar hide. Applies on EVERY platform
* (was previously gated to `max-width: 768px`, which meant desktop users
* still saw a track under horizontally-scrolling filter rows). Force
* 0×0 with display:none + transparent track/thumb so the override beats
* the universal `*::-webkit-scrollbar { height: 8px }` rule above. */
.scroll-clean { scrollbar-width: none; -ms-overflow-style: none; }
.scroll-clean::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
background: transparent;
}
.scroll-clean::-webkit-scrollbar-thumb { background: transparent; }
.scroll-clean::-webkit-scrollbar-track { background: transparent; }
button { font: inherit; }
input, textarea { font: inherit; }
/* Shipping contract pane. Native inputs/selects follow Chromium's
* `field` system color (tied to Electron nativeTheme), which can stay
* white even when html.dark has remapped --cloud. Pin them to tokens
* so the draft form matches the rest of the workspace. Light cloud is
* still #fff, so light mode stays the same. */
.ship-workspace :is(input, textarea, select):not([type='checkbox']):not([type='radio']) {
background-color: rgb(var(--cloud-rgb));
color: rgb(var(--ink-900-rgb));
}
.ship-workspace :is(input, textarea, select)::placeholder {
color: rgb(var(--ink-300-rgb));
}
html.dark .ship-workspace {
color-scheme: dark;
}
html.dark .ship-workspace option {
background-color: rgb(var(--cloud-rgb));
color: rgb(var(--ink-900-rgb));
}
/* RichInput contenteditable placeholder. The composer drops a
* `data-placeholder` attribute on the editor; this rule surfaces it
* only when the editor has zero content. */
.rich-input:empty::before {
content: attr(data-placeholder);
color: var(--ink-300);
pointer-events: none;
white-space: pre-wrap;
}
.rich-input { outline: none; word-break: break-word; overflow-wrap: anywhere; }
/* Skype emoticon CSS sprite animation. Each instance is a span sized
* to `size` × `size`; the sprite is a vertical strip of N frames at
* `size` × (size*N). steps(N) walks one frame per tick; one cycle =
* `--skype-cycle-dur` (default ~50ms/frame so a 50-frame loop runs
* 2.5s, which roughly matches the original Skype tempo). */
/* The frame strip animates via `transform: translateY` on a pseudo-element —
NOT `background-position`. On iOS WKWebView a background-position step
animation silently degrades to a smooth scroll when an ancestor sits on a
composited layer (the chat page rides a framer-motion translateX for its
push transition + swipe-back, so it stays composited at rest). That made the
emoji "scroll top-to-bottom" the moment you opened a conversation. Transform
animations are composited and honor `steps()` regardless of any ancestor. */
@keyframes skype-emoji-cycle {
to { transform: translateY(var(--skype-cycle-y)); }
}
.skype-emoji-anim {
display: inline-block;
vertical-align: text-bottom;
position: relative;
overflow: hidden;
user-select: none;
}
.skype-emoji-anim::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: calc(100% * var(--skype-cycle-frames, 1));
background-image: var(--skype-url);
background-size: 100% auto;
background-repeat: no-repeat;
animation: skype-emoji-cycle var(--skype-cycle-dur, 2s) steps(var(--skype-cycle-frames, 1)) infinite;
will-change: transform;
}
/* ============== TipTap rich-text editor ==============
*
* Project hasn't pulled in @tailwindcss/typography, so we ship a tight,
* native set of styles for ProseMirror output rather than depend on
* `prose`. Scoped to `.tiptap` so it can't leak into chat or marketing
* pages. */
.tiptap { color: var(--doc-body); caret-color: var(--doc-body); font-family: 'Fraunces', 'Georgia', serif; font-size: 17px; line-height: 1.65; }
.tiptap > * + * { margin-top: 0.85em; }
.tiptap h1 { font-size: 1.9em; font-weight: 600; line-height: 1.2; margin-top: 1.4em; }
.tiptap h2 { font-size: 1.45em; font-weight: 600; line-height: 1.25; margin-top: 1.2em; }
.tiptap h3 { font-size: 1.2em; font-weight: 600; line-height: 1.3; margin-top: 1em; }
.tiptap p:empty::before { content: ''; display: inline-block; }
.tiptap ul, .tiptap ol { padding-left: 1.5em; }
.tiptap ul { list-style: disc; }
.tiptap ol { list-style: decimal; }
.tiptap li > p { margin: 0; }
.tiptap blockquote {
border-left: 3px solid var(--skype);
padding-left: 1em;
color: var(--doc-quote);
font-style: italic;
}
.tiptap code {
background: var(--doc-code-bg);
color: var(--skype-deep);
border-radius: 4px;
padding: 0.1em 0.35em;
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.92em;
}
.tiptap pre {
background: var(--doc-pre-bg);
color: var(--doc-pre-fg);
border-radius: 10px;
padding: 0.9em 1.1em;
overflow-x: auto;
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.92em;
line-height: 1.55;
}
.tiptap pre code { background: transparent; color: inherit; padding: 0; }
.tiptap a {
color: var(--skype-deep);
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-thickness: 1px;
}
.tiptap a:hover { color: var(--skype); }
.tiptap hr { border: 0; border-top: 1px solid var(--doc-rule); margin: 1.5em 0; }
/* Tables (GFM from agents + tiptap TableKit). Match the doc's serif look:
* hairline rules, roomy cells, header in small caps-ish weight. */
.tiptap table {
border-collapse: collapse;
width: 100%;
table-layout: fixed;
margin: 1.1em 0;
font-size: 0.95em;
}
.tiptap th, .tiptap td {
border: 1px solid var(--doc-cell);
padding: 0.45em 0.7em;
vertical-align: top;
text-align: left;
}
.tiptap th {
font-weight: 600;
background: var(--doc-th);
}
.tiptap th p, .tiptap td p { margin: 0; }
/* tiptap wraps the table in a scrollable div when it overflows */
.tiptap .tableWrapper { overflow-x: auto; }
.tiptap .selectedCell { background: rgba(0, 168, 240, 0.1); }
.tiptap img {
display: block;
max-width: min(100%, 720px);
max-height: 520px;
object-fit: contain;
border: 1px solid var(--doc-img-border);
border-radius: 12px;
background: var(--doc-img-bg);
box-shadow: var(--doc-img-shadow);
}
.tiptap img.ProseMirror-selectednode {
outline: 3px solid rgba(0, 168, 240, 0.28);
outline-offset: 3px;
}
.tiptap .mention {
display: inline-block;
background: rgba(0, 168, 240, 0.12);
color: var(--skype-deep);
padding: 0 6px;
border-radius: 6px;
font-weight: 500;
white-space: nowrap;
font-size: 0.94em;
font-family: 'Manrope', system-ui, sans-serif;
}
/* TipTap placeholder for empty first paragraph. */
.tiptap p.is-editor-empty:first-child::before {
content: attr(data-placeholder);
color: var(--doc-placeholder);
float: left;
height: 0;
pointer-events: none;
}
/* === Remote collaboration carets (TipTap v3 CollaborationCaret) ===
*
* Each peer's caret is a 1px vertical bar tinted with their awareness
* color, plus a floating label with their display name. Selectors
* cover both the v3 (`collaboration-carets__*`) and legacy v2
* (`collaboration-cursor__*`) class names so we're robust to a future
* package downgrade or upstream rename. */
.collaboration-carets__caret,
.collaboration-cursor__caret {
position: relative;
border-left: 1px solid;
border-right: 1px solid;
margin-left: -1px;
margin-right: -1px;
word-break: normal;
pointer-events: none;
}
.collaboration-carets__label,
.collaboration-cursor__label {
position: absolute;
top: -1.45em;
left: -1px;
font-size: 11px;
font-weight: 600;
line-height: 1.2;
color: #fff;
padding: 1px 6px;
border-radius: 4px 4px 4px 0;
white-space: nowrap;
font-family: 'Manrope', system-ui, sans-serif;
user-select: none;
}
input:focus, textarea:focus, button:focus { outline: none; }
/* Reaction micro-interactions: instant optimistic feedback plus a tiny,
* contained sparkle so reacting feels tactile without disturbing message
* layout. */
.reaction-control {
position: relative;
overflow: visible;
transform: translateZ(0);
will-change: transform;
transition:
transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
background-color 180ms ease,
border-color 180ms ease,
color 180ms ease,
box-shadow 180ms ease,
opacity 180ms ease;
}
.reaction-control:hover {
transform: translateY(-1px) scale(1.035);
}
.reaction-control:active {
transform: translateY(0) scale(0.94);
}
.reaction-pill {
animation: cumora-reaction-pill-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reaction-pill[data-mine="true"] {
box-shadow: 0 7px 18px -14px rgba(0, 120, 200, 0.55);
}
.reaction-pill[data-mine="true"] .reaction-emoji {
animation: cumora-reaction-emoji-pop 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reaction-count {
display: inline-block;
min-width: 0.65em;
text-align: left;
animation: cumora-reaction-count-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reaction-quick-tray {
transform: translateY(2px) scale(0.98);
transform-origin: left center;
transition:
opacity 160ms ease,
transform 190ms cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .reaction-quick-tray,
.group:focus-within .reaction-quick-tray {
transform: translateY(0) scale(1);
}
.reaction-quick-button {
color: var(--ink-500);
}
.reaction-quick-button:hover {
background: rgb(var(--skype-rgb) / 0.12);
box-shadow: 0 8px 18px -16px rgb(var(--skype-deep-rgb) / 0.5);
}
.reaction-burst {
position: absolute;
left: 50%;
top: 50%;
width: 38px;
height: 38px;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 1;
}
.reaction-burst::before {
content: '';
position: absolute;
inset: 10px;
border-radius: 999px;
border: 1px solid rgba(244, 183, 64, 0.55);
animation: cumora-reaction-ring 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reaction-burst span {
position: absolute;
left: 17px;
top: 17px;
width: 4px;
height: 4px;
border-radius: 999px;
opacity: 0;
background: var(--gold);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
animation: cumora-reaction-spark 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reaction-burst span:nth-child(1) { --spark-x: -14px; --spark-y: -10px; background: var(--gold); }
.reaction-burst span:nth-child(2) { --spark-x: 13px; --spark-y: -11px; background: var(--coral); animation-delay: 22ms; }
.reaction-burst span:nth-child(3) { --spark-x: -10px; --spark-y: 13px; background: var(--sky-glow); animation-delay: 38ms; }
.reaction-burst span:nth-child(4) { --spark-x: 12px; --spark-y: 10px; background: var(--whisper); animation-delay: 54ms; }
@keyframes cumora-reaction-pill-in {
from { opacity: 0; transform: translateY(4px) scale(0.86); }
62% { opacity: 1; transform: translateY(-1px) scale(1.045); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cumora-reaction-emoji-pop {
from { transform: rotate(-7deg) scale(0.72); filter: saturate(0.9); }
65% { transform: rotate(4deg) scale(1.12); filter: saturate(1.08); }
to { transform: rotate(0deg) scale(1); filter: saturate(1); }
}
@keyframes cumora-reaction-count-in {
from { opacity: 0; transform: translateY(3px) scale(0.9); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cumora-reaction-ring {
from { opacity: 0.6; transform: scale(0.55); }
to { opacity: 0; transform: scale(1.8); }
}
@keyframes cumora-reaction-spark {
0% { opacity: 0; transform: translate(0, 0) scale(0.35); }
20% { opacity: 1; }
100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
.cumora-cloud-float,
.cumora-cloud-poke,
.cumora-cloud-poke img {
animation: none !important;
transition: none !important;
transform: none !important;
will-change: auto !important;
}
.reaction-control,
.reaction-quick-tray {
transition: none !important;
transform: none !important;
}
.reaction-pill,
.reaction-pill[data-mine="true"] .reaction-emoji,
.reaction-count,
.reaction-burst,
.reaction-burst::before,
.reaction-burst span {
animation: none !important;
}
.reaction-burst {
display: none;
}
}