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