@import "tailwindcss"; @custom-variant dark (&:is(.dark *)); /* * Design tokens — the single place to restyle the app. * (The owner has a specific visual design planned; it lands here and in * component edits, not in structural changes.) */ :root { --radius: 0.625rem; --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); --card: oklch(1 0 0); --card-foreground: oklch(0.145 0 0); --popover: oklch(1 0 0); --popover-foreground: oklch(0.145 0 0); --primary: oklch(0.205 0 0); --primary-foreground: oklch(0.985 0 0); --secondary: oklch(0.97 0 0); --secondary-foreground: oklch(0.205 0 0); --muted: oklch(0.97 0 0); --muted-foreground: oklch(0.556 0 0); --accent: oklch(0.97 0 0); --accent-foreground: oklch(0.205 0 0); --destructive: oklch(0.577 0.245 27.325); --border: oklch(0.922 0 0); --input: oklch(0.922 0 0); --ring: oklch(0.708 0 0); } .dark { --background: oklch(0.145 0 0); --foreground: oklch(0.985 0 0); --card: oklch(0.205 0 0); --card-foreground: oklch(0.985 0 0); --popover: oklch(0.205 0 0); --popover-foreground: oklch(0.985 0 0); --primary: oklch(0.922 0 0); --primary-foreground: oklch(0.205 0 0); --secondary: oklch(0.269 0 0); --secondary-foreground: oklch(0.985 0 0); --muted: oklch(0.269 0 0); --muted-foreground: oklch(0.708 0 0); --accent: oklch(0.269 0 0); --accent-foreground: oklch(0.985 0 0); --destructive: oklch(0.704 0.191 22.216); --border: oklch(1 0 0 / 10%); --input: oklch(1 0 0 / 15%); --ring: oklch(0.556 0 0); } @theme inline { --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px); --color-background: var(--background); --color-foreground: var(--foreground); --color-card: var(--card); --color-card-foreground: var(--card-foreground); --color-popover: var(--popover); --color-popover-foreground: var(--popover-foreground); --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground); --color-secondary: var(--secondary); --color-secondary-foreground: var(--secondary-foreground); --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground); --color-accent: var(--accent); --color-accent-foreground: var(--accent-foreground); --color-destructive: var(--destructive); --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); } * { border-color: var(--color-border); } body { background: var(--color-background); color: var(--color-foreground); } /* Thin dark native scrollbar (app-wide): dark thumb, transparent track. */ * { scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; } ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 8px; } ::-webkit-scrollbar-thumb:hover { background: var(--color-muted-foreground); } /* Dock variant swap — quick fade/rise on content change; the shell's HEIGHT morph is separate (WAAPI in DockOverlay). Re-applied via class toggling, no remount, so collapsed-question state survives. */ @keyframes dock-variant-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } .dock-variant { animation: dock-variant-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1); } /* ============================================================ * W3 — presentation fixes (appended 2026-08-22) * ============================================================ */ /* Streamdown's internal UI chrome (code blocks, tables, mermaid containers, copy/download buttons) is styled with Tailwind utilities living in its dist * bundle. Tailwind v4 never scans node_modules, so without this line those * classes are dead — code blocks and mermaid containers rendered unstyled. * (Streamdown README, "Tailwind CSS setup".) */ @source "../node_modules/streamdown/dist/*.js"; /* Token the streamdown utilities reference (code-block/mermaid chrome uses * bg-sidebar / border-sidebar): map it onto the app's card surface. */ @theme inline { --color-sidebar: var(--card); } /* Mermaid diagrams: keep wide charts inside the content column. Mermaid * inlines a px max-width on the svg, so !important is required to win. */ [data-streamdown="mermaid"] svg { max-width: 100% !important; height: auto !important; } /* Display math: long equations scroll instead of overflowing the column. */ .katex-display { overflow-x: auto; overflow-y: hidden; } /* ============================================================ * Session status — phase colors + status dots * (picker strips, header chip, transcript dividers: one language) * ============================================================ */ /* Phase colors: blue = probing, violet = planning, green = teaching. Tuned per theme (light needs darker, dark lighter). The attention color (an answer the learner owes) is deliberately outside the phase system — dots and strips are separate channels and must not read as one. */ :root { --phase-probe: oklch(0.55 0.17 253); --phase-plan: oklch(0.54 0.19 300); --phase-teach: oklch(0.55 0.14 160); --attention: oklch(0.62 0.15 65); } .dark { --phase-probe: oklch(0.72 0.13 250); --phase-plan: oklch(0.72 0.14 300); --phase-teach: oklch(0.74 0.12 160); --attention: oklch(0.8 0.15 75); } @theme inline { --color-phase-probe: var(--phase-probe); --color-phase-plan: var(--phase-plan); --color-phase-teach: var(--phase-teach); --color-attention: var(--attention); } /* Status dots (session picker). Attention — a slow expanding ring, drawing the eye to "your move". Working — a quiet breathing dot, opacity only, never loud enough to compete with the attention ring. */ @keyframes lh-dot-attention { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--attention) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 5px transparent; } } .lh-dot-attention { animation: lh-dot-attention 1.6s ease-out infinite; } @keyframes lh-dot-breathe { 0%, 100% { opacity: 0.35; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1); } } .lh-dot-breathe { animation: lh-dot-breathe 1.4s ease-in-out infinite; } @media (prefers-reduced-motion: reduce) { .lh-dot-attention, .lh-dot-breathe { animation: none; } }