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