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