| 1 | @import 'tailwindcss'; |
| 2 | |
| 3 | @plugin 'tailwindcss-animate'; |
| 4 | |
| 5 | @custom-variant dark (&:is([data-kb-theme="dark"] *)); |
| 6 | |
| 7 | @utility container { |
| 8 | margin-inline: auto; |
| 9 | padding-inline: 1.25rem; |
| 10 | @media (width >= --theme(--breakpoint-sm)) { |
| 11 | max-width: none; |
| 12 | } |
| 13 | @media (width >= 1280px) { |
| 14 | max-width: 1280px; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | @theme { |
| 19 | --font-sans: |
| 20 | 'Inter Variable', -apple-system, BlinkMacSystemFont, 'SF Pro Text', |
| 21 | 'Helvetica Neue', Helvetica, Arial, sans-serif; |
| 22 | --font-display: |
| 23 | 'Space Grotesk Variable', 'Inter Variable', -apple-system, |
| 24 | BlinkMacSystemFont, 'SF Pro Display', sans-serif; |
| 25 | |
| 26 | --color-border: hsl(var(--border)); |
| 27 | --color-input: hsl(var(--input)); |
| 28 | --color-ring: hsl(var(--ring)); |
| 29 | --color-background: hsl(var(--background)); |
| 30 | --color-foreground: hsl(var(--foreground)); |
| 31 | |
| 32 | --color-primary: hsl(var(--primary)); |
| 33 | --color-primary-foreground: hsl(var(--primary-foreground)); |
| 34 | |
| 35 | --color-secondary: hsl(var(--secondary)); |
| 36 | --color-secondary-foreground: hsl(var(--secondary-foreground)); |
| 37 | |
| 38 | --color-destructive: hsl(var(--destructive)); |
| 39 | --color-destructive-foreground: hsl(var(--destructive-foreground)); |
| 40 | |
| 41 | --color-muted: hsl(var(--muted)); |
| 42 | --color-muted-foreground: hsl(var(--muted-foreground)); |
| 43 | |
| 44 | --color-accent: hsl(var(--accent)); |
| 45 | --color-accent-foreground: hsl(var(--accent-foreground)); |
| 46 | |
| 47 | --color-popover: hsl(var(--popover)); |
| 48 | --color-popover-foreground: hsl(var(--popover-foreground)); |
| 49 | |
| 50 | --color-card: hsl(var(--card)); |
| 51 | --color-card-foreground: hsl(var(--card-foreground)); |
| 52 | |
| 53 | --color-success: hsl(var(--success)); |
| 54 | --color-warning: hsl(var(--warning)); |
| 55 | --color-info: hsl(var(--info)); |
| 56 | |
| 57 | --color-sidebar: hsl(var(--sidebar)); |
| 58 | --color-sidebar-foreground: hsl(var(--sidebar-foreground)); |
| 59 | |
| 60 | --radius-3xl: 1.5rem; |
| 61 | --radius-2xl: 1.25rem; |
| 62 | --radius-xl: 1rem; |
| 63 | --radius-lg: var(--radius); |
| 64 | --radius-md: calc(var(--radius) - 4px); |
| 65 | --radius-sm: calc(var(--radius) - 8px); |
| 66 | |
| 67 | --shadow-soft: |
| 68 | 0 1px 2px rgba(33, 37, 41, 0.05), 0 10px 30px -16px rgba(33, 37, 41, 0.16); |
| 69 | --shadow-apple: |
| 70 | 0 1px 2px rgba(33, 37, 41, 0.06), 0 10px 28px -14px rgba(33, 37, 41, 0.18); |
| 71 | --shadow-apple-hover: |
| 72 | 0 2px 4px rgba(33, 37, 41, 0.07), 0 16px 40px -16px rgba(33, 37, 41, 0.22); |
| 73 | |
| 74 | --animate-fade-up: fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; |
| 75 | --animate-accordion-down: accordion-down 0.25s cubic-bezier(0.16, 1, 0.3, 1); |
| 76 | --animate-accordion-up: accordion-up 0.25s cubic-bezier(0.16, 1, 0.3, 1); |
| 77 | |
| 78 | @keyframes fade-up { |
| 79 | from { |
| 80 | opacity: 0; |
| 81 | transform: translateY(8px); |
| 82 | } |
| 83 | to { |
| 84 | opacity: 1; |
| 85 | transform: translateY(0); |
| 86 | } |
| 87 | } |
| 88 | @keyframes accordion-down { |
| 89 | from { |
| 90 | height: 0; |
| 91 | } |
| 92 | to { |
| 93 | height: var(--kb-collapsible-content-height); |
| 94 | } |
| 95 | } |
| 96 | @keyframes accordion-up { |
| 97 | from { |
| 98 | height: var(--kb-collapsible-content-height); |
| 99 | } |
| 100 | to { |
| 101 | height: 0; |
| 102 | } |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | @layer base { |
| 115 | *, |
| 116 | ::after, |
| 117 | ::before, |
| 118 | ::backdrop, |
| 119 | ::file-selector-button { |
| 120 | border-color: var(--color-gray-200, currentcolor); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | @utility font-display { |
| 125 | font-family: |
| 126 | 'Space Grotesk Variable', 'Inter Variable', -apple-system, |
| 127 | BlinkMacSystemFont, 'SF Pro Display', sans-serif; |
| 128 | letter-spacing: -0.02em; |
| 129 | } |
| 130 | |
| 131 | @utility glass-header { |
| 132 | @apply sticky top-0 z-20 border-b border-border/80 bg-background/85 shadow-xs backdrop-blur-xl; |
| 133 | } |
| 134 | |
| 135 | @utility glass-panel { |
| 136 | @apply border border-border/80 bg-card/90 shadow-apple backdrop-blur-xl; |
| 137 | } |
| 138 | |
| 139 | @utility apple-card { |
| 140 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-apple transition-[border-color,box-shadow] duration-200 hover:border-border; |
| 141 | } |
| 142 | |
| 143 | @utility surface-card { |
| 144 | @apply rounded-2xl border border-border/80 bg-card text-card-foreground shadow-xs transition-[border-color,box-shadow] duration-200; |
| 145 | } |
| 146 | |
| 147 | @utility stat-tile { |
| 148 | @apply surface-card relative overflow-hidden p-5 hover:border-border hover:shadow-apple-hover active:scale-[0.985]; |
| 149 | } |
| 150 | |
| 151 | @utility focus-ring { |
| 152 | @apply focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background; |
| 153 | } |
| 154 | |
| 155 | @utility topbar-control { |
| 156 | @apply border border-border/90 bg-card/90 text-muted-foreground shadow-xs transition-colors hover:border-border hover:bg-muted hover:text-foreground; |
| 157 | } |
| 158 | |
| 159 | @utility topbar-ai-control { |
| 160 | @apply border border-primary bg-primary text-primary-foreground shadow-sm transition-[background-color,box-shadow,transform] hover:bg-primary/90 hover:shadow-md; |
| 161 | } |
| 162 | |
| 163 | @utility data-shell { |
| 164 | @apply rounded-2xl border border-border/80 bg-card shadow-xs; |
| 165 | } |
| 166 | |
| 167 | @utility data-table-wrap { |
| 168 | @apply max-h-[65vh] overflow-auto rounded-xl border border-border/80 bg-card shadow-none; |
| 169 | } |
| 170 | |
| 171 | @utility data-table { |
| 172 | @apply w-full caption-bottom text-sm; |
| 173 | |
| 174 | & thead { |
| 175 | @apply sticky top-0 z-10 border-b border-border/80 bg-muted/55 text-muted-foreground; |
| 176 | } |
| 177 | |
| 178 | & th { |
| 179 | @apply h-11 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/70 px-4 text-left text-xs font-semibold tracking-wide text-muted-foreground last:border-r-0 dark:border-white/10 dark:text-white/65; |
| 180 | } |
| 181 | |
| 182 | & td { |
| 183 | @apply h-[3.2rem] whitespace-nowrap border-r border-border/60 px-4 py-2.5 align-middle text-sm font-normal text-foreground last:border-r-0 dark:border-white/8 dark:text-white/90; |
| 184 | } |
| 185 | |
| 186 | & tbody tr { |
| 187 | @apply border-b border-border/70 transition-colors hover:bg-muted/70 active:bg-muted dark:border-white/8 dark:hover:bg-white/6 dark:active:bg-white/8; |
| 188 | } |
| 189 | |
| 190 | & tbody tr:nth-child(even) { |
| 191 | background-color: hsl(var(--muted) / 0.18); |
| 192 | } |
| 193 | |
| 194 | & tbody tr:hover:nth-child(even) { |
| 195 | background-color: hsl(var(--muted) / 0.7); |
| 196 | } |
| 197 | |
| 198 | [data-kb-theme='dark'] & tbody tr:nth-child(even) { |
| 199 | background-color: hsl(var(--muted) / 0.35); |
| 200 | } |
| 201 | |
| 202 | [data-kb-theme='dark'] & tbody tr:hover:nth-child(even) { |
| 203 | background-color: hsl(var(--muted) / 0.65); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | @utility detail-breadcrumb { |
| 208 | @apply flex flex-wrap items-center gap-1.5 text-xs text-muted-foreground font-medium; |
| 209 | |
| 210 | & a { |
| 211 | @apply transition-colors hover:text-foreground; |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | @utility detail-action-group { |
| 216 | @apply flex w-full flex-wrap items-center gap-1.5 rounded-xl border border-border/80 bg-card p-1.5 shadow-xs sm:w-auto; |
| 217 | } |
| 218 | |
| 219 | @utility detail-action-divider { |
| 220 | @apply flex flex-1 items-center gap-1.5 border-t border-border pt-1.5 sm:ml-1 sm:flex-none sm:border-l sm:border-t-0 sm:pl-1.5 sm:pt-0; |
| 221 | } |
| 222 | |
| 223 | @utility tab-panel-header { |
| 224 | @apply flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-border/60 bg-muted/20 px-3 py-2; |
| 225 | } |
| 226 | |
| 227 | @utility tab-panel-note { |
| 228 | @apply rounded-xl border border-border/60 bg-muted/20 px-3 py-2 text-sm text-muted-foreground; |
| 229 | } |
| 230 | |
| 231 | @utility detail-metric-card { |
| 232 | @apply rounded-xl border border-black/5 bg-transparent px-4 py-4 shadow-xs dark:border-white/6; |
| 233 | } |
| 234 | |
| 235 | @utility side-panel-body { |
| 236 | & form { |
| 237 | @apply space-y-6 pb-6; |
| 238 | } |
| 239 | |
| 240 | & form > .space-y-3 { |
| 241 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; |
| 242 | } |
| 243 | |
| 244 | & form > .space-y-4 { |
| 245 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; |
| 246 | } |
| 247 | |
| 248 | & form > .space-y-1\.5 { |
| 249 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; |
| 250 | } |
| 251 | |
| 252 | & form > .grid { |
| 253 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; |
| 254 | } |
| 255 | |
| 256 | & label { |
| 257 | @apply text-xs font-semibold text-muted-foreground/90 tracking-tight; |
| 258 | } |
| 259 | |
| 260 | & input { |
| 261 | @apply rounded-xl bg-muted/30 border border-border/80 h-11 px-3.5 transition-colors focus:bg-background; |
| 262 | } |
| 263 | |
| 264 | & textarea { |
| 265 | @apply rounded-xl bg-muted/30 border border-border/80 h-11 px-3.5 transition-colors focus:bg-background; |
| 266 | } |
| 267 | |
| 268 | & select { |
| 269 | @apply rounded-xl bg-muted/30 border border-border/80 h-11 px-3.5 transition-colors focus:bg-background; |
| 270 | } |
| 271 | |
| 272 | & form > .flex:last-child { |
| 273 | @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; |
| 274 | } |
| 275 | |
| 276 | & form > .flex.flex-wrap:last-child { |
| 277 | @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; |
| 278 | } |
| 279 | |
| 280 | & form > .flex:last-child button { |
| 281 | @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; |
| 282 | } |
| 283 | |
| 284 | & form > .flex.flex-wrap:last-child button { |
| 285 | @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | @utility space-y-3 { |
| 290 | .side-panel-body form > & { |
| 291 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | @utility space-y-4 { |
| 296 | .side-panel-body form > & { |
| 297 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | @utility space-y-1.5 { |
| 302 | .side-panel-body form > & { |
| 303 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | @utility grid { |
| 308 | .side-panel-body form > & { |
| 309 | @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | @utility flex { |
| 314 | .side-panel-body form > &:last-child { |
| 315 | @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; |
| 316 | } |
| 317 | |
| 318 | .side-panel-body form > &.flex-wrap:last-child { |
| 319 | @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; |
| 320 | } |
| 321 | |
| 322 | .side-panel-body form > &:last-child button { |
| 323 | @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; |
| 324 | } |
| 325 | |
| 326 | .side-panel-body form > &.flex-wrap:last-child button { |
| 327 | @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | @utility flex-wrap { |
| 332 | .side-panel-body form > &.flex:last-child { |
| 333 | @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; |
| 334 | } |
| 335 | |
| 336 | .side-panel-body form > &.flex:last-child button { |
| 337 | @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | @utility tactile-press { |
| 342 | @apply active:scale-[0.97] transition-transform duration-150; |
| 343 | } |
| 344 | |
| 345 | @utility card-lift { |
| 346 | @apply transition-shadow duration-200 ease-out hover:shadow-apple-hover; |
| 347 | } |
| 348 | |
| 349 | @utility hig-grouped-card { |
| 350 | @apply rounded-2xl border border-border/80 bg-card p-4 shadow-xs transition-[border-color,box-shadow] sm:p-5; |
| 351 | } |
| 352 | |
| 353 | @utility hig-translucent-bar { |
| 354 | @apply border-b border-border/80 bg-background/85 backdrop-blur-xl backdrop-saturate-150; |
| 355 | } |
| 356 | |
| 357 | @utility hig-popover-panel { |
| 358 | @apply backdrop-blur-xl backdrop-saturate-150 bg-popover/95 border border-black/8 dark:border-white/12 rounded-2xl shadow-apple p-1.5; |
| 359 | } |
| 360 | |
| 361 | @utility animate-pulse-glow { |
| 362 | animation: pulse-glow 3s ease-in-out infinite; |
| 363 | |
| 364 | @media (prefers-reduced-motion: reduce) { |
| 365 | animation: none; |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | @utility num { |
| 370 | font-family: |
| 371 | SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', |
| 372 | monospace; |
| 373 | font-variant-numeric: tabular-nums; |
| 374 | } |
| 375 | |
| 376 | @utility mono { |
| 377 | font-family: |
| 378 | SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', |
| 379 | monospace; |
| 380 | font-variant-numeric: tabular-nums; |
| 381 | } |
| 382 | |
| 383 | @layer base { |
| 384 | :root { |
| 385 | |
| 386 | --ui-bg: 210 15.8% 92.5%; |
| 387 | --ui-surface-1: 210 16.7% 97.6%; |
| 388 | --ui-surface-2: 210 13.8% 88.6%; |
| 389 | --ui-surface-3: 210 14% 83.1%; |
| 390 | --ui-border-1: 210 14% 83.1%; |
| 391 | --ui-border-2: 210 10.8% 71%; |
| 392 | --ui-text-1: 210 10.8% 14.5%; |
| 393 | --ui-text-2: 210 8.8% 31.4%; |
| 394 | --ui-text-3: 208.2 7.3% 45.7%; |
| 395 | --ui-accent: 210 10.3% 22.7%; |
| 396 | --ui-accent-muted: 210 13.8% 88.6%; |
| 397 | |
| 398 | |
| 399 | --ui-success: 142 71% 45%; |
| 400 | --ui-success-muted: 142 60% 94%; |
| 401 | --ui-warning: 38 92% 50%; |
| 402 | --ui-warning-muted: 38 85% 93%; |
| 403 | --ui-danger: 354 84% 57%; |
| 404 | --ui-danger-muted: 354 80% 94%; |
| 405 | --ui-info: 199 89% 48%; |
| 406 | --ui-info-muted: 199 80% 94%; |
| 407 | |
| 408 | --space-1: 0.25rem; |
| 409 | --space-2: 0.5rem; |
| 410 | --space-3: 0.75rem; |
| 411 | --space-4: 1rem; |
| 412 | --space-5: 1.25rem; |
| 413 | --space-6: 1.5rem; |
| 414 | --space-8: 2rem; |
| 415 | |
| 416 | --background: var(--ui-bg); |
| 417 | --foreground: var(--ui-text-1); |
| 418 | --card: var(--ui-surface-1); |
| 419 | --card-foreground: var(--ui-text-1); |
| 420 | --popover: var(--ui-surface-1); |
| 421 | --popover-foreground: var(--ui-text-1); |
| 422 | --primary: var(--ui-accent); |
| 423 | --primary-foreground: 210 16.7% 97.6%; |
| 424 | --secondary: var(--ui-surface-2); |
| 425 | --secondary-foreground: var(--ui-text-1); |
| 426 | --muted: var(--ui-surface-2); |
| 427 | --muted-foreground: var(--ui-text-2); |
| 428 | --accent: var(--ui-accent-muted); |
| 429 | --accent-foreground: 210 10.3% 22.7%; |
| 430 | --destructive: var(--ui-danger); |
| 431 | --destructive-foreground: 0 0% 100%; |
| 432 | --border: var(--ui-border-1); |
| 433 | --input: var(--ui-border-1); |
| 434 | --ring: var(--ui-accent); |
| 435 | --radius: 1rem; |
| 436 | --success: var(--ui-success); |
| 437 | --warning: var(--ui-warning); |
| 438 | --info: var(--ui-info); |
| 439 | --surface-elevated: var(--ui-surface-1); |
| 440 | --sidebar: var(--ui-surface-1); |
| 441 | --sidebar-foreground: var(--ui-text-2); |
| 442 | } |
| 443 | |
| 444 | [data-kb-theme="dark"] { |
| 445 | --ui-bg: 210 10.8% 14.5%; |
| 446 | --ui-surface-1: 210 10.3% 22.7%; |
| 447 | --ui-surface-2: 210 8.8% 31.4%; |
| 448 | --ui-surface-3: 208.2 7.3% 45.7%; |
| 449 | --ui-border-1: 210 8.8% 31.4%; |
| 450 | --ui-border-2: 208.2 7.3% 45.7%; |
| 451 | --ui-text-1: 210 16.7% 97.6%; |
| 452 | --ui-text-2: 210 13.8% 88.6%; |
| 453 | --ui-text-3: 210 10.8% 71%; |
| 454 | --ui-accent: 210 14% 83.1%; |
| 455 | --ui-accent-muted: 210 8.8% 31.4%; |
| 456 | --ui-success: 142 71% 52%; |
| 457 | --ui-success-muted: 142 40% 14%; |
| 458 | --ui-warning: 38 92% 54%; |
| 459 | --ui-warning-muted: 38 50% 14%; |
| 460 | --ui-danger: 354 84% 62%; |
| 461 | --ui-danger-muted: 354 50% 15%; |
| 462 | --ui-info: 199 89% 60%; |
| 463 | --ui-info-muted: 199 50% 14%; |
| 464 | |
| 465 | --primary-foreground: 210 10.8% 14.5%; |
| 466 | --accent-foreground: 210 16.7% 97.6%; |
| 467 | --destructive-foreground: 0 0% 100%; |
| 468 | --sidebar: var(--ui-bg); |
| 469 | } |
| 470 | |
| 471 | * { |
| 472 | @apply border-border; |
| 473 | } |
| 474 | |
| 475 | html { |
| 476 | @apply scroll-smooth; |
| 477 | font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif; |
| 478 | -webkit-font-smoothing: antialiased; |
| 479 | -moz-osx-font-smoothing: grayscale; |
| 480 | } |
| 481 | |
| 482 | body { |
| 483 | @apply min-h-screen bg-background font-sans text-foreground antialiased selection:bg-primary/20 selection:text-primary; |
| 484 | } |
| 485 | |
| 486 | |
| 487 | * { |
| 488 | -ms-overflow-style: none; |
| 489 | scrollbar-width: none; |
| 490 | } |
| 491 | |
| 492 | ::-webkit-scrollbar { |
| 493 | display: none; |
| 494 | width: 0; |
| 495 | height: 0; |
| 496 | } |
| 497 | |
| 498 | .no-scrollbar::-webkit-scrollbar { |
| 499 | display: none; |
| 500 | } |
| 501 | |
| 502 | .no-scrollbar { |
| 503 | -ms-overflow-style: none; |
| 504 | scrollbar-width: none; |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | @layer components { |
| 509 | @keyframes pulse-glow { |
| 510 | 0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 10px hsl(var(--primary) / 0.25)); } |
| 511 | 50% { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 20px hsl(var(--primary) / 0.45)); } |
| 512 | } |
| 513 | } |