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