:root { /* PLAN-2290 violet refresh — dark is the primary theme. Neutrals are violet-biased; muted text meets WCAG AA on all bg tokens (TASK-2262 C9). */ --bg-primary: #0b0b10; --bg-secondary: #14141b; --bg-tertiary: #1c1c25; /* Elevated overlay surfaces (menus, popovers). Same as tertiary in dark; pure white in light where tertiary is a gray input tone. */ --bg-raised: #1c1c25; --bg-hover: #22222d; --bg-active: #2a2a36; --text-primary: #f0f0f4; --text-secondary: #a9a9b8; --text-muted: #8b8b9c; --border: #262633; --border-subtle: #1d1d27; --border-strong: #4a4a5e; /* Card surface family (consumed app-wide from Phase 3 on). */ --card-bg: #16161f; --card-border: #363648; --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.35); /* Tint strength for Chip/badge fills (color-mix percentage). */ --chip-alpha: 16%; /* Chip TEXT darkening: 100% = raw accent (dark theme); light theme drops to ~72% mixed toward black so small colored labels hold AA. */ --chip-text-mix: 100%; /* Brand accent. --accent-blue is aliased to it because ~95% of its 462 call sites mean "brand accent", not "blue" (see PLAN-2290); the literally-blue categorical sites use --status-blue instead. #9268f8 (not the mock's #8b5cf6): the one violet that passes AA as link text on --bg-secondary (4.85:1) while beating the old blue for white button text (3.78:1 vs 2.75:1). True text-on-fill AA lands with the Phase 2 Button primitive via --text-on-accent. */ --accent-primary: #9268f8; --accent-primary-soft: #a78bfa; /* Filled-control variant: the violet band where white text passes AA (4.96:1) while the fill stays ≥3:1 against --bg-secondary. Used by Button primary fills; links/text keep --accent-primary. */ --accent-primary-strong: #7c4ff0; --accent-blue: var(--accent-primary); --accent-green: #4ade80; --accent-purple: #a78bfa; --accent-amber: #fbbf24; --accent-cyan: #22d3ee; --accent-orange: #fb923c; --accent-gray: #9ca3af; --accent-brown: #a8896c; --accent-red: #ef4444; /* Solid destructive fill — the red where white text passes AA (4.83:1) in both themes. Button variant="danger-solid" (final confirms). */ --accent-red-strong: #dc2626; /* Literal blue for categorical uses (status maps, charts, info badges). Stays blue even if the brand accent changes — see PLAN-2290. */ --status-blue: #4a9eff; /* Text color on accent-filled surfaces (buttons, filled badges). */ --text-on-accent: #ffffff; --status-draft: #666666; --status-active: #4ade80; --status-completed: #4a9eff; --status-archived: #444444; --topbar-height: 44px; --bottom-nav-height: 56px; --context-bar-height: 44px; --sidebar-width: 260px; --detail-panel-width: 300px; --content-max-width: 960px; --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; --font-content: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --radius: 8px; --radius-sm: 5px; --radius-lg: 12px; /* Elevation scale. Values match the long-standing inline fallbacks (ItemActionsMenu/LaneActionsMenu/BoardView/Modal) so defining them is behavior-preserving. Theme-invariant for now — PLAN-2290 PR B may tune per theme. */ --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15); --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3); --modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); --scrim: rgba(0, 0, 0, 0.5); } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; font-family: var(--font-ui); font-size: 14px; line-height: 1.5; color: var(--text-primary); background: var(--bg-primary); -webkit-font-smoothing: antialiased; } a { color: var(--accent-blue); text-decoration: none; } a:hover { text-decoration: underline; } button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; color: inherit; } input, textarea, select { font-family: inherit; font-size: inherit; color: var(--text-primary); background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-2) var(--space-3); outline: none; } input:focus, textarea:focus { border-color: var(--accent-blue); } /* Scrollbar. `width` styles the VERTICAL scrollbar; `height` styles the HORIZONTAL one. Both are needed — without `height` a horizontal scrollbar (e.g. the board-view lane track) falls back to the chunky ~15px browser default while every vertical scrollbar is a thin 6px, which reads as a "weirdly large" scrollbar (BUG-2127 follow-up). Keep them equal. */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } /* Prose styles for rendered markdown */ .prose { font-family: var(--font-content); font-size: 15px; line-height: 1.7; color: var(--text-primary); max-width: var(--content-max-width); } .prose h1 { font-size: 1.8em; margin: 1.2em 0 0.6em; font-weight: 700; } .prose h2 { font-size: 1.4em; margin: 1em 0 0.5em; font-weight: 600; } .prose h3 { font-size: 1.15em; margin: 0.8em 0 0.4em; font-weight: 600; } .prose p { margin: 0.6em 0; } .prose ul, .prose ol { margin: 0.6em 0; padding-left: 1.5em; } .prose li { margin: 0.2em 0; } .prose li input[type="checkbox"] { margin-right: 0.4em; } .prose pre { background: var(--bg-tertiary); padding: var(--space-4); border-radius: var(--radius); overflow-x: auto; margin: 0.8em 0; font-family: var(--font-mono); font-size: 0.9em; line-height: 1.5; } .prose code { background: var(--bg-tertiary); padding: 0.15em 0.4em; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.9em; } .prose pre code { background: none; padding: 0; } .prose blockquote { border-left: 3px solid var(--border); padding-left: var(--space-4); margin: 0.8em 0; color: var(--text-secondary); } .prose table { border-collapse: collapse; width: 100%; margin: 0.8em 0; } .prose th, .prose td { border: 1px solid var(--border); padding: var(--space-2) var(--space-3); text-align: left; } .prose th { background: var(--bg-secondary); font-weight: 600; } .prose hr { border: none; border-top: 1px solid var(--border); margin: 1.5em 0; } .prose img { max-width: 100%; border-radius: var(--radius); } .prose a.doc-link { background: var(--bg-tertiary); padding: 0.1em 0.5em; border-radius: var(--radius-sm); color: var(--accent-blue); font-weight: 500; } .prose a.doc-link:hover { background: var(--bg-hover); text-decoration: none; } .prose .doc-link.broken { color: var(--accent-orange); opacity: 0.7; text-decoration: line-through; } /* External links in rendered markdown */ .prose .external-link { color: var(--accent-blue); text-decoration: none; } .prose .external-link:hover { text-decoration: underline; } .prose .external-icon { font-size: 0.75em; opacity: 0.6; vertical-align: super; } /* Editor link styles — autolinked URLs and wiki-links */ .prose a.editor-link { color: var(--accent-blue); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-blue) 30%, transparent); transition: border-color 0.15s; } .prose a.editor-link:hover { border-bottom-color: var(--accent-blue); } /* Attachment images — both inside the editor and in rendered markdown. Lazy-loaded via the node's renderHTML/NodeView; styles below set a sane default size so the editor doesn't reflow once thumbnails arrive. */ .attachment-image { max-width: 100%; height: auto; border-radius: var(--radius); cursor: zoom-in; display: block; margin: 0.4em 0; } .attachment-image:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-blue) 35%, transparent); } /* Wrapper appended by the AttachmentImage NodeView to host the selection-time rotate toolbar (TASK-879). Position relative so the toolbar can pin to the top-right corner of the image. */ .attachment-image-wrapper { position: relative; display: inline-block; max-width: 100%; } .attachment-image-wrapper.attachment-image-selected .attachment-image { box-shadow: 0 0 0 2px var(--accent-blue); } /* Rotate toolbar — appears when the AttachmentImage node is selected. Pinned top-right with absolute positioning so it doesn't shift the image's layout when toggling visibility. */ .attachment-image-toolbar { position: absolute; top: 8px; right: 8px; display: inline-flex; gap: 2px; padding: 4px; background: rgba(20, 20, 20, 0.85); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); z-index: 5; -webkit-user-select: none; user-select: none; } .attachment-image-toolbar-hidden { display: none; } .attachment-image-toolbar-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; background: transparent; color: #fff; font-size: 18px; line-height: 1; border-radius: 4px; cursor: pointer; transition: background 0.15s, opacity 0.15s; font-family: inherit; } .attachment-image-toolbar-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); } .attachment-image-toolbar-btn:disabled { opacity: 0.4; cursor: not-allowed; } /* Attachment file chips — Notion-style chip rendering for non-image attachments. Used by both the editor's AttachmentChip node and the read-only markdown render path (TASK-874). Styles target the same class names from both surfaces so the visual matches edge to edge. */ /* Two elements share this class: the editor NodeView renders a