/* F7 track-changes preview — theme-aware via VS Code webview CSS variables. */ body { font-family: var(--vscode-font-family); font-size: var(--vscode-font-size); color: var(--vscode-foreground); background: var(--vscode-editor-background); padding: 0 1.2rem 2rem; line-height: 1.5; } #cw-header { position: sticky; top: 0; background: var(--vscode-editor-background); border-bottom: 1px solid var(--vscode-panel-border); padding: 0.5rem 0; font-size: 0.85em; opacity: 0.85; display: flex; gap: 1rem; } #cw-summary .cw-add { color: var(--vscode-gitDecoration-addedResourceForeground); } #cw-summary .cw-del { color: var(--vscode-gitDecoration-deletedResourceForeground); } .cw-blk { position: relative; } ins, .cw-added { background: var(--vscode-diffEditor-insertedTextBackground, rgba(0, 255, 0, 0.15)); text-decoration: none; } del, .cw-removed { background: var(--vscode-diffEditor-removedTextBackground, rgba(255, 0, 0, 0.15)); text-decoration: line-through; opacity: 0.7; } .cw-changed { outline: 2px solid var(--vscode-diffEditor-insertedTextBackground, rgba(0, 255, 0, 0.25)); outline-offset: 2px; } .cw-badge { position: absolute; top: 0; right: 0; font-size: 0.7em; padding: 0 0.4em; border-radius: 3px; background: var(--vscode-badge-background); color: var(--vscode-badge-foreground); } .cw-error { border: 1px solid var(--vscode-inputValidation-errorBorder); background: var(--vscode-inputValidation-errorBackground); color: var(--vscode-errorForeground); padding: 0.3rem 0.6rem; border-radius: 3px; font-size: 0.85em; } pre.mermaid { text-align: center; background: transparent; } pre.mermaid[data-cw-error] { color: var(--vscode-errorForeground); } /* F9 authorship mode — inline author tints + block-level fence badges + toggle. */ .cw-by-claude { background: var(--vscode-editorInfo-foreground, rgba(64, 120, 242, 0.18)); text-decoration: none; } .cw-by-human { background: var(--vscode-gitDecoration-addedResourceForeground, rgba(46, 160, 67, 0.18)); text-decoration: none; } .cw-blk.cw-by-claude, .cw-blk.cw-by-human, .cw-blk.cw-mixed { outline: 2px solid currentColor; outline-offset: 2px; background: transparent; } .cw-seg { background: transparent; color: var(--vscode-foreground); border: 1px solid var(--vscode-panel-border); padding: 0 0.5em; cursor: pointer; font-size: 0.9em; } .cw-seg:first-child { border-radius: 3px 0 0 3px; } .cw-seg:last-child { border-radius: 0 3px 3px 0; border-left: none; } .cw-seg-on { background: var(--vscode-button-background); color: var(--vscode-button-foreground); } #cw-legend .cw-swatch { padding: 0 0.4em; border-radius: 3px; } /* F7.1 (#22) intra-diagram mermaid diff legend. */ .cw-mermaid-legend { display: flex; gap: 0.6rem; font-size: 0.75em; opacity: 0.85; margin: 0.2rem 0 0.6rem; } .cw-mermaid-legend .cw-leg { padding: 0 0.4em; border-radius: 3px; border: 1px solid; } .cw-mermaid-legend .cw-leg-add { color: #2ea043; border-color: #2ea043; } .cw-mermaid-legend .cw-leg-chg { color: #d29922; border-color: #d29922; } .cw-mermaid-legend .cw-leg-rem { color: #808080; border-color: #808080; border-style: dashed; }