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