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