@import 'tailwindcss'; /* ── Font Faces ─────────────────────────────────────────── */ @font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-Variable.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; } @font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-VariableItalic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; } @font-face { font-family: 'JetBrains Mono'; src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: 'JetBrains Mono'; src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; } /* ── Root Tokens ────────────────────────────────────────── */ /* ═══════════════════════════════════════════════════════════════════════ MEASURE — Asyar's design language. The full specification lives in docs/reference/design-system/design-language.md; the decision rules an agent needs live in .agents/skills/design-language/SKILL.md. This file is where both become real. Every value in Asyar is measured, not chosen. This file is the set of measurements, and a value that is not in it does not exist. Four principles govern what goes in: I. DERIVED, NOT CHOSEN. Every number below traces to arithmetic, a scale step, or a hard constraint. "It looked right" is not a derivation, and a value that cannot be defended is not a token. II. SUBTRACT FIRST. Nothing is here because an interface usually has one. Borders, fills, shadows and animations all start at zero and have to be argued in. III. ONE CANDIDATE. At any instant exactly one element is the thing Enter will act on. --bg-selected is the only surface token carrying chroma, and that is this principle as a value. IV. EVERY AFFORDANCE NAMES ITS KEY. The key chip is the most repeated element in the product because of it. Surfaces are translucent and tinted ~225°, never neutral grey: depth is transmission, not stacked opaque cards. ═══════════════════════════════════════════════════════════════════════ */ :root { /* Search accessory sizing and shared emphasis. */ --font-weight-medium: 500; --font-weight-semibold: 600; --border-width-thin: 1px; --accessory-title-max-width: 14rem; --accessory-subtitle-max-width: 8rem; --accessory-popover-min-width: 220px; --accessory-popover-max-height: 320px; /* Tells WebKit the page supports both modes so the WKWebView scrollbar follows prefers-color-scheme. Without this, NSScroller stays in light mode regardless of the macOS appearance. */ color-scheme: light dark; /* Radius scale */ --radius-xs: 4px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 10px; --radius-xl: 12px; --radius-full: 9999px; /* Launcher shell corner — intentionally larger than --radius-xl so the outer window reads more pronounced than inner surfaces. On macOS this MUST match the native contentView mask (pin_launcher_webview in platform/macos.rs); a smaller native clip leaks a wallpaper crescent at each corner. */ border-radius: 20px; /* ── Typography ──────────────────────────────────────────────────────── Satoshi on every platform, macOS included. Asyar previously deferred to San Francisco on macOS; that made the app typographically anonymous on its primary platform, which is incompatible with having a design language at all. The variable font is vendored above, so this costs one already-loaded file. */ --font-ui: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', 'Helvetica Neue', sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace; /* Tracking. Satoshi is drawn a little wide for dense UI, so display sizes are pulled tight and small text is left alone. Never set letter-spacing from a raw em value — use one of these four. */ --tracking-display: -0.028em; --tracking-tight: -0.014em; --tracking-normal: 0em; --tracking-wide: 0.06em; /* ── Motion ──────────────────────────────────────────────────────────── Motion reports; it does not perform. Four durations, four curves, and every animation in the app is built from a pair of them. instant a colour or opacity landing under the pointer quick a state change the user caused directly travel the selection moving, a panel sliding emerge the launcher arriving or a sheet opening --ease-travel is the workhorse: fast out of the gate, long settle, no overshoot. --ease-settle is the only curve permitted to overshoot, and only on scale. */ --dur-instant: 80ms; --dur-quick: 140ms; --dur-travel: 220ms; --dur-emerge: 320ms; --ease-travel: cubic-bezier(0.32, 0.72, 0, 1); --ease-emerge: cubic-bezier(0.16, 1, 0.3, 1); --ease-recede: cubic-bezier(0.7, 0, 0.84, 0); --ease-settle: cubic-bezier(0.34, 1.4, 0.64, 1); /* Legacy transition tokens, now expressed in the language above so the two cannot drift. New code should pair a duration token with an easing token directly rather than reaching for these. */ --transition-fast: var(--dur-instant) var(--ease-travel); --transition-normal: var(--dur-quick) var(--ease-travel); --transition-smooth: var(--dur-travel) var(--ease-travel); /* ── Brand ───────────────────────────────────────────────────────────── Brand and accent are one colour. They were not: --asyar-brand was a teal that appeared almost nowhere while --accent-primary was Apple's system blue, so the app's most-used colour belonged to Apple and the brand token was decorative. Two identity colours is one more than the product can spend (Principle III). --asyar-brand and its three variants now resolve per theme alongside the accent ramp below. Canvas surface for external content (URL previews, embedded HTML) that assumes a white page. Constant across themes — it is someone else's document, not an Asyar surface. */ --surface-canvas: #ffffff; /* Text and icons sitting ON any filled, saturated surface — an accent button, a danger confirm, a selected pill, a checkbox tick, an avatar tile. Every --accent-*-fill in this file is verified to carry this colour at 4.5:1 or better, in both themes. That guarantee is the entire reason the -fill ramp is separate from the voice ramp. Never hardcode #fff or `white` for this. */ --text-on-accent: #ffffff; /* The moving part of a switch — the Toggle knob. White in both themes, the way a native platform switch is, so it reads against both the off-state track (--bg-hover) and the on-state track (--accent-primary). */ --control-knob: #ffffff; /* Modal / overlay scrim. Constant across themes — a dimming layer is dark in both, because it darkens whatever is behind it rather than matching the surface in front. --scrim-opaque is the Linux fallback, used where backdrop-filter is unavailable and the blur can't carry the separation. */ --scrim: rgba(0, 0, 0, 0.4); --scrim-opaque: rgba(0, 0, 0, 0.6); /* ── Space: the gaps between things ─────────────────────────────────── A 2px grid, not the 4px grid most systems use. That is deliberate: the launcher's content area is 384px tall and a result row is ~48px, so the whole product is a seven-row list. At that density a 4px grid is too coarse to tune a row against its neighbour, and every whole step here (2, 4, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48) is a multiple of 2. The four half-steps below are NOT on that grid, and they are the only values in this file that are not. They exist because the spacing scale was being used as a sizing scale before --size-* existed — 23px is an icon tile, 11px is a spinner, 13px is a chip glyph. Those uses have moved to the size scale; what remains of the half-steps is genuine spacing. DEPRECATED — do not add new uses. Round to the nearest whole step. */ --space-0-5: 2px; --space-1: 4px; --space-1-5: 5px; /* deprecated → --space-1 or --space-2 */ --space-2: 6px; --space-2-5: 11px; /* deprecated → --space-4 or --space-5. Misordered: sits between --space-4 and --space-5, not 2 and 3 */ --space-3: 8px; --space-4: 10px; --space-5: 12px; --space-5-5: 13px; /* deprecated → --space-5 or --space-6 */ --space-6: 16px; --space-7: 20px; --space-7-5: 23px; /* deprecated → --space-8, or --size-tile if it is an object */ --space-8: 24px; --space-9: 32px; --space-10: 40px; --space-11: 48px; /* ── Size: the dimensions of things ─────────────────────────────────── Space is the gap between objects; size is the object. They were the same scale until now, which is why --space-* grew values like 11, 13 and 23 — those are not rhythm, they are things, and they had nowhere else to live. Named on the same t-shirt scale as --radius-* and --font-size-*, not by role. Role names were tried and they lie: a 24px spinner is not a "tile", and a token whose name is wrong at the call site reads wrong in review. The canonical use is in the comment, where it can be a guide instead of a claim. On the 4px grid throughout, so an object always lands on the spacing rhythm. */ --size-xs: 12px; /* a glyph inside a dense chip or badge */ --size-sm: 16px; /* the default inline icon, beside body text */ --size-md: 20px; /* a key chip, a small pill, a status pip */ --size-lg: 24px; /* the icon tile in a result row — the launcher's unit object */ --size-xl: 32px; /* an extension avatar, a settings row icon */ --size-2xl: 48px; /* an empty-state or onboarding glyph */ --size-3xl: 64px; /* the largest object in the product */ /* Launcher shell metrics. The window chrome is fixed-position by design (see routes/+page.svelte) so these heights are hand-referenced by the header, the content area, the bottom bar, the action popup and the toast host. They exist as tokens so those five stay in agreement. */ --shell-header-h: 56px; --shell-footer-h: 40px; /* The result row. This is the most consequential number in the product: with a 480px window, a 56px header and a 40px footer, the content area is 384px and the list insets it by --space-3 top and bottom, leaving 368px. At 38px with rows touching, nine rows fill 342px and the tenth peeks in below them — a cue that the list scrolls. It was 40px (an exact nine-row fit) before the launcher polish pass matched the reference density. Change this and you change how much of Asyar is visible. */ --shell-row-h: 38px; /* Stacking scale. Every z-index in the app comes from this list — never write a bare number. The values are the ones the app already used, so the names describe the layering that exists rather than imposing a new one. Native (the Modal component) renders in the browser's top layer and is above all of these regardless of z-index. */ --z-base: 1; /* stacking inside one card or row */ --z-raised: 10; /* an icon or drag handle over its own container */ --z-footer: 40; /* the launcher bottom bars */ --z-dropdown: 50; /* a list anchored to a field or row */ --z-floating: 60; /* toasts and search accessories, above dropdowns */ --z-header: 100; /* the launcher search header */ --z-overlay: 200; /* prompts, banners, the extension inspector */ --z-portal: 9999; /* a fixed popup escaping an overflow-hidden parent */ /* ── Elevation ───────────────────────────────────────────────────────── Five steps, and every one of them casts straight down: `0 Ypx`, no horizontal component. That is a consistency rule, not a physics one — shadows that disagree about direction read as a rendering mistake, and the scale is easier to reason about when height is the only variable. Height is carried by blur radius and by how far the shadow is pulled back with a negative spread. It applies to drop shadows. An inset box-shadow used to draw an edge — the multi-select bar on a clipboard row, say — is a drawing primitive rather than a cast, and is not bound by it. The previous scale cast down-and-left (-28px 20px 80px), inconsistently with everything else in the file. */ --shadow-xs: 0 1px 2px var(--shadow-color); --shadow-sm: 0 2px 6px var(--shadow-color); --shadow-md: 0 6px 14px -2px var(--shadow-color); --shadow-lg: 0 12px 28px -6px var(--shadow-color); --shadow-xl: 0 24px 56px -12px var(--shadow-color); --shadow-popup: 0 12px 40px -8px var(--shadow-color), 0 3px 10px -3px var(--shadow-color); /* Floating launcher surfaces (.launcher-popup). Three stacked casts read as one soft shadow with a believable falloff; a single blur reads flat. Light values live here, the dark themes override with a heavier cast. */ --shadow-launcher-popup: inset 0 1px 0 0 var(--rim-light), 0 32px 64px -16px rgba(10, 14, 32, 0.28), 0 12px 28px -10px rgba(10, 14, 32, 0.18), 0 3px 8px -4px rgba(10, 14, 32, 0.1); /* The focus ring is the accent at full strength — focus is the one lit thing whenever the keyboard is driving. */ --shadow-focus: 0 0 0 2px var(--asyar-brand-muted); /* Corner and hairline of those surfaces. The radius matches the launcher shell above, so a popup reads as the same material. */ --radius-popup: 20px; --popup-divider: rgba(60, 60, 67, 0.11); /* Font-size scale */ --font-size-2xs: 10px; --font-size-xs: 11px; --font-size-sm: 12px; --font-size-md: 13px; --font-size-base: 14px; --font-size-lg: 15px; --font-size-xl: 17px; --font-size-2xl: 20px; --font-size-3xl: 22px; --font-size-display: 2.25rem; /* Role-named because 16px falls between --font-size-lg (15) and -xl (17) and there is no free size name for it. Only .text-section uses it. */ --font-size-section: 16px; /* Additional transition token */ --transition-slow: var(--dur-emerge) var(--ease-emerge); /* Glyph tiles — the `{ glyph, color }` extension icon form. Deep enough for --text-on-accent in both themes, like the --accent-*-fill grounds. */ --tile-red: var(--accent-danger-fill); --tile-orange: var(--accent-warning-fill); --tile-green: var(--accent-success-fill); --tile-teal: #0e7c86; --tile-blue: var(--accent-primary-fill); --tile-purple: #8944ab; --tile-pink: #c4325f; --tile-gray: #6b6b70; } /* ── Syntax tokens ────────────────────────────────────────── The one place code colour is defined. Used by the Prism theme for rendered markdown and by JsonTree in the extension inspector — anything that colours code must come from here, so a snippet looks the same wherever it is shown. Light values are the :root default; the two blocks below swap in the dark set following the same not([data-theme]) / [data-theme='dark'] pattern the surface tokens use. */ :root { --syntax-comment: #90a4ae; --syntax-keyword: #7c4dff; --syntax-string: #558b2f; --syntax-number: #e53935; --syntax-function: #6182b8; } @media (prefers-color-scheme: dark) { :root:not([data-theme]) { --syntax-comment: #637777; --syntax-keyword: #c792ea; --syntax-string: #c3e88d; --syntax-number: #f07178; --syntax-function: #82aaff; } } :root[data-theme='dark'] { --syntax-comment: #637777; --syntax-keyword: #c792ea; --syntax-string: #c3e88d; --syntax-number: #f07178; --syntax-function: #82aaff; } /* Satoshi renders on every platform, macOS included — there is deliberately no per-platform --font-ui override here any more. Asyar used to fall back to San Francisco on macOS, which meant the app had no typographic identity on the platform most of its users are on. The one thing SF gave us for free was optical sizing at small sizes, so we pay for it explicitly: Satoshi's lighter stems need the grade below to hold up at 11–13px against a translucent dark ground. */ * { font-family: var(--font-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } /* ── Text selection ─────────────────────────────────────── Derived from the text colour rather than the system accent, so the highlight stays neutral and inverts with the theme on its own. */ ::selection { background: color-mix(in srgb, var(--text-primary) 22%, transparent); color: inherit; } /* ── Global focus indicator ────────────────────────────── */ *:focus-visible { outline: none; box-shadow: var(--shadow-focus); } /* Remove focus ring from elements that handle it themselves */ input:focus-visible, textarea:focus-visible, select:focus-visible, [contenteditable]:focus-visible { box-shadow: none; } /* ── Reduced motion ─────────────────────────────────────── Motion in Asyar reports state; it never carries state on its own. That is what makes this blanket rule safe: every state in the app is distinguishable with all animation removed, so collapsing durations globally cannot hide anything. Previously only four components honoured this setting, which meant the preference was respected in the toast bar and ignored everywhere else. Durations collapse rather than going to 0 so that transitionend still fires — a handful of components sequence off it. Transforms are dropped outright instead of shortened, because a 1ms scale is still a scale. */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } .pressable:active { transform: none; } } body { margin: 0; padding: 0; overflow: hidden; height: 100vh; user-select: none; font-size: var(--font-size-base); } /* macOS launcher: WKWebView is pinned at 480, NSWindow is cropped around it (platform/macos.rs). Freezing the height chain keeps the DOM static — using 100vh would force WebKit to re-lay out on every setFrame. */ html[data-platform='macos'], html[data-platform='macos'] body, html[data-platform='macos'] .app-root { height: 480px; } /* ── Theme ──────────────────────────────────────────────── Two palettes, each defined twice: under `prefers-color-scheme` (scoped with `:not([data-theme])`) for OS-tracking, and under `[data-theme]` for the user's forced choice (set by services/theme/themeMode.ts). THE TWO COPIES OF EACH PALETTE MUST STAY IDENTICAL. That is not a convention you have to remember — `themePalettes.test.ts` parses this file and fails if the OS-tracking and forced copies of a palette disagree on any token. Every surface here is tinted toward the system hue (~225°) rather than neutral grey, and every accent value is contrast-verified: the voice ramp (--accent-*) reaches 4.5:1 on its own surfaces, and the fill ramp (--accent-*-fill) carries --text-on-accent at 4.5:1. See the "Chromatic system" section of docs/reference/design-system/design-language.md for the derivation and the numbers. */ /* ═══ DARK ═══════════════════════════════════════════════════════════════ */ @media (prefers-color-scheme: dark) { :root:not([data-theme]) { /* Surfaces — deep navy ground, translucent so the wallpaper reads through. Opacity climbs with elevation: the further forward a surface sits, the less of the desktop it lets past. */ --bg-primary: rgba(30, 30, 32, 0.65); --bg-secondary: rgba(40, 40, 42, 0.65); --bg-tertiary: rgba(50, 50, 52, 0.65); --bg-hover: rgba(64, 64, 66, 0.55); /* Selection is the only chromatic surface. Its pale blue source preserves a luminance step as vibrancy brightens over light desktop content, while remaining translucent enough for the material to adapt underneath. */ --bg-selected: rgba(120, 150, 245, 0.24); --bg-secondary-full-opacity: rgba(40, 40, 42); --bg-popup: rgb(30, 30, 32); /* Text */ --text-primary: rgba(255, 255, 255, 0.95); --text-secondary: rgba(235, 235, 245, 0.65); --text-tertiary: rgba(235, 235, 245, 0.4); /* Lines. Cool rather than neutral, so a hairline reads as a lit edge rather than a grey rule. */ --border-color: rgba(90, 90, 95, 0.5); --separator: rgba(90, 90, 95, 0.5); --divider-soft: rgba(255, 255, 255, 0.04); /* The voice — accent as text, icon, stroke, or tint source. */ --accent-primary: #007aff; --accent-success: #28cd41; --accent-warning: #ff9500; --accent-danger: #ff3b30; --accent-primary-rgb: 46, 196, 182; /* The ground — filled surfaces carrying --text-on-accent. Deeper than the voice, because white text has to survive on top of them. */ --accent-primary-fill: #0071ed; --accent-success-fill: #1b892c; --accent-warning-fill: #ad6500; --accent-danger-fill: #de332a; /* Brand === accent. One identity colour, not two. */ --asyar-brand: #2ec4b6; --asyar-brand-hover: #28b0a3; --asyar-brand-muted: rgba(46, 196, 182, 0.15); --asyar-brand-subtle: rgba(46, 196, 182, 0.08); /* Edge highlight and edge shade, used inside --shadow-launcher-popup and the filled-button gradients to keep a surface from reading as a flat rectangle of colour. Themeable, so they stay named tokens rather than being inlined at each of those sites. */ --rim-light: rgba(255, 255, 255, 0.04); --rim-shade: rgba(0, 0, 0, 0.4); --shadow-color: rgba(0, 0, 0, 0.25); --shadow-launcher-popup: inset 0 0 0 1px rgba(255, 255, 255, 0.04), -28px 20px 80px -20px rgba(0, 0, 0, 0.7), -14px 10px 40px -16px rgba(0, 0, 0, 0.5), -4px 3px 12px -6px rgba(0, 0, 0, 0.35); --popup-border-color: rgba(255, 255, 255, 0.18); --popup-divider: rgba(255, 255, 255, 0.07); --scrollbar-thumb: rgba(155, 155, 155, 0.5); --kbd-rim: rgba(255, 255, 255, 0.03); --kbd-border: rgba(255, 255, 255, 0.22); background-color: var(--bg-primary); } /* Settings window: opaque surfaces. The launcher composites translucent vibrancy over the desktop; the settings window sits on the platform's own backdrop and needs solid elevation to read. */ :root:not([data-theme]):not([data-custom-theme]) .settings-page { --bg-primary: rgb(30, 30, 32); --bg-secondary: rgb(37, 37, 40); --bg-tertiary: rgb(47, 47, 50); --bg-hover: rgb(54, 54, 58); --bg-selected: rgb(61, 61, 66); --bg-secondary-full-opacity: rgb(37, 37, 40); --border-color: rgba(255, 255, 255, 0.09); --separator: rgba(255, 255, 255, 0.07); --divider-soft: rgba(255, 255, 255, 0.04); --shadow-color: rgba(0, 0, 0, 0.45); } } :root[data-theme='dark'] { --bg-primary: rgba(30, 30, 32, 0.65); --bg-secondary: rgba(40, 40, 42, 0.65); --bg-tertiary: rgba(50, 50, 52, 0.65); --bg-hover: rgba(64, 64, 66, 0.55); --bg-selected: rgba(120, 150, 245, 0.24); --bg-secondary-full-opacity: rgba(40, 40, 42); --bg-popup: rgb(30, 30, 32); --text-primary: rgba(255, 255, 255, 0.95); --text-secondary: rgba(235, 235, 245, 0.65); --text-tertiary: rgba(235, 235, 245, 0.4); --border-color: rgba(90, 90, 95, 0.5); --separator: rgba(90, 90, 95, 0.5); --divider-soft: rgba(255, 255, 255, 0.04); --accent-primary: #007aff; --accent-success: #28cd41; --accent-warning: #ff9500; --accent-danger: #ff3b30; --accent-primary-rgb: 46, 196, 182; --accent-primary-fill: #0071ed; --accent-success-fill: #1b892c; --accent-warning-fill: #ad6500; --accent-danger-fill: #de332a; --asyar-brand: #2ec4b6; --asyar-brand-hover: #28b0a3; --asyar-brand-muted: rgba(46, 196, 182, 0.15); --asyar-brand-subtle: rgba(46, 196, 182, 0.08); --rim-light: rgba(255, 255, 255, 0.04); --rim-shade: rgba(0, 0, 0, 0.4); --shadow-color: rgba(0, 0, 0, 0.25); --shadow-launcher-popup: inset 0 0 0 1px rgba(255, 255, 255, 0.04), -28px 20px 80px -20px rgba(0, 0, 0, 0.7), -14px 10px 40px -16px rgba(0, 0, 0, 0.5), -4px 3px 12px -6px rgba(0, 0, 0, 0.35); --popup-border-color: rgba(255, 255, 255, 0.18); --popup-divider: rgba(255, 255, 255, 0.07); --scrollbar-thumb: rgba(155, 155, 155, 0.5); --kbd-rim: rgba(255, 255, 255, 0.03); --kbd-border: rgba(255, 255, 255, 0.22); background-color: var(--bg-primary); color-scheme: dark; } :root[data-theme='dark']:not([data-custom-theme]) .settings-page { --bg-primary: rgb(30, 30, 32); --bg-secondary: rgb(37, 37, 40); --bg-tertiary: rgb(47, 47, 50); --bg-hover: rgb(54, 54, 58); --bg-selected: rgb(61, 61, 66); --bg-secondary-full-opacity: rgb(37, 37, 40); --border-color: rgba(255, 255, 255, 0.09); --separator: rgba(255, 255, 255, 0.07); --divider-soft: rgba(255, 255, 255, 0.04); --shadow-color: rgba(0, 0, 0, 0.45); } /* ═══ LIGHT ══════════════════════════════════════════════════════════════ */ @media (prefers-color-scheme: light) { :root:not([data-theme]) { --bg-primary: rgba(240, 240, 245, 0.65); --bg-secondary: rgba(230, 230, 235, 0.65); --bg-tertiary: rgba(245, 245, 247, 0.65); --bg-hover: rgba(220, 220, 225, 0.5); --bg-selected: rgba(42, 85, 214, 0.13); --bg-secondary-full-opacity: rgb(230, 230, 235); --bg-popup: rgb(240, 240, 245); --text-primary: rgba(15, 23, 42, 0.9); --text-secondary: rgba(60, 60, 67, 0.7); --text-tertiary: rgba(60, 60, 67, 0.35); --border-color: rgba(60, 60, 67, 0.15); --separator: rgba(60, 60, 67, 0.12); --divider-soft: rgba(60, 60, 67, 0.06); /* In light mode the voice and the fill converge: a colour dark enough to read as text on paper is already dark enough to carry white. */ --accent-primary: #007aff; --accent-success: #28cd41; --accent-warning: #ff9500; --accent-danger: #ff3b30; --accent-primary-rgb: 46, 196, 182; --accent-primary-fill: #0071ed; --accent-success-fill: #1b892c; --accent-warning-fill: #ad6500; --accent-danger-fill: #de332a; --asyar-brand: #2ec4b6; --asyar-brand-hover: #28b0a3; --asyar-brand-muted: rgba(46, 196, 182, 0.15); --asyar-brand-subtle: rgba(46, 196, 182, 0.08); --rim-light: rgba(255, 255, 255, 0.8); --rim-shade: rgba(0, 0, 0, 0.06); --shadow-color: rgba(0, 0, 0, 0.06); --shadow-launcher-popup: -28px 20px 80px -20px rgba(0, 0, 0, 0.3), -14px 10px 40px -16px rgba(0, 0, 0, 0.18), -4px 3px 12px -6px rgba(0, 0, 0, 0.1); --popup-border-color: rgba(60, 60, 67, 0.16); --popup-divider: rgba(60, 60, 67, 0.11); --scrollbar-thumb: rgba(100, 116, 132, 0.3); --kbd-rim: rgba(0, 0, 0, 0.025); --kbd-border: rgba(0, 0, 0, 0.2); background-color: var(--bg-primary); } :root:not([data-theme]):not([data-custom-theme]) .settings-page { --bg-primary: rgb(245, 245, 247); --bg-secondary: rgb(236, 236, 240); --bg-tertiary: rgb(255, 255, 255); --bg-hover: rgb(230, 230, 235); --bg-selected: rgba(60, 60, 67, 0.09); --bg-secondary-full-opacity: rgb(236, 236, 240); --border-color: rgba(60, 60, 67, 0.09); --separator: rgba(60, 60, 67, 0.07); --divider-soft: rgba(60, 60, 67, 0.06); --shadow-color: rgba(0, 0, 0, 0.1); } } :root[data-theme='light'] { --bg-primary: rgba(240, 240, 245, 0.65); --bg-secondary: rgba(230, 230, 235, 0.65); --bg-tertiary: rgba(245, 245, 247, 0.65); --bg-hover: rgba(220, 220, 225, 0.5); --bg-selected: rgba(42, 85, 214, 0.13); --bg-secondary-full-opacity: rgb(230, 230, 235); --bg-popup: rgb(240, 240, 245); --text-primary: rgba(15, 23, 42, 0.9); --text-secondary: rgba(60, 60, 67, 0.7); --text-tertiary: rgba(60, 60, 67, 0.35); --border-color: rgba(60, 60, 67, 0.15); --separator: rgba(60, 60, 67, 0.12); --divider-soft: rgba(60, 60, 67, 0.06); --accent-primary: #007aff; --accent-success: #28cd41; --accent-warning: #ff9500; --accent-danger: #ff3b30; --accent-primary-rgb: 46, 196, 182; --accent-primary-fill: #0071ed; --accent-success-fill: #1b892c; --accent-warning-fill: #ad6500; --accent-danger-fill: #de332a; --asyar-brand: #2ec4b6; --asyar-brand-hover: #28b0a3; --asyar-brand-muted: rgba(46, 196, 182, 0.15); --asyar-brand-subtle: rgba(46, 196, 182, 0.08); --rim-light: rgba(255, 255, 255, 0.8); --rim-shade: rgba(0, 0, 0, 0.06); --shadow-color: rgba(0, 0, 0, 0.06); --shadow-launcher-popup: -28px 20px 80px -20px rgba(0, 0, 0, 0.3), -14px 10px 40px -16px rgba(0, 0, 0, 0.18), -4px 3px 12px -6px rgba(0, 0, 0, 0.1); --popup-border-color: rgba(60, 60, 67, 0.16); --popup-divider: rgba(60, 60, 67, 0.11); --scrollbar-thumb: rgba(100, 116, 132, 0.3); --kbd-rim: rgba(0, 0, 0, 0.025); --kbd-border: rgba(0, 0, 0, 0.2); background-color: var(--bg-primary); color-scheme: light; } :root[data-theme='light']:not([data-custom-theme]) .settings-page { --bg-primary: rgb(245, 245, 247); --bg-secondary: rgb(236, 236, 240); --bg-tertiary: rgb(255, 255, 255); --bg-hover: rgb(230, 230, 235); --bg-selected: rgba(60, 60, 67, 0.09); --bg-secondary-full-opacity: rgb(236, 236, 240); --border-color: rgba(60, 60, 67, 0.09); --separator: rgba(60, 60, 67, 0.07); --divider-soft: rgba(60, 60, 67, 0.06); --shadow-color: rgba(0, 0, 0, 0.1); } /* ── Surfaces that used to be hand-coloured per theme ───── .search-input, .result-title and .back-button each carried four hardcoded colour blocks (one per theme entry point) because the old neutral-grey palette could not express them. The tinted ramp above can, so they are one token-driven rule each now. .result-subtitle and .macos-panel had no remaining markup and are gone entirely. */ .search-input { color: var(--text-primary); } .search-input::placeholder { color: var(--text-tertiary); } .result-title { color: var(--text-primary); } .back-button { color: var(--text-secondary); transition: color var(--transition-normal); } .back-button:hover { color: var(--text-primary); } /* ── Component Layer ────────────────────────────────────── */ @layer components { .app-layout { @apply min-h-screen flex flex-col; font-family: var(--font-ui); } /* The launcher's fixed top chrome. Height and layer come from the shell tokens so the header, the content area below it and the bottom bars cannot drift apart. */ .search-header { @apply fixed inset-x-0 top-0; height: var(--shell-header-h); z-index: var(--z-header); } /* The scrollable area between the two fixed bars. */ .shell-content { @apply fixed left-0 right-0 overflow-y-auto; top: var(--shell-header-h); bottom: var(--shell-footer-h); } .shell-content.shell-content--view { overflow-y: hidden; } /* The launcher's floating surfaces — the ⌘K action popup, the dropdown argument list. Defined once so they cannot drift apart; each caller supplies only its own position and size. */ .launcher-popup { background: color-mix(in srgb, var(--bg-popup) 80%, transparent); backdrop-filter: blur(60px) saturate(200%); -webkit-backdrop-filter: blur(60px) saturate(200%); border: 1px solid var(--popup-border-color); border-radius: var(--radius-popup); box-shadow: var(--shadow-launcher-popup); } html[data-platform='linux'] .launcher-popup { backdrop-filter: none; background-color: var(--bg-popup); } /* Search row of a launcher popup. Matches the launcher's own search field one size down; the caller draws the hairline on whichever side its list sits. */ .launcher-popup-search { height: 41px; flex-shrink: 0; display: flex; align-items: center; padding: 0 var(--space-5); background: transparent; box-sizing: border-box; } .launcher-popup-search .input-wrapper, .launcher-popup-search > * { width: 100%; } .launcher-popup-search .input { font-size: var(--font-size-md); padding: var(--space-1) 0; border: none; background: transparent; border-radius: 0; color: var(--text-primary); caret-color: color-mix( in srgb, var(--text-primary) 60%, var(--bg-secondary-full-opacity) 40% ) !important; } .launcher-popup-search .input::placeholder { color: color-mix(in srgb, var(--text-primary) 50%, var(--bg-secondary-full-opacity) 50%); font-weight: 500; } .launcher-popup-search .input:focus { border: none; box-shadow: none; } .search-input { @apply w-full text-base outline-none bg-transparent px-8 py-4 text-[var(--text-primary)] disabled:opacity-50; font-family: var(--font-ui); font-size: var(--font-size-xl); transition: color var(--transition-fast); &::placeholder { color: var(--text-tertiary); font-weight: 300; } } .back-button { @apply absolute left-3 top-1/2 -translate-y-1/2 cursor-default flex items-center gap-2; z-index: var(--z-raised); transition: color var(--transition-fast); } .result-item { @apply w-full text-left flex flex-col justify-center gap-1 cursor-default; /* 8px here plus the list's own --space-3 inset puts the row's content on 16px — the same left edge as the query in the header, which uses px-4. This was 9px, which put every result 1px to the right of the text the user typed and sat off the 2px grid. */ padding: 0 var(--space-3); min-height: var(--shell-row-h); border-radius: var(--radius-md); border: none; &:active { background-color: var(--bg-selected); } } .result-title { font-size: var(--font-size-md); font-weight: 500; color: var(--text-primary); } mark.search-match, .search-match { color: var(--accent-primary); background-color: color-mix(in srgb, var(--accent-primary) 18%, transparent); font-weight: var(--font-weight-semibold); border-radius: var(--radius-xs); padding: 0 var(--space-0-5); } .result-subtitle { @apply text-xs; color: var(--text-secondary); } .selected-result { background-color: var(--bg-selected); box-shadow: inset 0 0 2px 0.5px var(--kbd-rim); } /* Multi-item selection (e.g. clipboard-history merge-paste) — independent of .selected-result (the single keyboard cursor); a row can carry either or both classes at once. */ .multi-selected-result { background-color: var(--bg-tertiary); box-shadow: inset 3px 0 0 0 var(--accent-primary); } .btn { @apply inline-flex items-center justify-center px-4 py-1.5 text-sm font-medium outline-none; font-family: var(--font-ui); border-radius: var(--radius-sm); background-color: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); transition: all var(--transition-fast); cursor: default; &:hover { background-color: var(--bg-hover); } &:active { background-color: var(--bg-selected); } &:focus-visible { box-shadow: var(--shadow-focus); } &:disabled { opacity: 0.5; cursor: default; } } .btn-full { @apply w-full; } .input { @apply w-full px-3 py-1.5 outline-none text-[var(--text-primary)] placeholder-[var(--text-tertiary)] border border-[var(--border-color)]; font-family: var(--font-ui); border-radius: var(--radius-sm); background-color: var(--bg-tertiary); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); &:focus { border-color: var(--accent-primary); box-shadow: var(--shadow-focus); } &:disabled { opacity: 0.5; cursor: default; } } .split-view { @apply h-full flex flex-col overflow-hidden; } .split-view-content { @apply flex-1 flex; } /* Transparent so the launcher's vibrancy reads through unmodified. */ .split-view-left { @apply overflow-y-auto border-r border-[var(--separator)]; background-color: transparent; position: relative; z-index: 1; } .split-view-right { @apply flex-1 overflow-y-auto; background-color: transparent; } .custom-scrollbar { @apply overflow-y-auto; } /* * Non-macOS: visible styled scrollbar (6px). * macOS: no ::-webkit-scrollbar rule — letting WebKit fall back to * the native NSScroller overlay scrollbar (the one that fades in * on scroll, governed by System Settings → "Show scroll bars"). * Defining any ::-webkit-scrollbar rule on macOS would demote the * scroller to legacy obtrusive mode. */ html:not([data-platform='macos']) .custom-scrollbar { &::-webkit-scrollbar { width: 6px; } &::-webkit-scrollbar-track { background: transparent; } &::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: 3px; &:hover { background-color: color-mix(in srgb, var(--scrollbar-thumb) 100%, var(--text-primary) 20%); } } scrollbar-color: var(--scrollbar-thumb) transparent; scrollbar-width: thin; } .btn-primary { background: linear-gradient( to bottom, var(--accent-primary-fill), color-mix(in srgb, var(--accent-primary-fill) 88%, var(--rim-shade)) ); color: var(--text-on-accent); border: none; &:hover { background: linear-gradient( to bottom, color-mix(in srgb, var(--accent-primary-fill) 92%, var(--rim-light)), var(--accent-primary-fill) ); } &:active { background: linear-gradient( to bottom, color-mix(in srgb, var(--accent-primary) 90%, black), var(--accent-primary) ); } } .btn-success { background: linear-gradient( to bottom, var(--accent-success-fill), color-mix(in srgb, var(--accent-success-fill) 88%, var(--rim-shade)) ); color: var(--text-on-accent); border: none; &:hover { background: linear-gradient( to bottom, color-mix(in srgb, var(--accent-success-fill) 92%, var(--rim-light)), var(--accent-success-fill) ); } } .btn-danger { background: linear-gradient( to bottom, var(--accent-danger-fill), color-mix(in srgb, var(--accent-danger-fill) 88%, var(--rim-shade)) ); color: var(--text-on-accent); border: none; &:hover { background: linear-gradient( to bottom, color-mix(in srgb, var(--accent-danger-fill) 92%, var(--rim-light)), var(--accent-danger-fill) ); } } .split-view-handle { @apply w-px hover:w-1 cursor-ew-resize; z-index: var(--z-raised); background-color: var(--divider-soft); transition: width var(--transition-fast), background-color var(--transition-fast); &:hover { background-color: var(--accent-primary); } } .badge { @apply inline-flex items-center px-1.5 py-0.5 text-xs font-medium; border-radius: var(--radius-xs); } .badge-primary { background-color: var(--asyar-brand-muted); color: var(--accent-primary); } .badge-secondary { background-color: var(--bg-tertiary); color: var(--text-secondary); } .badge-success { background-color: color-mix(in srgb, var(--accent-success) 12%, transparent); color: var(--accent-success); } .badge-warning { background-color: color-mix(in srgb, var(--accent-warning) 12%, transparent); color: var(--accent-warning); } .badge-danger { background-color: color-mix(in srgb, var(--accent-danger) 12%, transparent); color: var(--accent-danger); } .card { @apply p-5 border border-[var(--separator)]; border-radius: var(--radius-lg); background-color: var(--bg-secondary); box-shadow: var(--shadow-xs); transition: box-shadow var(--transition-normal); &:hover { box-shadow: 0 2px 6px var(--shadow-color); } } .card-elevated { background-color: var(--bg-primary); box-shadow: var(--shadow-lg); } .keyboard-shortcut { @apply inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-medium; font-family: var(--font-mono); min-width: 20px; height: 18px; background-color: var(--bg-tertiary); color: var(--text-secondary); border-radius: var(--radius-xs); border: 0.5px solid var(--border-color); box-shadow: 0 1px 0 var(--shadow-color); } .macos-toolbar { @apply flex items-center px-3 py-2 gap-2 border-b border-[var(--separator)]; background-color: var(--bg-secondary); backdrop-filter: blur(10px); } .window-controls { @apply flex items-center gap-1.5 ml-2; } .traffic-light { @apply w-3 h-3 rounded-full; } .close-button { background-color: #ff5f57; } .minimize-button { background-color: #febc2e; } .maximize-button { background-color: #28c840; } .macos-sidebar { @apply w-48 border-r border-[var(--separator)] overflow-y-auto; background-color: var(--bg-secondary); } .sidebar-item { @apply flex items-center gap-2 px-4 py-2 text-sm; border-radius: var(--radius-sm); color: var(--text-secondary); transition: background-color var(--transition-fast), color var(--transition-fast); &:hover { background-color: var(--bg-hover); } &.active { background-color: var(--bg-selected); color: var(--accent-primary); } } } /* ── Platform: Windows ──────────────────────────────────── */ html[data-platform='win32'] .macos-panel, html[data-platform='windows'] .macos-panel { backdrop-filter: none; background-color: transparent; } @media (prefers-color-scheme: light) { html[data-platform='win32']:not([data-theme]), html[data-platform='windows']:not([data-theme]) { background-color: transparent; --bg-primary: rgba(247, 249, 251, 0.25); --bg-secondary: rgba(238, 242, 246, 0.2); --bg-tertiary: rgba(243, 246, 249, 0.2); --bg-hover: rgba(228, 233, 238, 0.3); --bg-selected: rgba(140, 140, 148, 0.22); /* Themed translucent overlay over the DWM Acrylic backdrop. ~85% opaque so the theme reads regardless of the desktop wallpaper behind, while a hint of system blur still shows through. */ --win-acrylic-tint: rgba(240, 240, 245, 0.85); } } html[data-platform='win32'][data-theme='light'], html[data-platform='windows'][data-theme='light'] { background-color: transparent; --bg-primary: rgba(247, 249, 251, 0.25); --bg-secondary: rgba(238, 242, 246, 0.2); --bg-tertiary: rgba(243, 246, 249, 0.2); --bg-hover: rgba(228, 233, 238, 0.3); --bg-selected: rgba(140, 140, 148, 0.22); --win-acrylic-tint: rgba(240, 240, 245, 0.85); } @media (prefers-color-scheme: dark) { html[data-platform='win32']:not([data-theme]), html[data-platform='windows']:not([data-theme]) { background-color: transparent; --bg-primary: rgba(14, 17, 20, 0.25); --bg-secondary: rgba(20, 24, 28, 0.2); --bg-tertiary: rgba(28, 33, 38, 0.2); --bg-hover: rgba(36, 42, 48, 0.3); --bg-selected: rgba(74, 74, 78, 0.65); --win-acrylic-tint: rgba(28, 28, 32, 0.85); } } html[data-platform='win32'][data-theme='dark'], html[data-platform='windows'][data-theme='dark'] { background-color: transparent; --bg-primary: rgba(14, 17, 20, 0.25); --bg-secondary: rgba(20, 24, 28, 0.2); --bg-tertiary: rgba(28, 33, 38, 0.2); --bg-hover: rgba(36, 42, 48, 0.3); --bg-selected: rgba(74, 74, 78, 0.65); --win-acrylic-tint: rgba(28, 28, 32, 0.85); } /* DWM (the Windows compositor) paints the system backdrop — Mica or Acrylic * applied via window-vibrancy in Rust — and rounds the visible window * corners (DWMWA_WINDOW_CORNER_PREFERENCE = ROUND). The webview itself stays * transparent so that backdrop reads through; CSS doesn't try to round or * blur on top, which would leave a halo where the CSS radius and DWM radius * disagree at the edge. The `--win-acrylic-tint` overlay sits on the * backdrop so the launcher reads as dark/light regardless of the desktop * wallpaper Acrylic is blurring underneath (Acrylic's tint defaults to * transparent so the desktop's color otherwise dominates the result). */ html[data-platform='win32'] .app-root, html[data-platform='windows'] .app-root { height: 100vh; width: 100vw; background-color: var(--win-acrylic-tint); } html[data-platform='win32'], html[data-platform='windows'], html[data-platform='win32'] body, html[data-platform='windows'] body { background-color: transparent; } /* ── Platform: Linux ────────────────────────────────────── */ @media (prefers-color-scheme: light) { html[data-platform='linux']:not([data-theme]) { --bg-primary: rgb(247, 249, 251); --bg-secondary: rgb(238, 242, 246); --bg-tertiary: rgb(243, 246, 249); --bg-hover: rgba(228, 233, 238, 0.8); --bg-selected: rgba(140, 140, 148, 0.22); --shadow-color: rgba(0, 0, 0, 0.1); } html[data-platform='linux']:not([data-theme]) .macos-panel { backdrop-filter: none; background-color: var(--bg-primary); } } html[data-platform='linux'][data-theme='light'] { --bg-primary: rgb(247, 249, 251); --bg-secondary: rgb(238, 242, 246); --bg-tertiary: rgb(243, 246, 249); --bg-hover: rgba(228, 233, 238, 0.8); --bg-selected: rgba(140, 140, 148, 0.22); --shadow-color: rgba(0, 0, 0, 0.1); } html[data-platform='linux'][data-theme='light'] .macos-panel { backdrop-filter: none; background-color: var(--bg-primary); } @media (prefers-color-scheme: dark) { html[data-platform='linux']:not([data-theme]) { --bg-primary: rgb(14, 17, 20); --bg-secondary: rgb(20, 24, 28); --bg-tertiary: rgb(28, 33, 38); --bg-hover: rgba(36, 42, 48, 0.8); --bg-selected: rgba(74, 74, 78, 0.65); --shadow-color: rgba(0, 0, 0, 0.35); } html[data-platform='linux']:not([data-theme]) .macos-panel { backdrop-filter: none; background-color: var(--bg-primary); } } html[data-platform='linux'][data-theme='dark'] { --bg-primary: rgb(14, 17, 20); --bg-secondary: rgb(20, 24, 28); --bg-tertiary: rgb(28, 33, 38); --bg-hover: rgba(36, 42, 48, 0.8); --bg-selected: rgba(74, 74, 78, 0.65); --shadow-color: rgba(0, 0, 0, 0.35); } html[data-platform='linux'][data-theme='dark'] .macos-panel { backdrop-filter: none; background-color: var(--bg-primary); } /* ── Typography utilities ─────────────────────────────── */ @layer components { /* Heading scale — for page/section headings inside built-in views */ .text-page-title { font-size: var(--font-size-3xl); font-weight: 600; color: var(--text-primary); letter-spacing: var(--tracking-display); line-height: 1.2; } .text-section { font-size: var(--font-size-section); font-weight: 600; color: var(--text-primary); letter-spacing: var(--tracking-tight); line-height: 1.35; } .text-subtitle { font-size: var(--font-size-md); font-weight: 400; color: var(--text-secondary); line-height: 1.5; } /* Inline text scale — for list items, labels, body copy */ .text-title { font-size: var(--font-size-base); font-weight: 600; color: var(--text-primary); } .text-body { font-size: var(--font-size-base); font-weight: 400; color: var(--text-primary); } .text-label { font-size: var(--font-size-sm); font-weight: 500; color: var(--text-secondary); } .text-caption { font-size: var(--font-size-xs); font-weight: 400; color: var(--text-tertiary); } .text-mono { font-family: var(--font-mono); font-size: var(--font-size-sm); font-variant-numeric: tabular-nums; } /* ── Surface utilities ────────────────────────────────── */ .surface-primary { background: var(--bg-primary); } .surface-secondary { background: var(--bg-secondary); } .surface-popup { background: var(--bg-popup); border: 1px solid var(--border-color); border-radius: var(--radius-lg); } /* ── Section header (used inside feature views) ──────── */ .section-header { font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-tertiary); padding: var(--space-3) var(--space-6) var(--space-1); user-select: none; } /* Settings windows: sentence-case heading flush with the card below it. */ .settings-page .section-header { font-size: var(--font-size-md); font-weight: 600; text-transform: none; letter-spacing: var(--tracking-normal); color: var(--text-primary); padding: 0 var(--space-0-5); margin-bottom: var(--space-2); } /* Section header for list views (clipboard, snippets, actions). */ .list-section { padding: var(--space-6) var(--space-3) var(--space-1); font-size: var(--font-size-md); font-weight: 600; color: var(--text-secondary); user-select: none; } .list-section:first-child { padding-top: var(--space-1); } .view-container { display: flex; flex-direction: column; height: 100%; background: transparent; color: var(--text-primary); font-family: var(--font-ui); font-size: var(--font-size-base); } /* ── List row (for rows inside feature views) ─────────── */ .list-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-md); margin-bottom: 1px; transition: none; cursor: default; } /* The selected row. Identical to .selected-result, which is what the launcher list and clipboard history use — one selection treatment across the whole app. Keep it flat. No gradient wash, no accent seam down the left edge, no border. This is the most-seen element in the product and the most tempting one to make expressive, and it is deliberately plain: a flat band reads faster, and every gradient stop you would have to pick is a number nothing derives (Principle I). A selected row is a reading position, not a place to spend craft (Principle II). */ .list-row.selected { background-color: var(--bg-selected); box-shadow: inset 0 0 2px 0.5px var(--kbd-rim); } .list-row.selected * { color: var(--text-primary); } .list-row.selected .text-caption, .list-row.selected .text-tertiary { color: var(--text-secondary); } /* ── Input field ─────────────────────────────────────── */ .field-input { padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-secondary-full-opacity); color: var(--text-primary); font-family: var(--font-ui); font-size: var(--font-size-base); outline: none; width: 100%; transition: border-color var(--transition-fast); } .field-input:focus { border-color: var(--accent-primary); } .field-select { padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-secondary-full-opacity); color: var(--text-primary); font-family: var(--font-ui); font-size: var(--font-size-base); outline: none; width: 100%; transition: border-color var(--transition-fast); appearance: auto; cursor: default; } .field-select:focus { border-color: var(--accent-primary); } .field-textarea { padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-secondary-full-opacity); color: var(--text-primary); font-family: var(--font-ui); font-size: var(--font-size-base); outline: none; width: 100%; transition: border-color var(--transition-fast); resize: vertical; min-height: 70px; } .field-textarea:focus { border-color: var(--accent-primary); } .field-range { width: 100%; accent-color: var(--accent-primary); } /* ── Primary button ───────────────────────────────────── */ .btn-primary { padding: 6px 14px; border-radius: var(--radius-sm); border: none; background: var(--accent-primary-fill); color: var(--text-on-accent); font-family: var(--font-ui); font-size: var(--font-size-md); font-weight: 500; cursor: default; transition: opacity var(--transition-fast); } .btn-primary:hover { opacity: 0.9; } .btn-primary:disabled { opacity: 0.4; cursor: default; } /* ── Secondary button ─────────────────────────────────── */ .btn-secondary { padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); font-family: var(--font-ui); font-size: var(--font-size-md); cursor: default; transition: background var(--transition-fast); } .btn-secondary:hover { background: var(--bg-hover); } /* ── Danger button ────────────────────────────────────── */ .btn-danger { background: transparent; border: none; color: var(--accent-danger); cursor: default; padding: 4px 8px; border-radius: var(--radius-sm); font-size: var(--font-size-md); transition: background var(--transition-fast); } .btn-danger:hover { background: color-mix(in srgb, var(--accent-danger) 12%, transparent); } /* ── Empty state ──────────────────────────────────────── */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; gap: 8px; color: var(--text-secondary); font-size: var(--font-size-md); } /* ── Onboarding gradient highlight ──────────────────── */ .onb-hl { background: linear-gradient(90deg, var(--asyar-brand), var(--accent-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; } /* ── Pressable feedback ──────────────────────────────── */ .pressable:active { transform: scale(0.97); transition: transform var(--transition-fast); } /* ── Shared Markdown Content (.md-content) ───────────── */ .md-content { font-family: var(--font-ui); font-size: var(--font-size-base); line-height: 1.6; overflow-wrap: break-word; color: var(--text-primary); } .md-content h1, .md-content h2, .md-content h3, .md-content h4, .md-content h5, .md-content h6 { color: var(--text-primary); margin: 1.5em 0 0.5em; line-height: 1.3; font-weight: 600; } .md-content h1 { font-size: 1.5em; border-bottom: 1px solid var(--border-color); padding-bottom: 0.3em; } .md-content h2 { font-size: 1.3em; } .md-content h3 { font-size: 1.15em; } .md-content p { margin: 1em 0; } .md-content p:first-child { margin-top: 0; } .md-content p:last-child { margin-bottom: 0; } .md-content strong { font-weight: 600; } .md-content a { color: var(--accent-primary); text-decoration: none; } .md-content a:hover { text-decoration: underline; } .md-content ul, .md-content ol { margin: 1em 0; padding-left: 1.5em; } .md-content li { margin: 0.4em 0; } .md-content blockquote { margin: 1em 0; padding: 0.5em 1em; border-left: 4px solid var(--border-color); background: var(--bg-secondary); border-radius: var(--radius-sm); color: var(--text-secondary); } /* Inline code */ .md-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-hover); padding: 2px 5px; border-radius: var(--radius-xs); color: var(--text-primary); } /* Fenced code blocks with copy button */ .md-content .md-code-block { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin: 1.25em 0; overflow: hidden; box-shadow: var(--shadow-sm); } .md-content .md-code-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); } .md-content .md-code-lang { font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); } .md-content .md-copy-btn { font-size: 11px; font-weight: 500; color: var(--text-secondary); background: var(--bg-tertiary); border: 1px solid var(--border-color); padding: 3px 10px; border-radius: var(--radius-sm); cursor: default; transition: all var(--transition-fast); } .md-content .md-copy-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--text-tertiary); } .md-content .md-code-block pre { margin: 0; padding: 14px; overflow-x: auto; } .md-content .md-code-block pre { margin: 0; padding: 14px; overflow-x: auto; } .md-content pre code { background: none; padding: 0; font-size: 13px; line-height: 1.5; } /* Prism Syntax Highlighting Tokens */ .md-content .token.comment, .md-content .token.prolog, .md-content .token.doctype, .md-content .token.cdata { color: var(--syntax-comment); font-style: italic; } .md-content .token.punctuation { color: var(--text-secondary); } .md-content .token.namespace { opacity: 0.7; } .md-content .token.property, .md-content .token.tag, .md-content .token.boolean, .md-content .token.number, .md-content .token.constant, .md-content .token.symbol, .md-content .token.deleted { color: var(--syntax-number); } .md-content .token.selector, .md-content .token.attr-name, .md-content .token.string, .md-content .token.char, .md-content .token.builtin, .md-content .token.inserted { color: var(--syntax-string); } .md-content .token.operator, .md-content .token.entity, .md-content .token.url, .md-content .language-css .token.string, .md-content .style .token.string { color: var(--accent-primary); } .md-content .token.atrule, .md-content .token.attr-value, .md-content .token.keyword { color: var(--syntax-keyword); } .md-content .token.function, .md-content .token.class-name { color: var(--syntax-function); } .md-content .token.regex, .md-content .token.important, .md-content .token.variable { color: #f78c6c; } .md-content hr { border: none; border-top: 1px solid var(--border-color); margin: 2em 0; } .md-content table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: var(--font-size-sm); } .md-content th, .md-content td { border: 1px solid var(--border-color); padding: 10px 14px; text-align: left; word-break: normal; overflow-wrap: normal; } .md-content th { background-color: var(--bg-secondary); font-weight: 600; } /* Images */ .md-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1em 0; } /* Mermaid Diagrams */ .md-content .mermaid { background: var(--bg-secondary); padding: 1.5em; border-radius: var(--radius-md); margin: 1.5em 0; display: flex; justify-content: center; overflow-x: auto; min-height: 50px; transition: opacity var(--transition-normal); } .md-content .mermaid[data-processed='true'] { background: transparent; padding: 0; } .md-content .mermaid svg { max-width: 100% !important; height: auto !important; } /* LaTeX / KaTeX */ .md-content .katex-display { margin: 1.5em 0; text-align: center; overflow-x: auto; overflow-y: hidden; } .md-content .katex { font-size: 1.1em; } .md-content .katex-error { font-family: var(--font-mono); font-size: 0.85em; color: var(--accent-danger); background: var(--bg-hover); padding: 2px 6px; border-radius: var(--radius-xs); } }