Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
@import "tailwindcss";
/* Dictation window feature styles (voice pill, assistant/live-transcript panels). */
@import "./styles/dictation-panel.css";
@custom-variant dark (&:where(.dark, .dark *));
@theme {
/* OpenWhispr Theme — registers color tokens with Tailwind v4.
These are the light-mode defaults; .dark overrides them below. */
/* Midpoint of the brand glass gradient (#5588F0 → #3466E2) so tints, rings and links match it. */
--color-primary: #4577e9;
--color-primary-foreground: #ffffff;
--color-secondary: #f5f5f5;
--color-secondary-foreground: #171717;
--color-muted: #f5f5f5;
--color-muted-foreground: #525252;
--color-accent: oklch(0.55 0.22 285);
--color-accent-foreground: #ffffff;
/* Agent Mode identity, sourced from the supplied sparkle/leaf mark. */
--color-agent-brand: #8787ff;
--color-destructive: #dc2626;
--color-destructive-foreground: #ffffff;
--color-border: #e5e5e5;
--color-input: #f9f6f1;
--color-ring: #4577e9;
--color-background: #ffffff;
--color-foreground: #171717;
--color-card: #ffffff;
--color-card-foreground: #171717;
--color-popover: #ffffff;
--color-popover-foreground: #171717;
--color-link: #4577e9;
--color-success: #16a34a;
--color-success-foreground: #ffffff;
--color-warning: #d97706;
--color-warning-foreground: #ffffff;
--color-info: #4577e9;
--color-info-foreground: #ffffff;
/* Surface hierarchy — light mode equivalents */
--color-surface-0: #ffffff;
--color-surface-1: #fafafa;
--color-surface-2: #ffffff;
--color-surface-3: #f5f5f5;
--color-surface-raised: #f0f0f0;
/* Main-window backdrop behind the sidebar and the inset content container. */
--color-surface-window: #f7f7f7;
/* Border states — light mode equivalents */
--color-border-subtle: #e5e5e5;
--color-border-hover: #d4d4d4;
--color-border-active: #4577e9;
}
:root {
/* Easing. The built-in CSS curves are too weak to read as intentional, so
onboarding motion uses --onboarding-ease-out for anything entering or
exiting (starts fast, so the user sees movement at the moment they are
watching most closely). Never ease-in on UI: it delays the first frame and
reads as sluggish at the same duration. Scoped name on purpose: a bare
--ease-out here overrides Tailwind's @layer theme variable of the same
name and silently retimes every `ease-out` utility app-wide. */
--onboarding-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
/* Typography. Yowza is the brand face (Latin only, registered by brandFonts.ts
when the licensed files are in the build); Noto Sans carries CJK and
everything else, and is the fallback when Yowza is absent. */
--font-family-sans:
"Yowza", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
Arial, sans-serif;
--font-family-display: "Yowza Soft", var(--font-family-sans);
/* Opacities */
--opacity-subtle: 0.1;
--opacity-medium: 0.5;
--opacity-high: 0.9;
/* Border Radius — ultra-tight, premium macOS-style rounding */
--radius: 0.375rem; /* 6px - default for buttons, inputs */
--radius-sm: 0.25rem; /* 4px - minimal rounding */
--radius-md: 0.375rem; /* 6px - standard */
--radius-lg: 0.5rem; /* 8px - cards, panels */
--radius-xl: 0.625rem; /* 10px - large cards */
--radius-shell: 0.75rem; /* 12px - the inset content container in the main window */
/* Custom Light Mode Brand Colors (Parchment Theme) */
--color-parchment-bg: #f9f6f1;
--color-parchment-border: #ddd4c7;
--color-parchment-text: #2b1f14;
--color-parchment-accent: #c0a77d;
--color-brand-primary: #2b1f14;
--color-brand-accent: #4b2e2b;
--color-brand-highlight: #c0a77d;
--color-brand-link: #2e3659;
--color-pattern: #e7e5e4;
/* Model picker premium effects (light mode) */
--shadow-metallic-light: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
--shadow-card-hover-subtle: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
/* Liquid-glass edge — bright inner rim + top highlight + soft lift */
--shadow-glass:
inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.45),
0 2px 10px rgba(15, 23, 42, 0.06);
/* The open note chat: the glass rim over a deep, soft lift. */
--shadow-chat-card:
inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.5),
0 28px 64px -24px rgba(15, 23, 42, 0.3), 0 2px 10px rgba(15, 23, 42, 0.06);
/* Same rim on brand-blue surfaces (mic/send buttons): the app icon's glass.
Softer than --shadow-glass because it sits on colour. */
--shadow-brand-glass:
inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.16),
inset 0 -1px 1px rgba(0, 0, 0, 0.12);
/* The fill under that rim: Button default, mic/send circles, the onboarding brand tile. */
--gradient-brand-glass: linear-gradient(180deg, #5588f0 0%, #3466e2 100%);
/* Today's upcoming-events card: a brand-blue band lit at both ends, crossed by two soft
diagonal highlights, as in the Home design. */
--gradient-calendar-today:
linear-gradient(
115deg,
transparent 36%,
rgb(255 255 255 / 0.12) 42%,
transparent 50%,
transparent 58%,
rgb(255 255 255 / 0.08) 64%,
transparent 72%
),
linear-gradient(90deg, #58a7fe 0%, #1a7bff 22%, #1f80ff 55%, #2a88ff 72%, #62afff 100%);
/* The brand tile floats over the onboarding hero, so it adds a soft coloured lift. */
--shadow-brand-tile: var(--shadow-brand-glass), 0 10px 24px -8px rgb(52 102 226 / 0.45);
}
.dark {
/* Dark mode — charcoal surfaces with clear elevation hierarchy
Base L=0.22 (charcoal) with 0.05 steps between layers.
Hue 260 (neutral blue) with minimal chroma for sophistication. */
--color-background: oklch(0.22 0.006 260);
--color-foreground: oklch(0.93 0 0);
--color-card: oklch(0.27 0.008 260);
--color-card-foreground: oklch(0.93 0 0);
--color-popover: oklch(0.29 0.009 260);
--color-popover-foreground: oklch(0.93 0 0);
--color-primary: oklch(0.65 0.2 260);
--color-primary-foreground: oklch(0.99 0 0);
--color-secondary: oklch(0.28 0.007 260);
--color-secondary-foreground: oklch(0.9 0 0);
--color-muted: oklch(0.24 0.006 260);
--color-muted-foreground: oklch(0.65 0 0);
--color-accent: oklch(0.68 0.18 285);
--color-accent-foreground: oklch(0.99 0 0);
--color-destructive: oklch(0.62 0.22 25);
--color-destructive-foreground: oklch(0.99 0 0);
--color-border: oklch(0.35 0.007 260);
--color-input: oklch(0.19 0.005 260);
--color-ring: oklch(0.65 0.2 260);
--color-success: oklch(0.7 0.18 145);
--color-success-foreground: oklch(0.99 0 0);
--color-warning: oklch(0.75 0.15 70);
--color-warning-foreground: oklch(0.15 0 0);
--color-info: oklch(0.68 0.18 240);
--color-info-foreground: oklch(0.99 0 0);
/* Surface hierarchy — charcoal depth system (0.22 → 0.33) */
--color-surface-0: oklch(0.22 0.006 260);
--color-surface-1: oklch(0.25 0.007 260);
--color-surface-2: oklch(0.27 0.008 260);
--color-surface-3: oklch(0.3 0.009 260);
--color-surface-raised: oklch(0.33 0.01 260);
--color-surface-window: oklch(0.19 0.005 260);
/* Border states */
--color-border-subtle: oklch(0.33 0.006 260);
--color-border-hover: oklch(0.42 0.01 260);
--color-border-active: oklch(0.5 0.15 260);
--color-link: oklch(0.67 0.1 250);
/* Card depth shadows — softer for charcoal, with top highlight for premium depth */
--shadow-card: 0 1px 3px oklch(0 0 0 / 0.2), inset 0 1px 0 oklch(1 0 0 / 0.03);
--shadow-card-hover: 0 4px 12px oklch(0 0 0 / 0.25), inset 0 1px 0 oklch(1 0 0 / 0.04);
--shadow-elevated: 0 8px 24px oklch(0 0 0 / 0.3);
--shadow-modal: 0 24px 48px -12px oklch(0 0 0 / 0.4);
/* Premium effects */
--shadow-metallic-dark: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.2);
--shadow-selected-glow:
inset 0 0 0 1px oklch(0.65 0.2 260 / 0.2), 0 0 16px -4px oklch(0.65 0.2 260 / 0.2);
--shadow-card-hover-subtle: 0 2px 8px -2px rgba(0, 0, 0, 0.12);
/* Liquid-glass edge — faint rim on charcoal, deeper lift */
--shadow-glass:
inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
0 2px 12px rgba(0, 0, 0, 0.35);
--shadow-chat-card:
inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.06),
0 32px 72px -24px rgba(0, 0, 0, 0.8), 0 2px 12px rgba(0, 0, 0, 0.35);
--shadow-brand-tile: var(--shadow-brand-glass), 0 10px 24px -8px rgb(0 0 0 / 0.6);
}
@layer base {
* {
border-color: var(--color-border);
transition:
background-color 150ms ease,
border-color 150ms ease,
color 150ms ease;
}
body {
background-color: var(--color-background);
color: var(--color-foreground);
margin: 0;
padding: 0;
font-family: var(--font-family-sans);
font-feature-settings:
"liga" 1,
"kern" 1;
text-rendering: optimizeLegibility;
}
/* Electron specific styles */
html,
body {
min-height: 100vh;
}
#root {
min-height: 100vh;
}
/* Make dictation window (App) transparent, but keep control panel solid */
body:has(.dictation-window),
body:has(.meeting-notification-window) {
background: transparent;
}
/* The notification card slides and swipes past the window edge; without this
the transparent window grows scrollbars mid-animation. */
body:has(.meeting-notification-window) {
overflow: hidden;
}
body:has(.dictation-window) #root,
body:has(.meeting-notification-window) #root {
background: transparent;
}
/* The control panel window is transparent (windowConfig.js), so the page backing
is cleared here rather than filled. The compact frame owns the complete
480x576 surface, including its rounded corners. */
body:has(.onboarding-canvas.compact),
body:has(.onboarding-canvas.compact) #root,
body:has(.permission-settings-overlay),
body:has(.permission-settings-overlay) #root {
background: transparent;
}
.dictation-window {
--window-resize-compensation-x: 0px;
--window-resize-compensation-y: 0px;
position: fixed;
inset: 0;
transform: translate3d(
var(--window-resize-compensation-x),
var(--window-resize-compensation-y),
0
);
}
}
/* Fade-only entry, for reduced motion. Something still marks the arrival of new
content — which is comprehension, not decoration — it just does not travel. */
@keyframes reduced-motion-fade-in {
from {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
/* Reduced motion means fewer and gentler animations, not none. Movement is what
triggers vestibular discomfort, so transforms go; opacity and colour changes
carry meaning (this appeared, that is now active, this is loading) and stay at
their normal speed. Overriding transition-property rather than duration is
what makes that split: transform simply drops off the list. */
*,
*::before,
*::after {
transition-property:
opacity, color, background-color, border-color, fill, stroke, box-shadow, filter !important;
/* Keyframes are killed wholesale because most of them move; the ones worth
keeping are re-declared below as fades. */
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
/* Onboarding entries keep their cue, minus the 8px travel. */
.onboarding-step-enter,
.onboarding-stagger > * {
animation: reduced-motion-fade-in 200ms ease both !important;
}
/* Press feedback is movement by definition; without a transition it would snap.
The hover and active colour changes still confirm the press. */
.onboarding-pressable:active {
transform: none;
}
}
/* Font stack and design tokens apply to the onboarding canvas AND to the whole
document while onboarding is mounted. The second selector is what covers
portalled UI: Radix renders select/popover/tooltip content into document.body,
outside the canvas, so scoping to .onboarding-canvas alone left every dropdown
on the app's default stack with none of these tokens. Only the typography and
tokens are shared — the canvas keeps its own painted background below. */
.onboarding-canvas,
body:has(.onboarding-canvas) {
/* Inter sits behind Yowza as the onboarding fallback: both are Latin-only, so
zh-CN/zh-TW/ja glyphs must still fall through to Noto Sans. Overriding the
variable as well covers descendants that re-declare font-family from it. */
--font-family-sans:
"Yowza", "Inter Variable", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif;
font-family: var(--font-family-sans);
font-optical-sizing: auto;
/* Onboarding design tokens from the Figma library, except the accent: that is
the app's one brand blue, so both themes resolve it through --color-primary. */
--onboarding-accent: var(--color-primary);
--onboarding-accent-foreground: #ffffff;
/* Hover on a filled accent means "darker" on light and "lighter" on dark, so the
mix target is a token rather than a literal `black` in the utility class. */
--onboarding-accent-hover: color-mix(in srgb, var(--onboarding-accent) 88%, black);
--onboarding-text-primary: #000000;
--onboarding-text-secondary: #656565;
--onboarding-text-tertiary: #969393;
--onboarding-control-border: #e3e3e3;
/* The page/card fill everything else sits on. Split from surface-secondary so
the dark theme can move the base without dragging the filled greys with it. */
--onboarding-surface: #ffffff;
/* light/surface-secondary and light/surface-tertiary: the two filled greys the
onboarding frames use (capture surfaces and the inline hint pills). */
--onboarding-surface-secondary: #f7f7f7;
--onboarding-surface-tertiary: #e6e6e6;
/* Hover step above the base surface (ghost rows, outline buttons) and above
surface-tertiary (the neutral "Enable" pill). */
--onboarding-surface-hover: #fafafa;
--onboarding-surface-tertiary-hover: #d4d4d4;
/* The row hover slab, which is a fill painted *behind* a row's content rather
than a control's own background — so it needs more separation from the base
surface than surface-hover gives a bordered button, and it gets its own token
instead of leaning on that one. */
--onboarding-row-hover: #f5f5f5;
/* Inverted HUD: keycaps and the dictation pill preview, which are near-black on
light and have to lift off the background rather than sink into it on dark. */
--onboarding-inverse-surface: #0a0a0a;
--onboarding-inverse-surface-secondary: #262626;
--onboarding-inverse-text: #ffffff;
/* Status. Kept separate from the accent so a failed provider test never reads
as a brand colour. */
--onboarding-link: var(--color-link);
--onboarding-danger: #ef4444;
--onboarding-success: #22c55e;
/* Keycap. The cap is lit from above, so it needs its own top/bottom pair rather
than reusing the surface tokens: in dark it has to sit *above* the page fill
while still reading as a physical key. */
--onboarding-keycap-top: #eeeeee;
--onboarding-keycap-bottom: #dddddd;
--onboarding-keycap-bevel: #f8f8f8;
--onboarding-keycap-shadow: #0a0a0a;
/* Provider marks ship as full-colour SVGs; the onboarding rows want them
monochrome. brightness(0) collapses to black, so dark has to invert after. */
--onboarding-mark-monochrome: grayscale(1) brightness(0);
/* Dialog scrim. A 20% black veil separates a sheet from a white page; over a
near-black one it does nothing, so dark leans on it harder. */
--onboarding-scrim: rgb(0 0 0 / 0.2);
}
/* Dark theme. Only the tokens move — every onboarding component binds to them, so
there are no `dark:` variants scattered through the step components.
Both selectors are needed for the same reason the light block has two: the
canvas itself may be the .dark element, and Radix portals render outside it. */
.dark .onboarding-canvas,
.dark:has(.onboarding-canvas),
body.dark:has(.onboarding-canvas) {
/* White, same as light: a filled brand CTA reads as the brand in both themes,
and flipping its label to near-black made the dark-mode buttons look like a
different component. */
--onboarding-accent-foreground: #ffffff;
--onboarding-accent-hover: color-mix(in srgb, var(--onboarding-accent) 88%, white);
--onboarding-text-primary: #f5f5f5;
--onboarding-text-secondary: #a1a1a1;
--onboarding-text-tertiary: #7c7c7c;
--onboarding-control-border: #2e2e2e;
--onboarding-surface: #141414;
--onboarding-surface-secondary: #1c1c1c;
--onboarding-surface-tertiary: #292929;
--onboarding-surface-hover: #202020;
--onboarding-surface-tertiary-hover: #363636;
--onboarding-row-hover: #202020;
/* The HUD inverts: on dark it is the one thing that gets *lighter* than the
page, or the keycaps disappear into it. */
--onboarding-inverse-surface: #f5f5f5;
--onboarding-inverse-surface-secondary: #d4d4d4;
--onboarding-inverse-text: #0a0a0a;
--onboarding-danger: #f87171;
--onboarding-success: #4ade80;
--onboarding-keycap-top: #3a3a3a;
--onboarding-keycap-bottom: #262626;
--onboarding-keycap-bevel: #4d4d4d;
--onboarding-keycap-shadow: #000000;
--onboarding-mark-monochrome: grayscale(1) brightness(0) invert(1);
--onboarding-scrim: rgb(0 0 0 / 0.55);
}
/* Authentication also appears in the control-panel sign-in dialog. Give that
embedded version the same semantic names without applying onboarding's page
chrome or overriding the dialog's existing theme. */
.onboarding-embedded-auth {
--onboarding-accent: var(--color-primary);
--onboarding-accent-foreground: var(--color-primary-foreground);
--onboarding-text-primary: var(--color-foreground);
--onboarding-text-secondary: var(--color-muted-foreground);
--onboarding-text-tertiary: color-mix(in srgb, var(--color-muted-foreground) 75%, transparent);
--onboarding-control-border: var(--color-border);
--onboarding-surface: var(--color-background);
--onboarding-surface-secondary: var(--color-muted);
--onboarding-surface-tertiary: var(--color-secondary);
--onboarding-surface-hover: var(--color-surface-1);
--onboarding-inverse-surface: var(--color-foreground);
--onboarding-inverse-text: var(--color-background);
}
/* Remaps the app-wide shadcn tokens onto the onboarding palette, so any shared
ui/ primitive dropped into a step (Button, Input, Select) picks up the
onboarding theme instead of the control panel's. Bound to the --onboarding-*
tokens rather than literals, so the .dark block above is the only place the
theme is described twice. */
.onboarding-canvas {
--color-background: var(--onboarding-surface);
--color-foreground: var(--onboarding-text-primary);
--color-card: var(--onboarding-surface);
--color-card-foreground: var(--onboarding-text-primary);
--color-muted: var(--onboarding-surface-secondary);
--color-muted-foreground: var(--onboarding-text-secondary);
--color-border: var(--onboarding-control-border);
--color-ring: var(--onboarding-accent);
background-color: var(--onboarding-surface);
/* Supplied full-width artwork replaces the generated corner washes. Keeping
its natural aspect ratio preserves the authored violet-to-blue composition
while the surface token fills the transparent lower portion of the panel. */
background-image: var(--onboarding-background-light);
background-position: top center;
background-repeat: no-repeat;
background-size: 100% auto;
color: var(--onboarding-text-primary);
}
.dark .onboarding-canvas,
.dark.onboarding-canvas {
background-image: var(--onboarding-background-dark);
}
/* Nested list surface + rows, per Figma "Onboarding / Frame 37".
The row rule is the important part and applies to every list of this shape:
dividers sit on TOP of each row except the first, and the first and last rows
drop their outer padding so the group sits flush inside the container's own
padding instead of doubling it up and reading as extra space. */
/* Card and section headings: 18/140% semibold, normal tracking, per the Figma
frames. This has to be a class: the global h1–h6 rule below sets line-height
1.15 and -0.025em letter-spacing as plain CSS, which outranks Tailwind's
leading-* and tracking-* utilities, so a utility on the element is silently
ignored. */
.onboarding-card-title {
font-size: 1rem;
font-weight: 600;
line-height: 1.4;
letter-spacing: normal;
}
/* Step entry. Onboarding is seen once, which is the one place delight is worth
spending on — a step change is an occasional, deliberate transition, not a
keyboard action. 8px is enough to read as arrival without feeling like travel;
`both` holds the start frame so there is no flash of the end state. */
@keyframes onboarding-step-in {
from {
opacity: 0;
transform: translateY(8px);
}
}
.onboarding-step-enter {
animation: onboarding-step-in 320ms var(--onboarding-ease-out) both;
}
/* Staggered children, for the step bodies that are a row or column of peers (the
setup cards, the permission rows). 45ms apart: long enough to cascade, short
enough that the last item is in under 200ms. Decorative only — nothing waits on
it, and every item is interactive from the first frame. */
.onboarding-stagger > * {
animation: onboarding-step-in 300ms var(--onboarding-ease-out) both;
}
.onboarding-stagger > *:nth-child(1) {
animation-delay: 40ms;
}
.onboarding-stagger > *:nth-child(2) {
animation-delay: 85ms;
}
.onboarding-stagger > *:nth-child(3) {
animation-delay: 130ms;
}
.onboarding-stagger > *:nth-child(4) {
animation-delay: 175ms;
}
/* Press feedback. A pressable that does not move on press reads as not having
registered the press. 0.97 and 160ms is under the threshold where it becomes a
visible animation rather than just tactile. transform only — it is the one
property besides opacity that skips layout and paint. */
.onboarding-pressable {
/* Both properties named explicitly, never `all`. The press uses --onboarding-ease-out so
the scale is felt immediately; hover fills use plain `ease`, which is the
right curve for a colour change that has no direction. Declaring colours here
too means these elements do not also need transition-colors, which would
overwrite transition-property and silently drop the press. */
transition:
transform 160ms var(--onboarding-ease-out),
background-color 160ms ease,
border-color 160ms ease,
color 160ms ease;
}
.onboarding-pressable:active {
transform: scale(0.97);
}
.onboarding-list {
/* Column so the scroll child can absorb leftover height (flex-1) when the
caller doesn't cap it — that's what keeps the list from overflowing its step
and getting clipped when chips are added above it. */
position: relative;
display: flex;
flex-direction: column;
min-height: 0;
border: 1px solid var(--onboarding-control-border);
border-radius: 16px;
background-color: var(--onboarding-surface);
/* Clip to the radius, or the scroll child's square box lets its scrollbar and
any full-bleed row paint outside the rounded corners. `clip` rather than
`hidden`: it honours the radius without turning this into a scroll
container of its own. */
overflow: clip;
/* No padding of its own. All of it lives on the scroll child, so it scrolls
away with the rows: static padding out here leaves a gap below a
part-scrolled row, which makes the clipped edge read as a flat cut floating
above blank space instead of content passing under the border. */
padding: 0;
}
/* The scroll lives on this inner element, never on .onboarding-list itself — a
scrollbar on the bordered box sits hard against its 16px corner radius, which
clips the ends of the thumb. */
.onboarding-list-scroll {
position: relative;
overflow-y: auto;
/* Nothing in a list should ever scroll sideways. */
overflow-x: hidden;
/* Reserve the gutter so rows don't reflow the moment the list overflows. */
scrollbar-gutter: stable;
/* 8px block + the row's own 12px lands the end rows' content 20px from the
edge at rest, and scrolls out of the way once the list moves. 4px inline is
the hover slab's breathing room; the scrollbar sits outside it, flush to the
border. */
padding: 6px 4px;
}
/* Figma "Rectangle 45": a true 5px pill. Faking an inset with a transparent
border + background-clip distorts the pill ends, so don't. */
.onboarding-list-scroll::-webkit-scrollbar {
width: 5px;
}
/* Hold the thumb clear of the container's 16px corner arcs, so clipping never
shaves its ends. */
.onboarding-list-scroll::-webkit-scrollbar-track {
margin-block: 14px;
background: transparent;
}
.onboarding-list-scroll::-webkit-scrollbar-thumb {
border-radius: 39px;
background-color: var(--onboarding-control-border);
}
/* The dropdown sheet (Figma "Onboarding / Frame 16") is the same list surface at
a smaller size, down to Rectangle 45's 5px thumb. Radix owns the scroll on its
viewport — the content box is overflow-hidden — so the scrollbar has to be
addressed through that child, which is also why this can't be a Tailwind class
on the panel itself. */
.onboarding-select-panel [data-radix-select-viewport]::-webkit-scrollbar {
width: 5px;
}
.onboarding-select-panel [data-radix-select-viewport]::-webkit-scrollbar-track {
background: transparent;
}
.onboarding-select-panel [data-radix-select-viewport]::-webkit-scrollbar-thumb {
border-radius: 39px;
background-color: var(--onboarding-control-border);
}
/* Dropdown rows are the same shape as .onboarding-list-row, so they get the same
hover: a rounded slab that replaces the rules it touches, rather than a square
full-bleed band whose corners fight the panel's 17px radius and whose edges get
crossed by the dividers.
Why this is CSS and not Tailwind on the item: the base SelectItem's
`hover:bg-muted` / `dark:hover:bg-primary/8` resolve against the app's own
palette, which is a different scale from the onboarding one and moves
independently of it. Those are neutralised on the item (see SELECT_ITEM_CLASS)
and the fill is bound to --onboarding-row-hover here instead, the same token
.onboarding-list-row uses.
Radix Select sets data-highlighted for pointer hover and keyboard nav alike, so
one selector covers both and the two can never light up at once. */
.onboarding-select-item {
--onboarding-row-inset: 6px;
position: relative;
/* Stacking context, so the slab's z-index: -1 lands behind the row's content
but still above the panel's own fill. */
z-index: 1;
/* Painted gradient rather than a border, so the rule stops short of the row
edges and lines up with the label instead of spanning the slab's full width. */
background-image: linear-gradient(
to right,
transparent 0 var(--onboarding-row-inset),
var(--onboarding-control-border) var(--onboarding-row-inset)
calc(100% - var(--onboarding-row-inset)),
transparent calc(100% - var(--onboarding-row-inset)) 100%
);
background-repeat: no-repeat;
background-position: top left;
background-size: 100% 1px;
}
.onboarding-select-item:first-child {
background-image: none;
}
.onboarding-select-item::before {
content: "";
position: absolute;
z-index: -1;
inset: 0;
border-radius: 12px;
background-color: var(--onboarding-row-hover);
opacity: 0;
transition: opacity 120ms ease;
pointer-events: none;
}
.onboarding-select-item[data-highlighted]::before {
opacity: 1;
}
/* The slab replaces the dividers it touches — its own, and the next row's. */
.onboarding-select-item[data-highlighted],
.onboarding-select-item[data-highlighted] + .onboarding-select-item {
background-image: none;
}
.onboarding-list-row {
--onboarding-row-inset: 12px;
position: relative;
/* Stacking context, so the hover slab's z-index: -1 lands behind the row's
content but still above the list's white background. */
z-index: 1;
display: flex;
align-items: center;
gap: 12px;
padding-block: 10px;
/* Indents the content inside the full-width hover slab, which is what gives
the slab room around the checkbox. With the scroller's 4px, content lands
16px from the border as specced. */
padding-inline: var(--onboarding-row-inset);
/* The divider is a painted gradient rather than a border so it can stop short
of the row edges and line up with the content; a border would span the whole
padding box and run wider than the text. */
background-image: linear-gradient(
to right,
transparent 0 var(--onboarding-row-inset),
var(--onboarding-control-border) var(--onboarding-row-inset)
calc(100% - var(--onboarding-row-inset)),
transparent calc(100% - var(--onboarding-row-inset)) 100%
);
background-repeat: no-repeat;
background-position: top left;
background-size: 100% 1px;
}
/* Only the divider goes; the padding stays, or the first row's hover slab would
be shorter than every other row's. */
.onboarding-list-row:first-child {
background-image: none;
}
/* Hover highlight. inset-inline is 0 on purpose: the row's padding is what keeps
the checkbox clear of the slab edge. Bleeding the slab outwards instead counts
as horizontal overflow and summons a horizontal scrollbar. */
.onboarding-list-row::before {
content: "";
position: absolute;
z-index: -1;
inset: 0;
border-radius: 12px;
background-color: var(--onboarding-row-hover);
opacity: 0;
transition: opacity 120ms ease;
pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
.onboarding-list-row:hover::before {
opacity: 1;
}
}
/* The slab replaces the dividers it touches — its own, and the next row's. */
@media (hover: hover) and (pointer: fine) {
.onboarding-list-row:hover,
.onboarding-list-row:hover + .onboarding-list-row {
background-image: none;
}
}
.onboarding-canvas.compact {
background-color: var(--onboarding-surface);
background-image: none;
}
/* Primary Buttons in onboarding disable into the quiet capsule (sunken fill,
tertiary text) instead of fading the glass. */
.onboarding-canvas [data-slot="button"][data-variant="default"]:disabled {
opacity: 1;
background: var(--onboarding-surface-tertiary);
box-shadow: none;
color: var(--onboarding-text-tertiary);
}
/* The classic typing indicator: each dot hops and brightens in turn, so with a
per-dot delay the wave travels left to right across the pill. The rest state
is a fully opaque dot, which is what the reduced-motion block above leaves on
screen once it clamps the duration. */
@keyframes onboarding-typing-dot {
0%,
60%,
100% {
opacity: 0.45;
transform: translateY(0);
}
30% {
opacity: 1;
transform: translateY(-4px);
}
}
.onboarding-typing-dot {
animation: onboarding-typing-dot 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
/* The UA stylesheet gives <kbd> a monospace family; onboarding is on Inter, so
every keycap and inline key has to opt back in to the inherited stack. */
.onboarding-canvas kbd,
body:has(.onboarding-canvas) kbd {
font-family: inherit;
}
.onboarding-keycap {
/* Light from above: a near-white top rolling into neutral-100 reads as a
physical cap, where a single flat fill reads as a grey box. */
background-image: linear-gradient(
to bottom,
var(--onboarding-keycap-top),
var(--onboarding-keycap-bottom)
);
border-color: var(--onboarding-control-border);
box-shadow:
/* top bevel */
inset 0 1px 0 var(--onboarding-keycap-bevel),
/* the cap's side wall */ 1px 3px 0 var(--onboarding-control-border),
/* contact shadow, then a wider ambient one */ 0 5px 5px
color-mix(in oklch, var(--onboarding-keycap-shadow) 9%, transparent),
0 12px 20px color-mix(in oklch, var(--onboarding-keycap-shadow) 8%, transparent);
}
/* Today's day-card header: a mosaic of faint tiles over --gradient-calendar-today,
fading in toward the right, as in the Home design. The tiles are a white wash cut by
a mask of vertical and horizontal stripes; it sits behind the header's text. */
.calendar-today-header {
position: relative;
isolation: isolate;
}
.calendar-today-header::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
background: rgb(255 255 255 / 0.13);
mask-image:
linear-gradient(to right, transparent 22%, #000 70%),
linear-gradient(90deg, #000 5px, transparent 5px), linear-gradient(#000 5px, transparent 5px);
mask-size:
100% 100%,
7px 100%,
100% 7px;
mask-position:
0 0,
1px 0,
0 1.5px;
mask-composite: intersect;
}
/* OpenWhispr Brand Typography */
.brand-heading {
font-family: var(--font-family-display);
font-weight: 600;
letter-spacing: -0.02em;
}
.brand-body {
font-family: var(--font-family-sans);
line-height: 1.6;
}
.brand-script {
/* Figma binds this to Caveat Regular 400. Self-hosted like Inter so it works
offline; Snell Roundhand stays as the fallback for the same handwritten feel
if the face ever fails to load. Not italic — Caveat is already slanted. */
font-family: "Caveat Variable", "Snell Roundhand", "Segoe Script", cursive;
font-weight: 400;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-family-display);
font-weight: 600;
letter-spacing: -0.025em;
line-height: 1.15;
}
h1 {
font-size: 2.5rem;
font-weight: 700;
}
.onboarding-display-title {
font-size: 2rem; /* 32px */
font-weight: 500;
line-height: 1.2; /* 120% */
/* No letter-spacing on purpose: Yowza Soft is already tight at display
sizes, and manual negative tracking on top read as cramped. */
}
/* The compact first-run steps (auth + permissions, per COMPACT_STEPS in
OnboardingFlow.tsx) intentionally keep their existing 32px scale. Exception:
CompactPermissionsStep overrides its title to 30px (text-3xl!) so all four
permission rows fit the authored 480×624 window without scrolling. */
.onboarding-canvas.compact .onboarding-display-title {
font-size: 2rem; /* 32px */
}
/* Scoped to .onboarding-canvas because AuthenticationStep also renders outside
onboarding (SignInDialog), where the --onboarding-*
tokens are undefined and these !important rules would paint invisible inputs.
Outside the canvas the Input component's default skin wins instead. */
.onboarding-canvas .onboarding-light-input,
.onboarding-canvas .onboarding-light-input:hover,
.onboarding-canvas .onboarding-light-input:focus-visible {
border-color: transparent !important;
background-color: var(--onboarding-surface-secondary) !important;
color: var(--onboarding-text-primary) !important;
}
/* Focus is the brand ring, not a stroke: the field stays borderless at rest. */
.onboarding-canvas .onboarding-light-input:focus-visible {
box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 35%, transparent) !important;
}
.onboarding-canvas .onboarding-light-input::placeholder {
color: var(--onboarding-text-tertiary);
}
.onboarding-canvas .onboarding-light-input.onboarding-light-input-bordered {
/* Design-system surface stroke. This rule is !important and more specific
than a utility class, so a Tailwind border-* on the element cannot win —
the token has to be bound here. All four call sites are onboarding. */
border-color: var(--onboarding-control-border) !important;
background-color: var(--onboarding-surface) !important;
}
/* Auth fields use the same visible stroke as the rest of onboarding while
retaining the raised input fill shown in the compact authentication frames. */
.onboarding-canvas .onboarding-light-input.onboarding-auth-input,
.onboarding-canvas .onboarding-light-input.onboarding-auth-input:hover,
.onboarding-canvas .onboarding-light-input.onboarding-auth-input:focus-visible {
border-color: var(--onboarding-control-border) !important;
background-color: var(--onboarding-surface-secondary) !important;
}
/* The shared credential field (ui/ProviderCheckField.tsx). Outside onboarding these names
are unset, so each falls back to the app theme: the mapping .onboarding-embedded-auth
gives the control panel's sign-in dialog. Onboarding defines them, so it keeps its own. */
.onboarding-provider-input,
.onboarding-provider-input:hover,
.onboarding-provider-input:focus-visible,
.onboarding-provider-input:disabled {
border-color: var(--onboarding-control-border, var(--color-border)) !important;
background-color: var(--onboarding-surface-secondary, var(--color-muted)) !important;
color: var(--onboarding-text-primary, var(--color-foreground)) !important;
opacity: 1 !important;
}
.onboarding-provider-input::placeholder {
color: var(--onboarding-text-secondary, var(--color-muted-foreground)) !important;
}
.onboarding-provider-icon-monochrome {
filter: var(--onboarding-mark-monochrome) !important;
}
/* Scrolls without a bar that occupies layout width. A classic scrollbar reserves
a gutter in Chromium, so rows in a scrolling list end short of the edge while an
identical non-scrolling list fills it — the two read as different widths. Note
.onboarding-list-scroll deliberately does the opposite and shows a 5px thumb,
because Figma specs one there. */
.onboarding-scroll-hidden {
scrollbar-width: none;
}
.onboarding-scroll-hidden::-webkit-scrollbar {
display: none;
}
.onboarding-shell-scroll {
scrollbar-width: none;
}
.onboarding-shell-scroll::-webkit-scrollbar {
display: none;
}
/* Modern Button Styling - handled by button component */
button {
font-family: var(--font-family-sans);
cursor: pointer;
}
/* Ensure all interactive elements have pointer cursor */
button:hover,
[role="button"]:hover,
.cursor-pointer:hover,
button svg:hover,
[role="button"] svg:hover,
a svg:hover,
[data-icon]:hover,
.icon:hover {
cursor: pointer;
}
/* Premium input styling with subtle depth */
input:not(.input-inline),
textarea:not(.input-inline) {
border-radius: var(--radius);
transition:
background-color 0.2s ease,
border-color 0.2s ease,
color 0.2s ease,
box-shadow 0.2s ease;
font-family: var(--font-family-sans);
box-shadow: inset 0 1px 2px oklch(from var(--color-foreground) l c h / 0.06);
}
/* Light mode inputs */
:root input:not(.input-inline),
:root textarea:not(.input-inline) {
background-color: var(--color-background);
border: 1px solid var(--color-border);
color: var(--color-foreground);
}
:root input:not(.input-inline):focus,
:root textarea:not(.input-inline):focus {
border-color: var(--color-border-active);
box-shadow: 0 0 0 2px oklch(from var(--color-ring) l c h / 0.15);
background-color: var(--color-background);
}
/* Dark mode inputs — flat, no embossed shadow */
.dark input:not(.input-inline),
.dark textarea:not(.input-inline) {
background-color: var(--color-input);
border: 1px solid var(--color-border);
color: var(--color-foreground);
box-shadow: none;
}
.dark input:not(.input-inline):focus,
.dark textarea:not(.input-inline):focus {
border-color: var(--color-border-active);
box-shadow: 0 0 0 2px oklch(from var(--color-ring) l c h / 0.15);
}
/* Card styling - elevated parchment */
.card {
background-color: var(--color-card);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card, 0 1px 3px oklch(from var(--color-foreground) l c h / 0.08));
transition:
box-shadow 0.2s ease,
transform 0.2s ease;
}
.card:hover {
box-shadow: var(--shadow-card-hover, 0 4px 12px oklch(from var(--color-foreground) l c h / 0.1));
transform: translateY(-1px);
}
/* Dark mode cards — grounded, no lift, subtle border glow */
.dark .card {
border-color: var(--color-border-subtle);
box-shadow: var(--shadow-card);
}
.dark .card:hover {
box-shadow: var(--shadow-card-hover);
transform: none;
border-color: var(--color-border-hover);
}
/* Link styling */
a {
color: var(--color-link);
text-decoration: none;
transition: color 0.2s ease;
cursor: pointer;
}
a:hover {
color: var(--color-link);
opacity: 0.8;
cursor: pointer;
}
/* Status indicators */
.status-active {
color: var(--color-brand-accent);
font-weight: 600;
}
.text-brand-primary {
color: var(--color-brand-primary);
}
.text-brand-accent {
color: var(--color-brand-accent);
}
.text-brand-highlight {
color: var(--color-brand-highlight);
}
.text-brand-link {
color: var(--color-brand-link);
}
/* ---- Premium UI Utilities ---- */
/* Section panel — grouped settings container */
.section-panel {
background: var(--color-surface-2);
border: 1px solid var(--color-border-subtle);
border-radius: var(--radius-xl);
}
/* Gradient accent bar — top border highlight for panels */
.accent-bar {
position: relative;
}
.dark .accent-bar::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(
90deg,
oklch(0.65 0.2 260 / 0.5),
oklch(0.7 0.18 280 / 0.3),
transparent 80%
);
pointer-events: none;
z-index: 1;
}
/* Monochrome icon theming - explicit light/dark handling */
.icon-monochrome {
filter: none;
transition: filter 150ms ease;
}
.dark .icon-monochrome {
filter: invert(1);
}
/* Toast — opaque dark HUD surface, same in light & dark mode */
.toast-surface {
background: oklch(0.15 0.006 260);
border: 1px solid oklch(0.25 0.006 260);
box-shadow:
inset 0 1px 0 oklch(1 0 0 / 0.04),
0 8px 24px -4px oklch(0 0 0 / 0.5),
0 2px 8px -2px oklch(0 0 0 / 0.3);
}
/* Enter from the physical outer edge of the direction-aware toast stack. */
.toast-enter {
--toast-enter-x: 1rem;
animation: toast-enter 300ms ease-out;
}
[dir="rtl"] .toast-enter {
--toast-enter-x: -1rem;
}
@keyframes toast-enter {
from {
opacity: 0;
transform: translateX(var(--toast-enter-x)) scale(0.98);
}
to {
opacity: 1;
transform: translateX(0) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.toast-enter {
animation: none;
}
}
@keyframes toast-progress {
from {
width: 100%;
}
to {
width: 0%;
}
}
@keyframes toast-border-progress {
from {
stroke-dashoffset: 0;
}
to {
stroke-dashoffset: 1;
}
}
/* Model picker LED pulse animation */
@keyframes pulse-glow {
0%,
100% {
box-shadow: 0 0 6px oklch(0.65 0.2 260 / 0.4);
opacity: 0.8;
}
50% {
box-shadow: 0 0 8px oklch(0.65 0.2 260 / 0.6);
opacity: 1;
}
}
/* Spinner rotation for downloading state */
@keyframes spinner-rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Scale-in animation for completion */
@keyframes scale-in {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes waveform-bar {
0%,
100% {
transform: scaleY(0.3);
}
50% {
transform: scaleY(1);
}
}
@keyframes float-up {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes grow-to-bar {
from {
transform: scale(0.55);
opacity: 0;
border-radius: 28px;
}
to {
transform: scale(1);
opacity: 1;
border-radius: 12px;
}
}
@keyframes fade-in-content {
from {
opacity: 0;
transform: translateY(3px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes ring-fill {
from {
stroke-dashoffset: 94.25;
}
to {
stroke-dashoffset: 0;
}
}
@keyframes draw-check {
from {
stroke-dashoffset: 24;
}
to {
stroke-dashoffset: 0;
}
}
@keyframes drag-pulse {
0%,
100% {
transform: scale(1);
opacity: 0.4;
}
50% {
transform: scale(1.02);
opacity: 0.7;
}
}
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Holds a clip only while it runs, so what overflows during an unfold stays hidden
and nothing is clipped at rest. */
@keyframes clip-while-unfolding {
from,
to {
clip-path: inset(0 round 1.5rem);
}
}
@keyframes check-pop {
0% {
transform: scale(0);
opacity: 0;
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
opacity: 1;
}
}
/* Indeterminate progress bar sweep */
@keyframes indeterminate {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(300%);
}
}
/* Action processing scanner sweep */
@keyframes scanner-sweep {
0% {
top: 0%;
opacity: 0;
}
5% {
opacity: 1;
}
95% {
opacity: 1;
}
100% {
top: 100%;
opacity: 0;
}
}
/* ---- Referral Modal v2 ---- */
/* Animated mesh gradient — slow-drifting color blobs */
.referral-mesh-bg {
position: absolute;
inset: 0;
overflow: hidden;
z-index: 0;
pointer-events: none;
}
.referral-mesh-bg::before,
.referral-mesh-bg::after {
content: "";
position: absolute;
border-radius: 50%;
filter: blur(80px);
animation: mesh-drift 25s ease-in-out infinite alternate;
}
.referral-mesh-bg::before {
width: 300px;
height: 300px;
background: oklch(0.65 0.2 260);
opacity: 0.04;
top: -80px;
right: -60px;
}
.referral-mesh-bg::after {
width: 250px;
height: 250px;
background: oklch(0.6 0.18 180);
opacity: 0.04;
bottom: -60px;
left: -40px;
animation-delay: -12s;
animation-direction: alternate-reverse;
}
@keyframes mesh-drift {
0% {
transform: translate(0, 0) scale(1);
}
33% {
transform: translate(30px, -20px) scale(1.05);
}
66% {
transform: translate(-20px, 15px) scale(0.95);
}
100% {
transform: translate(10px, -10px) scale(1.02);
}
}
/* 3D perspective-tilt card */
.tilt-card {
--tilt-x: 0deg;
--tilt-y: 0deg;
--highlight-x: 50%;
--highlight-y: 50%;
--highlight-opacity: 0;
transform-style: preserve-3d;
transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
transition: transform 0.6s cubic-bezier(0.03, 0.98, 0.52, 0.99);
position: relative;
isolation: isolate;
will-change: transform;
}
.tilt-card::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: radial-gradient(
circle at var(--highlight-x) var(--highlight-y),
oklch(1 0 0 / 0.07),
transparent 60%
);
opacity: var(--highlight-opacity);
transition: opacity 0.3s ease;
pointer-events: none;
z-index: 2;
}
.tilt-card::after {
content: "";
position: absolute;
inset: -1px;
border-radius: inherit;
background: conic-gradient(
from 180deg at 50% 50%,
oklch(0.65 0.2 260 / 0.2),
oklch(0.55 0.2 320 / 0.1),
oklch(0.6 0.18 180 / 0.15),
oklch(0.55 0.2 100 / 0.1),
oklch(0.65 0.2 260 / 0.2)
);
z-index: -1;
opacity: 0;
transition: opacity 0.4s ease;
}
.tilt-card:hover::after {
opacity: 1;
}
/* Stat gauge — accent bottom bar */
.stat-gauge {
position: relative;
overflow: hidden;
}
.stat-gauge::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: oklch(0.65 0.2 260 / 0.4);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.stat-gauge[data-active="true"]::after {
transform: scaleX(1);
}
/* Spectrogram playback scan line — synced to audio */
@keyframes spectrogram-play {
0% {
left: 0%;
opacity: 1;
}
95% {
opacity: 1;
}
100% {
left: 100%;
opacity: 0;
}
}
.spectrogram-play {
animation: spectrogram-play linear both;
}
/* Reduced motion: disable all referral effects */
@media (prefers-reduced-motion: reduce) {
.referral-mesh-bg::before,
.referral-mesh-bg::after {
animation: none;
}
.tilt-card {
transform: none !important;
transition: none;
}
.tilt-card::before,
.tilt-card::after {
display: none;
}
.stat-gauge::after {
transition: none;
transform: scaleX(1);
}
.spectrogram-play {
animation: none;
opacity: 0;
}
.scanner-sweep-line {
animation: none !important;
top: 50% !important;
opacity: 0.5 !important;
}
[data-scanner-progress] {
animation: none !important;
width: 60% !important;
}
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
/* Scroll containers whose chrome should stay clean (the main-window content
scroller): trackpad and wheel still scroll, the bar just never draws. */
.scrollbar-hidden {
scrollbar-width: none;
}
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}
/* Transcript tab indicator while a meeting is being recorded. */
@keyframes ow-wave {
0%,
100% {
transform: scaleY(0.4);
}
50% {
transform: scaleY(1);
}
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 3px;
}
:hover::-webkit-scrollbar-thumb {
background: var(--color-border);
}
:hover::-webkit-scrollbar-thumb:hover {
background: var(--color-border-hover);
}
::-webkit-scrollbar-corner {
background: transparent;
}
@keyframes agent-message-in {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes agent-cursor-blink {
0%,
100% {
opacity: 0.2;
}
50% {
opacity: 1;
}
}
@keyframes tool-step-shimmer {
0% {
background: linear-gradient(
90deg,
transparent 0%,
oklch(0.65 0.2 260 / 0.04) 50%,
transparent 100%
);
background-position: -100% 0;
background-size: 200% 100%;
}
100% {
background-position: 100% 0;
background-size: 200% 100%;
}
}
@keyframes tool-check-pop {
0% {
opacity: 0;
transform: scale(0);
}
70% {
transform: scale(1.3);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes tool-status-sweep {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
@keyframes thinking-shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.thinking-shimmer-text {
background: linear-gradient(
90deg,
oklch(0.65 0.01 260) 0%,
oklch(0.85 0.02 240) 40%,
oklch(0.65 0.01 260) 60%,
oklch(0.78 0.015 250) 100%
);
background-size: 200% 100%;
animation: thinking-shimmer 2s ease-in-out infinite;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
@keyframes agent-loading-dot {
0%,
80%,
100% {
opacity: 0.3;
transform: scale(0.8);
}
40% {
opacity: 1;
transform: scale(1);
}
}
.agent-chat-scroll::-webkit-scrollbar {
width: 4px;
}
.agent-chat-scroll::-webkit-scrollbar-track {
background: transparent;
}
.agent-chat-scroll::-webkit-scrollbar-thumb {
background: oklch(0.5 0 0 / 0.2);
border-radius: 2px;
}
.agent-chat-scroll::-webkit-scrollbar-thumb:hover {
background: oklch(0.5 0 0 / 0.3);
}
/* ── TipTap / ProseMirror Rich Text Editor ── */
.rich-text-editor-content {
outline: none;
unicode-bidi: plaintext;
/* The bottom lets the last line scroll clear of the note's bottom bar, chips, callout
and an open chat included: NoteBottomBar publishes its height. */
padding-block: 0.75rem max(5rem, var(--bottom-overlay-height, 0px));
/* Centers the text in the page column (PAGE_CONTENT_WIDTH_CLASS) with padding, not a
max-width, so the editable area spans the pane and a margin click places the caret. */
padding-inline: max(1.25rem, calc((100% - var(--container-5xl)) / 2 + 1.25rem));
font-size: 0.875rem;
line-height: 1.7;
color: var(--color-foreground);
caret-color: var(--color-foreground);
}
.rich-text-editor-content h1 {
font-size: 1.125rem;
font-weight: 700;
margin-top: 1rem;
margin-bottom: 0.25rem;
}
.rich-text-editor-content h2 {
font-size: 1rem;
font-weight: 600;
margin-top: 0.75rem;
margin-bottom: 0.25rem;
}
.rich-text-editor-content h3 {
font-size: 0.875rem;
font-weight: 600;
margin-top: 0.5rem;
margin-bottom: 0.125rem;
}
.rich-text-editor-content p {
margin-bottom: 0.25rem;
}
.rich-text-editor-content ul,
.rich-text-editor-content ol {
padding-inline-start: 1.25rem;
margin-bottom: 0.25rem;
}
.rich-text-editor-content ul {
list-style-type: disc;
}
.rich-text-editor-content ul ul {
list-style-type: circle;
}
.rich-text-editor-content ul ul ul {
list-style-type: square;
}
.rich-text-editor-content ol {
list-style-type: decimal;
}
.rich-text-editor-content li {
margin-bottom: 0.125rem;
}
.rich-text-editor-content li::marker {
color: oklch(0.5 0 0 / 0.4);
}
.rich-text-editor-content blockquote {
border-inline-start: 2px solid oklch(0.5 0 0 / 0.15);
padding-inline-start: 0.75rem;
color: oklch(0.5 0 0 / 0.6);
font-style: italic;
margin: 0.375rem 0;
}
.rich-text-editor-content code,
.rich-text-editor-content pre {
direction: ltr;
unicode-bidi: isolate;
}
.rich-text-editor-content code {
background: oklch(0.5 0 0 / 0.06);
border-radius: 2px;
padding: 1px 3px;
font-size: 0.8125rem;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}
.rich-text-editor-content hr {
border: none;
border-top: 1px solid var(--color-border);
margin: 0.75rem 0;
}
.rich-text-editor-content ::selection {
background: oklch(0.62 0.22 260 / 0.15);
}
/* Task list (checkboxes) */
.rich-text-editor-content ul[data-type="taskList"] {
list-style: none;
padding-inline-start: 0;
}
.rich-text-editor-content ul[data-type="taskList"] li {
display: flex;
align-items: flex-start;
gap: 0.375rem;
}
.rich-text-editor-content ul[data-type="taskList"] li > label {
flex-shrink: 0;
margin-top: 0.25rem;
}
.rich-text-editor-content ul[data-type="taskList"] li > label input[type="checkbox"] {
appearance: none;
width: 0.875rem;
height: 0.875rem;
border: 1.5px solid oklch(0.5 0 0 / 0.25);
border-radius: 3px;
cursor: pointer;
transition:
background-color 100ms,
border-color 100ms;
}
.rich-text-editor-content ul[data-type="taskList"] li > label input[type="checkbox"]:checked {
background-color: var(--color-primary);
border-color: var(--color-primary);
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
background-size: 100% 100%;
}
.rich-text-editor-content ul[data-type="taskList"] li[data-checked="true"] > div {
text-decoration: line-through;
color: oklch(0.5 0 0 / 0.4);
}
/* Tables (GFM: a header row, then one-line cells) */
.rich-text-editor-content .tableWrapper {
overflow-x: auto;
margin: 0.5rem 0;
}
.rich-text-editor-content table {
border-collapse: collapse;
}
.rich-text-editor-content th,
.rich-text-editor-content td {
min-width: 5rem;
padding: 0.25rem 0.625rem;
border: 1px solid var(--color-border);
text-align: start;
vertical-align: top;
}
.rich-text-editor-content th {
font-weight: 600;
background: oklch(0.5 0 0 / 0.04);
}
.rich-text-editor-content th p,
.rich-text-editor-content td p {
margin: 0;
}
/* prosemirror-tables marks each cell of a cell selection. The .dark selector
wins over the dark header background below. */
.rich-text-editor-content .selectedCell,
.dark .rich-text-editor-content .selectedCell {
background: oklch(0.62 0.22 260 / 0.15);
}
/* Tiptap draws the gap cursor (e.g. above a table that starts the note) in black. */
.rich-text-editor-content .ProseMirror-gapcursor:after {
border-top-color: var(--color-foreground);
}
/* Placeholder */
.rich-text-editor-content p.is-editor-empty:first-child::before {
content: attr(data-placeholder);
color: oklch(0.5 0 0 / 0.2);
pointer-events: none;
float: inline-start;
height: 0;
}
/* Dark mode adjustments */
.dark .rich-text-editor-content li::marker {
color: oklch(0.7 0 0 / 0.4);
}
.dark .rich-text-editor-content blockquote {
border-inline-start-color: oklch(0.7 0 0 / 0.2);
color: oklch(0.7 0 0 / 0.6);
}
.dark .rich-text-editor-content code {
background: oklch(0.8 0 0 / 0.08);
}
.dark .rich-text-editor-content ul[data-type="taskList"] li > label input[type="checkbox"] {
border-color: oklch(0.7 0 0 / 0.3);
}
.dark .rich-text-editor-content ul[data-type="taskList"] li[data-checked="true"] > div {
color: oklch(0.7 0 0 / 0.4);
}
.dark .rich-text-editor-content th {
background: oklch(0.8 0 0 / 0.06);
}
.dark .rich-text-editor-content p.is-editor-empty:first-child::before {
color: oklch(0.7 0 0 / 0.2);
}
/* Colour emoji fonts per platform. Keep in sync with EMOJI_FONT_FAMILY in
src/lib/emojiData.ts, which probes emoji support with the same stack. */
.font-emoji {
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
/* Styling the scrollbar makes Chromium draw a fixed-width classic bar on every
platform, so the emoji grid keeps one width whether or not the OS uses overlay
scrollbars. */
.emoji-picker-scroll::-webkit-scrollbar {
width: 8px;
}
.emoji-picker-scroll::-webkit-scrollbar-track {
background: transparent;
}
.emoji-picker-scroll::-webkit-scrollbar-thumb {
border-radius: 8px;
background-color: var(--color-border);
}