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.tsxBlame3601 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 )}
41a1450Claude165 <header class="site-header">
fc1817aClaude166 <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
41a1450Claude1493 /* Site nav header — sticky, blurred, hairline border. Scoped to
1494 .site-header: pages use semantic <header> elements for section/hero
1495 headings, and a bare element selector here turns every one of them
1496 into a 64px sticky bar (the /pricing hero-overlap bug). */
1497 .site-header {
2ce1d0bClaude1498 position: sticky;
1499 top: 0;
1500 z-index: 100;
fc1817aClaude1501 border-bottom: 1px solid var(--border);
2ce1d0bClaude1502 padding: 0 24px;
1503 height: var(--header-h);
958d26aClaude1504 background: rgba(8,9,15,0.72);
1505 backdrop-filter: saturate(180%) blur(18px);
1506 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1507 }
41a1450Claude1508 :root[data-theme='light'] .site-header { background: rgba(251,251,252,0.78); }
fc1817aClaude1509
41a1450Claude1510 .site-header nav {
06d5ffeClaude1511 display: flex;
1512 align-items: center;
958d26aClaude1513 gap: 18px;
eed4684Claude1514 max-width: 1920px;
06d5ffeClaude1515 margin: 0 auto;
2ce1d0bClaude1516 height: 100%;
1517 }
1518 .logo {
958d26aClaude1519 font-family: var(--font-display);
1520 font-size: 16px;
2ce1d0bClaude1521 font-weight: 700;
958d26aClaude1522 letter-spacing: -0.025em;
1523 color: var(--text-strong);
2ce1d0bClaude1524 display: inline-flex;
1525 align-items: center;
958d26aClaude1526 gap: 9px;
1527 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1528 }
2ce1d0bClaude1529 .logo::before {
1530 content: '';
958d26aClaude1531 width: 20px; height: 20px;
1532 border-radius: 6px;
2ce1d0bClaude1533 background: var(--accent-gradient);
958d26aClaude1534 box-shadow:
1535 inset 0 1px 0 rgba(255,255,255,0.25),
1536 0 0 0 1px rgba(140,109,255,0.45),
1537 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1538 flex-shrink: 0;
958d26aClaude1539 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1540 }
1541 .logo:hover { text-decoration: none; color: var(--text-strong); }
1542 .logo:hover::before {
1543 transform: rotate(8deg) scale(1.05);
1544 box-shadow:
1545 inset 0 1px 0 rgba(255,255,255,0.30),
1546 0 0 0 1px rgba(140,109,255,0.55),
1547 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1548 }
fc1817aClaude1549
2ce1d0bClaude1550 .nav-search {
1551 flex: 1;
958d26aClaude1552 max-width: 360px;
1553 margin: 0 4px 0 8px;
1554 position: relative;
2ce1d0bClaude1555 }
1556 .nav-search input {
1557 width: 100%;
958d26aClaude1558 padding: 7px 12px 7px 32px;
2ce1d0bClaude1559 background: var(--bg-tertiary);
1560 border: 1px solid var(--border);
1561 border-radius: var(--r-sm);
1562 color: var(--text);
1563 font-family: var(--font-sans);
1564 font-size: var(--t-sm);
958d26aClaude1565 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1566 }
1567 .nav-search::before {
1568 content: '';
1569 position: absolute;
1570 left: 11px; top: 50%;
1571 transform: translateY(-50%);
1572 width: 12px; height: 12px;
1573 border: 1.5px solid var(--text-faint);
1574 border-radius: 50%;
1575 pointer-events: none;
1576 }
1577 .nav-search::after {
1578 content: '';
1579 position: absolute;
1580 left: 19px; top: calc(50% + 4px);
1581 width: 5px; height: 1.5px;
1582 background: var(--text-faint);
1583 transform: rotate(45deg);
1584 pointer-events: none;
2ce1d0bClaude1585 }
1586 .nav-search input::placeholder { color: var(--text-faint); }
1587 .nav-search input:focus {
1588 outline: none;
1589 background: var(--bg-secondary);
958d26aClaude1590 border-color: var(--border-focus);
1591 box-shadow: var(--ring);
2ce1d0bClaude1592 }
06d5ffeClaude1593
958d26aClaude1594 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1595
1596 /* Block N3 — site-admin deploy status pill */
1597 .nav-deploy-pill {
1598 display: inline-flex;
1599 align-items: center;
1600 gap: 6px;
1601 padding: 4px 10px;
1602 margin: 0 6px 0 0;
1603 border-radius: 9999px;
1604 font-size: 11px;
1605 font-weight: 600;
1606 line-height: 1;
1607 color: var(--text-strong);
1608 background: var(--bg-elevated);
1609 border: 1px solid var(--border);
1610 text-decoration: none;
1611 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1612 }
1613 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1614 .nav-deploy-pill .deploy-pill-dot {
1615 display: inline-block;
1616 width: 8px; height: 8px;
1617 border-radius: 50%;
1618 background: #6b7280;
1619 }
1620 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1621 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1622 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1623 .deploy-pill-progress .deploy-pill-dot {
1624 background: #fbbf24;
1625 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1626 animation: deployPillPulse 1.2s ease-in-out infinite;
1627 }
1628 @keyframes deployPillPulse {
1629 0%, 100% { opacity: 1; transform: scale(1); }
1630 50% { opacity: 0.45; transform: scale(0.8); }
1631 }
1632 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1633
c6018a5Claude1634 /* ── AI dropdown (nav consolidation) ── */
1635 .nav-ai-dropdown {
1636 position: relative;
1637 display: inline-flex;
1638 align-items: center;
1639 }
1640 .nav-ai-trigger {
1641 background: transparent;
1642 border: 0;
1643 font: inherit;
1644 cursor: pointer;
1645 color: var(--text-muted);
1646 font-size: var(--t-sm);
1647 font-weight: 500;
1648 padding: 7px 11px;
1649 border-radius: var(--r-sm);
1650 line-height: 1.2;
1651 }
1652 .nav-ai-trigger:hover {
1653 color: var(--text-strong);
1654 background: var(--bg-hover);
1655 }
1656 .nav-ai-menu {
1657 position: absolute;
1658 top: calc(100% + 6px);
1659 right: 0;
1660 min-width: 220px;
1661 background: var(--bg-secondary);
1662 border: 1px solid var(--border-strong);
1663 border-radius: 10px;
1664 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1665 padding: 6px;
1666 display: none;
1667 z-index: var(--z-overlay, 100);
1668 }
1669 .nav-ai-dropdown:hover .nav-ai-menu,
1670 .nav-ai-dropdown.is-open .nav-ai-menu,
1671 .nav-ai-dropdown:focus-within .nav-ai-menu {
1672 display: block;
1673 }
1674 .nav-ai-item {
1675 display: flex;
1676 flex-direction: column;
1677 gap: 1px;
1678 padding: 8px 10px;
1679 border-radius: 6px;
1680 color: var(--text);
1681 text-decoration: none;
1682 transition: background var(--t-fast) var(--ease);
1683 }
1684 .nav-ai-item:hover {
1685 background: var(--bg-hover);
1686 text-decoration: none;
1687 color: var(--text-strong);
1688 }
1689 .nav-ai-item-label {
1690 font-size: var(--t-sm);
1691 font-weight: 600;
1692 color: var(--text-strong);
1693 }
1694 .nav-ai-item-sub {
1695 font-size: 11.5px;
1696 color: var(--text-muted);
1697 }
1698
2ce1d0bClaude1699 .nav-link {
958d26aClaude1700 position: relative;
2ce1d0bClaude1701 color: var(--text-muted);
1702 font-size: var(--t-sm);
1703 font-weight: 500;
958d26aClaude1704 padding: 7px 11px;
2ce1d0bClaude1705 border-radius: var(--r-sm);
958d26aClaude1706 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1707 }
1708 .nav-link:hover {
958d26aClaude1709 color: var(--text-strong);
2ce1d0bClaude1710 background: var(--bg-hover);
1711 text-decoration: none;
1712 }
958d26aClaude1713 .nav-link.active { color: var(--text-strong); }
1714 .nav-link.active::after {
1715 content: '';
1716 position: absolute;
1717 left: 11px; right: 11px;
1718 bottom: -1px;
1719 height: 2px;
1720 background: var(--accent-gradient);
1721 border-radius: 2px;
1722 }
adf5e18Claude1723 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1724 so it reads as an action affordance rather than a passive link. */
1725 .nav-migrate {
1726 color: var(--accent);
1727 font-weight: 600;
1728 border: 1px solid rgba(140,109,255,0.22);
1729 background: rgba(140,109,255,0.07);
1730 }
1731 .nav-migrate:hover {
1732 color: var(--accent-hover);
1733 background: rgba(140,109,255,0.13);
1734 border-color: rgba(140,109,255,0.40);
1735 }
1736 @media (max-width: 780px) { .nav-migrate { display: none; } }
1737
2ce1d0bClaude1738 .nav-user {
958d26aClaude1739 color: var(--text-strong);
2ce1d0bClaude1740 font-weight: 600;
1741 font-size: var(--t-sm);
1742 padding: 6px 10px;
1743 border-radius: var(--r-sm);
958d26aClaude1744 margin-left: 6px;
2ce1d0bClaude1745 transition: background var(--t-fast) var(--ease);
1746 }
958d26aClaude1747 .nav-user::before {
1748 content: '';
1749 display: inline-block;
1750 width: 8px; height: 8px;
1751 background: var(--green);
1752 border-radius: 50%;
1753 margin-right: 7px;
1754 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1755 vertical-align: 1px;
1756 }
2ce1d0bClaude1757 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1758
f5b9ef5Claude1759 /* ── Inbox bell button ── */
1760 .nav-inbox-btn {
1761 position: relative;
1762 display: inline-flex;
1763 align-items: center;
1764 justify-content: center;
1765 width: 34px;
1766 height: 34px;
1767 border-radius: var(--r-sm);
1768 color: var(--text-muted);
1769 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1770 flex-shrink: 0;
1771 }
1772 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1773 .nav-inbox-badge {
1774 position: absolute;
1775 top: 3px; right: 3px;
1776 min-width: 15px; height: 15px;
1777 padding: 0 4px;
1778 font-size: 9.5px;
1779 font-weight: 700;
1780 line-height: 15px;
1781 color: #fff;
1782 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1783 border-radius: 9999px;
1784 text-align: center;
1785 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1786 font-variant-numeric: tabular-nums;
1787 }
1788
1789 /* ── User dropdown ── */
1790 .nav-user-dropdown { position: relative; }
1791 .nav-user-trigger {
1792 display: inline-flex;
1793 align-items: center;
1794 gap: 7px;
1795 padding: 5px 9px 5px 5px;
1796 border-radius: var(--r-sm);
1797 border: 1px solid transparent;
1798 background: transparent;
1799 color: var(--text);
1800 font-family: var(--font-sans);
1801 font-size: var(--t-sm);
1802 font-weight: 500;
1803 cursor: pointer;
1804 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1805 }
1806 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1807 .nav-user-avatar {
1808 width: 24px; height: 24px;
1809 border-radius: 50%;
1810 background: var(--accent-gradient);
1811 color: #fff;
1812 font-size: 11px;
1813 font-weight: 700;
1814 display: inline-flex;
1815 align-items: center;
1816 justify-content: center;
1817 flex-shrink: 0;
1818 box-shadow: 0 0 0 2px var(--border);
1819 }
1820 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1821 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1822 .nav-user-menu {
1823 display: none;
1824 position: absolute;
1825 top: calc(100% + 6px);
1826 right: 0;
1827 min-width: 220px;
1828 background: var(--bg-elevated);
1829 border: 1px solid var(--border-strong);
1830 border-radius: var(--r-lg);
1831 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1832 padding: 6px;
1833 z-index: 200;
1834 animation: navMenuIn 140ms var(--ease) both;
1835 }
1836 .nav-user-menu.is-open { display: block; }
1837 .nav-user-menu-header {
1838 padding: 8px 10px 10px;
1839 display: flex;
1840 flex-direction: column;
1841 gap: 2px;
1842 }
1843 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1844 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1845 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1846 .nav-user-item {
1847 display: block;
1848 padding: 7px 10px;
1849 border-radius: 6px;
1850 font-size: var(--t-sm);
1851 color: var(--text);
1852 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1853 white-space: nowrap;
1854 }
1855 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1856 .nav-user-item--danger { color: var(--red); }
1857 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1858
1859 @keyframes navMenuIn {
1860 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1861 to { opacity: 1; transform: translateY(0) scale(1); }
1862 }
1863
2ce1d0bClaude1864 main {
eed4684Claude1865 max-width: 1920px;
2ce1d0bClaude1866 margin: 0 auto;
958d26aClaude1867 padding: 36px 24px 80px;
2ce1d0bClaude1868 flex: 1;
1869 width: 100%;
ed6e438Claude1870 /* 2026 polish — subtle entrance animation on every page load.
1871 Content fades up 4px over 360ms, giving the site that "alive"
1872 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1873 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1874 }
1875 @keyframes gxMainEnter {
1876 from { opacity: 0; transform: translateY(4px); }
1877 to { opacity: 1; transform: translateY(0); }
1878 }
1879 @media (prefers-reduced-motion: reduce) {
1880 main { animation: none; }
1881 }
1882 /* 2026 polish — accent focus ring across all focusable elements.
1883 The default browser ring is utilitarian; this is the same width
1884 but tinted to the brand accent so keyboard navigation feels
1885 intentional, not jarring. :focus-visible only — mouse users
1886 never see it. */
1887 :focus-visible {
1888 outline: none;
1889 }
1890 a:focus-visible,
1891 button:focus-visible,
1892 input:focus-visible,
1893 select:focus-visible,
1894 textarea:focus-visible,
1895 [tabindex]:focus-visible {
1896 outline: 2px solid rgba(140, 109, 255, 0.55);
1897 outline-offset: 2px;
1898 border-radius: 4px;
2ce1d0bClaude1899 }
fc1817aClaude1900
958d26aClaude1901 /* Editorial footer: link grid + tagline row */
fc1817aClaude1902 footer {
1903 border-top: 1px solid var(--border);
958d26aClaude1904 padding: 56px 24px 40px;
fc1817aClaude1905 color: var(--text-muted);
958d26aClaude1906 font-size: var(--t-sm);
1907 background:
1908 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1909 var(--bg);
1910 }
1911 footer .footer-inner {
eed4684Claude1912 max-width: 1920px;
958d26aClaude1913 margin: 0 auto;
1914 display: grid;
1915 grid-template-columns: 1fr auto;
1916 gap: 48px;
1917 align-items: start;
1918 }
1919 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1920 footer .footer-tag {
1921 color: var(--text-muted);
1922 font-size: var(--t-sm);
1923 max-width: 320px;
1924 line-height: 1.55;
1925 }
1926 footer .footer-links {
1927 display: grid;
1928 grid-template-columns: repeat(3, minmax(120px, auto));
1929 gap: 0 56px;
1930 }
1931 footer .footer-col-title {
1932 font-family: var(--font-mono);
1933 font-size: 11px;
1934 text-transform: uppercase;
1935 letter-spacing: 0.14em;
1936 color: var(--text-faint);
1937 margin-bottom: var(--s-3);
1938 }
1939 footer .footer-col a {
1940 display: block;
1941 color: var(--text-muted);
1942 font-size: var(--t-sm);
1943 padding: 5px 0;
1944 transition: color var(--t-fast) var(--ease);
1945 }
1946 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1947 footer .footer-bottom {
eed4684Claude1948 max-width: 1920px;
958d26aClaude1949 margin: 40px auto 0;
1950 padding-top: 24px;
1951 border-top: 1px solid var(--border-subtle);
1952 display: flex;
1953 justify-content: space-between;
1954 align-items: center;
2ce1d0bClaude1955 color: var(--text-faint);
1956 font-size: var(--t-xs);
958d26aClaude1957 font-family: var(--font-mono);
1958 letter-spacing: 0.02em;
1959 }
1960 footer .footer-bottom a { color: var(--text-faint); }
1961 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1962 footer .footer-build {
1963 display: inline-flex;
1964 align-items: center;
1965 gap: 6px;
1966 color: var(--text-faint);
1967 font-family: var(--font-mono);
1968 font-size: 11px;
1969 cursor: help;
1970 }
1971 footer .footer-build-dot {
1972 width: 6px; height: 6px;
1973 border-radius: 50%;
1974 background: var(--green);
1975 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1976 animation: footer-build-pulse 2.4s ease-in-out infinite;
1977 }
1978 @keyframes footer-build-pulse {
1979 0%, 100% { opacity: 0.6; }
1980 50% { opacity: 1; }
1981 }
958d26aClaude1982 @media (max-width: 768px) {
1983 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1984 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1985 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1986 }
1987
2ce1d0bClaude1988 /* ============================================================ */
1989 /* Buttons */
1990 /* ============================================================ */
dc26881CC LABS App1991 /* ============================================================ */
1992 /* Buttons — Block U2 senior polish pass. */
1993 /* Rules: */
1994 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1995 /* · active presses back down to 0 (80ms — faster on press) */
1996 /* · focus-visible uses a soft box-shadow ring (no outline) */
1997 /* · primary gradient shifts position on hover for a slow */
1998 /* 600ms shimmer */
1999 /* · disabled never lifts and never animates */
2000 /* ============================================================ */
06d5ffeClaude2001 .btn {
2002 display: inline-flex;
2003 align-items: center;
2ce1d0bClaude2004 justify-content: center;
958d26aClaude2005 gap: 7px;
2ce1d0bClaude2006 padding: 7px 14px;
2007 border-radius: var(--r-sm);
958d26aClaude2008 font-family: var(--font-sans);
2ce1d0bClaude2009 font-size: var(--t-sm);
06d5ffeClaude2010 font-weight: 500;
2011 border: 1px solid var(--border);
2ce1d0bClaude2012 background: var(--bg-elevated);
06d5ffeClaude2013 color: var(--text);
2014 cursor: pointer;
2015 text-decoration: none;
958d26aClaude2016 line-height: 1.25;
2017 letter-spacing: -0.008em;
dc26881CC LABS App2018 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
2019 Listed once on the base rule so :active can override only the
2020 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude2021 transition:
dc26881CC LABS App2022 background 180ms ease,
2023 border-color 180ms ease,
2024 transform 180ms ease,
2025 box-shadow 180ms ease,
2026 color 180ms ease;
2ce1d0bClaude2027 user-select: none;
2028 white-space: nowrap;
958d26aClaude2029 position: relative;
06d5ffeClaude2030 }
2ce1d0bClaude2031 .btn:hover {
2032 background: var(--bg-surface);
2033 border-color: var(--border-strong);
958d26aClaude2034 color: var(--text-strong);
2ce1d0bClaude2035 text-decoration: none;
dc26881CC LABS App2036 /* U2 — universal hover lift + soft accent drop shadow. */
2037 transform: translateY(-1px);
2038 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
2039 }
2040 .btn:active {
2041 transform: translateY(0);
2042 transition-duration: 80ms;
2043 }
2044 /* U2 — soft modern focus ring via box-shadow, not outline. */
2045 .btn:focus-visible {
2046 outline: none;
2047 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude2048 }
2049
2050 .btn-primary {
2051 background: var(--accent-gradient);
dc26881CC LABS App2052 background-size: 200% 100%;
2053 background-position: 0% 50%;
2ce1d0bClaude2054 border-color: transparent;
2055 color: #fff;
2056 font-weight: 600;
958d26aClaude2057 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude2058 box-shadow:
958d26aClaude2059 inset 0 1px 0 rgba(255,255,255,0.22),
2060 inset 0 -1px 0 rgba(0,0,0,0.10),
2061 0 1px 2px rgba(0,0,0,0.40),
2062 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App2063 /* U2 — slower 600ms transition on background-position so the
2064 primary CTA shimmers when the cursor lands. */
2065 transition:
2066 background-position 600ms ease,
2067 transform 180ms ease,
2068 box-shadow 180ms ease,
2069 color 180ms ease;
06d5ffeClaude2070 }
958d26aClaude2071 .btn-primary::before {
2072 content: '';
2073 position: absolute;
2074 inset: 0;
2075 border-radius: inherit;
2076 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
2077 opacity: 0;
2078 transition: opacity var(--t-fast) var(--ease);
2079 pointer-events: none;
2ce1d0bClaude2080 }
2081 .btn-primary:hover {
958d26aClaude2082 color: #fff;
2ce1d0bClaude2083 background: var(--accent-gradient);
dc26881CC LABS App2084 background-size: 200% 100%;
2085 background-position: 100% 50%;
958d26aClaude2086 border-color: transparent;
dc26881CC LABS App2087 transform: translateY(-1px);
2ce1d0bClaude2088 box-shadow:
958d26aClaude2089 inset 0 1px 0 rgba(255,255,255,0.30),
2090 inset 0 -1px 0 rgba(0,0,0,0.10),
2091 0 6px 18px -4px rgba(140,109,255,0.45),
2092 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude2093 }
958d26aClaude2094 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App2095 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2096 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2097 .btn-primary:focus-visible {
2098 box-shadow:
2099 inset 0 1px 0 rgba(255,255,255,0.22),
2100 0 0 0 3px rgba(140,109,255,0.35);
2101 }
2ce1d0bClaude2102
2103 .btn-danger {
2104 background: transparent;
958d26aClaude2105 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2106 color: var(--red);
2107 }
2108 .btn-danger:hover {
958d26aClaude2109 background: rgba(248,113,113,0.08);
2ce1d0bClaude2110 border-color: var(--red);
958d26aClaude2111 color: var(--red);
dc26881CC LABS App2112 transform: translateY(-1px);
2113 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2114 }
dc26881CC LABS App2115 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2116
2117 .btn-ghost {
2118 background: transparent;
2119 border-color: transparent;
2120 color: var(--text-muted);
2121 }
2122 .btn-ghost:hover {
2123 background: var(--bg-hover);
958d26aClaude2124 color: var(--text-strong);
2ce1d0bClaude2125 border-color: var(--border);
dc26881CC LABS App2126 transform: translateY(-1px);
2127 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2128 }
2129
958d26aClaude2130 .btn-secondary {
2131 background: var(--bg-elevated);
2132 border-color: var(--border-strong);
2133 color: var(--text-strong);
2134 }
2135 .btn-secondary:hover {
2136 background: var(--bg-surface);
2137 border-color: var(--border-strong);
dc26881CC LABS App2138 transform: translateY(-1px);
2139 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2140 }
2141
2142 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2143 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2144 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2145 .btn-block { width: 100%; }
2ce1d0bClaude2146
dc26881CC LABS App2147 /* U2 — disabled never lifts, never shimmers, never glows. */
2148 .btn:disabled,
2149 .btn[aria-disabled='true'],
2150 .btn:disabled:hover,
2151 .btn[aria-disabled='true']:hover {
2152 opacity: 0.5;
2ce1d0bClaude2153 cursor: not-allowed;
2154 pointer-events: none;
dc26881CC LABS App2155 transform: none;
2156 box-shadow: none;
2157 }
2158 @media (prefers-reduced-motion: reduce) {
2159 .btn,
2160 .btn:hover,
2161 .btn:active,
2162 .btn-primary,
2163 .btn-primary:hover {
2164 transform: none;
2165 transition: background-color 80ms linear, color 80ms linear;
2166 }
2ce1d0bClaude2167 }
2168
2169 /* ============================================================ */
2170 /* Forms */
2171 /* ============================================================ */
2172 .form-group { margin-bottom: 20px; }
2173 .form-group label {
2174 display: block;
2175 font-size: var(--t-sm);
2176 font-weight: 500;
2177 margin-bottom: 6px;
2178 color: var(--text);
2179 letter-spacing: -0.005em;
2180 }
2181 .form-group input,
2182 .form-group textarea,
2183 .form-group select,
2184 input[type='text'], input[type='email'], input[type='password'],
2185 input[type='url'], input[type='search'], input[type='number'],
2186 textarea, select {
06d5ffeClaude2187 width: 100%;
2ce1d0bClaude2188 padding: 9px 12px;
2189 background: var(--bg-secondary);
06d5ffeClaude2190 border: 1px solid var(--border);
2ce1d0bClaude2191 border-radius: var(--r-sm);
06d5ffeClaude2192 color: var(--text);
2ce1d0bClaude2193 font-size: var(--t-sm);
06d5ffeClaude2194 font-family: var(--font-sans);
2ce1d0bClaude2195 transition:
2196 border-color var(--t-fast) var(--ease),
2197 background var(--t-fast) var(--ease),
2198 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2199 }
2ce1d0bClaude2200 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2201 color: var(--text-faint);
06d5ffeClaude2202 }
2ce1d0bClaude2203 .form-group input:hover, textarea:hover, select:hover,
2204 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2205 border-color: var(--border-strong);
2206 }
2207 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2208 input:focus, textarea:focus, select:focus {
06d5ffeClaude2209 outline: none;
2ce1d0bClaude2210 background: var(--bg);
2211 border-color: var(--border-focus);
2212 box-shadow: var(--ring);
06d5ffeClaude2213 }
2ce1d0bClaude2214 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2215 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2216
2ce1d0bClaude2217 /* ============================================================ */
2218 /* Auth (register / login / verify) */
2219 /* ============================================================ */
2220 .auth-container {
98f45b4Claude2221 /* 2026 polish — wider, more generous, with a subtle accent-glow
2222 border and gradient top-edge so it reads as a premium product
2223 gateway, not a stock form. The 480px width feels intentional
2224 (not cramped, not endless). */
2225 max-width: 480px;
2226 margin: 72px auto;
2227 padding: 40px 40px 36px;
2ce1d0bClaude2228 background: var(--bg-elevated);
2229 border: 1px solid var(--border);
98f45b4Claude2230 border-radius: 16px;
2231 box-shadow:
2232 var(--elev-2),
2233 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2234 position: relative;
2235 overflow: hidden;
2236 }
2237 .auth-container::before {
2238 /* Hairline gradient accent on the top edge — signals 'AI-native'
2239 without shouting. Pointer-events disabled so it never interferes
2240 with form interactions. */
2241 content: '';
2242 position: absolute;
2243 top: 0;
2244 left: 0;
2245 right: 0;
2246 height: 2px;
2247 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2248 opacity: 0.7;
2249 pointer-events: none;
2ce1d0bClaude2250 }
2251 .auth-container h2 {
98f45b4Claude2252 margin: 0 0 8px;
2253 font-size: 28px;
2254 font-weight: 700;
2255 font-family: var(--font-display);
2256 letter-spacing: -0.025em;
2257 color: var(--text-strong);
2258 line-height: 1.15;
2259 }
2260 .auth-container .auth-subtitle {
2261 color: var(--text-muted);
2262 font-size: 14.5px;
2263 line-height: 1.5;
2264 margin: 0 0 24px;
2ce1d0bClaude2265 }
2266 .auth-container > p {
2267 color: var(--text-muted);
2268 font-size: var(--t-sm);
2269 margin-bottom: 24px;
2270 }
98f45b4Claude2271 .auth-container .btn-primary {
2272 width: 100%;
2273 padding: 12px 16px;
2274 font-size: 15px;
2275 font-weight: 600;
2276 margin-top: 4px;
2277 }
582cdacClaude2278
2279 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2280 with a brand-coloured logo on the left and a label centred-trailing.
2281 Hover lifts 1px with a subtle shadow — matches the rest of the
2282 button system but reads as a brand-affiliated action, not a brand-
2283 coloured primary CTA. */
2284 .auth-container .oauth-btn {
2285 display: flex;
2286 align-items: center;
2287 justify-content: center;
2288 gap: 10px;
2289 width: 100%;
2290 padding: 11px 16px;
2291 background: var(--bg-surface, var(--bg-elevated));
2292 border: 1px solid var(--border);
2293 border-radius: var(--r-md, 8px);
2294 color: var(--text-strong);
2295 font-family: var(--font-sans);
2296 font-size: 14.5px;
2297 font-weight: 500;
2298 text-decoration: none;
2299 transition:
2300 transform var(--t-base, 180ms) var(--ease, ease),
2301 box-shadow var(--t-base, 180ms) var(--ease, ease),
2302 background var(--t-fast, 120ms) var(--ease, ease),
2303 border-color var(--t-fast, 120ms) var(--ease, ease);
2304 }
2305 .auth-container .oauth-btn:hover {
2306 transform: translateY(-1px);
2307 background: var(--bg-hover);
2308 border-color: var(--text-muted);
2309 color: var(--text-strong);
2310 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2311 text-decoration: none;
2312 }
2313 .auth-container .oauth-btn:focus-visible {
2314 outline: 2px solid rgba(140, 109, 255, 0.55);
2315 outline-offset: 2px;
2316 }
2317 .auth-container .oauth-btn .oauth-icon {
2318 flex-shrink: 0;
2319 }
2320 /* GitHub icon adopts the text colour so it reads in both themes. */
2321 .auth-container .oauth-github .oauth-icon {
2322 color: var(--text-strong);
2323 }
2324 /* Google logo uses the official 4-colour treatment via inline SVG fill
2325 attributes — nothing to override here. */
2326 /* "or" divider between the password form and provider buttons */
2327 .auth-container .auth-divider {
2328 display: flex;
2329 align-items: center;
2330 gap: 12px;
2331 margin: 20px 0 12px;
2332 color: var(--text-faint);
2333 font-size: 12px;
2334 letter-spacing: 0.08em;
2335 text-transform: uppercase;
2336 }
2337 .auth-container .auth-divider::before,
2338 .auth-container .auth-divider::after {
2339 content: '';
2340 flex: 1;
2341 height: 1px;
2342 background: var(--border);
2343 }
06d5ffeClaude2344 .auth-error {
958d26aClaude2345 background: rgba(248,113,113,0.08);
2346 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2347 color: var(--red);
2ce1d0bClaude2348 padding: 10px 14px;
2349 border-radius: var(--r-sm);
06d5ffeClaude2350 margin-bottom: 16px;
2ce1d0bClaude2351 font-size: var(--t-sm);
06d5ffeClaude2352 }
2353 .auth-success {
958d26aClaude2354 background: rgba(52,211,153,0.08);
2355 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2356 color: var(--green);
2ce1d0bClaude2357 padding: 10px 14px;
2358 border-radius: var(--r-sm);
06d5ffeClaude2359 margin-bottom: 16px;
2ce1d0bClaude2360 font-size: var(--t-sm);
2361 }
2362 .auth-switch {
2363 margin-top: 20px;
2364 font-size: var(--t-sm);
2365 color: var(--text-muted);
2366 text-align: center;
2367 }
2368 .banner {
2369 background: var(--accent-gradient-faint);
958d26aClaude2370 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2371 color: var(--text);
2372 padding: 10px 14px;
2373 border-radius: var(--r-sm);
2374 font-size: var(--t-sm);
06d5ffeClaude2375 }
2376
2ce1d0bClaude2377 /* ============================================================ */
2378 /* Settings */
2379 /* ============================================================ */
2380 .settings-container { max-width: 720px; }
2381 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2382 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2383 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2384 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2385 .ssh-keys-list { margin-bottom: 24px; }
2386 .ssh-key-item {
2387 display: flex;
2388 justify-content: space-between;
2389 align-items: center;
2ce1d0bClaude2390 padding: 14px 16px;
06d5ffeClaude2391 border: 1px solid var(--border);
2ce1d0bClaude2392 border-radius: var(--r-md);
06d5ffeClaude2393 margin-bottom: 8px;
2ce1d0bClaude2394 background: var(--bg-elevated);
2395 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2396 }
2ce1d0bClaude2397 .ssh-key-item:hover { border-color: var(--border-strong); }
2398 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2399 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2400
2ce1d0bClaude2401 /* ============================================================ */
2402 /* Repo header + nav */
2403 /* ============================================================ */
fc1817aClaude2404 .repo-header {
2405 display: flex;
2406 align-items: center;
debcf27Claude2407 gap: 12px;
2408 margin-bottom: 22px;
2409 }
2410 .repo-header-title {
2411 display: flex;
2412 align-items: center;
2413 gap: 10px;
2414 font-family: var(--font-display);
2415 font-size: 24px;
2416 letter-spacing: -0.025em;
2417 flex-wrap: wrap;
2418 }
2419 .repo-header .owner {
2420 color: var(--text-muted);
2421 font-weight: 500;
2422 transition: color var(--t-fast) var(--ease);
2423 }
2424 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2425 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2426 .repo-header .name {
2427 color: var(--text-strong);
2428 font-weight: 700;
2429 letter-spacing: -0.028em;
fc1817aClaude2430 }
2ce1d0bClaude2431 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2432 .repo-header-fork {
2433 font-family: var(--font-mono);
2434 font-size: 11px;
2435 color: var(--text-muted);
2436 margin-top: 4px;
2437 letter-spacing: 0.01em;
2438 }
2439 .repo-header-fork a { color: var(--text-muted); }
2440 .repo-header-fork a:hover { color: var(--accent); }
2441 .repo-header-pill {
2442 display: inline-flex;
2443 align-items: center;
2444 padding: 2px 10px;
2445 border-radius: var(--r-full);
2446 font-family: var(--font-mono);
2447 font-size: 10px;
2448 font-weight: 600;
2449 letter-spacing: 0.12em;
2450 text-transform: uppercase;
2451 line-height: 1.6;
2452 vertical-align: 4px;
2453 }
2454 .repo-header-pill-archived {
2455 background: rgba(251,191,36,0.10);
2456 color: var(--yellow);
2457 border: 1px solid rgba(251,191,36,0.30);
2458 }
2459 .repo-header-pill-template {
2460 background: var(--accent-gradient-faint);
2461 color: var(--accent);
2462 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2463 }
06d5ffeClaude2464 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2465
8c790e0Claude2466 /* Push Watch discoverability — live/recent indicator in the repo header */
2467 @keyframes pushWatchPulse {
2468 0%, 100% { opacity: 1; }
2469 50% { opacity: 0.3; }
2470 }
2471 .repo-header-live-badge {
2472 display: inline-flex;
2473 align-items: center;
2474 gap: 5px;
2475 padding: 2px 9px;
2476 border-radius: 999px;
2477 font-size: 12px;
2478 font-weight: 600;
2479 letter-spacing: 0.02em;
2480 text-decoration: none !important;
2481 vertical-align: 3px;
2482 transition: filter 140ms ease, opacity 140ms ease;
2483 }
2484 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2485 .repo-header-live-badge--live {
2486 background: rgba(218, 54, 51, 0.12);
2487 color: #f97171;
2488 border: 1px solid rgba(218, 54, 51, 0.35);
2489 }
2490 .repo-header-live-badge--live .repo-header-live-dot {
2491 animation: pushWatchPulse 1.2s ease-in-out infinite;
2492 display: inline-block;
2493 }
2494 .repo-header-live-badge--recent {
2495 background: rgba(140, 109, 255, 0.08);
2496 color: var(--text-muted);
2497 border: 1px solid rgba(140, 109, 255, 0.22);
2498 }
2499 .repo-header-live-badge--recent:hover { color: var(--accent); }
2500 @media (prefers-reduced-motion: reduce) {
2501 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2502 }
2503
fc1817aClaude2504 .repo-nav {
2505 display: flex;
debcf27Claude2506 gap: 1px;
fc1817aClaude2507 border-bottom: 1px solid var(--border);
debcf27Claude2508 margin-bottom: 28px;
2ce1d0bClaude2509 overflow-x: auto;
2510 scrollbar-width: thin;
fc1817aClaude2511 }
2ce1d0bClaude2512 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2513 .repo-nav a {
debcf27Claude2514 position: relative;
2515 padding: 11px 14px;
fc1817aClaude2516 color: var(--text-muted);
2517 border-bottom: 2px solid transparent;
2ce1d0bClaude2518 font-size: var(--t-sm);
2519 font-weight: 500;
2520 margin-bottom: -1px;
debcf27Claude2521 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2522 white-space: nowrap;
2523 }
debcf27Claude2524 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2525 .repo-nav a.active {
debcf27Claude2526 color: var(--text-strong);
2527 font-weight: 600;
2528 }
2529 .repo-nav a.active::after {
2530 content: '';
2531 position: absolute;
2532 left: 14px;
2533 right: 14px;
2534 bottom: -1px;
2535 height: 2px;
2536 background: var(--accent-gradient);
2537 border-radius: 2px;
2538 }
2539 /* AI links in the right-side cluster — sparkle accent */
2540 .repo-nav-ai {
2541 color: var(--accent) !important;
2542 font-weight: 500;
2543 }
2544 .repo-nav-ai:hover {
2545 color: var(--accent-hover) !important;
2546 background: var(--accent-gradient-faint) !important;
2547 }
2548 .repo-nav-ai.active {
2549 color: var(--accent-hover) !important;
2ce1d0bClaude2550 font-weight: 600;
fc1817aClaude2551 }
2552
2ce1d0bClaude2553 .breadcrumb {
2554 display: flex;
debcf27Claude2555 gap: 6px;
2ce1d0bClaude2556 align-items: center;
debcf27Claude2557 margin-bottom: 18px;
2ce1d0bClaude2558 color: var(--text-muted);
2559 font-size: var(--t-sm);
2560 font-family: var(--font-mono);
debcf27Claude2561 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2562 }
2563 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2564 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2565 .breadcrumb strong {
2566 color: var(--text-strong);
2567 font-weight: 600;
fc1817aClaude2568 }
2569
debcf27Claude2570 /* Page header — eyebrow + title + optional actions row.
2571 Use on dashboard, settings, admin, any "section landing" page. */
2572 .page-header {
2573 display: flex;
2574 align-items: flex-end;
2575 justify-content: space-between;
2576 gap: 16px;
2577 margin-bottom: 28px;
2578 padding-bottom: 20px;
2579 border-bottom: 1px solid var(--border-subtle);
2580 flex-wrap: wrap;
2581 }
2582 .page-header-text { flex: 1; min-width: 280px; }
2583 .page-header .eyebrow { margin-bottom: var(--s-2); }
2584 .page-header h1 {
2585 font-family: var(--font-display);
2586 font-size: clamp(24px, 3vw, 36px);
2587 line-height: 1.1;
2588 letter-spacing: -0.028em;
2589 margin-bottom: 6px;
2590 }
2591 .page-header p {
2592 color: var(--text-muted);
2593 font-size: var(--t-sm);
2594 line-height: 1.55;
2595 max-width: 640px;
2596 }
2597 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2598
2ce1d0bClaude2599 /* ============================================================ */
2600 /* File browser table */
2601 /* ============================================================ */
2602 .file-table {
2603 width: 100%;
2604 border: 1px solid var(--border);
2605 border-radius: var(--r-md);
2606 overflow: hidden;
2607 background: var(--bg-elevated);
debcf27Claude2608 border-collapse: collapse;
2ce1d0bClaude2609 }
debcf27Claude2610 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2611 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2612 .file-table td {
2613 padding: 9px 16px;
2614 font-size: var(--t-sm);
2615 font-family: var(--font-mono);
2616 font-feature-settings: var(--mono-feat);
2617 }
2ce1d0bClaude2618 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2619 .file-icon {
2620 width: 22px;
2621 color: var(--text-faint);
2622 font-size: 13px;
2623 text-align: center;
2624 }
2625 .file-name a {
2626 color: var(--text);
2627 font-weight: 500;
2628 transition: color var(--t-fast) var(--ease);
2629 }
2630 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2631
2ce1d0bClaude2632 /* ============================================================ */
2633 /* Blob view */
2634 /* ============================================================ */
fc1817aClaude2635 .blob-view {
2636 border: 1px solid var(--border);
2ce1d0bClaude2637 border-radius: var(--r-md);
fc1817aClaude2638 overflow: hidden;
2ce1d0bClaude2639 background: var(--bg-elevated);
fc1817aClaude2640 }
2641 .blob-header {
2642 background: var(--bg-secondary);
2ce1d0bClaude2643 padding: 10px 16px;
fc1817aClaude2644 border-bottom: 1px solid var(--border);
2ce1d0bClaude2645 font-size: var(--t-sm);
fc1817aClaude2646 color: var(--text-muted);
06d5ffeClaude2647 display: flex;
2648 justify-content: space-between;
2649 align-items: center;
fc1817aClaude2650 }
2651 .blob-code {
2652 overflow-x: auto;
2653 font-family: var(--font-mono);
2ce1d0bClaude2654 font-size: var(--t-sm);
2655 line-height: 1.65;
fc1817aClaude2656 }
2657 .blob-code table { width: 100%; border-collapse: collapse; }
2658 .blob-code .line-num {
2659 width: 1%;
2ce1d0bClaude2660 min-width: 56px;
2661 padding: 0 14px;
fc1817aClaude2662 text-align: right;
2ce1d0bClaude2663 color: var(--text-faint);
fc1817aClaude2664 user-select: none;
2665 white-space: nowrap;
2666 border-right: 1px solid var(--border);
2667 }
2ce1d0bClaude2668 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2669 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2670
2ce1d0bClaude2671 /* ============================================================ */
2672 /* Commits + diffs */
2673 /* ============================================================ */
2674 .commit-list {
2675 border: 1px solid var(--border);
2676 border-radius: var(--r-md);
2677 overflow: hidden;
2678 background: var(--bg-elevated);
2679 }
fc1817aClaude2680 .commit-item {
2681 display: flex;
2682 justify-content: space-between;
2683 align-items: center;
debcf27Claude2684 padding: 14px 18px;
2685 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2686 transition: background var(--t-fast) var(--ease);
fc1817aClaude2687 }
2688 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2689 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2690 .commit-message {
2691 font-size: var(--t-sm);
2692 font-weight: 500;
2693 line-height: 1.45;
2694 color: var(--text-strong);
2695 letter-spacing: -0.005em;
2696 }
2697 .commit-meta {
2698 font-family: var(--font-mono);
2699 font-size: 11px;
2700 color: var(--text-muted);
2701 margin-top: 5px;
2702 letter-spacing: 0.01em;
2703 }
fc1817aClaude2704 .commit-sha {
2705 font-family: var(--font-mono);
debcf27Claude2706 font-feature-settings: var(--mono-feat);
2707 font-size: 11px;
2708 padding: 4px 9px;
fc1817aClaude2709 background: var(--bg-tertiary);
2710 border: 1px solid var(--border);
2ce1d0bClaude2711 border-radius: var(--r-sm);
debcf27Claude2712 color: var(--accent);
2713 font-weight: 600;
2714 letter-spacing: 0.02em;
2ce1d0bClaude2715 transition: all var(--t-fast) var(--ease);
fc1817aClaude2716 }
debcf27Claude2717 .commit-sha:hover {
2718 border-color: rgba(140,109,255,0.40);
2719 background: var(--accent-gradient-faint);
2720 color: var(--accent-hover);
2721 text-decoration: none;
fc1817aClaude2722 }
2723
2724 .diff-view { margin-top: 16px; }
2725 .diff-file {
2726 border: 1px solid var(--border);
2ce1d0bClaude2727 border-radius: var(--r-md);
fc1817aClaude2728 margin-bottom: 16px;
2729 overflow: hidden;
2ce1d0bClaude2730 background: var(--bg-elevated);
fc1817aClaude2731 }
2732 .diff-file-header {
2733 background: var(--bg-secondary);
2ce1d0bClaude2734 padding: 10px 16px;
fc1817aClaude2735 border-bottom: 1px solid var(--border);
2736 font-family: var(--font-mono);
2ce1d0bClaude2737 font-size: var(--t-sm);
2738 font-weight: 500;
fc1817aClaude2739 }
2740 .diff-content {
2741 overflow-x: auto;
2742 font-family: var(--font-mono);
2ce1d0bClaude2743 font-size: var(--t-sm);
2744 line-height: 1.65;
fc1817aClaude2745 }
958d26aClaude2746 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2747 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2748 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2749 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2750
2751 .stat-add { color: var(--green); font-weight: 600; }
2752 .stat-del { color: var(--red); font-weight: 600; }
2753
2ce1d0bClaude2754 /* ============================================================ */
2755 /* Empty state */
2756 /* ============================================================ */
fc1817aClaude2757 .empty-state {
2758 text-align: center;
958d26aClaude2759 padding: 96px 24px;
fc1817aClaude2760 color: var(--text-muted);
2ce1d0bClaude2761 border: 1px dashed var(--border);
2762 border-radius: var(--r-lg);
958d26aClaude2763 background:
2764 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2765 var(--bg-elevated);
2766 position: relative;
2767 overflow: hidden;
2768 }
2769 .empty-state::before {
2770 content: '';
2771 position: absolute;
2772 inset: 0;
2773 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2774 background-size: 24px 24px;
2775 opacity: 0.5;
2776 pointer-events: none;
2777 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2778 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2779 }
2780 :root[data-theme='light'] .empty-state::before {
2781 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2782 }
958d26aClaude2783 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2784 .empty-state h2 {
958d26aClaude2785 font-size: var(--t-xl);
2ce1d0bClaude2786 margin-bottom: 8px;
958d26aClaude2787 color: var(--text-strong);
2788 letter-spacing: -0.022em;
2ce1d0bClaude2789 }
958d26aClaude2790 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2791 .empty-state pre {
2792 text-align: left;
2793 display: inline-block;
2794 background: var(--bg-secondary);
958d26aClaude2795 padding: 18px 24px;
2796 border-radius: var(--r-md);
fc1817aClaude2797 border: 1px solid var(--border);
2798 font-family: var(--font-mono);
958d26aClaude2799 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2800 font-size: var(--t-sm);
958d26aClaude2801 margin-top: 24px;
fc1817aClaude2802 line-height: 1.8;
2ce1d0bClaude2803 color: var(--text);
958d26aClaude2804 box-shadow: var(--elev-1);
fc1817aClaude2805 }
2806
2ce1d0bClaude2807 /* ============================================================ */
2808 /* Badges */
2809 /* ============================================================ */
fc1817aClaude2810 .badge {
2ce1d0bClaude2811 display: inline-flex;
2812 align-items: center;
2813 gap: 4px;
2814 padding: 2px 9px;
2815 border-radius: var(--r-full);
2816 font-size: var(--t-xs);
fc1817aClaude2817 font-weight: 500;
2818 background: var(--bg-tertiary);
2819 border: 1px solid var(--border);
2820 color: var(--text-muted);
2ce1d0bClaude2821 line-height: 1.5;
fc1817aClaude2822 }
2823
2ce1d0bClaude2824 /* ============================================================ */
2825 /* Branch dropdown */
2826 /* ============================================================ */
fc1817aClaude2827 .branch-selector {
2828 display: inline-flex;
2829 align-items: center;
2ce1d0bClaude2830 gap: 6px;
2831 padding: 6px 12px;
2832 background: var(--bg-elevated);
fc1817aClaude2833 border: 1px solid var(--border);
2ce1d0bClaude2834 border-radius: var(--r-sm);
2835 font-size: var(--t-sm);
fc1817aClaude2836 color: var(--text);
2837 margin-bottom: 12px;
2ce1d0bClaude2838 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2839 }
2ce1d0bClaude2840 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2841
06d5ffeClaude2842 .branch-dropdown {
2843 position: relative;
2844 display: inline-block;
2845 margin-bottom: 12px;
2846 }
2847 .branch-dropdown-content {
2848 display: none;
2849 position: absolute;
2ce1d0bClaude2850 top: calc(100% + 4px);
06d5ffeClaude2851 left: 0;
2852 z-index: 10;
2ce1d0bClaude2853 min-width: 220px;
2854 background: var(--bg-elevated);
2855 border: 1px solid var(--border-strong);
2856 border-radius: var(--r-md);
2857 overflow: hidden;
2858 box-shadow: var(--elev-3);
06d5ffeClaude2859 }
2860 .branch-dropdown:hover .branch-dropdown-content,
2861 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2862 .branch-dropdown-content a {
2863 display: block;
2ce1d0bClaude2864 padding: 9px 14px;
2865 font-size: var(--t-sm);
06d5ffeClaude2866 color: var(--text);
2867 border-bottom: 1px solid var(--border);
2ce1d0bClaude2868 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2869 }
2870 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2871 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2872 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2873
2ce1d0bClaude2874 /* ============================================================ */
2875 /* Card grid */
2876 /* ============================================================ */
2877 .card-grid {
2878 display: grid;
2879 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2880 gap: 16px;
2881 }
fc1817aClaude2882 .card {
2883 border: 1px solid var(--border);
2ce1d0bClaude2884 border-radius: var(--r-md);
958d26aClaude2885 padding: 20px;
2ce1d0bClaude2886 background: var(--bg-elevated);
2887 transition:
958d26aClaude2888 border-color var(--t-base) var(--ease),
2889 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2890 box-shadow var(--t-base) var(--ease);
2891 position: relative;
2892 overflow: hidden;
958d26aClaude2893 isolation: isolate;
2894 }
2895 .card::before {
2896 content: '';
2897 position: absolute;
2898 inset: 0;
2899 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2900 opacity: 0;
2901 transition: opacity var(--t-base) var(--ease);
2902 pointer-events: none;
2903 z-index: -1;
2ce1d0bClaude2904 }
2905 .card:hover {
2906 border-color: var(--border-strong);
2907 box-shadow: var(--elev-2);
958d26aClaude2908 transform: translateY(-2px);
2ce1d0bClaude2909 }
958d26aClaude2910 .card:hover::before { opacity: 1; }
2911 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2912 .card h3 a { color: var(--text); font-weight: 600; }
2913 .card h3 a:hover { color: var(--text-link); }
2914 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2915 .card-meta {
2916 display: flex;
2917 gap: 14px;
2918 margin-top: 14px;
2919 padding-top: 14px;
2920 border-top: 1px solid var(--border);
2921 font-size: var(--t-xs);
2922 color: var(--text-muted);
2923 }
2924 .card-meta span { display: flex; align-items: center; gap: 5px; }
2925
2926 /* ============================================================ */
2927 /* Stat card / box */
2928 /* ============================================================ */
2929 .stat-card {
2930 background: var(--bg-elevated);
2931 border: 1px solid var(--border);
2932 border-radius: var(--r-md);
fc1817aClaude2933 padding: 16px;
2ce1d0bClaude2934 transition: border-color var(--t-fast) var(--ease);
2935 }
2936 .stat-card:hover { border-color: var(--border-strong); }
2937 .stat-label {
2938 font-size: var(--t-xs);
2939 color: var(--text-muted);
2940 text-transform: uppercase;
2941 letter-spacing: 0.06em;
2942 font-weight: 500;
2943 }
2944 .stat-value {
2945 font-size: var(--t-xl);
2946 font-weight: 700;
2947 margin-top: 4px;
2948 letter-spacing: -0.025em;
2949 color: var(--text);
2950 font-feature-settings: 'tnum';
fc1817aClaude2951 }
06d5ffeClaude2952
2ce1d0bClaude2953 /* ============================================================ */
2954 /* Star button */
2955 /* ============================================================ */
06d5ffeClaude2956 .star-btn {
2957 display: inline-flex;
2958 align-items: center;
2959 gap: 6px;
2ce1d0bClaude2960 padding: 5px 12px;
2961 background: var(--bg-elevated);
06d5ffeClaude2962 border: 1px solid var(--border);
2ce1d0bClaude2963 border-radius: var(--r-sm);
06d5ffeClaude2964 color: var(--text);
2ce1d0bClaude2965 font-size: var(--t-sm);
2966 font-weight: 500;
06d5ffeClaude2967 cursor: pointer;
2ce1d0bClaude2968 transition: all var(--t-fast) var(--ease);
2969 }
2970 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2971 .star-btn.starred {
2972 color: var(--yellow);
958d26aClaude2973 border-color: rgba(251,191,36,0.4);
2974 background: rgba(251,191,36,0.08);
06d5ffeClaude2975 }
2976
2ce1d0bClaude2977 /* ============================================================ */
2978 /* User profile */
2979 /* ============================================================ */
06d5ffeClaude2980 .user-profile {
2981 display: flex;
2982 gap: 32px;
2983 margin-bottom: 32px;
2ce1d0bClaude2984 padding: 24px;
2985 background: var(--bg-elevated);
2986 border: 1px solid var(--border);
2987 border-radius: var(--r-lg);
06d5ffeClaude2988 }
2989 .user-avatar {
2990 width: 96px;
2991 height: 96px;
2ce1d0bClaude2992 border-radius: var(--r-full);
2993 background: var(--accent-gradient-soft);
2994 border: 1px solid var(--border-strong);
06d5ffeClaude2995 display: flex;
2996 align-items: center;
2997 justify-content: center;
2ce1d0bClaude2998 font-size: 36px;
2999 font-weight: 600;
3000 color: var(--text);
06d5ffeClaude3001 flex-shrink: 0;
2ce1d0bClaude3002 letter-spacing: -0.02em;
06d5ffeClaude3003 }
2ce1d0bClaude3004 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
3005 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
3006 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude3007
2ce1d0bClaude3008 /* ============================================================ */
3009 /* New repo form */
3010 /* ============================================================ */
3011 .new-repo-form { max-width: 640px; }
3012 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
3013 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude3014 .visibility-option {
3015 flex: 1;
2ce1d0bClaude3016 padding: 16px;
06d5ffeClaude3017 border: 1px solid var(--border);
2ce1d0bClaude3018 border-radius: var(--r-md);
3019 background: var(--bg-elevated);
06d5ffeClaude3020 cursor: pointer;
2ce1d0bClaude3021 text-align: left;
3022 transition: all var(--t-fast) var(--ease);
3023 }
3024 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
3025 .visibility-option:has(input:checked) {
3026 border-color: var(--accent);
3027 background: var(--accent-gradient-faint);
3028 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude3029 }
3030 .visibility-option input { display: none; }
2ce1d0bClaude3031 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
3032 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude3033
2ce1d0bClaude3034 /* ============================================================ */
3035 /* Issues */
3036 /* ============================================================ */
3037 .issue-tabs { display: flex; gap: 4px; }
3038 .issue-tabs a {
3039 color: var(--text-muted);
3040 font-size: var(--t-sm);
3041 font-weight: 500;
3042 padding: 6px 12px;
3043 border-radius: var(--r-sm);
3044 transition: all var(--t-fast) var(--ease);
3045 }
3046 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
3047 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude3048
2ce1d0bClaude3049 .issue-list {
3050 border: 1px solid var(--border);
3051 border-radius: var(--r-md);
3052 overflow: hidden;
3053 background: var(--bg-elevated);
3054 }
79136bbClaude3055 .issue-item {
3056 display: flex;
2ce1d0bClaude3057 gap: 14px;
79136bbClaude3058 align-items: flex-start;
2ce1d0bClaude3059 padding: 14px 16px;
79136bbClaude3060 border-bottom: 1px solid var(--border);
2ce1d0bClaude3061 transition: background var(--t-fast) var(--ease);
79136bbClaude3062 }
3063 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude3064 .issue-item:hover { background: var(--bg-hover); }
3065 .issue-state-icon {
3066 font-size: 14px;
3067 padding-top: 2px;
3068 width: 18px;
3069 height: 18px;
3070 display: inline-flex;
3071 align-items: center;
3072 justify-content: center;
3073 border-radius: var(--r-full);
3074 flex-shrink: 0;
3075 }
79136bbClaude3076 .state-open { color: var(--green); }
958d26aClaude3077 .state-closed { color: #b69dff; }
2ce1d0bClaude3078 .issue-title {
debcf27Claude3079 font-family: var(--font-display);
3080 font-size: var(--t-md);
2ce1d0bClaude3081 font-weight: 600;
debcf27Claude3082 line-height: 1.35;
3083 letter-spacing: -0.012em;
3084 }
3085 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
3086 .issue-title a:hover { color: var(--accent); text-decoration: none; }
3087 .issue-meta {
3088 font-family: var(--font-mono);
3089 font-size: 11px;
3090 color: var(--text-muted);
3091 margin-top: 5px;
3092 letter-spacing: 0.01em;
2ce1d0bClaude3093 }
79136bbClaude3094
3095 .issue-badge {
3096 display: inline-flex;
3097 align-items: center;
2ce1d0bClaude3098 gap: 6px;
79136bbClaude3099 padding: 4px 12px;
2ce1d0bClaude3100 border-radius: var(--r-full);
3101 font-size: var(--t-sm);
79136bbClaude3102 font-weight: 500;
2ce1d0bClaude3103 line-height: 1.4;
79136bbClaude3104 }
958d26aClaude3105 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3106 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3107 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3108 .state-merged { color: var(--accent); }
958d26aClaude3109 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3110
2ce1d0bClaude3111 .issue-detail { max-width: 920px; }
79136bbClaude3112 .issue-comment-box {
3113 border: 1px solid var(--border);
2ce1d0bClaude3114 border-radius: var(--r-md);
79136bbClaude3115 margin-bottom: 16px;
3116 overflow: hidden;
2ce1d0bClaude3117 background: var(--bg-elevated);
79136bbClaude3118 }
3119 .comment-header {
3120 background: var(--bg-secondary);
2ce1d0bClaude3121 padding: 10px 16px;
79136bbClaude3122 border-bottom: 1px solid var(--border);
2ce1d0bClaude3123 font-size: var(--t-sm);
79136bbClaude3124 color: var(--text-muted);
3125 }
3126
2ce1d0bClaude3127 /* ============================================================ */
3128 /* Panel — flexible container used across many pages */
3129 /* ============================================================ */
3130 .panel {
3131 background: var(--bg-elevated);
3132 border: 1px solid var(--border);
3133 border-radius: var(--r-md);
3134 overflow: hidden;
3135 }
3136 .panel-item {
3137 display: flex;
3138 align-items: center;
3139 gap: 12px;
3140 padding: 12px 16px;
79136bbClaude3141 border-bottom: 1px solid var(--border);
2ce1d0bClaude3142 transition: background var(--t-fast) var(--ease);
3143 }
3144 .panel-item:last-child { border-bottom: none; }
3145 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3146
3147 /* ─── j/k keyboard list navigation ─── */
3148 .is-kbd-focus {
3149 outline: 2px solid rgba(140,109,255,0.6) !important;
3150 outline-offset: -2px;
3151 background: rgba(140,109,255,0.06) !important;
3152 border-radius: 4px;
3153 }
3154 .is-kbd-selected {
3155 outline: 2px solid rgba(52,211,153,0.6) !important;
3156 background: rgba(52,211,153,0.06) !important;
3157 }
2ce1d0bClaude3158 .panel-empty {
3159 padding: 24px;
3160 text-align: center;
79136bbClaude3161 color: var(--text-muted);
2ce1d0bClaude3162 font-size: var(--t-sm);
79136bbClaude3163 }
3164
2ce1d0bClaude3165 /* ============================================================ */
3166 /* Search */
3167 /* ============================================================ */
79136bbClaude3168 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3169
2ce1d0bClaude3170 /* ============================================================ */
3171 /* Timeline */
3172 /* ============================================================ */
3173 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3174 .timeline::before {
3175 content: '';
3176 position: absolute;
3177 left: 4px;
3178 top: 8px;
3179 bottom: 8px;
3180 width: 2px;
2ce1d0bClaude3181 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3182 }
2ce1d0bClaude3183 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3184 .timeline-dot {
3185 position: absolute;
2ce1d0bClaude3186 left: -28px;
3187 top: 8px;
3188 width: 12px;
3189 height: 12px;
3190 border-radius: var(--r-full);
3191 background: var(--accent-gradient);
16b325cClaude3192 border: 2px solid var(--bg);
2ce1d0bClaude3193 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3194 }
3195 .timeline-content {
2ce1d0bClaude3196 background: var(--bg-elevated);
16b325cClaude3197 border: 1px solid var(--border);
2ce1d0bClaude3198 border-radius: var(--r-md);
3199 padding: 14px 16px;
16b325cClaude3200 }
f1ab587Claude3201
2ce1d0bClaude3202 /* ============================================================ */
3203 /* Toggle switch */
3204 /* ============================================================ */
f1ab587Claude3205 .toggle-switch {
3206 position: relative;
3207 display: inline-block;
2ce1d0bClaude3208 width: 40px;
3209 height: 22px;
f1ab587Claude3210 flex-shrink: 0;
3211 margin-left: 16px;
3212 }
3213 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3214 .toggle-slider {
3215 position: absolute;
3216 cursor: pointer;
3217 top: 0; left: 0; right: 0; bottom: 0;
3218 background: var(--bg-tertiary);
3219 border: 1px solid var(--border);
2ce1d0bClaude3220 border-radius: var(--r-full);
3221 transition: all var(--t-base) var(--ease);
f1ab587Claude3222 }
3223 .toggle-slider::before {
3224 content: '';
3225 position: absolute;
2ce1d0bClaude3226 height: 16px;
3227 width: 16px;
f1ab587Claude3228 left: 2px;
3229 bottom: 2px;
3230 background: var(--text-muted);
2ce1d0bClaude3231 border-radius: var(--r-full);
3232 transition: all var(--t-base) var(--ease);
f1ab587Claude3233 }
3234 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3235 background: var(--accent-gradient);
3236 border-color: transparent;
958d26aClaude3237 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3238 }
3239 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3240 transform: translateX(18px);
f1ab587Claude3241 background: #fff;
3242 }
ef8d378Claude3243
3244 /* ============================================================
3245 * 2026 polish layer (purely additive — no layout changes).
3246 * Improves typography rendering, focus states, hover affordances,
3247 * and adds the gradient brand cue to primary buttons. Anything
3248 * that could alter dimensions stays in the rules above.
3249 * ============================================================ */
3250 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3251 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3252 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3253
3254 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3255 h1 { letter-spacing: -0.025em; }
3256
3257 /* Smoother colour transitions everywhere links live */
3258 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3259
3260 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3261 .btn {
3262 transition:
3263 background 120ms cubic-bezier(0.16,1,0.3,1),
3264 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3265 transform 120ms cubic-bezier(0.16,1,0.3,1),
3266 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3267 }
3268 .btn:active { transform: translateY(0.5px); }
3269 .btn:focus-visible {
3270 outline: none;
3271 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3272 }
3273 .btn-primary {
3274 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3275 border-color: transparent;
3276 box-shadow:
3277 inset 0 1px 0 rgba(255,255,255,0.15),
3278 0 1px 2px rgba(168,85,247,0.25);
3279 }
3280 .btn-primary:hover {
3281 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3282 filter: none;
3283 box-shadow:
3284 inset 0 1px 0 rgba(255,255,255,0.20),
3285 0 4px 12px rgba(168,85,247,0.30);
3286 }
3287
3288 /* Inputs: cleaner focus ring + hover */
3289 .form-group input:hover,
3290 .form-group textarea:hover,
3291 .form-group select:hover {
3292 border-color: rgba(255,255,255,0.14);
3293 }
3294 .form-group input:focus,
3295 .form-group textarea:focus,
3296 .form-group select:focus {
3297 border-color: rgba(168,85,247,0.55);
3298 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3299 }
3300 :root[data-theme='light'] .form-group input:hover,
3301 :root[data-theme='light'] .form-group textarea:hover,
3302 :root[data-theme='light'] .form-group select:hover {
3303 border-color: rgba(0,0,0,0.18);
3304 }
3305
3306 /* Cards: subtle hover lift */
3307 .card {
3308 transition:
3309 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3310 transform 160ms cubic-bezier(0.16,1,0.3,1),
3311 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3312 }
3313 .card:hover {
3314 border-color: rgba(255,255,255,0.18);
3315 transform: translateY(-1px);
3316 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3317 }
3318 :root[data-theme='light'] .card:hover {
3319 border-color: rgba(0,0,0,0.18);
3320 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3321 }
3322
3323 /* Issue / commit / panel rows: smoother hover */
3324 .issue-item, .commit-item {
3325 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3326 }
3327 .repo-nav a {
3328 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3329 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3330 }
3331 .nav-link {
3332 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3333 }
3334
3335 /* Auth card: subtle elevation so register/login feel premium */
3336 .auth-container {
3337 background: var(--bg-secondary);
3338 border: 1px solid var(--border);
3339 border-radius: var(--r-lg, 12px);
3340 padding: 32px;
3341 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3342 }
3343 :root[data-theme='light'] .auth-container {
3344 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3345 }
3346 .auth-container h2 { letter-spacing: -0.025em; }
3347
3348 /* Empty state: dashed border, generous padding */
3349 .empty-state {
3350 border: 1px dashed var(--border);
3351 border-radius: var(--r-lg, 12px);
3352 background: var(--bg);
3353 }
3354
3355 /* Badges + commit-sha: smoother transition */
3356 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3357
3358 /* Gradient text utility — matches landing's accent treatment */
3359 .gradient-text {
3360 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3361 -webkit-background-clip: text;
3362 background-clip: text;
3363 -webkit-text-fill-color: transparent;
3364 }
3365
3366 /* Custom scrollbars (subtle, themed) */
3367 ::-webkit-scrollbar { width: 10px; height: 10px; }
3368 ::-webkit-scrollbar-track { background: transparent; }
3369 ::-webkit-scrollbar-thumb {
3370 background: rgba(255,255,255,0.06);
3371 border: 2px solid var(--bg);
3372 border-radius: 9999px;
3373 }
3374 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3375 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3376 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3377
3378 /* Honour reduced-motion preference */
3379 @media (prefers-reduced-motion: reduce) {
3380 *, *::before, *::after {
3381 animation-duration: 0.01ms !important;
3382 animation-iteration-count: 1 !important;
3383 transition-duration: 0.01ms !important;
3384 }
3385 }
c63b860Claude3386
3387 /* Block O3 — visual coherence additive rules. */
3388 .card.card-p-none { padding: 0; }
3389 .card.card-p-sm { padding: var(--space-3); }
3390 .card.card-p-md { padding: var(--space-4); }
3391 .card.card-p-lg { padding: var(--space-6); }
3392 .card.card-elevated { box-shadow: var(--elev-2); }
3393 .card.card-gradient {
3394 background:
3395 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3396 var(--bg-elevated);
3397 }
3398 .card.card-gradient::before { opacity: 1; }
3399 .notice {
3400 padding: var(--space-3) var(--space-4);
3401 border-radius: var(--radius-md);
3402 border: 1px solid var(--border);
3403 background: var(--bg-elevated);
3404 color: var(--text);
3405 font-size: var(--font-size-sm);
3406 margin-bottom: var(--space-6);
3407 line-height: var(--leading-normal);
3408 }
3409 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3410 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3411 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3412 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3413 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3414 .email-preview {
3415 padding: var(--space-5);
3416 background: #fff;
3417 color: #111;
3418 border-radius: var(--radius-md);
3419 }
3420 .code-block {
3421 margin: var(--space-2) 0 0;
3422 padding: var(--space-3);
3423 background: var(--bg-tertiary);
3424 border: 1px solid var(--border-subtle);
3425 border-radius: var(--radius-sm);
3426 font-family: var(--font-mono);
3427 font-size: var(--font-size-xs);
3428 line-height: var(--leading-normal);
3429 overflow-x: auto;
3430 }
3431 .status-pill-operational {
3432 display: inline-flex;
3433 align-items: center;
3434 padding: var(--space-1) var(--space-3);
3435 border-radius: var(--radius-full);
3436 font-size: var(--font-size-xs);
3437 font-weight: 600;
3438 background: rgba(52,211,153,0.15);
3439 color: var(--green);
3440 }
3441 .api-tag {
3442 display: inline-flex;
3443 align-items: center;
3444 font-size: var(--font-size-xs);
3445 padding: 2px var(--space-2);
3446 border-radius: var(--radius-sm);
3447 font-family: var(--font-mono);
3448 }
3449 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3450 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3451 .stat-number {
3452 font-size: var(--font-size-xl);
3453 font-weight: 700;
3454 color: var(--text-strong);
3455 line-height: var(--leading-tight);
3456 }
3457 .stat-number-accent { color: var(--accent); }
3458 .stat-number-blue { color: var(--blue); }
3459 .stat-number-purple { color: var(--text-link); }
3460 footer .footer-tag-sub {
3461 margin-top: var(--space-2);
3462 font-size: var(--font-size-xs);
3463 color: var(--text-faint);
3464 line-height: var(--leading-normal);
3465 }
3466 footer .footer-version-pill {
3467 display: inline-flex;
3468 align-items: center;
3469 gap: var(--space-2);
3470 padding: var(--space-1) var(--space-3);
3471 border-radius: var(--radius-full);
3472 border: 1px solid var(--border);
3473 background: var(--bg-elevated);
3474 color: var(--text-faint);
3475 font-family: var(--font-mono);
3476 font-size: var(--font-size-xs);
3477 cursor: help;
3478 }
3479 footer .footer-banner {
3480 max-width: 1240px;
3481 margin: var(--space-6) auto 0;
3482 padding: var(--space-3) var(--space-4);
3483 border-radius: var(--radius-md);
3484 border: 1px solid var(--border);
3485 background: var(--bg-elevated);
3486 color: var(--text);
3487 font-family: var(--font-mono);
3488 font-size: var(--font-size-xs);
3489 letter-spacing: 0.04em;
3490 text-transform: uppercase;
3491 text-align: center;
3492 }
3493 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3494 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3495 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3496
cf9178bTest User3497 /* ============================================================ */
3498 /* Global toast notifications. */
3499 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3500 /* ============================================================ */
3501 .gx-toast {
3502 pointer-events: auto;
3503 display: inline-flex;
3504 align-items: flex-start;
3505 gap: 10px;
3506 min-width: 280px;
3507 max-width: min(440px, calc(100vw - 32px));
3508 padding: 12px 14px 12px 12px;
3509 background: var(--bg-elevated);
3510 border: 1px solid var(--border);
3511 border-radius: 10px;
3512 box-shadow:
3513 0 12px 36px -10px rgba(15,16,28,0.18),
3514 0 2px 6px rgba(15,16,28,0.04),
3515 0 0 0 1px rgba(15,16,28,0.02);
3516 color: var(--text);
3517 font-size: 13.5px;
3518 line-height: 1.45;
3519 opacity: 0;
3520 transform: translateX(16px);
3521 transition:
3522 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3523 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3524 }
3525 .gx-toast--in { opacity: 1; transform: translateX(0); }
3526 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3527 .gx-toast__icon {
3528 flex-shrink: 0;
3529 width: 20px; height: 20px;
3530 border-radius: 50%;
3531 display: inline-flex;
3532 align-items: center;
3533 justify-content: center;
3534 font-size: 12px;
3535 font-weight: 700;
3536 line-height: 1;
3537 margin-top: 1px;
3538 }
3539 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3540 .gx-toast__close {
3541 flex-shrink: 0;
3542 width: 22px; height: 22px;
3543 border: 0;
3544 background: transparent;
3545 color: var(--text-muted);
3546 font-size: 18px;
3547 line-height: 1;
3548 cursor: pointer;
3549 border-radius: 4px;
3550 padding: 0;
3551 margin: -2px -2px 0 0;
3552 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3553 }
3554 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3555 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3556 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3557 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3558 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3559 @media (prefers-reduced-motion: reduce) {
3560 .gx-toast { transition: opacity 60ms linear; transform: none; }
3561 .gx-toast--in, .gx-toast--out { transform: none; }
3562 }
3563
dc26881CC LABS App3564 /* ============================================================ */
3565 /* Block U4 — cross-document view transitions. */
3566 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3567 /* every same-origin navigation. Older browsers ignore these */
3568 /* rules entirely — no JS shim, no breakage. */
3569 /* prefers-reduced-motion disables the animation honourably. */
3570 /* ============================================================ */
3571 @view-transition {
3572 navigation: auto;
3573 }
3574 ::view-transition-old(root),
3575 ::view-transition-new(root) {
3576 animation-duration: 200ms;
3577 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3578 }
3579 ::view-transition-old(root) {
3580 animation-name: vt-fade-out;
3581 }
3582 ::view-transition-new(root) {
3583 animation-name: vt-fade-in;
3584 }
3585 @keyframes vt-fade-out {
3586 to { opacity: 0; }
3587 }
3588 @keyframes vt-fade-in {
3589 from { opacity: 0; }
3590 }
3591 @media (prefers-reduced-motion: reduce) {
3592 ::view-transition-old(root),
3593 ::view-transition-new(root) {
3594 animation-duration: 0s;
3595 }
3596 }
3597 /* The transition system picks up its root subject from this rule. */
3598 body {
3599 view-transition-name: root;
3600 }
fc1817aClaude3601`;