Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history

layout.tsx

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

layout.tsxBlame3598 lines · 4 contributors
fc1817aClaude1import type { FC, PropsWithChildren } from "hono/jsx";
06d5ffeClaude2import type { User } from "../db/schema";
3import { hljsThemeCss } from "../lib/highlight";
45e31d0Claude4import { clientJs } from "./client-js";
05cdb85Claude5import { getBuildInfo } from "../lib/build-info";
fc1817aClaude6
06d5ffeClaude7export const Layout: FC<
3ef4c9dClaude8 PropsWithChildren<{
9 title?: string;
10 user?: User | null;
11 notificationCount?: number;
6fc53bdClaude12 theme?: "dark" | "light";
5f2e749Claude13 // 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";
c63b860Claude21 // Block O3 — site-wide footer banner stripe. When non-empty,
22 // renders below the footer-bottom row; wired from
23 // admin.system_flags.site_banner_text.
24 siteBannerText?: string;
25 siteBannerLevel?: "info" | "warn" | "error";
3ef4c9dClaude26 }>
5f2e749Claude27> = ({
28 children,
29 title,
30 user,
31 notificationCount,
32 theme,
33 fullTitle,
34 description,
35 ogTitle,
36 ogDescription,
37 ogType,
38 twitterCard,
c63b860Claude39 siteBannerText,
40 siteBannerLevel,
5f2e749Claude41}) => {
81201ccTest User42 // Default to "light" — feedback from operators was the dark default
43 // felt too gamer-ish and not what senior platform engineers expect from
44 // a tool they'd evaluate alongside Vercel / Linear / Stripe. Users who
45 // explicitly want dark can flip via the theme toggle (cookie persists).
46 const initialTheme = theme === "dark" ? "dark" : "light";
05cdb85Claude47 const build = getBuildInfo();
5f2e749Claude48 // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron"
49 // suffix); otherwise fall back to the existing `title` + suffix behaviour.
50 const renderedTitle = fullTitle
51 ? fullTitle
52 : title
53 ? `${title} — gluecron`
54 : "gluecron";
fc1817aClaude55 return (
6fc53bdClaude56 <html lang="en" data-theme={initialTheme}>
fc1817aClaude57 <head>
58 <meta charset="UTF-8" />
59 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
eae38d1Claude60 <meta name="theme-color" content="#0d1117" />
3a5755eClaude61 {/* 2026 polish — load Inter + Inter Tight + JetBrains Mono for
62 crisp modern typography. `preconnect` keeps the handshake
63 cost off the critical path; `display=swap` means we never
64 block first paint waiting on fonts. */}
65 <link rel="preconnect" href="https://fonts.googleapis.com" />
66 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
67 <link
68 rel="stylesheet"
69 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"
70 />
44fe49bClaude71 {/* PWA removed 2026-05-16 — repeated reload-loop bugs (admin
72 dashboard, deploy pill, admin-screen flash). A git host has
73 no use for service workers or install-as-app. Manifest link
74 and SW registrations are gone permanently. */}
eae38d1Claude75 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude76 <title>{renderedTitle}</title>
77 {description && <meta name="description" content={description} />}
78 {(ogTitle || fullTitle || title) && (
79 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
80 )}
81 {(ogDescription || description) && (
82 <meta
83 property="og:description"
84 content={ogDescription ?? description ?? ""}
85 />
86 )}
87 {ogType && <meta property="og:type" content={ogType} />}
88 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude89 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
90 <style dangerouslySetInnerHTML={{ __html: css }} />
91 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude92 </head>
93 <body>
4a52a98Claude94 <div class="prelaunch-banner" role="status" aria-live="polite">
95 Pre-launch &mdash; Gluecron is in final validation. Public signups
96 and git hosting for non-owner users open after launch review.
97 </div>
cd4f63bTest User98 {/* Block Q3 — Playground banner. Renders only when the active
99 user is a playground account with a future expiry; the small
100 inline script counts down once per minute. Strip is dismissible
101 per-page-load (re-appears on next nav) — gentle, not noisy. */}
102 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
103 <div
104 class="playground-banner"
105 role="status"
106 aria-live="polite"
107 data-playground-expires={
108 ((user as any).playgroundExpiresAt instanceof Date
109 ? (user as any).playgroundExpiresAt.toISOString()
110 : String((user as any).playgroundExpiresAt))
111 }
112 >
113 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
114 <span class="playground-banner-text">
115 Playground account &mdash;{" "}
116 <span class="playground-banner-countdown">expires soon</span>.{" "}
117 <a href="/play/claim" class="playground-banner-cta">
118 Save your work &rarr;
119 </a>
120 </span>
121 <button
122 type="button"
123 class="playground-banner-dismiss"
124 aria-label="Dismiss"
125 data-playground-dismiss="1"
126 >
127 {"×"}
128 </button>
129 <script
130 dangerouslySetInnerHTML={{
131 __html: /* js */ `
132 (function () {
133 var el = document.currentScript && document.currentScript.parentElement;
134 if (!el) return;
135 var iso = el.getAttribute('data-playground-expires');
136 if (!iso) return;
137 var target = Date.parse(iso);
138 if (isNaN(target)) return;
139 var out = el.querySelector('.playground-banner-countdown');
140 function render() {
141 var ms = target - Date.now();
142 if (!out) return;
143 if (ms <= 0) { out.textContent = 'expired'; return; }
144 var mins = Math.floor(ms / 60000);
145 var hrs = Math.floor(mins / 60);
146 if (hrs > 1) out.textContent = hrs + ' hours left';
147 else if (hrs === 1) out.textContent = '1 hour left';
148 else if (mins > 1) out.textContent = mins + ' minutes left';
149 else out.textContent = 'less than a minute left';
150 }
151 render();
152 setInterval(render, 60000);
153 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
154 if (dismiss) {
155 dismiss.addEventListener('click', function () {
156 el.style.display = 'none';
157 });
158 }
159 })();
160 `,
161 }}
162 />
163 </div>
164 )}
fc1817aClaude165 <header>
166 <nav>
167 <a href="/" class="logo">
168 gluecron
169 </a>
3ef4c9dClaude170 <div class="nav-search">
001af43Claude171 <form method="get" action="/search">
3ef4c9dClaude172 <input
173 type="search"
174 name="q"
175 placeholder="Search (press /)"
176 aria-label="Search"
177 />
178 </form>
179 </div>
06d5ffeClaude180 <div class="nav-right">
f5b9ef5Claude181 {/* Block N3 — site-admin platform-deploy status pill */}
f764c07Claude182 {user && (
183 <a
184 id="deploy-pill"
185 href="/admin/deploys"
186 class="nav-deploy-pill"
187 style="display:none"
188 aria-label="Platform deploy status"
189 title="Platform deploy status"
190 >
191 <span class="deploy-pill-dot" />
192 <span class="deploy-pill-text">Deploys</span>
193 </a>
194 )}
f5b9ef5Claude195 <a href="/explore" class="nav-link">Explore</a>
06d5ffeClaude196 {user ? (
197 <>
f5b9ef5Claude198 {/* AI dropdown */}
c6018a5Claude199 <div class="nav-ai-dropdown" data-nav-ai>
200 <button
201 type="button"
202 class="nav-link nav-ai-trigger"
203 aria-haspopup="true"
204 aria-expanded="false"
205 data-nav-ai-trigger
206 >
207 <span style="display:inline-flex;align-items:center;gap:5px">
f5b9ef5Claude208 <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
c6018a5Claude209 <path d="M12 2l2.39 5.95L20 9l-4.5 3.9L17 19l-5-3.2L7 19l1.5-6.1L4 9l5.61-1.05L12 2z" />
210 </svg>
211 AI
f5b9ef5Claude212 <span aria-hidden="true" style="font-size:9px;opacity:0.7">{String.fromCharCode(9660)}</span>
c6018a5Claude213 </span>
214 </button>
215 <div class="nav-ai-menu" role="menu" data-nav-ai-menu>
216 <a href="/standups" role="menuitem" class="nav-ai-item">
217 <span class="nav-ai-item-label">Standups</span>
218 <span class="nav-ai-item-sub">Daily AI brief</span>
219 </a>
220 <a href="/voice" role="menuitem" class="nav-ai-item">
221 <span class="nav-ai-item-label">Voice</span>
222 <span class="nav-ai-item-sub">Talk to ship a PR</span>
223 </a>
224 <a href="/refactors" role="menuitem" class="nav-ai-item">
225 <span class="nav-ai-item-label">Refactors</span>
226 <span class="nav-ai-item-sub">Multi-repo agent</span>
227 </a>
228 <a href="/specs" role="menuitem" class="nav-ai-item">
229 <span class="nav-ai-item-label">Specs</span>
230 <span class="nav-ai-item-sub">Spec-to-PR loop</span>
231 </a>
232 <a href="/ask" role="menuitem" class="nav-ai-item">
233 <span class="nav-ai-item-label">Ask AI</span>
234 <span class="nav-ai-item-sub">Cross-repo chat</span>
235 </a>
236 </div>
237 </div>
cc34156Claude238 {/* Smart morning digest link */}
239 <a href="/digest" class="nav-link" title="Morning Digest" aria-label="Morning Digest">
240 {"☀"}
241 </a>
f5b9ef5Claude242 {/* Inbox bell with unread badge */}
243 <a
244 href="/inbox"
245 class="nav-inbox-btn"
246 aria-label={notificationCount && notificationCount > 0 ? `Inbox — ${notificationCount} unread` : "Inbox"}
247 title="Inbox"
248 >
249 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
250 <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
251 <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
252 </svg>
253 {notificationCount && notificationCount > 0 ? (
254 <span class="nav-inbox-badge" aria-hidden="true">
255 {notificationCount > 99 ? "99+" : notificationCount}
256 </span>
257 ) : null}
06d5ffeClaude258 </a>
f5b9ef5Claude259 <a href="/new" class="btn btn-sm btn-primary">+ New</a>
260 {/* User dropdown — consolidates profile + secondary nav */}
261 <div class="nav-user-dropdown" data-nav-user>
262 <button
263 type="button"
264 class="nav-user-trigger"
265 aria-haspopup="true"
266 aria-expanded="false"
267 data-nav-user-trigger
268 >
269 <span class="nav-user-avatar" aria-hidden="true">
270 {(user.displayName || user.username).charAt(0).toUpperCase()}
271 </span>
272 <span class="nav-user-name">{user.displayName || user.username}</span>
273 <span class="nav-user-caret" aria-hidden="true">{"▾"}</span>
274 </button>
275 <div class="nav-user-menu" role="menu" data-nav-user-menu>
276 <div class="nav-user-menu-header">
277 <span class="nav-user-menu-name">{user.displayName || user.username}</span>
278 <span class="nav-user-menu-handle">@{user.username}</span>
279 </div>
280 <div class="nav-user-menu-sep" />
281 <a href="/dashboard" role="menuitem" class="nav-user-item">Dashboard</a>
282 <a href="/pulls" role="menuitem" class="nav-user-item">Pull requests</a>
283 <a href="/issues" role="menuitem" class="nav-user-item">Issues</a>
284 <a href="/activity" role="menuitem" class="nav-user-item">Activity</a>
8286942Claude285 <a href="/insights" role="menuitem" class="nav-user-item">Insights</a>
f5b9ef5Claude286 <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a>
bb2dea9Claude287 <a href="/import/actions" role="menuitem" class="nav-user-item">Actions importer</a>
f5b9ef5Claude288 <div class="nav-user-menu-sep" />
289 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
290 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
291 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
292 <div class="nav-user-menu-sep" />
293 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
294 <span class="theme-icon-dark">{"☾"} Light mode</span>
295 <span class="theme-icon-light">{"☀"} Dark mode</span>
296 </a>
297 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
298 </div>
299 </div>
06d5ffeClaude300 </>
301 ) : (
302 <>
f5b9ef5Claude303 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
304 <span class="theme-icon-dark">{"☾"}</span>
305 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude306 </a>
adf5e18Claude307 <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron">
308 Migrate from GitHub
309 </a>
f5b9ef5Claude310 <a href="/login" class="nav-link">Sign in</a>
311 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude312 </>
313 )}
314 </div>
fc1817aClaude315 </nav>
316 </header>
45e31d0Claude317 <main id="main-content">{children}</main>
cf9178bTest User318 {/* Global toast host — populated by the toastScript below from
319 ?success= / ?error= / ?toast= query params. Replaces the
320 per-page banner pattern with one polished slide-in. */}
321 <div
322 id="toast-host"
323 aria-live="polite"
324 aria-atomic="true"
325 style="position:fixed;top:calc(var(--header-h) + 12px);right:16px;z-index:var(--z-toast,10000);display:flex;flex-direction:column;gap:8px;pointer-events:none"
326 />
fc1817aClaude327 <footer>
958d26aClaude328 <div class="footer-inner">
329 <div class="footer-brand">
330 <a href="/" class="logo">gluecron</a>
331 <p class="footer-tag">
332 AI-native code intelligence. Self-hosted git, automated CI,
333 push-time gates. Software that ships itself.
334 </p>
335 </div>
336 <div class="footer-links">
337 <div class="footer-col">
338 <div class="footer-col-title">Product</div>
b0148e9Claude339 <a href="/features">Features</a>
340 <a href="/pricing">Pricing</a>
9f29b65Claude341 <a href="/enterprise">Enterprise</a>
e1fc7dbClaude342 <a href="/changelog">Changelog</a>
958d26aClaude343 <a href="/explore">Explore</a>
344 <a href="/marketplace">Marketplace</a>
adf5e18Claude345 <a href="/developer-program">Developer Program</a>
958d26aClaude346 </div>
347 <div class="footer-col">
348 <div class="footer-col-title">Platform</div>
e0e4219Claude349 <a href="/docs">Docs</a>
b0148e9Claude350 <a href="/help">Quickstart</a>
958d26aClaude351 <a href="/status">Status</a>
352 <a href="/api/graphql">GraphQL</a>
353 <a href="/mcp">MCP server</a>
354 </div>
355 <div class="footer-col">
b0148e9Claude356 <div class="footer-col-title">Company</div>
357 <a href="/about">About</a>
3122762Claude358 <a href="/blog">Blog</a>
958d26aClaude359 <a href="/terms">Terms</a>
360 <a href="/privacy">Privacy</a>
361 <a href="/acceptable-use">Acceptable use</a>
362 </div>
363 </div>
364 </div>
365 <div class="footer-bottom">
366 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude367 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
368 <span class="footer-build-dot" aria-hidden="true" />
369 {build.sha} · {build.branch}
370 </span>
36b4cbdClaude371 </div>
c63b860Claude372 {siteBannerText ? (
373 <div
374 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
375 role="status"
376 aria-live="polite"
377 >
378 {siteBannerText}
379 </div>
380 ) : null}
fc1817aClaude381 </footer>
05cdb85Claude382 {/* Live update poller — checks /api/version every 15s, prompts
383 reload when the running sha changes. Pure progressive-
384 enhancement; degrades to nothing if JS is off. */}
385 <div
386 id="version-banner"
387 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"
388 >
389 <span style="display:inline-flex;align-items:center;gap:8px">
390 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
391 <span>New version available</span>
392 </span>
393 <button
394 type="button"
395 id="version-banner-reload"
396 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"
397 >
398 Reload
399 </button>
400 </div>
fa880f2Claude401 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude402 {/* Block N3 — site-admin deploy status pill (script-only). The pill
403 container is rendered above for authed users; this script bootstraps
404 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
405 and the pill stays display:none — zero leak. */}
406 {user && (
407 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
408 )}
699e5c7Claude409 {/* Block I4 — Command palette shell (hidden by default) */}
410 <div
411 id="cmdk-backdrop"
412 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
413 />
414 <div
415 id="cmdk-panel"
416 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"
417 >
418 <input
419 id="cmdk-input"
420 type="text"
421 placeholder="Type a command..."
422 aria-label="Command palette"
dc26881CC LABS App423 style="width:100%;padding:var(--space-3) var(--space-4);background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--border);outline:none;font-size:14px"
699e5c7Claude424 />
425 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
426 </div>
fa880f2Claude427 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude428 {/* PWA-kill script: actively unregisters any service worker
429 previously installed under gluecron.com. Recovers any browser
430 still trapped in the SW reload loop from the legacy registrations. */}
431 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User432 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude433 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude434 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
b7ecb14Claude435 {/* Bell badge poller — only rendered for authenticated users.
436 Polls /api/notifications/count every 60 s and updates the badge
437 on the inbox bell icon. Falls back gracefully if the endpoint is
438 unavailable or the user signs out mid-session. */}
439 {user && (
440 <script dangerouslySetInnerHTML={{ __html: bellPollerScript }} />
441 )}
fc1817aClaude442 </body>
443 </html>
444 );
445};
446
05cdb85Claude447// Live version poller. Checks /api/version every 15s; if the sha differs
448// from the one we booted with, reveal the floating 'New version' pill so
449// the user can reload onto the new code without manually refreshing.
450const versionPollerScript = `
451 (function(){
452 var loadedSha = null;
453 var banner, btn;
454 function poll(){
455 fetch('/api/version', { cache: 'no-store' })
456 .then(function(r){ return r.ok ? r.json() : null; })
457 .then(function(j){
458 if (!j || !j.sha) return;
459 if (loadedSha === null) { loadedSha = j.sha; return; }
460 if (j.sha !== loadedSha && banner) {
461 banner.style.display = 'inline-flex';
462 }
463 })
464 .catch(function(){});
465 }
466 function init(){
467 banner = document.getElementById('version-banner');
468 btn = document.getElementById('version-banner-reload');
469 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
470 poll();
471 setInterval(poll, 15000);
472 }
473 if (document.readyState === 'loading') {
474 document.addEventListener('DOMContentLoaded', init);
475 } else {
476 init();
477 }
478 })();
479`;
480
f764c07Claude481// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
482// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
483// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
484// display:none — there's no leakage of admin-only data to other users.
485//
486// Pill states (CSS classes on the container drive colour):
487// .deploy-pill-success 🟢 "Deployed 12s ago"
488// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
489// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
490// .deploy-pill-empty ⚪ "No deploys yet"
491//
492// Relative-time auto-refreshes every 15s without re-fetching.
493export const deployPillScript = `
494 (function(){
495 var pill, dot, text;
496 var state = { latest: null, asOf: null };
497
498 function classifyAge(ms){
499 if (ms < 0) return 'just now';
500 var s = Math.floor(ms / 1000);
501 if (s < 5) return 'just now';
502 if (s < 60) return s + 's ago';
503 var m = Math.floor(s / 60);
504 if (m < 60) return m + 'm ago';
505 var h = Math.floor(m / 60);
506 if (h < 24) return h + 'h ago';
507 var d = Math.floor(h / 24);
508 return d + 'd ago';
509 }
510 function elapsed(ms){
511 if (ms < 0) ms = 0;
512 var s = Math.floor(ms / 1000);
513 if (s < 60) return s + 's';
514 var m = Math.floor(s / 60);
515 var rem = s - m * 60;
516 return m + 'm ' + rem + 's';
517 }
518
519 function render(){
520 if (!pill || !text || !dot) return;
521 var d = state.latest;
81201ccTest User522 // When there's no deploy event yet, keep the pill HIDDEN. Showing
523 // "No deploys yet" was visible noise on every admin page load and
524 // flashed during reconnect cycles — admins don't need a placeholder.
525 // The pill reveals itself the first time a real deploy fires.
f764c07Claude526 if (!d) {
81201ccTest User527 pill.style.display = 'none';
f764c07Claude528 return;
529 }
530 pill.style.display = 'inline-flex';
531 var now = Date.now();
532 if (d.status === 'in_progress') {
533 pill.className = 'nav-deploy-pill deploy-pill-progress';
534 var started = Date.parse(d.started_at) || now;
535 text.textContent = 'Deploying… ' + elapsed(now - started);
536 } else if (d.status === 'succeeded') {
537 pill.className = 'nav-deploy-pill deploy-pill-success';
538 var ref = Date.parse(d.finished_at || d.started_at) || now;
539 text.textContent = 'Deployed ' + classifyAge(now - ref);
540 } else if (d.status === 'failed') {
541 pill.className = 'nav-deploy-pill deploy-pill-failed';
542 var refF = Date.parse(d.finished_at || d.started_at) || now;
543 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
544 } else {
545 pill.className = 'nav-deploy-pill';
546 text.textContent = d.status;
547 }
548 }
549
550 function fetchLatest(){
551 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
552 .then(function(r){ if (!r.ok) return null; return r.json(); })
553 .then(function(j){
554 if (!j || j.ok !== true) return;
555 state.latest = j.latest;
556 state.asOf = j.asOf;
557 render();
558 subscribe();
559 })
560 .catch(function(){});
561 }
562
563 var subscribed = false;
564 function subscribe(){
565 if (subscribed) return;
566 if (typeof EventSource === 'undefined') return;
567 subscribed = true;
568 var es;
bf19c50Test User569 // Exponential backoff with cap. Previously a tight 1500ms reconnect
570 // produced visible looping in the nav whenever the proxy timed out
571 // or the connection blipped — the bottom-of-page deploy pill
572 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
573 // successful message receipt.
574 var delay = 2000;
575 var DELAY_MAX = 60000;
576 function bump(){
577 delay = Math.min(delay * 2, DELAY_MAX);
578 }
579 function resetDelay(){
580 delay = 2000;
581 }
f764c07Claude582 function connect(){
583 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User584 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude585 es.onmessage = function(m){
bf19c50Test User586 resetDelay();
f764c07Claude587 try {
588 var d = JSON.parse(m.data);
589 if (d && d.run_id) {
590 if (!state.latest || state.latest.run_id === d.run_id ||
591 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
592 state.latest = d;
593 render();
594 }
595 }
596 } catch(e){}
597 };
598 es.onerror = function(){
599 try { es.close(); } catch(e){}
bf19c50Test User600 bump();
f764c07Claude601 setTimeout(connect, delay);
602 };
603 }
604 connect();
605 }
606
607 function init(){
608 pill = document.getElementById('deploy-pill');
609 if (!pill) return;
610 dot = pill.querySelector('.deploy-pill-dot');
611 text = pill.querySelector('.deploy-pill-text');
612 fetchLatest();
613 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
614 // without a fresh fetch.
615 setInterval(render, 15000);
616 }
617 if (document.readyState === 'loading') {
618 document.addEventListener('DOMContentLoaded', init);
619 } else {
620 init();
621 }
622 })();
623`;
624
6fc53bdClaude625// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User626// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
627// is honoured for users who explicitly opted in.
6fc53bdClaude628const themeInitScript = `
629 (function(){
630 try {
631 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User632 var t = m ? decodeURIComponent(m[1]) : 'light';
633 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude634 document.documentElement.setAttribute('data-theme', t);
635 } catch(_){}
636 })();
637`;
638
eae38d1Claude639// Block G1 — register service worker for offline / install support.
640// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App641//
cf9178bTest User642// Global toast notifications — reads ?success=, ?error=, ?toast= from the
643// URL on page load and surfaces a polished slide-in toast instead of the
644// per-page banner divs that crowded the layout. Toasts auto-dismiss after
645// 4.5s; query params are scrubbed from the URL via history.replaceState
646// so a subsequent Refresh doesn't re-fire the same toast.
647//
648// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
649// must be URI-encoded (callers already do this via encodeURIComponent
650// in c.redirect()).
651const toastScript = `
652 (function(){
653 function showToast(kind, message){
654 if (!message) return;
655 var host = document.getElementById('toast-host');
656 if (!host) return;
657 var el = document.createElement('div');
658 el.className = 'gx-toast gx-toast--' + kind;
659 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
660 var icon = document.createElement('span');
661 icon.className = 'gx-toast__icon';
662 icon.textContent = kind === 'success' ? '\\u2713'
663 : kind === 'error' ? '\\u00D7'
664 : kind === 'warn' ? '!'
665 : 'i';
666 el.appendChild(icon);
667 var text = document.createElement('span');
668 text.className = 'gx-toast__text';
669 text.textContent = message;
670 el.appendChild(text);
671 var close = document.createElement('button');
672 close.type = 'button';
673 close.className = 'gx-toast__close';
674 close.setAttribute('aria-label', 'Dismiss notification');
675 close.textContent = '\\u00D7';
676 close.addEventListener('click', function(){ dismiss(); });
677 el.appendChild(close);
678 host.appendChild(el);
679 // Force a reflow then add the visible class so the slide-in transitions.
680 void el.offsetWidth;
681 el.classList.add('gx-toast--in');
682 var timer = setTimeout(dismiss, 4500);
683 function dismiss(){
684 clearTimeout(timer);
685 el.classList.remove('gx-toast--in');
686 el.classList.add('gx-toast--out');
687 setTimeout(function(){
688 if (el.parentNode) el.parentNode.removeChild(el);
689 }, 220);
690 }
691 }
692 try {
693 var url = new URL(window.location.href);
694 var hits = 0;
695 var s = url.searchParams.get('success');
696 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
697 var e = url.searchParams.get('error');
698 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
699 var t = url.searchParams.get('toast');
700 if (t) {
701 var ix = t.indexOf(':');
702 var kind = ix > 0 ? t.slice(0, ix) : 'info';
703 var msg = ix > 0 ? t.slice(ix + 1) : t;
704 showToast(kind, msg);
705 url.searchParams.delete('toast');
706 hits++;
707 }
708 if (hits > 0 && window.history && window.history.replaceState) {
709 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
710 }
711 } catch(_) {}
712 })();
713`;
714
44fe49bClaude715// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
716// and pwaInstallBannerScript. Those two scripts registered /sw.js and
717// /sw-push.js at the same scope, causing a reload loop that made the
718// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
719// uncllickable). Per the SW spec, only one SW can control a scope; two
720// different script URLs at the same scope keep replacing each other.
6345c3eTest User721//
44fe49bClaude722// PWA is gone for good. A git host has no use for service workers,
723// install-as-app, or push notifications via SW. This script actively
724// unregisters every previously installed SW on the gluecron.com origin
725// so any browser still trapped in the loop recovers on the very next
726// page load — without needing the user to clear site data or open
727// DevTools. Idempotent and safe to keep running forever; once all
728// browsers have been cleaned, it's a no-op.
729const pwaKillSwitchScript = `
534f04aClaude730(function(){
731 try {
44fe49bClaude732 if (!('serviceWorker' in navigator)) return;
733 if (!navigator.serviceWorker.getRegistrations) return;
734 navigator.serviceWorker.getRegistrations().then(function(regs){
735 if (!regs || regs.length === 0) return;
736 regs.forEach(function(reg){
737 try { reg.unregister(); } catch(_){}
738 });
739 }).catch(function(){});
740 // Also drop any caches the old SWs left behind so the user gets
741 // truly fresh HTML on every page load. Restricted to gluecron-*
742 // namespaced caches so we don't trample anything a future opt-in
743 // feature might create under a different name.
744 if ('caches' in self) {
745 caches.keys().then(function(keys){
746 keys.forEach(function(k){
747 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
748 try { caches.delete(k); } catch(_){}
d7ba05dClaude749 }
750 });
751 }).catch(function(){});
534f04aClaude752 }
753 } catch(_) {}
754})();
755`;
756
3ef4c9dClaude757const navScript = `
758 (function(){
759 var chord = null;
760 var chordTimer = null;
761 function isTyping(t){
762 t = t || {};
763 var tag = (t.tagName || '').toLowerCase();
764 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
765 }
71cd5ecClaude766
767 // ---------- Block I4 — Command palette ----------
768 var COMMANDS = [
769 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
770 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
771 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
772 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
773 { label: 'Create new repository', href: '/new', kw: 'add create' },
774 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
775 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
776 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
777 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
778 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
779 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
780 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
781 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
782 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude783 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude784 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
785 { label: 'Gists', href: '/gists', kw: 'snippets' },
786 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
787 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
788 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
789 ];
790
791 function fuzzyMatch(item, q){
792 if (!q) return true;
793 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
794 q = q.toLowerCase();
795 var qi = 0;
796 for (var i = 0; i < hay.length && qi < q.length; i++) {
797 if (hay[i] === q[qi]) qi++;
798 }
799 return qi === q.length;
800 }
801
802 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
803
804 function render(){
805 if (!list) return;
806 var html = '';
807 for (var i = 0; i < filtered.length; i++) {
808 var item = filtered[i];
809 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
810 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]811 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App812 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude813 '<div>' + item.label + '</div>' +
814 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
815 '</div>';
816 }
817 if (filtered.length === 0) {
dc26881CC LABS App818 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude819 }
820 list.innerHTML = html;
821 }
822
641aa42Claude823 function getAllCommands(){
824 // Merge global COMMANDS with repo-context commands injected by repo pages.
825 var extra = (window.__CMDK_REPO_COMMANDS && Array.isArray(window.__CMDK_REPO_COMMANDS))
826 ? window.__CMDK_REPO_COMMANDS : [];
827 return COMMANDS.concat(extra);
828 }
829
71cd5ecClaude830 function openPalette(){
831 backdrop = document.getElementById('cmdk-backdrop');
832 panel = document.getElementById('cmdk-panel');
833 input = document.getElementById('cmdk-input');
834 list = document.getElementById('cmdk-list');
835 if (!backdrop || !panel) return;
836 backdrop.style.display = 'block';
837 panel.style.display = 'block';
838 input.value = '';
839 selected = 0;
641aa42Claude840 filtered = getAllCommands();
71cd5ecClaude841 render();
842 input.focus();
843 }
844 function closePalette(){
845 if (backdrop) backdrop.style.display = 'none';
846 if (panel) panel.style.display = 'none';
847 }
848 function go(href){ closePalette(); window.location.href = href; }
849
850 document.addEventListener('click', function(e){
851 var t = e.target;
852 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
853 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]854 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude855 });
856
857 document.addEventListener('input', function(e){
858 if (e.target && e.target.id === 'cmdk-input') {
859 var q = e.target.value;
641aa42Claude860 filtered = getAllCommands().filter(function(c){ return fuzzyMatch(c, q); });
71cd5ecClaude861 selected = 0;
862 render();
863 }
864 });
865
3ef4c9dClaude866 document.addEventListener('keydown', function(e){
71cd5ecClaude867 // Palette-scoped keys take priority when open
868 if (panel && panel.style.display === 'block') {
869 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
870 if (e.key === 'ArrowDown') {
871 e.preventDefault();
872 selected = Math.min(filtered.length - 1, selected + 1);
873 render();
874 return;
875 }
876 if (e.key === 'ArrowUp') {
877 e.preventDefault();
878 selected = Math.max(0, selected - 1);
879 render();
880 return;
881 }
882 if (e.key === 'Enter') {
883 e.preventDefault();
884 var item = filtered[selected];
885 if (item) go(item.href);
886 return;
887 }
888 return;
889 }
890
3ef4c9dClaude891 if (isTyping(e.target)) return;
892 // Single key shortcuts
893 if (e.key === '/') {
894 var el = document.querySelector('.nav-search input');
895 if (el) { e.preventDefault(); el.focus(); return; }
896 }
897 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude898 e.preventDefault();
899 openPalette();
900 return;
3ef4c9dClaude901 }
902 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
903 e.preventDefault(); window.location.href = '/shortcuts'; return;
904 }
905 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
641aa42Claude906 // Start 'n' chord — wait 1.2s for next key (i → issue, p → PR).
907 // If no second key arrives, navigate to /new (create repo).
908 chord = 'n';
909 clearTimeout(chordTimer);
910 chordTimer = setTimeout(function(){
911 if (chord === 'n') { window.location.href = '/new'; }
912 chord = null;
913 }, 1200);
914 return;
3ef4c9dClaude915 }
916 // "g" chord
917 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
918 chord = 'g';
919 clearTimeout(chordTimer);
920 chordTimer = setTimeout(function(){ chord = null; }, 1200);
921 return;
922 }
923 if (chord === 'g') {
924 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
925 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
926 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
927 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
928 chord = null;
929 }
641aa42Claude930 // "n" chord — new issue / new PR (repo-context-aware)
931 if (chord === 'n') {
932 var repoCtx = window.__CMDK_REPO_COMMANDS;
933 var newIssuePath = repoCtx && repoCtx.length ? repoCtx[0].href.replace('/issues/new', '/issues/new') : null;
934 // Find the "new issue" and "new PR" hrefs from repo context commands
935 var issueCmd = repoCtx && repoCtx.find(function(c){ return c.href && c.href.indexOf('/issues/new') !== -1; });
936 var prCmd = repoCtx && repoCtx.find(function(c){ return c.href && c.href.indexOf('/pulls/new') !== -1; });
937 if (e.key === 'i' && issueCmd) {
938 e.preventDefault(); clearTimeout(chordTimer); chord = null;
939 window.location.href = issueCmd.href; return;
940 }
941 if (e.key === 'p' && prCmd) {
942 e.preventDefault(); clearTimeout(chordTimer); chord = null;
943 window.location.href = prCmd.href; return;
944 }
945 }
5882af3Claude946 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
947 if (e.key === 'j' || e.key === 'k') {
948 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
949 var items = Array.from(document.querySelectorAll(selectors));
950 if (items.length === 0) return;
951 e.preventDefault();
952 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
953 var next = e.key === 'j' ? (cur < 0 ? 0 : Math.min(items.length - 1, cur + 1)) : (cur < 0 ? items.length - 1 : Math.max(0, cur - 1));
954 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
955 items[next].classList.add('is-kbd-focus');
956 items[next].scrollIntoView({ block: 'nearest' });
957 return;
958 }
959 if (e.key === 'Enter') {
960 var focused = document.querySelector('.is-kbd-focus');
961 if (focused) {
962 e.preventDefault();
963 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
964 if (link && link.href) { window.location.href = link.href; }
965 return;
966 }
967 }
968 if (e.key === 'x') {
969 // 'x' selects/deselects focused item (future: bulk actions)
970 var sel = document.querySelector('.is-kbd-focus');
971 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
972 }
3ef4c9dClaude973 });
974 })();
975`;
976
b7ecb14Claude977// Bell poller — updates the inbox badge count every 60 s via /api/notifications/count.
978// Only injected when a user is logged in (checked in the JSX above). Uses the
979// `.nav-inbox-badge` element that the server renders inside `.nav-inbox-btn`.
980// If the badge element is absent (user not logged in, DOM mismatch) it exits
981// cleanly without error.
982export const bellPollerScript = `
983(function() {
984 var badge = document.querySelector('.nav-inbox-btn .nav-inbox-badge');
985 var btn = document.querySelector('.nav-inbox-btn');
986 function updateBadge(n) {
987 if (!btn) return;
988 if (n > 0) {
989 var label = n > 99 ? '99+' : String(n);
990 if (!badge) {
991 badge = document.createElement('span');
992 badge.className = 'nav-inbox-badge';
993 badge.setAttribute('aria-hidden', 'true');
994 btn.appendChild(badge);
995 }
996 badge.textContent = label;
997 badge.style.display = '';
998 btn.setAttribute('aria-label', 'Inbox — ' + n + ' unread');
999 } else {
1000 if (badge) badge.style.display = 'none';
1001 btn.setAttribute('aria-label', 'Inbox');
1002 }
1003 }
1004 function poll() {
1005 fetch('/api/notifications/count', { credentials: 'same-origin', cache: 'no-store' })
1006 .then(function(r) { return r.ok ? r.json() : null; })
1007 .then(function(d) {
1008 if (!d) return;
1009 var n = typeof d.unread === 'number' ? d.unread : (typeof d.count === 'number' ? d.count : 0);
1010 updateBadge(n);
1011 })
1012 .catch(function() {});
1013 }
1014 if (document.readyState === 'loading') {
1015 document.addEventListener('DOMContentLoaded', function() { poll(); setInterval(poll, 60000); });
1016 } else {
1017 poll();
1018 setInterval(poll, 60000);
1019 }
1020})();
1021`;
1022
c6018a5Claude1023// AI dropdown — keyboard- and click-accessible menu in the top nav.
1024// CSS handles the hover-open behaviour for pointer users; this script
1025// adds click-to-toggle for touch, Escape-to-close, and outside-click-
1026// to-close. Lives in its own IIFE so it never interferes with navScript.
1027const navAiDropdownScript = `
1028 (function(){
f5b9ef5Claude1029 function makeDropdown(rootSel, triggerSel, menuSel) {
1030 var open = false;
1031 var root = document.querySelector(rootSel);
1032 if (!root) return;
1033 var trigger = root.querySelector(triggerSel);
1034 var menu = root.querySelector(menuSel);
1035 if (!trigger || !menu) return;
1036 function setOpen(next){
1037 open = !!next;
1038 root.classList.toggle('is-open', open);
1039 menu.classList.toggle('is-open', open);
1040 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
1041 }
1042 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
1043 document.addEventListener('click', function(e){
1044 if (!open) return;
1045 if (root.contains(e.target)) return;
1046 setOpen(false);
1047 });
1048 document.addEventListener('keydown', function(e){
1049 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
1050 });
c6018a5Claude1051 }
f5b9ef5Claude1052 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
1053 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude1054 })();
1055`;
1056
fc1817aClaude1057const css = `
2ce1d0bClaude1058 /* ================================================================
958d26aClaude1059 * Gluecron design system — 2026.05 "Editorial-Technical"
1060 * Slate-noir base · refined violet signature · hairline geometry ·
1061 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
1062 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude1063 * ============================================================== */
6fc53bdClaude1064 :root, :root[data-theme='dark'] {
958d26aClaude1065 /* Surfaces — slate, not black. More depth, less crush. */
1066 --bg: #08090f;
1067 --bg-secondary: #0c0d14;
1068 --bg-tertiary: #11131c;
1069 --bg-elevated: #0f111a;
1070 --bg-surface: #161826;
1071 --bg-hover: rgba(255,255,255,0.04);
1072 --bg-active: rgba(255,255,255,0.08);
1073 --bg-inset: rgba(0,0,0,0.30);
1074
1075 /* Borders — three weights, used deliberately */
1076 --border: rgba(255,255,255,0.06);
1077 --border-subtle: rgba(255,255,255,0.035);
1078 --border-strong: rgba(255,255,255,0.13);
1079 --border-focus: rgba(140,109,255,0.55);
1080
1081 /* Text */
1082 --text: #ededf2;
1083 --text-strong: #f7f7fb;
1084 --text-muted: #8b8c9c;
1085 --text-faint: #555665;
1086 --text-link: #b69dff;
1087
1088 /* Accent — refined violet (less candy), warm amber as secondary signal */
1089 --accent: #8c6dff;
1090 --accent-2: #36c5d6;
1091 --accent-warm: #ffb45e;
1092 --accent-hover: #a48bff;
1093 --accent-pressed:#7559e8;
1094 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1095 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1096 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1097 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1098
1099 /* Semantic */
1100 --green: #34d399;
1101 --red: #f87171;
1102 --yellow: #fbbf24;
1103 --amber: #fbbf24;
1104 --blue: #60a5fa;
1105
3a5755eClaude1106 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1107 display (headlines), JetBrains Mono for code. All three loaded from
1108 Google Fonts with display:swap so we never block first paint. System
1109 fallbacks remain in place — if the CDN is unreachable the site still
1110 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1111 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1112 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1113 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1114 --mono-feat: 'calt', 'liga', 'ss01';
1115
1116 /* Radius — sharper than before */
1117 --r-sm: 5px;
1118 --r: 7px;
1119 --r-md: 9px;
1120 --r-lg: 12px;
1121 --r-xl: 16px;
1122 --r-2xl: 22px;
1123 --r-full: 9999px;
1124 --radius: 7px;
1125
1126 /* Type scale — bigger display sizes for editorial feel */
1127 --t-xs: 11px;
1128 --t-sm: 13px;
1129 --t-base: 14px;
1130 --t-md: 16px;
1131 --t-lg: 20px;
1132 --t-xl: 28px;
1133 --t-2xl: 40px;
1134 --t-3xl: 56px;
1135 --t-display: 72px;
1136 --t-display-lg:96px;
1137
1138 /* Spacing — 4px base */
2ce1d0bClaude1139 --s-0: 0;
958d26aClaude1140 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1141 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1142 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1143 --s-20:80px; --s-24:96px; --s-32:128px;
1144
1145 /* Elevation — softer + more layered */
1146 --elev-0: 0 0 0 1px var(--border);
1147 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1148 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1149 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1150 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1151 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1152 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1153 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1154
1155 /* Motion */
1156 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1157 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1158 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1159 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1160 --t-fast: 120ms;
1161 --t-base: 200ms;
1162 --t-slow: 360ms;
1163 --t-slower:560ms;
1164
1165 --header-h: 60px;
c63b860Claude1166
1167 /* Block O3 — visual coherence: named token aliases (additive). */
1168 --space-1: var(--s-1);
1169 --space-2: var(--s-2);
1170 --space-3: var(--s-3);
1171 --space-4: var(--s-4);
1172 --space-5: var(--s-5);
1173 --space-6: var(--s-6);
1174 --space-8: var(--s-8);
1175 --space-10: var(--s-10);
1176 --space-12: var(--s-12);
1177 --space-16: var(--s-16);
1178 --space-20: var(--s-20);
1179 --space-24: var(--s-24);
1180 --radius-sm: var(--r-sm);
1181 --radius-md: var(--r-md);
1182 --radius-lg: var(--r-lg);
1183 --radius-xl: var(--r-xl);
1184 --radius-full: var(--r-full);
1185 --font-size-xs: var(--t-xs);
1186 --font-size-sm: var(--t-sm);
1187 --font-size-base: var(--t-base);
1188 --font-size-md: var(--t-md);
1189 --font-size-lg: var(--t-lg);
1190 --font-size-xl: var(--t-xl);
1191 --font-size-2xl: var(--t-2xl);
1192 --font-size-3xl: var(--t-3xl);
1193 --font-size-hero: var(--t-display);
1194 --leading-tight: 1.2;
1195 --leading-snug: 1.35;
1196 --leading-normal: 1.5;
1197 --leading-relaxed: 1.6;
1198 --leading-loose: 1.7;
1199 --z-base: 1;
1200 --z-nav: 10;
1201 --z-sticky: 50;
1202 --z-overlay: 100;
1203 --z-modal: 1000;
1204 --z-toast: 10000;
fc1817aClaude1205 }
1206
6fc53bdClaude1207 :root[data-theme='light'] {
958d26aClaude1208 --bg: #fbfbfc;
4c47454Claude1209 --bg-secondary: #ffffff;
958d26aClaude1210 --bg-tertiary: #f3f3f6;
1211 --bg-elevated: #ffffff;
1212 --bg-surface: #f6f6f9;
1213 --bg-hover: rgba(0,0,0,0.035);
1214 --bg-active: rgba(0,0,0,0.07);
1215 --bg-inset: rgba(0,0,0,0.04);
1216
1217 --border: rgba(15,16,28,0.08);
1218 --border-subtle: rgba(15,16,28,0.04);
1219 --border-strong: rgba(15,16,28,0.16);
1220
1221 --text: #0e1020;
1222 --text-strong: #050617;
1223 --text-muted: #5a5b70;
1224 --text-faint: #8a8b9e;
1225 --text-link: #6d4dff;
1226
1227 --accent: #6d4dff;
1228 --accent-2: #0891b2;
1229 --accent-hover: #5a3df0;
1230 --accent-pressed:#4a30d6;
1231 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1232
1233 --green: #059669;
1234 --red: #dc2626;
4c47454Claude1235 --yellow: #d97706;
958d26aClaude1236
1237 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1238 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1239 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1240 }
1241
1242 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1243 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1244 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1245 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1246 :root[data-theme='light'] .theme-icon-light { display: none; }
1247
fc1817aClaude1248 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1249 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1250
958d26aClaude1251 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1252
1253 body {
1254 font-family: var(--font-sans);
1255 background: var(--bg);
1256 color: var(--text);
cf9178bTest User1257 font-size: 15px;
2ce1d0bClaude1258 line-height: 1.55;
958d26aClaude1259 letter-spacing: -0.011em;
fc1817aClaude1260 min-height: 100vh;
1261 display: flex;
1262 flex-direction: column;
958d26aClaude1263 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1264 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1265 and disables automatic synthesis of bold/italic which can produce
1266 muddier rendering on certain weights. */
1267 -webkit-font-smoothing: antialiased;
1268 -moz-osx-font-smoothing: grayscale;
1269 font-synthesis: none;
1270 }
1271 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1272 line-height inversely with size so display text doesn't feel airy. */
1273 h1, h2, h3, h4, h5, h6 {
1274 font-family: var(--font-display);
1275 color: var(--text-strong);
1276 letter-spacing: -0.022em;
1277 line-height: 1.18;
1278 font-weight: 650;
1279 margin-top: 0;
1280 }
1281 h1 { font-size: 28px; letter-spacing: -0.028em; }
1282 h2 { font-size: 22px; }
1283 h3 { font-size: 18px; letter-spacing: -0.018em; }
1284 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1285 /* Link refinement — underline only on hover/focus, never by default
1286 on internal nav. Prevents the "blue underline soup" look. */
1287 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1288 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1289 a:focus-visible {
1290 outline: none;
1291 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1292 border-radius: 3px;
fc1817aClaude1293 }
1294
958d26aClaude1295 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1296 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1297 body::before {
1298 content: '';
1299 position: fixed;
1300 inset: 0;
1301 pointer-events: none;
958d26aClaude1302 z-index: -2;
2ce1d0bClaude1303 background:
958d26aClaude1304 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1305 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1306 }
1307 body::after {
1308 content: '';
1309 position: fixed;
1310 inset: 0;
1311 pointer-events: none;
1312 z-index: -1;
1313 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1314 background-size: 28px 28px;
1315 background-position: 0 0;
1316 opacity: 0.55;
1317 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1318 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1319 }
1320 :root[data-theme='light'] body::before { opacity: 0.55; }
1321 :root[data-theme='light'] body::after {
1322 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1323 opacity: 0.4;
fc1817aClaude1324 }
2ce1d0bClaude1325
1326 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1327 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1328
958d26aClaude1329 /* Heading scale — confident, editorial, tight tracking */
1330 h1, h2, h3, h4, h5, h6 {
1331 font-family: var(--font-display);
2ce1d0bClaude1332 font-weight: 600;
958d26aClaude1333 letter-spacing: -0.022em;
1334 line-height: 1.18;
1335 color: var(--text-strong);
1336 }
1337 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1338 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1339 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1340 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1341 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1342
1343 /* Editorial display heading utility — used by landing + marketing pages */
1344 .display {
1345 font-family: var(--font-display);
1346 font-size: clamp(40px, 7.5vw, 96px);
1347 line-height: 0.98;
1348 letter-spacing: -0.04em;
1349 font-weight: 600;
1350 color: var(--text-strong);
2ce1d0bClaude1351 }
fc1817aClaude1352
958d26aClaude1353 /* Eyebrow — uppercase mono label that sits above section headings */
1354 .eyebrow {
1355 display: inline-flex;
1356 align-items: center;
1357 gap: 8px;
1358 font-family: var(--font-mono);
1359 font-size: 11px;
1360 font-weight: 500;
1361 letter-spacing: 0.14em;
1362 text-transform: uppercase;
1363 color: var(--accent);
1364 margin-bottom: var(--s-3);
1365 }
1366 .eyebrow::before {
1367 content: '';
1368 width: 18px;
1369 height: 1px;
1370 background: currentColor;
1371 opacity: 0.6;
1372 }
1373
1374 /* Section header — paired eyebrow + title + lede */
1375 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1376 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1377 .section-header h2 {
1378 font-size: clamp(28px, 4vw, 44px);
1379 line-height: 1.05;
1380 letter-spacing: -0.028em;
1381 margin-bottom: var(--s-3);
1382 }
1383 .section-header p {
1384 color: var(--text-muted);
1385 font-size: var(--t-md);
1386 line-height: 1.6;
1387 max-width: 580px;
1388 margin: 0 auto;
1389 }
1390 .section-header.left p { margin-left: 0; }
fc1817aClaude1391
958d26aClaude1392 code, kbd, samp {
2ce1d0bClaude1393 font-family: var(--font-mono);
958d26aClaude1394 font-feature-settings: var(--mono-feat);
1395 }
1396 code {
1397 font-size: 0.9em;
2ce1d0bClaude1398 background: var(--bg-tertiary);
958d26aClaude1399 border: 1px solid var(--border-subtle);
2ce1d0bClaude1400 padding: 1px 6px;
1401 border-radius: var(--r-sm);
1402 color: var(--text);
1403 }
958d26aClaude1404 kbd, .kbd {
1405 display: inline-flex;
1406 align-items: center;
1407 padding: 1px 6px;
1408 font-family: var(--font-mono);
1409 font-size: 11px;
1410 background: var(--bg-elevated);
1411 border: 1px solid var(--border);
1412 border-bottom-width: 2px;
1413 border-radius: 4px;
1414 color: var(--text);
1415 line-height: 1.5;
1416 vertical-align: middle;
1417 }
2ce1d0bClaude1418
958d26aClaude1419 /* Mono utility for technical chrome (paths, IDs, dates) */
1420 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1421 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1422
1423 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1424 .prelaunch-banner {
958d26aClaude1425 position: relative;
2ce1d0bClaude1426 background:
958d26aClaude1427 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1428 var(--bg);
958d26aClaude1429 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1430 color: var(--yellow);
958d26aClaude1431 padding: 7px 24px;
1432 font-family: var(--font-mono);
1433 font-size: 11px;
4a52a98Claude1434 font-weight: 500;
1435 text-align: center;
2ce1d0bClaude1436 line-height: 1.5;
958d26aClaude1437 letter-spacing: 0.04em;
1438 text-transform: uppercase;
1439 }
1440 .prelaunch-banner::before {
1441 content: '◆';
1442 margin-right: 8px;
1443 font-size: 9px;
1444 opacity: 0.7;
1445 vertical-align: 1px;
4a52a98Claude1446 }
1447
cd4f63bTest User1448 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1449 visitors don't miss the "save your work" CTA, but slim enough to
1450 not feel like a modal. */
1451 .playground-banner {
1452 position: relative;
1453 display: flex;
1454 align-items: center;
1455 justify-content: center;
1456 gap: 8px;
1457 background:
1458 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1459 var(--bg);
1460 border-bottom: 1px solid rgba(251,191,36,0.45);
1461 color: var(--yellow, #fbbf24);
1462 padding: 8px 40px 8px 24px;
1463 font-size: 13px;
1464 font-weight: 500;
1465 text-align: center;
1466 line-height: 1.4;
1467 }
1468 .playground-banner-icon { font-size: 14px; }
1469 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1470 .playground-banner-countdown { font-weight: 600; }
1471 .playground-banner-cta {
1472 margin-left: 4px;
1473 color: var(--yellow, #fbbf24);
1474 text-decoration: underline;
1475 font-weight: 600;
1476 }
1477 .playground-banner-cta:hover { opacity: 0.85; }
1478 .playground-banner-dismiss {
1479 position: absolute;
1480 top: 50%;
1481 right: 12px;
1482 transform: translateY(-50%);
1483 background: transparent;
1484 border: none;
1485 color: var(--text-muted, #8b949e);
1486 font-size: 18px;
1487 line-height: 1;
1488 cursor: pointer;
1489 padding: 0 4px;
1490 }
1491 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1492
958d26aClaude1493 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1494 header {
2ce1d0bClaude1495 position: sticky;
1496 top: 0;
1497 z-index: 100;
fc1817aClaude1498 border-bottom: 1px solid var(--border);
2ce1d0bClaude1499 padding: 0 24px;
1500 height: var(--header-h);
958d26aClaude1501 background: rgba(8,9,15,0.72);
1502 backdrop-filter: saturate(180%) blur(18px);
1503 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1504 }
958d26aClaude1505 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1506
06d5ffeClaude1507 header nav {
1508 display: flex;
1509 align-items: center;
958d26aClaude1510 gap: 18px;
eed4684Claude1511 max-width: 1920px;
06d5ffeClaude1512 margin: 0 auto;
2ce1d0bClaude1513 height: 100%;
1514 }
1515 .logo {
958d26aClaude1516 font-family: var(--font-display);
1517 font-size: 16px;
2ce1d0bClaude1518 font-weight: 700;
958d26aClaude1519 letter-spacing: -0.025em;
1520 color: var(--text-strong);
2ce1d0bClaude1521 display: inline-flex;
1522 align-items: center;
958d26aClaude1523 gap: 9px;
1524 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1525 }
2ce1d0bClaude1526 .logo::before {
1527 content: '';
958d26aClaude1528 width: 20px; height: 20px;
1529 border-radius: 6px;
2ce1d0bClaude1530 background: var(--accent-gradient);
958d26aClaude1531 box-shadow:
1532 inset 0 1px 0 rgba(255,255,255,0.25),
1533 0 0 0 1px rgba(140,109,255,0.45),
1534 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1535 flex-shrink: 0;
958d26aClaude1536 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1537 }
1538 .logo:hover { text-decoration: none; color: var(--text-strong); }
1539 .logo:hover::before {
1540 transform: rotate(8deg) scale(1.05);
1541 box-shadow:
1542 inset 0 1px 0 rgba(255,255,255,0.30),
1543 0 0 0 1px rgba(140,109,255,0.55),
1544 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1545 }
fc1817aClaude1546
2ce1d0bClaude1547 .nav-search {
1548 flex: 1;
958d26aClaude1549 max-width: 360px;
1550 margin: 0 4px 0 8px;
1551 position: relative;
2ce1d0bClaude1552 }
1553 .nav-search input {
1554 width: 100%;
958d26aClaude1555 padding: 7px 12px 7px 32px;
2ce1d0bClaude1556 background: var(--bg-tertiary);
1557 border: 1px solid var(--border);
1558 border-radius: var(--r-sm);
1559 color: var(--text);
1560 font-family: var(--font-sans);
1561 font-size: var(--t-sm);
958d26aClaude1562 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1563 }
1564 .nav-search::before {
1565 content: '';
1566 position: absolute;
1567 left: 11px; top: 50%;
1568 transform: translateY(-50%);
1569 width: 12px; height: 12px;
1570 border: 1.5px solid var(--text-faint);
1571 border-radius: 50%;
1572 pointer-events: none;
1573 }
1574 .nav-search::after {
1575 content: '';
1576 position: absolute;
1577 left: 19px; top: calc(50% + 4px);
1578 width: 5px; height: 1.5px;
1579 background: var(--text-faint);
1580 transform: rotate(45deg);
1581 pointer-events: none;
2ce1d0bClaude1582 }
1583 .nav-search input::placeholder { color: var(--text-faint); }
1584 .nav-search input:focus {
1585 outline: none;
1586 background: var(--bg-secondary);
958d26aClaude1587 border-color: var(--border-focus);
1588 box-shadow: var(--ring);
2ce1d0bClaude1589 }
06d5ffeClaude1590
958d26aClaude1591 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1592
1593 /* Block N3 — site-admin deploy status pill */
1594 .nav-deploy-pill {
1595 display: inline-flex;
1596 align-items: center;
1597 gap: 6px;
1598 padding: 4px 10px;
1599 margin: 0 6px 0 0;
1600 border-radius: 9999px;
1601 font-size: 11px;
1602 font-weight: 600;
1603 line-height: 1;
1604 color: var(--text-strong);
1605 background: var(--bg-elevated);
1606 border: 1px solid var(--border);
1607 text-decoration: none;
1608 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1609 }
1610 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1611 .nav-deploy-pill .deploy-pill-dot {
1612 display: inline-block;
1613 width: 8px; height: 8px;
1614 border-radius: 50%;
1615 background: #6b7280;
1616 }
1617 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1618 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1619 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1620 .deploy-pill-progress .deploy-pill-dot {
1621 background: #fbbf24;
1622 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1623 animation: deployPillPulse 1.2s ease-in-out infinite;
1624 }
1625 @keyframes deployPillPulse {
1626 0%, 100% { opacity: 1; transform: scale(1); }
1627 50% { opacity: 0.45; transform: scale(0.8); }
1628 }
1629 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1630
c6018a5Claude1631 /* ── AI dropdown (nav consolidation) ── */
1632 .nav-ai-dropdown {
1633 position: relative;
1634 display: inline-flex;
1635 align-items: center;
1636 }
1637 .nav-ai-trigger {
1638 background: transparent;
1639 border: 0;
1640 font: inherit;
1641 cursor: pointer;
1642 color: var(--text-muted);
1643 font-size: var(--t-sm);
1644 font-weight: 500;
1645 padding: 7px 11px;
1646 border-radius: var(--r-sm);
1647 line-height: 1.2;
1648 }
1649 .nav-ai-trigger:hover {
1650 color: var(--text-strong);
1651 background: var(--bg-hover);
1652 }
1653 .nav-ai-menu {
1654 position: absolute;
1655 top: calc(100% + 6px);
1656 right: 0;
1657 min-width: 220px;
1658 background: var(--bg-secondary);
1659 border: 1px solid var(--border-strong);
1660 border-radius: 10px;
1661 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1662 padding: 6px;
1663 display: none;
1664 z-index: var(--z-overlay, 100);
1665 }
1666 .nav-ai-dropdown:hover .nav-ai-menu,
1667 .nav-ai-dropdown.is-open .nav-ai-menu,
1668 .nav-ai-dropdown:focus-within .nav-ai-menu {
1669 display: block;
1670 }
1671 .nav-ai-item {
1672 display: flex;
1673 flex-direction: column;
1674 gap: 1px;
1675 padding: 8px 10px;
1676 border-radius: 6px;
1677 color: var(--text);
1678 text-decoration: none;
1679 transition: background var(--t-fast) var(--ease);
1680 }
1681 .nav-ai-item:hover {
1682 background: var(--bg-hover);
1683 text-decoration: none;
1684 color: var(--text-strong);
1685 }
1686 .nav-ai-item-label {
1687 font-size: var(--t-sm);
1688 font-weight: 600;
1689 color: var(--text-strong);
1690 }
1691 .nav-ai-item-sub {
1692 font-size: 11.5px;
1693 color: var(--text-muted);
1694 }
1695
2ce1d0bClaude1696 .nav-link {
958d26aClaude1697 position: relative;
2ce1d0bClaude1698 color: var(--text-muted);
1699 font-size: var(--t-sm);
1700 font-weight: 500;
958d26aClaude1701 padding: 7px 11px;
2ce1d0bClaude1702 border-radius: var(--r-sm);
958d26aClaude1703 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1704 }
1705 .nav-link:hover {
958d26aClaude1706 color: var(--text-strong);
2ce1d0bClaude1707 background: var(--bg-hover);
1708 text-decoration: none;
1709 }
958d26aClaude1710 .nav-link.active { color: var(--text-strong); }
1711 .nav-link.active::after {
1712 content: '';
1713 position: absolute;
1714 left: 11px; right: 11px;
1715 bottom: -1px;
1716 height: 2px;
1717 background: var(--accent-gradient);
1718 border-radius: 2px;
1719 }
adf5e18Claude1720 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1721 so it reads as an action affordance rather than a passive link. */
1722 .nav-migrate {
1723 color: var(--accent);
1724 font-weight: 600;
1725 border: 1px solid rgba(140,109,255,0.22);
1726 background: rgba(140,109,255,0.07);
1727 }
1728 .nav-migrate:hover {
1729 color: var(--accent-hover);
1730 background: rgba(140,109,255,0.13);
1731 border-color: rgba(140,109,255,0.40);
1732 }
1733 @media (max-width: 780px) { .nav-migrate { display: none; } }
1734
2ce1d0bClaude1735 .nav-user {
958d26aClaude1736 color: var(--text-strong);
2ce1d0bClaude1737 font-weight: 600;
1738 font-size: var(--t-sm);
1739 padding: 6px 10px;
1740 border-radius: var(--r-sm);
958d26aClaude1741 margin-left: 6px;
2ce1d0bClaude1742 transition: background var(--t-fast) var(--ease);
1743 }
958d26aClaude1744 .nav-user::before {
1745 content: '';
1746 display: inline-block;
1747 width: 8px; height: 8px;
1748 background: var(--green);
1749 border-radius: 50%;
1750 margin-right: 7px;
1751 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1752 vertical-align: 1px;
1753 }
2ce1d0bClaude1754 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1755
f5b9ef5Claude1756 /* ── Inbox bell button ── */
1757 .nav-inbox-btn {
1758 position: relative;
1759 display: inline-flex;
1760 align-items: center;
1761 justify-content: center;
1762 width: 34px;
1763 height: 34px;
1764 border-radius: var(--r-sm);
1765 color: var(--text-muted);
1766 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1767 flex-shrink: 0;
1768 }
1769 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1770 .nav-inbox-badge {
1771 position: absolute;
1772 top: 3px; right: 3px;
1773 min-width: 15px; height: 15px;
1774 padding: 0 4px;
1775 font-size: 9.5px;
1776 font-weight: 700;
1777 line-height: 15px;
1778 color: #fff;
1779 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1780 border-radius: 9999px;
1781 text-align: center;
1782 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1783 font-variant-numeric: tabular-nums;
1784 }
1785
1786 /* ── User dropdown ── */
1787 .nav-user-dropdown { position: relative; }
1788 .nav-user-trigger {
1789 display: inline-flex;
1790 align-items: center;
1791 gap: 7px;
1792 padding: 5px 9px 5px 5px;
1793 border-radius: var(--r-sm);
1794 border: 1px solid transparent;
1795 background: transparent;
1796 color: var(--text);
1797 font-family: var(--font-sans);
1798 font-size: var(--t-sm);
1799 font-weight: 500;
1800 cursor: pointer;
1801 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1802 }
1803 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1804 .nav-user-avatar {
1805 width: 24px; height: 24px;
1806 border-radius: 50%;
1807 background: var(--accent-gradient);
1808 color: #fff;
1809 font-size: 11px;
1810 font-weight: 700;
1811 display: inline-flex;
1812 align-items: center;
1813 justify-content: center;
1814 flex-shrink: 0;
1815 box-shadow: 0 0 0 2px var(--border);
1816 }
1817 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1818 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1819 .nav-user-menu {
1820 display: none;
1821 position: absolute;
1822 top: calc(100% + 6px);
1823 right: 0;
1824 min-width: 220px;
1825 background: var(--bg-elevated);
1826 border: 1px solid var(--border-strong);
1827 border-radius: var(--r-lg);
1828 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1829 padding: 6px;
1830 z-index: 200;
1831 animation: navMenuIn 140ms var(--ease) both;
1832 }
1833 .nav-user-menu.is-open { display: block; }
1834 .nav-user-menu-header {
1835 padding: 8px 10px 10px;
1836 display: flex;
1837 flex-direction: column;
1838 gap: 2px;
1839 }
1840 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1841 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1842 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1843 .nav-user-item {
1844 display: block;
1845 padding: 7px 10px;
1846 border-radius: 6px;
1847 font-size: var(--t-sm);
1848 color: var(--text);
1849 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1850 white-space: nowrap;
1851 }
1852 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1853 .nav-user-item--danger { color: var(--red); }
1854 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1855
1856 @keyframes navMenuIn {
1857 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1858 to { opacity: 1; transform: translateY(0) scale(1); }
1859 }
1860
2ce1d0bClaude1861 main {
eed4684Claude1862 max-width: 1920px;
2ce1d0bClaude1863 margin: 0 auto;
958d26aClaude1864 padding: 36px 24px 80px;
2ce1d0bClaude1865 flex: 1;
1866 width: 100%;
ed6e438Claude1867 /* 2026 polish — subtle entrance animation on every page load.
1868 Content fades up 4px over 360ms, giving the site that "alive"
1869 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1870 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1871 }
1872 @keyframes gxMainEnter {
1873 from { opacity: 0; transform: translateY(4px); }
1874 to { opacity: 1; transform: translateY(0); }
1875 }
1876 @media (prefers-reduced-motion: reduce) {
1877 main { animation: none; }
1878 }
1879 /* 2026 polish — accent focus ring across all focusable elements.
1880 The default browser ring is utilitarian; this is the same width
1881 but tinted to the brand accent so keyboard navigation feels
1882 intentional, not jarring. :focus-visible only — mouse users
1883 never see it. */
1884 :focus-visible {
1885 outline: none;
1886 }
1887 a:focus-visible,
1888 button:focus-visible,
1889 input:focus-visible,
1890 select:focus-visible,
1891 textarea:focus-visible,
1892 [tabindex]:focus-visible {
1893 outline: 2px solid rgba(140, 109, 255, 0.55);
1894 outline-offset: 2px;
1895 border-radius: 4px;
2ce1d0bClaude1896 }
fc1817aClaude1897
958d26aClaude1898 /* Editorial footer: link grid + tagline row */
fc1817aClaude1899 footer {
1900 border-top: 1px solid var(--border);
958d26aClaude1901 padding: 56px 24px 40px;
fc1817aClaude1902 color: var(--text-muted);
958d26aClaude1903 font-size: var(--t-sm);
1904 background:
1905 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1906 var(--bg);
1907 }
1908 footer .footer-inner {
eed4684Claude1909 max-width: 1920px;
958d26aClaude1910 margin: 0 auto;
1911 display: grid;
1912 grid-template-columns: 1fr auto;
1913 gap: 48px;
1914 align-items: start;
1915 }
1916 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1917 footer .footer-tag {
1918 color: var(--text-muted);
1919 font-size: var(--t-sm);
1920 max-width: 320px;
1921 line-height: 1.55;
1922 }
1923 footer .footer-links {
1924 display: grid;
1925 grid-template-columns: repeat(3, minmax(120px, auto));
1926 gap: 0 56px;
1927 }
1928 footer .footer-col-title {
1929 font-family: var(--font-mono);
1930 font-size: 11px;
1931 text-transform: uppercase;
1932 letter-spacing: 0.14em;
1933 color: var(--text-faint);
1934 margin-bottom: var(--s-3);
1935 }
1936 footer .footer-col a {
1937 display: block;
1938 color: var(--text-muted);
1939 font-size: var(--t-sm);
1940 padding: 5px 0;
1941 transition: color var(--t-fast) var(--ease);
1942 }
1943 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1944 footer .footer-bottom {
eed4684Claude1945 max-width: 1920px;
958d26aClaude1946 margin: 40px auto 0;
1947 padding-top: 24px;
1948 border-top: 1px solid var(--border-subtle);
1949 display: flex;
1950 justify-content: space-between;
1951 align-items: center;
2ce1d0bClaude1952 color: var(--text-faint);
1953 font-size: var(--t-xs);
958d26aClaude1954 font-family: var(--font-mono);
1955 letter-spacing: 0.02em;
1956 }
1957 footer .footer-bottom a { color: var(--text-faint); }
1958 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1959 footer .footer-build {
1960 display: inline-flex;
1961 align-items: center;
1962 gap: 6px;
1963 color: var(--text-faint);
1964 font-family: var(--font-mono);
1965 font-size: 11px;
1966 cursor: help;
1967 }
1968 footer .footer-build-dot {
1969 width: 6px; height: 6px;
1970 border-radius: 50%;
1971 background: var(--green);
1972 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1973 animation: footer-build-pulse 2.4s ease-in-out infinite;
1974 }
1975 @keyframes footer-build-pulse {
1976 0%, 100% { opacity: 0.6; }
1977 50% { opacity: 1; }
1978 }
958d26aClaude1979 @media (max-width: 768px) {
1980 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1981 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1982 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1983 }
1984
2ce1d0bClaude1985 /* ============================================================ */
1986 /* Buttons */
1987 /* ============================================================ */
dc26881CC LABS App1988 /* ============================================================ */
1989 /* Buttons — Block U2 senior polish pass. */
1990 /* Rules: */
1991 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1992 /* · active presses back down to 0 (80ms — faster on press) */
1993 /* · focus-visible uses a soft box-shadow ring (no outline) */
1994 /* · primary gradient shifts position on hover for a slow */
1995 /* 600ms shimmer */
1996 /* · disabled never lifts and never animates */
1997 /* ============================================================ */
06d5ffeClaude1998 .btn {
1999 display: inline-flex;
2000 align-items: center;
2ce1d0bClaude2001 justify-content: center;
958d26aClaude2002 gap: 7px;
2ce1d0bClaude2003 padding: 7px 14px;
2004 border-radius: var(--r-sm);
958d26aClaude2005 font-family: var(--font-sans);
2ce1d0bClaude2006 font-size: var(--t-sm);
06d5ffeClaude2007 font-weight: 500;
2008 border: 1px solid var(--border);
2ce1d0bClaude2009 background: var(--bg-elevated);
06d5ffeClaude2010 color: var(--text);
2011 cursor: pointer;
2012 text-decoration: none;
958d26aClaude2013 line-height: 1.25;
2014 letter-spacing: -0.008em;
dc26881CC LABS App2015 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
2016 Listed once on the base rule so :active can override only the
2017 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude2018 transition:
dc26881CC LABS App2019 background 180ms ease,
2020 border-color 180ms ease,
2021 transform 180ms ease,
2022 box-shadow 180ms ease,
2023 color 180ms ease;
2ce1d0bClaude2024 user-select: none;
2025 white-space: nowrap;
958d26aClaude2026 position: relative;
06d5ffeClaude2027 }
2ce1d0bClaude2028 .btn:hover {
2029 background: var(--bg-surface);
2030 border-color: var(--border-strong);
958d26aClaude2031 color: var(--text-strong);
2ce1d0bClaude2032 text-decoration: none;
dc26881CC LABS App2033 /* U2 — universal hover lift + soft accent drop shadow. */
2034 transform: translateY(-1px);
2035 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
2036 }
2037 .btn:active {
2038 transform: translateY(0);
2039 transition-duration: 80ms;
2040 }
2041 /* U2 — soft modern focus ring via box-shadow, not outline. */
2042 .btn:focus-visible {
2043 outline: none;
2044 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude2045 }
2046
2047 .btn-primary {
2048 background: var(--accent-gradient);
dc26881CC LABS App2049 background-size: 200% 100%;
2050 background-position: 0% 50%;
2ce1d0bClaude2051 border-color: transparent;
2052 color: #fff;
2053 font-weight: 600;
958d26aClaude2054 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude2055 box-shadow:
958d26aClaude2056 inset 0 1px 0 rgba(255,255,255,0.22),
2057 inset 0 -1px 0 rgba(0,0,0,0.10),
2058 0 1px 2px rgba(0,0,0,0.40),
2059 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App2060 /* U2 — slower 600ms transition on background-position so the
2061 primary CTA shimmers when the cursor lands. */
2062 transition:
2063 background-position 600ms ease,
2064 transform 180ms ease,
2065 box-shadow 180ms ease,
2066 color 180ms ease;
06d5ffeClaude2067 }
958d26aClaude2068 .btn-primary::before {
2069 content: '';
2070 position: absolute;
2071 inset: 0;
2072 border-radius: inherit;
2073 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
2074 opacity: 0;
2075 transition: opacity var(--t-fast) var(--ease);
2076 pointer-events: none;
2ce1d0bClaude2077 }
2078 .btn-primary:hover {
958d26aClaude2079 color: #fff;
2ce1d0bClaude2080 background: var(--accent-gradient);
dc26881CC LABS App2081 background-size: 200% 100%;
2082 background-position: 100% 50%;
958d26aClaude2083 border-color: transparent;
dc26881CC LABS App2084 transform: translateY(-1px);
2ce1d0bClaude2085 box-shadow:
958d26aClaude2086 inset 0 1px 0 rgba(255,255,255,0.30),
2087 inset 0 -1px 0 rgba(0,0,0,0.10),
2088 0 6px 18px -4px rgba(140,109,255,0.45),
2089 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude2090 }
958d26aClaude2091 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App2092 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2093 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2094 .btn-primary:focus-visible {
2095 box-shadow:
2096 inset 0 1px 0 rgba(255,255,255,0.22),
2097 0 0 0 3px rgba(140,109,255,0.35);
2098 }
2ce1d0bClaude2099
2100 .btn-danger {
2101 background: transparent;
958d26aClaude2102 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2103 color: var(--red);
2104 }
2105 .btn-danger:hover {
958d26aClaude2106 background: rgba(248,113,113,0.08);
2ce1d0bClaude2107 border-color: var(--red);
958d26aClaude2108 color: var(--red);
dc26881CC LABS App2109 transform: translateY(-1px);
2110 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2111 }
dc26881CC LABS App2112 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2113
2114 .btn-ghost {
2115 background: transparent;
2116 border-color: transparent;
2117 color: var(--text-muted);
2118 }
2119 .btn-ghost:hover {
2120 background: var(--bg-hover);
958d26aClaude2121 color: var(--text-strong);
2ce1d0bClaude2122 border-color: var(--border);
dc26881CC LABS App2123 transform: translateY(-1px);
2124 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2125 }
2126
958d26aClaude2127 .btn-secondary {
2128 background: var(--bg-elevated);
2129 border-color: var(--border-strong);
2130 color: var(--text-strong);
2131 }
2132 .btn-secondary:hover {
2133 background: var(--bg-surface);
2134 border-color: var(--border-strong);
dc26881CC LABS App2135 transform: translateY(-1px);
2136 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2137 }
2138
2139 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2140 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2141 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2142 .btn-block { width: 100%; }
2ce1d0bClaude2143
dc26881CC LABS App2144 /* U2 — disabled never lifts, never shimmers, never glows. */
2145 .btn:disabled,
2146 .btn[aria-disabled='true'],
2147 .btn:disabled:hover,
2148 .btn[aria-disabled='true']:hover {
2149 opacity: 0.5;
2ce1d0bClaude2150 cursor: not-allowed;
2151 pointer-events: none;
dc26881CC LABS App2152 transform: none;
2153 box-shadow: none;
2154 }
2155 @media (prefers-reduced-motion: reduce) {
2156 .btn,
2157 .btn:hover,
2158 .btn:active,
2159 .btn-primary,
2160 .btn-primary:hover {
2161 transform: none;
2162 transition: background-color 80ms linear, color 80ms linear;
2163 }
2ce1d0bClaude2164 }
2165
2166 /* ============================================================ */
2167 /* Forms */
2168 /* ============================================================ */
2169 .form-group { margin-bottom: 20px; }
2170 .form-group label {
2171 display: block;
2172 font-size: var(--t-sm);
2173 font-weight: 500;
2174 margin-bottom: 6px;
2175 color: var(--text);
2176 letter-spacing: -0.005em;
2177 }
2178 .form-group input,
2179 .form-group textarea,
2180 .form-group select,
2181 input[type='text'], input[type='email'], input[type='password'],
2182 input[type='url'], input[type='search'], input[type='number'],
2183 textarea, select {
06d5ffeClaude2184 width: 100%;
2ce1d0bClaude2185 padding: 9px 12px;
2186 background: var(--bg-secondary);
06d5ffeClaude2187 border: 1px solid var(--border);
2ce1d0bClaude2188 border-radius: var(--r-sm);
06d5ffeClaude2189 color: var(--text);
2ce1d0bClaude2190 font-size: var(--t-sm);
06d5ffeClaude2191 font-family: var(--font-sans);
2ce1d0bClaude2192 transition:
2193 border-color var(--t-fast) var(--ease),
2194 background var(--t-fast) var(--ease),
2195 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2196 }
2ce1d0bClaude2197 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2198 color: var(--text-faint);
06d5ffeClaude2199 }
2ce1d0bClaude2200 .form-group input:hover, textarea:hover, select:hover,
2201 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2202 border-color: var(--border-strong);
2203 }
2204 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2205 input:focus, textarea:focus, select:focus {
06d5ffeClaude2206 outline: none;
2ce1d0bClaude2207 background: var(--bg);
2208 border-color: var(--border-focus);
2209 box-shadow: var(--ring);
06d5ffeClaude2210 }
2ce1d0bClaude2211 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2212 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2213
2ce1d0bClaude2214 /* ============================================================ */
2215 /* Auth (register / login / verify) */
2216 /* ============================================================ */
2217 .auth-container {
98f45b4Claude2218 /* 2026 polish — wider, more generous, with a subtle accent-glow
2219 border and gradient top-edge so it reads as a premium product
2220 gateway, not a stock form. The 480px width feels intentional
2221 (not cramped, not endless). */
2222 max-width: 480px;
2223 margin: 72px auto;
2224 padding: 40px 40px 36px;
2ce1d0bClaude2225 background: var(--bg-elevated);
2226 border: 1px solid var(--border);
98f45b4Claude2227 border-radius: 16px;
2228 box-shadow:
2229 var(--elev-2),
2230 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2231 position: relative;
2232 overflow: hidden;
2233 }
2234 .auth-container::before {
2235 /* Hairline gradient accent on the top edge — signals 'AI-native'
2236 without shouting. Pointer-events disabled so it never interferes
2237 with form interactions. */
2238 content: '';
2239 position: absolute;
2240 top: 0;
2241 left: 0;
2242 right: 0;
2243 height: 2px;
2244 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2245 opacity: 0.7;
2246 pointer-events: none;
2ce1d0bClaude2247 }
2248 .auth-container h2 {
98f45b4Claude2249 margin: 0 0 8px;
2250 font-size: 28px;
2251 font-weight: 700;
2252 font-family: var(--font-display);
2253 letter-spacing: -0.025em;
2254 color: var(--text-strong);
2255 line-height: 1.15;
2256 }
2257 .auth-container .auth-subtitle {
2258 color: var(--text-muted);
2259 font-size: 14.5px;
2260 line-height: 1.5;
2261 margin: 0 0 24px;
2ce1d0bClaude2262 }
2263 .auth-container > p {
2264 color: var(--text-muted);
2265 font-size: var(--t-sm);
2266 margin-bottom: 24px;
2267 }
98f45b4Claude2268 .auth-container .btn-primary {
2269 width: 100%;
2270 padding: 12px 16px;
2271 font-size: 15px;
2272 font-weight: 600;
2273 margin-top: 4px;
2274 }
582cdacClaude2275
2276 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2277 with a brand-coloured logo on the left and a label centred-trailing.
2278 Hover lifts 1px with a subtle shadow — matches the rest of the
2279 button system but reads as a brand-affiliated action, not a brand-
2280 coloured primary CTA. */
2281 .auth-container .oauth-btn {
2282 display: flex;
2283 align-items: center;
2284 justify-content: center;
2285 gap: 10px;
2286 width: 100%;
2287 padding: 11px 16px;
2288 background: var(--bg-surface, var(--bg-elevated));
2289 border: 1px solid var(--border);
2290 border-radius: var(--r-md, 8px);
2291 color: var(--text-strong);
2292 font-family: var(--font-sans);
2293 font-size: 14.5px;
2294 font-weight: 500;
2295 text-decoration: none;
2296 transition:
2297 transform var(--t-base, 180ms) var(--ease, ease),
2298 box-shadow var(--t-base, 180ms) var(--ease, ease),
2299 background var(--t-fast, 120ms) var(--ease, ease),
2300 border-color var(--t-fast, 120ms) var(--ease, ease);
2301 }
2302 .auth-container .oauth-btn:hover {
2303 transform: translateY(-1px);
2304 background: var(--bg-hover);
2305 border-color: var(--text-muted);
2306 color: var(--text-strong);
2307 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2308 text-decoration: none;
2309 }
2310 .auth-container .oauth-btn:focus-visible {
2311 outline: 2px solid rgba(140, 109, 255, 0.55);
2312 outline-offset: 2px;
2313 }
2314 .auth-container .oauth-btn .oauth-icon {
2315 flex-shrink: 0;
2316 }
2317 /* GitHub icon adopts the text colour so it reads in both themes. */
2318 .auth-container .oauth-github .oauth-icon {
2319 color: var(--text-strong);
2320 }
2321 /* Google logo uses the official 4-colour treatment via inline SVG fill
2322 attributes — nothing to override here. */
2323 /* "or" divider between the password form and provider buttons */
2324 .auth-container .auth-divider {
2325 display: flex;
2326 align-items: center;
2327 gap: 12px;
2328 margin: 20px 0 12px;
2329 color: var(--text-faint);
2330 font-size: 12px;
2331 letter-spacing: 0.08em;
2332 text-transform: uppercase;
2333 }
2334 .auth-container .auth-divider::before,
2335 .auth-container .auth-divider::after {
2336 content: '';
2337 flex: 1;
2338 height: 1px;
2339 background: var(--border);
2340 }
06d5ffeClaude2341 .auth-error {
958d26aClaude2342 background: rgba(248,113,113,0.08);
2343 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2344 color: var(--red);
2ce1d0bClaude2345 padding: 10px 14px;
2346 border-radius: var(--r-sm);
06d5ffeClaude2347 margin-bottom: 16px;
2ce1d0bClaude2348 font-size: var(--t-sm);
06d5ffeClaude2349 }
2350 .auth-success {
958d26aClaude2351 background: rgba(52,211,153,0.08);
2352 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2353 color: var(--green);
2ce1d0bClaude2354 padding: 10px 14px;
2355 border-radius: var(--r-sm);
06d5ffeClaude2356 margin-bottom: 16px;
2ce1d0bClaude2357 font-size: var(--t-sm);
2358 }
2359 .auth-switch {
2360 margin-top: 20px;
2361 font-size: var(--t-sm);
2362 color: var(--text-muted);
2363 text-align: center;
2364 }
2365 .banner {
2366 background: var(--accent-gradient-faint);
958d26aClaude2367 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2368 color: var(--text);
2369 padding: 10px 14px;
2370 border-radius: var(--r-sm);
2371 font-size: var(--t-sm);
06d5ffeClaude2372 }
2373
2ce1d0bClaude2374 /* ============================================================ */
2375 /* Settings */
2376 /* ============================================================ */
2377 .settings-container { max-width: 720px; }
2378 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2379 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2380 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2381 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2382 .ssh-keys-list { margin-bottom: 24px; }
2383 .ssh-key-item {
2384 display: flex;
2385 justify-content: space-between;
2386 align-items: center;
2ce1d0bClaude2387 padding: 14px 16px;
06d5ffeClaude2388 border: 1px solid var(--border);
2ce1d0bClaude2389 border-radius: var(--r-md);
06d5ffeClaude2390 margin-bottom: 8px;
2ce1d0bClaude2391 background: var(--bg-elevated);
2392 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2393 }
2ce1d0bClaude2394 .ssh-key-item:hover { border-color: var(--border-strong); }
2395 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2396 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2397
2ce1d0bClaude2398 /* ============================================================ */
2399 /* Repo header + nav */
2400 /* ============================================================ */
fc1817aClaude2401 .repo-header {
2402 display: flex;
2403 align-items: center;
debcf27Claude2404 gap: 12px;
2405 margin-bottom: 22px;
2406 }
2407 .repo-header-title {
2408 display: flex;
2409 align-items: center;
2410 gap: 10px;
2411 font-family: var(--font-display);
2412 font-size: 24px;
2413 letter-spacing: -0.025em;
2414 flex-wrap: wrap;
2415 }
2416 .repo-header .owner {
2417 color: var(--text-muted);
2418 font-weight: 500;
2419 transition: color var(--t-fast) var(--ease);
2420 }
2421 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2422 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2423 .repo-header .name {
2424 color: var(--text-strong);
2425 font-weight: 700;
2426 letter-spacing: -0.028em;
fc1817aClaude2427 }
2ce1d0bClaude2428 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2429 .repo-header-fork {
2430 font-family: var(--font-mono);
2431 font-size: 11px;
2432 color: var(--text-muted);
2433 margin-top: 4px;
2434 letter-spacing: 0.01em;
2435 }
2436 .repo-header-fork a { color: var(--text-muted); }
2437 .repo-header-fork a:hover { color: var(--accent); }
2438 .repo-header-pill {
2439 display: inline-flex;
2440 align-items: center;
2441 padding: 2px 10px;
2442 border-radius: var(--r-full);
2443 font-family: var(--font-mono);
2444 font-size: 10px;
2445 font-weight: 600;
2446 letter-spacing: 0.12em;
2447 text-transform: uppercase;
2448 line-height: 1.6;
2449 vertical-align: 4px;
2450 }
2451 .repo-header-pill-archived {
2452 background: rgba(251,191,36,0.10);
2453 color: var(--yellow);
2454 border: 1px solid rgba(251,191,36,0.30);
2455 }
2456 .repo-header-pill-template {
2457 background: var(--accent-gradient-faint);
2458 color: var(--accent);
2459 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2460 }
06d5ffeClaude2461 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2462
8c790e0Claude2463 /* Push Watch discoverability — live/recent indicator in the repo header */
2464 @keyframes pushWatchPulse {
2465 0%, 100% { opacity: 1; }
2466 50% { opacity: 0.3; }
2467 }
2468 .repo-header-live-badge {
2469 display: inline-flex;
2470 align-items: center;
2471 gap: 5px;
2472 padding: 2px 9px;
2473 border-radius: 999px;
2474 font-size: 12px;
2475 font-weight: 600;
2476 letter-spacing: 0.02em;
2477 text-decoration: none !important;
2478 vertical-align: 3px;
2479 transition: filter 140ms ease, opacity 140ms ease;
2480 }
2481 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2482 .repo-header-live-badge--live {
2483 background: rgba(218, 54, 51, 0.12);
2484 color: #f97171;
2485 border: 1px solid rgba(218, 54, 51, 0.35);
2486 }
2487 .repo-header-live-badge--live .repo-header-live-dot {
2488 animation: pushWatchPulse 1.2s ease-in-out infinite;
2489 display: inline-block;
2490 }
2491 .repo-header-live-badge--recent {
2492 background: rgba(140, 109, 255, 0.08);
2493 color: var(--text-muted);
2494 border: 1px solid rgba(140, 109, 255, 0.22);
2495 }
2496 .repo-header-live-badge--recent:hover { color: var(--accent); }
2497 @media (prefers-reduced-motion: reduce) {
2498 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2499 }
2500
fc1817aClaude2501 .repo-nav {
2502 display: flex;
debcf27Claude2503 gap: 1px;
fc1817aClaude2504 border-bottom: 1px solid var(--border);
debcf27Claude2505 margin-bottom: 28px;
2ce1d0bClaude2506 overflow-x: auto;
2507 scrollbar-width: thin;
fc1817aClaude2508 }
2ce1d0bClaude2509 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2510 .repo-nav a {
debcf27Claude2511 position: relative;
2512 padding: 11px 14px;
fc1817aClaude2513 color: var(--text-muted);
2514 border-bottom: 2px solid transparent;
2ce1d0bClaude2515 font-size: var(--t-sm);
2516 font-weight: 500;
2517 margin-bottom: -1px;
debcf27Claude2518 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2519 white-space: nowrap;
2520 }
debcf27Claude2521 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2522 .repo-nav a.active {
debcf27Claude2523 color: var(--text-strong);
2524 font-weight: 600;
2525 }
2526 .repo-nav a.active::after {
2527 content: '';
2528 position: absolute;
2529 left: 14px;
2530 right: 14px;
2531 bottom: -1px;
2532 height: 2px;
2533 background: var(--accent-gradient);
2534 border-radius: 2px;
2535 }
2536 /* AI links in the right-side cluster — sparkle accent */
2537 .repo-nav-ai {
2538 color: var(--accent) !important;
2539 font-weight: 500;
2540 }
2541 .repo-nav-ai:hover {
2542 color: var(--accent-hover) !important;
2543 background: var(--accent-gradient-faint) !important;
2544 }
2545 .repo-nav-ai.active {
2546 color: var(--accent-hover) !important;
2ce1d0bClaude2547 font-weight: 600;
fc1817aClaude2548 }
2549
2ce1d0bClaude2550 .breadcrumb {
2551 display: flex;
debcf27Claude2552 gap: 6px;
2ce1d0bClaude2553 align-items: center;
debcf27Claude2554 margin-bottom: 18px;
2ce1d0bClaude2555 color: var(--text-muted);
2556 font-size: var(--t-sm);
2557 font-family: var(--font-mono);
debcf27Claude2558 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2559 }
2560 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2561 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2562 .breadcrumb strong {
2563 color: var(--text-strong);
2564 font-weight: 600;
fc1817aClaude2565 }
2566
debcf27Claude2567 /* Page header — eyebrow + title + optional actions row.
2568 Use on dashboard, settings, admin, any "section landing" page. */
2569 .page-header {
2570 display: flex;
2571 align-items: flex-end;
2572 justify-content: space-between;
2573 gap: 16px;
2574 margin-bottom: 28px;
2575 padding-bottom: 20px;
2576 border-bottom: 1px solid var(--border-subtle);
2577 flex-wrap: wrap;
2578 }
2579 .page-header-text { flex: 1; min-width: 280px; }
2580 .page-header .eyebrow { margin-bottom: var(--s-2); }
2581 .page-header h1 {
2582 font-family: var(--font-display);
2583 font-size: clamp(24px, 3vw, 36px);
2584 line-height: 1.1;
2585 letter-spacing: -0.028em;
2586 margin-bottom: 6px;
2587 }
2588 .page-header p {
2589 color: var(--text-muted);
2590 font-size: var(--t-sm);
2591 line-height: 1.55;
2592 max-width: 640px;
2593 }
2594 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2595
2ce1d0bClaude2596 /* ============================================================ */
2597 /* File browser table */
2598 /* ============================================================ */
2599 .file-table {
2600 width: 100%;
2601 border: 1px solid var(--border);
2602 border-radius: var(--r-md);
2603 overflow: hidden;
2604 background: var(--bg-elevated);
debcf27Claude2605 border-collapse: collapse;
2ce1d0bClaude2606 }
debcf27Claude2607 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2608 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2609 .file-table td {
2610 padding: 9px 16px;
2611 font-size: var(--t-sm);
2612 font-family: var(--font-mono);
2613 font-feature-settings: var(--mono-feat);
2614 }
2ce1d0bClaude2615 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2616 .file-icon {
2617 width: 22px;
2618 color: var(--text-faint);
2619 font-size: 13px;
2620 text-align: center;
2621 }
2622 .file-name a {
2623 color: var(--text);
2624 font-weight: 500;
2625 transition: color var(--t-fast) var(--ease);
2626 }
2627 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2628
2ce1d0bClaude2629 /* ============================================================ */
2630 /* Blob view */
2631 /* ============================================================ */
fc1817aClaude2632 .blob-view {
2633 border: 1px solid var(--border);
2ce1d0bClaude2634 border-radius: var(--r-md);
fc1817aClaude2635 overflow: hidden;
2ce1d0bClaude2636 background: var(--bg-elevated);
fc1817aClaude2637 }
2638 .blob-header {
2639 background: var(--bg-secondary);
2ce1d0bClaude2640 padding: 10px 16px;
fc1817aClaude2641 border-bottom: 1px solid var(--border);
2ce1d0bClaude2642 font-size: var(--t-sm);
fc1817aClaude2643 color: var(--text-muted);
06d5ffeClaude2644 display: flex;
2645 justify-content: space-between;
2646 align-items: center;
fc1817aClaude2647 }
2648 .blob-code {
2649 overflow-x: auto;
2650 font-family: var(--font-mono);
2ce1d0bClaude2651 font-size: var(--t-sm);
2652 line-height: 1.65;
fc1817aClaude2653 }
2654 .blob-code table { width: 100%; border-collapse: collapse; }
2655 .blob-code .line-num {
2656 width: 1%;
2ce1d0bClaude2657 min-width: 56px;
2658 padding: 0 14px;
fc1817aClaude2659 text-align: right;
2ce1d0bClaude2660 color: var(--text-faint);
fc1817aClaude2661 user-select: none;
2662 white-space: nowrap;
2663 border-right: 1px solid var(--border);
2664 }
2ce1d0bClaude2665 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2666 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2667
2ce1d0bClaude2668 /* ============================================================ */
2669 /* Commits + diffs */
2670 /* ============================================================ */
2671 .commit-list {
2672 border: 1px solid var(--border);
2673 border-radius: var(--r-md);
2674 overflow: hidden;
2675 background: var(--bg-elevated);
2676 }
fc1817aClaude2677 .commit-item {
2678 display: flex;
2679 justify-content: space-between;
2680 align-items: center;
debcf27Claude2681 padding: 14px 18px;
2682 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2683 transition: background var(--t-fast) var(--ease);
fc1817aClaude2684 }
2685 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2686 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2687 .commit-message {
2688 font-size: var(--t-sm);
2689 font-weight: 500;
2690 line-height: 1.45;
2691 color: var(--text-strong);
2692 letter-spacing: -0.005em;
2693 }
2694 .commit-meta {
2695 font-family: var(--font-mono);
2696 font-size: 11px;
2697 color: var(--text-muted);
2698 margin-top: 5px;
2699 letter-spacing: 0.01em;
2700 }
fc1817aClaude2701 .commit-sha {
2702 font-family: var(--font-mono);
debcf27Claude2703 font-feature-settings: var(--mono-feat);
2704 font-size: 11px;
2705 padding: 4px 9px;
fc1817aClaude2706 background: var(--bg-tertiary);
2707 border: 1px solid var(--border);
2ce1d0bClaude2708 border-radius: var(--r-sm);
debcf27Claude2709 color: var(--accent);
2710 font-weight: 600;
2711 letter-spacing: 0.02em;
2ce1d0bClaude2712 transition: all var(--t-fast) var(--ease);
fc1817aClaude2713 }
debcf27Claude2714 .commit-sha:hover {
2715 border-color: rgba(140,109,255,0.40);
2716 background: var(--accent-gradient-faint);
2717 color: var(--accent-hover);
2718 text-decoration: none;
fc1817aClaude2719 }
2720
2721 .diff-view { margin-top: 16px; }
2722 .diff-file {
2723 border: 1px solid var(--border);
2ce1d0bClaude2724 border-radius: var(--r-md);
fc1817aClaude2725 margin-bottom: 16px;
2726 overflow: hidden;
2ce1d0bClaude2727 background: var(--bg-elevated);
fc1817aClaude2728 }
2729 .diff-file-header {
2730 background: var(--bg-secondary);
2ce1d0bClaude2731 padding: 10px 16px;
fc1817aClaude2732 border-bottom: 1px solid var(--border);
2733 font-family: var(--font-mono);
2ce1d0bClaude2734 font-size: var(--t-sm);
2735 font-weight: 500;
fc1817aClaude2736 }
2737 .diff-content {
2738 overflow-x: auto;
2739 font-family: var(--font-mono);
2ce1d0bClaude2740 font-size: var(--t-sm);
2741 line-height: 1.65;
fc1817aClaude2742 }
958d26aClaude2743 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2744 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2745 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2746 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2747
2748 .stat-add { color: var(--green); font-weight: 600; }
2749 .stat-del { color: var(--red); font-weight: 600; }
2750
2ce1d0bClaude2751 /* ============================================================ */
2752 /* Empty state */
2753 /* ============================================================ */
fc1817aClaude2754 .empty-state {
2755 text-align: center;
958d26aClaude2756 padding: 96px 24px;
fc1817aClaude2757 color: var(--text-muted);
2ce1d0bClaude2758 border: 1px dashed var(--border);
2759 border-radius: var(--r-lg);
958d26aClaude2760 background:
2761 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2762 var(--bg-elevated);
2763 position: relative;
2764 overflow: hidden;
2765 }
2766 .empty-state::before {
2767 content: '';
2768 position: absolute;
2769 inset: 0;
2770 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2771 background-size: 24px 24px;
2772 opacity: 0.5;
2773 pointer-events: none;
2774 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2775 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2776 }
2777 :root[data-theme='light'] .empty-state::before {
2778 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2779 }
958d26aClaude2780 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2781 .empty-state h2 {
958d26aClaude2782 font-size: var(--t-xl);
2ce1d0bClaude2783 margin-bottom: 8px;
958d26aClaude2784 color: var(--text-strong);
2785 letter-spacing: -0.022em;
2ce1d0bClaude2786 }
958d26aClaude2787 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2788 .empty-state pre {
2789 text-align: left;
2790 display: inline-block;
2791 background: var(--bg-secondary);
958d26aClaude2792 padding: 18px 24px;
2793 border-radius: var(--r-md);
fc1817aClaude2794 border: 1px solid var(--border);
2795 font-family: var(--font-mono);
958d26aClaude2796 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2797 font-size: var(--t-sm);
958d26aClaude2798 margin-top: 24px;
fc1817aClaude2799 line-height: 1.8;
2ce1d0bClaude2800 color: var(--text);
958d26aClaude2801 box-shadow: var(--elev-1);
fc1817aClaude2802 }
2803
2ce1d0bClaude2804 /* ============================================================ */
2805 /* Badges */
2806 /* ============================================================ */
fc1817aClaude2807 .badge {
2ce1d0bClaude2808 display: inline-flex;
2809 align-items: center;
2810 gap: 4px;
2811 padding: 2px 9px;
2812 border-radius: var(--r-full);
2813 font-size: var(--t-xs);
fc1817aClaude2814 font-weight: 500;
2815 background: var(--bg-tertiary);
2816 border: 1px solid var(--border);
2817 color: var(--text-muted);
2ce1d0bClaude2818 line-height: 1.5;
fc1817aClaude2819 }
2820
2ce1d0bClaude2821 /* ============================================================ */
2822 /* Branch dropdown */
2823 /* ============================================================ */
fc1817aClaude2824 .branch-selector {
2825 display: inline-flex;
2826 align-items: center;
2ce1d0bClaude2827 gap: 6px;
2828 padding: 6px 12px;
2829 background: var(--bg-elevated);
fc1817aClaude2830 border: 1px solid var(--border);
2ce1d0bClaude2831 border-radius: var(--r-sm);
2832 font-size: var(--t-sm);
fc1817aClaude2833 color: var(--text);
2834 margin-bottom: 12px;
2ce1d0bClaude2835 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2836 }
2ce1d0bClaude2837 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2838
06d5ffeClaude2839 .branch-dropdown {
2840 position: relative;
2841 display: inline-block;
2842 margin-bottom: 12px;
2843 }
2844 .branch-dropdown-content {
2845 display: none;
2846 position: absolute;
2ce1d0bClaude2847 top: calc(100% + 4px);
06d5ffeClaude2848 left: 0;
2849 z-index: 10;
2ce1d0bClaude2850 min-width: 220px;
2851 background: var(--bg-elevated);
2852 border: 1px solid var(--border-strong);
2853 border-radius: var(--r-md);
2854 overflow: hidden;
2855 box-shadow: var(--elev-3);
06d5ffeClaude2856 }
2857 .branch-dropdown:hover .branch-dropdown-content,
2858 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2859 .branch-dropdown-content a {
2860 display: block;
2ce1d0bClaude2861 padding: 9px 14px;
2862 font-size: var(--t-sm);
06d5ffeClaude2863 color: var(--text);
2864 border-bottom: 1px solid var(--border);
2ce1d0bClaude2865 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2866 }
2867 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2868 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2869 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2870
2ce1d0bClaude2871 /* ============================================================ */
2872 /* Card grid */
2873 /* ============================================================ */
2874 .card-grid {
2875 display: grid;
2876 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2877 gap: 16px;
2878 }
fc1817aClaude2879 .card {
2880 border: 1px solid var(--border);
2ce1d0bClaude2881 border-radius: var(--r-md);
958d26aClaude2882 padding: 20px;
2ce1d0bClaude2883 background: var(--bg-elevated);
2884 transition:
958d26aClaude2885 border-color var(--t-base) var(--ease),
2886 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2887 box-shadow var(--t-base) var(--ease);
2888 position: relative;
2889 overflow: hidden;
958d26aClaude2890 isolation: isolate;
2891 }
2892 .card::before {
2893 content: '';
2894 position: absolute;
2895 inset: 0;
2896 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2897 opacity: 0;
2898 transition: opacity var(--t-base) var(--ease);
2899 pointer-events: none;
2900 z-index: -1;
2ce1d0bClaude2901 }
2902 .card:hover {
2903 border-color: var(--border-strong);
2904 box-shadow: var(--elev-2);
958d26aClaude2905 transform: translateY(-2px);
2ce1d0bClaude2906 }
958d26aClaude2907 .card:hover::before { opacity: 1; }
2908 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2909 .card h3 a { color: var(--text); font-weight: 600; }
2910 .card h3 a:hover { color: var(--text-link); }
2911 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2912 .card-meta {
2913 display: flex;
2914 gap: 14px;
2915 margin-top: 14px;
2916 padding-top: 14px;
2917 border-top: 1px solid var(--border);
2918 font-size: var(--t-xs);
2919 color: var(--text-muted);
2920 }
2921 .card-meta span { display: flex; align-items: center; gap: 5px; }
2922
2923 /* ============================================================ */
2924 /* Stat card / box */
2925 /* ============================================================ */
2926 .stat-card {
2927 background: var(--bg-elevated);
2928 border: 1px solid var(--border);
2929 border-radius: var(--r-md);
fc1817aClaude2930 padding: 16px;
2ce1d0bClaude2931 transition: border-color var(--t-fast) var(--ease);
2932 }
2933 .stat-card:hover { border-color: var(--border-strong); }
2934 .stat-label {
2935 font-size: var(--t-xs);
2936 color: var(--text-muted);
2937 text-transform: uppercase;
2938 letter-spacing: 0.06em;
2939 font-weight: 500;
2940 }
2941 .stat-value {
2942 font-size: var(--t-xl);
2943 font-weight: 700;
2944 margin-top: 4px;
2945 letter-spacing: -0.025em;
2946 color: var(--text);
2947 font-feature-settings: 'tnum';
fc1817aClaude2948 }
06d5ffeClaude2949
2ce1d0bClaude2950 /* ============================================================ */
2951 /* Star button */
2952 /* ============================================================ */
06d5ffeClaude2953 .star-btn {
2954 display: inline-flex;
2955 align-items: center;
2956 gap: 6px;
2ce1d0bClaude2957 padding: 5px 12px;
2958 background: var(--bg-elevated);
06d5ffeClaude2959 border: 1px solid var(--border);
2ce1d0bClaude2960 border-radius: var(--r-sm);
06d5ffeClaude2961 color: var(--text);
2ce1d0bClaude2962 font-size: var(--t-sm);
2963 font-weight: 500;
06d5ffeClaude2964 cursor: pointer;
2ce1d0bClaude2965 transition: all var(--t-fast) var(--ease);
2966 }
2967 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2968 .star-btn.starred {
2969 color: var(--yellow);
958d26aClaude2970 border-color: rgba(251,191,36,0.4);
2971 background: rgba(251,191,36,0.08);
06d5ffeClaude2972 }
2973
2ce1d0bClaude2974 /* ============================================================ */
2975 /* User profile */
2976 /* ============================================================ */
06d5ffeClaude2977 .user-profile {
2978 display: flex;
2979 gap: 32px;
2980 margin-bottom: 32px;
2ce1d0bClaude2981 padding: 24px;
2982 background: var(--bg-elevated);
2983 border: 1px solid var(--border);
2984 border-radius: var(--r-lg);
06d5ffeClaude2985 }
2986 .user-avatar {
2987 width: 96px;
2988 height: 96px;
2ce1d0bClaude2989 border-radius: var(--r-full);
2990 background: var(--accent-gradient-soft);
2991 border: 1px solid var(--border-strong);
06d5ffeClaude2992 display: flex;
2993 align-items: center;
2994 justify-content: center;
2ce1d0bClaude2995 font-size: 36px;
2996 font-weight: 600;
2997 color: var(--text);
06d5ffeClaude2998 flex-shrink: 0;
2ce1d0bClaude2999 letter-spacing: -0.02em;
06d5ffeClaude3000 }
2ce1d0bClaude3001 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
3002 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
3003 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude3004
2ce1d0bClaude3005 /* ============================================================ */
3006 /* New repo form */
3007 /* ============================================================ */
3008 .new-repo-form { max-width: 640px; }
3009 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
3010 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude3011 .visibility-option {
3012 flex: 1;
2ce1d0bClaude3013 padding: 16px;
06d5ffeClaude3014 border: 1px solid var(--border);
2ce1d0bClaude3015 border-radius: var(--r-md);
3016 background: var(--bg-elevated);
06d5ffeClaude3017 cursor: pointer;
2ce1d0bClaude3018 text-align: left;
3019 transition: all var(--t-fast) var(--ease);
3020 }
3021 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
3022 .visibility-option:has(input:checked) {
3023 border-color: var(--accent);
3024 background: var(--accent-gradient-faint);
3025 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude3026 }
3027 .visibility-option input { display: none; }
2ce1d0bClaude3028 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
3029 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude3030
2ce1d0bClaude3031 /* ============================================================ */
3032 /* Issues */
3033 /* ============================================================ */
3034 .issue-tabs { display: flex; gap: 4px; }
3035 .issue-tabs a {
3036 color: var(--text-muted);
3037 font-size: var(--t-sm);
3038 font-weight: 500;
3039 padding: 6px 12px;
3040 border-radius: var(--r-sm);
3041 transition: all var(--t-fast) var(--ease);
3042 }
3043 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
3044 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude3045
2ce1d0bClaude3046 .issue-list {
3047 border: 1px solid var(--border);
3048 border-radius: var(--r-md);
3049 overflow: hidden;
3050 background: var(--bg-elevated);
3051 }
79136bbClaude3052 .issue-item {
3053 display: flex;
2ce1d0bClaude3054 gap: 14px;
79136bbClaude3055 align-items: flex-start;
2ce1d0bClaude3056 padding: 14px 16px;
79136bbClaude3057 border-bottom: 1px solid var(--border);
2ce1d0bClaude3058 transition: background var(--t-fast) var(--ease);
79136bbClaude3059 }
3060 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude3061 .issue-item:hover { background: var(--bg-hover); }
3062 .issue-state-icon {
3063 font-size: 14px;
3064 padding-top: 2px;
3065 width: 18px;
3066 height: 18px;
3067 display: inline-flex;
3068 align-items: center;
3069 justify-content: center;
3070 border-radius: var(--r-full);
3071 flex-shrink: 0;
3072 }
79136bbClaude3073 .state-open { color: var(--green); }
958d26aClaude3074 .state-closed { color: #b69dff; }
2ce1d0bClaude3075 .issue-title {
debcf27Claude3076 font-family: var(--font-display);
3077 font-size: var(--t-md);
2ce1d0bClaude3078 font-weight: 600;
debcf27Claude3079 line-height: 1.35;
3080 letter-spacing: -0.012em;
3081 }
3082 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
3083 .issue-title a:hover { color: var(--accent); text-decoration: none; }
3084 .issue-meta {
3085 font-family: var(--font-mono);
3086 font-size: 11px;
3087 color: var(--text-muted);
3088 margin-top: 5px;
3089 letter-spacing: 0.01em;
2ce1d0bClaude3090 }
79136bbClaude3091
3092 .issue-badge {
3093 display: inline-flex;
3094 align-items: center;
2ce1d0bClaude3095 gap: 6px;
79136bbClaude3096 padding: 4px 12px;
2ce1d0bClaude3097 border-radius: var(--r-full);
3098 font-size: var(--t-sm);
79136bbClaude3099 font-weight: 500;
2ce1d0bClaude3100 line-height: 1.4;
79136bbClaude3101 }
958d26aClaude3102 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3103 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3104 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3105 .state-merged { color: var(--accent); }
958d26aClaude3106 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3107
2ce1d0bClaude3108 .issue-detail { max-width: 920px; }
79136bbClaude3109 .issue-comment-box {
3110 border: 1px solid var(--border);
2ce1d0bClaude3111 border-radius: var(--r-md);
79136bbClaude3112 margin-bottom: 16px;
3113 overflow: hidden;
2ce1d0bClaude3114 background: var(--bg-elevated);
79136bbClaude3115 }
3116 .comment-header {
3117 background: var(--bg-secondary);
2ce1d0bClaude3118 padding: 10px 16px;
79136bbClaude3119 border-bottom: 1px solid var(--border);
2ce1d0bClaude3120 font-size: var(--t-sm);
79136bbClaude3121 color: var(--text-muted);
3122 }
3123
2ce1d0bClaude3124 /* ============================================================ */
3125 /* Panel — flexible container used across many pages */
3126 /* ============================================================ */
3127 .panel {
3128 background: var(--bg-elevated);
3129 border: 1px solid var(--border);
3130 border-radius: var(--r-md);
3131 overflow: hidden;
3132 }
3133 .panel-item {
3134 display: flex;
3135 align-items: center;
3136 gap: 12px;
3137 padding: 12px 16px;
79136bbClaude3138 border-bottom: 1px solid var(--border);
2ce1d0bClaude3139 transition: background var(--t-fast) var(--ease);
3140 }
3141 .panel-item:last-child { border-bottom: none; }
3142 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3143
3144 /* ─── j/k keyboard list navigation ─── */
3145 .is-kbd-focus {
3146 outline: 2px solid rgba(140,109,255,0.6) !important;
3147 outline-offset: -2px;
3148 background: rgba(140,109,255,0.06) !important;
3149 border-radius: 4px;
3150 }
3151 .is-kbd-selected {
3152 outline: 2px solid rgba(52,211,153,0.6) !important;
3153 background: rgba(52,211,153,0.06) !important;
3154 }
2ce1d0bClaude3155 .panel-empty {
3156 padding: 24px;
3157 text-align: center;
79136bbClaude3158 color: var(--text-muted);
2ce1d0bClaude3159 font-size: var(--t-sm);
79136bbClaude3160 }
3161
2ce1d0bClaude3162 /* ============================================================ */
3163 /* Search */
3164 /* ============================================================ */
79136bbClaude3165 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3166
2ce1d0bClaude3167 /* ============================================================ */
3168 /* Timeline */
3169 /* ============================================================ */
3170 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3171 .timeline::before {
3172 content: '';
3173 position: absolute;
3174 left: 4px;
3175 top: 8px;
3176 bottom: 8px;
3177 width: 2px;
2ce1d0bClaude3178 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3179 }
2ce1d0bClaude3180 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3181 .timeline-dot {
3182 position: absolute;
2ce1d0bClaude3183 left: -28px;
3184 top: 8px;
3185 width: 12px;
3186 height: 12px;
3187 border-radius: var(--r-full);
3188 background: var(--accent-gradient);
16b325cClaude3189 border: 2px solid var(--bg);
2ce1d0bClaude3190 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3191 }
3192 .timeline-content {
2ce1d0bClaude3193 background: var(--bg-elevated);
16b325cClaude3194 border: 1px solid var(--border);
2ce1d0bClaude3195 border-radius: var(--r-md);
3196 padding: 14px 16px;
16b325cClaude3197 }
f1ab587Claude3198
2ce1d0bClaude3199 /* ============================================================ */
3200 /* Toggle switch */
3201 /* ============================================================ */
f1ab587Claude3202 .toggle-switch {
3203 position: relative;
3204 display: inline-block;
2ce1d0bClaude3205 width: 40px;
3206 height: 22px;
f1ab587Claude3207 flex-shrink: 0;
3208 margin-left: 16px;
3209 }
3210 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3211 .toggle-slider {
3212 position: absolute;
3213 cursor: pointer;
3214 top: 0; left: 0; right: 0; bottom: 0;
3215 background: var(--bg-tertiary);
3216 border: 1px solid var(--border);
2ce1d0bClaude3217 border-radius: var(--r-full);
3218 transition: all var(--t-base) var(--ease);
f1ab587Claude3219 }
3220 .toggle-slider::before {
3221 content: '';
3222 position: absolute;
2ce1d0bClaude3223 height: 16px;
3224 width: 16px;
f1ab587Claude3225 left: 2px;
3226 bottom: 2px;
3227 background: var(--text-muted);
2ce1d0bClaude3228 border-radius: var(--r-full);
3229 transition: all var(--t-base) var(--ease);
f1ab587Claude3230 }
3231 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3232 background: var(--accent-gradient);
3233 border-color: transparent;
958d26aClaude3234 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3235 }
3236 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3237 transform: translateX(18px);
f1ab587Claude3238 background: #fff;
3239 }
ef8d378Claude3240
3241 /* ============================================================
3242 * 2026 polish layer (purely additive — no layout changes).
3243 * Improves typography rendering, focus states, hover affordances,
3244 * and adds the gradient brand cue to primary buttons. Anything
3245 * that could alter dimensions stays in the rules above.
3246 * ============================================================ */
3247 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3248 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3249 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3250
3251 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3252 h1 { letter-spacing: -0.025em; }
3253
3254 /* Smoother colour transitions everywhere links live */
3255 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3256
3257 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3258 .btn {
3259 transition:
3260 background 120ms cubic-bezier(0.16,1,0.3,1),
3261 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3262 transform 120ms cubic-bezier(0.16,1,0.3,1),
3263 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3264 }
3265 .btn:active { transform: translateY(0.5px); }
3266 .btn:focus-visible {
3267 outline: none;
3268 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3269 }
3270 .btn-primary {
3271 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3272 border-color: transparent;
3273 box-shadow:
3274 inset 0 1px 0 rgba(255,255,255,0.15),
3275 0 1px 2px rgba(168,85,247,0.25);
3276 }
3277 .btn-primary:hover {
3278 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3279 filter: none;
3280 box-shadow:
3281 inset 0 1px 0 rgba(255,255,255,0.20),
3282 0 4px 12px rgba(168,85,247,0.30);
3283 }
3284
3285 /* Inputs: cleaner focus ring + hover */
3286 .form-group input:hover,
3287 .form-group textarea:hover,
3288 .form-group select:hover {
3289 border-color: rgba(255,255,255,0.14);
3290 }
3291 .form-group input:focus,
3292 .form-group textarea:focus,
3293 .form-group select:focus {
3294 border-color: rgba(168,85,247,0.55);
3295 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3296 }
3297 :root[data-theme='light'] .form-group input:hover,
3298 :root[data-theme='light'] .form-group textarea:hover,
3299 :root[data-theme='light'] .form-group select:hover {
3300 border-color: rgba(0,0,0,0.18);
3301 }
3302
3303 /* Cards: subtle hover lift */
3304 .card {
3305 transition:
3306 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3307 transform 160ms cubic-bezier(0.16,1,0.3,1),
3308 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3309 }
3310 .card:hover {
3311 border-color: rgba(255,255,255,0.18);
3312 transform: translateY(-1px);
3313 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3314 }
3315 :root[data-theme='light'] .card:hover {
3316 border-color: rgba(0,0,0,0.18);
3317 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3318 }
3319
3320 /* Issue / commit / panel rows: smoother hover */
3321 .issue-item, .commit-item {
3322 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3323 }
3324 .repo-nav a {
3325 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3326 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3327 }
3328 .nav-link {
3329 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3330 }
3331
3332 /* Auth card: subtle elevation so register/login feel premium */
3333 .auth-container {
3334 background: var(--bg-secondary);
3335 border: 1px solid var(--border);
3336 border-radius: var(--r-lg, 12px);
3337 padding: 32px;
3338 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3339 }
3340 :root[data-theme='light'] .auth-container {
3341 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3342 }
3343 .auth-container h2 { letter-spacing: -0.025em; }
3344
3345 /* Empty state: dashed border, generous padding */
3346 .empty-state {
3347 border: 1px dashed var(--border);
3348 border-radius: var(--r-lg, 12px);
3349 background: var(--bg);
3350 }
3351
3352 /* Badges + commit-sha: smoother transition */
3353 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3354
3355 /* Gradient text utility — matches landing's accent treatment */
3356 .gradient-text {
3357 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3358 -webkit-background-clip: text;
3359 background-clip: text;
3360 -webkit-text-fill-color: transparent;
3361 }
3362
3363 /* Custom scrollbars (subtle, themed) */
3364 ::-webkit-scrollbar { width: 10px; height: 10px; }
3365 ::-webkit-scrollbar-track { background: transparent; }
3366 ::-webkit-scrollbar-thumb {
3367 background: rgba(255,255,255,0.06);
3368 border: 2px solid var(--bg);
3369 border-radius: 9999px;
3370 }
3371 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3372 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3373 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3374
3375 /* Honour reduced-motion preference */
3376 @media (prefers-reduced-motion: reduce) {
3377 *, *::before, *::after {
3378 animation-duration: 0.01ms !important;
3379 animation-iteration-count: 1 !important;
3380 transition-duration: 0.01ms !important;
3381 }
3382 }
c63b860Claude3383
3384 /* Block O3 — visual coherence additive rules. */
3385 .card.card-p-none { padding: 0; }
3386 .card.card-p-sm { padding: var(--space-3); }
3387 .card.card-p-md { padding: var(--space-4); }
3388 .card.card-p-lg { padding: var(--space-6); }
3389 .card.card-elevated { box-shadow: var(--elev-2); }
3390 .card.card-gradient {
3391 background:
3392 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3393 var(--bg-elevated);
3394 }
3395 .card.card-gradient::before { opacity: 1; }
3396 .notice {
3397 padding: var(--space-3) var(--space-4);
3398 border-radius: var(--radius-md);
3399 border: 1px solid var(--border);
3400 background: var(--bg-elevated);
3401 color: var(--text);
3402 font-size: var(--font-size-sm);
3403 margin-bottom: var(--space-6);
3404 line-height: var(--leading-normal);
3405 }
3406 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3407 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3408 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3409 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3410 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3411 .email-preview {
3412 padding: var(--space-5);
3413 background: #fff;
3414 color: #111;
3415 border-radius: var(--radius-md);
3416 }
3417 .code-block {
3418 margin: var(--space-2) 0 0;
3419 padding: var(--space-3);
3420 background: var(--bg-tertiary);
3421 border: 1px solid var(--border-subtle);
3422 border-radius: var(--radius-sm);
3423 font-family: var(--font-mono);
3424 font-size: var(--font-size-xs);
3425 line-height: var(--leading-normal);
3426 overflow-x: auto;
3427 }
3428 .status-pill-operational {
3429 display: inline-flex;
3430 align-items: center;
3431 padding: var(--space-1) var(--space-3);
3432 border-radius: var(--radius-full);
3433 font-size: var(--font-size-xs);
3434 font-weight: 600;
3435 background: rgba(52,211,153,0.15);
3436 color: var(--green);
3437 }
3438 .api-tag {
3439 display: inline-flex;
3440 align-items: center;
3441 font-size: var(--font-size-xs);
3442 padding: 2px var(--space-2);
3443 border-radius: var(--radius-sm);
3444 font-family: var(--font-mono);
3445 }
3446 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3447 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3448 .stat-number {
3449 font-size: var(--font-size-xl);
3450 font-weight: 700;
3451 color: var(--text-strong);
3452 line-height: var(--leading-tight);
3453 }
3454 .stat-number-accent { color: var(--accent); }
3455 .stat-number-blue { color: var(--blue); }
3456 .stat-number-purple { color: var(--text-link); }
3457 footer .footer-tag-sub {
3458 margin-top: var(--space-2);
3459 font-size: var(--font-size-xs);
3460 color: var(--text-faint);
3461 line-height: var(--leading-normal);
3462 }
3463 footer .footer-version-pill {
3464 display: inline-flex;
3465 align-items: center;
3466 gap: var(--space-2);
3467 padding: var(--space-1) var(--space-3);
3468 border-radius: var(--radius-full);
3469 border: 1px solid var(--border);
3470 background: var(--bg-elevated);
3471 color: var(--text-faint);
3472 font-family: var(--font-mono);
3473 font-size: var(--font-size-xs);
3474 cursor: help;
3475 }
3476 footer .footer-banner {
3477 max-width: 1240px;
3478 margin: var(--space-6) auto 0;
3479 padding: var(--space-3) var(--space-4);
3480 border-radius: var(--radius-md);
3481 border: 1px solid var(--border);
3482 background: var(--bg-elevated);
3483 color: var(--text);
3484 font-family: var(--font-mono);
3485 font-size: var(--font-size-xs);
3486 letter-spacing: 0.04em;
3487 text-transform: uppercase;
3488 text-align: center;
3489 }
3490 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3491 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3492 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3493
cf9178bTest User3494 /* ============================================================ */
3495 /* Global toast notifications. */
3496 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3497 /* ============================================================ */
3498 .gx-toast {
3499 pointer-events: auto;
3500 display: inline-flex;
3501 align-items: flex-start;
3502 gap: 10px;
3503 min-width: 280px;
3504 max-width: min(440px, calc(100vw - 32px));
3505 padding: 12px 14px 12px 12px;
3506 background: var(--bg-elevated);
3507 border: 1px solid var(--border);
3508 border-radius: 10px;
3509 box-shadow:
3510 0 12px 36px -10px rgba(15,16,28,0.18),
3511 0 2px 6px rgba(15,16,28,0.04),
3512 0 0 0 1px rgba(15,16,28,0.02);
3513 color: var(--text);
3514 font-size: 13.5px;
3515 line-height: 1.45;
3516 opacity: 0;
3517 transform: translateX(16px);
3518 transition:
3519 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3520 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3521 }
3522 .gx-toast--in { opacity: 1; transform: translateX(0); }
3523 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3524 .gx-toast__icon {
3525 flex-shrink: 0;
3526 width: 20px; height: 20px;
3527 border-radius: 50%;
3528 display: inline-flex;
3529 align-items: center;
3530 justify-content: center;
3531 font-size: 12px;
3532 font-weight: 700;
3533 line-height: 1;
3534 margin-top: 1px;
3535 }
3536 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3537 .gx-toast__close {
3538 flex-shrink: 0;
3539 width: 22px; height: 22px;
3540 border: 0;
3541 background: transparent;
3542 color: var(--text-muted);
3543 font-size: 18px;
3544 line-height: 1;
3545 cursor: pointer;
3546 border-radius: 4px;
3547 padding: 0;
3548 margin: -2px -2px 0 0;
3549 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3550 }
3551 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3552 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3553 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3554 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3555 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3556 @media (prefers-reduced-motion: reduce) {
3557 .gx-toast { transition: opacity 60ms linear; transform: none; }
3558 .gx-toast--in, .gx-toast--out { transform: none; }
3559 }
3560
dc26881CC LABS App3561 /* ============================================================ */
3562 /* Block U4 — cross-document view transitions. */
3563 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3564 /* every same-origin navigation. Older browsers ignore these */
3565 /* rules entirely — no JS shim, no breakage. */
3566 /* prefers-reduced-motion disables the animation honourably. */
3567 /* ============================================================ */
3568 @view-transition {
3569 navigation: auto;
3570 }
3571 ::view-transition-old(root),
3572 ::view-transition-new(root) {
3573 animation-duration: 200ms;
3574 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3575 }
3576 ::view-transition-old(root) {
3577 animation-name: vt-fade-out;
3578 }
3579 ::view-transition-new(root) {
3580 animation-name: vt-fade-in;
3581 }
3582 @keyframes vt-fade-out {
3583 to { opacity: 0; }
3584 }
3585 @keyframes vt-fade-in {
3586 from { opacity: 0; }
3587 }
3588 @media (prefers-reduced-motion: reduce) {
3589 ::view-transition-old(root),
3590 ::view-transition-new(root) {
3591 animation-duration: 0s;
3592 }
3593 }
3594 /* The transition system picks up its root subject from this rule. */
3595 body {
3596 view-transition-name: root;
3597 }
fc1817aClaude3598`;