@import "tailwindcss"; /* Tell Tailwind where to scan for classes */ @source "../ui/components/**/*.tsx"; @source "../ui/hooks/**/*.ts"; @source "./*.tsx"; @source "./components/**/*.tsx"; @import "../ui/theme.css"; /* Code blocks */ pre code.hljs { display: block; padding: 1rem; border-radius: var(--radius); background: var(--code-bg) !important; font-size: 0.8125rem; line-height: 1.6; } /* Fix: hljs markdown grammar applies github-dark token colors that are unreadable in light mode. Emphasis/strong/code tokens use #c9d1d9 or #8b949e which wash out against light backgrounds. Force them to inherit the base code color. */ pre code.hljs .hljs-emphasis { color: inherit !important; font-style: normal !important; } pre code.hljs .hljs-strong { color: inherit !important; } pre code.hljs .hljs-code { color: inherit !important; } /* Light mode code - override hljs dark theme */ .light pre code.hljs { color: oklch(0.25 0.02 260) !important; } .light .hljs-keyword, .light .hljs-selector-tag, .light .hljs-built_in, .light .hljs-name, .light .hljs-tag { color: oklch(0.45 0.25 280) !important; } .light .hljs-string, .light .hljs-title, .light .hljs-section, .light .hljs-attribute, .light .hljs-literal, .light .hljs-template-tag, .light .hljs-template-variable, .light .hljs-type { color: oklch(0.45 0.18 150) !important; } .light .hljs-comment, .light .hljs-quote { color: oklch(0.55 0.02 260) !important; font-style: italic; } .light .hljs-number, .light .hljs-symbol, .light .hljs-bullet { color: oklch(0.50 0.20 50) !important; } .light .hljs-attr, .light .hljs-variable, .light .hljs-template-variable, .light .hljs-class .hljs-title, .light .hljs-function { color: oklch(0.45 0.20 280) !important; } /* Annotation highlights */ .annotation-highlight { border-radius: 2px; padding: 0 2px; margin: 0 -2px; } .annotation-highlight.deletion { background: oklch(from var(--destructive) l c h / 0.35); text-decoration: line-through; text-decoration-color: var(--destructive); text-decoration-thickness: 2px; } .annotation-highlight.comment { background: oklch(0.70 0.18 60 / 0.3); border-bottom: 2px solid var(--accent); } /* Light mode: softer highlights */ .light .annotation-highlight.deletion { background: oklch(0.65 0.22 25 / 0.2); } .light .annotation-highlight.comment { background: oklch(0.70 0.20 60 / 0.15); } .annotation-highlight.focused { background: oklch(from var(--focus-highlight) l c h / 0.45) !important; box-shadow: 0 0 8px oklch(from var(--focus-highlight) l c h / 0.4); border-bottom: 2px solid var(--focus-highlight); filter: none; } .light .annotation-highlight.focused { background: oklch(0.70 0.22 200 / 0.3) !important; box-shadow: 0 0 6px oklch(0.60 0.20 200 / 0.3); } .annotation-highlight:hover { filter: brightness(1.2); cursor: pointer; } /* ======================================== Plan Diff Styles ======================================== */ /* Clean diff view - added content */ .plan-diff-added { border-left: 3px solid var(--success); background: oklch(from var(--success) l c h / 0.06); padding-left: 0.75rem; border-radius: 0 0.25rem 0.25rem 0; margin: 0.25rem 0; } .light .plan-diff-added { background: oklch(from var(--success) l c h / 0.06); } /* Clean diff view - removed content */ .plan-diff-removed { border-left: 3px solid var(--destructive); background: oklch(from var(--destructive) l c h / 0.06); padding-left: 0.75rem; border-radius: 0 0.25rem 0.25rem 0; margin: 0.25rem 0; } .light .plan-diff-removed { background: oklch(from var(--destructive) l c h / 0.06); } /* Clean diff view - modified content (mix of additions and deletions in one block, rendered inline via word-level diff). Deliberate asymmetry with added/removed: add/remove are BLOCK-scope events — the whole block matters, so a loud fill is the right signal. Modify is a WORD-scope event — the words matter, and the inline red-struck / green-highlighted word markers already grab attention. A block-level fill would compete with that inline work; an amber gutter on a normal background says "look inside, the change is in the text" while staying consistent with the green/red/yellow diff convention. */ .plan-diff-modified { border-left: 3px solid oklch(from var(--warning) l c h / 0.75); background: transparent; padding-left: 0.75rem; border-radius: 0 0.25rem 0.25rem 0; margin: 0.25rem 0; } /* Clean diff view - unchanged (dimmed) */ .plan-diff-unchanged { /* handled via opacity in component */ } /* Raw diff view - line styles */ .plan-diff-line-added { background: oklch(from var(--success) l c h / 0.15); color: var(--success); } .plan-diff-line-removed { background: oklch(from var(--destructive) l c h / 0.15); color: var(--destructive); opacity: 0.75; text-decoration: line-through; text-decoration-color: oklch(from var(--destructive) l c h / 0.4); } .light .plan-diff-line-added { background: oklch(from var(--success) l c h / 0.12); } .light .plan-diff-line-removed { background: oklch(from var(--destructive) l c h / 0.12); } /* ======================================== Sidebar ======================================== */ .sidebar-tab-flag { transition: transform 200ms ease, opacity 200ms ease; } .sidebar-tab-flag:hover { transform: translateX(2px); }