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