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