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