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' }, | |
| 771 | { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' }, | |
| 772 | { label: 'Gists', href: '/gists', kw: 'snippets' }, | |
| 773 | { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' }, | |
| 774 | { label: 'Admin dashboard', href: '/admin', kw: 'superuser' }, | |
| 775 | { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' } | |
| 776 | ]; | |
| 777 | ||
| 778 | function fuzzyMatch(item, q){ | |
| 779 | if (!q) return true; | |
| 780 | var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase(); | |
| 781 | q = q.toLowerCase(); | |
| 782 | var qi = 0; | |
| 783 | for (var i = 0; i < hay.length && qi < q.length; i++) { | |
| 784 | if (hay[i] === q[qi]) qi++; | |
| 785 | } | |
| 786 | return qi === q.length; | |
| 787 | } | |
| 788 | ||
| 789 | var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice(); | |
| 790 | ||
| 791 | function render(){ | |
| 792 | if (!list) return; | |
| 793 | var html = ''; | |
| 794 | for (var i = 0; i < filtered.length; i++) { | |
| 795 | var item = filtered[i]; | |
| 796 | var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item'; | |
| 797 | var bg = i === selected ? 'background:var(--bg);' : ''; | |
| ea52715 | 798 | html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' + |
| dc26881 | 799 | ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' + |
| 71cd5ec | 800 | '<div>' + item.label + '</div>' + |
| 801 | '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' + | |
| 802 | '</div>'; | |
| 803 | } | |
| 804 | if (filtered.length === 0) { | |
| dc26881 | 805 | html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>'; |
| 71cd5ec | 806 | } |
| 807 | list.innerHTML = html; | |
| 808 | } | |
| 809 | ||
| 810 | function openPalette(){ | |
| 811 | backdrop = document.getElementById('cmdk-backdrop'); | |
| 812 | panel = document.getElementById('cmdk-panel'); | |
| 813 | input = document.getElementById('cmdk-input'); | |
| 814 | list = document.getElementById('cmdk-list'); | |
| 815 | if (!backdrop || !panel) return; | |
| 816 | backdrop.style.display = 'block'; | |
| 817 | panel.style.display = 'block'; | |
| 818 | input.value = ''; | |
| 819 | selected = 0; | |
| 820 | filtered = COMMANDS.slice(); | |
| 821 | render(); | |
| 822 | input.focus(); | |
| 823 | } | |
| 824 | function closePalette(){ | |
| 825 | if (backdrop) backdrop.style.display = 'none'; | |
| 826 | if (panel) panel.style.display = 'none'; | |
| 827 | } | |
| 828 | function go(href){ closePalette(); window.location.href = href; } | |
| 829 | ||
| 830 | document.addEventListener('click', function(e){ | |
| 831 | var t = e.target; | |
| 832 | if (t && t.id === 'cmdk-backdrop') { closePalette(); return; } | |
| 833 | var item = t && t.closest && t.closest('.cmdk-item'); | |
| ea52715 | 834 | if (item) { go(item.getAttribute('data-url')); } |
| 71cd5ec | 835 | }); |
| 836 | ||
| 837 | document.addEventListener('input', function(e){ | |
| 838 | if (e.target && e.target.id === 'cmdk-input') { | |
| 839 | var q = e.target.value; | |
| 840 | filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); }); | |
| 841 | selected = 0; | |
| 842 | render(); | |
| 843 | } | |
| 844 | }); | |
| 845 | ||
| 3ef4c9d | 846 | document.addEventListener('keydown', function(e){ |
| 71cd5ec | 847 | // Palette-scoped keys take priority when open |
| 848 | if (panel && panel.style.display === 'block') { | |
| 849 | if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; } | |
| 850 | if (e.key === 'ArrowDown') { | |
| 851 | e.preventDefault(); | |
| 852 | selected = Math.min(filtered.length - 1, selected + 1); | |
| 853 | render(); | |
| 854 | return; | |
| 855 | } | |
| 856 | if (e.key === 'ArrowUp') { | |
| 857 | e.preventDefault(); | |
| 858 | selected = Math.max(0, selected - 1); | |
| 859 | render(); | |
| 860 | return; | |
| 861 | } | |
| 862 | if (e.key === 'Enter') { | |
| 863 | e.preventDefault(); | |
| 864 | var item = filtered[selected]; | |
| 865 | if (item) go(item.href); | |
| 866 | return; | |
| 867 | } | |
| 868 | return; | |
| 869 | } | |
| 870 | ||
| 3ef4c9d | 871 | if (isTyping(e.target)) return; |
| 872 | // Single key shortcuts | |
| 873 | if (e.key === '/') { | |
| 874 | var el = document.querySelector('.nav-search input'); | |
| 875 | if (el) { e.preventDefault(); el.focus(); return; } | |
| 876 | } | |
| 877 | if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') { | |
| 71cd5ec | 878 | e.preventDefault(); |
| 879 | openPalette(); | |
| 880 | return; | |
| 3ef4c9d | 881 | } |
| 882 | if (e.key === '?' && !e.ctrlKey && !e.metaKey) { | |
| 883 | e.preventDefault(); window.location.href = '/shortcuts'; return; | |
| 884 | } | |
| 885 | if (e.key === 'n' && !e.ctrlKey && !e.metaKey) { | |
| 886 | e.preventDefault(); window.location.href = '/new'; return; | |
| 887 | } | |
| 888 | // "g" chord | |
| 889 | if (e.key === 'g' && !e.ctrlKey && !e.metaKey) { | |
| 890 | chord = 'g'; | |
| 891 | clearTimeout(chordTimer); | |
| 892 | chordTimer = setTimeout(function(){ chord = null; }, 1200); | |
| 893 | return; | |
| 894 | } | |
| 895 | if (chord === 'g') { | |
| 896 | if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; } | |
| 897 | else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; } | |
| 898 | else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; } | |
| 899 | else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; } | |
| 900 | chord = null; | |
| 901 | } | |
| 902 | }); | |
| 903 | })(); | |
| 904 | `; | |
| 905 | ||
| c6018a5 | 906 | // AI dropdown — keyboard- and click-accessible menu in the top nav. |
| 907 | // CSS handles the hover-open behaviour for pointer users; this script | |
| 908 | // adds click-to-toggle for touch, Escape-to-close, and outside-click- | |
| 909 | // to-close. Lives in its own IIFE so it never interferes with navScript. | |
| 910 | const navAiDropdownScript = ` | |
| 911 | (function(){ | |
| 912 | var open = false; | |
| 913 | var root = document.querySelector('[data-nav-ai]'); | |
| 914 | if (!root) return; | |
| 915 | var trigger = root.querySelector('[data-nav-ai-trigger]'); | |
| 916 | var menu = root.querySelector('[data-nav-ai-menu]'); | |
| 917 | if (!trigger || !menu) return; | |
| 918 | function setOpen(next){ | |
| 919 | open = !!next; | |
| 920 | root.classList.toggle('is-open', open); | |
| 921 | trigger.setAttribute('aria-expanded', open ? 'true' : 'false'); | |
| 922 | } | |
| 923 | trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); }); | |
| 924 | document.addEventListener('click', function(e){ | |
| 925 | if (!open) return; | |
| 926 | if (root.contains(e.target)) return; | |
| 927 | setOpen(false); | |
| 928 | }); | |
| 929 | document.addEventListener('keydown', function(e){ | |
| 930 | if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); } | |
| 931 | }); | |
| 932 | })(); | |
| 933 | `; | |
| 934 | ||
| fc1817a | 935 | const css = ` |
| 2ce1d0b | 936 | /* ================================================================ |
| 958d26a | 937 | * Gluecron design system — 2026.05 "Editorial-Technical" |
| 938 | * Slate-noir base · refined violet signature · hairline geometry · | |
| 939 | * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono. | |
| 940 | * All class names preserved for back-compat across 50+ route views. | |
| 2ce1d0b | 941 | * ============================================================== */ |
| 6fc53bd | 942 | :root, :root[data-theme='dark'] { |
| 958d26a | 943 | /* Surfaces — slate, not black. More depth, less crush. */ |
| 944 | --bg: #08090f; | |
| 945 | --bg-secondary: #0c0d14; | |
| 946 | --bg-tertiary: #11131c; | |
| 947 | --bg-elevated: #0f111a; | |
| 948 | --bg-surface: #161826; | |
| 949 | --bg-hover: rgba(255,255,255,0.04); | |
| 950 | --bg-active: rgba(255,255,255,0.08); | |
| 951 | --bg-inset: rgba(0,0,0,0.30); | |
| 952 | ||
| 953 | /* Borders — three weights, used deliberately */ | |
| 954 | --border: rgba(255,255,255,0.06); | |
| 955 | --border-subtle: rgba(255,255,255,0.035); | |
| 956 | --border-strong: rgba(255,255,255,0.13); | |
| 957 | --border-focus: rgba(140,109,255,0.55); | |
| 958 | ||
| 959 | /* Text */ | |
| 960 | --text: #ededf2; | |
| 961 | --text-strong: #f7f7fb; | |
| 962 | --text-muted: #8b8c9c; | |
| 963 | --text-faint: #555665; | |
| 964 | --text-link: #b69dff; | |
| 965 | ||
| 966 | /* Accent — refined violet (less candy), warm amber as secondary signal */ | |
| 967 | --accent: #8c6dff; | |
| 968 | --accent-2: #36c5d6; | |
| 969 | --accent-warm: #ffb45e; | |
| 970 | --accent-hover: #a48bff; | |
| 971 | --accent-pressed:#7559e8; | |
| 972 | --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%); | |
| 973 | --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%); | |
| 974 | --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%); | |
| 975 | --accent-glow: 0 0 24px rgba(140,109,255,0.28); | |
| 976 | ||
| 977 | /* Semantic */ | |
| 978 | --green: #34d399; | |
| 979 | --red: #f87171; | |
| 980 | --yellow: #fbbf24; | |
| 981 | --amber: #fbbf24; | |
| 982 | --blue: #60a5fa; | |
| 983 | ||
| 3a5755e | 984 | /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for |
| 985 | display (headlines), JetBrains Mono for code. All three loaded from | |
| 986 | Google Fonts with display:swap so we never block first paint. System | |
| 987 | fallbacks remain in place — if the CDN is unreachable the site still | |
| 988 | renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */ | |
| 989 | --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace; | |
| 990 | --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| 991 | --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| 958d26a | 992 | --mono-feat: 'calt', 'liga', 'ss01'; |
| 993 | ||
| 994 | /* Radius — sharper than before */ | |
| 995 | --r-sm: 5px; | |
| 996 | --r: 7px; | |
| 997 | --r-md: 9px; | |
| 998 | --r-lg: 12px; | |
| 999 | --r-xl: 16px; | |
| 1000 | --r-2xl: 22px; | |
| 1001 | --r-full: 9999px; | |
| 1002 | --radius: 7px; | |
| 1003 | ||
| 1004 | /* Type scale — bigger display sizes for editorial feel */ | |
| 1005 | --t-xs: 11px; | |
| 1006 | --t-sm: 13px; | |
| 1007 | --t-base: 14px; | |
| 1008 | --t-md: 16px; | |
| 1009 | --t-lg: 20px; | |
| 1010 | --t-xl: 28px; | |
| 1011 | --t-2xl: 40px; | |
| 1012 | --t-3xl: 56px; | |
| 1013 | --t-display: 72px; | |
| 1014 | --t-display-lg:96px; | |
| 1015 | ||
| 1016 | /* Spacing — 4px base */ | |
| 2ce1d0b | 1017 | --s-0: 0; |
| 958d26a | 1018 | --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; |
| 1019 | --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px; | |
| 1020 | --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px; | |
| 1021 | --s-20:80px; --s-24:96px; --s-32:128px; | |
| 1022 | ||
| 1023 | /* Elevation — softer + more layered */ | |
| 1024 | --elev-0: 0 0 0 1px var(--border); | |
| 1025 | --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border); | |
| 1026 | --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border); | |
| 1027 | --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong); | |
| 1028 | --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30); | |
| 1029 | --ring: 0 0 0 3px rgba(140,109,255,0.28); | |
| 1030 | --ring-warn: 0 0 0 3px rgba(251,191,36,0.28); | |
| 1031 | --ring-err: 0 0 0 3px rgba(248,113,113,0.28); | |
| 1032 | ||
| 1033 | /* Motion */ | |
| 1034 | --ease: cubic-bezier(0.16, 1, 0.3, 1); | |
| 1035 | --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); | |
| 1036 | --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1); | |
| 1037 | --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1); | |
| 1038 | --t-fast: 120ms; | |
| 1039 | --t-base: 200ms; | |
| 1040 | --t-slow: 360ms; | |
| 1041 | --t-slower:560ms; | |
| 1042 | ||
| 1043 | --header-h: 60px; | |
| c63b860 | 1044 | |
| 1045 | /* Block O3 — visual coherence: named token aliases (additive). */ | |
| 1046 | --space-1: var(--s-1); | |
| 1047 | --space-2: var(--s-2); | |
| 1048 | --space-3: var(--s-3); | |
| 1049 | --space-4: var(--s-4); | |
| 1050 | --space-5: var(--s-5); | |
| 1051 | --space-6: var(--s-6); | |
| 1052 | --space-8: var(--s-8); | |
| 1053 | --space-10: var(--s-10); | |
| 1054 | --space-12: var(--s-12); | |
| 1055 | --space-16: var(--s-16); | |
| 1056 | --space-20: var(--s-20); | |
| 1057 | --space-24: var(--s-24); | |
| 1058 | --radius-sm: var(--r-sm); | |
| 1059 | --radius-md: var(--r-md); | |
| 1060 | --radius-lg: var(--r-lg); | |
| 1061 | --radius-xl: var(--r-xl); | |
| 1062 | --radius-full: var(--r-full); | |
| 1063 | --font-size-xs: var(--t-xs); | |
| 1064 | --font-size-sm: var(--t-sm); | |
| 1065 | --font-size-base: var(--t-base); | |
| 1066 | --font-size-md: var(--t-md); | |
| 1067 | --font-size-lg: var(--t-lg); | |
| 1068 | --font-size-xl: var(--t-xl); | |
| 1069 | --font-size-2xl: var(--t-2xl); | |
| 1070 | --font-size-3xl: var(--t-3xl); | |
| 1071 | --font-size-hero: var(--t-display); | |
| 1072 | --leading-tight: 1.2; | |
| 1073 | --leading-snug: 1.35; | |
| 1074 | --leading-normal: 1.5; | |
| 1075 | --leading-relaxed: 1.6; | |
| 1076 | --leading-loose: 1.7; | |
| 1077 | --z-base: 1; | |
| 1078 | --z-nav: 10; | |
| 1079 | --z-sticky: 50; | |
| 1080 | --z-overlay: 100; | |
| 1081 | --z-modal: 1000; | |
| 1082 | --z-toast: 10000; | |
| fc1817a | 1083 | } |
| 1084 | ||
| 6fc53bd | 1085 | :root[data-theme='light'] { |
| 958d26a | 1086 | --bg: #fbfbfc; |
| 4c47454 | 1087 | --bg-secondary: #ffffff; |
| 958d26a | 1088 | --bg-tertiary: #f3f3f6; |
| 1089 | --bg-elevated: #ffffff; | |
| 1090 | --bg-surface: #f6f6f9; | |
| 1091 | --bg-hover: rgba(0,0,0,0.035); | |
| 1092 | --bg-active: rgba(0,0,0,0.07); | |
| 1093 | --bg-inset: rgba(0,0,0,0.04); | |
| 1094 | ||
| 1095 | --border: rgba(15,16,28,0.08); | |
| 1096 | --border-subtle: rgba(15,16,28,0.04); | |
| 1097 | --border-strong: rgba(15,16,28,0.16); | |
| 1098 | ||
| 1099 | --text: #0e1020; | |
| 1100 | --text-strong: #050617; | |
| 1101 | --text-muted: #5a5b70; | |
| 1102 | --text-faint: #8a8b9e; | |
| 1103 | --text-link: #6d4dff; | |
| 1104 | ||
| 1105 | --accent: #6d4dff; | |
| 1106 | --accent-2: #0891b2; | |
| 1107 | --accent-hover: #5a3df0; | |
| 1108 | --accent-pressed:#4a30d6; | |
| 1109 | --accent-glow: 0 0 24px rgba(109,77,255,0.18); | |
| 1110 | ||
| 1111 | --green: #059669; | |
| 1112 | --red: #dc2626; | |
| 4c47454 | 1113 | --yellow: #d97706; |
| 958d26a | 1114 | |
| 1115 | --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border); | |
| 1116 | --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border); | |
| 1117 | --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong); | |
| 6fc53bd | 1118 | } |
| 1119 | ||
| 1120 | /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */ | |
| 958d26a | 1121 | .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; } |
| 1122 | .nav-theme:hover { opacity: 1; } | |
| 6fc53bd | 1123 | :root[data-theme='dark'] .theme-icon-dark { display: none; } |
| 1124 | :root[data-theme='light'] .theme-icon-light { display: none; } | |
| 1125 | ||
| fc1817a | 1126 | * { margin: 0; padding: 0; box-sizing: border-box; } |
| 958d26a | 1127 | *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); } |
| 2ce1d0b | 1128 | |
| 958d26a | 1129 | html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } |
| fc1817a | 1130 | |
| 1131 | body { | |
| 1132 | font-family: var(--font-sans); | |
| 1133 | background: var(--bg); | |
| 1134 | color: var(--text); | |
| cf9178b | 1135 | font-size: 15px; |
| 2ce1d0b | 1136 | line-height: 1.55; |
| 958d26a | 1137 | letter-spacing: -0.011em; |
| fc1817a | 1138 | min-height: 100vh; |
| 1139 | display: flex; | |
| 1140 | flex-direction: column; | |
| 958d26a | 1141 | font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt'; |
| cf9178b | 1142 | /* Subtle: prefers grayscale font smoothing on macOS for thin text, |
| 1143 | and disables automatic synthesis of bold/italic which can produce | |
| 1144 | muddier rendering on certain weights. */ | |
| 1145 | -webkit-font-smoothing: antialiased; | |
| 1146 | -moz-osx-font-smoothing: grayscale; | |
| 1147 | font-synthesis: none; | |
| 1148 | } | |
| 1149 | /* Tighten heading rhythm — the body is 15/1.55, headings step down | |
| 1150 | line-height inversely with size so display text doesn't feel airy. */ | |
| 1151 | h1, h2, h3, h4, h5, h6 { | |
| 1152 | font-family: var(--font-display); | |
| 1153 | color: var(--text-strong); | |
| 1154 | letter-spacing: -0.022em; | |
| 1155 | line-height: 1.18; | |
| 1156 | font-weight: 650; | |
| 1157 | margin-top: 0; | |
| 1158 | } | |
| 1159 | h1 { font-size: 28px; letter-spacing: -0.028em; } | |
| 1160 | h2 { font-size: 22px; } | |
| 1161 | h3 { font-size: 18px; letter-spacing: -0.018em; } | |
| 1162 | h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; } | |
| 1163 | /* Link refinement — underline only on hover/focus, never by default | |
| 1164 | on internal nav. Prevents the "blue underline soup" look. */ | |
| 1165 | a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); } | |
| 1166 | a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; } | |
| 1167 | a:focus-visible { | |
| 1168 | outline: none; | |
| 1169 | box-shadow: 0 0 0 3px rgba(109,77,255,0.32); | |
| 1170 | border-radius: 3px; | |
| fc1817a | 1171 | } |
| 1172 | ||
| 958d26a | 1173 | /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything. |
| 1174 | Keeps every page feeling like part of the same product without competing with hero art. */ | |
| 2ce1d0b | 1175 | body::before { |
| 1176 | content: ''; | |
| 1177 | position: fixed; | |
| 1178 | inset: 0; | |
| 1179 | pointer-events: none; | |
| 958d26a | 1180 | z-index: -2; |
| 2ce1d0b | 1181 | background: |
| 958d26a | 1182 | radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%), |
| 1183 | radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%); | |
| 1184 | } | |
| 1185 | body::after { | |
| 1186 | content: ''; | |
| 1187 | position: fixed; | |
| 1188 | inset: 0; | |
| 1189 | pointer-events: none; | |
| 1190 | z-index: -1; | |
| 1191 | background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px); | |
| 1192 | background-size: 28px 28px; | |
| 1193 | background-position: 0 0; | |
| 1194 | opacity: 0.55; | |
| 1195 | mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); | |
| 1196 | -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); | |
| 1197 | } | |
| 1198 | :root[data-theme='light'] body::before { opacity: 0.55; } | |
| 1199 | :root[data-theme='light'] body::after { | |
| 1200 | background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px); | |
| 1201 | opacity: 0.4; | |
| fc1817a | 1202 | } |
| 2ce1d0b | 1203 | |
| 1204 | a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); } | |
| 1205 | a:hover { color: var(--accent-hover); text-decoration: none; } | |
| fc1817a | 1206 | |
| 958d26a | 1207 | /* Heading scale — confident, editorial, tight tracking */ |
| 1208 | h1, h2, h3, h4, h5, h6 { | |
| 1209 | font-family: var(--font-display); | |
| 2ce1d0b | 1210 | font-weight: 600; |
| 958d26a | 1211 | letter-spacing: -0.022em; |
| 1212 | line-height: 1.18; | |
| 1213 | color: var(--text-strong); | |
| 1214 | } | |
| 1215 | h1 { font-size: var(--t-xl); letter-spacing: -0.028em; } | |
| 1216 | h2 { font-size: var(--t-lg); letter-spacing: -0.022em; } | |
| 1217 | h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; } | |
| 1218 | h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; } | |
| 1219 | h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; } | |
| 1220 | ||
| 1221 | /* Editorial display heading utility — used by landing + marketing pages */ | |
| 1222 | .display { | |
| 1223 | font-family: var(--font-display); | |
| 1224 | font-size: clamp(40px, 7.5vw, 96px); | |
| 1225 | line-height: 0.98; | |
| 1226 | letter-spacing: -0.04em; | |
| 1227 | font-weight: 600; | |
| 1228 | color: var(--text-strong); | |
| 2ce1d0b | 1229 | } |
| fc1817a | 1230 | |
| 958d26a | 1231 | /* Eyebrow — uppercase mono label that sits above section headings */ |
| 1232 | .eyebrow { | |
| 1233 | display: inline-flex; | |
| 1234 | align-items: center; | |
| 1235 | gap: 8px; | |
| 1236 | font-family: var(--font-mono); | |
| 1237 | font-size: 11px; | |
| 1238 | font-weight: 500; | |
| 1239 | letter-spacing: 0.14em; | |
| 1240 | text-transform: uppercase; | |
| 1241 | color: var(--accent); | |
| 1242 | margin-bottom: var(--s-3); | |
| 1243 | } | |
| 1244 | .eyebrow::before { | |
| 1245 | content: ''; | |
| 1246 | width: 18px; | |
| 1247 | height: 1px; | |
| 1248 | background: currentColor; | |
| 1249 | opacity: 0.6; | |
| 1250 | } | |
| 1251 | ||
| 1252 | /* Section header — paired eyebrow + title + lede */ | |
| 1253 | .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; } | |
| 1254 | .section-header.left { text-align: left; margin-left: 0; margin-right: auto; } | |
| 1255 | .section-header h2 { | |
| 1256 | font-size: clamp(28px, 4vw, 44px); | |
| 1257 | line-height: 1.05; | |
| 1258 | letter-spacing: -0.028em; | |
| 1259 | margin-bottom: var(--s-3); | |
| 1260 | } | |
| 1261 | .section-header p { | |
| 1262 | color: var(--text-muted); | |
| 1263 | font-size: var(--t-md); | |
| 1264 | line-height: 1.6; | |
| 1265 | max-width: 580px; | |
| 1266 | margin: 0 auto; | |
| 1267 | } | |
| 1268 | .section-header.left p { margin-left: 0; } | |
| fc1817a | 1269 | |
| 958d26a | 1270 | code, kbd, samp { |
| 2ce1d0b | 1271 | font-family: var(--font-mono); |
| 958d26a | 1272 | font-feature-settings: var(--mono-feat); |
| 1273 | } | |
| 1274 | code { | |
| 1275 | font-size: 0.9em; | |
| 2ce1d0b | 1276 | background: var(--bg-tertiary); |
| 958d26a | 1277 | border: 1px solid var(--border-subtle); |
| 2ce1d0b | 1278 | padding: 1px 6px; |
| 1279 | border-radius: var(--r-sm); | |
| 1280 | color: var(--text); | |
| 1281 | } | |
| 958d26a | 1282 | kbd, .kbd { |
| 1283 | display: inline-flex; | |
| 1284 | align-items: center; | |
| 1285 | padding: 1px 6px; | |
| 1286 | font-family: var(--font-mono); | |
| 1287 | font-size: 11px; | |
| 1288 | background: var(--bg-elevated); | |
| 1289 | border: 1px solid var(--border); | |
| 1290 | border-bottom-width: 2px; | |
| 1291 | border-radius: 4px; | |
| 1292 | color: var(--text); | |
| 1293 | line-height: 1.5; | |
| 1294 | vertical-align: middle; | |
| 1295 | } | |
| 2ce1d0b | 1296 | |
| 958d26a | 1297 | /* Mono utility for technical chrome (paths, IDs, dates) */ |
| 1298 | .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; } | |
| 1299 | .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; } | |
| 1300 | ||
| 1301 | /* Pre-launch banner — slim, refined, mono caption */ | |
| 4a52a98 | 1302 | .prelaunch-banner { |
| 958d26a | 1303 | position: relative; |
| 2ce1d0b | 1304 | background: |
| 958d26a | 1305 | linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)), |
| 2ce1d0b | 1306 | var(--bg); |
| 958d26a | 1307 | border-bottom: 1px solid rgba(251,191,36,0.28); |
| 4a52a98 | 1308 | color: var(--yellow); |
| 958d26a | 1309 | padding: 7px 24px; |
| 1310 | font-family: var(--font-mono); | |
| 1311 | font-size: 11px; | |
| 4a52a98 | 1312 | font-weight: 500; |
| 1313 | text-align: center; | |
| 2ce1d0b | 1314 | line-height: 1.5; |
| 958d26a | 1315 | letter-spacing: 0.04em; |
| 1316 | text-transform: uppercase; | |
| 1317 | } | |
| 1318 | .prelaunch-banner::before { | |
| 1319 | content: '◆'; | |
| 1320 | margin-right: 8px; | |
| 1321 | font-size: 9px; | |
| 1322 | opacity: 0.7; | |
| 1323 | vertical-align: 1px; | |
| 4a52a98 | 1324 | } |
| 1325 | ||
| cd4f63b | 1326 | /* Block Q3 — Playground banner. Brighter than the prelaunch strip so |
| 1327 | visitors don't miss the "save your work" CTA, but slim enough to | |
| 1328 | not feel like a modal. */ | |
| 1329 | .playground-banner { | |
| 1330 | position: relative; | |
| 1331 | display: flex; | |
| 1332 | align-items: center; | |
| 1333 | justify-content: center; | |
| 1334 | gap: 8px; | |
| 1335 | background: | |
| 1336 | linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)), | |
| 1337 | var(--bg); | |
| 1338 | border-bottom: 1px solid rgba(251,191,36,0.45); | |
| 1339 | color: var(--yellow, #fbbf24); | |
| 1340 | padding: 8px 40px 8px 24px; | |
| 1341 | font-size: 13px; | |
| 1342 | font-weight: 500; | |
| 1343 | text-align: center; | |
| 1344 | line-height: 1.4; | |
| 1345 | } | |
| 1346 | .playground-banner-icon { font-size: 14px; } | |
| 1347 | .playground-banner-text { color: var(--text-strong, #e6edf3); } | |
| 1348 | .playground-banner-countdown { font-weight: 600; } | |
| 1349 | .playground-banner-cta { | |
| 1350 | margin-left: 4px; | |
| 1351 | color: var(--yellow, #fbbf24); | |
| 1352 | text-decoration: underline; | |
| 1353 | font-weight: 600; | |
| 1354 | } | |
| 1355 | .playground-banner-cta:hover { opacity: 0.85; } | |
| 1356 | .playground-banner-dismiss { | |
| 1357 | position: absolute; | |
| 1358 | top: 50%; | |
| 1359 | right: 12px; | |
| 1360 | transform: translateY(-50%); | |
| 1361 | background: transparent; | |
| 1362 | border: none; | |
| 1363 | color: var(--text-muted, #8b949e); | |
| 1364 | font-size: 18px; | |
| 1365 | line-height: 1; | |
| 1366 | cursor: pointer; | |
| 1367 | padding: 0 4px; | |
| 1368 | } | |
| 1369 | .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); } | |
| 1370 | ||
| 958d26a | 1371 | /* Header — sticky, blurred, hairline border, taller for breathing room */ |
| fc1817a | 1372 | header { |
| 2ce1d0b | 1373 | position: sticky; |
| 1374 | top: 0; | |
| 1375 | z-index: 100; | |
| fc1817a | 1376 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 1377 | padding: 0 24px; |
| 1378 | height: var(--header-h); | |
| 958d26a | 1379 | background: rgba(8,9,15,0.72); |
| 1380 | backdrop-filter: saturate(180%) blur(18px); | |
| 1381 | -webkit-backdrop-filter: saturate(180%) blur(18px); | |
| fc1817a | 1382 | } |
| 958d26a | 1383 | :root[data-theme='light'] header { background: rgba(251,251,252,0.78); } |
| fc1817a | 1384 | |
| 06d5ffe | 1385 | header nav { |
| 1386 | display: flex; | |
| 1387 | align-items: center; | |
| 958d26a | 1388 | gap: 18px; |
| 1389 | max-width: 1240px; | |
| 06d5ffe | 1390 | margin: 0 auto; |
| 2ce1d0b | 1391 | height: 100%; |
| 1392 | } | |
| 1393 | .logo { | |
| 958d26a | 1394 | font-family: var(--font-display); |
| 1395 | font-size: 16px; | |
| 2ce1d0b | 1396 | font-weight: 700; |
| 958d26a | 1397 | letter-spacing: -0.025em; |
| 1398 | color: var(--text-strong); | |
| 2ce1d0b | 1399 | display: inline-flex; |
| 1400 | align-items: center; | |
| 958d26a | 1401 | gap: 9px; |
| 1402 | transition: opacity var(--t-fast) var(--ease); | |
| 06d5ffe | 1403 | } |
| 2ce1d0b | 1404 | .logo::before { |
| 1405 | content: ''; | |
| 958d26a | 1406 | width: 20px; height: 20px; |
| 1407 | border-radius: 6px; | |
| 2ce1d0b | 1408 | background: var(--accent-gradient); |
| 958d26a | 1409 | box-shadow: |
| 1410 | inset 0 1px 0 rgba(255,255,255,0.25), | |
| 1411 | 0 0 0 1px rgba(140,109,255,0.45), | |
| 1412 | 0 0 20px rgba(140,109,255,0.30); | |
| 2ce1d0b | 1413 | flex-shrink: 0; |
| 958d26a | 1414 | transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease); |
| 1415 | } | |
| 1416 | .logo:hover { text-decoration: none; color: var(--text-strong); } | |
| 1417 | .logo:hover::before { | |
| 1418 | transform: rotate(8deg) scale(1.05); | |
| 1419 | box-shadow: | |
| 1420 | inset 0 1px 0 rgba(255,255,255,0.30), | |
| 1421 | 0 0 0 1px rgba(140,109,255,0.55), | |
| 1422 | 0 0 28px rgba(140,109,255,0.45); | |
| 06d5ffe | 1423 | } |
| fc1817a | 1424 | |
| 2ce1d0b | 1425 | .nav-search { |
| 1426 | flex: 1; | |
| 958d26a | 1427 | max-width: 360px; |
| 1428 | margin: 0 4px 0 8px; | |
| 1429 | position: relative; | |
| 2ce1d0b | 1430 | } |
| 1431 | .nav-search input { | |
| 1432 | width: 100%; | |
| 958d26a | 1433 | padding: 7px 12px 7px 32px; |
| 2ce1d0b | 1434 | background: var(--bg-tertiary); |
| 1435 | border: 1px solid var(--border); | |
| 1436 | border-radius: var(--r-sm); | |
| 1437 | color: var(--text); | |
| 1438 | font-family: var(--font-sans); | |
| 1439 | font-size: var(--t-sm); | |
| 958d26a | 1440 | transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); |
| 1441 | } | |
| 1442 | .nav-search::before { | |
| 1443 | content: ''; | |
| 1444 | position: absolute; | |
| 1445 | left: 11px; top: 50%; | |
| 1446 | transform: translateY(-50%); | |
| 1447 | width: 12px; height: 12px; | |
| 1448 | border: 1.5px solid var(--text-faint); | |
| 1449 | border-radius: 50%; | |
| 1450 | pointer-events: none; | |
| 1451 | } | |
| 1452 | .nav-search::after { | |
| 1453 | content: ''; | |
| 1454 | position: absolute; | |
| 1455 | left: 19px; top: calc(50% + 4px); | |
| 1456 | width: 5px; height: 1.5px; | |
| 1457 | background: var(--text-faint); | |
| 1458 | transform: rotate(45deg); | |
| 1459 | pointer-events: none; | |
| 2ce1d0b | 1460 | } |
| 1461 | .nav-search input::placeholder { color: var(--text-faint); } | |
| 1462 | .nav-search input:focus { | |
| 1463 | outline: none; | |
| 1464 | background: var(--bg-secondary); | |
| 958d26a | 1465 | border-color: var(--border-focus); |
| 1466 | box-shadow: var(--ring); | |
| 2ce1d0b | 1467 | } |
| 06d5ffe | 1468 | |
| 958d26a | 1469 | .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; } |
| f764c07 | 1470 | |
| 1471 | /* Block N3 — site-admin deploy status pill */ | |
| 1472 | .nav-deploy-pill { | |
| 1473 | display: inline-flex; | |
| 1474 | align-items: center; | |
| 1475 | gap: 6px; | |
| 1476 | padding: 4px 10px; | |
| 1477 | margin: 0 6px 0 0; | |
| 1478 | border-radius: 9999px; | |
| 1479 | font-size: 11px; | |
| 1480 | font-weight: 600; | |
| 1481 | line-height: 1; | |
| 1482 | color: var(--text-strong); | |
| 1483 | background: var(--bg-elevated); | |
| 1484 | border: 1px solid var(--border); | |
| 1485 | text-decoration: none; | |
| 1486 | transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); | |
| 1487 | } | |
| 1488 | .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; } | |
| 1489 | .nav-deploy-pill .deploy-pill-dot { | |
| 1490 | display: inline-block; | |
| 1491 | width: 8px; height: 8px; | |
| 1492 | border-radius: 50%; | |
| 1493 | background: #6b7280; | |
| 1494 | } | |
| 1495 | .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); } | |
| 1496 | .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); } | |
| 1497 | .deploy-pill-failed { border-color: rgba(248,113,113,0.4); } | |
| 1498 | .deploy-pill-progress .deploy-pill-dot { | |
| 1499 | background: #fbbf24; | |
| 1500 | box-shadow: 0 0 6px rgba(251,191,36,0.55); | |
| 1501 | animation: deployPillPulse 1.2s ease-in-out infinite; | |
| 1502 | } | |
| 1503 | @keyframes deployPillPulse { | |
| 1504 | 0%, 100% { opacity: 1; transform: scale(1); } | |
| 1505 | 50% { opacity: 0.45; transform: scale(0.8); } | |
| 1506 | } | |
| 1507 | .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; } | |
| 1508 | ||
| c6018a5 | 1509 | /* ── AI dropdown (nav consolidation) ── */ |
| 1510 | .nav-ai-dropdown { | |
| 1511 | position: relative; | |
| 1512 | display: inline-flex; | |
| 1513 | align-items: center; | |
| 1514 | } | |
| 1515 | .nav-ai-trigger { | |
| 1516 | background: transparent; | |
| 1517 | border: 0; | |
| 1518 | font: inherit; | |
| 1519 | cursor: pointer; | |
| 1520 | color: var(--text-muted); | |
| 1521 | font-size: var(--t-sm); | |
| 1522 | font-weight: 500; | |
| 1523 | padding: 7px 11px; | |
| 1524 | border-radius: var(--r-sm); | |
| 1525 | line-height: 1.2; | |
| 1526 | } | |
| 1527 | .nav-ai-trigger:hover { | |
| 1528 | color: var(--text-strong); | |
| 1529 | background: var(--bg-hover); | |
| 1530 | } | |
| 1531 | .nav-ai-menu { | |
| 1532 | position: absolute; | |
| 1533 | top: calc(100% + 6px); | |
| 1534 | right: 0; | |
| 1535 | min-width: 220px; | |
| 1536 | background: var(--bg-secondary); | |
| 1537 | border: 1px solid var(--border-strong); | |
| 1538 | border-radius: 10px; | |
| 1539 | box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10); | |
| 1540 | padding: 6px; | |
| 1541 | display: none; | |
| 1542 | z-index: var(--z-overlay, 100); | |
| 1543 | } | |
| 1544 | .nav-ai-dropdown:hover .nav-ai-menu, | |
| 1545 | .nav-ai-dropdown.is-open .nav-ai-menu, | |
| 1546 | .nav-ai-dropdown:focus-within .nav-ai-menu { | |
| 1547 | display: block; | |
| 1548 | } | |
| 1549 | .nav-ai-item { | |
| 1550 | display: flex; | |
| 1551 | flex-direction: column; | |
| 1552 | gap: 1px; | |
| 1553 | padding: 8px 10px; | |
| 1554 | border-radius: 6px; | |
| 1555 | color: var(--text); | |
| 1556 | text-decoration: none; | |
| 1557 | transition: background var(--t-fast) var(--ease); | |
| 1558 | } | |
| 1559 | .nav-ai-item:hover { | |
| 1560 | background: var(--bg-hover); | |
| 1561 | text-decoration: none; | |
| 1562 | color: var(--text-strong); | |
| 1563 | } | |
| 1564 | .nav-ai-item-label { | |
| 1565 | font-size: var(--t-sm); | |
| 1566 | font-weight: 600; | |
| 1567 | color: var(--text-strong); | |
| 1568 | } | |
| 1569 | .nav-ai-item-sub { | |
| 1570 | font-size: 11.5px; | |
| 1571 | color: var(--text-muted); | |
| 1572 | } | |
| 1573 | ||
| 2ce1d0b | 1574 | .nav-link { |
| 958d26a | 1575 | position: relative; |
| 2ce1d0b | 1576 | color: var(--text-muted); |
| 1577 | font-size: var(--t-sm); | |
| 1578 | font-weight: 500; | |
| 958d26a | 1579 | padding: 7px 11px; |
| 2ce1d0b | 1580 | border-radius: var(--r-sm); |
| 958d26a | 1581 | transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); |
| 2ce1d0b | 1582 | } |
| 1583 | .nav-link:hover { | |
| 958d26a | 1584 | color: var(--text-strong); |
| 2ce1d0b | 1585 | background: var(--bg-hover); |
| 1586 | text-decoration: none; | |
| 1587 | } | |
| 958d26a | 1588 | .nav-link.active { color: var(--text-strong); } |
| 1589 | .nav-link.active::after { | |
| 1590 | content: ''; | |
| 1591 | position: absolute; | |
| 1592 | left: 11px; right: 11px; | |
| 1593 | bottom: -1px; | |
| 1594 | height: 2px; | |
| 1595 | background: var(--accent-gradient); | |
| 1596 | border-radius: 2px; | |
| 1597 | } | |
| 2ce1d0b | 1598 | .nav-user { |
| 958d26a | 1599 | color: var(--text-strong); |
| 2ce1d0b | 1600 | font-weight: 600; |
| 1601 | font-size: var(--t-sm); | |
| 1602 | padding: 6px 10px; | |
| 1603 | border-radius: var(--r-sm); | |
| 958d26a | 1604 | margin-left: 6px; |
| 2ce1d0b | 1605 | transition: background var(--t-fast) var(--ease); |
| 1606 | } | |
| 958d26a | 1607 | .nav-user::before { |
| 1608 | content: ''; | |
| 1609 | display: inline-block; | |
| 1610 | width: 8px; height: 8px; | |
| 1611 | background: var(--green); | |
| 1612 | border-radius: 50%; | |
| 1613 | margin-right: 7px; | |
| 1614 | box-shadow: 0 0 8px rgba(52,211,153,0.5); | |
| 1615 | vertical-align: 1px; | |
| 1616 | } | |
| 2ce1d0b | 1617 | .nav-user:hover { background: var(--bg-hover); text-decoration: none; } |
| fc1817a | 1618 | |
| 2ce1d0b | 1619 | main { |
| 958d26a | 1620 | max-width: 1240px; |
| 2ce1d0b | 1621 | margin: 0 auto; |
| 958d26a | 1622 | padding: 36px 24px 80px; |
| 2ce1d0b | 1623 | flex: 1; |
| 1624 | width: 100%; | |
| ed6e438 | 1625 | /* 2026 polish — subtle entrance animation on every page load. |
| 1626 | Content fades up 4px over 360ms, giving the site that "alive" | |
| 1627 | quality that 2026 SaaS expects. Honors prefers-reduced-motion. */ | |
| 1628 | animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both; | |
| 1629 | } | |
| 1630 | @keyframes gxMainEnter { | |
| 1631 | from { opacity: 0; transform: translateY(4px); } | |
| 1632 | to { opacity: 1; transform: translateY(0); } | |
| 1633 | } | |
| 1634 | @media (prefers-reduced-motion: reduce) { | |
| 1635 | main { animation: none; } | |
| 1636 | } | |
| 1637 | /* 2026 polish — accent focus ring across all focusable elements. | |
| 1638 | The default browser ring is utilitarian; this is the same width | |
| 1639 | but tinted to the brand accent so keyboard navigation feels | |
| 1640 | intentional, not jarring. :focus-visible only — mouse users | |
| 1641 | never see it. */ | |
| 1642 | :focus-visible { | |
| 1643 | outline: none; | |
| 1644 | } | |
| 1645 | a:focus-visible, | |
| 1646 | button:focus-visible, | |
| 1647 | input:focus-visible, | |
| 1648 | select:focus-visible, | |
| 1649 | textarea:focus-visible, | |
| 1650 | [tabindex]:focus-visible { | |
| 1651 | outline: 2px solid rgba(140, 109, 255, 0.55); | |
| 1652 | outline-offset: 2px; | |
| 1653 | border-radius: 4px; | |
| 2ce1d0b | 1654 | } |
| fc1817a | 1655 | |
| 958d26a | 1656 | /* Editorial footer: link grid + tagline row */ |
| fc1817a | 1657 | footer { |
| 1658 | border-top: 1px solid var(--border); | |
| 958d26a | 1659 | padding: 56px 24px 40px; |
| fc1817a | 1660 | color: var(--text-muted); |
| 958d26a | 1661 | font-size: var(--t-sm); |
| 1662 | background: | |
| 1663 | linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%), | |
| 1664 | var(--bg); | |
| 1665 | } | |
| 1666 | footer .footer-inner { | |
| 1667 | max-width: 1240px; | |
| 1668 | margin: 0 auto; | |
| 1669 | display: grid; | |
| 1670 | grid-template-columns: 1fr auto; | |
| 1671 | gap: 48px; | |
| 1672 | align-items: start; | |
| 1673 | } | |
| 1674 | footer .footer-brand .logo { margin-bottom: var(--s-3); } | |
| 1675 | footer .footer-tag { | |
| 1676 | color: var(--text-muted); | |
| 1677 | font-size: var(--t-sm); | |
| 1678 | max-width: 320px; | |
| 1679 | line-height: 1.55; | |
| 1680 | } | |
| 1681 | footer .footer-links { | |
| 1682 | display: grid; | |
| 1683 | grid-template-columns: repeat(3, minmax(120px, auto)); | |
| 1684 | gap: 0 56px; | |
| 1685 | } | |
| 1686 | footer .footer-col-title { | |
| 1687 | font-family: var(--font-mono); | |
| 1688 | font-size: 11px; | |
| 1689 | text-transform: uppercase; | |
| 1690 | letter-spacing: 0.14em; | |
| 1691 | color: var(--text-faint); | |
| 1692 | margin-bottom: var(--s-3); | |
| 1693 | } | |
| 1694 | footer .footer-col a { | |
| 1695 | display: block; | |
| 1696 | color: var(--text-muted); | |
| 1697 | font-size: var(--t-sm); | |
| 1698 | padding: 5px 0; | |
| 1699 | transition: color var(--t-fast) var(--ease); | |
| 1700 | } | |
| 1701 | footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; } | |
| 1702 | footer .footer-bottom { | |
| 1703 | max-width: 1240px; | |
| 1704 | margin: 40px auto 0; | |
| 1705 | padding-top: 24px; | |
| 1706 | border-top: 1px solid var(--border-subtle); | |
| 1707 | display: flex; | |
| 1708 | justify-content: space-between; | |
| 1709 | align-items: center; | |
| 2ce1d0b | 1710 | color: var(--text-faint); |
| 1711 | font-size: var(--t-xs); | |
| 958d26a | 1712 | font-family: var(--font-mono); |
| 1713 | letter-spacing: 0.02em; | |
| 1714 | } | |
| 1715 | footer .footer-bottom a { color: var(--text-faint); } | |
| 1716 | footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; } | |
| 05cdb85 | 1717 | footer .footer-build { |
| 1718 | display: inline-flex; | |
| 1719 | align-items: center; | |
| 1720 | gap: 6px; | |
| 1721 | color: var(--text-faint); | |
| 1722 | font-family: var(--font-mono); | |
| 1723 | font-size: 11px; | |
| 1724 | cursor: help; | |
| 1725 | } | |
| 1726 | footer .footer-build-dot { | |
| 1727 | width: 6px; height: 6px; | |
| 1728 | border-radius: 50%; | |
| 1729 | background: var(--green); | |
| 1730 | box-shadow: 0 0 6px rgba(52,211,153,0.55); | |
| 1731 | animation: footer-build-pulse 2.4s ease-in-out infinite; | |
| 1732 | } | |
| 1733 | @keyframes footer-build-pulse { | |
| 1734 | 0%, 100% { opacity: 0.6; } | |
| 1735 | 50% { opacity: 1; } | |
| 1736 | } | |
| 958d26a | 1737 | @media (max-width: 768px) { |
| 1738 | footer .footer-inner { grid-template-columns: 1fr; gap: 32px; } | |
| 1739 | footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; } | |
| 1740 | footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } | |
| fc1817a | 1741 | } |
| 1742 | ||
| 2ce1d0b | 1743 | /* ============================================================ */ |
| 1744 | /* Buttons */ | |
| 1745 | /* ============================================================ */ | |
| dc26881 | 1746 | /* ============================================================ */ |
| 1747 | /* Buttons — Block U2 senior polish pass. */ | |
| 1748 | /* Rules: */ | |
| 1749 | /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */ | |
| 1750 | /* · active presses back down to 0 (80ms — faster on press) */ | |
| 1751 | /* · focus-visible uses a soft box-shadow ring (no outline) */ | |
| 1752 | /* · primary gradient shifts position on hover for a slow */ | |
| 1753 | /* 600ms shimmer */ | |
| 1754 | /* · disabled never lifts and never animates */ | |
| 1755 | /* ============================================================ */ | |
| 06d5ffe | 1756 | .btn { |
| 1757 | display: inline-flex; | |
| 1758 | align-items: center; | |
| 2ce1d0b | 1759 | justify-content: center; |
| 958d26a | 1760 | gap: 7px; |
| 2ce1d0b | 1761 | padding: 7px 14px; |
| 1762 | border-radius: var(--r-sm); | |
| 958d26a | 1763 | font-family: var(--font-sans); |
| 2ce1d0b | 1764 | font-size: var(--t-sm); |
| 06d5ffe | 1765 | font-weight: 500; |
| 1766 | border: 1px solid var(--border); | |
| 2ce1d0b | 1767 | background: var(--bg-elevated); |
| 06d5ffe | 1768 | color: var(--text); |
| 1769 | cursor: pointer; | |
| 1770 | text-decoration: none; | |
| 958d26a | 1771 | line-height: 1.25; |
| 1772 | letter-spacing: -0.008em; | |
| dc26881 | 1773 | /* U2 — hover/transform settles in 180ms; press snaps in 80ms. |
| 1774 | Listed once on the base rule so :active can override only the | |
| 1775 | transform/duration without re-typing the colour/bg transitions. */ | |
| 2ce1d0b | 1776 | transition: |
| dc26881 | 1777 | background 180ms ease, |
| 1778 | border-color 180ms ease, | |
| 1779 | transform 180ms ease, | |
| 1780 | box-shadow 180ms ease, | |
| 1781 | color 180ms ease; | |
| 2ce1d0b | 1782 | user-select: none; |
| 1783 | white-space: nowrap; | |
| 958d26a | 1784 | position: relative; |
| 06d5ffe | 1785 | } |
| 2ce1d0b | 1786 | .btn:hover { |
| 1787 | background: var(--bg-surface); | |
| 1788 | border-color: var(--border-strong); | |
| 958d26a | 1789 | color: var(--text-strong); |
| 2ce1d0b | 1790 | text-decoration: none; |
| dc26881 | 1791 | /* U2 — universal hover lift + soft accent drop shadow. */ |
| 1792 | transform: translateY(-1px); | |
| 1793 | box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45); | |
| 1794 | } | |
| 1795 | .btn:active { | |
| 1796 | transform: translateY(0); | |
| 1797 | transition-duration: 80ms; | |
| 1798 | } | |
| 1799 | /* U2 — soft modern focus ring via box-shadow, not outline. */ | |
| 1800 | .btn:focus-visible { | |
| 1801 | outline: none; | |
| 1802 | box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35); | |
| 2ce1d0b | 1803 | } |
| 1804 | ||
| 1805 | .btn-primary { | |
| 1806 | background: var(--accent-gradient); | |
| dc26881 | 1807 | background-size: 200% 100%; |
| 1808 | background-position: 0% 50%; | |
| 2ce1d0b | 1809 | border-color: transparent; |
| 1810 | color: #fff; | |
| 1811 | font-weight: 600; | |
| 958d26a | 1812 | text-shadow: 0 1px 0 rgba(0,0,0,0.15); |
| 2ce1d0b | 1813 | box-shadow: |
| 958d26a | 1814 | inset 0 1px 0 rgba(255,255,255,0.22), |
| 1815 | inset 0 -1px 0 rgba(0,0,0,0.10), | |
| 1816 | 0 1px 2px rgba(0,0,0,0.40), | |
| 1817 | 0 0 0 1px rgba(140,109,255,0.30); | |
| dc26881 | 1818 | /* U2 — slower 600ms transition on background-position so the |
| 1819 | primary CTA shimmers when the cursor lands. */ | |
| 1820 | transition: | |
| 1821 | background-position 600ms ease, | |
| 1822 | transform 180ms ease, | |
| 1823 | box-shadow 180ms ease, | |
| 1824 | color 180ms ease; | |
| 06d5ffe | 1825 | } |
| 958d26a | 1826 | .btn-primary::before { |
| 1827 | content: ''; | |
| 1828 | position: absolute; | |
| 1829 | inset: 0; | |
| 1830 | border-radius: inherit; | |
| 1831 | background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%); | |
| 1832 | opacity: 0; | |
| 1833 | transition: opacity var(--t-fast) var(--ease); | |
| 1834 | pointer-events: none; | |
| 2ce1d0b | 1835 | } |
| 1836 | .btn-primary:hover { | |
| 958d26a | 1837 | color: #fff; |
| 2ce1d0b | 1838 | background: var(--accent-gradient); |
| dc26881 | 1839 | background-size: 200% 100%; |
| 1840 | background-position: 100% 50%; | |
| 958d26a | 1841 | border-color: transparent; |
| dc26881 | 1842 | transform: translateY(-1px); |
| 2ce1d0b | 1843 | box-shadow: |
| 958d26a | 1844 | inset 0 1px 0 rgba(255,255,255,0.30), |
| 1845 | inset 0 -1px 0 rgba(0,0,0,0.10), | |
| 1846 | 0 6px 18px -4px rgba(140,109,255,0.45), | |
| 1847 | 0 0 0 1px rgba(140,109,255,0.45); | |
| 2ce1d0b | 1848 | } |
| 958d26a | 1849 | .btn-primary:hover::before { opacity: 1; } |
| dc26881 | 1850 | .btn-primary:active { transform: translateY(0); transition-duration: 80ms; } |
| 1851 | /* U2 — primary focus ring uses the same accent box-shadow recipe. */ | |
| 1852 | .btn-primary:focus-visible { | |
| 1853 | box-shadow: | |
| 1854 | inset 0 1px 0 rgba(255,255,255,0.22), | |
| 1855 | 0 0 0 3px rgba(140,109,255,0.35); | |
| 1856 | } | |
| 2ce1d0b | 1857 | |
| 1858 | .btn-danger { | |
| 1859 | background: transparent; | |
| 958d26a | 1860 | border-color: rgba(248,113,113,0.40); |
| 2ce1d0b | 1861 | color: var(--red); |
| 1862 | } | |
| 1863 | .btn-danger:hover { | |
| 958d26a | 1864 | background: rgba(248,113,113,0.08); |
| 2ce1d0b | 1865 | border-color: var(--red); |
| 958d26a | 1866 | color: var(--red); |
| dc26881 | 1867 | transform: translateY(-1px); |
| 1868 | box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30); | |
| 2ce1d0b | 1869 | } |
| dc26881 | 1870 | .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); } |
| 2ce1d0b | 1871 | |
| 1872 | .btn-ghost { | |
| 1873 | background: transparent; | |
| 1874 | border-color: transparent; | |
| 1875 | color: var(--text-muted); | |
| 1876 | } | |
| 1877 | .btn-ghost:hover { | |
| 1878 | background: var(--bg-hover); | |
| 958d26a | 1879 | color: var(--text-strong); |
| 2ce1d0b | 1880 | border-color: var(--border); |
| dc26881 | 1881 | transform: translateY(-1px); |
| 1882 | box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30); | |
| 2ce1d0b | 1883 | } |
| 1884 | ||
| 958d26a | 1885 | .btn-secondary { |
| 1886 | background: var(--bg-elevated); | |
| 1887 | border-color: var(--border-strong); | |
| 1888 | color: var(--text-strong); | |
| 1889 | } | |
| 1890 | .btn-secondary:hover { | |
| 1891 | background: var(--bg-surface); | |
| 1892 | border-color: var(--border-strong); | |
| dc26881 | 1893 | transform: translateY(-1px); |
| 1894 | box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35); | |
| 958d26a | 1895 | } |
| 1896 | ||
| 1897 | .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; } | |
| 1898 | .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); } | |
| 1899 | .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; } | |
| 1900 | .btn-block { width: 100%; } | |
| 2ce1d0b | 1901 | |
| dc26881 | 1902 | /* U2 — disabled never lifts, never shimmers, never glows. */ |
| 1903 | .btn:disabled, | |
| 1904 | .btn[aria-disabled='true'], | |
| 1905 | .btn:disabled:hover, | |
| 1906 | .btn[aria-disabled='true']:hover { | |
| 1907 | opacity: 0.5; | |
| 2ce1d0b | 1908 | cursor: not-allowed; |
| 1909 | pointer-events: none; | |
| dc26881 | 1910 | transform: none; |
| 1911 | box-shadow: none; | |
| 1912 | } | |
| 1913 | @media (prefers-reduced-motion: reduce) { | |
| 1914 | .btn, | |
| 1915 | .btn:hover, | |
| 1916 | .btn:active, | |
| 1917 | .btn-primary, | |
| 1918 | .btn-primary:hover { | |
| 1919 | transform: none; | |
| 1920 | transition: background-color 80ms linear, color 80ms linear; | |
| 1921 | } | |
| 2ce1d0b | 1922 | } |
| 1923 | ||
| 1924 | /* ============================================================ */ | |
| 1925 | /* Forms */ | |
| 1926 | /* ============================================================ */ | |
| 1927 | .form-group { margin-bottom: 20px; } | |
| 1928 | .form-group label { | |
| 1929 | display: block; | |
| 1930 | font-size: var(--t-sm); | |
| 1931 | font-weight: 500; | |
| 1932 | margin-bottom: 6px; | |
| 1933 | color: var(--text); | |
| 1934 | letter-spacing: -0.005em; | |
| 1935 | } | |
| 1936 | .form-group input, | |
| 1937 | .form-group textarea, | |
| 1938 | .form-group select, | |
| 1939 | input[type='text'], input[type='email'], input[type='password'], | |
| 1940 | input[type='url'], input[type='search'], input[type='number'], | |
| 1941 | textarea, select { | |
| 06d5ffe | 1942 | width: 100%; |
| 2ce1d0b | 1943 | padding: 9px 12px; |
| 1944 | background: var(--bg-secondary); | |
| 06d5ffe | 1945 | border: 1px solid var(--border); |
| 2ce1d0b | 1946 | border-radius: var(--r-sm); |
| 06d5ffe | 1947 | color: var(--text); |
| 2ce1d0b | 1948 | font-size: var(--t-sm); |
| 06d5ffe | 1949 | font-family: var(--font-sans); |
| 2ce1d0b | 1950 | transition: |
| 1951 | border-color var(--t-fast) var(--ease), | |
| 1952 | background var(--t-fast) var(--ease), | |
| 1953 | box-shadow var(--t-fast) var(--ease); | |
| 06d5ffe | 1954 | } |
| 2ce1d0b | 1955 | .form-group input::placeholder, textarea::placeholder, input::placeholder { |
| 1956 | color: var(--text-faint); | |
| 06d5ffe | 1957 | } |
| 2ce1d0b | 1958 | .form-group input:hover, textarea:hover, select:hover, |
| 1959 | input[type='text']:hover, input[type='email']:hover, input[type='password']:hover { | |
| 1960 | border-color: var(--border-strong); | |
| 1961 | } | |
| 1962 | .form-group input:focus, .form-group textarea:focus, .form-group select:focus, | |
| 1963 | input:focus, textarea:focus, select:focus { | |
| 06d5ffe | 1964 | outline: none; |
| 2ce1d0b | 1965 | background: var(--bg); |
| 1966 | border-color: var(--border-focus); | |
| 1967 | box-shadow: var(--ring); | |
| 06d5ffe | 1968 | } |
| 2ce1d0b | 1969 | textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; } |
| 06d5ffe | 1970 | .input-disabled { opacity: 0.5; cursor: not-allowed; } |
| 1971 | ||
| 2ce1d0b | 1972 | /* ============================================================ */ |
| 1973 | /* Auth (register / login / verify) */ | |
| 1974 | /* ============================================================ */ | |
| 1975 | .auth-container { | |
| 98f45b4 | 1976 | /* 2026 polish — wider, more generous, with a subtle accent-glow |
| 1977 | border and gradient top-edge so it reads as a premium product | |
| 1978 | gateway, not a stock form. The 480px width feels intentional | |
| 1979 | (not cramped, not endless). */ | |
| 1980 | max-width: 480px; | |
| 1981 | margin: 72px auto; | |
| 1982 | padding: 40px 40px 36px; | |
| 2ce1d0b | 1983 | background: var(--bg-elevated); |
| 1984 | border: 1px solid var(--border); | |
| 98f45b4 | 1985 | border-radius: 16px; |
| 1986 | box-shadow: | |
| 1987 | var(--elev-2), | |
| 1988 | 0 24px 64px -16px rgba(140, 109, 255, 0.12); | |
| 1989 | position: relative; | |
| 1990 | overflow: hidden; | |
| 1991 | } | |
| 1992 | .auth-container::before { | |
| 1993 | /* Hairline gradient accent on the top edge — signals 'AI-native' | |
| 1994 | without shouting. Pointer-events disabled so it never interferes | |
| 1995 | with form interactions. */ | |
| 1996 | content: ''; | |
| 1997 | position: absolute; | |
| 1998 | top: 0; | |
| 1999 | left: 0; | |
| 2000 | right: 0; | |
| 2001 | height: 2px; | |
| 2002 | background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%); | |
| 2003 | opacity: 0.7; | |
| 2004 | pointer-events: none; | |
| 2ce1d0b | 2005 | } |
| 2006 | .auth-container h2 { | |
| 98f45b4 | 2007 | margin: 0 0 8px; |
| 2008 | font-size: 28px; | |
| 2009 | font-weight: 700; | |
| 2010 | font-family: var(--font-display); | |
| 2011 | letter-spacing: -0.025em; | |
| 2012 | color: var(--text-strong); | |
| 2013 | line-height: 1.15; | |
| 2014 | } | |
| 2015 | .auth-container .auth-subtitle { | |
| 2016 | color: var(--text-muted); | |
| 2017 | font-size: 14.5px; | |
| 2018 | line-height: 1.5; | |
| 2019 | margin: 0 0 24px; | |
| 2ce1d0b | 2020 | } |
| 2021 | .auth-container > p { | |
| 2022 | color: var(--text-muted); | |
| 2023 | font-size: var(--t-sm); | |
| 2024 | margin-bottom: 24px; | |
| 2025 | } | |
| 98f45b4 | 2026 | .auth-container .btn-primary { |
| 2027 | width: 100%; | |
| 2028 | padding: 12px 16px; | |
| 2029 | font-size: 15px; | |
| 2030 | font-weight: 600; | |
| 2031 | margin-top: 4px; | |
| 2032 | } | |
| 582cdac | 2033 | |
| 2034 | /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout | |
| 2035 | with a brand-coloured logo on the left and a label centred-trailing. | |
| 2036 | Hover lifts 1px with a subtle shadow — matches the rest of the | |
| 2037 | button system but reads as a brand-affiliated action, not a brand- | |
| 2038 | coloured primary CTA. */ | |
| 2039 | .auth-container .oauth-btn { | |
| 2040 | display: flex; | |
| 2041 | align-items: center; | |
| 2042 | justify-content: center; | |
| 2043 | gap: 10px; | |
| 2044 | width: 100%; | |
| 2045 | padding: 11px 16px; | |
| 2046 | background: var(--bg-surface, var(--bg-elevated)); | |
| 2047 | border: 1px solid var(--border); | |
| 2048 | border-radius: var(--r-md, 8px); | |
| 2049 | color: var(--text-strong); | |
| 2050 | font-family: var(--font-sans); | |
| 2051 | font-size: 14.5px; | |
| 2052 | font-weight: 500; | |
| 2053 | text-decoration: none; | |
| 2054 | transition: | |
| 2055 | transform var(--t-base, 180ms) var(--ease, ease), | |
| 2056 | box-shadow var(--t-base, 180ms) var(--ease, ease), | |
| 2057 | background var(--t-fast, 120ms) var(--ease, ease), | |
| 2058 | border-color var(--t-fast, 120ms) var(--ease, ease); | |
| 2059 | } | |
| 2060 | .auth-container .oauth-btn:hover { | |
| 2061 | transform: translateY(-1px); | |
| 2062 | background: var(--bg-hover); | |
| 2063 | border-color: var(--text-muted); | |
| 2064 | color: var(--text-strong); | |
| 2065 | box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25); | |
| 2066 | text-decoration: none; | |
| 2067 | } | |
| 2068 | .auth-container .oauth-btn:focus-visible { | |
| 2069 | outline: 2px solid rgba(140, 109, 255, 0.55); | |
| 2070 | outline-offset: 2px; | |
| 2071 | } | |
| 2072 | .auth-container .oauth-btn .oauth-icon { | |
| 2073 | flex-shrink: 0; | |
| 2074 | } | |
| 2075 | /* GitHub icon adopts the text colour so it reads in both themes. */ | |
| 2076 | .auth-container .oauth-github .oauth-icon { | |
| 2077 | color: var(--text-strong); | |
| 2078 | } | |
| 2079 | /* Google logo uses the official 4-colour treatment via inline SVG fill | |
| 2080 | attributes — nothing to override here. */ | |
| 2081 | /* "or" divider between the password form and provider buttons */ | |
| 2082 | .auth-container .auth-divider { | |
| 2083 | display: flex; | |
| 2084 | align-items: center; | |
| 2085 | gap: 12px; | |
| 2086 | margin: 20px 0 12px; | |
| 2087 | color: var(--text-faint); | |
| 2088 | font-size: 12px; | |
| 2089 | letter-spacing: 0.08em; | |
| 2090 | text-transform: uppercase; | |
| 2091 | } | |
| 2092 | .auth-container .auth-divider::before, | |
| 2093 | .auth-container .auth-divider::after { | |
| 2094 | content: ''; | |
| 2095 | flex: 1; | |
| 2096 | height: 1px; | |
| 2097 | background: var(--border); | |
| 2098 | } | |
| 06d5ffe | 2099 | .auth-error { |
| 958d26a | 2100 | background: rgba(248,113,113,0.08); |
| 2101 | border: 1px solid rgba(248,113,113,0.35); | |
| 06d5ffe | 2102 | color: var(--red); |
| 2ce1d0b | 2103 | padding: 10px 14px; |
| 2104 | border-radius: var(--r-sm); | |
| 06d5ffe | 2105 | margin-bottom: 16px; |
| 2ce1d0b | 2106 | font-size: var(--t-sm); |
| 06d5ffe | 2107 | } |
| 2108 | .auth-success { | |
| 958d26a | 2109 | background: rgba(52,211,153,0.08); |
| 2110 | border: 1px solid rgba(52,211,153,0.35); | |
| 06d5ffe | 2111 | color: var(--green); |
| 2ce1d0b | 2112 | padding: 10px 14px; |
| 2113 | border-radius: var(--r-sm); | |
| 06d5ffe | 2114 | margin-bottom: 16px; |
| 2ce1d0b | 2115 | font-size: var(--t-sm); |
| 2116 | } | |
| 2117 | .auth-switch { | |
| 2118 | margin-top: 20px; | |
| 2119 | font-size: var(--t-sm); | |
| 2120 | color: var(--text-muted); | |
| 2121 | text-align: center; | |
| 2122 | } | |
| 2123 | .banner { | |
| 2124 | background: var(--accent-gradient-faint); | |
| 958d26a | 2125 | border: 1px solid rgba(140,109,255,0.35); |
| 2ce1d0b | 2126 | color: var(--text); |
| 2127 | padding: 10px 14px; | |
| 2128 | border-radius: var(--r-sm); | |
| 2129 | font-size: var(--t-sm); | |
| 06d5ffe | 2130 | } |
| 2131 | ||
| 2ce1d0b | 2132 | /* ============================================================ */ |
| 2133 | /* Settings */ | |
| 2134 | /* ============================================================ */ | |
| 2135 | .settings-container { max-width: 720px; } | |
| 2136 | .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; } | |
| 2137 | .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; } | |
| 2138 | .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; } | |
| 2139 | .settings-container h3:first-of-type { margin-top: 0; } | |
| 06d5ffe | 2140 | .ssh-keys-list { margin-bottom: 24px; } |
| 2141 | .ssh-key-item { | |
| 2142 | display: flex; | |
| 2143 | justify-content: space-between; | |
| 2144 | align-items: center; | |
| 2ce1d0b | 2145 | padding: 14px 16px; |
| 06d5ffe | 2146 | border: 1px solid var(--border); |
| 2ce1d0b | 2147 | border-radius: var(--r-md); |
| 06d5ffe | 2148 | margin-bottom: 8px; |
| 2ce1d0b | 2149 | background: var(--bg-elevated); |
| 2150 | transition: border-color var(--t-fast) var(--ease); | |
| 06d5ffe | 2151 | } |
| 2ce1d0b | 2152 | .ssh-key-item:hover { border-color: var(--border-strong); } |
| 2153 | .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; } | |
| 2154 | .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; } | |
| 06d5ffe | 2155 | |
| 2ce1d0b | 2156 | /* ============================================================ */ |
| 2157 | /* Repo header + nav */ | |
| 2158 | /* ============================================================ */ | |
| fc1817a | 2159 | .repo-header { |
| 2160 | display: flex; | |
| 2161 | align-items: center; | |
| debcf27 | 2162 | gap: 12px; |
| 2163 | margin-bottom: 22px; | |
| 2164 | } | |
| 2165 | .repo-header-title { | |
| 2166 | display: flex; | |
| 2167 | align-items: center; | |
| 2168 | gap: 10px; | |
| 2169 | font-family: var(--font-display); | |
| 2170 | font-size: 24px; | |
| 2171 | letter-spacing: -0.025em; | |
| 2172 | flex-wrap: wrap; | |
| 2173 | } | |
| 2174 | .repo-header .owner { | |
| 2175 | color: var(--text-muted); | |
| 2176 | font-weight: 500; | |
| 2177 | transition: color var(--t-fast) var(--ease); | |
| 2178 | } | |
| 2179 | .repo-header .owner:hover { color: var(--text-link); text-decoration: none; } | |
| 2180 | .repo-header .separator { color: var(--text-faint); font-weight: 300; } | |
| 2181 | .repo-header .name { | |
| 2182 | color: var(--text-strong); | |
| 2183 | font-weight: 700; | |
| 2184 | letter-spacing: -0.028em; | |
| fc1817a | 2185 | } |
| 2ce1d0b | 2186 | .repo-header .name:hover { color: var(--text-link); text-decoration: none; } |
| debcf27 | 2187 | .repo-header-fork { |
| 2188 | font-family: var(--font-mono); | |
| 2189 | font-size: 11px; | |
| 2190 | color: var(--text-muted); | |
| 2191 | margin-top: 4px; | |
| 2192 | letter-spacing: 0.01em; | |
| 2193 | } | |
| 2194 | .repo-header-fork a { color: var(--text-muted); } | |
| 2195 | .repo-header-fork a:hover { color: var(--accent); } | |
| 2196 | .repo-header-pill { | |
| 2197 | display: inline-flex; | |
| 2198 | align-items: center; | |
| 2199 | padding: 2px 10px; | |
| 2200 | border-radius: var(--r-full); | |
| 2201 | font-family: var(--font-mono); | |
| 2202 | font-size: 10px; | |
| 2203 | font-weight: 600; | |
| 2204 | letter-spacing: 0.12em; | |
| 2205 | text-transform: uppercase; | |
| 2206 | line-height: 1.6; | |
| 2207 | vertical-align: 4px; | |
| 2208 | } | |
| 2209 | .repo-header-pill-archived { | |
| 2210 | background: rgba(251,191,36,0.10); | |
| 2211 | color: var(--yellow); | |
| 2212 | border: 1px solid rgba(251,191,36,0.30); | |
| 2213 | } | |
| 2214 | .repo-header-pill-template { | |
| 2215 | background: var(--accent-gradient-faint); | |
| 2216 | color: var(--accent); | |
| 2217 | border: 1px solid rgba(140,109,255,0.30); | |
| fc1817a | 2218 | } |
| 06d5ffe | 2219 | .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; } |
| fc1817a | 2220 | |
| 2221 | .repo-nav { | |
| 2222 | display: flex; | |
| debcf27 | 2223 | gap: 1px; |
| fc1817a | 2224 | border-bottom: 1px solid var(--border); |
| debcf27 | 2225 | margin-bottom: 28px; |
| 2ce1d0b | 2226 | overflow-x: auto; |
| 2227 | scrollbar-width: thin; | |
| fc1817a | 2228 | } |
| 2ce1d0b | 2229 | .repo-nav::-webkit-scrollbar { height: 0; } |
| fc1817a | 2230 | .repo-nav a { |
| debcf27 | 2231 | position: relative; |
| 2232 | padding: 11px 14px; | |
| fc1817a | 2233 | color: var(--text-muted); |
| 2234 | border-bottom: 2px solid transparent; | |
| 2ce1d0b | 2235 | font-size: var(--t-sm); |
| 2236 | font-weight: 500; | |
| 2237 | margin-bottom: -1px; | |
| debcf27 | 2238 | transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); |
| 2ce1d0b | 2239 | white-space: nowrap; |
| 2240 | } | |
| debcf27 | 2241 | .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); } |
| 2ce1d0b | 2242 | .repo-nav a.active { |
| debcf27 | 2243 | color: var(--text-strong); |
| 2244 | font-weight: 600; | |
| 2245 | } | |
| 2246 | .repo-nav a.active::after { | |
| 2247 | content: ''; | |
| 2248 | position: absolute; | |
| 2249 | left: 14px; | |
| 2250 | right: 14px; | |
| 2251 | bottom: -1px; | |
| 2252 | height: 2px; | |
| 2253 | background: var(--accent-gradient); | |
| 2254 | border-radius: 2px; | |
| 2255 | } | |
| 2256 | /* AI links in the right-side cluster — sparkle accent */ | |
| 2257 | .repo-nav-ai { | |
| 2258 | color: var(--accent) !important; | |
| 2259 | font-weight: 500; | |
| 2260 | } | |
| 2261 | .repo-nav-ai:hover { | |
| 2262 | color: var(--accent-hover) !important; | |
| 2263 | background: var(--accent-gradient-faint) !important; | |
| 2264 | } | |
| 2265 | .repo-nav-ai.active { | |
| 2266 | color: var(--accent-hover) !important; | |
| 2ce1d0b | 2267 | font-weight: 600; |
| fc1817a | 2268 | } |
| 2269 | ||
| 2ce1d0b | 2270 | .breadcrumb { |
| 2271 | display: flex; | |
| debcf27 | 2272 | gap: 6px; |
| 2ce1d0b | 2273 | align-items: center; |
| debcf27 | 2274 | margin-bottom: 18px; |
| 2ce1d0b | 2275 | color: var(--text-muted); |
| 2276 | font-size: var(--t-sm); | |
| 2277 | font-family: var(--font-mono); | |
| debcf27 | 2278 | font-feature-settings: var(--mono-feat); |
| 2ce1d0b | 2279 | } |
| 2280 | .breadcrumb a { color: var(--text-link); font-weight: 500; } | |
| 2281 | .breadcrumb a:hover { color: var(--accent-hover); } | |
| debcf27 | 2282 | .breadcrumb strong { |
| 2283 | color: var(--text-strong); | |
| 2284 | font-weight: 600; | |
| fc1817a | 2285 | } |
| 2286 | ||
| debcf27 | 2287 | /* Page header — eyebrow + title + optional actions row. |
| 2288 | Use on dashboard, settings, admin, any "section landing" page. */ | |
| 2289 | .page-header { | |
| 2290 | display: flex; | |
| 2291 | align-items: flex-end; | |
| 2292 | justify-content: space-between; | |
| 2293 | gap: 16px; | |
| 2294 | margin-bottom: 28px; | |
| 2295 | padding-bottom: 20px; | |
| 2296 | border-bottom: 1px solid var(--border-subtle); | |
| 2297 | flex-wrap: wrap; | |
| 2298 | } | |
| 2299 | .page-header-text { flex: 1; min-width: 280px; } | |
| 2300 | .page-header .eyebrow { margin-bottom: var(--s-2); } | |
| 2301 | .page-header h1 { | |
| 2302 | font-family: var(--font-display); | |
| 2303 | font-size: clamp(24px, 3vw, 36px); | |
| 2304 | line-height: 1.1; | |
| 2305 | letter-spacing: -0.028em; | |
| 2306 | margin-bottom: 6px; | |
| 2307 | } | |
| 2308 | .page-header p { | |
| 2309 | color: var(--text-muted); | |
| 2310 | font-size: var(--t-sm); | |
| 2311 | line-height: 1.55; | |
| 2312 | max-width: 640px; | |
| 2313 | } | |
| 2314 | .page-header-actions { display: flex; gap: 8px; align-items: center; } | |
| fc1817a | 2315 | |
| 2ce1d0b | 2316 | /* ============================================================ */ |
| 2317 | /* File browser table */ | |
| 2318 | /* ============================================================ */ | |
| 2319 | .file-table { | |
| 2320 | width: 100%; | |
| 2321 | border: 1px solid var(--border); | |
| 2322 | border-radius: var(--r-md); | |
| 2323 | overflow: hidden; | |
| 2324 | background: var(--bg-elevated); | |
| debcf27 | 2325 | border-collapse: collapse; |
| 2ce1d0b | 2326 | } |
| debcf27 | 2327 | .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); } |
| fc1817a | 2328 | .file-table tr:last-child { border-bottom: none; } |
| debcf27 | 2329 | .file-table td { |
| 2330 | padding: 9px 16px; | |
| 2331 | font-size: var(--t-sm); | |
| 2332 | font-family: var(--font-mono); | |
| 2333 | font-feature-settings: var(--mono-feat); | |
| 2334 | } | |
| 2ce1d0b | 2335 | .file-table tr:hover { background: var(--bg-hover); } |
| debcf27 | 2336 | .file-icon { |
| 2337 | width: 22px; | |
| 2338 | color: var(--text-faint); | |
| 2339 | font-size: 13px; | |
| 2340 | text-align: center; | |
| 2341 | } | |
| 2342 | .file-name a { | |
| 2343 | color: var(--text); | |
| 2344 | font-weight: 500; | |
| 2345 | transition: color var(--t-fast) var(--ease); | |
| 2346 | } | |
| 2347 | .file-name a:hover { color: var(--accent); text-decoration: none; } | |
| fc1817a | 2348 | |
| 2ce1d0b | 2349 | /* ============================================================ */ |
| 2350 | /* Blob view */ | |
| 2351 | /* ============================================================ */ | |
| fc1817a | 2352 | .blob-view { |
| 2353 | border: 1px solid var(--border); | |
| 2ce1d0b | 2354 | border-radius: var(--r-md); |
| fc1817a | 2355 | overflow: hidden; |
| 2ce1d0b | 2356 | background: var(--bg-elevated); |
| fc1817a | 2357 | } |
| 2358 | .blob-header { | |
| 2359 | background: var(--bg-secondary); | |
| 2ce1d0b | 2360 | padding: 10px 16px; |
| fc1817a | 2361 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 2362 | font-size: var(--t-sm); |
| fc1817a | 2363 | color: var(--text-muted); |
| 06d5ffe | 2364 | display: flex; |
| 2365 | justify-content: space-between; | |
| 2366 | align-items: center; | |
| fc1817a | 2367 | } |
| 2368 | .blob-code { | |
| 2369 | overflow-x: auto; | |
| 2370 | font-family: var(--font-mono); | |
| 2ce1d0b | 2371 | font-size: var(--t-sm); |
| 2372 | line-height: 1.65; | |
| fc1817a | 2373 | } |
| 2374 | .blob-code table { width: 100%; border-collapse: collapse; } | |
| 2375 | .blob-code .line-num { | |
| 2376 | width: 1%; | |
| 2ce1d0b | 2377 | min-width: 56px; |
| 2378 | padding: 0 14px; | |
| fc1817a | 2379 | text-align: right; |
| 2ce1d0b | 2380 | color: var(--text-faint); |
| fc1817a | 2381 | user-select: none; |
| 2382 | white-space: nowrap; | |
| 2383 | border-right: 1px solid var(--border); | |
| 2384 | } | |
| 2ce1d0b | 2385 | .blob-code .line-content { padding: 0 16px; white-space: pre; } |
| 2386 | .blob-code tr:hover { background: var(--bg-hover); } | |
| fc1817a | 2387 | |
| 2ce1d0b | 2388 | /* ============================================================ */ |
| 2389 | /* Commits + diffs */ | |
| 2390 | /* ============================================================ */ | |
| 2391 | .commit-list { | |
| 2392 | border: 1px solid var(--border); | |
| 2393 | border-radius: var(--r-md); | |
| 2394 | overflow: hidden; | |
| 2395 | background: var(--bg-elevated); | |
| 2396 | } | |
| fc1817a | 2397 | .commit-item { |
| 2398 | display: flex; | |
| 2399 | justify-content: space-between; | |
| 2400 | align-items: center; | |
| debcf27 | 2401 | padding: 14px 18px; |
| 2402 | border-bottom: 1px solid var(--border-subtle); | |
| 2ce1d0b | 2403 | transition: background var(--t-fast) var(--ease); |
| fc1817a | 2404 | } |
| 2405 | .commit-item:last-child { border-bottom: none; } | |
| 2ce1d0b | 2406 | .commit-item:hover { background: var(--bg-hover); } |
| debcf27 | 2407 | .commit-message { |
| 2408 | font-size: var(--t-sm); | |
| 2409 | font-weight: 500; | |
| 2410 | line-height: 1.45; | |
| 2411 | color: var(--text-strong); | |
| 2412 | letter-spacing: -0.005em; | |
| 2413 | } | |
| 2414 | .commit-meta { | |
| 2415 | font-family: var(--font-mono); | |
| 2416 | font-size: 11px; | |
| 2417 | color: var(--text-muted); | |
| 2418 | margin-top: 5px; | |
| 2419 | letter-spacing: 0.01em; | |
| 2420 | } | |
| fc1817a | 2421 | .commit-sha { |
| 2422 | font-family: var(--font-mono); | |
| debcf27 | 2423 | font-feature-settings: var(--mono-feat); |
| 2424 | font-size: 11px; | |
| 2425 | padding: 4px 9px; | |
| fc1817a | 2426 | background: var(--bg-tertiary); |
| 2427 | border: 1px solid var(--border); | |
| 2ce1d0b | 2428 | border-radius: var(--r-sm); |
| debcf27 | 2429 | color: var(--accent); |
| 2430 | font-weight: 600; | |
| 2431 | letter-spacing: 0.02em; | |
| 2ce1d0b | 2432 | transition: all var(--t-fast) var(--ease); |
| fc1817a | 2433 | } |
| debcf27 | 2434 | .commit-sha:hover { |
| 2435 | border-color: rgba(140,109,255,0.40); | |
| 2436 | background: var(--accent-gradient-faint); | |
| 2437 | color: var(--accent-hover); | |
| 2438 | text-decoration: none; | |
| fc1817a | 2439 | } |
| 2440 | ||
| 2441 | .diff-view { margin-top: 16px; } | |
| 2442 | .diff-file { | |
| 2443 | border: 1px solid var(--border); | |
| 2ce1d0b | 2444 | border-radius: var(--r-md); |
| fc1817a | 2445 | margin-bottom: 16px; |
| 2446 | overflow: hidden; | |
| 2ce1d0b | 2447 | background: var(--bg-elevated); |
| fc1817a | 2448 | } |
| 2449 | .diff-file-header { | |
| 2450 | background: var(--bg-secondary); | |
| 2ce1d0b | 2451 | padding: 10px 16px; |
| fc1817a | 2452 | border-bottom: 1px solid var(--border); |
| 2453 | font-family: var(--font-mono); | |
| 2ce1d0b | 2454 | font-size: var(--t-sm); |
| 2455 | font-weight: 500; | |
| fc1817a | 2456 | } |
| 2457 | .diff-content { | |
| 2458 | overflow-x: auto; | |
| 2459 | font-family: var(--font-mono); | |
| 2ce1d0b | 2460 | font-size: var(--t-sm); |
| 2461 | line-height: 1.65; | |
| fc1817a | 2462 | } |
| 958d26a | 2463 | .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); } |
| 2464 | .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); } | |
| 2465 | .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); } | |
| 2ce1d0b | 2466 | .diff-content .line { padding: 0 16px; white-space: pre; display: block; } |
| fc1817a | 2467 | |
| 2468 | .stat-add { color: var(--green); font-weight: 600; } | |
| 2469 | .stat-del { color: var(--red); font-weight: 600; } | |
| 2470 | ||
| 2ce1d0b | 2471 | /* ============================================================ */ |
| 2472 | /* Empty state */ | |
| 2473 | /* ============================================================ */ | |
| fc1817a | 2474 | .empty-state { |
| 2475 | text-align: center; | |
| 958d26a | 2476 | padding: 96px 24px; |
| fc1817a | 2477 | color: var(--text-muted); |
| 2ce1d0b | 2478 | border: 1px dashed var(--border); |
| 2479 | border-radius: var(--r-lg); | |
| 958d26a | 2480 | background: |
| 2481 | radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%), | |
| 2482 | var(--bg-elevated); | |
| 2483 | position: relative; | |
| 2484 | overflow: hidden; | |
| 2485 | } | |
| 2486 | .empty-state::before { | |
| 2487 | content: ''; | |
| 2488 | position: absolute; | |
| 2489 | inset: 0; | |
| 2490 | background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px); | |
| 2491 | background-size: 24px 24px; | |
| 2492 | opacity: 0.5; | |
| 2493 | pointer-events: none; | |
| 2494 | mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); | |
| 2495 | -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); | |
| 2496 | } | |
| 2497 | :root[data-theme='light'] .empty-state::before { | |
| 2498 | background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px); | |
| fc1817a | 2499 | } |
| 958d26a | 2500 | .empty-state > * { position: relative; z-index: 1; } |
| 2ce1d0b | 2501 | .empty-state h2 { |
| 958d26a | 2502 | font-size: var(--t-xl); |
| 2ce1d0b | 2503 | margin-bottom: 8px; |
| 958d26a | 2504 | color: var(--text-strong); |
| 2505 | letter-spacing: -0.022em; | |
| 2ce1d0b | 2506 | } |
| 958d26a | 2507 | .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; } |
| fc1817a | 2508 | .empty-state pre { |
| 2509 | text-align: left; | |
| 2510 | display: inline-block; | |
| 2511 | background: var(--bg-secondary); | |
| 958d26a | 2512 | padding: 18px 24px; |
| 2513 | border-radius: var(--r-md); | |
| fc1817a | 2514 | border: 1px solid var(--border); |
| 2515 | font-family: var(--font-mono); | |
| 958d26a | 2516 | font-feature-settings: var(--mono-feat); |
| 2ce1d0b | 2517 | font-size: var(--t-sm); |
| 958d26a | 2518 | margin-top: 24px; |
| fc1817a | 2519 | line-height: 1.8; |
| 2ce1d0b | 2520 | color: var(--text); |
| 958d26a | 2521 | box-shadow: var(--elev-1); |
| fc1817a | 2522 | } |
| 2523 | ||
| 2ce1d0b | 2524 | /* ============================================================ */ |
| 2525 | /* Badges */ | |
| 2526 | /* ============================================================ */ | |
| fc1817a | 2527 | .badge { |
| 2ce1d0b | 2528 | display: inline-flex; |
| 2529 | align-items: center; | |
| 2530 | gap: 4px; | |
| 2531 | padding: 2px 9px; | |
| 2532 | border-radius: var(--r-full); | |
| 2533 | font-size: var(--t-xs); | |
| fc1817a | 2534 | font-weight: 500; |
| 2535 | background: var(--bg-tertiary); | |
| 2536 | border: 1px solid var(--border); | |
| 2537 | color: var(--text-muted); | |
| 2ce1d0b | 2538 | line-height: 1.5; |
| fc1817a | 2539 | } |
| 2540 | ||
| 2ce1d0b | 2541 | /* ============================================================ */ |
| 2542 | /* Branch dropdown */ | |
| 2543 | /* ============================================================ */ | |
| fc1817a | 2544 | .branch-selector { |
| 2545 | display: inline-flex; | |
| 2546 | align-items: center; | |
| 2ce1d0b | 2547 | gap: 6px; |
| 2548 | padding: 6px 12px; | |
| 2549 | background: var(--bg-elevated); | |
| fc1817a | 2550 | border: 1px solid var(--border); |
| 2ce1d0b | 2551 | border-radius: var(--r-sm); |
| 2552 | font-size: var(--t-sm); | |
| fc1817a | 2553 | color: var(--text); |
| 2554 | margin-bottom: 12px; | |
| 2ce1d0b | 2555 | transition: border-color var(--t-fast) var(--ease); |
| fc1817a | 2556 | } |
| 2ce1d0b | 2557 | .branch-selector:hover { border-color: var(--border-strong); } |
| fc1817a | 2558 | |
| 06d5ffe | 2559 | .branch-dropdown { |
| 2560 | position: relative; | |
| 2561 | display: inline-block; | |
| 2562 | margin-bottom: 12px; | |
| 2563 | } | |
| 2564 | .branch-dropdown-content { | |
| 2565 | display: none; | |
| 2566 | position: absolute; | |
| 2ce1d0b | 2567 | top: calc(100% + 4px); |
| 06d5ffe | 2568 | left: 0; |
| 2569 | z-index: 10; | |
| 2ce1d0b | 2570 | min-width: 220px; |
| 2571 | background: var(--bg-elevated); | |
| 2572 | border: 1px solid var(--border-strong); | |
| 2573 | border-radius: var(--r-md); | |
| 2574 | overflow: hidden; | |
| 2575 | box-shadow: var(--elev-3); | |
| 06d5ffe | 2576 | } |
| 2577 | .branch-dropdown:hover .branch-dropdown-content, | |
| 2578 | .branch-dropdown:focus-within .branch-dropdown-content { display: block; } | |
| 2579 | .branch-dropdown-content a { | |
| 2580 | display: block; | |
| 2ce1d0b | 2581 | padding: 9px 14px; |
| 2582 | font-size: var(--t-sm); | |
| 06d5ffe | 2583 | color: var(--text); |
| 2584 | border-bottom: 1px solid var(--border); | |
| 2ce1d0b | 2585 | transition: background var(--t-fast) var(--ease); |
| 06d5ffe | 2586 | } |
| 2587 | .branch-dropdown-content a:last-child { border-bottom: none; } | |
| 2ce1d0b | 2588 | .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; } |
| 2589 | .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); } | |
| 06d5ffe | 2590 | |
| 2ce1d0b | 2591 | /* ============================================================ */ |
| 2592 | /* Card grid */ | |
| 2593 | /* ============================================================ */ | |
| 2594 | .card-grid { | |
| 2595 | display: grid; | |
| 2596 | grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); | |
| 2597 | gap: 16px; | |
| 2598 | } | |
| fc1817a | 2599 | .card { |
| 2600 | border: 1px solid var(--border); | |
| 2ce1d0b | 2601 | border-radius: var(--r-md); |
| 958d26a | 2602 | padding: 20px; |
| 2ce1d0b | 2603 | background: var(--bg-elevated); |
| 2604 | transition: | |
| 958d26a | 2605 | border-color var(--t-base) var(--ease), |
| 2606 | transform var(--t-base) var(--ease-out-quart), | |
| 2ce1d0b | 2607 | box-shadow var(--t-base) var(--ease); |
| 2608 | position: relative; | |
| 2609 | overflow: hidden; | |
| 958d26a | 2610 | isolation: isolate; |
| 2611 | } | |
| 2612 | .card::before { | |
| 2613 | content: ''; | |
| 2614 | position: absolute; | |
| 2615 | inset: 0; | |
| 2616 | background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%); | |
| 2617 | opacity: 0; | |
| 2618 | transition: opacity var(--t-base) var(--ease); | |
| 2619 | pointer-events: none; | |
| 2620 | z-index: -1; | |
| 2ce1d0b | 2621 | } |
| 2622 | .card:hover { | |
| 2623 | border-color: var(--border-strong); | |
| 2624 | box-shadow: var(--elev-2); | |
| 958d26a | 2625 | transform: translateY(-2px); |
| 2ce1d0b | 2626 | } |
| 958d26a | 2627 | .card:hover::before { opacity: 1; } |
| 2628 | .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; } | |
| 2ce1d0b | 2629 | .card h3 a { color: var(--text); font-weight: 600; } |
| 2630 | .card h3 a:hover { color: var(--text-link); } | |
| 2631 | .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; } | |
| 2632 | .card-meta { | |
| 2633 | display: flex; | |
| 2634 | gap: 14px; | |
| 2635 | margin-top: 14px; | |
| 2636 | padding-top: 14px; | |
| 2637 | border-top: 1px solid var(--border); | |
| 2638 | font-size: var(--t-xs); | |
| 2639 | color: var(--text-muted); | |
| 2640 | } | |
| 2641 | .card-meta span { display: flex; align-items: center; gap: 5px; } | |
| 2642 | ||
| 2643 | /* ============================================================ */ | |
| 2644 | /* Stat card / box */ | |
| 2645 | /* ============================================================ */ | |
| 2646 | .stat-card { | |
| 2647 | background: var(--bg-elevated); | |
| 2648 | border: 1px solid var(--border); | |
| 2649 | border-radius: var(--r-md); | |
| fc1817a | 2650 | padding: 16px; |
| 2ce1d0b | 2651 | transition: border-color var(--t-fast) var(--ease); |
| 2652 | } | |
| 2653 | .stat-card:hover { border-color: var(--border-strong); } | |
| 2654 | .stat-label { | |
| 2655 | font-size: var(--t-xs); | |
| 2656 | color: var(--text-muted); | |
| 2657 | text-transform: uppercase; | |
| 2658 | letter-spacing: 0.06em; | |
| 2659 | font-weight: 500; | |
| 2660 | } | |
| 2661 | .stat-value { | |
| 2662 | font-size: var(--t-xl); | |
| 2663 | font-weight: 700; | |
| 2664 | margin-top: 4px; | |
| 2665 | letter-spacing: -0.025em; | |
| 2666 | color: var(--text); | |
| 2667 | font-feature-settings: 'tnum'; | |
| fc1817a | 2668 | } |
| 06d5ffe | 2669 | |
| 2ce1d0b | 2670 | /* ============================================================ */ |
| 2671 | /* Star button */ | |
| 2672 | /* ============================================================ */ | |
| 06d5ffe | 2673 | .star-btn { |
| 2674 | display: inline-flex; | |
| 2675 | align-items: center; | |
| 2676 | gap: 6px; | |
| 2ce1d0b | 2677 | padding: 5px 12px; |
| 2678 | background: var(--bg-elevated); | |
| 06d5ffe | 2679 | border: 1px solid var(--border); |
| 2ce1d0b | 2680 | border-radius: var(--r-sm); |
| 06d5ffe | 2681 | color: var(--text); |
| 2ce1d0b | 2682 | font-size: var(--t-sm); |
| 2683 | font-weight: 500; | |
| 06d5ffe | 2684 | cursor: pointer; |
| 2ce1d0b | 2685 | transition: all var(--t-fast) var(--ease); |
| 2686 | } | |
| 2687 | .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; } | |
| 2688 | .star-btn.starred { | |
| 2689 | color: var(--yellow); | |
| 958d26a | 2690 | border-color: rgba(251,191,36,0.4); |
| 2691 | background: rgba(251,191,36,0.08); | |
| 06d5ffe | 2692 | } |
| 2693 | ||
| 2ce1d0b | 2694 | /* ============================================================ */ |
| 2695 | /* User profile */ | |
| 2696 | /* ============================================================ */ | |
| 06d5ffe | 2697 | .user-profile { |
| 2698 | display: flex; | |
| 2699 | gap: 32px; | |
| 2700 | margin-bottom: 32px; | |
| 2ce1d0b | 2701 | padding: 24px; |
| 2702 | background: var(--bg-elevated); | |
| 2703 | border: 1px solid var(--border); | |
| 2704 | border-radius: var(--r-lg); | |
| 06d5ffe | 2705 | } |
| 2706 | .user-avatar { | |
| 2707 | width: 96px; | |
| 2708 | height: 96px; | |
| 2ce1d0b | 2709 | border-radius: var(--r-full); |
| 2710 | background: var(--accent-gradient-soft); | |
| 2711 | border: 1px solid var(--border-strong); | |
| 06d5ffe | 2712 | display: flex; |
| 2713 | align-items: center; | |
| 2714 | justify-content: center; | |
| 2ce1d0b | 2715 | font-size: 36px; |
| 2716 | font-weight: 600; | |
| 2717 | color: var(--text); | |
| 06d5ffe | 2718 | flex-shrink: 0; |
| 2ce1d0b | 2719 | letter-spacing: -0.02em; |
| 06d5ffe | 2720 | } |
| 2ce1d0b | 2721 | .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; } |
| 2722 | .user-info .username { font-size: var(--t-md); color: var(--text-muted); } | |
| 2723 | .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; } | |
| 06d5ffe | 2724 | |
| 2ce1d0b | 2725 | /* ============================================================ */ |
| 2726 | /* New repo form */ | |
| 2727 | /* ============================================================ */ | |
| 2728 | .new-repo-form { max-width: 640px; } | |
| 2729 | .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; } | |
| 2730 | .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; } | |
| 06d5ffe | 2731 | .visibility-option { |
| 2732 | flex: 1; | |
| 2ce1d0b | 2733 | padding: 16px; |
| 06d5ffe | 2734 | border: 1px solid var(--border); |
| 2ce1d0b | 2735 | border-radius: var(--r-md); |
| 2736 | background: var(--bg-elevated); | |
| 06d5ffe | 2737 | cursor: pointer; |
| 2ce1d0b | 2738 | text-align: left; |
| 2739 | transition: all var(--t-fast) var(--ease); | |
| 2740 | } | |
| 2741 | .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); } | |
| 2742 | .visibility-option:has(input:checked) { | |
| 2743 | border-color: var(--accent); | |
| 2744 | background: var(--accent-gradient-faint); | |
| 2745 | box-shadow: 0 0 0 1px var(--accent); | |
| 06d5ffe | 2746 | } |
| 2747 | .visibility-option input { display: none; } | |
| 2ce1d0b | 2748 | .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; } |
| 2749 | .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); } | |
| 79136bb | 2750 | |
| 2ce1d0b | 2751 | /* ============================================================ */ |
| 2752 | /* Issues */ | |
| 2753 | /* ============================================================ */ | |
| 2754 | .issue-tabs { display: flex; gap: 4px; } | |
| 2755 | .issue-tabs a { | |
| 2756 | color: var(--text-muted); | |
| 2757 | font-size: var(--t-sm); | |
| 2758 | font-weight: 500; | |
| 2759 | padding: 6px 12px; | |
| 2760 | border-radius: var(--r-sm); | |
| 2761 | transition: all var(--t-fast) var(--ease); | |
| 2762 | } | |
| 2763 | .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; } | |
| 2764 | .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); } | |
| 79136bb | 2765 | |
| 2ce1d0b | 2766 | .issue-list { |
| 2767 | border: 1px solid var(--border); | |
| 2768 | border-radius: var(--r-md); | |
| 2769 | overflow: hidden; | |
| 2770 | background: var(--bg-elevated); | |
| 2771 | } | |
| 79136bb | 2772 | .issue-item { |
| 2773 | display: flex; | |
| 2ce1d0b | 2774 | gap: 14px; |
| 79136bb | 2775 | align-items: flex-start; |
| 2ce1d0b | 2776 | padding: 14px 16px; |
| 79136bb | 2777 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 2778 | transition: background var(--t-fast) var(--ease); |
| 79136bb | 2779 | } |
| 2780 | .issue-item:last-child { border-bottom: none; } | |
| 2ce1d0b | 2781 | .issue-item:hover { background: var(--bg-hover); } |
| 2782 | .issue-state-icon { | |
| 2783 | font-size: 14px; | |
| 2784 | padding-top: 2px; | |
| 2785 | width: 18px; | |
| 2786 | height: 18px; | |
| 2787 | display: inline-flex; | |
| 2788 | align-items: center; | |
| 2789 | justify-content: center; | |
| 2790 | border-radius: var(--r-full); | |
| 2791 | flex-shrink: 0; | |
| 2792 | } | |
| 79136bb | 2793 | .state-open { color: var(--green); } |
| 958d26a | 2794 | .state-closed { color: #b69dff; } |
| 2ce1d0b | 2795 | .issue-title { |
| debcf27 | 2796 | font-family: var(--font-display); |
| 2797 | font-size: var(--t-md); | |
| 2ce1d0b | 2798 | font-weight: 600; |
| debcf27 | 2799 | line-height: 1.35; |
| 2800 | letter-spacing: -0.012em; | |
| 2801 | } | |
| 2802 | .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); } | |
| 2803 | .issue-title a:hover { color: var(--accent); text-decoration: none; } | |
| 2804 | .issue-meta { | |
| 2805 | font-family: var(--font-mono); | |
| 2806 | font-size: 11px; | |
| 2807 | color: var(--text-muted); | |
| 2808 | margin-top: 5px; | |
| 2809 | letter-spacing: 0.01em; | |
| 2ce1d0b | 2810 | } |
| 79136bb | 2811 | |
| 2812 | .issue-badge { | |
| 2813 | display: inline-flex; | |
| 2814 | align-items: center; | |
| 2ce1d0b | 2815 | gap: 6px; |
| 79136bb | 2816 | padding: 4px 12px; |
| 2ce1d0b | 2817 | border-radius: var(--r-full); |
| 2818 | font-size: var(--t-sm); | |
| 79136bb | 2819 | font-weight: 500; |
| 2ce1d0b | 2820 | line-height: 1.4; |
| 79136bb | 2821 | } |
| 958d26a | 2822 | .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); } |
| 2823 | .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); } | |
| 2824 | .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); } | |
| 2ce1d0b | 2825 | .state-merged { color: var(--accent); } |
| 958d26a | 2826 | .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); } |
| 79136bb | 2827 | |
| 2ce1d0b | 2828 | .issue-detail { max-width: 920px; } |
| 79136bb | 2829 | .issue-comment-box { |
| 2830 | border: 1px solid var(--border); | |
| 2ce1d0b | 2831 | border-radius: var(--r-md); |
| 79136bb | 2832 | margin-bottom: 16px; |
| 2833 | overflow: hidden; | |
| 2ce1d0b | 2834 | background: var(--bg-elevated); |
| 79136bb | 2835 | } |
| 2836 | .comment-header { | |
| 2837 | background: var(--bg-secondary); | |
| 2ce1d0b | 2838 | padding: 10px 16px; |
| 79136bb | 2839 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 2840 | font-size: var(--t-sm); |
| 79136bb | 2841 | color: var(--text-muted); |
| 2842 | } | |
| 2843 | ||
| 2ce1d0b | 2844 | /* ============================================================ */ |
| 2845 | /* Panel — flexible container used across many pages */ | |
| 2846 | /* ============================================================ */ | |
| 2847 | .panel { | |
| 2848 | background: var(--bg-elevated); | |
| 2849 | border: 1px solid var(--border); | |
| 2850 | border-radius: var(--r-md); | |
| 2851 | overflow: hidden; | |
| 2852 | } | |
| 2853 | .panel-item { | |
| 2854 | display: flex; | |
| 2855 | align-items: center; | |
| 2856 | gap: 12px; | |
| 2857 | padding: 12px 16px; | |
| 79136bb | 2858 | border-bottom: 1px solid var(--border); |
| 2ce1d0b | 2859 | transition: background var(--t-fast) var(--ease); |
| 2860 | } | |
| 2861 | .panel-item:last-child { border-bottom: none; } | |
| 2862 | .panel-item:hover { background: var(--bg-hover); } | |
| 2863 | .panel-empty { | |
| 2864 | padding: 24px; | |
| 2865 | text-align: center; | |
| 79136bb | 2866 | color: var(--text-muted); |
| 2ce1d0b | 2867 | font-size: var(--t-sm); |
| 79136bb | 2868 | } |
| 2869 | ||
| 2ce1d0b | 2870 | /* ============================================================ */ |
| 2871 | /* Search */ | |
| 2872 | /* ============================================================ */ | |
| 79136bb | 2873 | .search-results .diff-file { margin-bottom: 12px; } |
| 16b325c | 2874 | |
| 2ce1d0b | 2875 | /* ============================================================ */ |
| 2876 | /* Timeline */ | |
| 2877 | /* ============================================================ */ | |
| 2878 | .timeline { position: relative; padding-left: 28px; } | |
| 16b325c | 2879 | .timeline::before { |
| 2880 | content: ''; | |
| 2881 | position: absolute; | |
| 2882 | left: 4px; | |
| 2883 | top: 8px; | |
| 2884 | bottom: 8px; | |
| 2885 | width: 2px; | |
| 2ce1d0b | 2886 | background: linear-gradient(180deg, var(--border) 0%, transparent 100%); |
| 16b325c | 2887 | } |
| 2ce1d0b | 2888 | .timeline-item { position: relative; padding-bottom: 16px; } |
| 16b325c | 2889 | .timeline-dot { |
| 2890 | position: absolute; | |
| 2ce1d0b | 2891 | left: -28px; |
| 2892 | top: 8px; | |
| 2893 | width: 12px; | |
| 2894 | height: 12px; | |
| 2895 | border-radius: var(--r-full); | |
| 2896 | background: var(--accent-gradient); | |
| 16b325c | 2897 | border: 2px solid var(--bg); |
| 2ce1d0b | 2898 | box-shadow: 0 0 0 1px var(--border-strong); |
| 16b325c | 2899 | } |
| 2900 | .timeline-content { | |
| 2ce1d0b | 2901 | background: var(--bg-elevated); |
| 16b325c | 2902 | border: 1px solid var(--border); |
| 2ce1d0b | 2903 | border-radius: var(--r-md); |
| 2904 | padding: 14px 16px; | |
| 16b325c | 2905 | } |
| f1ab587 | 2906 | |
| 2ce1d0b | 2907 | /* ============================================================ */ |
| 2908 | /* Toggle switch */ | |
| 2909 | /* ============================================================ */ | |
| f1ab587 | 2910 | .toggle-switch { |
| 2911 | position: relative; | |
| 2912 | display: inline-block; | |
| 2ce1d0b | 2913 | width: 40px; |
| 2914 | height: 22px; | |
| f1ab587 | 2915 | flex-shrink: 0; |
| 2916 | margin-left: 16px; | |
| 2917 | } | |
| 2918 | .toggle-switch input { opacity: 0; width: 0; height: 0; } | |
| 2919 | .toggle-slider { | |
| 2920 | position: absolute; | |
| 2921 | cursor: pointer; | |
| 2922 | top: 0; left: 0; right: 0; bottom: 0; | |
| 2923 | background: var(--bg-tertiary); | |
| 2924 | border: 1px solid var(--border); | |
| 2ce1d0b | 2925 | border-radius: var(--r-full); |
| 2926 | transition: all var(--t-base) var(--ease); | |
| f1ab587 | 2927 | } |
| 2928 | .toggle-slider::before { | |
| 2929 | content: ''; | |
| 2930 | position: absolute; | |
| 2ce1d0b | 2931 | height: 16px; |
| 2932 | width: 16px; | |
| f1ab587 | 2933 | left: 2px; |
| 2934 | bottom: 2px; | |
| 2935 | background: var(--text-muted); | |
| 2ce1d0b | 2936 | border-radius: var(--r-full); |
| 2937 | transition: all var(--t-base) var(--ease); | |
| f1ab587 | 2938 | } |
| 2939 | .toggle-switch input:checked + .toggle-slider { | |
| 2ce1d0b | 2940 | background: var(--accent-gradient); |
| 2941 | border-color: transparent; | |
| 958d26a | 2942 | box-shadow: 0 0 0 1px rgba(140,109,255,0.4); |
| f1ab587 | 2943 | } |
| 2944 | .toggle-switch input:checked + .toggle-slider::before { | |
| 2ce1d0b | 2945 | transform: translateX(18px); |
| f1ab587 | 2946 | background: #fff; |
| 2947 | } | |
| ef8d378 | 2948 | |
| 2949 | /* ============================================================ | |
| 2950 | * 2026 polish layer (purely additive — no layout changes). | |
| 2951 | * Improves typography rendering, focus states, hover affordances, | |
| 2952 | * and adds the gradient brand cue to primary buttons. Anything | |
| 2953 | * that could alter dimensions stays in the rules above. | |
| 2954 | * ============================================================ */ | |
| 2955 | html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } | |
| 2956 | body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; } | |
| 2957 | *::selection { background: rgba(168,85,247,0.35); color: var(--text); } | |
| 2958 | ||
| 2959 | h1, h2, h3, h4 { letter-spacing: -0.018em; } | |
| 2960 | h1 { letter-spacing: -0.025em; } | |
| 2961 | ||
| 2962 | /* Smoother colour transitions everywhere links live */ | |
| 2963 | a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); } | |
| 2964 | ||
| 2965 | /* Buttons: focus rings + smoother transitions; primary gets the gradient */ | |
| 2966 | .btn { | |
| 2967 | transition: | |
| 2968 | background 120ms cubic-bezier(0.16,1,0.3,1), | |
| 2969 | border-color 120ms cubic-bezier(0.16,1,0.3,1), | |
| 2970 | transform 120ms cubic-bezier(0.16,1,0.3,1), | |
| 2971 | box-shadow 120ms cubic-bezier(0.16,1,0.3,1); | |
| 2972 | } | |
| 2973 | .btn:active { transform: translateY(0.5px); } | |
| 2974 | .btn:focus-visible { | |
| 2975 | outline: none; | |
| 2976 | box-shadow: 0 0 0 3px rgba(168,85,247,0.30); | |
| 2977 | } | |
| 2978 | .btn-primary { | |
| 2979 | background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%); | |
| 2980 | border-color: transparent; | |
| 2981 | box-shadow: | |
| 2982 | inset 0 1px 0 rgba(255,255,255,0.15), | |
| 2983 | 0 1px 2px rgba(168,85,247,0.25); | |
| 2984 | } | |
| 2985 | .btn-primary:hover { | |
| 2986 | background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%); | |
| 2987 | filter: none; | |
| 2988 | box-shadow: | |
| 2989 | inset 0 1px 0 rgba(255,255,255,0.20), | |
| 2990 | 0 4px 12px rgba(168,85,247,0.30); | |
| 2991 | } | |
| 2992 | ||
| 2993 | /* Inputs: cleaner focus ring + hover */ | |
| 2994 | .form-group input:hover, | |
| 2995 | .form-group textarea:hover, | |
| 2996 | .form-group select:hover { | |
| 2997 | border-color: rgba(255,255,255,0.14); | |
| 2998 | } | |
| 2999 | .form-group input:focus, | |
| 3000 | .form-group textarea:focus, | |
| 3001 | .form-group select:focus { | |
| 3002 | border-color: rgba(168,85,247,0.55); | |
| 3003 | box-shadow: 0 0 0 3px rgba(168,85,247,0.22); | |
| 3004 | } | |
| 3005 | :root[data-theme='light'] .form-group input:hover, | |
| 3006 | :root[data-theme='light'] .form-group textarea:hover, | |
| 3007 | :root[data-theme='light'] .form-group select:hover { | |
| 3008 | border-color: rgba(0,0,0,0.18); | |
| 3009 | } | |
| 3010 | ||
| 3011 | /* Cards: subtle hover lift */ | |
| 3012 | .card { | |
| 3013 | transition: | |
| 3014 | border-color 160ms cubic-bezier(0.16,1,0.3,1), | |
| 3015 | transform 160ms cubic-bezier(0.16,1,0.3,1), | |
| 3016 | box-shadow 200ms cubic-bezier(0.16,1,0.3,1); | |
| 3017 | } | |
| 3018 | .card:hover { | |
| 3019 | border-color: rgba(255,255,255,0.18); | |
| 3020 | transform: translateY(-1px); | |
| 3021 | box-shadow: 0 8px 24px rgba(0,0,0,0.30); | |
| 3022 | } | |
| 3023 | :root[data-theme='light'] .card:hover { | |
| 3024 | border-color: rgba(0,0,0,0.18); | |
| 3025 | box-shadow: 0 8px 24px rgba(0,0,0,0.08); | |
| 3026 | } | |
| 3027 | ||
| 3028 | /* Issue / commit / panel rows: smoother hover */ | |
| 3029 | .issue-item, .commit-item { | |
| 3030 | transition: background 120ms cubic-bezier(0.16,1,0.3,1); | |
| 3031 | } | |
| 3032 | .repo-nav a { | |
| 3033 | transition: color 120ms cubic-bezier(0.16,1,0.3,1), | |
| 3034 | border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1); | |
| 3035 | } | |
| 3036 | .nav-link { | |
| 3037 | transition: color 120ms cubic-bezier(0.16,1,0.3,1); | |
| 3038 | } | |
| 3039 | ||
| 3040 | /* Auth card: subtle elevation so register/login feel premium */ | |
| 3041 | .auth-container { | |
| 3042 | background: var(--bg-secondary); | |
| 3043 | border: 1px solid var(--border); | |
| 3044 | border-radius: var(--r-lg, 12px); | |
| 3045 | padding: 32px; | |
| 3046 | box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border); | |
| 3047 | } | |
| 3048 | :root[data-theme='light'] .auth-container { | |
| 3049 | box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border); | |
| 3050 | } | |
| 3051 | .auth-container h2 { letter-spacing: -0.025em; } | |
| 3052 | ||
| 3053 | /* Empty state: dashed border, generous padding */ | |
| 3054 | .empty-state { | |
| 3055 | border: 1px dashed var(--border); | |
| 3056 | border-radius: var(--r-lg, 12px); | |
| 3057 | background: var(--bg); | |
| 3058 | } | |
| 3059 | ||
| 3060 | /* Badges + commit-sha: smoother transition */ | |
| 3061 | .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); } | |
| 3062 | ||
| 3063 | /* Gradient text utility — matches landing's accent treatment */ | |
| 3064 | .gradient-text { | |
| 3065 | background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%); | |
| 3066 | -webkit-background-clip: text; | |
| 3067 | background-clip: text; | |
| 3068 | -webkit-text-fill-color: transparent; | |
| 3069 | } | |
| 3070 | ||
| 3071 | /* Custom scrollbars (subtle, themed) */ | |
| 3072 | ::-webkit-scrollbar { width: 10px; height: 10px; } | |
| 3073 | ::-webkit-scrollbar-track { background: transparent; } | |
| 3074 | ::-webkit-scrollbar-thumb { | |
| 3075 | background: rgba(255,255,255,0.06); | |
| 3076 | border: 2px solid var(--bg); | |
| 3077 | border-radius: 9999px; | |
| 3078 | } | |
| 3079 | ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); } | |
| 3080 | :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); } | |
| 3081 | :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); } | |
| 3082 | ||
| 3083 | /* Honour reduced-motion preference */ | |
| 3084 | @media (prefers-reduced-motion: reduce) { | |
| 3085 | *, *::before, *::after { | |
| 3086 | animation-duration: 0.01ms !important; | |
| 3087 | animation-iteration-count: 1 !important; | |
| 3088 | transition-duration: 0.01ms !important; | |
| 3089 | } | |
| 3090 | } | |
| c63b860 | 3091 | |
| 3092 | /* Block O3 — visual coherence additive rules. */ | |
| 3093 | .card.card-p-none { padding: 0; } | |
| 3094 | .card.card-p-sm { padding: var(--space-3); } | |
| 3095 | .card.card-p-md { padding: var(--space-4); } | |
| 3096 | .card.card-p-lg { padding: var(--space-6); } | |
| 3097 | .card.card-elevated { box-shadow: var(--elev-2); } | |
| 3098 | .card.card-gradient { | |
| 3099 | background: | |
| 3100 | linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%), | |
| 3101 | var(--bg-elevated); | |
| 3102 | } | |
| 3103 | .card.card-gradient::before { opacity: 1; } | |
| 3104 | .notice { | |
| 3105 | padding: var(--space-3) var(--space-4); | |
| 3106 | border-radius: var(--radius-md); | |
| 3107 | border: 1px solid var(--border); | |
| 3108 | background: var(--bg-elevated); | |
| 3109 | color: var(--text); | |
| 3110 | font-size: var(--font-size-sm); | |
| 3111 | margin-bottom: var(--space-6); | |
| 3112 | line-height: var(--leading-normal); | |
| 3113 | } | |
| 3114 | .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); } | |
| 3115 | .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); } | |
| 3116 | .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); } | |
| 3117 | .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); } | |
| 3118 | .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); } | |
| 3119 | .email-preview { | |
| 3120 | padding: var(--space-5); | |
| 3121 | background: #fff; | |
| 3122 | color: #111; | |
| 3123 | border-radius: var(--radius-md); | |
| 3124 | } | |
| 3125 | .code-block { | |
| 3126 | margin: var(--space-2) 0 0; | |
| 3127 | padding: var(--space-3); | |
| 3128 | background: var(--bg-tertiary); | |
| 3129 | border: 1px solid var(--border-subtle); | |
| 3130 | border-radius: var(--radius-sm); | |
| 3131 | font-family: var(--font-mono); | |
| 3132 | font-size: var(--font-size-xs); | |
| 3133 | line-height: var(--leading-normal); | |
| 3134 | overflow-x: auto; | |
| 3135 | } | |
| 3136 | .status-pill-operational { | |
| 3137 | display: inline-flex; | |
| 3138 | align-items: center; | |
| 3139 | padding: var(--space-1) var(--space-3); | |
| 3140 | border-radius: var(--radius-full); | |
| 3141 | font-size: var(--font-size-xs); | |
| 3142 | font-weight: 600; | |
| 3143 | background: rgba(52,211,153,0.15); | |
| 3144 | color: var(--green); | |
| 3145 | } | |
| 3146 | .api-tag { | |
| 3147 | display: inline-flex; | |
| 3148 | align-items: center; | |
| 3149 | font-size: var(--font-size-xs); | |
| 3150 | padding: 2px var(--space-2); | |
| 3151 | border-radius: var(--radius-sm); | |
| 3152 | font-family: var(--font-mono); | |
| 3153 | } | |
| 3154 | .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); } | |
| 3155 | .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); } | |
| 3156 | .stat-number { | |
| 3157 | font-size: var(--font-size-xl); | |
| 3158 | font-weight: 700; | |
| 3159 | color: var(--text-strong); | |
| 3160 | line-height: var(--leading-tight); | |
| 3161 | } | |
| 3162 | .stat-number-accent { color: var(--accent); } | |
| 3163 | .stat-number-blue { color: var(--blue); } | |
| 3164 | .stat-number-purple { color: var(--text-link); } | |
| 3165 | footer .footer-tag-sub { | |
| 3166 | margin-top: var(--space-2); | |
| 3167 | font-size: var(--font-size-xs); | |
| 3168 | color: var(--text-faint); | |
| 3169 | line-height: var(--leading-normal); | |
| 3170 | } | |
| 3171 | footer .footer-version-pill { | |
| 3172 | display: inline-flex; | |
| 3173 | align-items: center; | |
| 3174 | gap: var(--space-2); | |
| 3175 | padding: var(--space-1) var(--space-3); | |
| 3176 | border-radius: var(--radius-full); | |
| 3177 | border: 1px solid var(--border); | |
| 3178 | background: var(--bg-elevated); | |
| 3179 | color: var(--text-faint); | |
| 3180 | font-family: var(--font-mono); | |
| 3181 | font-size: var(--font-size-xs); | |
| 3182 | cursor: help; | |
| 3183 | } | |
| 3184 | footer .footer-banner { | |
| 3185 | max-width: 1240px; | |
| 3186 | margin: var(--space-6) auto 0; | |
| 3187 | padding: var(--space-3) var(--space-4); | |
| 3188 | border-radius: var(--radius-md); | |
| 3189 | border: 1px solid var(--border); | |
| 3190 | background: var(--bg-elevated); | |
| 3191 | color: var(--text); | |
| 3192 | font-family: var(--font-mono); | |
| 3193 | font-size: var(--font-size-xs); | |
| 3194 | letter-spacing: 0.04em; | |
| 3195 | text-transform: uppercase; | |
| 3196 | text-align: center; | |
| 3197 | } | |
| 3198 | footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); } | |
| 3199 | footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); } | |
| 3200 | footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); } | |
| dc26881 | 3201 | |
| cf9178b | 3202 | /* ============================================================ */ |
| 3203 | /* Global toast notifications. */ | |
| 3204 | /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */ | |
| 3205 | /* ============================================================ */ | |
| 3206 | .gx-toast { | |
| 3207 | pointer-events: auto; | |
| 3208 | display: inline-flex; | |
| 3209 | align-items: flex-start; | |
| 3210 | gap: 10px; | |
| 3211 | min-width: 280px; | |
| 3212 | max-width: min(440px, calc(100vw - 32px)); | |
| 3213 | padding: 12px 14px 12px 12px; | |
| 3214 | background: var(--bg-elevated); | |
| 3215 | border: 1px solid var(--border); | |
| 3216 | border-radius: 10px; | |
| 3217 | box-shadow: | |
| 3218 | 0 12px 36px -10px rgba(15,16,28,0.18), | |
| 3219 | 0 2px 6px rgba(15,16,28,0.04), | |
| 3220 | 0 0 0 1px rgba(15,16,28,0.02); | |
| 3221 | color: var(--text); | |
| 3222 | font-size: 13.5px; | |
| 3223 | line-height: 1.45; | |
| 3224 | opacity: 0; | |
| 3225 | transform: translateX(16px); | |
| 3226 | transition: | |
| 3227 | opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), | |
| 3228 | transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); | |
| 3229 | } | |
| 3230 | .gx-toast--in { opacity: 1; transform: translateX(0); } | |
| 3231 | .gx-toast--out { opacity: 0; transform: translateX(16px); } | |
| 3232 | .gx-toast__icon { | |
| 3233 | flex-shrink: 0; | |
| 3234 | width: 20px; height: 20px; | |
| 3235 | border-radius: 50%; | |
| 3236 | display: inline-flex; | |
| 3237 | align-items: center; | |
| 3238 | justify-content: center; | |
| 3239 | font-size: 12px; | |
| 3240 | font-weight: 700; | |
| 3241 | line-height: 1; | |
| 3242 | margin-top: 1px; | |
| 3243 | } | |
| 3244 | .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; } | |
| 3245 | .gx-toast__close { | |
| 3246 | flex-shrink: 0; | |
| 3247 | width: 22px; height: 22px; | |
| 3248 | border: 0; | |
| 3249 | background: transparent; | |
| 3250 | color: var(--text-muted); | |
| 3251 | font-size: 18px; | |
| 3252 | line-height: 1; | |
| 3253 | cursor: pointer; | |
| 3254 | border-radius: 4px; | |
| 3255 | padding: 0; | |
| 3256 | margin: -2px -2px 0 0; | |
| 3257 | transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); | |
| 3258 | } | |
| 3259 | .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); } | |
| 3260 | .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); } | |
| 3261 | .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); } | |
| 3262 | .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); } | |
| 3263 | .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); } | |
| 3264 | @media (prefers-reduced-motion: reduce) { | |
| 3265 | .gx-toast { transition: opacity 60ms linear; transform: none; } | |
| 3266 | .gx-toast--in, .gx-toast--out { transform: none; } | |
| 3267 | } | |
| 3268 | ||
| dc26881 | 3269 | /* ============================================================ */ |
| 3270 | /* Block U4 — cross-document view transitions. */ | |
| 3271 | /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */ | |
| 3272 | /* every same-origin navigation. Older browsers ignore these */ | |
| 3273 | /* rules entirely — no JS shim, no breakage. */ | |
| 3274 | /* prefers-reduced-motion disables the animation honourably. */ | |
| 3275 | /* ============================================================ */ | |
| 3276 | @view-transition { | |
| 3277 | navigation: auto; | |
| 3278 | } | |
| 3279 | ::view-transition-old(root), | |
| 3280 | ::view-transition-new(root) { | |
| 3281 | animation-duration: 200ms; | |
| 3282 | animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); | |
| 3283 | } | |
| 3284 | ::view-transition-old(root) { | |
| 3285 | animation-name: vt-fade-out; | |
| 3286 | } | |
| 3287 | ::view-transition-new(root) { | |
| 3288 | animation-name: vt-fade-in; | |
| 3289 | } | |
| 3290 | @keyframes vt-fade-out { | |
| 3291 | to { opacity: 0; } | |
| 3292 | } | |
| 3293 | @keyframes vt-fade-in { | |
| 3294 | from { opacity: 0; } | |
| 3295 | } | |
| 3296 | @media (prefers-reduced-motion: reduce) { | |
| 3297 | ::view-transition-old(root), | |
| 3298 | ::view-transition-new(root) { | |
| 3299 | animation-duration: 0s; | |
| 3300 | } | |
| 3301 | } | |
| 3302 | /* The transition system picks up its root subject from this rule. */ | |
| 3303 | body { | |
| 3304 | view-transition-name: root; | |
| 3305 | } | |
| fc1817a | 3306 | `; |