@tailwind base; @tailwind components; @tailwind utilities; /* * Design tokens, ported from src/styles/_variables.scss + tailwind.css * (Tailwind 4 @theme) into plain CSS custom properties for Tailwind 3's * postcss-based build (see tailwind.config.ts). The old stylesheet's * Sass-only mixin in actual use (custom-scrollbar) is * folded in below as .scrollable. Inter, the one type family, * loads via next/font in app/layout.tsx, which sets --font-inter. * * CURRENT SKIN: Co-Lite. Slate neutrals with one blue accent (--primary/--ring #2563EB). * To re-skin for another client, edit the values below; nothing else should * change. */ :root { --radius: 0.5rem; /* Data-table frames share the card radius (8px), as their own token so tables can still move independently of cards. */ --table-radius: 8px; /* The radius scale (tailwind.config.ts reads these). */ --radius-sm: 4px; --radius-md: 6px; --radius-lg: var(--radius); --radius-xl: 12px; --sidebar-width: 240px; --sidebar-width-collapsed: 76px; --header-height: 56px; --content-max-width: 1600px; --background: #F8FAFC; --foreground: #0F172A; --card: #FFFFFF; --card-foreground: #0F172A; --popover: #FFFFFF; --popover-foreground: #0F172A; --primary: #2563EB; --primary-foreground: #FFFFFF; --secondary: #F1F5F9; --secondary-foreground: #0F172A; --muted: #F1F5F9; --muted-foreground: #475569; --accent: #EFF6FF; --accent-foreground: #1D4ED8; --accent-strong: #1D4ED8; --positive: #15803D; --negative: #B91C1C; --warning: #B45309; --destructive: #DC2626; --destructive-foreground: #FFFFFF; --border: #E2E8F0; --input: #7C8BA1; --ring: #2563EB; --chart-1: #2563EB; --chart-2: #0F766E; --chart-3: #D97706; --chart-4: #7C3AED; --chart-5: #E11D48; /* Data-table header row: a slate tint with slate text. Opaque, so a sticky header covers the rows under it. */ --table-head: #F1F5F9; --table-head-foreground: #475569; --sidebar: #FFFFFF; --sidebar-foreground: #0F172A; --sidebar-primary: #2563EB; --sidebar-primary-foreground: #FFFFFF; --sidebar-accent: #EFF6FF; --sidebar-accent-foreground: #1D4ED8; --sidebar-border: #E2E8F0; --sidebar-ring: #2563EB; --shadow-card: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.04); --font-heading: var(--font-sans); --font-sans: var(--font-inter), ui-sans-serif, system-ui, sans-serif; --font-mono: var(--font-sans); } .dark { --background: #020617; --foreground: #F1F5F9; --card: #0F172A; --card-foreground: #F1F5F9; --popover: #0F172A; --popover-foreground: #F1F5F9; --primary: #60A5FA; --primary-foreground: #0B1220; --secondary: #1E293B; --secondary-foreground: #F1F5F9; --muted: #1E293B; --muted-foreground: #94A3B8; --accent: #172554; --accent-foreground: #BFDBFE; --accent-strong: #93C5FD; --positive: #4ADE80; --negative: #F87171; --warning: #FBBF24; --destructive: #F87171; --destructive-foreground: #0B1220; --border: #1E293B; --input: #64748B; --ring: #60A5FA; --chart-1: #60A5FA; --chart-2: #2DD4BF; --chart-3: #FBBF24; --chart-4: #A78BFA; --chart-5: #FB7185; --table-head: #1E293B; --table-head-foreground: #CBD5E1; --sidebar: #0F172A; --sidebar-foreground: #F1F5F9; --sidebar-primary: #60A5FA; --sidebar-primary-foreground: #0B1220; --sidebar-accent: #172554; --sidebar-accent-foreground: #BFDBFE; --sidebar-border: #1E293B; --sidebar-ring: #60A5FA; --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4); } * { border-color: var(--border); } ::selection { background: var(--accent); color: var(--accent-foreground); } html { scrollbar-gutter: stable; } /* Radix's scroll-lock (react-remove-scroll) adds margin-right = scrollbar width to body while an overlay is open. html already reserves that space via scrollbar-gutter, so the margin would compensate twice and shift the page. `html body` outranks the library's `body[...]` selector. */ html body[data-scroll-locked] { margin-right: 0 !important; } body { background-color: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; } h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.015em; } /* every figure, ID and percentage } .tabular { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; } /* * Ported from src/styles/_mixins.scss (custom-scrollbar): a plain class rather than * a Sass mixin, since Tailwind 3's postcss build has no Sass step. Used by * app/components/app/Sidebar.tsx (scrollable nav). */ .scrollable { scrollbar-width: thin; scrollbar-color: var(--border) transparent; } .scrollable::-webkit-scrollbar { width: 8px; height: 8px; } .scrollable::-webkit-scrollbar-track { background: transparent; } .scrollable::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: 8px; } .scrollable::-webkit-scrollbar-thumb:hover { background-color: var(--input); } /* §10: all motion is opt-out. */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } /* Scroll-edge cue: a shadow on a side only while more content is scrollable there. The covers (local) scroll with the content and hide the shadows (scroll) at each end. Covers assume a card backdrop; on the page ground they read as a faint lighter strip. */ [data-slot="table-container"] { background: linear-gradient(to right, var(--card) 40%, transparent) left center / 40px 100% no-repeat local, linear-gradient(to left, var(--card) 40%, transparent) right center / 40px 100% no-repeat local, linear-gradient(to right, color-mix(in srgb, var(--foreground) 18%, transparent), transparent) left center / 20px 100% no-repeat scroll, linear-gradient(to left, color-mix(in srgb, var(--foreground) 18%, transparent), transparent) right center / 20px 100% no-repeat scroll; } /* * Nested radius (owner, 2026-10-28): anything rounded inside a card takes the card's radius minus * the card's padding, never below 8px (outer 16 − padding 4 = inner 12). A card is rounded-xl with * 24px padding, so what it holds lands on the 8px floor; a card inside a card computes from the * already-nested value, so the floor holds at every depth. rounded-full (pills, dots) is untouched. */ [data-slot="card"] { --nest-pad: 1.5rem; --nest-radius: max(8px, calc(var(--radius-xl) - var(--nest-pad))); } [data-slot="card"] > * { --radius-sm: var(--nest-radius); --radius-md: var(--nest-radius); --radius-lg: var(--nest-radius); --radius-xl: var(--nest-radius); --table-radius: var(--nest-radius); }