@import "tailwindcss"; @import "@xterm/xterm/css/xterm.css"; @plugin "@tailwindcss/typography"; /* ─── Self-hosted fonts (no Google CDN dependency) ────────────── */ /* Inter – variable weight 400-600, latin */ @font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* Manrope – variable weight 400-800, latin */ @font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/manrope-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* JetBrains Mono – weight 400, latin */ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* Material Symbols Outlined – variable weight, use block to avoid showing raw text */ @font-face { font-family: 'Material Symbols Outlined'; font-style: normal; font-weight: 100 700; font-display: block; src: url('/fonts/material-symbols-outlined.woff2') format('woff2'); } .code-viewer-area .line, .code-viewer-area .token-line { display: block; } .code-viewer-area .line { padding: 0 12px; } .code-viewer-area .has-line-numbers .line { padding-left: 12px; } .code-viewer-area .line:hover, .code-viewer-area .token-line:hover { background: var(--color-surface-hover); } .code-viewer-area .has-line-numbers, .code-viewer-area .rs-has-line-numbers { counter-reset: line-number calc(var(--line-start, 1) - 1); --line-numbers-foreground: var(--color-text-tertiary); --line-numbers-width: 2.5ch; --line-numbers-padding-left: 0; --line-numbers-padding-right: 0; --line-numbers-font-size: 11px; --rs-line-numbers-foreground: var(--line-numbers-foreground); --rs-line-numbers-width: var(--line-numbers-width); --rs-line-numbers-padding-left: var(--line-numbers-padding-left); --rs-line-numbers-padding-right: var(--line-numbers-padding-right); --rs-line-numbers-font-size: var(--line-numbers-font-size); } .code-viewer-area .line-numbers::before, .code-viewer-area .rs-line-number::before { content: counter(line-number); counter-increment: line-number; display: inline-flex; justify-content: flex-end; box-sizing: content-box; min-width: var(--rs-line-numbers-width); padding-left: var(--rs-line-numbers-padding-left); padding-right: var(--rs-line-numbers-padding-right); color: var(--rs-line-numbers-foreground); font-size: var(--rs-line-numbers-font-size); user-select: none; pointer-events: none; margin-right: 1.5ch; } .settings-terminal-host .xterm { height: 100%; padding: 0; } .settings-terminal-host .xterm-viewport { scrollbar-color: rgba(215, 210, 208, 0.35) transparent; } .settings-terminal-host .xterm-screen { outline: none; } .settings-zoom-kbd { min-width: 18px; height: 18px; padding: 0 5px; border: 1px solid var(--color-border); border-radius: 5px; background: var(--color-surface-container-lowest); color: var(--color-text-secondary); font-family: var(--font-label); font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; box-shadow: inset 0 -1px 0 rgba(27, 28, 26, 0.08); } .settings-zoom-control { --settings-zoom-range-progress: 33.333%; --settings-zoom-preview-scale: 0.88; --settings-zoom-preview-opacity: 0; --settings-zoom-track-empty: var(--color-surface-container-high); --settings-zoom-thumb-bg: var(--color-surface-container-lowest); --settings-zoom-thumb-border: var(--color-border); --settings-zoom-thumb-shadow: 0 2px 8px rgba(27, 28, 26, 0.16); padding-top: 22px; } [data-theme="dark"] .settings-zoom-control { --settings-zoom-track-empty: var(--color-surface-container-highest); --settings-zoom-thumb-bg: var(--color-surface-bright); --settings-zoom-thumb-border: rgba(255, 181, 159, 0.78); --settings-zoom-thumb-shadow: 0 0 0 3px rgba(255, 181, 159, 0.16), 0 10px 24px rgba(0, 0, 0, 0.5); } .settings-zoom-control.is-dragging { --settings-zoom-preview-scale: 1; --settings-zoom-preview-opacity: 1; } .settings-zoom-range-wrap { position: relative; } .settings-zoom-preview { position: absolute; left: clamp(24px, var(--settings-zoom-range-progress), calc(100% - 24px)); top: -30px; z-index: 1; min-width: 52px; transform: translateX(-50%) scale(var(--settings-zoom-preview-scale)); transform-origin: 50% 100%; border: 1px solid var(--color-surface-glass-border); border-radius: 999px; background: var(--color-surface-glass); padding: 4px 9px; color: var(--color-text-primary); font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; opacity: var(--settings-zoom-preview-opacity); box-shadow: var(--shadow-dropdown); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); pointer-events: none; transition: left 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1); } .settings-zoom-preview::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); border-right: 1px solid var(--color-surface-glass-border); border-bottom: 1px solid var(--color-surface-glass-border); background: var(--color-surface-glass); } .settings-zoom-range { appearance: none; display: block; height: 20px; cursor: pointer; background: transparent; accent-color: var(--color-brand); touch-action: none; } .settings-zoom-range:focus { outline: none; } .settings-zoom-range:focus-visible { outline: none; } .settings-zoom-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; border: 1px solid var(--color-border); background: linear-gradient( 90deg, var(--color-brand) 0%, var(--color-brand) var(--settings-zoom-range-progress), var(--settings-zoom-track-empty) var(--settings-zoom-range-progress), var(--settings-zoom-track-empty) 100% ); transition: background 220ms ease, border-color 180ms ease; } .settings-zoom-range::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 999px; border: 1px solid var(--settings-zoom-thumb-border); background: var(--settings-zoom-thumb-bg); box-shadow: var(--settings-zoom-thumb-shadow); transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1); } .settings-zoom-range:hover::-webkit-slider-thumb { border-color: var(--color-border-focus); } .settings-zoom-control.is-dragging .settings-zoom-range::-webkit-slider-thumb { transform: scale(1.18); border-color: var(--color-brand); box-shadow: var(--shadow-dropdown); } .settings-zoom-range:focus-visible::-webkit-slider-thumb { border-color: var(--color-brand); box-shadow: var(--shadow-focus-ring), 0 2px 8px rgba(27, 28, 26, 0.16); } .settings-zoom-range::-moz-range-track { height: 6px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--settings-zoom-track-empty); transition: background 220ms ease, border-color 180ms ease; } .settings-zoom-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--color-brand); } .settings-zoom-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 999px; border: 1px solid var(--settings-zoom-thumb-border); background: var(--settings-zoom-thumb-bg); box-shadow: var(--settings-zoom-thumb-shadow); transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1); } .settings-zoom-control.is-dragging .settings-zoom-range::-moz-range-thumb { transform: scale(1.18); border-color: var(--color-brand); box-shadow: var(--shadow-dropdown); } .settings-zoom-range:focus-visible::-moz-range-thumb { border-color: var(--color-brand); box-shadow: var(--shadow-focus-ring), 0 2px 8px rgba(27, 28, 26, 0.16); } @media (prefers-reduced-motion: reduce) { .settings-zoom-preview, .settings-zoom-range::-webkit-slider-runnable-track, .settings-zoom-range::-webkit-slider-thumb, .settings-zoom-range::-moz-range-track, .settings-zoom-range::-moz-range-thumb { transition-duration: 0.01ms !important; } } /* ─── Tailwind Theme Override (matches prototype design system) ─── */ @theme { --color-primary: #8F482F; --color-primary-container: #AD5F45; --color-primary-fixed: #FFDBD0; --color-primary-fixed-dim: #FFB59D; --color-on-primary: #FFFFFF; --color-on-surface: #1B1C1A; --color-on-surface-variant: #54433E; --color-surface: #FAF9F5; --color-surface-bright: #FAF9F5; --color-surface-dim: #DBDAD6; --color-surface-container: #EFEEEA; --color-surface-container-low: #F4F4F0; --color-surface-container-high: #E9E8E4; --color-surface-container-highest: #E3E2DF; --color-surface-container-lowest: #FFFFFF; --color-surface-variant: #E3E2DF; --color-background: #FAF9F5; --color-outline: #87736D; --color-outline-variant: #DAC1BA; --color-secondary: #2D628F; --color-secondary-container: #9ACBFE; --color-tertiary: #4F6237; --color-tertiary-container: #677B4E; --color-error: #BA1A1A; --color-error-container: #FFDAD6; --color-on-error-container: #410002; --color-inverse-surface: #2F312E; --color-inverse-on-surface: #F2F1ED; --color-inverse-primary: #FFB59D; --color-success: #16A34A; --color-success-container: #E8F5E2; --color-info: #2D628F; --color-info-container: #E4F1FF; --color-warning: #CA8A04; --color-warning-container: #FFF3D6; --font-headline: 'Manrope', sans-serif; --font-body: 'Inter', sans-serif; --font-label: 'Inter', sans-serif; --font-mono: 'JetBrains Mono', monospace; } /* ─── Semantic Aliases (used by layout & infrastructure components) ── */ :root, [data-theme="light"] { color-scheme: light; /* Layout dimensions */ --sidebar-width: 280px; --sidebar-rail-width: 72px; --titlebar-height: 40px; --statusbar-height: 36px; --motion-sidebar-duration: 280ms; --motion-sidebar-easing: cubic-bezier(0.22, 1, 0.36, 1); /* Surface aliases */ --color-surface-sidebar: var(--color-surface-container-low); --color-surface-hover: var(--color-surface-container-high); --color-surface-selected: var(--color-surface-container); --color-memory-accent: #3B7068; --color-memory-surface: #F6FAF8; --color-memory-border: #BCCDC8; --color-memory-icon-bg: #F3F8F7; --color-goal-accent: var(--color-memory-accent); --color-goal-surface: var(--color-memory-surface); --color-goal-border: var(--color-memory-border); --color-goal-icon-bg: var(--color-memory-icon-bg); --color-goal-chip-bg: var(--color-surface); --color-goal-chip-border: var(--color-border); --color-model-option-selected-bg: var(--color-primary-fixed); --color-model-option-selected-border: rgba(143, 72, 47, 0.2); --color-activity-heat-0: var(--color-surface-container); --color-activity-heat-1: #FBE9E2; --color-activity-heat-2: var(--color-primary-fixed); --color-activity-heat-3: var(--color-primary-fixed-dim); --color-activity-heat-4: var(--color-primary); --color-activity-cell-border: rgba(135, 115, 109, 0.3); --color-activity-cell-border-hover: rgba(143, 72, 47, 0.58); --color-activity-cell-border-active: var(--color-text-primary); --shadow-activity-cell-hover: 0 0 0 2px rgba(143, 72, 47, 0.12), 0 8px 18px rgba(65, 54, 48, 0.16); --color-activity-tooltip-surface: #2F312E; --color-activity-tooltip-border: rgba(255, 255, 255, 0.12); --color-activity-tooltip-text: #F2F1ED; --color-activity-tooltip-muted: #FFB59D; --color-success-container: #E8F5E2; --color-info: #2D628F; --color-info-container: #E4F1FF; --color-warning-container: #FFF3D6; --color-inspector-surface: #FBFAF6; --color-inspector-panel: #F4F2ED; --color-inspector-chip: #EBE7DF; --color-inspector-border: #D8B3A8; --color-inspector-accent: #8F3217; --color-inspector-accent-hover: #5B1E0D; --color-inspector-accent-secondary: #0F5C8F; --color-inspector-text: #1F1713; --color-inspector-heading: #2B1B15; --color-inspector-muted: #7B665F; --color-inspector-muted-strong: #5F514C; --color-inspector-success: #25451B; --color-inspector-success-bg: #D8F2B6; --color-inspector-danger: #C51616; --color-inspector-danger-bg: #FFD9D3; --color-inspector-danger-surface: #FFF7F5; --color-inspector-danger-border: #F1B8B0; --color-inspector-capacity: #9B928C; --shadow-inspector: 0 28px 80px rgba(65, 54, 48, 0.22); --color-switch-checked-bg: #90C1F7; --color-switch-thumb: #FFFFFF; --color-sidebar-filter-bg: transparent; --color-sidebar-filter-border: rgba(218, 193, 186, 0.92); --color-sidebar-filter-icon-bg: transparent; --color-sidebar-search-bg: rgba(255, 255, 255, 0.78); --color-sidebar-search-border: rgba(218, 193, 186, 0.88); --color-sidebar-item-hover: rgba(239, 238, 234, 0.82); --color-sidebar-item-active: rgba(239, 238, 234, 0.94); --color-sidebar-item-active-border: rgba(143, 72, 47, 0.12); --sidebar-panel-bg-image: none; /* Border aliases */ --color-border: var(--color-outline-variant); --color-border-focus: #8B98A7; --color-border-separator: var(--color-outline-variant); /* Text aliases */ --color-text-primary: var(--color-on-surface); --color-text-secondary: var(--color-on-surface-variant); --color-text-tertiary: var(--color-outline); /* Info surface (for team status bar, notifications) */ --color-surface-info: var(--color-surface-container-low); /* Brand & accents */ --color-brand: var(--color-primary); --color-text-accent: var(--color-secondary); /* Shadows */ --shadow-dropdown: 0 4px 20px rgba(27, 28, 26, 0.04), 0 12px 40px rgba(27, 28, 26, 0.08); --shadow-sidebar-filter: none; --shadow-focus-ring: 0 0 0 1px rgba(143, 72, 47, 0.16); --shadow-error-ring: 0 0 0 1px rgba(186, 26, 26, 0.18); --shadow-button-primary: 0 8px 24px rgba(143, 72, 47, 0.18); /* Button colors */ --color-btn-primary-fg: var(--color-on-primary); --gradient-btn-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-container)); --gradient-btn-primary-hover: linear-gradient(135deg, var(--color-primary-container), var(--color-primary)); /* User message bubble */ --color-surface-user-msg: var(--color-surface-container); /* Glass / overlays */ --color-overlay-scrim: rgba(27, 28, 26, 0.48); --color-surface-glass: rgba(255, 255, 255, 0.84); --color-surface-glass-border: rgba(218, 193, 186, 0.22); /* Code + diff */ --color-code-bg: #FDFCF9; --color-code-fg: #24201E; --color-code-comment: #5C6B7A; --color-code-string: #437220; --color-code-keyword: #B8533B; --color-code-function: #1D5A8C; --color-code-number: #1B7A6A; --color-code-property: #7A3E20; --color-code-type: #7E5520; --color-code-parameter: #5C3D2E; --color-code-punctuation: #5C504A; --color-code-inserted: #1A7F37; --color-code-deleted: #CF222E; --color-diff-added-bg: #E8F5E2; --color-diff-added-word: #B8E4A8; --color-diff-added-gutter: #D4EDCA; --color-diff-added-text: #1A7F37; --color-diff-removed-bg: #FDECEA; --color-diff-removed-word: #F5B8B4; --color-diff-removed-gutter: #F9D4D0; --color-diff-removed-text: #CF222E; --color-diff-highlight-bg: #FFF5D6; --color-diff-highlight-gutter: #FFECB3; --color-diff-title-bg: #F4F4F0; --color-diff-title-color: #87736D; --color-diff-title-border: #DAC1BA; /* Terminal */ --color-terminal-header: #2D2D2D; --color-terminal-bg: #1E1E1E; --color-terminal-border: #1A1A1A; --color-terminal-fg: #D4D4D4; --color-terminal-muted: #999999; --color-terminal-accent: #28C840; --color-terminal-danger: #FF5F57; --color-terminal-warning: #FEBC2E; /* Misc */ --color-window-close-hover: #E81123; --color-selection-bg: rgba(255, 219, 208, 0.9); --color-selection-fg: #390C00; --color-text-secondary-a72: rgba(84, 67, 62, 0.72); --color-text-secondary-a68: rgba(84, 67, 62, 0.68); --color-text-primary-a88: rgba(27, 28, 26, 0.88); --color-text-primary-a82: rgba(27, 28, 26, 0.82); --color-text-primary-a78: rgba(27, 28, 26, 0.78); --color-surface-hover-a34: rgba(233, 232, 228, 0.34); --color-surface-hover-a54: rgba(233, 232, 228, 0.54); --color-outline-a72: rgba(135, 115, 109, 0.72); --color-outline-a78: rgba(135, 115, 109, 0.78); --color-outline-a92: rgba(135, 115, 109, 0.92); /* Radii */ --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 9999px; } [data-theme="white"] { color-scheme: light; --color-primary: #8F482F; --color-primary-container: #AD5F45; --color-primary-fixed: #FFDBD0; --color-primary-fixed-dim: #FFB59D; --color-on-primary: #FFFFFF; --color-on-surface: #111827; --color-on-surface-variant: #4B5563; --color-surface: #FFFFFF; --color-surface-bright: #FFFFFF; --color-surface-dim: #EFF3F6; --color-surface-container: #F6F8FA; --color-surface-container-low: #F9FAFB; --color-surface-container-high: #EEF2F6; --color-surface-container-highest: #E6EBF0; --color-surface-container-lowest: #FFFFFF; --color-surface-variant: #EDF1F5; --color-background: #FFFFFF; --color-outline: #8B98A7; --color-outline-variant: #DDE3EA; --color-secondary: #2D628F; --color-secondary-container: #D9ECFF; --color-tertiary: #4F6237; --color-tertiary-container: #E2F1D1; --color-error: #B42318; --color-error-container: #FEE4E2; --color-on-error-container: #7A271A; --color-inverse-surface: #111827; --color-inverse-on-surface: #F9FAFB; --color-inverse-primary: #FFB59D; --color-success: #087E4F; --color-success-container: #DCFAE6; --color-info: #0F5C8F; --color-info-container: #D9ECFF; --color-warning: #B54708; --color-warning-container: #FEF0C7; --color-surface-sidebar: #F1F4F7; --color-surface-hover: #F2F5F8; --color-surface-selected: #E9EEF3; --color-memory-accent: #0F766E; --color-memory-surface: #F3F8F7; --color-memory-border: #AECBC9; --color-memory-icon-bg: #EDF7F6; --color-goal-accent: var(--color-memory-accent); --color-goal-surface: var(--color-memory-surface); --color-goal-border: var(--color-memory-border); --color-goal-icon-bg: var(--color-memory-icon-bg); --color-goal-chip-bg: var(--color-surface); --color-goal-chip-border: var(--color-border); --color-model-option-selected-bg: #FFF0EA; --color-model-option-selected-border: rgba(143, 72, 47, 0.2); --color-activity-heat-0: #EEF2F6; --color-activity-heat-1: #FFF0EA; --color-activity-heat-2: var(--color-primary-fixed); --color-activity-heat-3: var(--color-primary-fixed-dim); --color-activity-heat-4: var(--color-primary); --color-activity-cell-border: rgba(139, 152, 167, 0.32); --color-activity-cell-border-hover: rgba(143, 72, 47, 0.55); --color-activity-cell-border-active: var(--color-text-primary); --shadow-activity-cell-hover: 0 0 0 2px rgba(143, 72, 47, 0.11), 0 8px 18px rgba(15, 23, 42, 0.14); --color-activity-tooltip-surface: #111827; --color-activity-tooltip-border: rgba(255, 255, 255, 0.14); --color-activity-tooltip-text: #F9FAFB; --color-activity-tooltip-muted: #FFB59D; --color-inspector-surface: #FFFFFF; --color-inspector-panel: #F7F9FB; --color-inspector-chip: #EEF3F6; --color-inspector-border: #DDE3EA; --color-inspector-accent: #8F482F; --color-inspector-accent-hover: #6F3420; --color-inspector-accent-secondary: #0F5C8F; --color-inspector-text: #111827; --color-inspector-heading: #0F172A; --color-inspector-muted: #64748B; --color-inspector-muted-strong: #475569; --color-inspector-success: #067647; --color-inspector-success-bg: #DCFAE6; --color-inspector-danger: #B42318; --color-inspector-danger-bg: #FEE4E2; --color-inspector-danger-surface: #FFFFFF; --color-inspector-danger-border: #DDE3EA; --color-inspector-capacity: #94A3B8; --shadow-inspector: 0 28px 80px rgba(15, 23, 42, 0.14); --color-switch-checked-bg: #90C1F7; --color-switch-thumb: #FFFFFF; --color-sidebar-filter-bg: #FFFFFF; --color-sidebar-filter-border: rgba(203, 213, 225, 0.92); --color-sidebar-filter-icon-bg: transparent; --color-sidebar-search-bg: rgba(255, 255, 255, 0.9); --color-sidebar-search-border: rgba(203, 213, 225, 0.88); --color-sidebar-item-hover: rgba(255, 255, 255, 0.78); --color-sidebar-item-active: rgba(255, 255, 255, 0.94); --color-sidebar-item-active-border: rgba(143, 72, 47, 0.16); --sidebar-panel-bg-image: none; --color-border: #DDE3EA; --color-border-focus: var(--color-primary); --color-border-separator: #E5EAF0; --color-text-primary: var(--color-on-surface); --color-text-secondary: var(--color-on-surface-variant); --color-text-tertiary: #7B8794; --color-surface-info: #F6F8FA; --color-brand: var(--color-primary); --color-text-accent: var(--color-secondary); --shadow-dropdown: 0 8px 24px rgba(15, 23, 42, 0.06), 0 24px 60px rgba(15, 23, 42, 0.08); --shadow-sidebar-filter: 0 1px 2px rgba(15, 23, 42, 0.04); --shadow-focus-ring: 0 0 0 1px rgba(139, 152, 167, 0.42), 0 0 0 4px rgba(221, 227, 234, 0.56); --shadow-error-ring: 0 0 0 1px rgba(180, 35, 24, 0.22), 0 0 0 4px rgba(254, 228, 226, 0.86); --shadow-button-primary: 0 10px 24px rgba(143, 72, 47, 0.18); --color-btn-primary-fg: var(--color-on-primary); --gradient-btn-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-container)); --gradient-btn-primary-hover: linear-gradient(135deg, var(--color-primary-container), var(--color-primary)); --color-surface-user-msg: #F1F4F7; --color-overlay-scrim: rgba(15, 23, 42, 0.42); --color-surface-glass: rgba(255, 255, 255, 0.94); --color-surface-glass-border: rgba(203, 213, 225, 0.72); --color-code-bg: #FAFBFC; --color-code-fg: #1F2937; --color-code-comment: #6B7280; --color-code-string: #16794C; --color-code-keyword: #B42318; --color-code-function: #1D4ED8; --color-code-number: #0F766E; --color-code-property: #92400E; --color-code-type: #6D28D9; --color-code-parameter: #334155; --color-code-punctuation: #64748B; --color-code-inserted: #067647; --color-code-deleted: #B42318; --color-diff-added-bg: #ECFDF3; --color-diff-added-word: #ABEFC6; --color-diff-added-gutter: #D1FADF; --color-diff-added-text: #067647; --color-diff-removed-bg: #FEF3F2; --color-diff-removed-word: #FECDCA; --color-diff-removed-gutter: #FEE4E2; --color-diff-removed-text: #B42318; --color-diff-highlight-bg: #FFFAEB; --color-diff-highlight-gutter: #FEF0C7; --color-diff-title-bg: #F6F8FA; --color-diff-title-color: #667085; --color-diff-title-border: #DDE3EA; --color-terminal-header: #1F2937; --color-terminal-bg: #111827; --color-terminal-border: #0F172A; --color-terminal-fg: #E5E7EB; --color-terminal-muted: #9CA3AF; --color-terminal-accent: #32D583; --color-terminal-danger: #F97066; --color-terminal-warning: #FDB022; --color-window-close-hover: #E5484D; --color-selection-bg: rgba(255, 219, 208, 0.9); --color-selection-fg: #390C00; --color-text-secondary-a72: rgba(75, 85, 99, 0.72); --color-text-secondary-a68: rgba(75, 85, 99, 0.68); --color-text-primary-a88: rgba(17, 24, 39, 0.88); --color-text-primary-a82: rgba(17, 24, 39, 0.82); --color-text-primary-a78: rgba(17, 24, 39, 0.78); --color-surface-hover-a34: rgba(241, 244, 247, 0.34); --color-surface-hover-a54: rgba(241, 244, 247, 0.54); --color-outline-a72: rgba(139, 152, 167, 0.72); --color-outline-a78: rgba(139, 152, 167, 0.78); --color-outline-a92: rgba(139, 152, 167, 0.92); } [data-theme="dark"] { color-scheme: dark; --color-primary: #FFB59F; --color-primary-container: #FF6E40; --color-primary-fixed: #FFD9CF; --color-primary-fixed-dim: #FFB59F; --color-on-primary: #2C120B; --color-on-surface: #E5E2E1; --color-on-surface-variant: #B7AAA5; --color-surface: #131313; --color-surface-bright: #201F1F; --color-surface-dim: #0E0E0E; --color-surface-container: #201F1F; --color-surface-container-low: #1C1B1B; --color-surface-container-high: #2A2929; --color-surface-container-highest: #353534; --color-surface-container-lowest: #0E0E0E; --color-surface-variant: #252120; --color-background: #0E0E0E; --color-outline: #8D7F7A; --color-outline-variant: #5A4138; --color-secondary: #CDBDFF; --color-secondary-container: #3A3050; --color-tertiary: #00DAF3; --color-tertiary-container: #003D44; --color-error: #FFB4AB; --color-error-container: #93000A; --color-on-error-container: #FFDAD6; --color-inverse-surface: #E5E2E1; --color-inverse-on-surface: #1B1C1A; --color-inverse-primary: #8F482F; --color-success: #7EDB8B; --color-success-container: rgba(126, 219, 139, 0.16); --color-info: #74E0F7; --color-info-container: rgba(116, 224, 247, 0.16); --color-warning: #F7C46C; --color-warning-container: rgba(247, 196, 108, 0.16); --color-surface-sidebar: #171615; --color-surface-hover: var(--color-surface-container-highest); --color-surface-selected: var(--color-surface-container); --color-memory-accent: #7DD3C7; --color-memory-surface: #1D2423; --color-memory-border: #334743; --color-memory-icon-bg: #22302E; --color-goal-accent: var(--color-memory-accent); --color-goal-surface: var(--color-memory-surface); --color-goal-border: var(--color-memory-border); --color-goal-icon-bg: var(--color-memory-icon-bg); --color-goal-chip-bg: var(--color-surface-container-low); --color-goal-chip-border: var(--color-border); --color-model-option-selected-bg: rgba(255, 181, 159, 0.13); --color-model-option-selected-border: rgba(255, 181, 159, 0.34); --color-activity-heat-0: #242322; --color-activity-heat-1: #3A2823; --color-activity-heat-2: #674032; --color-activity-heat-3: #A76549; --color-activity-heat-4: var(--color-primary); --color-activity-cell-border: rgba(229, 226, 225, 0.08); --color-activity-cell-border-hover: rgba(255, 181, 159, 0.58); --color-activity-cell-border-active: #FBE7E1; --shadow-activity-cell-hover: 0 0 0 2px rgba(255, 181, 159, 0.16), 0 8px 18px rgba(0, 0, 0, 0.34); --color-activity-tooltip-surface: #F2F1ED; --color-activity-tooltip-border: rgba(255, 181, 159, 0.36); --color-activity-tooltip-text: #1B1C1A; --color-activity-tooltip-muted: #8F482F; --color-inspector-surface: #131211; --color-inspector-panel: #1C1B1B; --color-inspector-chip: #252120; --color-inspector-border: rgba(255, 181, 159, 0.18); --color-inspector-accent: #FFB59F; --color-inspector-accent-hover: #FFD4C8; --color-inspector-accent-secondary: #74E0F7; --color-inspector-text: #E5E2E1; --color-inspector-heading: #F3D6CC; --color-inspector-muted: #A89A95; --color-inspector-muted-strong: #C5B8B2; --color-inspector-success: #7EDB8B; --color-inspector-success-bg: rgba(126, 219, 139, 0.16); --color-inspector-danger: #FFB4AB; --color-inspector-danger-bg: rgba(255, 180, 171, 0.16); --color-inspector-danger-surface: rgba(255, 180, 171, 0.08); --color-inspector-danger-border: rgba(255, 180, 171, 0.22); --color-inspector-capacity: #8F8683; --shadow-inspector: 0 28px 80px rgba(0, 0, 0, 0.58); --color-switch-checked-bg: rgba(116, 224, 247, 0.36); --color-switch-thumb: #E5E2E1; --color-sidebar-filter-bg: rgba(255, 255, 255, 0.01); --color-sidebar-filter-border: rgba(255, 255, 255, 0.08); --color-sidebar-filter-icon-bg: transparent; --color-sidebar-search-bg: rgba(255, 255, 255, 0.03); --color-sidebar-search-border: rgba(255, 255, 255, 0.06); --color-sidebar-item-hover: rgba(255, 255, 255, 0.04); --color-sidebar-item-active: rgba(255, 255, 255, 0.06); --color-sidebar-item-active-border: rgba(255, 181, 159, 0.14); --sidebar-panel-bg-image: radial-gradient(circle at top left, rgba(255, 181, 159, 0.045), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)); --color-border: rgba(90, 65, 56, 0.18); --color-border-focus: rgba(255, 181, 159, 0.55); --color-border-separator: rgba(90, 65, 56, 0.12); --color-text-primary: var(--color-on-surface); --color-text-secondary: var(--color-on-surface-variant); --color-text-tertiary: #8F827D; --color-surface-info: rgba(32, 31, 31, 0.88); --color-brand: var(--color-primary); --color-text-accent: var(--color-tertiary); --shadow-dropdown: 0 16px 40px rgba(0, 0, 0, 0.42); --shadow-sidebar-filter: none; --shadow-focus-ring: 0 0 0 1px rgba(255, 181, 159, 0.32); --shadow-error-ring: 0 0 0 1px rgba(255, 180, 171, 0.26); --shadow-button-primary: 0 12px 24px rgba(255, 110, 64, 0.18); --gradient-btn-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-container)); --gradient-btn-primary-hover: linear-gradient(135deg, var(--color-primary-container), var(--color-primary)); --color-surface-user-msg: rgba(32, 31, 31, 0.92); --color-overlay-scrim: rgba(6, 6, 6, 0.56); --color-surface-glass: rgba(32, 31, 31, 0.8); --color-surface-glass-border: rgba(90, 65, 56, 0.18); --color-code-bg: #0E0E0E; --color-code-fg: #E5E2E1; --color-code-comment: #8F8683; --color-code-string: #88C988; --color-code-keyword: #FF8F70; --color-code-function: #00DAF3; --color-code-number: #74E0F7; --color-code-property: #FFC9B8; --color-code-type: #CDBDFF; --color-code-parameter: #E5E2E1; --color-code-punctuation: #9B908C; --color-code-inserted: #8EEA9A; --color-code-deleted: #FFB59F; --color-diff-added-bg: rgba(126, 219, 139, 0.12); --color-diff-added-word: rgba(126, 219, 139, 0.22); --color-diff-added-gutter: rgba(126, 219, 139, 0.18); --color-diff-added-text: #8EEA9A; --color-diff-removed-bg: rgba(255, 110, 64, 0.12); --color-diff-removed-word: rgba(255, 110, 64, 0.24); --color-diff-removed-gutter: rgba(255, 110, 64, 0.18); --color-diff-removed-text: #FFB59F; --color-diff-highlight-bg: rgba(205, 189, 255, 0.12); --color-diff-highlight-gutter: rgba(205, 189, 255, 0.16); --color-diff-title-bg: var(--color-surface-container-low); --color-diff-title-color: var(--color-text-tertiary); --color-diff-title-border: rgba(90, 65, 56, 0.15); --color-terminal-header: #242323; --color-terminal-bg: #121212; --color-terminal-border: #1A1919; --color-terminal-fg: #D7D2D0; --color-terminal-muted: #8F8683; --color-terminal-accent: #7EF18A; --color-terminal-danger: #FF6D67; --color-terminal-warning: #F8C55F; --color-window-close-hover: #C63B44; --color-selection-bg: rgba(255, 181, 159, 0.32); --color-selection-fg: #FBE7E1; --color-text-secondary-a72: rgba(183, 170, 165, 0.72); --color-text-secondary-a68: rgba(183, 170, 165, 0.68); --color-text-primary-a88: rgba(229, 226, 225, 0.88); --color-text-primary-a82: rgba(229, 226, 225, 0.82); --color-text-primary-a78: rgba(229, 226, 225, 0.78); --color-surface-hover-a34: rgba(53, 53, 52, 0.34); --color-surface-hover-a54: rgba(53, 53, 52, 0.54); --color-outline-a72: rgba(141, 127, 122, 0.72); --color-outline-a78: rgba(141, 127, 122, 0.78); --color-outline-a92: rgba(141, 127, 122, 0.92); } /* ─── Material Symbols ─────────────────────────────────────────── */ .material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; } /* ─── Base styles ──────────────────────────────────────────────── */ * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; padding: 0; font-family: var(--font-body); color: var(--color-on-surface); background-color: var(--color-background); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } ::selection { background: var(--color-selection-bg); color: var(--color-selection-fg); } /* Tauri drag region */ [data-tauri-drag-region] { -webkit-app-region: drag; } button, input, textarea, select, a, [role="button"] { -webkit-app-region: no-drag; } [draggable="true"] { -webkit-app-region: no-drag; } .tab-bar-hit-area, .tab-bar-hit-area * { -webkit-app-region: no-drag; } /* Custom shadow from prototype */ .custom-shadow { box-shadow: var(--shadow-dropdown); } .glass-panel { background: var(--color-surface-glass); border: 1px solid var(--color-surface-glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-dropdown); } .glass-panel:focus-within { box-shadow: var(--shadow-focus-ring), var(--shadow-dropdown); } .composer-drop-target-active { border-color: var(--color-border-focus); box-shadow: var(--shadow-focus-ring), var(--shadow-dropdown); } .composer-drop-overlay { animation: composer-drop-fade 140ms ease-out, composer-drop-pulse 1.1s ease-in-out infinite; } @media (prefers-reduced-motion: reduce) { .composer-drop-overlay { animation: none; } } .app-shell-viewport { min-height: 100vh; min-height: 100dvh; height: 100vh; height: 100dvh; } .app-shell { position: relative; width: 100%; overflow-x: hidden; } .app-shell-backdrop { background: var(--color-overlay-scrim); } .sidebar-shell { width: var(--sidebar-width); flex-shrink: 0; overflow: hidden; transition: width var(--motion-sidebar-duration) var(--motion-sidebar-easing); will-change: width; } .sidebar-shell[data-state="closed"] { width: var(--sidebar-rail-width); } .app-shell--mobile .sidebar-shell { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(88vw, var(--sidebar-width)); max-width: var(--sidebar-width); overflow: visible; transform: translateX(-100%); transition: transform var(--motion-sidebar-duration) var(--motion-sidebar-easing), width var(--motion-sidebar-duration) var(--motion-sidebar-easing); } .app-shell--mobile .sidebar-shell[data-state="closed"] { pointer-events: none; } .app-shell--mobile .sidebar-shell[data-state="open"] { transform: translateX(0); pointer-events: auto; } .sidebar-panel { width: var(--sidebar-width); min-width: var(--sidebar-width); background-image: var(--sidebar-panel-bg-image); background-repeat: no-repeat; transition: background-color var(--motion-sidebar-duration) var(--motion-sidebar-easing), border-color var(--motion-sidebar-duration) var(--motion-sidebar-easing); } .sidebar-panel[data-state="closed"] { width: var(--sidebar-rail-width); min-width: var(--sidebar-rail-width); } .app-shell--mobile .sidebar-panel, .app-shell--mobile .sidebar-panel[data-state="closed"] { width: min(88vw, var(--sidebar-width)); min-width: min(88vw, var(--sidebar-width)); box-shadow: var(--shadow-dropdown); } .sidebar-toggle-button { color: var(--color-text-secondary-a72); background: transparent; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; border: 0; box-shadow: none; } .sidebar-toggle-button:hover { color: var(--color-text-primary-a88); background: var(--color-surface-hover-a34); } .sidebar-toggle-button:active { transform: translateY(0.5px); background: var(--color-surface-hover-a54); } .sidebar-toggle-button--open { color: var(--color-text-secondary-a68); } .sidebar-toggle-button--open:hover { color: var(--color-text-primary-a82); } .sidebar-toggle-button--collapsed { color: var(--color-text-primary-a78); } .sidebar-toggle-button--collapsed:hover { color: var(--color-text-primary); } .sidebar-toggle-button--collapsed:active { } .sidebar-toggle-icon { overflow: visible; } .sidebar-toggle-chevron { stroke: currentColor; transition: opacity 180ms ease, transform 180ms ease; vector-effect: non-scaling-stroke; } .sidebar-toggle-chevron { opacity: 0.95; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.85; transform-origin: 50% 50%; } .sidebar-toggle-icon--open .sidebar-toggle-chevron { transform: translateX(-0.2px); } .sidebar-toggle-button--collapsed .sidebar-toggle-chevron { stroke-width: 2; transform: translateX(0.4px); } .sidebar-copy { overflow: hidden; white-space: nowrap; transition: max-width var(--motion-sidebar-duration) var(--motion-sidebar-easing), opacity calc(var(--motion-sidebar-duration) - 40ms) ease, transform var(--motion-sidebar-duration) var(--motion-sidebar-easing); } .sidebar-copy--visible { max-width: 240px; opacity: 1; transform: translateX(0); } .sidebar-copy--hidden { max-width: 0; opacity: 0; transform: translateX(-10px); } .sidebar-section { overflow: hidden; transition: max-height var(--motion-sidebar-duration) var(--motion-sidebar-easing), opacity calc(var(--motion-sidebar-duration) - 40ms) ease, transform var(--motion-sidebar-duration) var(--motion-sidebar-easing); } .sidebar-section--visible { max-height: 1200px; opacity: 1; transform: translateX(0); } .sidebar-section--hidden { max-height: 0; opacity: 0; transform: translateX(-12px); pointer-events: none; } @media (prefers-reduced-motion: reduce) { .sidebar-shell, .sidebar-panel, .sidebar-copy, .sidebar-section { transition-duration: 0.01ms !important; } } @media (max-width: 767px) { .app-shell-main--mobile { width: 100%; min-width: 0; overflow-x: hidden; } } .markdown-prose .md-table-wrap table { border-collapse: separate; border-spacing: 0; } .markdown-prose { --tw-prose-body: var(--color-text-primary); --tw-prose-headings: var(--color-text-primary); --tw-prose-lead: var(--color-text-secondary); --tw-prose-links: var(--color-text-accent); --tw-prose-bold: var(--color-text-primary); --tw-prose-counters: var(--color-text-tertiary); --tw-prose-bullets: var(--color-text-tertiary); --tw-prose-hr: var(--color-border); --tw-prose-quotes: var(--color-text-primary); --tw-prose-quote-borders: var(--color-outline-variant); --tw-prose-captions: var(--color-text-secondary); --tw-prose-kbd: var(--color-text-secondary); --tw-prose-code: var(--color-code-fg); --tw-prose-pre-code: var(--color-code-fg); --tw-prose-pre-bg: var(--color-code-bg); --tw-prose-th-borders: var(--color-border); --tw-prose-td-borders: var(--color-border); } .markdown-prose .md-table-wrap tbody tr:last-child td { border-bottom: 0; } .markdown-prose a code { color: inherit; } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--color-outline); border-radius: 9999px; opacity: 0.3; } ::-webkit-scrollbar-thumb:hover { opacity: 0.6; } .sidebar-scroll-area { padding-bottom: 72px; scrollbar-width: thin; scrollbar-color: var(--color-outline-a72) transparent; } .sidebar-settings-dock { z-index: 30; background-color: var(--color-surface-sidebar); background-image: var(--sidebar-panel-bg-image); background-repeat: no-repeat; background-position: left bottom; } .sidebar-scroll-area::-webkit-scrollbar { width: 4px; } .sidebar-scroll-area::-webkit-scrollbar-track { background: transparent; } .sidebar-scroll-area::-webkit-scrollbar-thumb { background: var(--color-outline-a78); border-radius: 9999px; } .sidebar-scroll-area::-webkit-scrollbar-thumb:hover { background: var(--color-outline-a92); } .activity-heat-cell { position: relative; transform: translateZ(0); transform-origin: center; transition: border-color 150ms ease, box-shadow 180ms ease, filter 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1); } .activity-heat-cell:hover, .activity-heat-cell:focus-visible, .activity-heat-cell.is-active { z-index: 1; transform: translateZ(0) scale(1.16); box-shadow: var(--shadow-activity-cell-hover); filter: saturate(1.08); } @media (prefers-reduced-motion: reduce) { .activity-heat-cell { transition-duration: 0.01ms !important; } .activity-heat-cell:hover, .activity-heat-cell:focus-visible, .activity-heat-cell.is-active { transform: translateZ(0); } } /* Animations */ @keyframes shimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } } @keyframes spin { to { transform: rotate(360deg); } } @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } @keyframes activity-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes composer-drop-fade { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: scale(1); } } @keyframes composer-drop-pulse { 0%, 100% { opacity: 0.96; } 50% { opacity: 1; } } .animate-shimmer { animation: shimmer 1.5s ease-in-out infinite; } .animate-spin { animation: spin 1s linear infinite; } .animate-pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; } /* Progress bar */ @keyframes progress-fill { from { width: 0%; } } /* Indeterminate (browser-style) loading bar: a segment that slides across the track */ @keyframes progress-indeterminate { 0% { left: -40%; right: 100%; } 60% { left: 100%; right: -40%; } 100% { left: 100%; right: -40%; } } .progress-indeterminate-track { position: relative; overflow: hidden; } .progress-indeterminate-track::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; right: 100%; background: var(--color-primary); animation: progress-indeterminate 1.1s ease-in-out infinite; } @media (prefers-reduced-motion: reduce) { .progress-indeterminate-track::before { animation: none; left: 0; right: 0; opacity: 0.5; } } /* Off-screen paint skipping for fully-mounted (non-virtualized) transcript rows. WebKit (Tauri WKWebView) paints complex message DOM ~2x slower than Blink and stutters on long worst-case frames; content-visibility lets it skip off-screen rows WITHOUT unmounting or re-measuring them. Measured (Playwright WebKit, 79-msg session): worst frame 279ms -> 18ms, jank 2 -> 0. Only non-virtualized rows get this class — virtualized window items must stay free of content-visibility to avoid the zero-height measurement regression in the virtualizer. */ .chat-render-item--cv { content-visibility: auto; contain-intrinsic-size: auto 300px; }