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