:root {
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
--font-mono: "Geist Mono", "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
--text-xs: 0.6875rem;
--text-sm: 0.75rem;
--text-base: 0.8125rem;
--text-md: 0.875rem;
--text-lg: 1rem;
--text-xl: 1.25rem;
--space-2: 2px;
--space-4: 4px;
--space-6: 6px;
--space-8: 8px;
--space-10: 10px;
--space-12: 12px;
--space-16: 16px;
--space-20: 20px;
--space-24: 24px;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 12px;
--transition-fast: 0.08s ease;
--transition-medium: 0.15s ease;
--transition-slow: 0.25s ease;
--z-ground: 1;
--z-lifted: 2;
--z-floating: 3;
--z-modal: 10;
--z-tooltip: 20;
--sidebar-width: 52px;
--sidebar-expanded: 240px;
--panel-min: 280px;
--panel-default: 340px;
--commit-panel-width: 340px;
}
:root, [data-theme="dark"] {
color-scheme: dark;
--bg-0: #0e0f13;
--bg-1: #14151a;
--bg-2: #1b1d24;
--bg-3: #23262f;
--bg-4: #2c303b;
--bg-hover: #292d38;
--bg-active: #33384a;
--text-1: #e8eaf0;
--text-2: #a8adb8;
--text-3: #6b7080;
--text-mute: #4a4f5c;
--border-1: #2a2e38;
--border-2: #363b48;
--border-3: #444a58;
--accent: #7c3aed;
--accent-hover: #8b5cf6;
--accent-soft: rgba(124, 58, 237, 0.15);
--accent-text: #c4b5fd;
--safe: #22c55e;
--safe-soft: rgba(34, 197, 94, 0.12);
--safe-text: #86efac;
--warn: #f59e0b;
--warn-soft: rgba(245, 158, 11, 0.12);
--warn-text: #fcd34d;
--danger: #ef4444;
--danger-soft: rgba(239, 68, 68, 0.12);
--danger-text: #fca5a5;
--info: #3b82f6;
--info-soft: rgba(59, 130, 246, 0.12);
--info-text: #93c5fd;
--diff-add-bg: rgba(34, 197, 94, 0.08);
--diff-add-line: rgba(34, 197, 94, 0.18);
--diff-add-text: #86efac;
--diff-del-bg: rgba(239, 68, 68, 0.08);
--diff-del-line: rgba(239, 68, 68, 0.18);
--diff-del-text: #fca5a5;
--diff-hunk-bg: rgba(59, 130, 246, 0.06);
--scrollbar-bg: transparent;
--scrollbar-thumb: #363b48;
--scrollbar-thumb-hover: #444a58;
}
[data-theme="light"] {
color-scheme: light;
--bg-0: #f8f9fb;
--bg-1: #ffffff;
--bg-2: #f3f4f6;
--bg-3: #e8eaed;
--bg-4: #d1d5db;
--bg-hover: #eef0f3;
--bg-active: #e2e5ea;
--text-1: #1a1d24;
--text-2: #4b5060;
--text-3: #7c8294;
--text-mute: #b0b5c0;
--border-1: #e2e5ea;
--border-2: #d1d5db;
--border-3: #b8bcc8;
--accent: #7c3aed;
--accent-hover: #6d28d9;
--accent-soft: rgba(124, 58, 237, 0.08);
--accent-text: #6d28d9;
--safe: #16a34a;
--safe-soft: rgba(22, 163, 74, 0.08);
--safe-text: #15803d;
--warn: #d97706;
--warn-soft: rgba(217, 119, 6, 0.08);
--warn-text: #b45309;
--danger: #dc2626;
--danger-soft: rgba(220, 38, 38, 0.08);
--danger-text: #b91c1c;
--info: #2563eb;
--info-soft: rgba(37, 99, 235, 0.08);
--info-text: #1d4ed8;
--diff-add-bg: rgba(22, 163, 74, 0.06);
--diff-add-line: rgba(22, 163, 74, 0.14);
--diff-add-text: #15803d;
--diff-del-bg: rgba(220, 38, 38, 0.06);
--diff-del-line: rgba(220, 38, 38, 0.14);
--diff-del-text: #b91c1c;
--diff-hunk-bg: rgba(37, 99, 235, 0.04);
--scrollbar-bg: transparent;
--scrollbar-thumb: #d1d5db;
--scrollbar-thumb-hover: #b8bcc8;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body, #app {
height: 100%;
overflow: hidden;
font-family: var(--font-sans);
font-size: var(--text-base);
color: var(--text-1);
background: var(--bg-0);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
background: var(--scrollbar-thumb);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--scrollbar-thumb-hover);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
border-radius: var(--radius-sm);
}
::selection {
background: var(--accent-soft);
color: var(--accent-text);
}
button {
font-family: inherit;
font-size: inherit;
cursor: pointer;
border: none;
background: none;
color: inherit;
}
input, textarea {
font-family: inherit;
font-size: inherit;
color: inherit;
background: var(--bg-2);
border: 1px solid var(--border-1);
border-radius: var(--radius-md);
padding: var(--space-6) var(--space-10);
}
input:focus, textarea:focus {
border-color: var(--accent);
outline: none;
}
.mono { font-family: var(--font-mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-mute { color: var(--text-3); }
.text-accent { color: var(--accent-text); }
.text-safe { color: var(--safe-text); }
.text-danger { color: var(--danger-text); }
.text-warn { color: var(--warn-text); }