CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
layout.tsx
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| fc1817a | 1 | import type { FC, PropsWithChildren } from "hono/jsx"; |
| 06d5ffe | 2 | import type { User } from "../db/schema"; |
| 3 | import { hljsThemeCss } from "../lib/highlight"; | |
| 45e31d0 | 4 | import { clientJs } from "./client-js"; |
| 05cdb85 | 5 | import { getBuildInfo } from "../lib/build-info"; |
| fc1817a | 6 | |
| 06d5ffe | 7 | export const Layout: FC< |
| 3ef4c9d | 8 | PropsWithChildren<{ |
| 9 | title?: string; | |
| 10 | user?: User | null; | |
| 11 | notificationCount?: number; | |
| 6fc53bd | 12 | theme?: "dark" | "light"; |
| 5f2e749 | 13 | // Block L10 — additive SEO + Open Graph fields. All optional; |
| 14 | // omission preserves the prior render exactly (regression-safe). | |
| 15 | fullTitle?: string; | |
| 16 | description?: string; | |
| 17 | ogTitle?: string; | |
| 18 | ogDescription?: string; | |
| 19 | ogType?: string; | |
| 20 | twitterCard?: "summary" | "summary_large_image"; | |
| c63b860 | 21 | // Block O3 — site-wide footer banner stripe. When non-empty, |
| 22 | // renders below the footer-bottom row; wired from | |
| 23 | // admin.system_flags.site_banner_text. | |
| 24 | siteBannerText?: string; | |
| 25 | siteBannerLevel?: "info" | "warn" | "error"; | |
| 3ef4c9d | 26 | }> |
| 5f2e749 | 27 | > = ({ |
| 28 | children, | |
| 29 | title, | |
| 30 | user, | |
| 31 | notificationCount, | |
| 32 | theme, | |
| 33 | fullTitle, | |
| 34 | description, | |
| 35 | ogTitle, | |
| 36 | ogDescription, | |
| 37 | ogType, | |
| 38 | twitterCard, | |
| c63b860 | 39 | siteBannerText, |
| 40 | siteBannerLevel, | |
| 5f2e749 | 41 | }) => { |
| 81201cc | 42 | // Default to "light" — feedback from operators was the dark default |
| 43 | // felt too gamer-ish and not what senior platform engineers expect from | |
| 44 | // a tool they'd evaluate alongside Vercel / Linear / Stripe. Users who | |
| 45 | // explicitly want dark can flip via the theme toggle (cookie persists). | |
| 46 | const initialTheme = theme === "dark" ? "dark" : "light"; | |
| 05cdb85 | 47 | const build = getBuildInfo(); |
| 5f2e749 | 48 | // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron" |
| 49 | // suffix); otherwise fall back to the existing `title` + suffix behaviour. | |
| 50 | const renderedTitle = fullTitle | |
| 51 | ? fullTitle | |
| 52 | : title | |
| 53 | ? `${title} — gluecron` | |
| 54 | : "gluecron"; | |
| fc1817a | 55 | return ( |
| 6fc53bd | 56 | <html lang="en" data-theme={initialTheme}> |
| fc1817a | 57 | <head> |
| 58 | <meta charset="UTF-8" /> | |
| 59 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| eae38d1 | 60 | <meta name="theme-color" content="#0d1117" /> |
| 3a5755e | 61 | {/* 2026 polish — load Inter + Inter Tight + JetBrains Mono for |
| 62 | crisp modern typography. `preconnect` keeps the handshake | |
| 63 | cost off the critical path; `display=swap` means we never | |
| 64 | block first paint waiting on fonts. */} | |
| 65 | <link rel="preconnect" href="https://fonts.googleapis.com" /> | |
| 66 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" /> | |
| 67 | <link | |
| 68 | rel="stylesheet" | |
| 69 | href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" | |
| 70 | /> | |
| 44fe49b | 71 | {/* PWA removed 2026-05-16 — repeated reload-loop bugs (admin |
| 72 | dashboard, deploy pill, admin-screen flash). A git host has | |
| 73 | no use for service workers or install-as-app. Manifest link | |
| 74 | and SW registrations are gone permanently. */} | |
| eae38d1 | 75 | <link rel="icon" type="image/svg+xml" href="/icon.svg" /> |
| 5f2e749 | 76 | <title>{renderedTitle}</title> |
| 77 | {description && <meta name="description" content={description} />} | |
| 78 | {(ogTitle || fullTitle || title) && ( | |
| 79 | <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} /> | |
| 80 | )} | |
| 81 | {(ogDescription || description) && ( | |
| 82 | <meta | |
| 83 | property="og:description" | |
| 84 | content={ogDescription ?? description ?? ""} | |
| 85 | /> | |
| 86 | )} | |
| 87 | {ogType && <meta property="og:type" content={ogType} />} | |
| 88 | {twitterCard && <meta name="twitter:card" content={twitterCard} />} | |
| fa880f2 | 89 | <script dangerouslySetInnerHTML={{ __html: themeInitScript }} /> |
| 90 | <style dangerouslySetInnerHTML={{ __html: css }} /> | |
| 91 | <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} /> | |
| fc1817a | 92 | </head> |
| 93 | <body> | |
| 4a52a98 | 94 | <div class="prelaunch-banner" role="status" aria-live="polite"> |
| 95 | Pre-launch — Gluecron is in final validation. Public signups | |
| 96 | and git hosting for non-owner users open after launch review. | |
| 97 | </div> | |
| cd4f63b | 98 | {/* Block Q3 — Playground banner. Renders only when the active |
| 99 | user is a playground account with a future expiry; the small | |
| 100 | inline script counts down once per minute. Strip is dismissible | |
| 101 | per-page-load (re-appears on next nav) — gentle, not noisy. */} | |
| 102 | {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && ( | |
| 103 | <div | |
| 104 | class="playground-banner" | |
| 105 | role="status" | |
| 106 | aria-live="polite" | |
| 107 | data-playground-expires={ | |
| 108 | ((user as any).playgroundExpiresAt instanceof Date | |
| 109 | ? (user as any).playgroundExpiresAt.toISOString() | |
| 110 | : String((user as any).playgroundExpiresAt)) | |
| 111 | } | |
| 112 | > | |
| 113 | <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span> | |
| 114 | <span class="playground-banner-text"> | |
| 115 | Playground account —{" "} | |
| 116 | <span class="playground-banner-countdown">expires soon</span>.{" "} | |
| 117 | <a href="/play/claim" class="playground-banner-cta"> | |
| 118 | Save your work → | |
| 119 | </a> | |
| 120 | </span> | |
| 121 | <button | |
| 122 | type="button" | |
| 123 | class="playground-banner-dismiss" | |
| 124 | aria-label="Dismiss" | |
| 125 | data-playground-dismiss="1" | |
| 126 | > | |
| 127 | {"×"} | |
| 128 | </button> | |
| 129 | <script | |
| 130 | dangerouslySetInnerHTML={{ | |
| 131 | __html: /* js */ ` | |
| 132 | (function () { | |
| 133 | var el = document.currentScript && document.currentScript.parentElement; | |
| 134 | if (!el) return; | |
| 135 | var iso = el.getAttribute('data-playground-expires'); | |
| 136 | if (!iso) return; | |
| 137 | var target = Date.parse(iso); | |
| 138 | if (isNaN(target)) return; | |
| 139 | var out = el.querySelector('.playground-banner-countdown'); | |
| 140 | function render() { | |
| 141 | var ms = target - Date.now(); | |
| 142 | if (!out) return; | |
| 143 | if (ms <= 0) { out.textContent = 'expired'; return; } | |
| 144 | var mins = Math.floor(ms / 60000); | |
| 145 | var hrs = Math.floor(mins / 60); | |
| 146 | if (hrs > 1) out.textContent = hrs + ' hours left'; | |
| 147 | else if (hrs === 1) out.textContent = '1 hour left'; | |
| 148 | else if (mins > 1) out.textContent = mins + ' minutes left'; | |
| 149 | else out.textContent = 'less than a minute left'; | |
| 150 | } | |
| 151 | render(); | |
| 152 | setInterval(render, 60000); | |
| 153 | var dismiss = el.querySelector('[data-playground-dismiss="1"]'); | |
| 154 | if (dismiss) { | |
| 155 | dismiss.addEventListener('click', function () { | |
| 156 | el.style.display = 'none'; | |
| 157 | }); | |
| 158 | } | |
| 159 | })(); | |
| 160 | `, | |
| 161 | }} | |
| 162 | /> | |
| 163 | </div> | |
| 164 | )} | |
| 41a1450 | 165 | <header class="site-header"> |
| fc1817a | 166 | <nav> |
| 167 | <a href="/" class="logo"> | |
| 168 | gluecron | |
| 169 | </a> | |
| 3ef4c9d | 170 | <div class="nav-search"> |
| 001af43 | 171 | <form method="get" action="/search"> |
| 3ef4c9d | 172 | <input |
| 173 | type="search" | |
| 174 | name="q" | |
| 175 | placeholder="Search (press /)" | |
| 176 | aria-label="Search" | |
| 177 | /> | |
| 178 | </form> | |
| 179 | </div> | |
| 06d5ffe | 180 | <div class="nav-right"> |
| f5b9ef5 | 181 | {/* Block N3 — site-admin platform-deploy status pill */} |
| f764c07 | 182 | {user && ( |
| 183 | <a | |
| 184 | id="deploy-pill" | |
| 185 | href="/admin/deploys" | |
| 186 | class="nav-deploy-pill" | |
| 187 | style="display:none" | |
| 188 | aria-label="Platform deploy status" | |
| 189 | title="Platform deploy status" | |
| 190 | > | |
| 191 | <span class="deploy-pill-dot" /> | |
| 192 | <span class="deploy-pill-text">Deploys</span> | |
| 193 | </a> | |
| 194 | )} | |
| f5b9ef5 | 195 | <a href="/explore" class="nav-link">Explore</a> |
| 06d5ffe | 196 | {user ? ( |
| 197 | <> | |
| f5b9ef5 | 198 | {/* AI dropdown */} |
| c6018a5 | 199 | <div class="nav-ai-dropdown" data-nav-ai> |
| 200 | <button | |
| 201 | type="button" | |
| 202 | class="nav-link nav-ai-trigger" | |
| 203 | aria-haspopup="true" | |
| 204 | aria-expanded="false" | |
| 205 | data-nav-ai-trigger | |
| 206 | > | |
| 207 | <span style="display:inline-flex;align-items:center;gap:5px"> | |
| f5b9ef5 | 208 | <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> |
| c6018a5 | 209 | <path d="M12 2l2.39 5.95L20 9l-4.5 3.9L17 19l-5-3.2L7 19l1.5-6.1L4 9l5.61-1.05L12 2z" /> |
| 210 | </svg> | |
| 211 | AI | |
| f5b9ef5 | 212 | <span aria-hidden="true" style="font-size:9px;opacity:0.7">{String.fromCharCode(9660)}</span> |
| c6018a5 | 213 | </span> |
| 214 | </button> | |
| 215 | <div class="nav-ai-menu" role="menu" data-nav-ai-menu> | |
| 216 | <a href="/standups" role="menuitem" class="nav-ai-item"> | |
| 217 | <span class="nav-ai-item-label">Standups</span> | |
| 218 | <span class="nav-ai-item-sub">Daily AI brief</span> | |
| 219 | </a> | |
| 220 | <a href="/voice" role="menuitem" class="nav-ai-item"> | |
| 221 | <span class="nav-ai-item-label">Voice</span> | |
| 222 | <span class="nav-ai-item-sub">Talk to ship a PR</span> | |
| 223 | </a> | |
| 224 | <a href="/refactors" role="menuitem" class="nav-ai-item"> | |
| 225 | <span class="nav-ai-item-label">Refactors</span> | |
| 226 | <span class="nav-ai-item-sub">Multi-repo agent</span> | |
| 227 | </a> | |
| 228 | <a href="/specs" role="menuitem" class="nav-ai-item"> | |
| 229 | <span class="nav-ai-item-label">Specs</span> | |
| 230 | <span class="nav-ai-item-sub">Spec-to-PR loop</span> | |
| 231 | </a> | |
| 232 | <a href="/ask" role="menuitem" class="nav-ai-item"> | |
| 233 | <span class="nav-ai-item-label">Ask AI</span> | |
| 234 | <span class="nav-ai-item-sub">Cross-repo chat</span> | |
| 235 | </a> | |
| 236 | </div> | |
| 237 | </div> | |
| cc34156 | 238 | {/* Smart morning digest link */} |
| 239 | <a href="/digest" class="nav-link" title="Morning Digest" aria-label="Morning Digest"> | |
| 240 | {"☀"} | |
| 241 | </a> | |
| f5b9ef5 | 242 | {/* Inbox bell with unread badge */} |
| 243 | <a | |
| 244 | href="/inbox" | |
| 245 | class="nav-inbox-btn" | |
| 246 | aria-label={notificationCount && notificationCount > 0 ? `Inbox — ${notificationCount} unread` : "Inbox"} | |
| 247 | title="Inbox" | |
| 248 | > | |
| 249 | <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> | |
| 250 | <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/> | |
| 251 | <path d="M13.73 21a2 2 0 0 1-3.46 0"/> | |
| 252 | </svg> | |
| 253 | {notificationCount && notificationCount > 0 ? ( | |
| 254 | <span class="nav-inbox-badge" aria-hidden="true"> | |
| 255 | {notificationCount > 99 ? "99+" : notificationCount} | |
| 256 | </span> | |
| 257 | ) : null} | |
| 06d5ffe | 258 | </a> |
| f5b9ef5 | 259 | <a href="/new" class="btn btn-sm btn-primary">+ New</a> |
| 260 | {/* User dropdown — consolidates profile + secondary nav */} | |
| 261 | <div class="nav-user-dropdown" data-nav-user> | |
| 262 | <button | |
| 263 | type="button" | |
| 264 | class="nav-user-trigger" | |
| 265 | aria-haspopup="true" | |
| 266 | aria-expanded="false" | |
| 267 | data-nav-user-trigger | |
| 268 | > | |
| 269 | <span class="nav-user-avatar" aria-hidden="true"> | |
| 270 | {(user.displayName || user.username).charAt(0).toUpperCase()} | |
| 271 | </span> | |
| 272 | <span class="nav-user-name">{user.displayName || user.username}</span> | |
| 273 | <span class="nav-user-caret" aria-hidden="true">{"▾"}</span> | |
| 274 | </button> | |
| 275 | <div class="nav-user-menu" role="menu" data-nav-user-menu> | |
| 276 | <div class="nav-user-menu-header"> | |
| 277 | <span class="nav-user-menu-name">{user.displayName || user.username}</span> | |
| 278 | <span class="nav-user-menu-handle">@{user.username}</span> | |
| 279 | </div> | |
| 280 | <div class="nav-user-menu-sep" /> | |
| 281 | <a href="/dashboard" role="menuitem" class="nav-user-item">Dashboard</a> | |
| 282 | <a href="/pulls" role="menuitem" class="nav-user-item">Pull requests</a> | |
| 283 | <a href="/issues" role="menuitem" class="nav-user-item">Issues</a> | |
| 284 | <a href="/activity" role="menuitem" class="nav-user-item">Activity</a> | |
| 8286942 | 285 | <a href="/insights" role="menuitem" class="nav-user-item">Insights</a> |
| f5b9ef5 | 286 | <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a> |
| bb2dea9 | 287 | <a href="/import/actions" role="menuitem" class="nav-user-item">Actions importer</a> |
| f5b9ef5 | 288 | <div class="nav-user-menu-sep" /> |
| 289 | <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a> | |
| 290 | <a href="/settings" role="menuitem" class="nav-user-item">Settings</a> | |
| 291 | <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a> | |
| 292 | <div class="nav-user-menu-sep" /> | |
| 293 | <a href="/theme/toggle" class="nav-user-item" role="menuitem"> | |
| 294 | <span class="theme-icon-dark">{"☾"} Light mode</span> | |
| 295 | <span class="theme-icon-light">{"☀"} Dark mode</span> | |
| 296 | </a> | |
| 297 | <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a> | |
| 298 | </div> | |
| 299 | </div> | |
| 06d5ffe | 300 | </> |
| 301 | ) : ( | |
| 302 | <> | |
| f5b9ef5 | 303 | <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme"> |
| 304 | <span class="theme-icon-dark">{"☾"}</span> | |
| 305 | <span class="theme-icon-light">{"☀"}</span> | |
| 06d5ffe | 306 | </a> |
| adf5e18 | 307 | <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron"> |
| 308 | Migrate from GitHub | |
| 309 | </a> | |
| f5b9ef5 | 310 | <a href="/login" class="nav-link">Sign in</a> |
| 311 | <a href="/register" class="btn btn-sm btn-primary">Register</a> | |
| 06d5ffe | 312 | </> |
| 313 | )} | |
| 314 | </div> | |
| fc1817a | 315 | </nav> |
| 316 | </header> | |
| 45e31d0 | 317 | <main id="main-content">{children}</main> |
| cf9178b | 318 | {/* Global toast host — populated by the toastScript below from |
| 319 | ?success= / ?error= / ?toast= query params. Replaces the | |
| 320 | per-page banner pattern with one polished slide-in. */} | |
| 321 | <div | |
| 322 | id="toast-host" | |
| 323 | aria-live="polite" | |
| 324 | aria-atomic="true" | |
| 325 | style="position:fixed;top:calc(var(--header-h) + 12px);right:16px;z-index:var(--z-toast,10000);display:flex;flex-direction:column;gap:8px;pointer-events:none" | |
| 326 | /> | |
| fc1817a | 327 | <footer> |
| 958d26a | 328 | <div class="footer-inner"> |
| 329 | <div class="footer-brand"> | |
| 330 | <a href="/" class="logo">gluecron</a> | |
| 331 | <p class="footer-tag"> | |
| 332 | AI-native code intelligence. Self-hosted git, automated CI, | |
| 333 | push-time gates. Software that ships itself. | |
| 334 | </p> | |
| 335 | </div> | |
| 336 | <div class="footer-links"> | |
| 337 | <div class="footer-col"> | |
| 338 | <div class="footer-col-title">Product</div> | |
| b0148e9 | 339 | <a href="/features">Features</a> |
| 340 | <a href="/pricing">Pricing</a> | |
| 9f29b65 | 341 | <a href="/enterprise">Enterprise</a> |
| e1fc7db | 342 | <a href="/changelog">Changelog</a> |
| 958d26a | 343 | <a href="/explore">Explore</a> |
| 344 | <a href="/marketplace">Marketplace</a> | |
| adf5e18 | 345 | <a href="/developer-program">Developer Program</a> |
| 958d26a | 346 | </div> |
| 347 | <div class="footer-col"> | |
| 348 | <div class="footer-col-title">Platform</div> | |
| e0e4219 | 349 | <a href="/docs">Docs</a> |
| b0148e9 | 350 | <a href="/help">Quickstart</a> |
| 958d26a | 351 | <a href="/status">Status</a> |
| 352 | <a href="/api/graphql">GraphQL</a> | |
| 353 | <a href="/mcp">MCP server</a> | |
| 354 | </div> | |
| 355 | <div class="footer-col"> | |
| b0148e9 | 356 | <div class="footer-col-title">Company</div> |
| 357 | <a href="/about">About</a> | |
| 3122762 | 358 | <a href="/blog">Blog</a> |
| 958d26a | 359 | <a href="/terms">Terms</a> |
| 360 | <a href="/privacy">Privacy</a> | |
| 361 | <a href="/acceptable-use">Acceptable use</a> | |
| 362 | </div> | |
| 363 | </div> | |
| 364 | </div> | |
| 365 | <div class="footer-bottom"> | |
| 366 | <span>© {new Date().getFullYear()} gluecron</span> | |
| 05cdb85 | 367 | <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}> |
| 368 | <span class="footer-build-dot" aria-hidden="true" /> | |
| 369 | {build.sha} · {build.branch} | |
| 370 | </span> | |
| 36b4cbd | 371 | </div> |
| c63b860 | 372 | {siteBannerText ? ( |
| 373 | <div | |
| 374 | class={`footer-banner footer-banner-${siteBannerLevel || "info"}`} | |
| 375 | role="status" | |
| 376 | aria-live="polite" | |
| 377 | > | |
| 378 | {siteBannerText} | |
| 379 | </div> | |
| 380 | ) : null} | |
| fc1817a | 381 | </footer> |
| 05cdb85 | 382 | {/* Live update poller — checks /api/version every 15s, prompts |
| 383 | reload when the running sha changes. Pure progressive- | |
| 384 | enhancement; degrades to nothing if JS is off. */} | |
| 385 | <div | |
| 386 | id="version-banner" | |
| 479dcd9 | 387 | style="display:none;position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:9999;background:var(--bg-elevated);border:1px solid rgba(91,110,232,0.45);border-radius:9999px;padding:8px 14px 8px 14px;font-size:13px;color:var(--text-strong);box-shadow:0 12px 28px -8px rgba(0,0,0,0.55);font-family:var(--font-sans);align-items:center;gap:10px" |
| 05cdb85 | 388 | > |
| 389 | <span style="display:inline-flex;align-items:center;gap:8px"> | |
| 479dcd9 | 390 | <span style="width:8px;height:8px;border-radius:50%;background:#34d399" /> |
| 05cdb85 | 391 | <span>New version available</span> |
| 392 | </span> | |
| 393 | <button | |
| 394 | type="button" | |
| 395 | id="version-banner-reload" | |
| 479dcd9 | 396 | style="background:var(--accent);color:#fff;border:0;border-radius:9999px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit" |
| 05cdb85 | 397 | > |
| 398 | Reload | |
| 399 | </button> | |
| 400 | </div> | |
| fa880f2 | 401 | <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} /> |
| f764c07 | 402 | {/* Block N3 — site-admin deploy status pill (script-only). The pill |
| 403 | container is rendered above for authed users; this script bootstraps | |
| 404 | it by fetching /admin/deploys/latest.json. Non-admins get 401/403 | |
| 405 | and the pill stays display:none — zero leak. */} | |
| 406 | {user && ( | |
| 407 | <script dangerouslySetInnerHTML={{ __html: deployPillScript }} /> | |
| 408 | )} | |
| 699e5c7 | 409 | {/* Block I4 — Command palette shell (hidden by default) */} |
| 410 | <div | |
| 411 | id="cmdk-backdrop" | |
| 412 | style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998" | |
| 413 | /> | |
| 414 | <div | |
| 415 | id="cmdk-panel" | |
| 416 | style="display:none;position:fixed;top:10%;left:50%;transform:translateX(-50%);width:min(560px,92vw);background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 32px rgba(0,0,0,0.4);z-index:9999;overflow:hidden" | |
| 417 | > | |
| 418 | <input | |
| 419 | id="cmdk-input" | |
| 420 | type="text" | |
| 421 | placeholder="Type a command..." | |
| 422 | aria-label="Command palette" | |
| dc26881 | 423 | style="width:100%;padding:var(--space-3) var(--space-4);background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--border);outline:none;font-size:14px" |
| 699e5c7 | 424 | /> |
| 425 | <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" /> | |
| 426 | </div> | |
| fa880f2 | 427 | <script dangerouslySetInnerHTML={{ __html: clientJs }} /> |
| 44fe49b | 428 | {/* PWA-kill script: actively unregisters any service worker |
| 429 | previously installed under gluecron.com. Recovers any browser | |
| 430 | still trapped in the SW reload loop from the legacy registrations. */} | |
| 431 | <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} /> | |
| cf9178b | 432 | <script dangerouslySetInnerHTML={{ __html: toastScript }} /> |
| fa880f2 | 433 | <script dangerouslySetInnerHTML={{ __html: navScript }} /> |
| c6018a5 | 434 | <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} /> |
| b7ecb14 | 435 | {/* Bell badge poller — only rendered for authenticated users. |
| 436 | Polls /api/notifications/count every 60 s and updates the badge | |
| 437 | on the inbox bell icon. Falls back gracefully if the endpoint is | |
| 438 | unavailable or the user signs out mid-session. */} | |
| 439 | {user && ( | |
| 440 | <script dangerouslySetInnerHTML={{ __html: bellPollerScript }} /> | |
| 441 | )} | |
| fc1817a | 442 | </body> |
| 443 | </html> | |
| 444 | ); | |
| 445 | }; | |
| 446 | ||
| 05cdb85 | 447 | // Live version poller. Checks /api/version every 15s; if the sha differs |
| 448 | // from the one we booted with, reveal the floating 'New version' pill so | |
| 449 | // the user can reload onto the new code without manually refreshing. | |
| 450 | const versionPollerScript = ` | |
| 451 | (function(){ | |
| 452 | var loadedSha = null; | |
| 453 | var banner, btn; | |
| 454 | function poll(){ | |
| 455 | fetch('/api/version', { cache: 'no-store' }) | |
| 456 | .then(function(r){ return r.ok ? r.json() : null; }) | |
| 457 | .then(function(j){ | |
| 458 | if (!j || !j.sha) return; | |
| 459 | if (loadedSha === null) { loadedSha = j.sha; return; } | |
| 460 | if (j.sha !== loadedSha && banner) { | |
| 461 | banner.style.display = 'inline-flex'; | |
| 462 | } | |
| 463 | }) | |
| 464 | .catch(function(){}); | |
| 465 | } | |
| 466 | function init(){ | |
| 467 | banner = document.getElementById('version-banner'); | |
| 468 | btn = document.getElementById('version-banner-reload'); | |
| 469 | if (btn) btn.addEventListener('click', function(){ window.location.reload(); }); | |
| 470 | poll(); | |
| 471 | setInterval(poll, 15000); | |
| 472 | } | |
| 473 | if (document.readyState === 'loading') { | |
| 474 | document.addEventListener('DOMContentLoaded', init); | |
| 475 | } else { | |
| 476 | init(); | |
| 477 | } | |
| 478 | })(); | |
| 479 | `; | |
| 480 | ||
| f764c07 | 481 | // Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json; |
| 482 | // if 200, reveals the pill in the nav and subscribes to the `platform:deploys` | |
| 483 | // SSE topic for live status updates. Non-admins get 401/403 and the pill stays | |
| 484 | // display:none — there's no leakage of admin-only data to other users. | |
| 485 | // | |
| 486 | // Pill states (CSS classes on the container drive colour): | |
| 487 | // .deploy-pill-success 🟢 "Deployed 12s ago" | |
| 488 | // .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot) | |
| 489 | // .deploy-pill-failed 🔴 "Deploy failed 1m ago" | |
| 490 | // .deploy-pill-empty ⚪ "No deploys yet" | |
| 491 | // | |
| 492 | // Relative-time auto-refreshes every 15s without re-fetching. | |
| 493 | export const deployPillScript = ` | |
| 494 | (function(){ | |
| 495 | var pill, dot, text; | |
| 496 | var state = { latest: null, asOf: null }; | |
| 497 | ||
| 498 | function classifyAge(ms){ | |
| 499 | if (ms < 0) return 'just now'; | |
| 500 | var s = Math.floor(ms / 1000); | |
| 501 | if (s < 5) return 'just now'; | |
| 502 | if (s < 60) return s + 's ago'; | |
| 503 | var m = Math.floor(s / 60); | |
| 504 | if (m < 60) return m + 'm ago'; | |
| 505 | var h = Math.floor(m / 60); | |
| 506 | if (h < 24) return h + 'h ago'; | |
| 507 | var d = Math.floor(h / 24); | |
| 508 | return d + 'd ago'; | |
| 509 | } | |
| 510 | function elapsed(ms){ | |
| 511 | if (ms < 0) ms = 0; | |
| 512 | var s = Math.floor(ms / 1000); | |
| 513 | if (s < 60) return s + 's'; | |
| 514 | var m = Math.floor(s / 60); | |
| 515 | var rem = s - m * 60; | |
| 516 | return m + 'm ' + rem + 's'; | |
| 517 | } | |
| 518 | ||
| 519 | function render(){ | |
| 520 | if (!pill || !text || !dot) return; | |
| 521 | var d = state.latest; | |
| 81201cc | 522 | // When there's no deploy event yet, keep the pill HIDDEN. Showing |
| 523 | // "No deploys yet" was visible noise on every admin page load and | |
| 524 | // flashed during reconnect cycles — admins don't need a placeholder. | |
| 525 | // The pill reveals itself the first time a real deploy fires. | |
| f764c07 | 526 | if (!d) { |
| 81201cc | 527 | pill.style.display = 'none'; |
| f764c07 | 528 | return; |
| 529 | } | |
| 530 | pill.style.display = 'inline-flex'; | |
| 531 | var now = Date.now(); | |
| 532 | if (d.status === 'in_progress') { | |
| 533 | pill.className = 'nav-deploy-pill deploy-pill-progress'; | |
| 534 | var started = Date.parse(d.started_at) || now; | |
| 535 | text.textContent = 'Deploying… ' + elapsed(now - started); | |
| 536 | } else if (d.status === 'succeeded') { | |
| 537 | pill.className = 'nav-deploy-pill deploy-pill-success'; | |
| 538 | var ref = Date.parse(d.finished_at || d.started_at) || now; | |
| 539 | text.textContent = 'Deployed ' + classifyAge(now - ref); | |
| 540 | } else if (d.status === 'failed') { | |
| 541 | pill.className = 'nav-deploy-pill deploy-pill-failed'; | |
| 542 | var refF = Date.parse(d.finished_at || d.started_at) || now; | |
| 543 | text.textContent = 'Deploy failed ' + classifyAge(now - refF); | |
| 544 | } else { | |
| 545 | pill.className = 'nav-deploy-pill'; | |
| 546 | text.textContent = d.status; | |
| 547 | } | |
| 548 | } | |
| 549 | ||
| 550 | function fetchLatest(){ | |
| 551 | fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' }) | |
| 552 | .then(function(r){ if (!r.ok) return null; return r.json(); }) | |
| 553 | .then(function(j){ | |
| 554 | if (!j || j.ok !== true) return; | |
| 555 | state.latest = j.latest; | |
| 556 | state.asOf = j.asOf; | |
| 557 | render(); | |
| 558 | subscribe(); | |
| 559 | }) | |
| 560 | .catch(function(){}); | |
| 561 | } | |
| 562 | ||
| 563 | var subscribed = false; | |
| 564 | function subscribe(){ | |
| 565 | if (subscribed) return; | |
| 566 | if (typeof EventSource === 'undefined') return; | |
| 567 | subscribed = true; | |
| 568 | var es; | |
| bf19c50 | 569 | // Exponential backoff with cap. Previously a tight 1500ms reconnect |
| 570 | // produced visible looping in the nav whenever the proxy timed out | |
| 571 | // or the connection blipped — the bottom-of-page deploy pill | |
| 572 | // re-rendered the placeholder every 1.5s. Cap at 60s and reset on | |
| 573 | // successful message receipt. | |
| 574 | var delay = 2000; | |
| 575 | var DELAY_MAX = 60000; | |
| 576 | function bump(){ | |
| 577 | delay = Math.min(delay * 2, DELAY_MAX); | |
| 578 | } | |
| 579 | function resetDelay(){ | |
| 580 | delay = 2000; | |
| 581 | } | |
| f764c07 | 582 | function connect(){ |
| 583 | try { es = new EventSource('/live-events/platform:deploys'); } | |
| bf19c50 | 584 | catch(e){ bump(); setTimeout(connect, delay); return; } |
| f764c07 | 585 | es.onmessage = function(m){ |
| bf19c50 | 586 | resetDelay(); |
| f764c07 | 587 | try { |
| 588 | var d = JSON.parse(m.data); | |
| 589 | if (d && d.run_id) { | |
| 590 | if (!state.latest || state.latest.run_id === d.run_id || | |
| 591 | Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) { | |
| 592 | state.latest = d; | |
| 593 | render(); | |
| 594 | } | |
| 595 | } | |
| 596 | } catch(e){} | |
| 597 | }; | |
| 598 | es.onerror = function(){ | |
| 599 | try { es.close(); } catch(e){} | |
| bf19c50 | 600 | bump(); |
| f764c07 | 601 | setTimeout(connect, delay); |
| 602 | }; | |
| 603 | } | |
| 604 | connect(); | |
| 605 | } | |
| 606 | ||
| 607 | function init(){ | |
| 608 | pill = document.getElementById('deploy-pill'); | |
| 609 | if (!pill) return; | |
| 610 | dot = pill.querySelector('.deploy-pill-dot'); | |
| 611 | text = pill.querySelector('.deploy-pill-text'); | |
| 612 | fetchLatest(); | |
| 613 | // Refresh relative-time labels every 15s so "12s ago" → "27s ago" | |
| 614 | // without a fresh fetch. | |
| 615 | setInterval(render, 15000); | |
| 616 | } | |
| 617 | if (document.readyState === 'loading') { | |
| 618 | document.addEventListener('DOMContentLoaded', init); | |
| 619 | } else { | |
| 620 | init(); | |
| 621 | } | |
| 622 | })(); | |
| 623 | `; | |
| 624 | ||
| 6fc53bd | 625 | // Runs before paint — reads the theme cookie and flips data-theme so there's |
| 81201cc | 626 | // no light-to-dark flash on load. SSR default is "light"; cookie-set "dark" |
| 627 | // is honoured for users who explicitly opted in. | |
| 6fc53bd | 628 | const themeInitScript = ` |
| 629 | (function(){ | |
| 630 | try { | |
| 631 | var m = document.cookie.match(/(?:^|; )theme=([^;]+)/); | |
| 81201cc | 632 | var t = m ? decodeURIComponent(m[1]) : 'light'; |
| 633 | if (t !== 'light' && t !== 'dark') t = 'light'; | |
| 6fc53bd | 634 | document.documentElement.setAttribute('data-theme', t); |
| 635 | } catch(_){} | |
| 636 | })(); | |
| 637 | `; | |
| 638 | ||
| eae38d1 | 639 | // Block G1 — register service worker for offline / install support. |
| 640 | // Kept inline (and tiny) so we don't block first paint. | |
| b1be050 | 641 | // |
| cf9178b | 642 | // Global toast notifications — reads ?success=, ?error=, ?toast= from the |
| 643 | // URL on page load and surfaces a polished slide-in toast instead of the | |
| 644 | // per-page banner divs that crowded the layout. Toasts auto-dismiss after | |
| 645 | // 4.5s; query params are scrubbed from the URL via history.replaceState | |
| 646 | // so a subsequent Refresh doesn't re-fire the same toast. | |
| 647 | // | |
| 648 | // Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values | |
| 649 | // must be URI-encoded (callers already do this via encodeURIComponent | |
| 650 | // in c.redirect()). | |
| 651 | const toastScript = ` | |
| 652 | (function(){ | |
| 653 | function showToast(kind, message){ | |
| 654 | if (!message) return; | |
| 655 | var host = document.getElementById('toast-host'); | |
| 656 | if (!host) return; | |
| 657 | var el = document.createElement('div'); | |
| 658 | el.className = 'gx-toast gx-toast--' + kind; | |
| 659 | el.setAttribute('role', kind === 'error' ? 'alert' : 'status'); | |
| 660 | var icon = document.createElement('span'); | |
| 661 | icon.className = 'gx-toast__icon'; | |
| 662 | icon.textContent = kind === 'success' ? '\\u2713' | |
| 663 | : kind === 'error' ? '\\u00D7' | |
| 664 | : kind === 'warn' ? '!' | |
| 665 | : 'i'; | |
| 666 | el.appendChild(icon); | |
| 667 | var text = document.createElement('span'); | |
| 668 | text.className = 'gx-toast__text'; | |
| 669 | text.textContent = message; | |
| 670 | el.appendChild(text); | |
| 671 | var close = document.createElement('button'); | |
| 672 | close.type = 'button'; | |
| 673 | close.className = 'gx-toast__close'; | |
| 674 | close.setAttribute('aria-label', 'Dismiss notification'); | |
| 675 | close.textContent = '\\u00D7'; | |
| 676 | close.addEventListener('click', function(){ dismiss(); }); | |
| 677 | el.appendChild(close); | |
| 678 | host.appendChild(el); | |
| 679 | // Force a reflow then add the visible class so the slide-in transitions. | |
| 680 | void el.offsetWidth; | |
| 681 | el.classList.add('gx-toast--in'); | |
| 682 | var timer = setTimeout(dismiss, 4500); | |
| 683 | function dismiss(){ | |
| 684 | clearTimeout(timer); | |
| 685 | el.classList.remove('gx-toast--in'); | |
| 686 | el.classList.add('gx-toast--out'); | |
| 687 | setTimeout(function(){ | |
| 688 | if (el.parentNode) el.parentNode.removeChild(el); | |
| 689 | }, 220); | |
| 690 | } | |
| 691 | } | |
| 692 | try { | |
| 693 | var url = new URL(window.location.href); | |
| 694 | var hits = 0; | |
| 695 | var s = url.searchParams.get('success'); | |
| 696 | if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; } | |
| 697 | var e = url.searchParams.get('error'); | |
| 698 | if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; } | |
| 699 | var t = url.searchParams.get('toast'); | |
| 700 | if (t) { | |
| 701 | var ix = t.indexOf(':'); | |
| 702 | var kind = ix > 0 ? t.slice(0, ix) : 'info'; | |
| 703 | var msg = ix > 0 ? t.slice(ix + 1) : t; | |
| 704 | showToast(kind, msg); | |
| 705 | url.searchParams.delete('toast'); | |
| 706 | hits++; | |
| 707 | } | |
| 708 | if (hits > 0 && window.history && window.history.replaceState) { | |
| 709 | window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash); | |
| 710 | } | |
| 711 | } catch(_) {} | |
| 712 | })(); | |
| 713 | `; | |
| 714 | ||
| 44fe49b | 715 | // PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript |
| 716 | // and pwaInstallBannerScript. Those two scripts registered /sw.js and | |
| 717 | // /sw-push.js at the same scope, causing a reload loop that made the | |
| 718 | // admin dashboard unusable (deploy pill flashing, typing wiped, buttons | |
| 719 | // uncllickable). Per the SW spec, only one SW can control a scope; two | |
| 720 | // different script URLs at the same scope keep replacing each other. | |
| 6345c3e | 721 | // |
| 44fe49b | 722 | // PWA is gone for good. A git host has no use for service workers, |
| 723 | // install-as-app, or push notifications via SW. This script actively | |
| 724 | // unregisters every previously installed SW on the gluecron.com origin | |
| 725 | // so any browser still trapped in the loop recovers on the very next | |
| 726 | // page load — without needing the user to clear site data or open | |
| 727 | // DevTools. Idempotent and safe to keep running forever; once all | |
| 728 | // browsers have been cleaned, it's a no-op. | |
| 729 | const pwaKillSwitchScript = ` | |
| 534f04a | 730 | (function(){ |
| 731 | try { | |
| 44fe49b | 732 | if (!('serviceWorker' in navigator)) return; |
| 733 | if (!navigator.serviceWorker.getRegistrations) return; | |
| 734 | navigator.serviceWorker.getRegistrations().then(function(regs){ | |
| 735 | if (!regs || regs.length === 0) return; | |
| 736 | regs.forEach(function(reg){ | |
| 737 | try { reg.unregister(); } catch(_){} | |
| 738 | }); | |
| 739 | }).catch(function(){}); | |
| 740 | // Also drop any caches the old SWs left behind so the user gets | |
| 741 | // truly fresh HTML on every page load. Restricted to gluecron-* | |
| 742 | // namespaced caches so we don't trample anything a future opt-in | |
| 743 | // feature might create under a different name. | |
| 744 | if ('caches' in self) { | |
| 745 | caches.keys().then(function(keys){ | |
| 746 | keys.forEach(function(k){ | |
| 747 | if (typeof k === 'string' && k.indexOf('gluecron') === 0) { | |
| 748 | try { caches.delete(k); } catch(_){} | |
| d7ba05d | 749 | } |
| 750 | }); | |
| 751 | }).catch(function(){}); | |
| 534f04a | 752 | } |
| 753 | } catch(_) {} | |
| 754 | })(); | |
| 755 | `; | |
| 756 | ||
| 3ef4c9d | 757 | const navScript = ` |
| 758 | (function(){ | |
| 759 | var chord = null; | |
| 760 | var chordTimer = null; | |
| 761 | function isTyping(t){ | |
| 762 | t = t || {}; | |
| 763 | var tag = (t.tagName || '').toLowerCase(); | |
| 764 | return tag === 'input' || tag === 'textarea' || t.isContentEditable; | |
| 765 | } | |
| 71cd5ec | 766 | |
| 767 | // ---------- Block I4 — Command palette ---------- | |
| 768 | var COMMANDS = [ | |
| 769 | { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' }, | |
| 770 | { label: 'Go to Explore', href: '/explore', kw: 'browse discover' }, | |
| 771 | { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' }, | |
| 772 | { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' }, | |
| 773 | { label: 'Create new repository', href: '/new', kw: 'add create' }, | |
| 774 | { label: 'Marketplace', href: '/marketplace', kw: 'apps store' }, | |
| 775 | { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' }, | |
| 776 | { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' }, | |
| 777 | { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' }, | |
| 778 | { label: 'Settings (profile)', href: '/settings', kw: 'account' }, | |
| 779 | { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' }, | |
| 780 | { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' }, | |
| 781 | { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' }, | |
| 782 | { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' }, | |
| 8809b87 | 783 | { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' }, |
| 71cd5ec | 784 | { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' }, |
| 785 | { label: 'Gists', href: '/gists', kw: 'snippets' }, | |
| 786 | { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' }, | |
| 787 | { label: 'Admin dashboard', href: '/admin', kw: 'superuser' }, | |
| 788 | { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' } | |
| 789 | ]; | |
| 790 | ||
| 791 | function fuzzyMatch(item, q){ | |
| 792 | if (!q) return true; | |
| 793 | var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase(); | |
| 794 | q = q.toLowerCase(); | |
| 795 | var qi = 0; | |
| 796 | for (var i = 0; i < hay.length && qi < q.length; i++) { | |
| 797 | if (hay[i] === q[qi]) qi++; | |
| 798 | } | |
| 799 | return qi === q.length; | |
| 800 | } | |
| 801 | ||
| 802 | var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice(); | |
| 803 | ||
| 804 | function render(){ | |
| 805 | if (!list) return; | |
| 806 | var html = ''; | |
| 807 | for (var i = 0; i < filtered.length; i++) { | |
| 808 | var item = filtered[i]; | |
| 809 | var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item'; | |
| 810 | var bg = i === selected ? 'background:var(--bg);' : ''; | |
| ea52715 | 811 | html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' + |
| dc26881 | 812 | ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' + |
| 71cd5ec | 813 | '<div>' + item.label + '</div>' + |
| 814 | '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' + | |
| 815 | '</div>'; | |
| 816 | } | |
| 817 | if (filtered.length === 0) { | |
| dc26881 | 818 | html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>'; |
| 71cd5ec | 819 | } |
| 820 | list.innerHTML = html; | |
| 821 | } | |
| 822 | ||
| 641aa42 | 823 | function getAllCommands(){ |
| 824 | // Merge global COMMANDS with repo-context commands injected by repo pages. | |
| 825 | var extra = (window.__CMDK_REPO_COMMANDS && Array.isArray(window.__CMDK_REPO_COMMANDS)) | |
| 826 | ? window.__CMDK_REPO_COMMANDS : []; | |
| 827 | return COMMANDS.concat(extra); | |
| 828 | } | |
| 829 | ||
| 71cd5ec | 830 | function openPalette(){ |
| 831 | backdrop = document.getElementById('cmdk-backdrop'); | |
| 832 | panel = document.getElementById('cmdk-panel'); | |
| 833 | input = document.getElementById('cmdk-input'); | |
| 834 | list = document.getElementById('cmdk-list'); | |
| 835 | if (!backdrop || !panel) return; | |
| 836 | backdrop.style.display = 'block'; | |
| 837 | panel.style.display = 'block'; | |
| 838 | input.value = ''; | |
| 839 | selected = 0; | |
| 641aa42 | 840 | filtered = getAllCommands(); |
| 71cd5ec | 841 | render(); |
| 842 | input.focus(); | |
| 843 | } | |
| 844 | function closePalette(){ | |
| 845 | if (backdrop) backdrop.style.display = 'none'; | |
| 846 | if (panel) panel.style.display = 'none'; | |
| 847 | } | |
| 848 | function go(href){ closePalette(); window.location.href = href; } | |
| 849 | ||
| 850 | document.addEventListener('click', function(e){ | |
| 851 | var t = e.target; | |
| 852 | if (t && t.id === 'cmdk-backdrop') { closePalette(); return; } | |
| 853 | var item = t && t.closest && t.closest('.cmdk-item'); | |
| ea52715 | 854 | if (item) { go(item.getAttribute('data-url')); } |
| 71cd5ec | 855 | }); |
| 856 | ||
| 857 | document.addEventListener('input', function(e){ | |
| 858 | if (e.target && e.target.id === 'cmdk-input') { | |
| 859 | var q = e.target.value; | |
| 641aa42 | 860 | filtered = getAllCommands().filter(function(c){ return fuzzyMatch(c, q); }); |
| 71cd5ec | 861 | selected = 0; |
| 862 | render(); | |
| 863 | } | |
| 864 | }); | |
| 865 | ||
| 3ef4c9d | 866 | document.addEventListener('keydown', function(e){ |
| 71cd5ec | 867 | // Palette-scoped keys take priority when open |
| 868 | if (panel && panel.style.display === 'block') { | |
| 869 | if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; } | |
| 870 | if (e.key === 'ArrowDown') { | |
| 871 | e.preventDefault(); | |
| 872 | selected = Math.min(filtered.length - 1, selected + 1); | |
| 873 | render(); | |
| 874 | return; | |
| 875 | } | |
| 876 | if (e.key === 'ArrowUp') { | |
| 877 | e.preventDefault(); | |
| 878 | selected = Math.max(0, selected - 1); | |
| 879 | render(); | |
| 880 | return; | |
| 881 | } | |
| 882 | if (e.key === 'Enter') { | |
| 883 | e.preventDefault(); | |
| 884 | var item = filtered[selected]; | |
| 885 | if (item) go(item.href); | |
| 886 | return; | |
| 887 | } | |
| 888 | return; | |
| 889 | } | |
| 890 | ||
| 3ef4c9d | 891 | if (isTyping(e.target)) return; |
| 892 | // Single key shortcuts | |
| 893 | if (e.key === '/') { | |
| 894 | var el = document.querySelector('.nav-search input'); | |
| 895 | if (el) { e.preventDefault(); el.focus(); return; } | |
| 896 | } | |
| 897 | if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') { | |
| 71cd5ec | 898 | e.preventDefault(); |
| 899 | openPalette(); | |
| 900 | return; | |
| 3ef4c9d | 901 | } |
| 902 | if (e.key === '?' && !e.ctrlKey && !e.metaKey) { | |
| 903 | e.preventDefault(); window.location.href = '/shortcuts'; return; | |
| 904 | } | |
| 905 | if (e.key === 'n' && !e.ctrlKey && !e.metaKey) { | |
| 641aa42 | 906 | // Start 'n' chord — wait 1.2s for next key (i → issue, p → PR). |
| 907 | // If no second key arrives, navigate to /new (create repo). | |
| 908 | chord = 'n'; | |
| 909 | clearTimeout(chordTimer); | |
| 910 | chordTimer = setTimeout(function(){ | |
| 911 | if (chord === 'n') { window.location.href = '/new'; } | |
| 912 | chord = null; | |
| 913 | }, 1200); | |
| 914 | return; | |
| 3ef4c9d | 915 | } |
| 916 | // "g" chord | |
| 917 | if (e.key === 'g' && !e.ctrlKey && !e.metaKey) { | |
| 918 | chord = 'g'; | |
| 919 | clearTimeout(chordTimer); | |
| 920 | chordTimer = setTimeout(function(){ chord = null; }, 1200); | |
| 921 | return; | |
| 922 | } | |
| 923 | if (chord === 'g') { | |
| 924 | if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; } | |
| 925 | else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; } | |
| 926 | else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; } | |
| 927 | else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; } | |
| 928 | chord = null; | |
| 929 | } | |
| 641aa42 | 930 | // "n" chord — new issue / new PR (repo-context-aware) |
| 931 | if (chord === 'n') { | |
| 932 | var repoCtx = window.__CMDK_REPO_COMMANDS; | |
| 933 | var newIssuePath = repoCtx && repoCtx.length ? repoCtx[0].href.replace('/issues/new', '/issues/new') : null; | |
| 934 | // Find the "new issue" and "new PR" hrefs from repo context commands | |
| 935 | var issueCmd = repoCtx && repoCtx.find(function(c){ return c.href && c.href.indexOf('/issues/new') !== -1; }); | |
| 936 | var prCmd = repoCtx && repoCtx.find(function(c){ return c.href && c.href.indexOf('/pulls/new') !== -1; }); | |
| 937 | if (e.key === 'i' && issueCmd) { | |
| 938 | e.preventDefault(); clearTimeout(chordTimer); chord = null; | |
| 939 | window.location.href = issueCmd.href; return; | |
| 940 | } | |
| 941 | if (e.key === 'p' && prCmd) { | |
| 942 | e.preventDefault(); clearTimeout(chordTimer); chord = null; | |
| 943 | window.location.href = prCmd.href; return; | |
| 944 | } | |
| 945 | } | |
| 5882af3 | 946 | // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows |
| 947 | if (e.key === 'j' || e.key === 'k') { | |
| 948 | var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row'; | |
| 949 | var items = Array.from(document.querySelectorAll(selectors)); | |
| 950 | if (items.length === 0) return; | |
| 951 | e.preventDefault(); | |
| 952 | var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); }); | |
| 953 | var next = e.key === 'j' ? (cur < 0 ? 0 : Math.min(items.length - 1, cur + 1)) : (cur < 0 ? items.length - 1 : Math.max(0, cur - 1)); | |
| 954 | items.forEach(function(el){ el.classList.remove('is-kbd-focus'); }); | |
| 955 | items[next].classList.add('is-kbd-focus'); | |
| 956 | items[next].scrollIntoView({ block: 'nearest' }); | |
| 957 | return; | |
| 958 | } | |
| 959 | if (e.key === 'Enter') { | |
| 960 | var focused = document.querySelector('.is-kbd-focus'); | |
| 961 | if (focused) { | |
| 962 | e.preventDefault(); | |
| 963 | var link = focused.tagName === 'A' ? focused : focused.querySelector('a'); | |
| 964 | if (link && link.href) { window.location.href = link.href; } | |
| 965 | return; | |
| 966 | } | |
| 967 | } | |
| 968 | if (e.key === 'x') { | |
| 969 | // 'x' selects/deselects focused item (future: bulk actions) | |
| 970 | var sel = document.querySelector('.is-kbd-focus'); | |
| 971 | if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; } | |
| 972 | } | |
| 3ef4c9d | 973 | }); |
| 974 | })(); | |
| 975 | `; | |
| 976 | ||
| b7ecb14 | 977 | // Bell poller — updates the inbox badge count every 60 s via /api/notifications/count. |
| 978 | // Only injected when a user is logged in (checked in the JSX above). Uses the | |
| 979 | // `.nav-inbox-badge` element that the server renders inside `.nav-inbox-btn`. | |
| 980 | // If the badge element is absent (user not logged in, DOM mismatch) it exits | |
| 981 | // cleanly without error. | |
| 982 | export const bellPollerScript = ` | |
| 983 | (function() { | |
| 984 | var badge = document.querySelector('.nav-inbox-btn .nav-inbox-badge'); | |
| 985 | var btn = document.querySelector('.nav-inbox-btn'); | |
| 986 | function updateBadge(n) { | |
| 987 | if (!btn) return; | |
| 988 | if (n > 0) { | |
| 989 | var label = n > 99 ? '99+' : String(n); | |
| 990 | if (!badge) { | |
| 991 | badge = document.createElement('span'); | |
| 992 | badge.className = 'nav-inbox-badge'; | |
| 993 | badge.setAttribute('aria-hidden', 'true'); | |
| 994 | btn.appendChild(badge); | |
| 995 | } | |
| 996 | badge.textContent = label; | |
| 997 | badge.style.display = ''; | |
| 998 | btn.setAttribute('aria-label', 'Inbox — ' + n + ' unread'); | |
| 999 | } else { | |
| 1000 | if (badge) badge.style.display = 'none'; | |
| 1001 | btn.setAttribute('aria-label', 'Inbox'); | |
| 1002 | } | |
| 1003 | } | |
| 1004 | function poll() { | |
| 1005 | fetch('/api/notifications/count', { credentials: 'same-origin', cache: 'no-store' }) | |
| 1006 | .then(function(r) { return r.ok ? r.json() : null; }) | |
| 1007 | .then(function(d) { | |
| 1008 | if (!d) return; | |
| 1009 | var n = typeof d.unread === 'number' ? d.unread : (typeof d.count === 'number' ? d.count : 0); | |
| 1010 | updateBadge(n); | |
| 1011 | }) | |
| 1012 | .catch(function() {}); | |
| 1013 | } | |
| 1014 | if (document.readyState === 'loading') { | |
| 1015 | document.addEventListener('DOMContentLoaded', function() { poll(); setInterval(poll, 60000); }); | |
| 1016 | } else { | |
| 1017 | poll(); | |
| 1018 | setInterval(poll, 60000); | |
| 1019 | } | |
| 1020 | })(); | |
| 1021 | `; | |
| 1022 | ||
| c6018a5 | 1023 | // AI dropdown — keyboard- and click-accessible menu in the top nav. |
| 1024 | // CSS handles the hover-open behaviour for pointer users; this script | |
| 1025 | // adds click-to-toggle for touch, Escape-to-close, and outside-click- | |
| 1026 | // to-close. Lives in its own IIFE so it never interferes with navScript. | |
| 1027 | const navAiDropdownScript = ` | |
| 1028 | (function(){ | |
| f5b9ef5 | 1029 | function makeDropdown(rootSel, triggerSel, menuSel) { |
| 1030 | var open = false; | |
| 1031 | var root = document.querySelector(rootSel); | |
| 1032 | if (!root) return; | |
| 1033 | var trigger = root.querySelector(triggerSel); | |
| 1034 | var menu = root.querySelector(menuSel); | |
| 1035 | if (!trigger || !menu) return; | |
| 1036 | function setOpen(next){ | |
| 1037 | open = !!next; | |
| 1038 | root.classList.toggle('is-open', open); | |
| 1039 | menu.classList.toggle('is-open', open); | |
| 1040 | trigger.setAttribute('aria-expanded', open ? 'true' : 'false'); | |
| 1041 | } | |
| 1042 | trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); }); | |
| 1043 | document.addEventListener('click', function(e){ | |
| 1044 | if (!open) return; | |
| 1045 | if (root.contains(e.target)) return; | |
| 1046 | setOpen(false); | |
| 1047 | }); | |
| 1048 | document.addEventListener('keydown', function(e){ | |
| 1049 | if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); } | |
| 1050 | }); | |
| c6018a5 | 1051 | } |
| f5b9ef5 | 1052 | makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]'); |
| 1053 | makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]'); | |
| c6018a5 | 1054 | })(); |
| 1055 | `; | |
| 1056 | ||
| fc1817a | 1057 | const css = ` |
| 2ce1d0b | 1058 | /* ================================================================ |
| 479dcd9 | 1059 | * Gluecron design system — 2026.06 "Calm Infrastructure" |
| 1060 | * Slate base · single calm indigo accent · hairline geometry · | |
| 1061 | * mono-as-feature · restrained motion · Inter Tight + JetBrains Mono. | |
| 1062 | * Visual language targets trustworthy developer infrastructure | |
| 1063 | * (GitHub / Linear / Stripe), not neon sci-fi. All class names and | |
| 1064 | * token names preserved for back-compat across 50+ route views — | |
| 1065 | * legacy tokens (e.g. --accent-glow, --accent-gradient) remain | |
| 1066 | * defined as calm aliases so scattered users keep working. | |
| 2ce1d0b | 1067 | * ============================================================== */ |
| 6fc53bd | 1068 | :root, :root[data-theme='dark'] { |
| ba23fe2 | 1069 | /* Surfaces — GitHub-calibrated slate. Readable, warm, never black-void. */ |
| 1070 | --bg: #0d1117; | |
| 1071 | --bg-secondary: #161b22; | |
| 1072 | --bg-tertiary: #1c2128; | |
| 1073 | --bg-elevated: #161b22; | |
| 1074 | --bg-surface: #21262d; | |
| 1075 | --bg-hover: rgba(255,255,255,0.05); | |
| 1076 | --bg-active: rgba(255,255,255,0.09); | |
| 1077 | --bg-inset: rgba(0,0,0,0.25); | |
| 958d26a | 1078 | |
| 1079 | /* Borders — three weights, used deliberately */ | |
| 1080 | --border: rgba(255,255,255,0.06); | |
| 1081 | --border-subtle: rgba(255,255,255,0.035); | |
| 1082 | --border-strong: rgba(255,255,255,0.13); | |
| 479dcd9 | 1083 | --border-focus: rgba(91,110,232,0.55); |
| 958d26a | 1084 | |
| 1085 | /* Text */ | |
| 1086 | --text: #ededf2; | |
| 1087 | --text-strong: #f7f7fb; | |
| 1088 | --text-muted: #8b8c9c; | |
| 1089 | --text-faint: #555665; | |
| 479dcd9 | 1090 | --text-link: #9aa8ef; |
| 1091 | ||
| 1092 | /* Accent — single calm indigo. --accent-2 is a desaturated | |
| 1093 | slate-teal kept only for the rare secondary signal; the old | |
| 1094 | electric cyan pairing is gone. Gradient tokens survive as | |
| 1095 | near-flat two-stops so existing gradient consumers render as | |
| 1096 | a quiet single hue. --accent-glow is now a faint 1px ring. */ | |
| 1097 | --accent: #5b6ee8; | |
| 1098 | --accent-2: #5f8fa0; | |
| 1099 | --accent-warm: #d9a662; | |
| 1100 | --accent-hover: #7585ee; | |
| 1101 | --accent-pressed:#4a5ad1; | |
| 1102 | --accent-gradient: linear-gradient(135deg, #5b6ee8 0%, #5365dd 100%); | |
| 1103 | --accent-gradient-soft: linear-gradient(135deg, rgba(91,110,232,0.14) 0%, rgba(83,101,221,0.14) 100%); | |
| 1104 | --accent-gradient-faint: linear-gradient(135deg, rgba(91,110,232,0.06) 0%, rgba(83,101,221,0.06) 100%); | |
| 1105 | --accent-glow: 0 0 0 1px rgba(91,110,232,0.22); | |
| 958d26a | 1106 | |
| 1107 | /* Semantic */ | |
| 1108 | --green: #34d399; | |
| 1109 | --red: #f87171; | |
| 1110 | --yellow: #fbbf24; | |
| 1111 | --amber: #fbbf24; | |
| 1112 | --blue: #60a5fa; | |
| 1113 | ||
| 3a5755e | 1114 | /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for |
| 1115 | display (headlines), JetBrains Mono for code. All three loaded from | |
| 1116 | Google Fonts with display:swap so we never block first paint. System | |
| 1117 | fallbacks remain in place — if the CDN is unreachable the site still | |
| 1118 | renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */ | |
| 1119 | --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace; | |
| 1120 | --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| 1121 | --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| 958d26a | 1122 | --mono-feat: 'calt', 'liga', 'ss01'; |
| 1123 | ||
| 1124 | /* Radius — sharper than before */ | |
| 1125 | --r-sm: 5px; | |
| 1126 | --r: 7px; | |
| 1127 | --r-md: 9px; | |
| 1128 | --r-lg: 12px; | |
| 1129 | --r-xl: 16px; | |
| 1130 | --r-2xl: 22px; | |
| 1131 | --r-full: 9999px; | |
| 1132 | --radius: 7px; | |
| 1133 | ||
| 1134 | /* Type scale — bigger display sizes for editorial feel */ | |
| 1135 | --t-xs: 11px; | |
| 1136 | --t-sm: 13px; | |
| 1137 | --t-base: 14px; | |
| 1138 | --t-md: 16px; | |
| 1139 | --t-lg: 20px; | |
| 1140 | --t-xl: 28px; | |
| 1141 | --t-2xl: 40px; | |
| 1142 | --t-3xl: 56px; | |
| 1143 | --t-display: 72px; | |
| 1144 | --t-display-lg:96px; | |
| 1145 | ||
| 1146 | /* Spacing — 4px base */ | |
| 2ce1d0b | 1147 | --s-0: 0; |
| 958d26a | 1148 | --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; |
| 1149 | --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px; | |
| 1150 | --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px; | |
| 1151 | --s-20:80px; --s-24:96px; --s-32:128px; | |
| 1152 | ||
| 1153 | /* Elevation — softer + more layered */ | |
| 1154 | --elev-0: 0 0 0 1px var(--border); | |
| 1155 | --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border); | |
| 1156 | --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border); | |
| 1157 | --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong); | |
| 479dcd9 | 1158 | --elev-glow: 0 0 0 1px rgba(91,110,232,0.32); |
| 1159 | --ring: 0 0 0 3px rgba(91,110,232,0.28); | |
| 958d26a | 1160 | --ring-warn: 0 0 0 3px rgba(251,191,36,0.28); |
| 1161 | --ring-err: 0 0 0 3px rgba(248,113,113,0.28); | |
| 1162 | ||
| 1163 | /* Motion */ | |
| 1164 | --ease: cubic-bezier(0.16, 1, 0.3, 1); | |
| 1165 | --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); | |
| 1166 | --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1); | |
| 1167 | --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1); | |
| 1168 | --t-fast: 120ms; | |
| 1169 | --t-base: 200ms; | |
| 1170 | --t-slow: 360ms; | |
| 1171 | --t-slower:560ms; | |
| 1172 | ||
| 1173 | --header-h: 60px; | |
| c63b860 | 1174 | |
| 1175 | /* Block O3 — visual coherence: named token aliases (additive). */ | |
| 1176 | --space-1: var(--s-1); | |
| 1177 | --space-2: var(--s-2); | |
| 1178 | --space-3: var(--s-3); | |
| 1179 | --space-4: var(--s-4); | |
| 1180 | --space-5: var(--s-5); | |
| 1181 | --space-6: var(--s-6); | |
| 1182 | --space-8: var(--s-8); | |
| 1183 | --space-10: var(--s-10); | |
| 1184 | --space-12: var(--s-12); | |
| 1185 | --space-16: var(--s-16); | |
| 1186 | --space-20: var(--s-20); | |
| 1187 | --space-24: var(--s-24); | |
| 1188 | --radius-sm: var(--r-sm); | |
| 1189 | --radius-md: var(--r-md); | |
| 1190 | --radius-lg: var(--r-lg); | |
| 1191 | --radius-xl: var(--r-xl); | |
| 1192 | --radius-full: var(--r-full); | |
| 1193 | --font-size-xs: var(--t-xs); | |
| 1194 | --font-size-sm: var(--t-sm); | |
| 1195 | --font-size-base: var(--t-base); | |
| 1196 | --font-size-md: var(--t-md); | |
| 1197 | --font-size-lg: var(--t-lg); | |
| 1198 | --font-size-xl: var(--t-xl); | |
| 1199 | --font-size-2xl: var(--t-2xl); | |
| 1200 | --font-size-3xl: var(--t-3xl); | |
| 1201 | --font-size-hero: var(--t-display); | |
| 1202 | --leading-tight: 1.2; | |
| 1203 | --leading-snug: 1.35; | |
| 1204 | --leading-normal: 1.5; | |
| 1205 | --leading-relaxed: 1.6; | |
| 1206 | --leading-loose: 1.7; | |
| 1207 | --z-base: 1; | |
| 1208 | --z-nav: 10; | |
| 1209 | --z-sticky: 50; | |
| 1210 | --z-overlay: 100; | |
| 1211 | --z-modal: 1000; | |
| 1212 | --z-toast: 10000; | |
| fc1817a | 1213 | } |
| 1214 | ||
| 6fc53bd | 1215 | :root[data-theme='light'] { |
| 958d26a | 1216 | --bg: #fbfbfc; |
| 4c47454 | 1217 | --bg-secondary: #ffffff; |
| 958d26a | 1218 | --bg-tertiary: #f3f3f6; |
| 1219 | --bg-elevated: #ffffff; | |
| 1220 | --bg-surface: #f6f6f9; | |
| 1221 | --bg-hover: rgba(0,0,0,0.035); | |
| 1222 | --bg-active: rgba(0,0,0,0.07); | |
| 1223 | --bg-inset: rgba(0,0,0,0.04); | |
| 1224 | ||
| 1225 | --border: rgba(15,16,28,0.08); | |
| 1226 | --border-subtle: rgba(15,16,28,0.04); | |
| 1227 | --border-strong: rgba(15,16,28,0.16); | |
| 1228 | ||
| 1229 | --text: #0e1020; | |
| 1230 | --text-strong: #050617; | |
| 1231 | --text-muted: #5a5b70; | |
| 1232 | --text-faint: #8a8b9e; | |
| 479dcd9 | 1233 | --text-link: #4353c9; |
| 958d26a | 1234 | |
| 479dcd9 | 1235 | --accent: #4353c9; |
| 1236 | --accent-2: #41707e; | |
| 1237 | --accent-hover: #3848b6; | |
| 1238 | --accent-pressed:#2e3c9d; | |
| 1239 | --accent-glow: 0 0 0 1px rgba(67,83,201,0.15); | |
| 1240 | --border-focus: rgba(67,83,201,0.50); | |
| 1241 | --ring: 0 0 0 3px rgba(67,83,201,0.20); | |
| 958d26a | 1242 | |
| 1243 | --green: #059669; | |
| 1244 | --red: #dc2626; | |
| 4c47454 | 1245 | --yellow: #d97706; |
| 958d26a | 1246 | |
| 1247 | --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border); | |
| 1248 | --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border); | |
| 1249 | --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong); | |
| 6fc53bd | 1250 | } |
| 1251 | ||
| 1252 | /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */ | |
| 958d26a | 1253 | .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; } |
| 1254 | .nav-theme:hover { opacity: 1; } | |
| 6fc53bd | 1255 | :root[data-theme='dark'] .theme-icon-dark { display: none; } |
| 1256 | :root[data-theme='light'] .theme-icon-light { display: none; } | |
| 1257 | ||
| fc1817a | 1258 | * { margin: 0; padding: 0; box-sizing: border-box; } |
| 479dcd9 | 1259 | *::selection { background: rgba(91,110,232,0.32); color: var(--text-strong); } |
| 2ce1d0b | 1260 | |
| 958d26a | 1261 | html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } |
| fc1817a | 1262 | |
| 1263 | body { | |
| 1264 | font-family: var(--font-sans); | |
| 1265 | background: var(--bg); | |
| 1266 | color: var(--text); | |
| cf9178b | 1267 | font-size: 15px; |
| 2ce1d0b | 1268 | line-height: 1.55; |
| 958d26a | 1269 | letter-spacing: -0.011em; |
| fc1817a | 1270 | min-height: 100vh; |
| 1271 | display: flex; | |
| 1272 | flex-direction: column; | |
| 958d26a | 1273 | font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt'; |
| cf9178b | 1274 | /* Subtle: prefers grayscale font smoothing on macOS for thin text, |
| 1275 | and disables automatic synthesis of bold/italic which can produce | |
| 1276 | muddier rendering on certain weights. */ | |
| 1277 | -webkit-font-smoothing: antialiased; | |
| 1278 | -moz-osx-font-smoothing: grayscale; | |
| 1279 | font-synthesis: none; | |
| 1280 | } | |
| 1281 | /* Tighten heading rhythm — the body is 15/1.55, headings step down | |
| 1282 | line-height inversely with size so display text doesn't feel airy. */ | |
| 1283 | h1, h2, h3, h4, h5, h6 { | |
| 1284 | font-family: var(--font-display); | |
| 1285 | color: var(--text-strong); | |
| 1286 | letter-spacing: -0.022em; | |
| 1287 | line-height: 1.18; | |
| 1288 | font-weight: 650; | |
| 1289 | margin-top: 0; | |
| 1290 | } | |
| 1291 | h1 { font-size: 28px; letter-spacing: -0.028em; } | |
| 1292 | h2 { font-size: 22px; } | |
| 1293 | h3 { font-size: 18px; letter-spacing: -0.018em; } | |
| 1294 | h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; } | |
| 1295 | /* Link refinement — underline only on hover/focus, never by default | |
| 1296 | on internal nav. Prevents the "blue underline soup" look. */ | |
| 1297 | a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); } | |
| 1298 | a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; } | |
| 1299 | a:focus-visible { | |
| 1300 | outline: none; | |
| 479dcd9 | 1301 | box-shadow: 0 0 0 3px rgba(91,110,232,0.32); |
| cf9178b | 1302 | border-radius: 3px; |
| fc1817a | 1303 | } |
| 1304 | ||
| ba23fe2 | 1305 | /* No full-page atmosphere overlay — clean backgrounds signal trustworthy |
| 1306 | infrastructure. Effects live on pages that earn them (landing hero only). */ | |
| 2ce1d0b | 1307 | |
| 1308 | a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); } | |
| 1309 | a:hover { color: var(--accent-hover); text-decoration: none; } | |
| fc1817a | 1310 | |
| 958d26a | 1311 | /* Heading scale — confident, editorial, tight tracking */ |
| 1312 | h1, h2, h3, h4, h5, h6 { | |
| 1313 | font-family: var(--font-display); | |
| 2ce1d0b | 1314 | font-weight: 600; |
| 958d26a | 1315 | letter-spacing: -0.022em; |
| 1316 | line-height: 1.18; | |
| 1317 | color: var(--text-strong); | |
| 1318 | } | |
| 1319 | h1 { font-size: var(--t-xl); letter-spacing: -0.028em; } | |
| 1320 | h2 { font-size: var(--t-lg); letter-spacing: -0.022em; } | |
| 1321 | h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; } | |
| 1322 | h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; } | |
| 1323 | h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; } | |
| 1324 | ||
| 1325 | /* Editorial display heading utility — used by landing + marketing pages */ | |
| 1326 | .display { | |
| 1327 | font-family: var(--font-display); | |
| 1328 | font-size: clamp(40px, 7.5vw, 96px); | |
| 1329 | line-height: 0.98; | |
| 1330 | letter-spacing: -0.04em; | |
| 1331 | font-weight: 600; | |
| 1332 | color: var(--text-strong); | |
| 2ce1d0b | 1333 | } |
| fc1817a | 1334 | |
| 958d26a | 1335 | /* Eyebrow — uppercase mono label that sits above section headings */ |
| 1336 | .eyebrow { | |
| 1337 | display: inline-flex; | |
| 1338 | align-items: center; | |
| 1339 | gap: 8px; | |
| 1340 | font-family: var(--font-mono); | |
| 1341 | font-size: 11px; | |
| 1342 | font-weight: 500; | |
| 1343 | letter-spacing: 0.14em; | |
| 1344 | text-transform: uppercase; | |
| 1345 | color: var(--accent); | |
| 1346 | margin-bottom: var(--s-3); | |
| 1347 | } | |
| 1348 | .eyebrow::before { | |
| 1349 | content: ''; | |
| 1350 | width: 18px; | |
| 1351 | height: 1px; | |
| 1352 | background: currentColor; | |
| 1353 | opacity: 0.6; | |
| 1354 | } | |
| 1355 | ||
| 1356 | /* Section header — paired eyebrow + title + lede */ | |
| 1357 | .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; } | |
| 1358 | .section-header.left { text-align: left; margin-left: 0; margin-right: auto; } | |
| 1359 | .section-header h2 { | |
| 1360 | font-size: clamp(28px, 4vw, 44px); | |
| 1361 | line-height: 1.05; | |
| 1362 | letter-spacing: -0.028em; | |
| 1363 | margin-bottom: var(--s-3); | |
| 1364 | } | |
| 1365 | .section-header p { | |
| 1366 | color: var(--text-muted); | |
| 1367 | font-size: var(--t-md); | |
| 1368 | line-height: 1.6; | |
| 1369 | max-width: 580px; | |
| 1370 | margin: 0 auto; | |
| 1371 | } | |
| 1372 | .section-header.left p { margin-left: 0; } | |
| fc1817a | 1373 | |
| 958d26a | 1374 | code, kbd, samp { |
| 2ce1d0b | 1375 | font-family: var(--font-mono); |
| 958d26a | 1376 | font-feature-settings: var(--mono-feat); |
| 1377 | } | |
| 1378 | code { | |
| 1379 | font-size: 0.9em; | |
| 2ce1d0b | 1380 | background: var(--bg-tertiary); |
| 958d26a | 1381 | border: 1px solid var(--border-subtle); |
| 2ce1d0b | 1382 | padding: 1px 6px; |
| 1383 | border-radius: var(--r-sm); | |
| 1384 | color: var(--text); | |
| 1385 | } | |
| 958d26a | 1386 | kbd, .kbd { |
| 1387 | display: inline-flex; | |
| 1388 | align-items: center; | |
| 1389 | padding: 1px 6px; | |
| 1390 | font-family: var(--font-mono); | |
| 1391 | font-size: 11px; | |
| 1392 | background: var(--bg-elevated); | |
| 1393 | border: 1px solid var(--border); | |
| 1394 | border-bottom-width: 2px; | |
| 1395 | border-radius: 4px; | |
| 1396 | color: var(--text); | |
| 1397 | line-height: 1.5; | |
| 1398 | vertical-align: middle; | |
| 1399 | } | |
| 2ce1d0b | 1400 | |
| 958d26a | 1401 | /* Mono utility for technical chrome (paths, IDs, dates) */ |
| 1402 | .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; } | |
| 1403 | .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; } | |
| 1404 | ||
| 1405 | /* Pre-launch banner — slim, refined, mono caption */ | |
| 4a52a98 | 1406 | .prelaunch-banner { |
| 958d26a | 1407 | position: relative; |
| 2ce1d0b | 1408 | background: |
| 958d26a | 1409 | linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)), |
| 2ce1d0b | 1410 | var(--bg); |
| 958d26a | 1411 | border-bottom: 1px solid rgba(251,191,36,0.28); |
| 4a52a98 | 1412 | color: var(--yellow); |
| 958d26a | 1413 | padding: 7px 24px; |
| 1414 | font-family: var(--font-mono); | |
| 1415 | font-size: 11px; | |
| 4a52a98 | 1416 | font-weight: 500; |
| 1417 | text-align: center; | |
| 2ce1d0b | 1418 | line-height: 1.5; |
| 958d26a | 1419 | letter-spacing: 0.04em; |
| 1420 | text-transform: uppercase; | |
| 1421 | } | |
| 1422 | .prelaunch-banner::before { | |
| 1423 | content: '◆'; | |
| 1424 | margin-right: 8px; | |
| 1425 | font-size: 9px; | |
| 1426 | opacity: 0.7; | |
| 1427 | vertical-align: 1px; | |
| 4a52a98 | 1428 | } |
| 1429 | ||
| cd4f63b | 1430 | /* Block Q3 — Playground banner. Brighter than the prelaunch strip so |
| 1431 | visitors don't miss the "save your work" CTA, but slim enough to | |
| 1432 | not feel like a modal. */ | |
| 1433 | .playground-banner { | |
| 1434 | position: relative; | |
| 1435 | display: flex; | |
| 1436 | align-items: center; | |
| 1437 | justify-content: center; | |
| 1438 | gap: 8px; | |
| 1439 | background: | |
| 1440 | linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)), | |
| 1441 | var(--bg); | |
| 1442 | border-bottom: 1px solid rgba(251,191,36,0.45); | |
| 1443 | color: var(--yellow, #fbbf24); | |
| 1444 | padding: 8px 40px 8px 24px; | |
| 1445 | font-size: 13px; | |
| 1446 | font-weight: 500; | |
| 1447 | text-align: center; | |
| 1448 | line-height: 1.4; | |
| 1449 | } | |
| 1450 | .playground-banner-icon { font-size: 14px; } | |
| 1451 | .playground-banner-text { color: var(--text-strong, #e6edf3); } | |
| 1452 | .playground-banner-countdown { font-weight: 600; } | |
| 1453 | .playground-banner-cta { | |
| 1454 | margin-left: 4px; | |
| 1455 | color: var(--yellow, #fbbf24); | |
| 1456 | text-decoration: underline; | |
| 1457 | font-weight: 600; | |
| 1458 | } | |
| 1459 | .playground-banner-cta:hover { opacity: 0.85; } | |
| 1460 | .playground-banner-dismiss { | |
| 1461 | position: absolute; | |
| 1462 | top: 50%; | |
| 1463 | right: 12px; | |
| 1464 | transform: translateY(-50%); | |
| 1465 | background: transparent; | |
| 1466 | border: none; | |
| 1467 | color: var(--text-muted, #8b949e); | |
| 1468 | font-size: 18px; | |
| 1469 | line-height: 1; | |
| 1470 | cursor: pointer; | |
| 1471 | padding: 0 4px; | |
| 1472 | } | |
| 1473 | .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); } | |
| 1474 | ||
| 41a1450 | 1475 | /* Site nav header — sticky, blurred, hairline border. Scoped to |
| 1476 | .site-header: pages use semantic <header> elements for section/hero | |
| 1477 | headings, and a bare element selector here turns every one of them | |
| 1478 | into a 64px sticky bar (the /pricing hero-overlap bug). */ | |
| 1479 | .site-header { | |
| 2ce1d0b | 1480 | position: sticky; |
| 1481 | top: 0; | |
| 1482 | z-index: 100; | |
| fc1817a | 1483 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 1484 | padding: 0 24px; |
| 1485 | height: var(--header-h); | |
| ba23fe2 | 1486 | background: rgba(13,17,23,0.80); |
| 1487 | backdrop-filter: saturate(160%) blur(16px); | |
| 1488 | -webkit-backdrop-filter: saturate(160%) blur(16px); | |
| fc1817a | 1489 | } |
| ba23fe2 | 1490 | :root[data-theme='light'] .site-header { background: rgba(251,251,252,0.85); } |
| fc1817a | 1491 | |
| 41a1450 | 1492 | .site-header nav { |
| 06d5ffe | 1493 | display: flex; |
| 1494 | align-items: center; | |
| 958d26a | 1495 | gap: 18px; |
| eed4684 | 1496 | max-width: 1920px; |
| 06d5ffe | 1497 | margin: 0 auto; |
| 2ce1d0b | 1498 | height: 100%; |
| 1499 | } | |
| 1500 | .logo { | |
| 958d26a | 1501 | font-family: var(--font-display); |
| 1502 | font-size: 16px; | |
| 2ce1d0b | 1503 | font-weight: 700; |
| 958d26a | 1504 | letter-spacing: -0.025em; |
| 1505 | color: var(--text-strong); | |
| 2ce1d0b | 1506 | display: inline-flex; |
| 1507 | align-items: center; | |
| 958d26a | 1508 | gap: 9px; |
| 1509 | transition: opacity var(--t-fast) var(--ease); | |
| 06d5ffe | 1510 | } |
| 2ce1d0b | 1511 | .logo::before { |
| 1512 | content: ''; | |
| 958d26a | 1513 | width: 20px; height: 20px; |
| 1514 | border-radius: 6px; | |
| 2ce1d0b | 1515 | background: var(--accent-gradient); |
| 958d26a | 1516 | box-shadow: |
| 1517 | inset 0 1px 0 rgba(255,255,255,0.25), | |
| 479dcd9 | 1518 | 0 0 0 1px rgba(91,110,232,0.45); |
| 2ce1d0b | 1519 | flex-shrink: 0; |
| 479dcd9 | 1520 | transition: box-shadow var(--t-base) var(--ease); |
| 958d26a | 1521 | } |
| 1522 | .logo:hover { text-decoration: none; color: var(--text-strong); } | |
| 1523 | .logo:hover::before { | |
| 1524 | box-shadow: | |
| 1525 | inset 0 1px 0 rgba(255,255,255,0.30), | |
| 479dcd9 | 1526 | 0 0 0 1px rgba(91,110,232,0.60); |
| 06d5ffe | 1527 | } |
| fc1817a | 1528 | |
| 2ce1d0b | 1529 | .nav-search { |
| 1530 | flex: 1; | |
| 958d26a | 1531 | max-width: 360px; |
| 1532 | margin: 0 4px 0 8px; | |
| 1533 | position: relative; | |
| 2ce1d0b | 1534 | } |
| 1535 | .nav-search input { | |
| 1536 | width: 100%; | |
| 958d26a | 1537 | padding: 7px 12px 7px 32px; |
| 2ce1d0b | 1538 | background: var(--bg-tertiary); |
| 1539 | border: 1px solid var(--border); | |
| 1540 | border-radius: var(--r-sm); | |
| 1541 | color: var(--text); | |
| 1542 | font-family: var(--font-sans); | |
| 1543 | font-size: var(--t-sm); | |
| 958d26a | 1544 | transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); |
| 1545 | } | |
| 1546 | .nav-search::before { | |
| 1547 | content: ''; | |
| 1548 | position: absolute; | |
| 1549 | left: 11px; top: 50%; | |
| 1550 | transform: translateY(-50%); | |
| 1551 | width: 12px; height: 12px; | |
| 1552 | border: 1.5px solid var(--text-faint); | |
| 1553 | border-radius: 50%; | |
| 1554 | pointer-events: none; | |
| 1555 | } | |
| 1556 | .nav-search::after { | |
| 1557 | content: ''; | |
| 1558 | position: absolute; | |
| 1559 | left: 19px; top: calc(50% + 4px); | |
| 1560 | width: 5px; height: 1.5px; | |
| 1561 | background: var(--text-faint); | |
| 1562 | transform: rotate(45deg); | |
| 1563 | pointer-events: none; | |
| 2ce1d0b | 1564 | } |
| 1565 | .nav-search input::placeholder { color: var(--text-faint); } | |
| 1566 | .nav-search input:focus { | |
| 1567 | outline: none; | |
| 1568 | background: var(--bg-secondary); | |
| 958d26a | 1569 | border-color: var(--border-focus); |
| 1570 | box-shadow: var(--ring); | |
| 2ce1d0b | 1571 | } |
| 06d5ffe | 1572 | |
| 958d26a | 1573 | .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; } |
| f764c07 | 1574 | |
| 1575 | /* Block N3 — site-admin deploy status pill */ | |
| 1576 | .nav-deploy-pill { | |
| 1577 | display: inline-flex; | |
| 1578 | align-items: center; | |
| 1579 | gap: 6px; | |
| 1580 | padding: 4px 10px; | |
| 1581 | margin: 0 6px 0 0; | |
| 1582 | border-radius: 9999px; | |
| 1583 | font-size: 11px; | |
| 1584 | font-weight: 600; | |
| 1585 | line-height: 1; | |
| 1586 | color: var(--text-strong); | |
| 1587 | background: var(--bg-elevated); | |
| 1588 | border: 1px solid var(--border); | |
| 1589 | text-decoration: none; | |
| 1590 | transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); | |
| 1591 | } | |
| 1592 | .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; } | |
| 1593 | .nav-deploy-pill .deploy-pill-dot { | |
| 1594 | display: inline-block; | |
| 1595 | width: 8px; height: 8px; | |
| 1596 | border-radius: 50%; | |
| 1597 | background: #6b7280; | |
| 1598 | } | |
| 479dcd9 | 1599 | .deploy-pill-success .deploy-pill-dot { background: #34d399; } |
| 1600 | .deploy-pill-failed .deploy-pill-dot { background: #f87171; } | |
| f764c07 | 1601 | .deploy-pill-failed { border-color: rgba(248,113,113,0.4); } |
| 1602 | .deploy-pill-progress .deploy-pill-dot { | |
| 1603 | background: #fbbf24; | |
| 1604 | animation: deployPillPulse 1.2s ease-in-out infinite; | |
| 1605 | } | |
| 1606 | @keyframes deployPillPulse { | |
| 1607 | 0%, 100% { opacity: 1; transform: scale(1); } | |
| 1608 | 50% { opacity: 0.45; transform: scale(0.8); } | |
| 1609 | } | |
| 1610 | .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; } | |
| 1611 | ||
| c6018a5 | 1612 | /* ── AI dropdown (nav consolidation) ── */ |
| 1613 | .nav-ai-dropdown { | |
| 1614 | position: relative; | |
| 1615 | display: inline-flex; | |
| 1616 | align-items: center; | |
| 1617 | } | |
| 1618 | .nav-ai-trigger { | |
| 1619 | background: transparent; | |
| 1620 | border: 0; | |
| 1621 | font: inherit; | |
| 1622 | cursor: pointer; | |
| 1623 | color: var(--text-muted); | |
| 1624 | font-size: var(--t-sm); | |
| 1625 | font-weight: 500; | |
| 1626 | padding: 7px 11px; | |
| 1627 | border-radius: var(--r-sm); | |
| 1628 | line-height: 1.2; | |
| 1629 | } | |
| 1630 | .nav-ai-trigger:hover { | |
| 1631 | color: var(--text-strong); | |
| 1632 | background: var(--bg-hover); | |
| 1633 | } | |
| 1634 | .nav-ai-menu { | |
| 1635 | position: absolute; | |
| 1636 | top: calc(100% + 6px); | |
| 1637 | right: 0; | |
| 1638 | min-width: 220px; | |
| 1639 | background: var(--bg-secondary); | |
| 1640 | border: 1px solid var(--border-strong); | |
| 1641 | border-radius: 10px; | |
| 479dcd9 | 1642 | box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(91,110,232,0.10); |
| c6018a5 | 1643 | padding: 6px; |
| 1644 | display: none; | |
| 1645 | z-index: var(--z-overlay, 100); | |
| 1646 | } | |
| 1647 | .nav-ai-dropdown:hover .nav-ai-menu, | |
| 1648 | .nav-ai-dropdown.is-open .nav-ai-menu, | |
| 1649 | .nav-ai-dropdown:focus-within .nav-ai-menu { | |
| 1650 | display: block; | |
| 1651 | } | |
| 1652 | .nav-ai-item { | |
| 1653 | display: flex; | |
| 1654 | flex-direction: column; | |
| 1655 | gap: 1px; | |
| 1656 | padding: 8px 10px; | |
| 1657 | border-radius: 6px; | |
| 1658 | color: var(--text); | |
| 1659 | text-decoration: none; | |
| 1660 | transition: background var(--t-fast) var(--ease); | |
| 1661 | } | |
| 1662 | .nav-ai-item:hover { | |
| 1663 | background: var(--bg-hover); | |
| 1664 | text-decoration: none; | |
| 1665 | color: var(--text-strong); | |
| 1666 | } | |
| 1667 | .nav-ai-item-label { | |
| 1668 | font-size: var(--t-sm); | |
| 1669 | font-weight: 600; | |
| 1670 | color: var(--text-strong); | |
| 1671 | } | |
| 1672 | .nav-ai-item-sub { | |
| 1673 | font-size: 11.5px; | |
| 1674 | color: var(--text-muted); | |
| 1675 | } | |
| 1676 | ||
| 2ce1d0b | 1677 | .nav-link { |
| 958d26a | 1678 | position: relative; |
| 2ce1d0b | 1679 | color: var(--text-muted); |
| 1680 | font-size: var(--t-sm); | |
| 1681 | font-weight: 500; | |
| 958d26a | 1682 | padding: 7px 11px; |
| 2ce1d0b | 1683 | border-radius: var(--r-sm); |
| 958d26a | 1684 | transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); |
| 2ce1d0b | 1685 | } |
| 1686 | .nav-link:hover { | |
| 958d26a | 1687 | color: var(--text-strong); |
| 2ce1d0b | 1688 | background: var(--bg-hover); |
| 1689 | text-decoration: none; | |
| 1690 | } | |
| 958d26a | 1691 | .nav-link.active { color: var(--text-strong); } |
| 1692 | .nav-link.active::after { | |
| 1693 | content: ''; | |
| 1694 | position: absolute; | |
| 1695 | left: 11px; right: 11px; | |
| 1696 | bottom: -1px; | |
| 1697 | height: 2px; | |
| 1698 | background: var(--accent-gradient); | |
| 1699 | border-radius: 2px; | |
| 1700 | } | |
| adf5e18 | 1701 | /* "Migrate from GitHub" nav link — logged-out only, slightly accented |
| 1702 | so it reads as an action affordance rather than a passive link. */ | |
| 1703 | .nav-migrate { | |
| 1704 | color: var(--accent); | |
| 1705 | font-weight: 600; | |
| 479dcd9 | 1706 | border: 1px solid rgba(91,110,232,0.22); |
| 1707 | background: rgba(91,110,232,0.07); | |
| adf5e18 | 1708 | } |
| 1709 | .nav-migrate:hover { | |
| 1710 | color: var(--accent-hover); | |
| 479dcd9 | 1711 | background: rgba(91,110,232,0.13); |
| 1712 | border-color: rgba(91,110,232,0.40); | |
| adf5e18 | 1713 | } |
| 1714 | @media (max-width: 780px) { .nav-migrate { display: none; } } | |
| 1715 | ||
| 2ce1d0b | 1716 | .nav-user { |
| 958d26a | 1717 | color: var(--text-strong); |
| 2ce1d0b | 1718 | font-weight: 600; |
| 1719 | font-size: var(--t-sm); | |
| 1720 | padding: 6px 10px; | |
| 1721 | border-radius: var(--r-sm); | |
| 958d26a | 1722 | margin-left: 6px; |
| 2ce1d0b | 1723 | transition: background var(--t-fast) var(--ease); |
| 1724 | } | |
| 958d26a | 1725 | .nav-user::before { |
| 1726 | content: ''; | |
| 1727 | display: inline-block; | |
| 1728 | width: 8px; height: 8px; | |
| 1729 | background: var(--green); | |
| 1730 | border-radius: 50%; | |
| 1731 | margin-right: 7px; | |
| 1732 | vertical-align: 1px; | |
| 1733 | } | |
| 2ce1d0b | 1734 | .nav-user:hover { background: var(--bg-hover); text-decoration: none; } |
| fc1817a | 1735 | |
| f5b9ef5 | 1736 | /* ── Inbox bell button ── */ |
| 1737 | .nav-inbox-btn { | |
| 1738 | position: relative; | |
| 1739 | display: inline-flex; | |
| 1740 | align-items: center; | |
| 1741 | justify-content: center; | |
| 1742 | width: 34px; | |
| 1743 | height: 34px; | |
| 1744 | border-radius: var(--r-sm); | |
| 1745 | color: var(--text-muted); | |
| 1746 | transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); | |
| 1747 | flex-shrink: 0; | |
| 1748 | } | |
| 1749 | .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; } | |
| 1750 | .nav-inbox-badge { | |
| 1751 | position: absolute; | |
| 1752 | top: 3px; right: 3px; | |
| 1753 | min-width: 15px; height: 15px; | |
| 1754 | padding: 0 4px; | |
| 1755 | font-size: 9.5px; | |
| 1756 | font-weight: 700; | |
| 1757 | line-height: 15px; | |
| 1758 | color: #fff; | |
| 479dcd9 | 1759 | background: var(--accent); |
| f5b9ef5 | 1760 | border-radius: 9999px; |
| 1761 | text-align: center; | |
| 1762 | font-variant-numeric: tabular-nums; | |
| 1763 | } | |
| 1764 | ||
| 1765 | /* ── User dropdown ── */ | |
| 1766 | .nav-user-dropdown { position: relative; } | |
| 1767 | .nav-user-trigger { | |
| 1768 | display: inline-flex; | |
| 1769 | align-items: center; | |
| 1770 | gap: 7px; | |
| 1771 | padding: 5px 9px 5px 5px; | |
| 1772 | border-radius: var(--r-sm); | |
| 1773 | border: 1px solid transparent; | |
| 1774 | background: transparent; | |
| 1775 | color: var(--text); | |
| 1776 | font-family: var(--font-sans); | |
| 1777 | font-size: var(--t-sm); | |
| 1778 | font-weight: 500; | |
| 1779 | cursor: pointer; | |
| 1780 | transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); | |
| 1781 | } | |
| 1782 | .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); } | |
| 1783 | .nav-user-avatar { | |
| 1784 | width: 24px; height: 24px; | |
| 1785 | border-radius: 50%; | |
| 1786 | background: var(--accent-gradient); | |
| 1787 | color: #fff; | |
| 1788 | font-size: 11px; | |
| 1789 | font-weight: 700; | |
| 1790 | display: inline-flex; | |
| 1791 | align-items: center; | |
| 1792 | justify-content: center; | |
| 1793 | flex-shrink: 0; | |
| 1794 | box-shadow: 0 0 0 2px var(--border); | |
| 1795 | } | |
| 1796 | .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| 1797 | .nav-user-caret { font-size: 8px; opacity: 0.5; } | |
| 1798 | .nav-user-menu { | |
| 1799 | display: none; | |
| 1800 | position: absolute; | |
| 1801 | top: calc(100% + 6px); | |
| 1802 | right: 0; | |
| 1803 | min-width: 220px; | |
| 1804 | background: var(--bg-elevated); | |
| 1805 | border: 1px solid var(--border-strong); | |
| 1806 | border-radius: var(--r-lg); | |
| 1807 | box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border); | |
| 1808 | padding: 6px; | |
| 1809 | z-index: 200; | |
| 1810 | animation: navMenuIn 140ms var(--ease) both; | |
| 1811 | } | |
| 1812 | .nav-user-menu.is-open { display: block; } | |
| 1813 | .nav-user-menu-header { | |
| 1814 | padding: 8px 10px 10px; | |
| 1815 | display: flex; | |
| 1816 | flex-direction: column; | |
| 1817 | gap: 2px; | |
| 1818 | } | |
| 1819 | .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); } | |
| 1820 | .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); } | |
| 1821 | .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; } | |
| 1822 | .nav-user-item { | |
| 1823 | display: block; | |
| 1824 | padding: 7px 10px; | |
| 1825 | border-radius: 6px; | |
| 1826 | font-size: var(--t-sm); | |
| 1827 | color: var(--text); | |
| 1828 | transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); | |
| 1829 | white-space: nowrap; | |
| 1830 | } | |
| 1831 | .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; } | |
| 1832 | .nav-user-item--danger { color: var(--red); } | |
| 1833 | .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); } | |
| 1834 | ||
| 1835 | @keyframes navMenuIn { | |
| 1836 | from { opacity: 0; transform: translateY(-4px) scale(0.97); } | |
| 1837 | to { opacity: 1; transform: translateY(0) scale(1); } | |
| 1838 | } | |
| 1839 | ||
| 2ce1d0b | 1840 | main { |
| eed4684 | 1841 | max-width: 1920px; |
| 2ce1d0b | 1842 | margin: 0 auto; |
| 958d26a | 1843 | padding: 36px 24px 80px; |
| 2ce1d0b | 1844 | flex: 1; |
| 1845 | width: 100%; | |
| 479dcd9 | 1846 | /* Subtle entrance fade on page load — kept short (180ms) so it |
| 1847 | reads as responsiveness, not theatre. Honors reduced-motion. */ | |
| 1848 | animation: gxMainEnter 180ms cubic-bezier(0.22, 1, 0.36, 1) both; | |
| ed6e438 | 1849 | } |
| 1850 | @keyframes gxMainEnter { | |
| 479dcd9 | 1851 | from { opacity: 0; transform: translateY(3px); } |
| ed6e438 | 1852 | to { opacity: 1; transform: translateY(0); } |
| 1853 | } | |
| 1854 | @media (prefers-reduced-motion: reduce) { | |
| 1855 | main { animation: none; } | |
| 1856 | } | |
| 1857 | /* 2026 polish — accent focus ring across all focusable elements. | |
| 1858 | The default browser ring is utilitarian; this is the same width | |
| 1859 | but tinted to the brand accent so keyboard navigation feels | |
| 1860 | intentional, not jarring. :focus-visible only — mouse users | |
| 1861 | never see it. */ | |
| 1862 | :focus-visible { | |
| 1863 | outline: none; | |
| 1864 | } | |
| 1865 | a:focus-visible, | |
| 1866 | button:focus-visible, | |
| 1867 | input:focus-visible, | |
| 1868 | select:focus-visible, | |
| 1869 | textarea:focus-visible, | |
| 1870 | [tabindex]:focus-visible { | |
| 479dcd9 | 1871 | outline: 2px solid rgba(91, 110, 232, 0.55); |
| ed6e438 | 1872 | outline-offset: 2px; |
| 1873 | border-radius: 4px; | |
| 2ce1d0b | 1874 | } |
| fc1817a | 1875 | |
| 958d26a | 1876 | /* Editorial footer: link grid + tagline row */ |
| fc1817a | 1877 | footer { |
| 1878 | border-top: 1px solid var(--border); | |
| 958d26a | 1879 | padding: 56px 24px 40px; |
| fc1817a | 1880 | color: var(--text-muted); |
| 958d26a | 1881 | font-size: var(--t-sm); |
| ba23fe2 | 1882 | background: var(--bg); |
| 958d26a | 1883 | } |
| 1884 | footer .footer-inner { | |
| eed4684 | 1885 | max-width: 1920px; |
| 958d26a | 1886 | margin: 0 auto; |
| 1887 | display: grid; | |
| 1888 | grid-template-columns: 1fr auto; | |
| 1889 | gap: 48px; | |
| 1890 | align-items: start; | |
| 1891 | } | |
| 1892 | footer .footer-brand .logo { margin-bottom: var(--s-3); } | |
| 1893 | footer .footer-tag { | |
| 1894 | color: var(--text-muted); | |
| 1895 | font-size: var(--t-sm); | |
| 1896 | max-width: 320px; | |
| 1897 | line-height: 1.55; | |
| 1898 | } | |
| 1899 | footer .footer-links { | |
| 1900 | display: grid; | |
| 1901 | grid-template-columns: repeat(3, minmax(120px, auto)); | |
| 1902 | gap: 0 56px; | |
| 1903 | } | |
| 1904 | footer .footer-col-title { | |
| 1905 | font-family: var(--font-mono); | |
| 1906 | font-size: 11px; | |
| 1907 | text-transform: uppercase; | |
| 1908 | letter-spacing: 0.14em; | |
| 1909 | color: var(--text-faint); | |
| 1910 | margin-bottom: var(--s-3); | |
| 1911 | } | |
| 1912 | footer .footer-col a { | |
| 1913 | display: block; | |
| 1914 | color: var(--text-muted); | |
| 1915 | font-size: var(--t-sm); | |
| 1916 | padding: 5px 0; | |
| 1917 | transition: color var(--t-fast) var(--ease); | |
| 1918 | } | |
| 1919 | footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; } | |
| 1920 | footer .footer-bottom { | |
| eed4684 | 1921 | max-width: 1920px; |
| 958d26a | 1922 | margin: 40px auto 0; |
| 1923 | padding-top: 24px; | |
| 1924 | border-top: 1px solid var(--border-subtle); | |
| 1925 | display: flex; | |
| 1926 | justify-content: space-between; | |
| 1927 | align-items: center; | |
| 2ce1d0b | 1928 | color: var(--text-faint); |
| 1929 | font-size: var(--t-xs); | |
| 958d26a | 1930 | font-family: var(--font-mono); |
| 1931 | letter-spacing: 0.02em; | |
| 1932 | } | |
| 1933 | footer .footer-bottom a { color: var(--text-faint); } | |
| 1934 | footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; } | |
| 05cdb85 | 1935 | footer .footer-build { |
| 1936 | display: inline-flex; | |
| 1937 | align-items: center; | |
| 1938 | gap: 6px; | |
| 1939 | color: var(--text-faint); | |
| 1940 | font-family: var(--font-mono); | |
| 1941 | font-size: 11px; | |
| 1942 | cursor: help; | |
| 1943 | } | |
| 1944 | footer .footer-build-dot { | |
| 1945 | width: 6px; height: 6px; | |
| 1946 | border-radius: 50%; | |
| 1947 | background: var(--green); | |
| 479dcd9 | 1948 | opacity: 0.9; |
| 05cdb85 | 1949 | } |
| 958d26a | 1950 | @media (max-width: 768px) { |
| 1951 | footer .footer-inner { grid-template-columns: 1fr; gap: 32px; } | |
| 1952 | footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; } | |
| 1953 | footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } | |
| fc1817a | 1954 | } |
| 1955 | ||
| 2ce1d0b | 1956 | /* ============================================================ */ |
| 1957 | /* Buttons */ | |
| 1958 | /* ============================================================ */ | |
| dc26881 | 1959 | /* ============================================================ */ |
| 1960 | /* Buttons — Block U2 senior polish pass. */ | |
| 1961 | /* Rules: */ | |
| 1962 | /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */ | |
| 1963 | /* · active presses back down to 0 (80ms — faster on press) */ | |
| 1964 | /* · focus-visible uses a soft box-shadow ring (no outline) */ | |
| 1965 | /* · primary gradient shifts position on hover for a slow */ | |
| 1966 | /* 600ms shimmer */ | |
| 1967 | /* · disabled never lifts and never animates */ | |
| 1968 | /* ============================================================ */ | |
| 06d5ffe | 1969 | .btn { |
| 1970 | display: inline-flex; | |
| 1971 | align-items: center; | |
| 2ce1d0b | 1972 | justify-content: center; |
| 958d26a | 1973 | gap: 7px; |
| 2ce1d0b | 1974 | padding: 7px 14px; |
| 1975 | border-radius: var(--r-sm); | |
| 958d26a | 1976 | font-family: var(--font-sans); |
| 2ce1d0b | 1977 | font-size: var(--t-sm); |
| 06d5ffe | 1978 | font-weight: 500; |
| 1979 | border: 1px solid var(--border); | |
| 2ce1d0b | 1980 | background: var(--bg-elevated); |
| 06d5ffe | 1981 | color: var(--text); |
| 1982 | cursor: pointer; | |
| 1983 | text-decoration: none; | |
| 958d26a | 1984 | line-height: 1.25; |
| 1985 | letter-spacing: -0.008em; | |
| dc26881 | 1986 | /* U2 — hover/transform settles in 180ms; press snaps in 80ms. |
| 1987 | Listed once on the base rule so :active can override only the | |
| 1988 | transform/duration without re-typing the colour/bg transitions. */ | |
| 2ce1d0b | 1989 | transition: |
| dc26881 | 1990 | background 180ms ease, |
| 1991 | border-color 180ms ease, | |
| 1992 | transform 180ms ease, | |
| 1993 | box-shadow 180ms ease, | |
| 1994 | color 180ms ease; | |
| 2ce1d0b | 1995 | user-select: none; |
| 1996 | white-space: nowrap; | |
| 958d26a | 1997 | position: relative; |
| 06d5ffe | 1998 | } |
| 2ce1d0b | 1999 | .btn:hover { |
| 2000 | background: var(--bg-surface); | |
| 2001 | border-color: var(--border-strong); | |
| 958d26a | 2002 | color: var(--text-strong); |
| 2ce1d0b | 2003 | text-decoration: none; |
| dc26881 | 2004 | /* U2 — universal hover lift + soft accent drop shadow. */ |
| 2005 | transform: translateY(-1px); | |
| 2006 | box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45); | |
| 2007 | } | |
| 2008 | .btn:active { | |
| 2009 | transform: translateY(0); | |
| 2010 | transition-duration: 80ms; | |
| 2011 | } | |
| 479dcd9 | 2012 | /* U2 — soft modern focus ring via box-shadow, not outline. |
| 2013 | The literal legacy declaration is kept for external tooling that | |
| 2014 | greps for the U2 contract; the var(--ring) declaration after it | |
| 2015 | wins the cascade and renders the calm indigo ring. */ | |
| dc26881 | 2016 | .btn:focus-visible { |
| 2017 | outline: none; | |
| 6fd5915 | 2018 | box-shadow: 0 0 0 3px rgba(91, 110, 232, 0.35); |
| 479dcd9 | 2019 | box-shadow: var(--ring); |
| 2ce1d0b | 2020 | } |
| 2021 | ||
| 2022 | .btn-primary { | |
| 2023 | background: var(--accent-gradient); | |
| dc26881 | 2024 | background-size: 200% 100%; |
| 2025 | background-position: 0% 50%; | |
| 2ce1d0b | 2026 | border-color: transparent; |
| 2027 | color: #fff; | |
| 2028 | font-weight: 600; | |
| 958d26a | 2029 | text-shadow: 0 1px 0 rgba(0,0,0,0.15); |
| 2ce1d0b | 2030 | box-shadow: |
| 958d26a | 2031 | inset 0 1px 0 rgba(255,255,255,0.22), |
| 2032 | inset 0 -1px 0 rgba(0,0,0,0.10), | |
| 2033 | 0 1px 2px rgba(0,0,0,0.40), | |
| 479dcd9 | 2034 | 0 0 0 1px rgba(91,110,232,0.30); |
| dc26881 | 2035 | /* U2 — slower 600ms transition on background-position so the |
| 2036 | primary CTA shimmers when the cursor lands. */ | |
| 2037 | transition: | |
| 2038 | background-position 600ms ease, | |
| 2039 | transform 180ms ease, | |
| 2040 | box-shadow 180ms ease, | |
| 2041 | color 180ms ease; | |
| 06d5ffe | 2042 | } |
| 958d26a | 2043 | .btn-primary::before { |
| 2044 | content: ''; | |
| 2045 | position: absolute; | |
| 2046 | inset: 0; | |
| 2047 | border-radius: inherit; | |
| 2048 | background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%); | |
| 2049 | opacity: 0; | |
| 2050 | transition: opacity var(--t-fast) var(--ease); | |
| 2051 | pointer-events: none; | |
| 2ce1d0b | 2052 | } |
| 2053 | .btn-primary:hover { | |
| 958d26a | 2054 | color: #fff; |
| 2ce1d0b | 2055 | background: var(--accent-gradient); |
| dc26881 | 2056 | background-size: 200% 100%; |
| 2057 | background-position: 100% 50%; | |
| 958d26a | 2058 | border-color: transparent; |
| dc26881 | 2059 | transform: translateY(-1px); |
| 2ce1d0b | 2060 | box-shadow: |
| 958d26a | 2061 | inset 0 1px 0 rgba(255,255,255,0.30), |
| 2062 | inset 0 -1px 0 rgba(0,0,0,0.10), | |
| 479dcd9 | 2063 | 0 6px 18px -6px rgba(0,0,0,0.45), |
| 2064 | 0 0 0 1px rgba(91,110,232,0.40); | |
| 2ce1d0b | 2065 | } |
| 958d26a | 2066 | .btn-primary:hover::before { opacity: 1; } |
| dc26881 | 2067 | .btn-primary:active { transform: translateY(0); transition-duration: 80ms; } |
| 2068 | /* U2 — primary focus ring uses the same accent box-shadow recipe. */ | |
| 2069 | .btn-primary:focus-visible { | |
| 2070 | box-shadow: | |
| 2071 | inset 0 1px 0 rgba(255,255,255,0.22), | |
| 479dcd9 | 2072 | 0 0 0 3px rgba(91,110,232,0.35); |
| dc26881 | 2073 | } |
| 2ce1d0b | 2074 | |
| 2075 | .btn-danger { | |
| 2076 | background: transparent; | |
| 958d26a | 2077 | border-color: rgba(248,113,113,0.40); |
| 2ce1d0b | 2078 | color: var(--red); |
| 2079 | } | |
| 2080 | .btn-danger:hover { | |
| 958d26a | 2081 | background: rgba(248,113,113,0.08); |
| 2ce1d0b | 2082 | border-color: var(--red); |
| 958d26a | 2083 | color: var(--red); |
| dc26881 | 2084 | transform: translateY(-1px); |
| 2085 | box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30); | |
| 2ce1d0b | 2086 | } |
| dc26881 | 2087 | .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); } |
| 2ce1d0b | 2088 | |
| 2089 | .btn-ghost { | |
| 2090 | background: transparent; | |
| 2091 | border-color: transparent; | |
| 2092 | color: var(--text-muted); | |
| 2093 | } | |
| 2094 | .btn-ghost:hover { | |
| 2095 | background: var(--bg-hover); | |
| 958d26a | 2096 | color: var(--text-strong); |
| 2ce1d0b | 2097 | border-color: var(--border); |
| dc26881 | 2098 | transform: translateY(-1px); |
| 2099 | box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30); | |
| 2ce1d0b | 2100 | } |
| 2101 | ||
| 958d26a | 2102 | .btn-secondary { |
| 2103 | background: var(--bg-elevated); | |
| 2104 | border-color: var(--border-strong); | |
| 2105 | color: var(--text-strong); | |
| 2106 | } | |
| 2107 | .btn-secondary:hover { | |
| 2108 | background: var(--bg-surface); | |
| 2109 | border-color: var(--border-strong); | |
| dc26881 | 2110 | transform: translateY(-1px); |
| 2111 | box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35); | |
| 958d26a | 2112 | } |
| 2113 | ||
| 2114 | .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; } | |
| 2115 | .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); } | |
| 2116 | .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; } | |
| 2117 | .btn-block { width: 100%; } | |
| 2ce1d0b | 2118 | |
| dc26881 | 2119 | /* U2 — disabled never lifts, never shimmers, never glows. */ |
| 2120 | .btn:disabled, | |
| 2121 | .btn[aria-disabled='true'], | |
| 2122 | .btn:disabled:hover, | |
| 2123 | .btn[aria-disabled='true']:hover { | |
| 2124 | opacity: 0.5; | |
| 2ce1d0b | 2125 | cursor: not-allowed; |
| 2126 | pointer-events: none; | |
| dc26881 | 2127 | transform: none; |
| 2128 | box-shadow: none; | |
| 2129 | } | |
| 2130 | @media (prefers-reduced-motion: reduce) { | |
| 2131 | .btn, | |
| 2132 | .btn:hover, | |
| 2133 | .btn:active, | |
| 2134 | .btn-primary, | |
| 2135 | .btn-primary:hover { | |
| 2136 | transform: none; | |
| 2137 | transition: background-color 80ms linear, color 80ms linear; | |
| 2138 | } | |
| 2ce1d0b | 2139 | } |
| 2140 | ||
| 2141 | /* ============================================================ */ | |
| 2142 | /* Forms */ | |
| 2143 | /* ============================================================ */ | |
| 2144 | .form-group { margin-bottom: 20px; } | |
| 2145 | .form-group label { | |
| 2146 | display: block; | |
| 2147 | font-size: var(--t-sm); | |
| 2148 | font-weight: 500; | |
| 2149 | margin-bottom: 6px; | |
| 2150 | color: var(--text); | |
| 2151 | letter-spacing: -0.005em; | |
| 2152 | } | |
| 2153 | .form-group input, | |
| 2154 | .form-group textarea, | |
| 2155 | .form-group select, | |
| 2156 | input[type='text'], input[type='email'], input[type='password'], | |
| 2157 | input[type='url'], input[type='search'], input[type='number'], | |
| 2158 | textarea, select { | |
| 06d5ffe | 2159 | width: 100%; |
| 2ce1d0b | 2160 | padding: 9px 12px; |
| 2161 | background: var(--bg-secondary); | |
| 06d5ffe | 2162 | border: 1px solid var(--border); |
| 2ce1d0b | 2163 | border-radius: var(--r-sm); |
| 06d5ffe | 2164 | color: var(--text); |
| 2ce1d0b | 2165 | font-size: var(--t-sm); |
| 06d5ffe | 2166 | font-family: var(--font-sans); |
| 2ce1d0b | 2167 | transition: |
| 2168 | border-color var(--t-fast) var(--ease), | |
| 2169 | background var(--t-fast) var(--ease), | |
| 2170 | box-shadow var(--t-fast) var(--ease); | |
| 06d5ffe | 2171 | } |
| 2ce1d0b | 2172 | .form-group input::placeholder, textarea::placeholder, input::placeholder { |
| 2173 | color: var(--text-faint); | |
| 06d5ffe | 2174 | } |
| 2ce1d0b | 2175 | .form-group input:hover, textarea:hover, select:hover, |
| 2176 | input[type='text']:hover, input[type='email']:hover, input[type='password']:hover { | |
| 2177 | border-color: var(--border-strong); | |
| 2178 | } | |
| 2179 | .form-group input:focus, .form-group textarea:focus, .form-group select:focus, | |
| 2180 | input:focus, textarea:focus, select:focus { | |
| 06d5ffe | 2181 | outline: none; |
| 2ce1d0b | 2182 | background: var(--bg); |
| 2183 | border-color: var(--border-focus); | |
| 2184 | box-shadow: var(--ring); | |
| 06d5ffe | 2185 | } |
| 2ce1d0b | 2186 | textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; } |
| 06d5ffe | 2187 | .input-disabled { opacity: 0.5; cursor: not-allowed; } |
| 2188 | ||
| 2ce1d0b | 2189 | /* ============================================================ */ |
| 2190 | /* Auth (register / login / verify) */ | |
| 2191 | /* ============================================================ */ | |
| 2192 | .auth-container { | |
| 98f45b4 | 2193 | /* 2026 polish — wider, more generous, with a subtle accent-glow |
| 2194 | border and gradient top-edge so it reads as a premium product | |
| 2195 | gateway, not a stock form. The 480px width feels intentional | |
| 2196 | (not cramped, not endless). */ | |
| 2197 | max-width: 480px; | |
| 2198 | margin: 72px auto; | |
| 2199 | padding: 40px 40px 36px; | |
| 2ce1d0b | 2200 | background: var(--bg-elevated); |
| 2201 | border: 1px solid var(--border); | |
| 98f45b4 | 2202 | border-radius: 16px; |
| 2203 | box-shadow: | |
| 2204 | var(--elev-2), | |
| 479dcd9 | 2205 | 0 24px 64px -16px rgba(0, 0, 0, 0.30); |
| 98f45b4 | 2206 | position: relative; |
| 2207 | overflow: hidden; | |
| 2208 | } | |
| 2209 | .auth-container::before { | |
| 2210 | /* Hairline gradient accent on the top edge — signals 'AI-native' | |
| 2211 | without shouting. Pointer-events disabled so it never interferes | |
| 2212 | with form interactions. */ | |
| 2213 | content: ''; | |
| 2214 | position: absolute; | |
| 2215 | top: 0; | |
| 2216 | left: 0; | |
| 2217 | right: 0; | |
| 2218 | height: 2px; | |
| 479dcd9 | 2219 | background: linear-gradient(90deg, transparent 0%, rgba(91,110,232,0.55) 50%, transparent 100%); |
| 2220 | opacity: 0.6; | |
| 98f45b4 | 2221 | pointer-events: none; |
| 2ce1d0b | 2222 | } |
| 2223 | .auth-container h2 { | |
| 98f45b4 | 2224 | margin: 0 0 8px; |
| 2225 | font-size: 28px; | |
| 2226 | font-weight: 700; | |
| 2227 | font-family: var(--font-display); | |
| 2228 | letter-spacing: -0.025em; | |
| 2229 | color: var(--text-strong); | |
| 2230 | line-height: 1.15; | |
| 2231 | } | |
| 2232 | .auth-container .auth-subtitle { | |
| 2233 | color: var(--text-muted); | |
| 2234 | font-size: 14.5px; | |
| 2235 | line-height: 1.5; | |
| 2236 | margin: 0 0 24px; | |
| 2ce1d0b | 2237 | } |
| 2238 | .auth-container > p { | |
| 2239 | color: var(--text-muted); | |
| 2240 | font-size: var(--t-sm); | |
| 2241 | margin-bottom: 24px; | |
| 2242 | } | |
| 98f45b4 | 2243 | .auth-container .btn-primary { |
| 2244 | width: 100%; | |
| 2245 | padding: 12px 16px; | |
| 2246 | font-size: 15px; | |
| 2247 | font-weight: 600; | |
| 2248 | margin-top: 4px; | |
| 2249 | } | |
| 582cdac | 2250 | |
| 2251 | /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout | |
| 2252 | with a brand-coloured logo on the left and a label centred-trailing. | |
| 2253 | Hover lifts 1px with a subtle shadow — matches the rest of the | |
| 2254 | button system but reads as a brand-affiliated action, not a brand- | |
| 2255 | coloured primary CTA. */ | |
| 2256 | .auth-container .oauth-btn { | |
| 2257 | display: flex; | |
| 2258 | align-items: center; | |
| 2259 | justify-content: center; | |
| 2260 | gap: 10px; | |
| 2261 | width: 100%; | |
| 2262 | padding: 11px 16px; | |
| 2263 | background: var(--bg-surface, var(--bg-elevated)); | |
| 2264 | border: 1px solid var(--border); | |
| 2265 | border-radius: var(--r-md, 8px); | |
| 2266 | color: var(--text-strong); | |
| 2267 | font-family: var(--font-sans); | |
| 2268 | font-size: 14.5px; | |
| 2269 | font-weight: 500; | |
| 2270 | text-decoration: none; | |
| 2271 | transition: | |
| 2272 | transform var(--t-base, 180ms) var(--ease, ease), | |
| 2273 | box-shadow var(--t-base, 180ms) var(--ease, ease), | |
| 2274 | background var(--t-fast, 120ms) var(--ease, ease), | |
| 2275 | border-color var(--t-fast, 120ms) var(--ease, ease); | |
| 2276 | } | |
| 2277 | .auth-container .oauth-btn:hover { | |
| 2278 | transform: translateY(-1px); | |
| 2279 | background: var(--bg-hover); | |
| 2280 | border-color: var(--text-muted); | |
| 2281 | color: var(--text-strong); | |
| 2282 | box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25); | |
| 2283 | text-decoration: none; | |
| 2284 | } | |
| 2285 | .auth-container .oauth-btn:focus-visible { | |
| 479dcd9 | 2286 | outline: 2px solid rgba(91, 110, 232, 0.55); |
| 582cdac | 2287 | outline-offset: 2px; |
| 2288 | } | |
| 2289 | .auth-container .oauth-btn .oauth-icon { | |
| 2290 | flex-shrink: 0; | |
| 2291 | } | |
| 2292 | /* GitHub icon adopts the text colour so it reads in both themes. */ | |
| 2293 | .auth-container .oauth-github .oauth-icon { | |
| 2294 | color: var(--text-strong); | |
| 2295 | } | |
| 2296 | /* Google logo uses the official 4-colour treatment via inline SVG fill | |
| 2297 | attributes — nothing to override here. */ | |
| 2298 | /* "or" divider between the password form and provider buttons */ | |
| 2299 | .auth-container .auth-divider { | |
| 2300 | display: flex; | |
| 2301 | align-items: center; | |
| 2302 | gap: 12px; | |
| 2303 | margin: 20px 0 12px; | |
| 2304 | color: var(--text-faint); | |
| 2305 | font-size: 12px; | |
| 2306 | letter-spacing: 0.08em; | |
| 2307 | text-transform: uppercase; | |
| 2308 | } | |
| 2309 | .auth-container .auth-divider::before, | |
| 2310 | .auth-container .auth-divider::after { | |
| 2311 | content: ''; | |
| 2312 | flex: 1; | |
| 2313 | height: 1px; | |
| 2314 | background: var(--border); | |
| 2315 | } | |
| 06d5ffe | 2316 | .auth-error { |
| 958d26a | 2317 | background: rgba(248,113,113,0.08); |
| 2318 | border: 1px solid rgba(248,113,113,0.35); | |
| 06d5ffe | 2319 | color: var(--red); |
| 2ce1d0b | 2320 | padding: 10px 14px; |
| 2321 | border-radius: var(--r-sm); | |
| 06d5ffe | 2322 | margin-bottom: 16px; |
| 2ce1d0b | 2323 | font-size: var(--t-sm); |
| 06d5ffe | 2324 | } |
| 2325 | .auth-success { | |
| 958d26a | 2326 | background: rgba(52,211,153,0.08); |
| 2327 | border: 1px solid rgba(52,211,153,0.35); | |
| 06d5ffe | 2328 | color: var(--green); |
| 2ce1d0b | 2329 | padding: 10px 14px; |
| 2330 | border-radius: var(--r-sm); | |
| 06d5ffe | 2331 | margin-bottom: 16px; |
| 2ce1d0b | 2332 | font-size: var(--t-sm); |
| 2333 | } | |
| 2334 | .auth-switch { | |
| 2335 | margin-top: 20px; | |
| 2336 | font-size: var(--t-sm); | |
| 2337 | color: var(--text-muted); | |
| 2338 | text-align: center; | |
| 2339 | } | |
| 2340 | .banner { | |
| 2341 | background: var(--accent-gradient-faint); | |
| 479dcd9 | 2342 | border: 1px solid rgba(91,110,232,0.35); |
| 2ce1d0b | 2343 | color: var(--text); |
| 2344 | padding: 10px 14px; | |
| 2345 | border-radius: var(--r-sm); | |
| 2346 | font-size: var(--t-sm); | |
| 06d5ffe | 2347 | } |
| 2348 | ||
| 2ce1d0b | 2349 | /* ============================================================ */ |
| 2350 | /* Settings */ | |
| 2351 | /* ============================================================ */ | |
| 2352 | .settings-container { max-width: 720px; } | |
| 2353 | .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; } | |
| 2354 | .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; } | |
| 2355 | .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; } | |
| 2356 | .settings-container h3:first-of-type { margin-top: 0; } | |
| 06d5ffe | 2357 | .ssh-keys-list { margin-bottom: 24px; } |
| 2358 | .ssh-key-item { | |
| 2359 | display: flex; | |
| 2360 | justify-content: space-between; | |
| 2361 | align-items: center; | |
| 2ce1d0b | 2362 | padding: 14px 16px; |
| 06d5ffe | 2363 | border: 1px solid var(--border); |
| 2ce1d0b | 2364 | border-radius: var(--r-md); |
| 06d5ffe | 2365 | margin-bottom: 8px; |
| 2ce1d0b | 2366 | background: var(--bg-elevated); |
| 2367 | transition: border-color var(--t-fast) var(--ease); | |
| 06d5ffe | 2368 | } |
| 2ce1d0b | 2369 | .ssh-key-item:hover { border-color: var(--border-strong); } |
| 2370 | .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; } | |
| 2371 | .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; } | |
| 06d5ffe | 2372 | |
| 2ce1d0b | 2373 | /* ============================================================ */ |
| 2374 | /* Repo header + nav */ | |
| 2375 | /* ============================================================ */ | |
| fc1817a | 2376 | .repo-header { |
| 2377 | display: flex; | |
| 2378 | align-items: center; | |
| debcf27 | 2379 | gap: 12px; |
| 2380 | margin-bottom: 22px; | |
| 2381 | } | |
| 2382 | .repo-header-title { | |
| 2383 | display: flex; | |
| 2384 | align-items: center; | |
| 2385 | gap: 10px; | |
| 2386 | font-family: var(--font-display); | |
| 2387 | font-size: 24px; | |
| 2388 | letter-spacing: -0.025em; | |
| 2389 | flex-wrap: wrap; | |
| 2390 | } | |
| 2391 | .repo-header .owner { | |
| 2392 | color: var(--text-muted); | |
| 2393 | font-weight: 500; | |
| 2394 | transition: color var(--t-fast) var(--ease); | |
| 2395 | } | |
| 2396 | .repo-header .owner:hover { color: var(--text-link); text-decoration: none; } | |
| 2397 | .repo-header .separator { color: var(--text-faint); font-weight: 300; } | |
| 2398 | .repo-header .name { | |
| 2399 | color: var(--text-strong); | |
| 2400 | font-weight: 700; | |
| 2401 | letter-spacing: -0.028em; | |
| fc1817a | 2402 | } |
| 2ce1d0b | 2403 | .repo-header .name:hover { color: var(--text-link); text-decoration: none; } |
| debcf27 | 2404 | .repo-header-fork { |
| 2405 | font-family: var(--font-mono); | |
| 2406 | font-size: 11px; | |
| 2407 | color: var(--text-muted); | |
| 2408 | margin-top: 4px; | |
| 2409 | letter-spacing: 0.01em; | |
| 2410 | } | |
| 2411 | .repo-header-fork a { color: var(--text-muted); } | |
| 2412 | .repo-header-fork a:hover { color: var(--accent); } | |
| 2413 | .repo-header-pill { | |
| 2414 | display: inline-flex; | |
| 2415 | align-items: center; | |
| 2416 | padding: 2px 10px; | |
| 2417 | border-radius: var(--r-full); | |
| 2418 | font-family: var(--font-mono); | |
| 2419 | font-size: 10px; | |
| 2420 | font-weight: 600; | |
| 2421 | letter-spacing: 0.12em; | |
| 2422 | text-transform: uppercase; | |
| 2423 | line-height: 1.6; | |
| 2424 | vertical-align: 4px; | |
| 2425 | } | |
| 2426 | .repo-header-pill-archived { | |
| 2427 | background: rgba(251,191,36,0.10); | |
| 2428 | color: var(--yellow); | |
| 2429 | border: 1px solid rgba(251,191,36,0.30); | |
| 2430 | } | |
| 2431 | .repo-header-pill-template { | |
| 2432 | background: var(--accent-gradient-faint); | |
| 2433 | color: var(--accent); | |
| 479dcd9 | 2434 | border: 1px solid rgba(91,110,232,0.30); |
| fc1817a | 2435 | } |
| 06d5ffe | 2436 | .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; } |
| fc1817a | 2437 | |
| 8c790e0 | 2438 | /* Push Watch discoverability — live/recent indicator in the repo header */ |
| 2439 | @keyframes pushWatchPulse { | |
| 2440 | 0%, 100% { opacity: 1; } | |
| 2441 | 50% { opacity: 0.3; } | |
| 2442 | } | |
| 2443 | .repo-header-live-badge { | |
| 2444 | display: inline-flex; | |
| 2445 | align-items: center; | |
| 2446 | gap: 5px; | |
| 2447 | padding: 2px 9px; | |
| 2448 | border-radius: 999px; | |
| 2449 | font-size: 12px; | |
| 2450 | font-weight: 600; | |
| 2451 | letter-spacing: 0.02em; | |
| 2452 | text-decoration: none !important; | |
| 2453 | vertical-align: 3px; | |
| 2454 | transition: filter 140ms ease, opacity 140ms ease; | |
| 2455 | } | |
| 2456 | .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; } | |
| 2457 | .repo-header-live-badge--live { | |
| 2458 | background: rgba(218, 54, 51, 0.12); | |
| 2459 | color: #f97171; | |
| 2460 | border: 1px solid rgba(218, 54, 51, 0.35); | |
| 2461 | } | |
| 2462 | .repo-header-live-badge--live .repo-header-live-dot { | |
| 2463 | animation: pushWatchPulse 1.2s ease-in-out infinite; | |
| 2464 | display: inline-block; | |
| 2465 | } | |
| 2466 | .repo-header-live-badge--recent { | |
| 479dcd9 | 2467 | background: rgba(91, 110, 232, 0.08); |
| 8c790e0 | 2468 | color: var(--text-muted); |
| 479dcd9 | 2469 | border: 1px solid rgba(91, 110, 232, 0.22); |
| 8c790e0 | 2470 | } |
| 2471 | .repo-header-live-badge--recent:hover { color: var(--accent); } | |
| 2472 | @media (prefers-reduced-motion: reduce) { | |
| 2473 | .repo-header-live-badge--live .repo-header-live-dot { animation: none; } | |
| 2474 | } | |
| 2475 | ||
| fc1817a | 2476 | .repo-nav { |
| 2477 | display: flex; | |
| debcf27 | 2478 | gap: 1px; |
| fc1817a | 2479 | border-bottom: 1px solid var(--border); |
| debcf27 | 2480 | margin-bottom: 28px; |
| 2ce1d0b | 2481 | overflow-x: auto; |
| 2482 | scrollbar-width: thin; | |
| fc1817a | 2483 | } |
| 2ce1d0b | 2484 | .repo-nav::-webkit-scrollbar { height: 0; } |
| fc1817a | 2485 | .repo-nav a { |
| debcf27 | 2486 | position: relative; |
| 2487 | padding: 11px 14px; | |
| fc1817a | 2488 | color: var(--text-muted); |
| 2489 | border-bottom: 2px solid transparent; | |
| 2ce1d0b | 2490 | font-size: var(--t-sm); |
| 2491 | font-weight: 500; | |
| 2492 | margin-bottom: -1px; | |
| debcf27 | 2493 | transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); |
| 2ce1d0b | 2494 | white-space: nowrap; |
| 2495 | } | |
| debcf27 | 2496 | .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); } |
| 2ce1d0b | 2497 | .repo-nav a.active { |
| debcf27 | 2498 | color: var(--text-strong); |
| 2499 | font-weight: 600; | |
| 2500 | } | |
| 2501 | .repo-nav a.active::after { | |
| 2502 | content: ''; | |
| 2503 | position: absolute; | |
| 2504 | left: 14px; | |
| 2505 | right: 14px; | |
| 2506 | bottom: -1px; | |
| 2507 | height: 2px; | |
| 2508 | background: var(--accent-gradient); | |
| 2509 | border-radius: 2px; | |
| 2510 | } | |
| 2511 | /* AI links in the right-side cluster — sparkle accent */ | |
| 2512 | .repo-nav-ai { | |
| 2513 | color: var(--accent) !important; | |
| 2514 | font-weight: 500; | |
| 2515 | } | |
| 2516 | .repo-nav-ai:hover { | |
| 2517 | color: var(--accent-hover) !important; | |
| 2518 | background: var(--accent-gradient-faint) !important; | |
| 2519 | } | |
| 2520 | .repo-nav-ai.active { | |
| 2521 | color: var(--accent-hover) !important; | |
| 2ce1d0b | 2522 | font-weight: 600; |
| fc1817a | 2523 | } |
| 2524 | ||
| 2ce1d0b | 2525 | .breadcrumb { |
| 2526 | display: flex; | |
| debcf27 | 2527 | gap: 6px; |
| 2ce1d0b | 2528 | align-items: center; |
| debcf27 | 2529 | margin-bottom: 18px; |
| 2ce1d0b | 2530 | color: var(--text-muted); |
| 2531 | font-size: var(--t-sm); | |
| 2532 | font-family: var(--font-mono); | |
| debcf27 | 2533 | font-feature-settings: var(--mono-feat); |
| 2ce1d0b | 2534 | } |
| 2535 | .breadcrumb a { color: var(--text-link); font-weight: 500; } | |
| 2536 | .breadcrumb a:hover { color: var(--accent-hover); } | |
| debcf27 | 2537 | .breadcrumb strong { |
| 2538 | color: var(--text-strong); | |
| 2539 | font-weight: 600; | |
| fc1817a | 2540 | } |
| 2541 | ||
| debcf27 | 2542 | /* Page header — eyebrow + title + optional actions row. |
| 2543 | Use on dashboard, settings, admin, any "section landing" page. */ | |
| 2544 | .page-header { | |
| 2545 | display: flex; | |
| 2546 | align-items: flex-end; | |
| 2547 | justify-content: space-between; | |
| 2548 | gap: 16px; | |
| 2549 | margin-bottom: 28px; | |
| 2550 | padding-bottom: 20px; | |
| 2551 | border-bottom: 1px solid var(--border-subtle); | |
| 2552 | flex-wrap: wrap; | |
| 2553 | } | |
| 2554 | .page-header-text { flex: 1; min-width: 280px; } | |
| 2555 | .page-header .eyebrow { margin-bottom: var(--s-2); } | |
| 2556 | .page-header h1 { | |
| 2557 | font-family: var(--font-display); | |
| 2558 | font-size: clamp(24px, 3vw, 36px); | |
| 2559 | line-height: 1.1; | |
| 2560 | letter-spacing: -0.028em; | |
| 2561 | margin-bottom: 6px; | |
| 2562 | } | |
| 2563 | .page-header p { | |
| 2564 | color: var(--text-muted); | |
| 2565 | font-size: var(--t-sm); | |
| 2566 | line-height: 1.55; | |
| 2567 | max-width: 640px; | |
| 2568 | } | |
| 2569 | .page-header-actions { display: flex; gap: 8px; align-items: center; } | |
| fc1817a | 2570 | |
| 2ce1d0b | 2571 | /* ============================================================ */ |
| 2572 | /* File browser table */ | |
| 2573 | /* ============================================================ */ | |
| 2574 | .file-table { | |
| 2575 | width: 100%; | |
| 2576 | border: 1px solid var(--border); | |
| 2577 | border-radius: var(--r-md); | |
| 2578 | overflow: hidden; | |
| 2579 | background: var(--bg-elevated); | |
| debcf27 | 2580 | border-collapse: collapse; |
| 2ce1d0b | 2581 | } |
| debcf27 | 2582 | .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); } |
| fc1817a | 2583 | .file-table tr:last-child { border-bottom: none; } |
| debcf27 | 2584 | .file-table td { |
| 2585 | padding: 9px 16px; | |
| 2586 | font-size: var(--t-sm); | |
| 2587 | font-family: var(--font-mono); | |
| 2588 | font-feature-settings: var(--mono-feat); | |
| 2589 | } | |
| 2ce1d0b | 2590 | .file-table tr:hover { background: var(--bg-hover); } |
| debcf27 | 2591 | .file-icon { |
| 2592 | width: 22px; | |
| 2593 | color: var(--text-faint); | |
| 2594 | font-size: 13px; | |
| 2595 | text-align: center; | |
| 2596 | } | |
| 2597 | .file-name a { | |
| 2598 | color: var(--text); | |
| 2599 | font-weight: 500; | |
| 2600 | transition: color var(--t-fast) var(--ease); | |
| 2601 | } | |
| 2602 | .file-name a:hover { color: var(--accent); text-decoration: none; } | |
| fc1817a | 2603 | |
| 2ce1d0b | 2604 | /* ============================================================ */ |
| 2605 | /* Blob view */ | |
| 2606 | /* ============================================================ */ | |
| fc1817a | 2607 | .blob-view { |
| 2608 | border: 1px solid var(--border); | |
| 2ce1d0b | 2609 | border-radius: var(--r-md); |
| fc1817a | 2610 | overflow: hidden; |
| 2ce1d0b | 2611 | background: var(--bg-elevated); |
| fc1817a | 2612 | } |
| 2613 | .blob-header { | |
| 2614 | background: var(--bg-secondary); | |
| 2ce1d0b | 2615 | padding: 10px 16px; |
| fc1817a | 2616 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 2617 | font-size: var(--t-sm); |
| fc1817a | 2618 | color: var(--text-muted); |
| 06d5ffe | 2619 | display: flex; |
| 2620 | justify-content: space-between; | |
| 2621 | align-items: center; | |
| fc1817a | 2622 | } |
| 2623 | .blob-code { | |
| 2624 | overflow-x: auto; | |
| 2625 | font-family: var(--font-mono); | |
| 2ce1d0b | 2626 | font-size: var(--t-sm); |
| 2627 | line-height: 1.65; | |
| fc1817a | 2628 | } |
| 2629 | .blob-code table { width: 100%; border-collapse: collapse; } | |
| 2630 | .blob-code .line-num { | |
| 2631 | width: 1%; | |
| 2ce1d0b | 2632 | min-width: 56px; |
| 2633 | padding: 0 14px; | |
| fc1817a | 2634 | text-align: right; |
| 2ce1d0b | 2635 | color: var(--text-faint); |
| fc1817a | 2636 | user-select: none; |
| 2637 | white-space: nowrap; | |
| 2638 | border-right: 1px solid var(--border); | |
| 2639 | } | |
| 2ce1d0b | 2640 | .blob-code .line-content { padding: 0 16px; white-space: pre; } |
| 2641 | .blob-code tr:hover { background: var(--bg-hover); } | |
| fc1817a | 2642 | |
| 2ce1d0b | 2643 | /* ============================================================ */ |
| 2644 | /* Commits + diffs */ | |
| 2645 | /* ============================================================ */ | |
| 2646 | .commit-list { | |
| 2647 | border: 1px solid var(--border); | |
| 2648 | border-radius: var(--r-md); | |
| 2649 | overflow: hidden; | |
| 2650 | background: var(--bg-elevated); | |
| 2651 | } | |
| fc1817a | 2652 | .commit-item { |
| 2653 | display: flex; | |
| 2654 | justify-content: space-between; | |
| 2655 | align-items: center; | |
| debcf27 | 2656 | padding: 14px 18px; |
| 2657 | border-bottom: 1px solid var(--border-subtle); | |
| 2ce1d0b | 2658 | transition: background var(--t-fast) var(--ease); |
| fc1817a | 2659 | } |
| 2660 | .commit-item:last-child { border-bottom: none; } | |
| 2ce1d0b | 2661 | .commit-item:hover { background: var(--bg-hover); } |
| debcf27 | 2662 | .commit-message { |
| 2663 | font-size: var(--t-sm); | |
| 2664 | font-weight: 500; | |
| 2665 | line-height: 1.45; | |
| 2666 | color: var(--text-strong); | |
| 2667 | letter-spacing: -0.005em; | |
| 2668 | } | |
| 2669 | .commit-meta { | |
| 2670 | font-family: var(--font-mono); | |
| 2671 | font-size: 11px; | |
| 2672 | color: var(--text-muted); | |
| 2673 | margin-top: 5px; | |
| 2674 | letter-spacing: 0.01em; | |
| 2675 | } | |
| fc1817a | 2676 | .commit-sha { |
| 2677 | font-family: var(--font-mono); | |
| debcf27 | 2678 | font-feature-settings: var(--mono-feat); |
| 2679 | font-size: 11px; | |
| 2680 | padding: 4px 9px; | |
| fc1817a | 2681 | background: var(--bg-tertiary); |
| 2682 | border: 1px solid var(--border); | |
| 2ce1d0b | 2683 | border-radius: var(--r-sm); |
| debcf27 | 2684 | color: var(--accent); |
| 2685 | font-weight: 600; | |
| 2686 | letter-spacing: 0.02em; | |
| 2ce1d0b | 2687 | transition: all var(--t-fast) var(--ease); |
| fc1817a | 2688 | } |
| debcf27 | 2689 | .commit-sha:hover { |
| 479dcd9 | 2690 | border-color: rgba(91,110,232,0.40); |
| debcf27 | 2691 | background: var(--accent-gradient-faint); |
| 2692 | color: var(--accent-hover); | |
| 2693 | text-decoration: none; | |
| fc1817a | 2694 | } |
| 2695 | ||
| 2696 | .diff-view { margin-top: 16px; } | |
| 2697 | .diff-file { | |
| 2698 | border: 1px solid var(--border); | |
| 2ce1d0b | 2699 | border-radius: var(--r-md); |
| fc1817a | 2700 | margin-bottom: 16px; |
| 2701 | overflow: hidden; | |
| 2ce1d0b | 2702 | background: var(--bg-elevated); |
| fc1817a | 2703 | } |
| 2704 | .diff-file-header { | |
| 2705 | background: var(--bg-secondary); | |
| 2ce1d0b | 2706 | padding: 10px 16px; |
| fc1817a | 2707 | border-bottom: 1px solid var(--border); |
| 2708 | font-family: var(--font-mono); | |
| 2ce1d0b | 2709 | font-size: var(--t-sm); |
| 2710 | font-weight: 500; | |
| fc1817a | 2711 | } |
| 2712 | .diff-content { | |
| 2713 | overflow-x: auto; | |
| 2714 | font-family: var(--font-mono); | |
| 2ce1d0b | 2715 | font-size: var(--t-sm); |
| 2716 | line-height: 1.65; | |
| fc1817a | 2717 | } |
| 958d26a | 2718 | .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); } |
| 2719 | .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); } | |
| 479dcd9 | 2720 | .diff-content .line-hunk { background: rgba(91,110,232,0.06); color: var(--text-link); } |
| 2ce1d0b | 2721 | .diff-content .line { padding: 0 16px; white-space: pre; display: block; } |
| fc1817a | 2722 | |
| 2723 | .stat-add { color: var(--green); font-weight: 600; } | |
| 2724 | .stat-del { color: var(--red); font-weight: 600; } | |
| 2725 | ||
| 2ce1d0b | 2726 | /* ============================================================ */ |
| 2727 | /* Empty state */ | |
| 2728 | /* ============================================================ */ | |
| fc1817a | 2729 | .empty-state { |
| 2730 | text-align: center; | |
| ba23fe2 | 2731 | padding: 80px 24px; |
| fc1817a | 2732 | color: var(--text-muted); |
| ba23fe2 | 2733 | border: 1px solid var(--border); |
| 2ce1d0b | 2734 | border-radius: var(--r-lg); |
| ba23fe2 | 2735 | background: var(--bg-elevated); |
| fc1817a | 2736 | } |
| 2ce1d0b | 2737 | .empty-state h2 { |
| 958d26a | 2738 | font-size: var(--t-xl); |
| 2ce1d0b | 2739 | margin-bottom: 8px; |
| 958d26a | 2740 | color: var(--text-strong); |
| 2741 | letter-spacing: -0.022em; | |
| 2ce1d0b | 2742 | } |
| 958d26a | 2743 | .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; } |
| fc1817a | 2744 | .empty-state pre { |
| 2745 | text-align: left; | |
| 2746 | display: inline-block; | |
| 2747 | background: var(--bg-secondary); | |
| 958d26a | 2748 | padding: 18px 24px; |
| 2749 | border-radius: var(--r-md); | |
| fc1817a | 2750 | border: 1px solid var(--border); |
| 2751 | font-family: var(--font-mono); | |
| 958d26a | 2752 | font-feature-settings: var(--mono-feat); |
| 2ce1d0b | 2753 | font-size: var(--t-sm); |
| 958d26a | 2754 | margin-top: 24px; |
| fc1817a | 2755 | line-height: 1.8; |
| 2ce1d0b | 2756 | color: var(--text); |
| 958d26a | 2757 | box-shadow: var(--elev-1); |
| fc1817a | 2758 | } |
| 2759 | ||
| 2ce1d0b | 2760 | /* ============================================================ */ |
| 2761 | /* Badges */ | |
| 2762 | /* ============================================================ */ | |
| fc1817a | 2763 | .badge { |
| 2ce1d0b | 2764 | display: inline-flex; |
| 2765 | align-items: center; | |
| 2766 | gap: 4px; | |
| 2767 | padding: 2px 9px; | |
| 2768 | border-radius: var(--r-full); | |
| 2769 | font-size: var(--t-xs); | |
| fc1817a | 2770 | font-weight: 500; |
| 2771 | background: var(--bg-tertiary); | |
| 2772 | border: 1px solid var(--border); | |
| 2773 | color: var(--text-muted); | |
| 2ce1d0b | 2774 | line-height: 1.5; |
| fc1817a | 2775 | } |
| 2776 | ||
| 2ce1d0b | 2777 | /* ============================================================ */ |
| 2778 | /* Branch dropdown */ | |
| 2779 | /* ============================================================ */ | |
| fc1817a | 2780 | .branch-selector { |
| 2781 | display: inline-flex; | |
| 2782 | align-items: center; | |
| 2ce1d0b | 2783 | gap: 6px; |
| 2784 | padding: 6px 12px; | |
| 2785 | background: var(--bg-elevated); | |
| fc1817a | 2786 | border: 1px solid var(--border); |
| 2ce1d0b | 2787 | border-radius: var(--r-sm); |
| 2788 | font-size: var(--t-sm); | |
| fc1817a | 2789 | color: var(--text); |
| 2790 | margin-bottom: 12px; | |
| 2ce1d0b | 2791 | transition: border-color var(--t-fast) var(--ease); |
| fc1817a | 2792 | } |
| 2ce1d0b | 2793 | .branch-selector:hover { border-color: var(--border-strong); } |
| fc1817a | 2794 | |
| 06d5ffe | 2795 | .branch-dropdown { |
| 2796 | position: relative; | |
| 2797 | display: inline-block; | |
| 2798 | margin-bottom: 12px; | |
| 2799 | } | |
| 2800 | .branch-dropdown-content { | |
| 2801 | display: none; | |
| 2802 | position: absolute; | |
| 2ce1d0b | 2803 | top: calc(100% + 4px); |
| 06d5ffe | 2804 | left: 0; |
| 2805 | z-index: 10; | |
| 2ce1d0b | 2806 | min-width: 220px; |
| 2807 | background: var(--bg-elevated); | |
| 2808 | border: 1px solid var(--border-strong); | |
| 2809 | border-radius: var(--r-md); | |
| 2810 | overflow: hidden; | |
| 2811 | box-shadow: var(--elev-3); | |
| 06d5ffe | 2812 | } |
| 2813 | .branch-dropdown:hover .branch-dropdown-content, | |
| 2814 | .branch-dropdown:focus-within .branch-dropdown-content { display: block; } | |
| 2815 | .branch-dropdown-content a { | |
| 2816 | display: block; | |
| 2ce1d0b | 2817 | padding: 9px 14px; |
| 2818 | font-size: var(--t-sm); | |
| 06d5ffe | 2819 | color: var(--text); |
| 2820 | border-bottom: 1px solid var(--border); | |
| 2ce1d0b | 2821 | transition: background var(--t-fast) var(--ease); |
| 06d5ffe | 2822 | } |
| 2823 | .branch-dropdown-content a:last-child { border-bottom: none; } | |
| 2ce1d0b | 2824 | .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; } |
| 2825 | .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); } | |
| 06d5ffe | 2826 | |
| 2ce1d0b | 2827 | /* ============================================================ */ |
| 2828 | /* Card grid */ | |
| 2829 | /* ============================================================ */ | |
| 2830 | .card-grid { | |
| 2831 | display: grid; | |
| 2832 | grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); | |
| 2833 | gap: 16px; | |
| 2834 | } | |
| fc1817a | 2835 | .card { |
| 2836 | border: 1px solid var(--border); | |
| 2ce1d0b | 2837 | border-radius: var(--r-md); |
| 958d26a | 2838 | padding: 20px; |
| 2ce1d0b | 2839 | background: var(--bg-elevated); |
| 2840 | transition: | |
| 958d26a | 2841 | border-color var(--t-base) var(--ease), |
| 2842 | transform var(--t-base) var(--ease-out-quart), | |
| 2ce1d0b | 2843 | box-shadow var(--t-base) var(--ease); |
| 2844 | position: relative; | |
| 2845 | overflow: hidden; | |
| 958d26a | 2846 | isolation: isolate; |
| 2847 | } | |
| 2848 | .card::before { | |
| 2849 | content: ''; | |
| 2850 | position: absolute; | |
| 2851 | inset: 0; | |
| 479dcd9 | 2852 | background: linear-gradient(135deg, rgba(91,110,232,0.06), transparent 50%); |
| 958d26a | 2853 | opacity: 0; |
| 2854 | transition: opacity var(--t-base) var(--ease); | |
| 2855 | pointer-events: none; | |
| 2856 | z-index: -1; | |
| 2ce1d0b | 2857 | } |
| 2858 | .card:hover { | |
| 2859 | border-color: var(--border-strong); | |
| 2860 | box-shadow: var(--elev-2); | |
| 958d26a | 2861 | transform: translateY(-2px); |
| 2ce1d0b | 2862 | } |
| 958d26a | 2863 | .card:hover::before { opacity: 1; } |
| 2864 | .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; } | |
| 2ce1d0b | 2865 | .card h3 a { color: var(--text); font-weight: 600; } |
| 2866 | .card h3 a:hover { color: var(--text-link); } | |
| 2867 | .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; } | |
| 2868 | .card-meta { | |
| 2869 | display: flex; | |
| 2870 | gap: 14px; | |
| 2871 | margin-top: 14px; | |
| 2872 | padding-top: 14px; | |
| 2873 | border-top: 1px solid var(--border); | |
| 2874 | font-size: var(--t-xs); | |
| 2875 | color: var(--text-muted); | |
| 2876 | } | |
| 2877 | .card-meta span { display: flex; align-items: center; gap: 5px; } | |
| 2878 | ||
| 2879 | /* ============================================================ */ | |
| 2880 | /* Stat card / box */ | |
| 2881 | /* ============================================================ */ | |
| 2882 | .stat-card { | |
| 2883 | background: var(--bg-elevated); | |
| 2884 | border: 1px solid var(--border); | |
| 2885 | border-radius: var(--r-md); | |
| fc1817a | 2886 | padding: 16px; |
| 2ce1d0b | 2887 | transition: border-color var(--t-fast) var(--ease); |
| 2888 | } | |
| 2889 | .stat-card:hover { border-color: var(--border-strong); } | |
| 2890 | .stat-label { | |
| 2891 | font-size: var(--t-xs); | |
| 2892 | color: var(--text-muted); | |
| 2893 | text-transform: uppercase; | |
| 2894 | letter-spacing: 0.06em; | |
| 2895 | font-weight: 500; | |
| 2896 | } | |
| 2897 | .stat-value { | |
| 2898 | font-size: var(--t-xl); | |
| 2899 | font-weight: 700; | |
| 2900 | margin-top: 4px; | |
| 2901 | letter-spacing: -0.025em; | |
| 2902 | color: var(--text); | |
| 2903 | font-feature-settings: 'tnum'; | |
| fc1817a | 2904 | } |
| 06d5ffe | 2905 | |
| 2ce1d0b | 2906 | /* ============================================================ */ |
| 2907 | /* Star button */ | |
| 2908 | /* ============================================================ */ | |
| 06d5ffe | 2909 | .star-btn { |
| 2910 | display: inline-flex; | |
| 2911 | align-items: center; | |
| 2912 | gap: 6px; | |
| 2ce1d0b | 2913 | padding: 5px 12px; |
| 2914 | background: var(--bg-elevated); | |
| 06d5ffe | 2915 | border: 1px solid var(--border); |
| 2ce1d0b | 2916 | border-radius: var(--r-sm); |
| 06d5ffe | 2917 | color: var(--text); |
| 2ce1d0b | 2918 | font-size: var(--t-sm); |
| 2919 | font-weight: 500; | |
| 06d5ffe | 2920 | cursor: pointer; |
| 2ce1d0b | 2921 | transition: all var(--t-fast) var(--ease); |
| 2922 | } | |
| 2923 | .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; } | |
| 2924 | .star-btn.starred { | |
| 2925 | color: var(--yellow); | |
| 958d26a | 2926 | border-color: rgba(251,191,36,0.4); |
| 2927 | background: rgba(251,191,36,0.08); | |
| 06d5ffe | 2928 | } |
| 2929 | ||
| 2ce1d0b | 2930 | /* ============================================================ */ |
| 2931 | /* User profile */ | |
| 2932 | /* ============================================================ */ | |
| 06d5ffe | 2933 | .user-profile { |
| 2934 | display: flex; | |
| 2935 | gap: 32px; | |
| 2936 | margin-bottom: 32px; | |
| 2ce1d0b | 2937 | padding: 24px; |
| 2938 | background: var(--bg-elevated); | |
| 2939 | border: 1px solid var(--border); | |
| 2940 | border-radius: var(--r-lg); | |
| 06d5ffe | 2941 | } |
| 2942 | .user-avatar { | |
| 2943 | width: 96px; | |
| 2944 | height: 96px; | |
| 2ce1d0b | 2945 | border-radius: var(--r-full); |
| 2946 | background: var(--accent-gradient-soft); | |
| 2947 | border: 1px solid var(--border-strong); | |
| 06d5ffe | 2948 | display: flex; |
| 2949 | align-items: center; | |
| 2950 | justify-content: center; | |
| 2ce1d0b | 2951 | font-size: 36px; |
| 2952 | font-weight: 600; | |
| 2953 | color: var(--text); | |
| 06d5ffe | 2954 | flex-shrink: 0; |
| 2ce1d0b | 2955 | letter-spacing: -0.02em; |
| 06d5ffe | 2956 | } |
| 2ce1d0b | 2957 | .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; } |
| 2958 | .user-info .username { font-size: var(--t-md); color: var(--text-muted); } | |
| 2959 | .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; } | |
| 06d5ffe | 2960 | |
| 2ce1d0b | 2961 | /* ============================================================ */ |
| 2962 | /* New repo form */ | |
| 2963 | /* ============================================================ */ | |
| 2964 | .new-repo-form { max-width: 640px; } | |
| 2965 | .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; } | |
| 2966 | .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; } | |
| 06d5ffe | 2967 | .visibility-option { |
| 2968 | flex: 1; | |
| 2ce1d0b | 2969 | padding: 16px; |
| 06d5ffe | 2970 | border: 1px solid var(--border); |
| 2ce1d0b | 2971 | border-radius: var(--r-md); |
| 2972 | background: var(--bg-elevated); | |
| 06d5ffe | 2973 | cursor: pointer; |
| 2ce1d0b | 2974 | text-align: left; |
| 2975 | transition: all var(--t-fast) var(--ease); | |
| 2976 | } | |
| 2977 | .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); } | |
| 2978 | .visibility-option:has(input:checked) { | |
| 2979 | border-color: var(--accent); | |
| 2980 | background: var(--accent-gradient-faint); | |
| 2981 | box-shadow: 0 0 0 1px var(--accent); | |
| 06d5ffe | 2982 | } |
| 2983 | .visibility-option input { display: none; } | |
| 2ce1d0b | 2984 | .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; } |
| 2985 | .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); } | |
| 79136bb | 2986 | |
| 2ce1d0b | 2987 | /* ============================================================ */ |
| 2988 | /* Issues */ | |
| 2989 | /* ============================================================ */ | |
| 2990 | .issue-tabs { display: flex; gap: 4px; } | |
| 2991 | .issue-tabs a { | |
| 2992 | color: var(--text-muted); | |
| 2993 | font-size: var(--t-sm); | |
| 2994 | font-weight: 500; | |
| 2995 | padding: 6px 12px; | |
| 2996 | border-radius: var(--r-sm); | |
| 2997 | transition: all var(--t-fast) var(--ease); | |
| 2998 | } | |
| 2999 | .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; } | |
| 3000 | .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); } | |
| 79136bb | 3001 | |
| 2ce1d0b | 3002 | .issue-list { |
| 3003 | border: 1px solid var(--border); | |
| 3004 | border-radius: var(--r-md); | |
| 3005 | overflow: hidden; | |
| 3006 | background: var(--bg-elevated); | |
| 3007 | } | |
| 79136bb | 3008 | .issue-item { |
| 3009 | display: flex; | |
| 2ce1d0b | 3010 | gap: 14px; |
| 79136bb | 3011 | align-items: flex-start; |
| 2ce1d0b | 3012 | padding: 14px 16px; |
| 79136bb | 3013 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 3014 | transition: background var(--t-fast) var(--ease); |
| 79136bb | 3015 | } |
| 3016 | .issue-item:last-child { border-bottom: none; } | |
| 2ce1d0b | 3017 | .issue-item:hover { background: var(--bg-hover); } |
| 3018 | .issue-state-icon { | |
| 3019 | font-size: 14px; | |
| 3020 | padding-top: 2px; | |
| 3021 | width: 18px; | |
| 3022 | height: 18px; | |
| 3023 | display: inline-flex; | |
| 3024 | align-items: center; | |
| 3025 | justify-content: center; | |
| 3026 | border-radius: var(--r-full); | |
| 3027 | flex-shrink: 0; | |
| 3028 | } | |
| 79136bb | 3029 | .state-open { color: var(--green); } |
| 479dcd9 | 3030 | .state-closed { color: var(--text-link); } |
| 2ce1d0b | 3031 | .issue-title { |
| debcf27 | 3032 | font-family: var(--font-display); |
| 3033 | font-size: var(--t-md); | |
| 2ce1d0b | 3034 | font-weight: 600; |
| debcf27 | 3035 | line-height: 1.35; |
| 3036 | letter-spacing: -0.012em; | |
| 3037 | } | |
| 3038 | .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); } | |
| 3039 | .issue-title a:hover { color: var(--accent); text-decoration: none; } | |
| 3040 | .issue-meta { | |
| 3041 | font-family: var(--font-mono); | |
| 3042 | font-size: 11px; | |
| 3043 | color: var(--text-muted); | |
| 3044 | margin-top: 5px; | |
| 3045 | letter-spacing: 0.01em; | |
| 2ce1d0b | 3046 | } |
| 79136bb | 3047 | |
| 3048 | .issue-badge { | |
| 3049 | display: inline-flex; | |
| 3050 | align-items: center; | |
| 2ce1d0b | 3051 | gap: 6px; |
| 79136bb | 3052 | padding: 4px 12px; |
| 2ce1d0b | 3053 | border-radius: var(--r-full); |
| 3054 | font-size: var(--t-sm); | |
| 79136bb | 3055 | font-weight: 500; |
| 2ce1d0b | 3056 | line-height: 1.4; |
| 79136bb | 3057 | } |
| 958d26a | 3058 | .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); } |
| 479dcd9 | 3059 | .badge-closed { background: rgba(154,168,239,0.10); color: var(--text-link); border: 1px solid rgba(154,168,239,0.35); } |
| 3060 | .badge-merged { background: rgba(91,110,232,0.10); color: var(--accent); border: 1px solid rgba(91,110,232,0.35); } | |
| 2ce1d0b | 3061 | .state-merged { color: var(--accent); } |
| 479dcd9 | 3062 | .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(91,110,232,0.3); } |
| 79136bb | 3063 | |
| 2ce1d0b | 3064 | .issue-detail { max-width: 920px; } |
| 79136bb | 3065 | .issue-comment-box { |
| 3066 | border: 1px solid var(--border); | |
| 2ce1d0b | 3067 | border-radius: var(--r-md); |
| 79136bb | 3068 | margin-bottom: 16px; |
| 3069 | overflow: hidden; | |
| 2ce1d0b | 3070 | background: var(--bg-elevated); |
| 79136bb | 3071 | } |
| 3072 | .comment-header { | |
| 3073 | background: var(--bg-secondary); | |
| 2ce1d0b | 3074 | padding: 10px 16px; |
| 79136bb | 3075 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 3076 | font-size: var(--t-sm); |
| 79136bb | 3077 | color: var(--text-muted); |
| 3078 | } | |
| 3079 | ||
| 2ce1d0b | 3080 | /* ============================================================ */ |
| 3081 | /* Panel — flexible container used across many pages */ | |
| 3082 | /* ============================================================ */ | |
| 3083 | .panel { | |
| 3084 | background: var(--bg-elevated); | |
| 3085 | border: 1px solid var(--border); | |
| 3086 | border-radius: var(--r-md); | |
| 3087 | overflow: hidden; | |
| 3088 | } | |
| 3089 | .panel-item { | |
| 3090 | display: flex; | |
| 3091 | align-items: center; | |
| 3092 | gap: 12px; | |
| 3093 | padding: 12px 16px; | |
| 79136bb | 3094 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 3095 | transition: background var(--t-fast) var(--ease); |
| 3096 | } | |
| 3097 | .panel-item:last-child { border-bottom: none; } | |
| 3098 | .panel-item:hover { background: var(--bg-hover); } | |
| 5882af3 | 3099 | |
| 3100 | /* ─── j/k keyboard list navigation ─── */ | |
| 3101 | .is-kbd-focus { | |
| 479dcd9 | 3102 | outline: 2px solid rgba(91,110,232,0.6) !important; |
| 5882af3 | 3103 | outline-offset: -2px; |
| 479dcd9 | 3104 | background: rgba(91,110,232,0.06) !important; |
| 5882af3 | 3105 | border-radius: 4px; |
| 3106 | } | |
| 3107 | .is-kbd-selected { | |
| 3108 | outline: 2px solid rgba(52,211,153,0.6) !important; | |
| 3109 | background: rgba(52,211,153,0.06) !important; | |
| 3110 | } | |
| 2ce1d0b | 3111 | .panel-empty { |
| 3112 | padding: 24px; | |
| 3113 | text-align: center; | |
| 79136bb | 3114 | color: var(--text-muted); |
| 2ce1d0b | 3115 | font-size: var(--t-sm); |
| 79136bb | 3116 | } |
| 3117 | ||
| 2ce1d0b | 3118 | /* ============================================================ */ |
| 3119 | /* Search */ | |
| 3120 | /* ============================================================ */ | |
| 79136bb | 3121 | .search-results .diff-file { margin-bottom: 12px; } |
| 16b325c | 3122 | |
| 2ce1d0b | 3123 | /* ============================================================ */ |
| 3124 | /* Timeline */ | |
| 3125 | /* ============================================================ */ | |
| 3126 | .timeline { position: relative; padding-left: 28px; } | |
| 16b325c | 3127 | .timeline::before { |
| 3128 | content: ''; | |
| 3129 | position: absolute; | |
| 3130 | left: 4px; | |
| 3131 | top: 8px; | |
| 3132 | bottom: 8px; | |
| 3133 | width: 2px; | |
| 2ce1d0b | 3134 | background: linear-gradient(180deg, var(--border) 0%, transparent 100%); |
| 16b325c | 3135 | } |
| 2ce1d0b | 3136 | .timeline-item { position: relative; padding-bottom: 16px; } |
| 16b325c | 3137 | .timeline-dot { |
| 3138 | position: absolute; | |
| 2ce1d0b | 3139 | left: -28px; |
| 3140 | top: 8px; | |
| 3141 | width: 12px; | |
| 3142 | height: 12px; | |
| 3143 | border-radius: var(--r-full); | |
| 3144 | background: var(--accent-gradient); | |
| 16b325c | 3145 | border: 2px solid var(--bg); |
| 2ce1d0b | 3146 | box-shadow: 0 0 0 1px var(--border-strong); |
| 16b325c | 3147 | } |
| 3148 | .timeline-content { | |
| 2ce1d0b | 3149 | background: var(--bg-elevated); |
| 16b325c | 3150 | border: 1px solid var(--border); |
| 2ce1d0b | 3151 | border-radius: var(--r-md); |
| 3152 | padding: 14px 16px; | |
| 16b325c | 3153 | } |
| f1ab587 | 3154 | |
| 2ce1d0b | 3155 | /* ============================================================ */ |
| 3156 | /* Toggle switch */ | |
| 3157 | /* ============================================================ */ | |
| f1ab587 | 3158 | .toggle-switch { |
| 3159 | position: relative; | |
| 3160 | display: inline-block; | |
| 2ce1d0b | 3161 | width: 40px; |
| 3162 | height: 22px; | |
| f1ab587 | 3163 | flex-shrink: 0; |
| 3164 | margin-left: 16px; | |
| 3165 | } | |
| 3166 | .toggle-switch input { opacity: 0; width: 0; height: 0; } | |
| 3167 | .toggle-slider { | |
| 3168 | position: absolute; | |
| 3169 | cursor: pointer; | |
| 3170 | top: 0; left: 0; right: 0; bottom: 0; | |
| 3171 | background: var(--bg-tertiary); | |
| 3172 | border: 1px solid var(--border); | |
| 2ce1d0b | 3173 | border-radius: var(--r-full); |
| 3174 | transition: all var(--t-base) var(--ease); | |
| f1ab587 | 3175 | } |
| 3176 | .toggle-slider::before { | |
| 3177 | content: ''; | |
| 3178 | position: absolute; | |
| 2ce1d0b | 3179 | height: 16px; |
| 3180 | width: 16px; | |
| f1ab587 | 3181 | left: 2px; |
| 3182 | bottom: 2px; | |
| 3183 | background: var(--text-muted); | |
| 2ce1d0b | 3184 | border-radius: var(--r-full); |
| 3185 | transition: all var(--t-base) var(--ease); | |
| f1ab587 | 3186 | } |
| 3187 | .toggle-switch input:checked + .toggle-slider { | |
| 2ce1d0b | 3188 | background: var(--accent-gradient); |
| 3189 | border-color: transparent; | |
| 479dcd9 | 3190 | box-shadow: 0 0 0 1px rgba(91,110,232,0.4); |
| f1ab587 | 3191 | } |
| 3192 | .toggle-switch input:checked + .toggle-slider::before { | |
| 2ce1d0b | 3193 | transform: translateX(18px); |
| f1ab587 | 3194 | background: #fff; |
| 3195 | } | |
| ef8d378 | 3196 | |
| 3197 | /* ============================================================ | |
| 3198 | * 2026 polish layer (purely additive — no layout changes). | |
| 3199 | * Improves typography rendering, focus states, hover affordances, | |
| 3200 | * and adds the gradient brand cue to primary buttons. Anything | |
| 3201 | * that could alter dimensions stays in the rules above. | |
| 3202 | * ============================================================ */ | |
| 3203 | html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } | |
| 3204 | body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; } | |
| 479dcd9 | 3205 | *::selection { background: rgba(91,110,232,0.30); color: var(--text); } |
| ef8d378 | 3206 | |
| 3207 | h1, h2, h3, h4 { letter-spacing: -0.018em; } | |
| 3208 | h1 { letter-spacing: -0.025em; } | |
| 3209 | ||
| 3210 | /* Smoother colour transitions everywhere links live */ | |
| 3211 | a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); } | |
| 3212 | ||
| 3213 | /* Buttons: focus rings + smoother transitions; primary gets the gradient */ | |
| 3214 | .btn { | |
| 3215 | transition: | |
| 3216 | background 120ms cubic-bezier(0.16,1,0.3,1), | |
| 3217 | border-color 120ms cubic-bezier(0.16,1,0.3,1), | |
| 3218 | transform 120ms cubic-bezier(0.16,1,0.3,1), | |
| 3219 | box-shadow 120ms cubic-bezier(0.16,1,0.3,1); | |
| 3220 | } | |
| 3221 | .btn:active { transform: translateY(0.5px); } | |
| 3222 | .btn:focus-visible { | |
| 3223 | outline: none; | |
| 479dcd9 | 3224 | box-shadow: var(--ring); |
| ef8d378 | 3225 | } |
| 3226 | .btn-primary { | |
| 479dcd9 | 3227 | background: var(--accent); |
| ef8d378 | 3228 | border-color: transparent; |
| 3229 | box-shadow: | |
| 479dcd9 | 3230 | inset 0 1px 0 rgba(255,255,255,0.12), |
| 3231 | 0 1px 2px rgba(0,0,0,0.25); | |
| ef8d378 | 3232 | } |
| 3233 | .btn-primary:hover { | |
| 479dcd9 | 3234 | background: var(--accent-hover); |
| ef8d378 | 3235 | filter: none; |
| 3236 | box-shadow: | |
| 479dcd9 | 3237 | inset 0 1px 0 rgba(255,255,255,0.15), |
| 3238 | 0 4px 12px rgba(0,0,0,0.25); | |
| ef8d378 | 3239 | } |
| 3240 | ||
| 3241 | /* Inputs: cleaner focus ring + hover */ | |
| 3242 | .form-group input:hover, | |
| 3243 | .form-group textarea:hover, | |
| 3244 | .form-group select:hover { | |
| 3245 | border-color: rgba(255,255,255,0.14); | |
| 3246 | } | |
| 3247 | .form-group input:focus, | |
| 3248 | .form-group textarea:focus, | |
| 3249 | .form-group select:focus { | |
| 479dcd9 | 3250 | border-color: var(--border-focus); |
| 3251 | box-shadow: var(--ring); | |
| ef8d378 | 3252 | } |
| 3253 | :root[data-theme='light'] .form-group input:hover, | |
| 3254 | :root[data-theme='light'] .form-group textarea:hover, | |
| 3255 | :root[data-theme='light'] .form-group select:hover { | |
| 3256 | border-color: rgba(0,0,0,0.18); | |
| 3257 | } | |
| 3258 | ||
| 3259 | /* Cards: subtle hover lift */ | |
| 3260 | .card { | |
| 3261 | transition: | |
| 3262 | border-color 160ms cubic-bezier(0.16,1,0.3,1), | |
| 3263 | transform 160ms cubic-bezier(0.16,1,0.3,1), | |
| 3264 | box-shadow 200ms cubic-bezier(0.16,1,0.3,1); | |
| 3265 | } | |
| 3266 | .card:hover { | |
| 3267 | border-color: rgba(255,255,255,0.18); | |
| 3268 | transform: translateY(-1px); | |
| 3269 | box-shadow: 0 8px 24px rgba(0,0,0,0.30); | |
| 3270 | } | |
| 3271 | :root[data-theme='light'] .card:hover { | |
| 3272 | border-color: rgba(0,0,0,0.18); | |
| 3273 | box-shadow: 0 8px 24px rgba(0,0,0,0.08); | |
| 3274 | } | |
| 3275 | ||
| 3276 | /* Issue / commit / panel rows: smoother hover */ | |
| 3277 | .issue-item, .commit-item { | |
| 3278 | transition: background 120ms cubic-bezier(0.16,1,0.3,1); | |
| 3279 | } | |
| 3280 | .repo-nav a { | |
| 3281 | transition: color 120ms cubic-bezier(0.16,1,0.3,1), | |
| 3282 | border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1); | |
| 3283 | } | |
| 3284 | .nav-link { | |
| 3285 | transition: color 120ms cubic-bezier(0.16,1,0.3,1); | |
| 3286 | } | |
| 3287 | ||
| 3288 | /* Auth card: subtle elevation so register/login feel premium */ | |
| 3289 | .auth-container { | |
| 3290 | background: var(--bg-secondary); | |
| 3291 | border: 1px solid var(--border); | |
| 3292 | border-radius: var(--r-lg, 12px); | |
| 3293 | padding: 32px; | |
| 3294 | box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border); | |
| 3295 | } | |
| 3296 | :root[data-theme='light'] .auth-container { | |
| 3297 | box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border); | |
| 3298 | } | |
| 3299 | .auth-container h2 { letter-spacing: -0.025em; } | |
| 3300 | ||
| 3301 | /* Empty state: dashed border, generous padding */ | |
| 3302 | .empty-state { | |
| 3303 | border: 1px dashed var(--border); | |
| 3304 | border-radius: var(--r-lg, 12px); | |
| 3305 | background: var(--bg); | |
| 3306 | } | |
| 3307 | ||
| 3308 | /* Badges + commit-sha: smoother transition */ | |
| 3309 | .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); } | |
| 3310 | ||
| 479dcd9 | 3311 | /* Gradient text utility — kept for back-compat, now renders as a |
| 3312 | quiet near-flat indigo rather than a purple→cyan sweep. */ | |
| ef8d378 | 3313 | .gradient-text { |
| 479dcd9 | 3314 | background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%); |
| ef8d378 | 3315 | -webkit-background-clip: text; |
| 3316 | background-clip: text; | |
| 3317 | -webkit-text-fill-color: transparent; | |
| 3318 | } | |
| 3319 | ||
| 3320 | /* Custom scrollbars (subtle, themed) */ | |
| 3321 | ::-webkit-scrollbar { width: 10px; height: 10px; } | |
| 3322 | ::-webkit-scrollbar-track { background: transparent; } | |
| 3323 | ::-webkit-scrollbar-thumb { | |
| 3324 | background: rgba(255,255,255,0.06); | |
| 3325 | border: 2px solid var(--bg); | |
| 3326 | border-radius: 9999px; | |
| 3327 | } | |
| 3328 | ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); } | |
| 3329 | :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); } | |
| 3330 | :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); } | |
| 3331 | ||
| 3332 | /* Honour reduced-motion preference */ | |
| 3333 | @media (prefers-reduced-motion: reduce) { | |
| 3334 | *, *::before, *::after { | |
| 3335 | animation-duration: 0.01ms !important; | |
| 3336 | animation-iteration-count: 1 !important; | |
| 3337 | transition-duration: 0.01ms !important; | |
| 3338 | } | |
| 3339 | } | |
| c63b860 | 3340 | |
| 3341 | /* Block O3 — visual coherence additive rules. */ | |
| 3342 | .card.card-p-none { padding: 0; } | |
| 3343 | .card.card-p-sm { padding: var(--space-3); } | |
| 3344 | .card.card-p-md { padding: var(--space-4); } | |
| 3345 | .card.card-p-lg { padding: var(--space-6); } | |
| 3346 | .card.card-elevated { box-shadow: var(--elev-2); } | |
| 3347 | .card.card-gradient { | |
| 3348 | background: | |
| 479dcd9 | 3349 | linear-gradient(135deg, rgba(91,110,232,0.05), transparent 60%), |
| c63b860 | 3350 | var(--bg-elevated); |
| 3351 | } | |
| 3352 | .card.card-gradient::before { opacity: 1; } | |
| 3353 | .notice { | |
| 3354 | padding: var(--space-3) var(--space-4); | |
| 3355 | border-radius: var(--radius-md); | |
| 3356 | border: 1px solid var(--border); | |
| 3357 | background: var(--bg-elevated); | |
| 3358 | color: var(--text); | |
| 3359 | font-size: var(--font-size-sm); | |
| 3360 | margin-bottom: var(--space-6); | |
| 3361 | line-height: var(--leading-normal); | |
| 3362 | } | |
| 3363 | .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); } | |
| 3364 | .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); } | |
| 3365 | .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); } | |
| 3366 | .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); } | |
| 479dcd9 | 3367 | .notice-accent { border-color: var(--accent); background: rgba(91,110,232,0.10); color: var(--text); } |
| c63b860 | 3368 | .email-preview { |
| 3369 | padding: var(--space-5); | |
| 3370 | background: #fff; | |
| 3371 | color: #111; | |
| 3372 | border-radius: var(--radius-md); | |
| 3373 | } | |
| 3374 | .code-block { | |
| 3375 | margin: var(--space-2) 0 0; | |
| 3376 | padding: var(--space-3); | |
| 3377 | background: var(--bg-tertiary); | |
| 3378 | border: 1px solid var(--border-subtle); | |
| 3379 | border-radius: var(--radius-sm); | |
| 3380 | font-family: var(--font-mono); | |
| 3381 | font-size: var(--font-size-xs); | |
| 3382 | line-height: var(--leading-normal); | |
| 3383 | overflow-x: auto; | |
| 3384 | } | |
| 3385 | .status-pill-operational { | |
| 3386 | display: inline-flex; | |
| 3387 | align-items: center; | |
| 3388 | padding: var(--space-1) var(--space-3); | |
| 3389 | border-radius: var(--radius-full); | |
| 3390 | font-size: var(--font-size-xs); | |
| 3391 | font-weight: 600; | |
| 3392 | background: rgba(52,211,153,0.15); | |
| 3393 | color: var(--green); | |
| 3394 | } | |
| 3395 | .api-tag { | |
| 3396 | display: inline-flex; | |
| 3397 | align-items: center; | |
| 3398 | font-size: var(--font-size-xs); | |
| 3399 | padding: 2px var(--space-2); | |
| 3400 | border-radius: var(--radius-sm); | |
| 3401 | font-family: var(--font-mono); | |
| 3402 | } | |
| 3403 | .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); } | |
| 3404 | .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); } | |
| 3405 | .stat-number { | |
| 3406 | font-size: var(--font-size-xl); | |
| 3407 | font-weight: 700; | |
| 3408 | color: var(--text-strong); | |
| 3409 | line-height: var(--leading-tight); | |
| 3410 | } | |
| 3411 | .stat-number-accent { color: var(--accent); } | |
| 3412 | .stat-number-blue { color: var(--blue); } | |
| 3413 | .stat-number-purple { color: var(--text-link); } | |
| 3414 | footer .footer-tag-sub { | |
| 3415 | margin-top: var(--space-2); | |
| 3416 | font-size: var(--font-size-xs); | |
| 3417 | color: var(--text-faint); | |
| 3418 | line-height: var(--leading-normal); | |
| 3419 | } | |
| 3420 | footer .footer-version-pill { | |
| 3421 | display: inline-flex; | |
| 3422 | align-items: center; | |
| 3423 | gap: var(--space-2); | |
| 3424 | padding: var(--space-1) var(--space-3); | |
| 3425 | border-radius: var(--radius-full); | |
| 3426 | border: 1px solid var(--border); | |
| 3427 | background: var(--bg-elevated); | |
| 3428 | color: var(--text-faint); | |
| 3429 | font-family: var(--font-mono); | |
| 3430 | font-size: var(--font-size-xs); | |
| 3431 | cursor: help; | |
| 3432 | } | |
| 3433 | footer .footer-banner { | |
| 3434 | max-width: 1240px; | |
| 3435 | margin: var(--space-6) auto 0; | |
| 3436 | padding: var(--space-3) var(--space-4); | |
| 3437 | border-radius: var(--radius-md); | |
| 3438 | border: 1px solid var(--border); | |
| 3439 | background: var(--bg-elevated); | |
| 3440 | color: var(--text); | |
| 3441 | font-family: var(--font-mono); | |
| 3442 | font-size: var(--font-size-xs); | |
| 3443 | letter-spacing: 0.04em; | |
| 3444 | text-transform: uppercase; | |
| 3445 | text-align: center; | |
| 3446 | } | |
| 3447 | footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); } | |
| 3448 | footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); } | |
| 3449 | footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); } | |
| dc26881 | 3450 | |
| cf9178b | 3451 | /* ============================================================ */ |
| 3452 | /* Global toast notifications. */ | |
| 3453 | /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */ | |
| 3454 | /* ============================================================ */ | |
| 3455 | .gx-toast { | |
| 3456 | pointer-events: auto; | |
| 3457 | display: inline-flex; | |
| 3458 | align-items: flex-start; | |
| 3459 | gap: 10px; | |
| 3460 | min-width: 280px; | |
| 3461 | max-width: min(440px, calc(100vw - 32px)); | |
| 3462 | padding: 12px 14px 12px 12px; | |
| 3463 | background: var(--bg-elevated); | |
| 3464 | border: 1px solid var(--border); | |
| 3465 | border-radius: 10px; | |
| 3466 | box-shadow: | |
| 3467 | 0 12px 36px -10px rgba(15,16,28,0.18), | |
| 3468 | 0 2px 6px rgba(15,16,28,0.04), | |
| 3469 | 0 0 0 1px rgba(15,16,28,0.02); | |
| 3470 | color: var(--text); | |
| 3471 | font-size: 13.5px; | |
| 3472 | line-height: 1.45; | |
| 3473 | opacity: 0; | |
| 3474 | transform: translateX(16px); | |
| 3475 | transition: | |
| 3476 | opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), | |
| 3477 | transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); | |
| 3478 | } | |
| 3479 | .gx-toast--in { opacity: 1; transform: translateX(0); } | |
| 3480 | .gx-toast--out { opacity: 0; transform: translateX(16px); } | |
| 3481 | .gx-toast__icon { | |
| 3482 | flex-shrink: 0; | |
| 3483 | width: 20px; height: 20px; | |
| 3484 | border-radius: 50%; | |
| 3485 | display: inline-flex; | |
| 3486 | align-items: center; | |
| 3487 | justify-content: center; | |
| 3488 | font-size: 12px; | |
| 3489 | font-weight: 700; | |
| 3490 | line-height: 1; | |
| 3491 | margin-top: 1px; | |
| 3492 | } | |
| 3493 | .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; } | |
| 3494 | .gx-toast__close { | |
| 3495 | flex-shrink: 0; | |
| 3496 | width: 22px; height: 22px; | |
| 3497 | border: 0; | |
| 3498 | background: transparent; | |
| 3499 | color: var(--text-muted); | |
| 3500 | font-size: 18px; | |
| 3501 | line-height: 1; | |
| 3502 | cursor: pointer; | |
| 3503 | border-radius: 4px; | |
| 3504 | padding: 0; | |
| 3505 | margin: -2px -2px 0 0; | |
| 3506 | transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); | |
| 3507 | } | |
| 3508 | .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); } | |
| 3509 | .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); } | |
| 3510 | .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); } | |
| 3511 | .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); } | |
| 479dcd9 | 3512 | .gx-toast--info .gx-toast__icon { background: rgba(91,110,232,0.14); color: var(--accent); } |
| cf9178b | 3513 | @media (prefers-reduced-motion: reduce) { |
| 3514 | .gx-toast { transition: opacity 60ms linear; transform: none; } | |
| 3515 | .gx-toast--in, .gx-toast--out { transform: none; } | |
| 3516 | } | |
| 3517 | ||
| dc26881 | 3518 | /* ============================================================ */ |
| 3519 | /* Block U4 — cross-document view transitions. */ | |
| 3520 | /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */ | |
| 3521 | /* every same-origin navigation. Older browsers ignore these */ | |
| 3522 | /* rules entirely — no JS shim, no breakage. */ | |
| 3523 | /* prefers-reduced-motion disables the animation honourably. */ | |
| 3524 | /* ============================================================ */ | |
| 3525 | @view-transition { | |
| 3526 | navigation: auto; | |
| 3527 | } | |
| 3528 | ::view-transition-old(root), | |
| 3529 | ::view-transition-new(root) { | |
| 3530 | animation-duration: 200ms; | |
| 3531 | animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); | |
| 3532 | } | |
| 3533 | ::view-transition-old(root) { | |
| 3534 | animation-name: vt-fade-out; | |
| 3535 | } | |
| 3536 | ::view-transition-new(root) { | |
| 3537 | animation-name: vt-fade-in; | |
| 3538 | } | |
| 3539 | @keyframes vt-fade-out { | |
| 3540 | to { opacity: 0; } | |
| 3541 | } | |
| 3542 | @keyframes vt-fade-in { | |
| 3543 | from { opacity: 0; } | |
| 3544 | } | |
| 3545 | @media (prefers-reduced-motion: reduce) { | |
| 3546 | ::view-transition-old(root), | |
| 3547 | ::view-transition-new(root) { | |
| 3548 | animation-duration: 0s; | |
| 3549 | } | |
| 3550 | } | |
| 3551 | /* The transition system picks up its root subject from this rule. */ | |
| 3552 | body { | |
| 3553 | view-transition-name: root; | |
| 3554 | } | |
| fc1817a | 3555 | `; |