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.tsxBlame3509 lines · 4 contributors
fc1817aClaude1import type { FC, PropsWithChildren } from "hono/jsx";
06d5ffeClaude2import type { User } from "../db/schema";
3import { hljsThemeCss } from "../lib/highlight";
45e31d0Claude4import { clientJs } from "./client-js";
05cdb85Claude5import { getBuildInfo } from "../lib/build-info";
fc1817aClaude6
06d5ffeClaude7export const Layout: FC<
3ef4c9dClaude8 PropsWithChildren<{
9 title?: string;
10 user?: User | null;
11 notificationCount?: number;
6fc53bdClaude12 theme?: "dark" | "light";
5f2e749Claude13 // Block L10 — additive SEO + Open Graph fields. All optional;
14 // omission preserves the prior render exactly (regression-safe).
15 fullTitle?: string;
16 description?: string;
17 ogTitle?: string;
18 ogDescription?: string;
19 ogType?: string;
20 twitterCard?: "summary" | "summary_large_image";
c63b860Claude21 // Block O3 — site-wide footer banner stripe. When non-empty,
22 // renders below the footer-bottom row; wired from
23 // admin.system_flags.site_banner_text.
24 siteBannerText?: string;
25 siteBannerLevel?: "info" | "warn" | "error";
3ef4c9dClaude26 }>
5f2e749Claude27> = ({
28 children,
29 title,
30 user,
31 notificationCount,
32 theme,
33 fullTitle,
34 description,
35 ogTitle,
36 ogDescription,
37 ogType,
38 twitterCard,
c63b860Claude39 siteBannerText,
40 siteBannerLevel,
5f2e749Claude41}) => {
81201ccTest User42 // Default to "light" — feedback from operators was the dark default
43 // felt too gamer-ish and not what senior platform engineers expect from
44 // a tool they'd evaluate alongside Vercel / Linear / Stripe. Users who
45 // explicitly want dark can flip via the theme toggle (cookie persists).
46 const initialTheme = theme === "dark" ? "dark" : "light";
05cdb85Claude47 const build = getBuildInfo();
5f2e749Claude48 // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron"
49 // suffix); otherwise fall back to the existing `title` + suffix behaviour.
50 const renderedTitle = fullTitle
51 ? fullTitle
52 : title
53 ? `${title} — gluecron`
54 : "gluecron";
fc1817aClaude55 return (
6fc53bdClaude56 <html lang="en" data-theme={initialTheme}>
fc1817aClaude57 <head>
58 <meta charset="UTF-8" />
59 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
eae38d1Claude60 <meta name="theme-color" content="#0d1117" />
3a5755eClaude61 {/* 2026 polish — load Inter + Inter Tight + JetBrains Mono for
62 crisp modern typography. `preconnect` keeps the handshake
63 cost off the critical path; `display=swap` means we never
64 block first paint waiting on fonts. */}
65 <link rel="preconnect" href="https://fonts.googleapis.com" />
66 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
67 <link
68 rel="stylesheet"
69 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"
70 />
44fe49bClaude71 {/* PWA removed 2026-05-16 — repeated reload-loop bugs (admin
72 dashboard, deploy pill, admin-screen flash). A git host has
73 no use for service workers or install-as-app. Manifest link
74 and SW registrations are gone permanently. */}
eae38d1Claude75 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude76 <title>{renderedTitle}</title>
77 {description && <meta name="description" content={description} />}
78 {(ogTitle || fullTitle || title) && (
79 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
80 )}
81 {(ogDescription || description) && (
82 <meta
83 property="og:description"
84 content={ogDescription ?? description ?? ""}
85 />
86 )}
87 {ogType && <meta property="og:type" content={ogType} />}
88 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude89 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
90 <style dangerouslySetInnerHTML={{ __html: css }} />
91 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude92 </head>
93 <body>
4a52a98Claude94 <div class="prelaunch-banner" role="status" aria-live="polite">
95 Pre-launch &mdash; Gluecron is in final validation. Public signups
96 and git hosting for non-owner users open after launch review.
97 </div>
cd4f63bTest User98 {/* Block Q3 — Playground banner. Renders only when the active
99 user is a playground account with a future expiry; the small
100 inline script counts down once per minute. Strip is dismissible
101 per-page-load (re-appears on next nav) — gentle, not noisy. */}
102 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
103 <div
104 class="playground-banner"
105 role="status"
106 aria-live="polite"
107 data-playground-expires={
108 ((user as any).playgroundExpiresAt instanceof Date
109 ? (user as any).playgroundExpiresAt.toISOString()
110 : String((user as any).playgroundExpiresAt))
111 }
112 >
113 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
114 <span class="playground-banner-text">
115 Playground account &mdash;{" "}
116 <span class="playground-banner-countdown">expires soon</span>.{" "}
117 <a href="/play/claim" class="playground-banner-cta">
118 Save your work &rarr;
119 </a>
120 </span>
121 <button
122 type="button"
123 class="playground-banner-dismiss"
124 aria-label="Dismiss"
125 data-playground-dismiss="1"
126 >
127 {"×"}
128 </button>
129 <script
130 dangerouslySetInnerHTML={{
131 __html: /* js */ `
132 (function () {
133 var el = document.currentScript && document.currentScript.parentElement;
134 if (!el) return;
135 var iso = el.getAttribute('data-playground-expires');
136 if (!iso) return;
137 var target = Date.parse(iso);
138 if (isNaN(target)) return;
139 var out = el.querySelector('.playground-banner-countdown');
140 function render() {
141 var ms = target - Date.now();
142 if (!out) return;
143 if (ms <= 0) { out.textContent = 'expired'; return; }
144 var mins = Math.floor(ms / 60000);
145 var hrs = Math.floor(mins / 60);
146 if (hrs > 1) out.textContent = hrs + ' hours left';
147 else if (hrs === 1) out.textContent = '1 hour left';
148 else if (mins > 1) out.textContent = mins + ' minutes left';
149 else out.textContent = 'less than a minute left';
150 }
151 render();
152 setInterval(render, 60000);
153 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
154 if (dismiss) {
155 dismiss.addEventListener('click', function () {
156 el.style.display = 'none';
157 });
158 }
159 })();
160 `,
161 }}
162 />
163 </div>
164 )}
fc1817aClaude165 <header>
166 <nav>
167 <a href="/" class="logo">
168 gluecron
169 </a>
3ef4c9dClaude170 <div class="nav-search">
001af43Claude171 <form method="get" action="/search">
3ef4c9dClaude172 <input
173 type="search"
174 name="q"
175 placeholder="Search (press /)"
176 aria-label="Search"
177 />
178 </form>
179 </div>
06d5ffeClaude180 <div class="nav-right">
f5b9ef5Claude181 {/* Block N3 — site-admin platform-deploy status pill */}
f764c07Claude182 {user && (
183 <a
184 id="deploy-pill"
185 href="/admin/deploys"
186 class="nav-deploy-pill"
187 style="display:none"
188 aria-label="Platform deploy status"
189 title="Platform deploy status"
190 >
191 <span class="deploy-pill-dot" />
192 <span class="deploy-pill-text">Deploys</span>
193 </a>
194 )}
f5b9ef5Claude195 <a href="/explore" class="nav-link">Explore</a>
06d5ffeClaude196 {user ? (
197 <>
f5b9ef5Claude198 {/* AI dropdown */}
c6018a5Claude199 <div class="nav-ai-dropdown" data-nav-ai>
200 <button
201 type="button"
202 class="nav-link nav-ai-trigger"
203 aria-haspopup="true"
204 aria-expanded="false"
205 data-nav-ai-trigger
206 >
207 <span style="display:inline-flex;align-items:center;gap:5px">
f5b9ef5Claude208 <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
c6018a5Claude209 <path d="M12 2l2.39 5.95L20 9l-4.5 3.9L17 19l-5-3.2L7 19l1.5-6.1L4 9l5.61-1.05L12 2z" />
210 </svg>
211 AI
f5b9ef5Claude212 <span aria-hidden="true" style="font-size:9px;opacity:0.7">{String.fromCharCode(9660)}</span>
c6018a5Claude213 </span>
214 </button>
215 <div class="nav-ai-menu" role="menu" data-nav-ai-menu>
216 <a href="/standups" role="menuitem" class="nav-ai-item">
217 <span class="nav-ai-item-label">Standups</span>
218 <span class="nav-ai-item-sub">Daily AI brief</span>
219 </a>
220 <a href="/voice" role="menuitem" class="nav-ai-item">
221 <span class="nav-ai-item-label">Voice</span>
222 <span class="nav-ai-item-sub">Talk to ship a PR</span>
223 </a>
224 <a href="/refactors" role="menuitem" class="nav-ai-item">
225 <span class="nav-ai-item-label">Refactors</span>
226 <span class="nav-ai-item-sub">Multi-repo agent</span>
227 </a>
228 <a href="/specs" role="menuitem" class="nav-ai-item">
229 <span class="nav-ai-item-label">Specs</span>
230 <span class="nav-ai-item-sub">Spec-to-PR loop</span>
231 </a>
232 <a href="/ask" role="menuitem" class="nav-ai-item">
233 <span class="nav-ai-item-label">Ask AI</span>
234 <span class="nav-ai-item-sub">Cross-repo chat</span>
235 </a>
236 </div>
237 </div>
f5b9ef5Claude238 {/* Inbox bell with unread badge */}
239 <a
240 href="/inbox"
241 class="nav-inbox-btn"
242 aria-label={notificationCount && notificationCount > 0 ? `Inbox — ${notificationCount} unread` : "Inbox"}
243 title="Inbox"
244 >
245 <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">
246 <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
247 <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
248 </svg>
249 {notificationCount && notificationCount > 0 ? (
250 <span class="nav-inbox-badge" aria-hidden="true">
251 {notificationCount > 99 ? "99+" : notificationCount}
252 </span>
253 ) : null}
06d5ffeClaude254 </a>
f5b9ef5Claude255 <a href="/new" class="btn btn-sm btn-primary">+ New</a>
256 {/* User dropdown — consolidates profile + secondary nav */}
257 <div class="nav-user-dropdown" data-nav-user>
258 <button
259 type="button"
260 class="nav-user-trigger"
261 aria-haspopup="true"
262 aria-expanded="false"
263 data-nav-user-trigger
264 >
265 <span class="nav-user-avatar" aria-hidden="true">
266 {(user.displayName || user.username).charAt(0).toUpperCase()}
267 </span>
268 <span class="nav-user-name">{user.displayName || user.username}</span>
269 <span class="nav-user-caret" aria-hidden="true">{"▾"}</span>
270 </button>
271 <div class="nav-user-menu" role="menu" data-nav-user-menu>
272 <div class="nav-user-menu-header">
273 <span class="nav-user-menu-name">{user.displayName || user.username}</span>
274 <span class="nav-user-menu-handle">@{user.username}</span>
275 </div>
276 <div class="nav-user-menu-sep" />
277 <a href="/dashboard" role="menuitem" class="nav-user-item">Dashboard</a>
278 <a href="/pulls" role="menuitem" class="nav-user-item">Pull requests</a>
279 <a href="/issues" role="menuitem" class="nav-user-item">Issues</a>
280 <a href="/activity" role="menuitem" class="nav-user-item">Activity</a>
281 <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a>
bb2dea9Claude282 <a href="/import/actions" role="menuitem" class="nav-user-item">Actions importer</a>
f5b9ef5Claude283 <div class="nav-user-menu-sep" />
284 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
285 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
286 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
287 <div class="nav-user-menu-sep" />
288 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
289 <span class="theme-icon-dark">{"☾"} Light mode</span>
290 <span class="theme-icon-light">{"☀"} Dark mode</span>
291 </a>
292 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
293 </div>
294 </div>
06d5ffeClaude295 </>
296 ) : (
297 <>
f5b9ef5Claude298 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
299 <span class="theme-icon-dark">{"☾"}</span>
300 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude301 </a>
adf5e18Claude302 <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron">
303 Migrate from GitHub
304 </a>
f5b9ef5Claude305 <a href="/login" class="nav-link">Sign in</a>
306 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude307 </>
308 )}
309 </div>
fc1817aClaude310 </nav>
311 </header>
45e31d0Claude312 <main id="main-content">{children}</main>
cf9178bTest User313 {/* Global toast host — populated by the toastScript below from
314 ?success= / ?error= / ?toast= query params. Replaces the
315 per-page banner pattern with one polished slide-in. */}
316 <div
317 id="toast-host"
318 aria-live="polite"
319 aria-atomic="true"
320 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"
321 />
fc1817aClaude322 <footer>
958d26aClaude323 <div class="footer-inner">
324 <div class="footer-brand">
325 <a href="/" class="logo">gluecron</a>
326 <p class="footer-tag">
327 AI-native code intelligence. Self-hosted git, automated CI,
328 push-time gates. Software that ships itself.
329 </p>
330 </div>
331 <div class="footer-links">
332 <div class="footer-col">
333 <div class="footer-col-title">Product</div>
b0148e9Claude334 <a href="/features">Features</a>
335 <a href="/pricing">Pricing</a>
9f29b65Claude336 <a href="/enterprise">Enterprise</a>
e1fc7dbClaude337 <a href="/changelog">Changelog</a>
958d26aClaude338 <a href="/explore">Explore</a>
339 <a href="/marketplace">Marketplace</a>
adf5e18Claude340 <a href="/developer-program">Developer Program</a>
958d26aClaude341 </div>
342 <div class="footer-col">
343 <div class="footer-col-title">Platform</div>
e0e4219Claude344 <a href="/docs">Docs</a>
b0148e9Claude345 <a href="/help">Quickstart</a>
958d26aClaude346 <a href="/status">Status</a>
347 <a href="/api/graphql">GraphQL</a>
348 <a href="/mcp">MCP server</a>
349 </div>
350 <div class="footer-col">
b0148e9Claude351 <div class="footer-col-title">Company</div>
352 <a href="/about">About</a>
3122762Claude353 <a href="/blog">Blog</a>
958d26aClaude354 <a href="/terms">Terms</a>
355 <a href="/privacy">Privacy</a>
356 <a href="/acceptable-use">Acceptable use</a>
357 </div>
358 </div>
359 </div>
360 <div class="footer-bottom">
361 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude362 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
363 <span class="footer-build-dot" aria-hidden="true" />
364 {build.sha} · {build.branch}
365 </span>
36b4cbdClaude366 </div>
c63b860Claude367 {siteBannerText ? (
368 <div
369 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
370 role="status"
371 aria-live="polite"
372 >
373 {siteBannerText}
374 </div>
375 ) : null}
fc1817aClaude376 </footer>
05cdb85Claude377 {/* Live update poller — checks /api/version every 15s, prompts
378 reload when the running sha changes. Pure progressive-
379 enhancement; degrades to nothing if JS is off. */}
380 <div
381 id="version-banner"
382 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"
383 >
384 <span style="display:inline-flex;align-items:center;gap:8px">
385 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
386 <span>New version available</span>
387 </span>
388 <button
389 type="button"
390 id="version-banner-reload"
391 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"
392 >
393 Reload
394 </button>
395 </div>
fa880f2Claude396 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude397 {/* Block N3 — site-admin deploy status pill (script-only). The pill
398 container is rendered above for authed users; this script bootstraps
399 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
400 and the pill stays display:none — zero leak. */}
401 {user && (
402 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
403 )}
699e5c7Claude404 {/* Block I4 — Command palette shell (hidden by default) */}
405 <div
406 id="cmdk-backdrop"
407 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
408 />
409 <div
410 id="cmdk-panel"
411 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"
412 >
413 <input
414 id="cmdk-input"
415 type="text"
416 placeholder="Type a command..."
417 aria-label="Command palette"
dc26881CC LABS App418 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"
699e5c7Claude419 />
420 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
421 </div>
fa880f2Claude422 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude423 {/* PWA-kill script: actively unregisters any service worker
424 previously installed under gluecron.com. Recovers any browser
425 still trapped in the SW reload loop from the legacy registrations. */}
426 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User427 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude428 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude429 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
fc1817aClaude430 </body>
431 </html>
432 );
433};
434
05cdb85Claude435// Live version poller. Checks /api/version every 15s; if the sha differs
436// from the one we booted with, reveal the floating 'New version' pill so
437// the user can reload onto the new code without manually refreshing.
438const versionPollerScript = `
439 (function(){
440 var loadedSha = null;
441 var banner, btn;
442 function poll(){
443 fetch('/api/version', { cache: 'no-store' })
444 .then(function(r){ return r.ok ? r.json() : null; })
445 .then(function(j){
446 if (!j || !j.sha) return;
447 if (loadedSha === null) { loadedSha = j.sha; return; }
448 if (j.sha !== loadedSha && banner) {
449 banner.style.display = 'inline-flex';
450 }
451 })
452 .catch(function(){});
453 }
454 function init(){
455 banner = document.getElementById('version-banner');
456 btn = document.getElementById('version-banner-reload');
457 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
458 poll();
459 setInterval(poll, 15000);
460 }
461 if (document.readyState === 'loading') {
462 document.addEventListener('DOMContentLoaded', init);
463 } else {
464 init();
465 }
466 })();
467`;
468
f764c07Claude469// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
470// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
471// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
472// display:none — there's no leakage of admin-only data to other users.
473//
474// Pill states (CSS classes on the container drive colour):
475// .deploy-pill-success 🟢 "Deployed 12s ago"
476// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
477// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
478// .deploy-pill-empty ⚪ "No deploys yet"
479//
480// Relative-time auto-refreshes every 15s without re-fetching.
481export const deployPillScript = `
482 (function(){
483 var pill, dot, text;
484 var state = { latest: null, asOf: null };
485
486 function classifyAge(ms){
487 if (ms < 0) return 'just now';
488 var s = Math.floor(ms / 1000);
489 if (s < 5) return 'just now';
490 if (s < 60) return s + 's ago';
491 var m = Math.floor(s / 60);
492 if (m < 60) return m + 'm ago';
493 var h = Math.floor(m / 60);
494 if (h < 24) return h + 'h ago';
495 var d = Math.floor(h / 24);
496 return d + 'd ago';
497 }
498 function elapsed(ms){
499 if (ms < 0) ms = 0;
500 var s = Math.floor(ms / 1000);
501 if (s < 60) return s + 's';
502 var m = Math.floor(s / 60);
503 var rem = s - m * 60;
504 return m + 'm ' + rem + 's';
505 }
506
507 function render(){
508 if (!pill || !text || !dot) return;
509 var d = state.latest;
81201ccTest User510 // When there's no deploy event yet, keep the pill HIDDEN. Showing
511 // "No deploys yet" was visible noise on every admin page load and
512 // flashed during reconnect cycles — admins don't need a placeholder.
513 // The pill reveals itself the first time a real deploy fires.
f764c07Claude514 if (!d) {
81201ccTest User515 pill.style.display = 'none';
f764c07Claude516 return;
517 }
518 pill.style.display = 'inline-flex';
519 var now = Date.now();
520 if (d.status === 'in_progress') {
521 pill.className = 'nav-deploy-pill deploy-pill-progress';
522 var started = Date.parse(d.started_at) || now;
523 text.textContent = 'Deploying… ' + elapsed(now - started);
524 } else if (d.status === 'succeeded') {
525 pill.className = 'nav-deploy-pill deploy-pill-success';
526 var ref = Date.parse(d.finished_at || d.started_at) || now;
527 text.textContent = 'Deployed ' + classifyAge(now - ref);
528 } else if (d.status === 'failed') {
529 pill.className = 'nav-deploy-pill deploy-pill-failed';
530 var refF = Date.parse(d.finished_at || d.started_at) || now;
531 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
532 } else {
533 pill.className = 'nav-deploy-pill';
534 text.textContent = d.status;
535 }
536 }
537
538 function fetchLatest(){
539 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
540 .then(function(r){ if (!r.ok) return null; return r.json(); })
541 .then(function(j){
542 if (!j || j.ok !== true) return;
543 state.latest = j.latest;
544 state.asOf = j.asOf;
545 render();
546 subscribe();
547 })
548 .catch(function(){});
549 }
550
551 var subscribed = false;
552 function subscribe(){
553 if (subscribed) return;
554 if (typeof EventSource === 'undefined') return;
555 subscribed = true;
556 var es;
bf19c50Test User557 // Exponential backoff with cap. Previously a tight 1500ms reconnect
558 // produced visible looping in the nav whenever the proxy timed out
559 // or the connection blipped — the bottom-of-page deploy pill
560 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
561 // successful message receipt.
562 var delay = 2000;
563 var DELAY_MAX = 60000;
564 function bump(){
565 delay = Math.min(delay * 2, DELAY_MAX);
566 }
567 function resetDelay(){
568 delay = 2000;
569 }
f764c07Claude570 function connect(){
571 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User572 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude573 es.onmessage = function(m){
bf19c50Test User574 resetDelay();
f764c07Claude575 try {
576 var d = JSON.parse(m.data);
577 if (d && d.run_id) {
578 if (!state.latest || state.latest.run_id === d.run_id ||
579 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
580 state.latest = d;
581 render();
582 }
583 }
584 } catch(e){}
585 };
586 es.onerror = function(){
587 try { es.close(); } catch(e){}
bf19c50Test User588 bump();
f764c07Claude589 setTimeout(connect, delay);
590 };
591 }
592 connect();
593 }
594
595 function init(){
596 pill = document.getElementById('deploy-pill');
597 if (!pill) return;
598 dot = pill.querySelector('.deploy-pill-dot');
599 text = pill.querySelector('.deploy-pill-text');
600 fetchLatest();
601 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
602 // without a fresh fetch.
603 setInterval(render, 15000);
604 }
605 if (document.readyState === 'loading') {
606 document.addEventListener('DOMContentLoaded', init);
607 } else {
608 init();
609 }
610 })();
611`;
612
6fc53bdClaude613// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User614// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
615// is honoured for users who explicitly opted in.
6fc53bdClaude616const themeInitScript = `
617 (function(){
618 try {
619 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User620 var t = m ? decodeURIComponent(m[1]) : 'light';
621 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude622 document.documentElement.setAttribute('data-theme', t);
623 } catch(_){}
624 })();
625`;
626
eae38d1Claude627// Block G1 — register service worker for offline / install support.
628// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App629//
cf9178bTest User630// Global toast notifications — reads ?success=, ?error=, ?toast= from the
631// URL on page load and surfaces a polished slide-in toast instead of the
632// per-page banner divs that crowded the layout. Toasts auto-dismiss after
633// 4.5s; query params are scrubbed from the URL via history.replaceState
634// so a subsequent Refresh doesn't re-fire the same toast.
635//
636// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
637// must be URI-encoded (callers already do this via encodeURIComponent
638// in c.redirect()).
639const toastScript = `
640 (function(){
641 function showToast(kind, message){
642 if (!message) return;
643 var host = document.getElementById('toast-host');
644 if (!host) return;
645 var el = document.createElement('div');
646 el.className = 'gx-toast gx-toast--' + kind;
647 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
648 var icon = document.createElement('span');
649 icon.className = 'gx-toast__icon';
650 icon.textContent = kind === 'success' ? '\\u2713'
651 : kind === 'error' ? '\\u00D7'
652 : kind === 'warn' ? '!'
653 : 'i';
654 el.appendChild(icon);
655 var text = document.createElement('span');
656 text.className = 'gx-toast__text';
657 text.textContent = message;
658 el.appendChild(text);
659 var close = document.createElement('button');
660 close.type = 'button';
661 close.className = 'gx-toast__close';
662 close.setAttribute('aria-label', 'Dismiss notification');
663 close.textContent = '\\u00D7';
664 close.addEventListener('click', function(){ dismiss(); });
665 el.appendChild(close);
666 host.appendChild(el);
667 // Force a reflow then add the visible class so the slide-in transitions.
668 void el.offsetWidth;
669 el.classList.add('gx-toast--in');
670 var timer = setTimeout(dismiss, 4500);
671 function dismiss(){
672 clearTimeout(timer);
673 el.classList.remove('gx-toast--in');
674 el.classList.add('gx-toast--out');
675 setTimeout(function(){
676 if (el.parentNode) el.parentNode.removeChild(el);
677 }, 220);
678 }
679 }
680 try {
681 var url = new URL(window.location.href);
682 var hits = 0;
683 var s = url.searchParams.get('success');
684 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
685 var e = url.searchParams.get('error');
686 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
687 var t = url.searchParams.get('toast');
688 if (t) {
689 var ix = t.indexOf(':');
690 var kind = ix > 0 ? t.slice(0, ix) : 'info';
691 var msg = ix > 0 ? t.slice(ix + 1) : t;
692 showToast(kind, msg);
693 url.searchParams.delete('toast');
694 hits++;
695 }
696 if (hits > 0 && window.history && window.history.replaceState) {
697 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
698 }
699 } catch(_) {}
700 })();
701`;
702
44fe49bClaude703// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
704// and pwaInstallBannerScript. Those two scripts registered /sw.js and
705// /sw-push.js at the same scope, causing a reload loop that made the
706// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
707// uncllickable). Per the SW spec, only one SW can control a scope; two
708// different script URLs at the same scope keep replacing each other.
6345c3eTest User709//
44fe49bClaude710// PWA is gone for good. A git host has no use for service workers,
711// install-as-app, or push notifications via SW. This script actively
712// unregisters every previously installed SW on the gluecron.com origin
713// so any browser still trapped in the loop recovers on the very next
714// page load — without needing the user to clear site data or open
715// DevTools. Idempotent and safe to keep running forever; once all
716// browsers have been cleaned, it's a no-op.
717const pwaKillSwitchScript = `
534f04aClaude718(function(){
719 try {
44fe49bClaude720 if (!('serviceWorker' in navigator)) return;
721 if (!navigator.serviceWorker.getRegistrations) return;
722 navigator.serviceWorker.getRegistrations().then(function(regs){
723 if (!regs || regs.length === 0) return;
724 regs.forEach(function(reg){
725 try { reg.unregister(); } catch(_){}
726 });
727 }).catch(function(){});
728 // Also drop any caches the old SWs left behind so the user gets
729 // truly fresh HTML on every page load. Restricted to gluecron-*
730 // namespaced caches so we don't trample anything a future opt-in
731 // feature might create under a different name.
732 if ('caches' in self) {
733 caches.keys().then(function(keys){
734 keys.forEach(function(k){
735 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
736 try { caches.delete(k); } catch(_){}
d7ba05dClaude737 }
738 });
739 }).catch(function(){});
534f04aClaude740 }
741 } catch(_) {}
742})();
743`;
744
3ef4c9dClaude745const navScript = `
746 (function(){
747 var chord = null;
748 var chordTimer = null;
749 function isTyping(t){
750 t = t || {};
751 var tag = (t.tagName || '').toLowerCase();
752 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
753 }
71cd5ecClaude754
755 // ---------- Block I4 — Command palette ----------
756 var COMMANDS = [
757 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
758 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
759 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
760 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
761 { label: 'Create new repository', href: '/new', kw: 'add create' },
762 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
763 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
764 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
765 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
766 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
767 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
768 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
769 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
770 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude771 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude772 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
773 { label: 'Gists', href: '/gists', kw: 'snippets' },
774 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
775 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
776 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
777 ];
778
779 function fuzzyMatch(item, q){
780 if (!q) return true;
781 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
782 q = q.toLowerCase();
783 var qi = 0;
784 for (var i = 0; i < hay.length && qi < q.length; i++) {
785 if (hay[i] === q[qi]) qi++;
786 }
787 return qi === q.length;
788 }
789
790 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
791
792 function render(){
793 if (!list) return;
794 var html = '';
795 for (var i = 0; i < filtered.length; i++) {
796 var item = filtered[i];
797 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
798 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]799 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App800 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude801 '<div>' + item.label + '</div>' +
802 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
803 '</div>';
804 }
805 if (filtered.length === 0) {
dc26881CC LABS App806 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude807 }
808 list.innerHTML = html;
809 }
810
811 function openPalette(){
812 backdrop = document.getElementById('cmdk-backdrop');
813 panel = document.getElementById('cmdk-panel');
814 input = document.getElementById('cmdk-input');
815 list = document.getElementById('cmdk-list');
816 if (!backdrop || !panel) return;
817 backdrop.style.display = 'block';
818 panel.style.display = 'block';
819 input.value = '';
820 selected = 0;
821 filtered = COMMANDS.slice();
822 render();
823 input.focus();
824 }
825 function closePalette(){
826 if (backdrop) backdrop.style.display = 'none';
827 if (panel) panel.style.display = 'none';
828 }
829 function go(href){ closePalette(); window.location.href = href; }
830
831 document.addEventListener('click', function(e){
832 var t = e.target;
833 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
834 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]835 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude836 });
837
838 document.addEventListener('input', function(e){
839 if (e.target && e.target.id === 'cmdk-input') {
840 var q = e.target.value;
841 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
842 selected = 0;
843 render();
844 }
845 });
846
3ef4c9dClaude847 document.addEventListener('keydown', function(e){
71cd5ecClaude848 // Palette-scoped keys take priority when open
849 if (panel && panel.style.display === 'block') {
850 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
851 if (e.key === 'ArrowDown') {
852 e.preventDefault();
853 selected = Math.min(filtered.length - 1, selected + 1);
854 render();
855 return;
856 }
857 if (e.key === 'ArrowUp') {
858 e.preventDefault();
859 selected = Math.max(0, selected - 1);
860 render();
861 return;
862 }
863 if (e.key === 'Enter') {
864 e.preventDefault();
865 var item = filtered[selected];
866 if (item) go(item.href);
867 return;
868 }
869 return;
870 }
871
3ef4c9dClaude872 if (isTyping(e.target)) return;
873 // Single key shortcuts
874 if (e.key === '/') {
875 var el = document.querySelector('.nav-search input');
876 if (el) { e.preventDefault(); el.focus(); return; }
877 }
878 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude879 e.preventDefault();
880 openPalette();
881 return;
3ef4c9dClaude882 }
883 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
884 e.preventDefault(); window.location.href = '/shortcuts'; return;
885 }
886 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
887 e.preventDefault(); window.location.href = '/new'; return;
888 }
889 // "g" chord
890 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
891 chord = 'g';
892 clearTimeout(chordTimer);
893 chordTimer = setTimeout(function(){ chord = null; }, 1200);
894 return;
895 }
896 if (chord === 'g') {
897 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
898 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
899 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
900 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
901 chord = null;
902 }
5882af3Claude903 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
904 if (e.key === 'j' || e.key === 'k') {
905 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
906 var items = Array.from(document.querySelectorAll(selectors));
907 if (items.length === 0) return;
908 e.preventDefault();
909 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
910 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));
911 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
912 items[next].classList.add('is-kbd-focus');
913 items[next].scrollIntoView({ block: 'nearest' });
914 return;
915 }
916 if (e.key === 'Enter') {
917 var focused = document.querySelector('.is-kbd-focus');
918 if (focused) {
919 e.preventDefault();
920 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
921 if (link && link.href) { window.location.href = link.href; }
922 return;
923 }
924 }
925 if (e.key === 'x') {
926 // 'x' selects/deselects focused item (future: bulk actions)
927 var sel = document.querySelector('.is-kbd-focus');
928 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
929 }
3ef4c9dClaude930 });
931 })();
932`;
933
c6018a5Claude934// AI dropdown — keyboard- and click-accessible menu in the top nav.
935// CSS handles the hover-open behaviour for pointer users; this script
936// adds click-to-toggle for touch, Escape-to-close, and outside-click-
937// to-close. Lives in its own IIFE so it never interferes with navScript.
938const navAiDropdownScript = `
939 (function(){
f5b9ef5Claude940 function makeDropdown(rootSel, triggerSel, menuSel) {
941 var open = false;
942 var root = document.querySelector(rootSel);
943 if (!root) return;
944 var trigger = root.querySelector(triggerSel);
945 var menu = root.querySelector(menuSel);
946 if (!trigger || !menu) return;
947 function setOpen(next){
948 open = !!next;
949 root.classList.toggle('is-open', open);
950 menu.classList.toggle('is-open', open);
951 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
952 }
953 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
954 document.addEventListener('click', function(e){
955 if (!open) return;
956 if (root.contains(e.target)) return;
957 setOpen(false);
958 });
959 document.addEventListener('keydown', function(e){
960 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
961 });
c6018a5Claude962 }
f5b9ef5Claude963 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
964 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude965 })();
966`;
967
fc1817aClaude968const css = `
2ce1d0bClaude969 /* ================================================================
958d26aClaude970 * Gluecron design system — 2026.05 "Editorial-Technical"
971 * Slate-noir base · refined violet signature · hairline geometry ·
972 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
973 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude974 * ============================================================== */
6fc53bdClaude975 :root, :root[data-theme='dark'] {
958d26aClaude976 /* Surfaces — slate, not black. More depth, less crush. */
977 --bg: #08090f;
978 --bg-secondary: #0c0d14;
979 --bg-tertiary: #11131c;
980 --bg-elevated: #0f111a;
981 --bg-surface: #161826;
982 --bg-hover: rgba(255,255,255,0.04);
983 --bg-active: rgba(255,255,255,0.08);
984 --bg-inset: rgba(0,0,0,0.30);
985
986 /* Borders — three weights, used deliberately */
987 --border: rgba(255,255,255,0.06);
988 --border-subtle: rgba(255,255,255,0.035);
989 --border-strong: rgba(255,255,255,0.13);
990 --border-focus: rgba(140,109,255,0.55);
991
992 /* Text */
993 --text: #ededf2;
994 --text-strong: #f7f7fb;
995 --text-muted: #8b8c9c;
996 --text-faint: #555665;
997 --text-link: #b69dff;
998
999 /* Accent — refined violet (less candy), warm amber as secondary signal */
1000 --accent: #8c6dff;
1001 --accent-2: #36c5d6;
1002 --accent-warm: #ffb45e;
1003 --accent-hover: #a48bff;
1004 --accent-pressed:#7559e8;
1005 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1006 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1007 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1008 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1009
1010 /* Semantic */
1011 --green: #34d399;
1012 --red: #f87171;
1013 --yellow: #fbbf24;
1014 --amber: #fbbf24;
1015 --blue: #60a5fa;
1016
3a5755eClaude1017 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1018 display (headlines), JetBrains Mono for code. All three loaded from
1019 Google Fonts with display:swap so we never block first paint. System
1020 fallbacks remain in place — if the CDN is unreachable the site still
1021 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1022 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1023 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1024 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1025 --mono-feat: 'calt', 'liga', 'ss01';
1026
1027 /* Radius — sharper than before */
1028 --r-sm: 5px;
1029 --r: 7px;
1030 --r-md: 9px;
1031 --r-lg: 12px;
1032 --r-xl: 16px;
1033 --r-2xl: 22px;
1034 --r-full: 9999px;
1035 --radius: 7px;
1036
1037 /* Type scale — bigger display sizes for editorial feel */
1038 --t-xs: 11px;
1039 --t-sm: 13px;
1040 --t-base: 14px;
1041 --t-md: 16px;
1042 --t-lg: 20px;
1043 --t-xl: 28px;
1044 --t-2xl: 40px;
1045 --t-3xl: 56px;
1046 --t-display: 72px;
1047 --t-display-lg:96px;
1048
1049 /* Spacing — 4px base */
2ce1d0bClaude1050 --s-0: 0;
958d26aClaude1051 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1052 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1053 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1054 --s-20:80px; --s-24:96px; --s-32:128px;
1055
1056 /* Elevation — softer + more layered */
1057 --elev-0: 0 0 0 1px var(--border);
1058 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1059 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1060 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1061 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1062 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1063 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1064 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1065
1066 /* Motion */
1067 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1068 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1069 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1070 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1071 --t-fast: 120ms;
1072 --t-base: 200ms;
1073 --t-slow: 360ms;
1074 --t-slower:560ms;
1075
1076 --header-h: 60px;
c63b860Claude1077
1078 /* Block O3 — visual coherence: named token aliases (additive). */
1079 --space-1: var(--s-1);
1080 --space-2: var(--s-2);
1081 --space-3: var(--s-3);
1082 --space-4: var(--s-4);
1083 --space-5: var(--s-5);
1084 --space-6: var(--s-6);
1085 --space-8: var(--s-8);
1086 --space-10: var(--s-10);
1087 --space-12: var(--s-12);
1088 --space-16: var(--s-16);
1089 --space-20: var(--s-20);
1090 --space-24: var(--s-24);
1091 --radius-sm: var(--r-sm);
1092 --radius-md: var(--r-md);
1093 --radius-lg: var(--r-lg);
1094 --radius-xl: var(--r-xl);
1095 --radius-full: var(--r-full);
1096 --font-size-xs: var(--t-xs);
1097 --font-size-sm: var(--t-sm);
1098 --font-size-base: var(--t-base);
1099 --font-size-md: var(--t-md);
1100 --font-size-lg: var(--t-lg);
1101 --font-size-xl: var(--t-xl);
1102 --font-size-2xl: var(--t-2xl);
1103 --font-size-3xl: var(--t-3xl);
1104 --font-size-hero: var(--t-display);
1105 --leading-tight: 1.2;
1106 --leading-snug: 1.35;
1107 --leading-normal: 1.5;
1108 --leading-relaxed: 1.6;
1109 --leading-loose: 1.7;
1110 --z-base: 1;
1111 --z-nav: 10;
1112 --z-sticky: 50;
1113 --z-overlay: 100;
1114 --z-modal: 1000;
1115 --z-toast: 10000;
fc1817aClaude1116 }
1117
6fc53bdClaude1118 :root[data-theme='light'] {
958d26aClaude1119 --bg: #fbfbfc;
4c47454Claude1120 --bg-secondary: #ffffff;
958d26aClaude1121 --bg-tertiary: #f3f3f6;
1122 --bg-elevated: #ffffff;
1123 --bg-surface: #f6f6f9;
1124 --bg-hover: rgba(0,0,0,0.035);
1125 --bg-active: rgba(0,0,0,0.07);
1126 --bg-inset: rgba(0,0,0,0.04);
1127
1128 --border: rgba(15,16,28,0.08);
1129 --border-subtle: rgba(15,16,28,0.04);
1130 --border-strong: rgba(15,16,28,0.16);
1131
1132 --text: #0e1020;
1133 --text-strong: #050617;
1134 --text-muted: #5a5b70;
1135 --text-faint: #8a8b9e;
1136 --text-link: #6d4dff;
1137
1138 --accent: #6d4dff;
1139 --accent-2: #0891b2;
1140 --accent-hover: #5a3df0;
1141 --accent-pressed:#4a30d6;
1142 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1143
1144 --green: #059669;
1145 --red: #dc2626;
4c47454Claude1146 --yellow: #d97706;
958d26aClaude1147
1148 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1149 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1150 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1151 }
1152
1153 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1154 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1155 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1156 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1157 :root[data-theme='light'] .theme-icon-light { display: none; }
1158
fc1817aClaude1159 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1160 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1161
958d26aClaude1162 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1163
1164 body {
1165 font-family: var(--font-sans);
1166 background: var(--bg);
1167 color: var(--text);
cf9178bTest User1168 font-size: 15px;
2ce1d0bClaude1169 line-height: 1.55;
958d26aClaude1170 letter-spacing: -0.011em;
fc1817aClaude1171 min-height: 100vh;
1172 display: flex;
1173 flex-direction: column;
958d26aClaude1174 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1175 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1176 and disables automatic synthesis of bold/italic which can produce
1177 muddier rendering on certain weights. */
1178 -webkit-font-smoothing: antialiased;
1179 -moz-osx-font-smoothing: grayscale;
1180 font-synthesis: none;
1181 }
1182 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1183 line-height inversely with size so display text doesn't feel airy. */
1184 h1, h2, h3, h4, h5, h6 {
1185 font-family: var(--font-display);
1186 color: var(--text-strong);
1187 letter-spacing: -0.022em;
1188 line-height: 1.18;
1189 font-weight: 650;
1190 margin-top: 0;
1191 }
1192 h1 { font-size: 28px; letter-spacing: -0.028em; }
1193 h2 { font-size: 22px; }
1194 h3 { font-size: 18px; letter-spacing: -0.018em; }
1195 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1196 /* Link refinement — underline only on hover/focus, never by default
1197 on internal nav. Prevents the "blue underline soup" look. */
1198 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1199 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1200 a:focus-visible {
1201 outline: none;
1202 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1203 border-radius: 3px;
fc1817aClaude1204 }
1205
958d26aClaude1206 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1207 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1208 body::before {
1209 content: '';
1210 position: fixed;
1211 inset: 0;
1212 pointer-events: none;
958d26aClaude1213 z-index: -2;
2ce1d0bClaude1214 background:
958d26aClaude1215 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1216 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1217 }
1218 body::after {
1219 content: '';
1220 position: fixed;
1221 inset: 0;
1222 pointer-events: none;
1223 z-index: -1;
1224 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1225 background-size: 28px 28px;
1226 background-position: 0 0;
1227 opacity: 0.55;
1228 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1229 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1230 }
1231 :root[data-theme='light'] body::before { opacity: 0.55; }
1232 :root[data-theme='light'] body::after {
1233 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1234 opacity: 0.4;
fc1817aClaude1235 }
2ce1d0bClaude1236
1237 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1238 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1239
958d26aClaude1240 /* Heading scale — confident, editorial, tight tracking */
1241 h1, h2, h3, h4, h5, h6 {
1242 font-family: var(--font-display);
2ce1d0bClaude1243 font-weight: 600;
958d26aClaude1244 letter-spacing: -0.022em;
1245 line-height: 1.18;
1246 color: var(--text-strong);
1247 }
1248 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1249 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1250 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1251 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1252 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1253
1254 /* Editorial display heading utility — used by landing + marketing pages */
1255 .display {
1256 font-family: var(--font-display);
1257 font-size: clamp(40px, 7.5vw, 96px);
1258 line-height: 0.98;
1259 letter-spacing: -0.04em;
1260 font-weight: 600;
1261 color: var(--text-strong);
2ce1d0bClaude1262 }
fc1817aClaude1263
958d26aClaude1264 /* Eyebrow — uppercase mono label that sits above section headings */
1265 .eyebrow {
1266 display: inline-flex;
1267 align-items: center;
1268 gap: 8px;
1269 font-family: var(--font-mono);
1270 font-size: 11px;
1271 font-weight: 500;
1272 letter-spacing: 0.14em;
1273 text-transform: uppercase;
1274 color: var(--accent);
1275 margin-bottom: var(--s-3);
1276 }
1277 .eyebrow::before {
1278 content: '';
1279 width: 18px;
1280 height: 1px;
1281 background: currentColor;
1282 opacity: 0.6;
1283 }
1284
1285 /* Section header — paired eyebrow + title + lede */
1286 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1287 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1288 .section-header h2 {
1289 font-size: clamp(28px, 4vw, 44px);
1290 line-height: 1.05;
1291 letter-spacing: -0.028em;
1292 margin-bottom: var(--s-3);
1293 }
1294 .section-header p {
1295 color: var(--text-muted);
1296 font-size: var(--t-md);
1297 line-height: 1.6;
1298 max-width: 580px;
1299 margin: 0 auto;
1300 }
1301 .section-header.left p { margin-left: 0; }
fc1817aClaude1302
958d26aClaude1303 code, kbd, samp {
2ce1d0bClaude1304 font-family: var(--font-mono);
958d26aClaude1305 font-feature-settings: var(--mono-feat);
1306 }
1307 code {
1308 font-size: 0.9em;
2ce1d0bClaude1309 background: var(--bg-tertiary);
958d26aClaude1310 border: 1px solid var(--border-subtle);
2ce1d0bClaude1311 padding: 1px 6px;
1312 border-radius: var(--r-sm);
1313 color: var(--text);
1314 }
958d26aClaude1315 kbd, .kbd {
1316 display: inline-flex;
1317 align-items: center;
1318 padding: 1px 6px;
1319 font-family: var(--font-mono);
1320 font-size: 11px;
1321 background: var(--bg-elevated);
1322 border: 1px solid var(--border);
1323 border-bottom-width: 2px;
1324 border-radius: 4px;
1325 color: var(--text);
1326 line-height: 1.5;
1327 vertical-align: middle;
1328 }
2ce1d0bClaude1329
958d26aClaude1330 /* Mono utility for technical chrome (paths, IDs, dates) */
1331 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1332 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1333
1334 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1335 .prelaunch-banner {
958d26aClaude1336 position: relative;
2ce1d0bClaude1337 background:
958d26aClaude1338 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1339 var(--bg);
958d26aClaude1340 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1341 color: var(--yellow);
958d26aClaude1342 padding: 7px 24px;
1343 font-family: var(--font-mono);
1344 font-size: 11px;
4a52a98Claude1345 font-weight: 500;
1346 text-align: center;
2ce1d0bClaude1347 line-height: 1.5;
958d26aClaude1348 letter-spacing: 0.04em;
1349 text-transform: uppercase;
1350 }
1351 .prelaunch-banner::before {
1352 content: '◆';
1353 margin-right: 8px;
1354 font-size: 9px;
1355 opacity: 0.7;
1356 vertical-align: 1px;
4a52a98Claude1357 }
1358
cd4f63bTest User1359 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1360 visitors don't miss the "save your work" CTA, but slim enough to
1361 not feel like a modal. */
1362 .playground-banner {
1363 position: relative;
1364 display: flex;
1365 align-items: center;
1366 justify-content: center;
1367 gap: 8px;
1368 background:
1369 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1370 var(--bg);
1371 border-bottom: 1px solid rgba(251,191,36,0.45);
1372 color: var(--yellow, #fbbf24);
1373 padding: 8px 40px 8px 24px;
1374 font-size: 13px;
1375 font-weight: 500;
1376 text-align: center;
1377 line-height: 1.4;
1378 }
1379 .playground-banner-icon { font-size: 14px; }
1380 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1381 .playground-banner-countdown { font-weight: 600; }
1382 .playground-banner-cta {
1383 margin-left: 4px;
1384 color: var(--yellow, #fbbf24);
1385 text-decoration: underline;
1386 font-weight: 600;
1387 }
1388 .playground-banner-cta:hover { opacity: 0.85; }
1389 .playground-banner-dismiss {
1390 position: absolute;
1391 top: 50%;
1392 right: 12px;
1393 transform: translateY(-50%);
1394 background: transparent;
1395 border: none;
1396 color: var(--text-muted, #8b949e);
1397 font-size: 18px;
1398 line-height: 1;
1399 cursor: pointer;
1400 padding: 0 4px;
1401 }
1402 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1403
958d26aClaude1404 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1405 header {
2ce1d0bClaude1406 position: sticky;
1407 top: 0;
1408 z-index: 100;
fc1817aClaude1409 border-bottom: 1px solid var(--border);
2ce1d0bClaude1410 padding: 0 24px;
1411 height: var(--header-h);
958d26aClaude1412 background: rgba(8,9,15,0.72);
1413 backdrop-filter: saturate(180%) blur(18px);
1414 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1415 }
958d26aClaude1416 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1417
06d5ffeClaude1418 header nav {
1419 display: flex;
1420 align-items: center;
958d26aClaude1421 gap: 18px;
eed4684Claude1422 max-width: 1920px;
06d5ffeClaude1423 margin: 0 auto;
2ce1d0bClaude1424 height: 100%;
1425 }
1426 .logo {
958d26aClaude1427 font-family: var(--font-display);
1428 font-size: 16px;
2ce1d0bClaude1429 font-weight: 700;
958d26aClaude1430 letter-spacing: -0.025em;
1431 color: var(--text-strong);
2ce1d0bClaude1432 display: inline-flex;
1433 align-items: center;
958d26aClaude1434 gap: 9px;
1435 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1436 }
2ce1d0bClaude1437 .logo::before {
1438 content: '';
958d26aClaude1439 width: 20px; height: 20px;
1440 border-radius: 6px;
2ce1d0bClaude1441 background: var(--accent-gradient);
958d26aClaude1442 box-shadow:
1443 inset 0 1px 0 rgba(255,255,255,0.25),
1444 0 0 0 1px rgba(140,109,255,0.45),
1445 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1446 flex-shrink: 0;
958d26aClaude1447 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1448 }
1449 .logo:hover { text-decoration: none; color: var(--text-strong); }
1450 .logo:hover::before {
1451 transform: rotate(8deg) scale(1.05);
1452 box-shadow:
1453 inset 0 1px 0 rgba(255,255,255,0.30),
1454 0 0 0 1px rgba(140,109,255,0.55),
1455 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1456 }
fc1817aClaude1457
2ce1d0bClaude1458 .nav-search {
1459 flex: 1;
958d26aClaude1460 max-width: 360px;
1461 margin: 0 4px 0 8px;
1462 position: relative;
2ce1d0bClaude1463 }
1464 .nav-search input {
1465 width: 100%;
958d26aClaude1466 padding: 7px 12px 7px 32px;
2ce1d0bClaude1467 background: var(--bg-tertiary);
1468 border: 1px solid var(--border);
1469 border-radius: var(--r-sm);
1470 color: var(--text);
1471 font-family: var(--font-sans);
1472 font-size: var(--t-sm);
958d26aClaude1473 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1474 }
1475 .nav-search::before {
1476 content: '';
1477 position: absolute;
1478 left: 11px; top: 50%;
1479 transform: translateY(-50%);
1480 width: 12px; height: 12px;
1481 border: 1.5px solid var(--text-faint);
1482 border-radius: 50%;
1483 pointer-events: none;
1484 }
1485 .nav-search::after {
1486 content: '';
1487 position: absolute;
1488 left: 19px; top: calc(50% + 4px);
1489 width: 5px; height: 1.5px;
1490 background: var(--text-faint);
1491 transform: rotate(45deg);
1492 pointer-events: none;
2ce1d0bClaude1493 }
1494 .nav-search input::placeholder { color: var(--text-faint); }
1495 .nav-search input:focus {
1496 outline: none;
1497 background: var(--bg-secondary);
958d26aClaude1498 border-color: var(--border-focus);
1499 box-shadow: var(--ring);
2ce1d0bClaude1500 }
06d5ffeClaude1501
958d26aClaude1502 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1503
1504 /* Block N3 — site-admin deploy status pill */
1505 .nav-deploy-pill {
1506 display: inline-flex;
1507 align-items: center;
1508 gap: 6px;
1509 padding: 4px 10px;
1510 margin: 0 6px 0 0;
1511 border-radius: 9999px;
1512 font-size: 11px;
1513 font-weight: 600;
1514 line-height: 1;
1515 color: var(--text-strong);
1516 background: var(--bg-elevated);
1517 border: 1px solid var(--border);
1518 text-decoration: none;
1519 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1520 }
1521 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1522 .nav-deploy-pill .deploy-pill-dot {
1523 display: inline-block;
1524 width: 8px; height: 8px;
1525 border-radius: 50%;
1526 background: #6b7280;
1527 }
1528 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1529 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1530 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1531 .deploy-pill-progress .deploy-pill-dot {
1532 background: #fbbf24;
1533 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1534 animation: deployPillPulse 1.2s ease-in-out infinite;
1535 }
1536 @keyframes deployPillPulse {
1537 0%, 100% { opacity: 1; transform: scale(1); }
1538 50% { opacity: 0.45; transform: scale(0.8); }
1539 }
1540 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1541
c6018a5Claude1542 /* ── AI dropdown (nav consolidation) ── */
1543 .nav-ai-dropdown {
1544 position: relative;
1545 display: inline-flex;
1546 align-items: center;
1547 }
1548 .nav-ai-trigger {
1549 background: transparent;
1550 border: 0;
1551 font: inherit;
1552 cursor: pointer;
1553 color: var(--text-muted);
1554 font-size: var(--t-sm);
1555 font-weight: 500;
1556 padding: 7px 11px;
1557 border-radius: var(--r-sm);
1558 line-height: 1.2;
1559 }
1560 .nav-ai-trigger:hover {
1561 color: var(--text-strong);
1562 background: var(--bg-hover);
1563 }
1564 .nav-ai-menu {
1565 position: absolute;
1566 top: calc(100% + 6px);
1567 right: 0;
1568 min-width: 220px;
1569 background: var(--bg-secondary);
1570 border: 1px solid var(--border-strong);
1571 border-radius: 10px;
1572 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1573 padding: 6px;
1574 display: none;
1575 z-index: var(--z-overlay, 100);
1576 }
1577 .nav-ai-dropdown:hover .nav-ai-menu,
1578 .nav-ai-dropdown.is-open .nav-ai-menu,
1579 .nav-ai-dropdown:focus-within .nav-ai-menu {
1580 display: block;
1581 }
1582 .nav-ai-item {
1583 display: flex;
1584 flex-direction: column;
1585 gap: 1px;
1586 padding: 8px 10px;
1587 border-radius: 6px;
1588 color: var(--text);
1589 text-decoration: none;
1590 transition: background var(--t-fast) var(--ease);
1591 }
1592 .nav-ai-item:hover {
1593 background: var(--bg-hover);
1594 text-decoration: none;
1595 color: var(--text-strong);
1596 }
1597 .nav-ai-item-label {
1598 font-size: var(--t-sm);
1599 font-weight: 600;
1600 color: var(--text-strong);
1601 }
1602 .nav-ai-item-sub {
1603 font-size: 11.5px;
1604 color: var(--text-muted);
1605 }
1606
2ce1d0bClaude1607 .nav-link {
958d26aClaude1608 position: relative;
2ce1d0bClaude1609 color: var(--text-muted);
1610 font-size: var(--t-sm);
1611 font-weight: 500;
958d26aClaude1612 padding: 7px 11px;
2ce1d0bClaude1613 border-radius: var(--r-sm);
958d26aClaude1614 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1615 }
1616 .nav-link:hover {
958d26aClaude1617 color: var(--text-strong);
2ce1d0bClaude1618 background: var(--bg-hover);
1619 text-decoration: none;
1620 }
958d26aClaude1621 .nav-link.active { color: var(--text-strong); }
1622 .nav-link.active::after {
1623 content: '';
1624 position: absolute;
1625 left: 11px; right: 11px;
1626 bottom: -1px;
1627 height: 2px;
1628 background: var(--accent-gradient);
1629 border-radius: 2px;
1630 }
adf5e18Claude1631 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1632 so it reads as an action affordance rather than a passive link. */
1633 .nav-migrate {
1634 color: var(--accent);
1635 font-weight: 600;
1636 border: 1px solid rgba(140,109,255,0.22);
1637 background: rgba(140,109,255,0.07);
1638 }
1639 .nav-migrate:hover {
1640 color: var(--accent-hover);
1641 background: rgba(140,109,255,0.13);
1642 border-color: rgba(140,109,255,0.40);
1643 }
1644 @media (max-width: 780px) { .nav-migrate { display: none; } }
1645
2ce1d0bClaude1646 .nav-user {
958d26aClaude1647 color: var(--text-strong);
2ce1d0bClaude1648 font-weight: 600;
1649 font-size: var(--t-sm);
1650 padding: 6px 10px;
1651 border-radius: var(--r-sm);
958d26aClaude1652 margin-left: 6px;
2ce1d0bClaude1653 transition: background var(--t-fast) var(--ease);
1654 }
958d26aClaude1655 .nav-user::before {
1656 content: '';
1657 display: inline-block;
1658 width: 8px; height: 8px;
1659 background: var(--green);
1660 border-radius: 50%;
1661 margin-right: 7px;
1662 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1663 vertical-align: 1px;
1664 }
2ce1d0bClaude1665 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1666
f5b9ef5Claude1667 /* ── Inbox bell button ── */
1668 .nav-inbox-btn {
1669 position: relative;
1670 display: inline-flex;
1671 align-items: center;
1672 justify-content: center;
1673 width: 34px;
1674 height: 34px;
1675 border-radius: var(--r-sm);
1676 color: var(--text-muted);
1677 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1678 flex-shrink: 0;
1679 }
1680 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1681 .nav-inbox-badge {
1682 position: absolute;
1683 top: 3px; right: 3px;
1684 min-width: 15px; height: 15px;
1685 padding: 0 4px;
1686 font-size: 9.5px;
1687 font-weight: 700;
1688 line-height: 15px;
1689 color: #fff;
1690 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1691 border-radius: 9999px;
1692 text-align: center;
1693 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1694 font-variant-numeric: tabular-nums;
1695 }
1696
1697 /* ── User dropdown ── */
1698 .nav-user-dropdown { position: relative; }
1699 .nav-user-trigger {
1700 display: inline-flex;
1701 align-items: center;
1702 gap: 7px;
1703 padding: 5px 9px 5px 5px;
1704 border-radius: var(--r-sm);
1705 border: 1px solid transparent;
1706 background: transparent;
1707 color: var(--text);
1708 font-family: var(--font-sans);
1709 font-size: var(--t-sm);
1710 font-weight: 500;
1711 cursor: pointer;
1712 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1713 }
1714 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1715 .nav-user-avatar {
1716 width: 24px; height: 24px;
1717 border-radius: 50%;
1718 background: var(--accent-gradient);
1719 color: #fff;
1720 font-size: 11px;
1721 font-weight: 700;
1722 display: inline-flex;
1723 align-items: center;
1724 justify-content: center;
1725 flex-shrink: 0;
1726 box-shadow: 0 0 0 2px var(--border);
1727 }
1728 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1729 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1730 .nav-user-menu {
1731 display: none;
1732 position: absolute;
1733 top: calc(100% + 6px);
1734 right: 0;
1735 min-width: 220px;
1736 background: var(--bg-elevated);
1737 border: 1px solid var(--border-strong);
1738 border-radius: var(--r-lg);
1739 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1740 padding: 6px;
1741 z-index: 200;
1742 animation: navMenuIn 140ms var(--ease) both;
1743 }
1744 .nav-user-menu.is-open { display: block; }
1745 .nav-user-menu-header {
1746 padding: 8px 10px 10px;
1747 display: flex;
1748 flex-direction: column;
1749 gap: 2px;
1750 }
1751 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1752 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1753 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1754 .nav-user-item {
1755 display: block;
1756 padding: 7px 10px;
1757 border-radius: 6px;
1758 font-size: var(--t-sm);
1759 color: var(--text);
1760 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1761 white-space: nowrap;
1762 }
1763 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1764 .nav-user-item--danger { color: var(--red); }
1765 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1766
1767 @keyframes navMenuIn {
1768 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1769 to { opacity: 1; transform: translateY(0) scale(1); }
1770 }
1771
2ce1d0bClaude1772 main {
eed4684Claude1773 max-width: 1920px;
2ce1d0bClaude1774 margin: 0 auto;
958d26aClaude1775 padding: 36px 24px 80px;
2ce1d0bClaude1776 flex: 1;
1777 width: 100%;
ed6e438Claude1778 /* 2026 polish — subtle entrance animation on every page load.
1779 Content fades up 4px over 360ms, giving the site that "alive"
1780 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1781 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1782 }
1783 @keyframes gxMainEnter {
1784 from { opacity: 0; transform: translateY(4px); }
1785 to { opacity: 1; transform: translateY(0); }
1786 }
1787 @media (prefers-reduced-motion: reduce) {
1788 main { animation: none; }
1789 }
1790 /* 2026 polish — accent focus ring across all focusable elements.
1791 The default browser ring is utilitarian; this is the same width
1792 but tinted to the brand accent so keyboard navigation feels
1793 intentional, not jarring. :focus-visible only — mouse users
1794 never see it. */
1795 :focus-visible {
1796 outline: none;
1797 }
1798 a:focus-visible,
1799 button:focus-visible,
1800 input:focus-visible,
1801 select:focus-visible,
1802 textarea:focus-visible,
1803 [tabindex]:focus-visible {
1804 outline: 2px solid rgba(140, 109, 255, 0.55);
1805 outline-offset: 2px;
1806 border-radius: 4px;
2ce1d0bClaude1807 }
fc1817aClaude1808
958d26aClaude1809 /* Editorial footer: link grid + tagline row */
fc1817aClaude1810 footer {
1811 border-top: 1px solid var(--border);
958d26aClaude1812 padding: 56px 24px 40px;
fc1817aClaude1813 color: var(--text-muted);
958d26aClaude1814 font-size: var(--t-sm);
1815 background:
1816 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1817 var(--bg);
1818 }
1819 footer .footer-inner {
eed4684Claude1820 max-width: 1920px;
958d26aClaude1821 margin: 0 auto;
1822 display: grid;
1823 grid-template-columns: 1fr auto;
1824 gap: 48px;
1825 align-items: start;
1826 }
1827 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1828 footer .footer-tag {
1829 color: var(--text-muted);
1830 font-size: var(--t-sm);
1831 max-width: 320px;
1832 line-height: 1.55;
1833 }
1834 footer .footer-links {
1835 display: grid;
1836 grid-template-columns: repeat(3, minmax(120px, auto));
1837 gap: 0 56px;
1838 }
1839 footer .footer-col-title {
1840 font-family: var(--font-mono);
1841 font-size: 11px;
1842 text-transform: uppercase;
1843 letter-spacing: 0.14em;
1844 color: var(--text-faint);
1845 margin-bottom: var(--s-3);
1846 }
1847 footer .footer-col a {
1848 display: block;
1849 color: var(--text-muted);
1850 font-size: var(--t-sm);
1851 padding: 5px 0;
1852 transition: color var(--t-fast) var(--ease);
1853 }
1854 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1855 footer .footer-bottom {
eed4684Claude1856 max-width: 1920px;
958d26aClaude1857 margin: 40px auto 0;
1858 padding-top: 24px;
1859 border-top: 1px solid var(--border-subtle);
1860 display: flex;
1861 justify-content: space-between;
1862 align-items: center;
2ce1d0bClaude1863 color: var(--text-faint);
1864 font-size: var(--t-xs);
958d26aClaude1865 font-family: var(--font-mono);
1866 letter-spacing: 0.02em;
1867 }
1868 footer .footer-bottom a { color: var(--text-faint); }
1869 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1870 footer .footer-build {
1871 display: inline-flex;
1872 align-items: center;
1873 gap: 6px;
1874 color: var(--text-faint);
1875 font-family: var(--font-mono);
1876 font-size: 11px;
1877 cursor: help;
1878 }
1879 footer .footer-build-dot {
1880 width: 6px; height: 6px;
1881 border-radius: 50%;
1882 background: var(--green);
1883 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1884 animation: footer-build-pulse 2.4s ease-in-out infinite;
1885 }
1886 @keyframes footer-build-pulse {
1887 0%, 100% { opacity: 0.6; }
1888 50% { opacity: 1; }
1889 }
958d26aClaude1890 @media (max-width: 768px) {
1891 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1892 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1893 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1894 }
1895
2ce1d0bClaude1896 /* ============================================================ */
1897 /* Buttons */
1898 /* ============================================================ */
dc26881CC LABS App1899 /* ============================================================ */
1900 /* Buttons — Block U2 senior polish pass. */
1901 /* Rules: */
1902 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1903 /* · active presses back down to 0 (80ms — faster on press) */
1904 /* · focus-visible uses a soft box-shadow ring (no outline) */
1905 /* · primary gradient shifts position on hover for a slow */
1906 /* 600ms shimmer */
1907 /* · disabled never lifts and never animates */
1908 /* ============================================================ */
06d5ffeClaude1909 .btn {
1910 display: inline-flex;
1911 align-items: center;
2ce1d0bClaude1912 justify-content: center;
958d26aClaude1913 gap: 7px;
2ce1d0bClaude1914 padding: 7px 14px;
1915 border-radius: var(--r-sm);
958d26aClaude1916 font-family: var(--font-sans);
2ce1d0bClaude1917 font-size: var(--t-sm);
06d5ffeClaude1918 font-weight: 500;
1919 border: 1px solid var(--border);
2ce1d0bClaude1920 background: var(--bg-elevated);
06d5ffeClaude1921 color: var(--text);
1922 cursor: pointer;
1923 text-decoration: none;
958d26aClaude1924 line-height: 1.25;
1925 letter-spacing: -0.008em;
dc26881CC LABS App1926 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1927 Listed once on the base rule so :active can override only the
1928 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1929 transition:
dc26881CC LABS App1930 background 180ms ease,
1931 border-color 180ms ease,
1932 transform 180ms ease,
1933 box-shadow 180ms ease,
1934 color 180ms ease;
2ce1d0bClaude1935 user-select: none;
1936 white-space: nowrap;
958d26aClaude1937 position: relative;
06d5ffeClaude1938 }
2ce1d0bClaude1939 .btn:hover {
1940 background: var(--bg-surface);
1941 border-color: var(--border-strong);
958d26aClaude1942 color: var(--text-strong);
2ce1d0bClaude1943 text-decoration: none;
dc26881CC LABS App1944 /* U2 — universal hover lift + soft accent drop shadow. */
1945 transform: translateY(-1px);
1946 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1947 }
1948 .btn:active {
1949 transform: translateY(0);
1950 transition-duration: 80ms;
1951 }
1952 /* U2 — soft modern focus ring via box-shadow, not outline. */
1953 .btn:focus-visible {
1954 outline: none;
1955 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1956 }
1957
1958 .btn-primary {
1959 background: var(--accent-gradient);
dc26881CC LABS App1960 background-size: 200% 100%;
1961 background-position: 0% 50%;
2ce1d0bClaude1962 border-color: transparent;
1963 color: #fff;
1964 font-weight: 600;
958d26aClaude1965 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1966 box-shadow:
958d26aClaude1967 inset 0 1px 0 rgba(255,255,255,0.22),
1968 inset 0 -1px 0 rgba(0,0,0,0.10),
1969 0 1px 2px rgba(0,0,0,0.40),
1970 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1971 /* U2 — slower 600ms transition on background-position so the
1972 primary CTA shimmers when the cursor lands. */
1973 transition:
1974 background-position 600ms ease,
1975 transform 180ms ease,
1976 box-shadow 180ms ease,
1977 color 180ms ease;
06d5ffeClaude1978 }
958d26aClaude1979 .btn-primary::before {
1980 content: '';
1981 position: absolute;
1982 inset: 0;
1983 border-radius: inherit;
1984 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1985 opacity: 0;
1986 transition: opacity var(--t-fast) var(--ease);
1987 pointer-events: none;
2ce1d0bClaude1988 }
1989 .btn-primary:hover {
958d26aClaude1990 color: #fff;
2ce1d0bClaude1991 background: var(--accent-gradient);
dc26881CC LABS App1992 background-size: 200% 100%;
1993 background-position: 100% 50%;
958d26aClaude1994 border-color: transparent;
dc26881CC LABS App1995 transform: translateY(-1px);
2ce1d0bClaude1996 box-shadow:
958d26aClaude1997 inset 0 1px 0 rgba(255,255,255,0.30),
1998 inset 0 -1px 0 rgba(0,0,0,0.10),
1999 0 6px 18px -4px rgba(140,109,255,0.45),
2000 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude2001 }
958d26aClaude2002 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App2003 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2004 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2005 .btn-primary:focus-visible {
2006 box-shadow:
2007 inset 0 1px 0 rgba(255,255,255,0.22),
2008 0 0 0 3px rgba(140,109,255,0.35);
2009 }
2ce1d0bClaude2010
2011 .btn-danger {
2012 background: transparent;
958d26aClaude2013 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2014 color: var(--red);
2015 }
2016 .btn-danger:hover {
958d26aClaude2017 background: rgba(248,113,113,0.08);
2ce1d0bClaude2018 border-color: var(--red);
958d26aClaude2019 color: var(--red);
dc26881CC LABS App2020 transform: translateY(-1px);
2021 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2022 }
dc26881CC LABS App2023 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2024
2025 .btn-ghost {
2026 background: transparent;
2027 border-color: transparent;
2028 color: var(--text-muted);
2029 }
2030 .btn-ghost:hover {
2031 background: var(--bg-hover);
958d26aClaude2032 color: var(--text-strong);
2ce1d0bClaude2033 border-color: var(--border);
dc26881CC LABS App2034 transform: translateY(-1px);
2035 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2036 }
2037
958d26aClaude2038 .btn-secondary {
2039 background: var(--bg-elevated);
2040 border-color: var(--border-strong);
2041 color: var(--text-strong);
2042 }
2043 .btn-secondary:hover {
2044 background: var(--bg-surface);
2045 border-color: var(--border-strong);
dc26881CC LABS App2046 transform: translateY(-1px);
2047 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2048 }
2049
2050 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2051 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2052 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2053 .btn-block { width: 100%; }
2ce1d0bClaude2054
dc26881CC LABS App2055 /* U2 — disabled never lifts, never shimmers, never glows. */
2056 .btn:disabled,
2057 .btn[aria-disabled='true'],
2058 .btn:disabled:hover,
2059 .btn[aria-disabled='true']:hover {
2060 opacity: 0.5;
2ce1d0bClaude2061 cursor: not-allowed;
2062 pointer-events: none;
dc26881CC LABS App2063 transform: none;
2064 box-shadow: none;
2065 }
2066 @media (prefers-reduced-motion: reduce) {
2067 .btn,
2068 .btn:hover,
2069 .btn:active,
2070 .btn-primary,
2071 .btn-primary:hover {
2072 transform: none;
2073 transition: background-color 80ms linear, color 80ms linear;
2074 }
2ce1d0bClaude2075 }
2076
2077 /* ============================================================ */
2078 /* Forms */
2079 /* ============================================================ */
2080 .form-group { margin-bottom: 20px; }
2081 .form-group label {
2082 display: block;
2083 font-size: var(--t-sm);
2084 font-weight: 500;
2085 margin-bottom: 6px;
2086 color: var(--text);
2087 letter-spacing: -0.005em;
2088 }
2089 .form-group input,
2090 .form-group textarea,
2091 .form-group select,
2092 input[type='text'], input[type='email'], input[type='password'],
2093 input[type='url'], input[type='search'], input[type='number'],
2094 textarea, select {
06d5ffeClaude2095 width: 100%;
2ce1d0bClaude2096 padding: 9px 12px;
2097 background: var(--bg-secondary);
06d5ffeClaude2098 border: 1px solid var(--border);
2ce1d0bClaude2099 border-radius: var(--r-sm);
06d5ffeClaude2100 color: var(--text);
2ce1d0bClaude2101 font-size: var(--t-sm);
06d5ffeClaude2102 font-family: var(--font-sans);
2ce1d0bClaude2103 transition:
2104 border-color var(--t-fast) var(--ease),
2105 background var(--t-fast) var(--ease),
2106 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2107 }
2ce1d0bClaude2108 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2109 color: var(--text-faint);
06d5ffeClaude2110 }
2ce1d0bClaude2111 .form-group input:hover, textarea:hover, select:hover,
2112 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2113 border-color: var(--border-strong);
2114 }
2115 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2116 input:focus, textarea:focus, select:focus {
06d5ffeClaude2117 outline: none;
2ce1d0bClaude2118 background: var(--bg);
2119 border-color: var(--border-focus);
2120 box-shadow: var(--ring);
06d5ffeClaude2121 }
2ce1d0bClaude2122 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2123 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2124
2ce1d0bClaude2125 /* ============================================================ */
2126 /* Auth (register / login / verify) */
2127 /* ============================================================ */
2128 .auth-container {
98f45b4Claude2129 /* 2026 polish — wider, more generous, with a subtle accent-glow
2130 border and gradient top-edge so it reads as a premium product
2131 gateway, not a stock form. The 480px width feels intentional
2132 (not cramped, not endless). */
2133 max-width: 480px;
2134 margin: 72px auto;
2135 padding: 40px 40px 36px;
2ce1d0bClaude2136 background: var(--bg-elevated);
2137 border: 1px solid var(--border);
98f45b4Claude2138 border-radius: 16px;
2139 box-shadow:
2140 var(--elev-2),
2141 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2142 position: relative;
2143 overflow: hidden;
2144 }
2145 .auth-container::before {
2146 /* Hairline gradient accent on the top edge — signals 'AI-native'
2147 without shouting. Pointer-events disabled so it never interferes
2148 with form interactions. */
2149 content: '';
2150 position: absolute;
2151 top: 0;
2152 left: 0;
2153 right: 0;
2154 height: 2px;
2155 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2156 opacity: 0.7;
2157 pointer-events: none;
2ce1d0bClaude2158 }
2159 .auth-container h2 {
98f45b4Claude2160 margin: 0 0 8px;
2161 font-size: 28px;
2162 font-weight: 700;
2163 font-family: var(--font-display);
2164 letter-spacing: -0.025em;
2165 color: var(--text-strong);
2166 line-height: 1.15;
2167 }
2168 .auth-container .auth-subtitle {
2169 color: var(--text-muted);
2170 font-size: 14.5px;
2171 line-height: 1.5;
2172 margin: 0 0 24px;
2ce1d0bClaude2173 }
2174 .auth-container > p {
2175 color: var(--text-muted);
2176 font-size: var(--t-sm);
2177 margin-bottom: 24px;
2178 }
98f45b4Claude2179 .auth-container .btn-primary {
2180 width: 100%;
2181 padding: 12px 16px;
2182 font-size: 15px;
2183 font-weight: 600;
2184 margin-top: 4px;
2185 }
582cdacClaude2186
2187 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2188 with a brand-coloured logo on the left and a label centred-trailing.
2189 Hover lifts 1px with a subtle shadow — matches the rest of the
2190 button system but reads as a brand-affiliated action, not a brand-
2191 coloured primary CTA. */
2192 .auth-container .oauth-btn {
2193 display: flex;
2194 align-items: center;
2195 justify-content: center;
2196 gap: 10px;
2197 width: 100%;
2198 padding: 11px 16px;
2199 background: var(--bg-surface, var(--bg-elevated));
2200 border: 1px solid var(--border);
2201 border-radius: var(--r-md, 8px);
2202 color: var(--text-strong);
2203 font-family: var(--font-sans);
2204 font-size: 14.5px;
2205 font-weight: 500;
2206 text-decoration: none;
2207 transition:
2208 transform var(--t-base, 180ms) var(--ease, ease),
2209 box-shadow var(--t-base, 180ms) var(--ease, ease),
2210 background var(--t-fast, 120ms) var(--ease, ease),
2211 border-color var(--t-fast, 120ms) var(--ease, ease);
2212 }
2213 .auth-container .oauth-btn:hover {
2214 transform: translateY(-1px);
2215 background: var(--bg-hover);
2216 border-color: var(--text-muted);
2217 color: var(--text-strong);
2218 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2219 text-decoration: none;
2220 }
2221 .auth-container .oauth-btn:focus-visible {
2222 outline: 2px solid rgba(140, 109, 255, 0.55);
2223 outline-offset: 2px;
2224 }
2225 .auth-container .oauth-btn .oauth-icon {
2226 flex-shrink: 0;
2227 }
2228 /* GitHub icon adopts the text colour so it reads in both themes. */
2229 .auth-container .oauth-github .oauth-icon {
2230 color: var(--text-strong);
2231 }
2232 /* Google logo uses the official 4-colour treatment via inline SVG fill
2233 attributes — nothing to override here. */
2234 /* "or" divider between the password form and provider buttons */
2235 .auth-container .auth-divider {
2236 display: flex;
2237 align-items: center;
2238 gap: 12px;
2239 margin: 20px 0 12px;
2240 color: var(--text-faint);
2241 font-size: 12px;
2242 letter-spacing: 0.08em;
2243 text-transform: uppercase;
2244 }
2245 .auth-container .auth-divider::before,
2246 .auth-container .auth-divider::after {
2247 content: '';
2248 flex: 1;
2249 height: 1px;
2250 background: var(--border);
2251 }
06d5ffeClaude2252 .auth-error {
958d26aClaude2253 background: rgba(248,113,113,0.08);
2254 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2255 color: var(--red);
2ce1d0bClaude2256 padding: 10px 14px;
2257 border-radius: var(--r-sm);
06d5ffeClaude2258 margin-bottom: 16px;
2ce1d0bClaude2259 font-size: var(--t-sm);
06d5ffeClaude2260 }
2261 .auth-success {
958d26aClaude2262 background: rgba(52,211,153,0.08);
2263 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2264 color: var(--green);
2ce1d0bClaude2265 padding: 10px 14px;
2266 border-radius: var(--r-sm);
06d5ffeClaude2267 margin-bottom: 16px;
2ce1d0bClaude2268 font-size: var(--t-sm);
2269 }
2270 .auth-switch {
2271 margin-top: 20px;
2272 font-size: var(--t-sm);
2273 color: var(--text-muted);
2274 text-align: center;
2275 }
2276 .banner {
2277 background: var(--accent-gradient-faint);
958d26aClaude2278 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2279 color: var(--text);
2280 padding: 10px 14px;
2281 border-radius: var(--r-sm);
2282 font-size: var(--t-sm);
06d5ffeClaude2283 }
2284
2ce1d0bClaude2285 /* ============================================================ */
2286 /* Settings */
2287 /* ============================================================ */
2288 .settings-container { max-width: 720px; }
2289 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2290 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2291 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2292 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2293 .ssh-keys-list { margin-bottom: 24px; }
2294 .ssh-key-item {
2295 display: flex;
2296 justify-content: space-between;
2297 align-items: center;
2ce1d0bClaude2298 padding: 14px 16px;
06d5ffeClaude2299 border: 1px solid var(--border);
2ce1d0bClaude2300 border-radius: var(--r-md);
06d5ffeClaude2301 margin-bottom: 8px;
2ce1d0bClaude2302 background: var(--bg-elevated);
2303 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2304 }
2ce1d0bClaude2305 .ssh-key-item:hover { border-color: var(--border-strong); }
2306 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2307 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2308
2ce1d0bClaude2309 /* ============================================================ */
2310 /* Repo header + nav */
2311 /* ============================================================ */
fc1817aClaude2312 .repo-header {
2313 display: flex;
2314 align-items: center;
debcf27Claude2315 gap: 12px;
2316 margin-bottom: 22px;
2317 }
2318 .repo-header-title {
2319 display: flex;
2320 align-items: center;
2321 gap: 10px;
2322 font-family: var(--font-display);
2323 font-size: 24px;
2324 letter-spacing: -0.025em;
2325 flex-wrap: wrap;
2326 }
2327 .repo-header .owner {
2328 color: var(--text-muted);
2329 font-weight: 500;
2330 transition: color var(--t-fast) var(--ease);
2331 }
2332 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2333 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2334 .repo-header .name {
2335 color: var(--text-strong);
2336 font-weight: 700;
2337 letter-spacing: -0.028em;
fc1817aClaude2338 }
2ce1d0bClaude2339 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2340 .repo-header-fork {
2341 font-family: var(--font-mono);
2342 font-size: 11px;
2343 color: var(--text-muted);
2344 margin-top: 4px;
2345 letter-spacing: 0.01em;
2346 }
2347 .repo-header-fork a { color: var(--text-muted); }
2348 .repo-header-fork a:hover { color: var(--accent); }
2349 .repo-header-pill {
2350 display: inline-flex;
2351 align-items: center;
2352 padding: 2px 10px;
2353 border-radius: var(--r-full);
2354 font-family: var(--font-mono);
2355 font-size: 10px;
2356 font-weight: 600;
2357 letter-spacing: 0.12em;
2358 text-transform: uppercase;
2359 line-height: 1.6;
2360 vertical-align: 4px;
2361 }
2362 .repo-header-pill-archived {
2363 background: rgba(251,191,36,0.10);
2364 color: var(--yellow);
2365 border: 1px solid rgba(251,191,36,0.30);
2366 }
2367 .repo-header-pill-template {
2368 background: var(--accent-gradient-faint);
2369 color: var(--accent);
2370 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2371 }
06d5ffeClaude2372 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2373
8c790e0Claude2374 /* Push Watch discoverability — live/recent indicator in the repo header */
2375 @keyframes pushWatchPulse {
2376 0%, 100% { opacity: 1; }
2377 50% { opacity: 0.3; }
2378 }
2379 .repo-header-live-badge {
2380 display: inline-flex;
2381 align-items: center;
2382 gap: 5px;
2383 padding: 2px 9px;
2384 border-radius: 999px;
2385 font-size: 12px;
2386 font-weight: 600;
2387 letter-spacing: 0.02em;
2388 text-decoration: none !important;
2389 vertical-align: 3px;
2390 transition: filter 140ms ease, opacity 140ms ease;
2391 }
2392 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2393 .repo-header-live-badge--live {
2394 background: rgba(218, 54, 51, 0.12);
2395 color: #f97171;
2396 border: 1px solid rgba(218, 54, 51, 0.35);
2397 }
2398 .repo-header-live-badge--live .repo-header-live-dot {
2399 animation: pushWatchPulse 1.2s ease-in-out infinite;
2400 display: inline-block;
2401 }
2402 .repo-header-live-badge--recent {
2403 background: rgba(140, 109, 255, 0.08);
2404 color: var(--text-muted);
2405 border: 1px solid rgba(140, 109, 255, 0.22);
2406 }
2407 .repo-header-live-badge--recent:hover { color: var(--accent); }
2408 @media (prefers-reduced-motion: reduce) {
2409 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2410 }
2411
fc1817aClaude2412 .repo-nav {
2413 display: flex;
debcf27Claude2414 gap: 1px;
fc1817aClaude2415 border-bottom: 1px solid var(--border);
debcf27Claude2416 margin-bottom: 28px;
2ce1d0bClaude2417 overflow-x: auto;
2418 scrollbar-width: thin;
fc1817aClaude2419 }
2ce1d0bClaude2420 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2421 .repo-nav a {
debcf27Claude2422 position: relative;
2423 padding: 11px 14px;
fc1817aClaude2424 color: var(--text-muted);
2425 border-bottom: 2px solid transparent;
2ce1d0bClaude2426 font-size: var(--t-sm);
2427 font-weight: 500;
2428 margin-bottom: -1px;
debcf27Claude2429 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2430 white-space: nowrap;
2431 }
debcf27Claude2432 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2433 .repo-nav a.active {
debcf27Claude2434 color: var(--text-strong);
2435 font-weight: 600;
2436 }
2437 .repo-nav a.active::after {
2438 content: '';
2439 position: absolute;
2440 left: 14px;
2441 right: 14px;
2442 bottom: -1px;
2443 height: 2px;
2444 background: var(--accent-gradient);
2445 border-radius: 2px;
2446 }
2447 /* AI links in the right-side cluster — sparkle accent */
2448 .repo-nav-ai {
2449 color: var(--accent) !important;
2450 font-weight: 500;
2451 }
2452 .repo-nav-ai:hover {
2453 color: var(--accent-hover) !important;
2454 background: var(--accent-gradient-faint) !important;
2455 }
2456 .repo-nav-ai.active {
2457 color: var(--accent-hover) !important;
2ce1d0bClaude2458 font-weight: 600;
fc1817aClaude2459 }
2460
2ce1d0bClaude2461 .breadcrumb {
2462 display: flex;
debcf27Claude2463 gap: 6px;
2ce1d0bClaude2464 align-items: center;
debcf27Claude2465 margin-bottom: 18px;
2ce1d0bClaude2466 color: var(--text-muted);
2467 font-size: var(--t-sm);
2468 font-family: var(--font-mono);
debcf27Claude2469 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2470 }
2471 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2472 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2473 .breadcrumb strong {
2474 color: var(--text-strong);
2475 font-weight: 600;
fc1817aClaude2476 }
2477
debcf27Claude2478 /* Page header — eyebrow + title + optional actions row.
2479 Use on dashboard, settings, admin, any "section landing" page. */
2480 .page-header {
2481 display: flex;
2482 align-items: flex-end;
2483 justify-content: space-between;
2484 gap: 16px;
2485 margin-bottom: 28px;
2486 padding-bottom: 20px;
2487 border-bottom: 1px solid var(--border-subtle);
2488 flex-wrap: wrap;
2489 }
2490 .page-header-text { flex: 1; min-width: 280px; }
2491 .page-header .eyebrow { margin-bottom: var(--s-2); }
2492 .page-header h1 {
2493 font-family: var(--font-display);
2494 font-size: clamp(24px, 3vw, 36px);
2495 line-height: 1.1;
2496 letter-spacing: -0.028em;
2497 margin-bottom: 6px;
2498 }
2499 .page-header p {
2500 color: var(--text-muted);
2501 font-size: var(--t-sm);
2502 line-height: 1.55;
2503 max-width: 640px;
2504 }
2505 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2506
2ce1d0bClaude2507 /* ============================================================ */
2508 /* File browser table */
2509 /* ============================================================ */
2510 .file-table {
2511 width: 100%;
2512 border: 1px solid var(--border);
2513 border-radius: var(--r-md);
2514 overflow: hidden;
2515 background: var(--bg-elevated);
debcf27Claude2516 border-collapse: collapse;
2ce1d0bClaude2517 }
debcf27Claude2518 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2519 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2520 .file-table td {
2521 padding: 9px 16px;
2522 font-size: var(--t-sm);
2523 font-family: var(--font-mono);
2524 font-feature-settings: var(--mono-feat);
2525 }
2ce1d0bClaude2526 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2527 .file-icon {
2528 width: 22px;
2529 color: var(--text-faint);
2530 font-size: 13px;
2531 text-align: center;
2532 }
2533 .file-name a {
2534 color: var(--text);
2535 font-weight: 500;
2536 transition: color var(--t-fast) var(--ease);
2537 }
2538 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2539
2ce1d0bClaude2540 /* ============================================================ */
2541 /* Blob view */
2542 /* ============================================================ */
fc1817aClaude2543 .blob-view {
2544 border: 1px solid var(--border);
2ce1d0bClaude2545 border-radius: var(--r-md);
fc1817aClaude2546 overflow: hidden;
2ce1d0bClaude2547 background: var(--bg-elevated);
fc1817aClaude2548 }
2549 .blob-header {
2550 background: var(--bg-secondary);
2ce1d0bClaude2551 padding: 10px 16px;
fc1817aClaude2552 border-bottom: 1px solid var(--border);
2ce1d0bClaude2553 font-size: var(--t-sm);
fc1817aClaude2554 color: var(--text-muted);
06d5ffeClaude2555 display: flex;
2556 justify-content: space-between;
2557 align-items: center;
fc1817aClaude2558 }
2559 .blob-code {
2560 overflow-x: auto;
2561 font-family: var(--font-mono);
2ce1d0bClaude2562 font-size: var(--t-sm);
2563 line-height: 1.65;
fc1817aClaude2564 }
2565 .blob-code table { width: 100%; border-collapse: collapse; }
2566 .blob-code .line-num {
2567 width: 1%;
2ce1d0bClaude2568 min-width: 56px;
2569 padding: 0 14px;
fc1817aClaude2570 text-align: right;
2ce1d0bClaude2571 color: var(--text-faint);
fc1817aClaude2572 user-select: none;
2573 white-space: nowrap;
2574 border-right: 1px solid var(--border);
2575 }
2ce1d0bClaude2576 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2577 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2578
2ce1d0bClaude2579 /* ============================================================ */
2580 /* Commits + diffs */
2581 /* ============================================================ */
2582 .commit-list {
2583 border: 1px solid var(--border);
2584 border-radius: var(--r-md);
2585 overflow: hidden;
2586 background: var(--bg-elevated);
2587 }
fc1817aClaude2588 .commit-item {
2589 display: flex;
2590 justify-content: space-between;
2591 align-items: center;
debcf27Claude2592 padding: 14px 18px;
2593 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2594 transition: background var(--t-fast) var(--ease);
fc1817aClaude2595 }
2596 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2597 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2598 .commit-message {
2599 font-size: var(--t-sm);
2600 font-weight: 500;
2601 line-height: 1.45;
2602 color: var(--text-strong);
2603 letter-spacing: -0.005em;
2604 }
2605 .commit-meta {
2606 font-family: var(--font-mono);
2607 font-size: 11px;
2608 color: var(--text-muted);
2609 margin-top: 5px;
2610 letter-spacing: 0.01em;
2611 }
fc1817aClaude2612 .commit-sha {
2613 font-family: var(--font-mono);
debcf27Claude2614 font-feature-settings: var(--mono-feat);
2615 font-size: 11px;
2616 padding: 4px 9px;
fc1817aClaude2617 background: var(--bg-tertiary);
2618 border: 1px solid var(--border);
2ce1d0bClaude2619 border-radius: var(--r-sm);
debcf27Claude2620 color: var(--accent);
2621 font-weight: 600;
2622 letter-spacing: 0.02em;
2ce1d0bClaude2623 transition: all var(--t-fast) var(--ease);
fc1817aClaude2624 }
debcf27Claude2625 .commit-sha:hover {
2626 border-color: rgba(140,109,255,0.40);
2627 background: var(--accent-gradient-faint);
2628 color: var(--accent-hover);
2629 text-decoration: none;
fc1817aClaude2630 }
2631
2632 .diff-view { margin-top: 16px; }
2633 .diff-file {
2634 border: 1px solid var(--border);
2ce1d0bClaude2635 border-radius: var(--r-md);
fc1817aClaude2636 margin-bottom: 16px;
2637 overflow: hidden;
2ce1d0bClaude2638 background: var(--bg-elevated);
fc1817aClaude2639 }
2640 .diff-file-header {
2641 background: var(--bg-secondary);
2ce1d0bClaude2642 padding: 10px 16px;
fc1817aClaude2643 border-bottom: 1px solid var(--border);
2644 font-family: var(--font-mono);
2ce1d0bClaude2645 font-size: var(--t-sm);
2646 font-weight: 500;
fc1817aClaude2647 }
2648 .diff-content {
2649 overflow-x: auto;
2650 font-family: var(--font-mono);
2ce1d0bClaude2651 font-size: var(--t-sm);
2652 line-height: 1.65;
fc1817aClaude2653 }
958d26aClaude2654 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2655 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2656 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2657 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2658
2659 .stat-add { color: var(--green); font-weight: 600; }
2660 .stat-del { color: var(--red); font-weight: 600; }
2661
2ce1d0bClaude2662 /* ============================================================ */
2663 /* Empty state */
2664 /* ============================================================ */
fc1817aClaude2665 .empty-state {
2666 text-align: center;
958d26aClaude2667 padding: 96px 24px;
fc1817aClaude2668 color: var(--text-muted);
2ce1d0bClaude2669 border: 1px dashed var(--border);
2670 border-radius: var(--r-lg);
958d26aClaude2671 background:
2672 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2673 var(--bg-elevated);
2674 position: relative;
2675 overflow: hidden;
2676 }
2677 .empty-state::before {
2678 content: '';
2679 position: absolute;
2680 inset: 0;
2681 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2682 background-size: 24px 24px;
2683 opacity: 0.5;
2684 pointer-events: none;
2685 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2686 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2687 }
2688 :root[data-theme='light'] .empty-state::before {
2689 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2690 }
958d26aClaude2691 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2692 .empty-state h2 {
958d26aClaude2693 font-size: var(--t-xl);
2ce1d0bClaude2694 margin-bottom: 8px;
958d26aClaude2695 color: var(--text-strong);
2696 letter-spacing: -0.022em;
2ce1d0bClaude2697 }
958d26aClaude2698 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2699 .empty-state pre {
2700 text-align: left;
2701 display: inline-block;
2702 background: var(--bg-secondary);
958d26aClaude2703 padding: 18px 24px;
2704 border-radius: var(--r-md);
fc1817aClaude2705 border: 1px solid var(--border);
2706 font-family: var(--font-mono);
958d26aClaude2707 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2708 font-size: var(--t-sm);
958d26aClaude2709 margin-top: 24px;
fc1817aClaude2710 line-height: 1.8;
2ce1d0bClaude2711 color: var(--text);
958d26aClaude2712 box-shadow: var(--elev-1);
fc1817aClaude2713 }
2714
2ce1d0bClaude2715 /* ============================================================ */
2716 /* Badges */
2717 /* ============================================================ */
fc1817aClaude2718 .badge {
2ce1d0bClaude2719 display: inline-flex;
2720 align-items: center;
2721 gap: 4px;
2722 padding: 2px 9px;
2723 border-radius: var(--r-full);
2724 font-size: var(--t-xs);
fc1817aClaude2725 font-weight: 500;
2726 background: var(--bg-tertiary);
2727 border: 1px solid var(--border);
2728 color: var(--text-muted);
2ce1d0bClaude2729 line-height: 1.5;
fc1817aClaude2730 }
2731
2ce1d0bClaude2732 /* ============================================================ */
2733 /* Branch dropdown */
2734 /* ============================================================ */
fc1817aClaude2735 .branch-selector {
2736 display: inline-flex;
2737 align-items: center;
2ce1d0bClaude2738 gap: 6px;
2739 padding: 6px 12px;
2740 background: var(--bg-elevated);
fc1817aClaude2741 border: 1px solid var(--border);
2ce1d0bClaude2742 border-radius: var(--r-sm);
2743 font-size: var(--t-sm);
fc1817aClaude2744 color: var(--text);
2745 margin-bottom: 12px;
2ce1d0bClaude2746 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2747 }
2ce1d0bClaude2748 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2749
06d5ffeClaude2750 .branch-dropdown {
2751 position: relative;
2752 display: inline-block;
2753 margin-bottom: 12px;
2754 }
2755 .branch-dropdown-content {
2756 display: none;
2757 position: absolute;
2ce1d0bClaude2758 top: calc(100% + 4px);
06d5ffeClaude2759 left: 0;
2760 z-index: 10;
2ce1d0bClaude2761 min-width: 220px;
2762 background: var(--bg-elevated);
2763 border: 1px solid var(--border-strong);
2764 border-radius: var(--r-md);
2765 overflow: hidden;
2766 box-shadow: var(--elev-3);
06d5ffeClaude2767 }
2768 .branch-dropdown:hover .branch-dropdown-content,
2769 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2770 .branch-dropdown-content a {
2771 display: block;
2ce1d0bClaude2772 padding: 9px 14px;
2773 font-size: var(--t-sm);
06d5ffeClaude2774 color: var(--text);
2775 border-bottom: 1px solid var(--border);
2ce1d0bClaude2776 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2777 }
2778 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2779 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2780 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2781
2ce1d0bClaude2782 /* ============================================================ */
2783 /* Card grid */
2784 /* ============================================================ */
2785 .card-grid {
2786 display: grid;
2787 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2788 gap: 16px;
2789 }
fc1817aClaude2790 .card {
2791 border: 1px solid var(--border);
2ce1d0bClaude2792 border-radius: var(--r-md);
958d26aClaude2793 padding: 20px;
2ce1d0bClaude2794 background: var(--bg-elevated);
2795 transition:
958d26aClaude2796 border-color var(--t-base) var(--ease),
2797 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2798 box-shadow var(--t-base) var(--ease);
2799 position: relative;
2800 overflow: hidden;
958d26aClaude2801 isolation: isolate;
2802 }
2803 .card::before {
2804 content: '';
2805 position: absolute;
2806 inset: 0;
2807 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2808 opacity: 0;
2809 transition: opacity var(--t-base) var(--ease);
2810 pointer-events: none;
2811 z-index: -1;
2ce1d0bClaude2812 }
2813 .card:hover {
2814 border-color: var(--border-strong);
2815 box-shadow: var(--elev-2);
958d26aClaude2816 transform: translateY(-2px);
2ce1d0bClaude2817 }
958d26aClaude2818 .card:hover::before { opacity: 1; }
2819 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2820 .card h3 a { color: var(--text); font-weight: 600; }
2821 .card h3 a:hover { color: var(--text-link); }
2822 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2823 .card-meta {
2824 display: flex;
2825 gap: 14px;
2826 margin-top: 14px;
2827 padding-top: 14px;
2828 border-top: 1px solid var(--border);
2829 font-size: var(--t-xs);
2830 color: var(--text-muted);
2831 }
2832 .card-meta span { display: flex; align-items: center; gap: 5px; }
2833
2834 /* ============================================================ */
2835 /* Stat card / box */
2836 /* ============================================================ */
2837 .stat-card {
2838 background: var(--bg-elevated);
2839 border: 1px solid var(--border);
2840 border-radius: var(--r-md);
fc1817aClaude2841 padding: 16px;
2ce1d0bClaude2842 transition: border-color var(--t-fast) var(--ease);
2843 }
2844 .stat-card:hover { border-color: var(--border-strong); }
2845 .stat-label {
2846 font-size: var(--t-xs);
2847 color: var(--text-muted);
2848 text-transform: uppercase;
2849 letter-spacing: 0.06em;
2850 font-weight: 500;
2851 }
2852 .stat-value {
2853 font-size: var(--t-xl);
2854 font-weight: 700;
2855 margin-top: 4px;
2856 letter-spacing: -0.025em;
2857 color: var(--text);
2858 font-feature-settings: 'tnum';
fc1817aClaude2859 }
06d5ffeClaude2860
2ce1d0bClaude2861 /* ============================================================ */
2862 /* Star button */
2863 /* ============================================================ */
06d5ffeClaude2864 .star-btn {
2865 display: inline-flex;
2866 align-items: center;
2867 gap: 6px;
2ce1d0bClaude2868 padding: 5px 12px;
2869 background: var(--bg-elevated);
06d5ffeClaude2870 border: 1px solid var(--border);
2ce1d0bClaude2871 border-radius: var(--r-sm);
06d5ffeClaude2872 color: var(--text);
2ce1d0bClaude2873 font-size: var(--t-sm);
2874 font-weight: 500;
06d5ffeClaude2875 cursor: pointer;
2ce1d0bClaude2876 transition: all var(--t-fast) var(--ease);
2877 }
2878 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2879 .star-btn.starred {
2880 color: var(--yellow);
958d26aClaude2881 border-color: rgba(251,191,36,0.4);
2882 background: rgba(251,191,36,0.08);
06d5ffeClaude2883 }
2884
2ce1d0bClaude2885 /* ============================================================ */
2886 /* User profile */
2887 /* ============================================================ */
06d5ffeClaude2888 .user-profile {
2889 display: flex;
2890 gap: 32px;
2891 margin-bottom: 32px;
2ce1d0bClaude2892 padding: 24px;
2893 background: var(--bg-elevated);
2894 border: 1px solid var(--border);
2895 border-radius: var(--r-lg);
06d5ffeClaude2896 }
2897 .user-avatar {
2898 width: 96px;
2899 height: 96px;
2ce1d0bClaude2900 border-radius: var(--r-full);
2901 background: var(--accent-gradient-soft);
2902 border: 1px solid var(--border-strong);
06d5ffeClaude2903 display: flex;
2904 align-items: center;
2905 justify-content: center;
2ce1d0bClaude2906 font-size: 36px;
2907 font-weight: 600;
2908 color: var(--text);
06d5ffeClaude2909 flex-shrink: 0;
2ce1d0bClaude2910 letter-spacing: -0.02em;
06d5ffeClaude2911 }
2ce1d0bClaude2912 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2913 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2914 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2915
2ce1d0bClaude2916 /* ============================================================ */
2917 /* New repo form */
2918 /* ============================================================ */
2919 .new-repo-form { max-width: 640px; }
2920 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2921 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2922 .visibility-option {
2923 flex: 1;
2ce1d0bClaude2924 padding: 16px;
06d5ffeClaude2925 border: 1px solid var(--border);
2ce1d0bClaude2926 border-radius: var(--r-md);
2927 background: var(--bg-elevated);
06d5ffeClaude2928 cursor: pointer;
2ce1d0bClaude2929 text-align: left;
2930 transition: all var(--t-fast) var(--ease);
2931 }
2932 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2933 .visibility-option:has(input:checked) {
2934 border-color: var(--accent);
2935 background: var(--accent-gradient-faint);
2936 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2937 }
2938 .visibility-option input { display: none; }
2ce1d0bClaude2939 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2940 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2941
2ce1d0bClaude2942 /* ============================================================ */
2943 /* Issues */
2944 /* ============================================================ */
2945 .issue-tabs { display: flex; gap: 4px; }
2946 .issue-tabs a {
2947 color: var(--text-muted);
2948 font-size: var(--t-sm);
2949 font-weight: 500;
2950 padding: 6px 12px;
2951 border-radius: var(--r-sm);
2952 transition: all var(--t-fast) var(--ease);
2953 }
2954 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2955 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2956
2ce1d0bClaude2957 .issue-list {
2958 border: 1px solid var(--border);
2959 border-radius: var(--r-md);
2960 overflow: hidden;
2961 background: var(--bg-elevated);
2962 }
79136bbClaude2963 .issue-item {
2964 display: flex;
2ce1d0bClaude2965 gap: 14px;
79136bbClaude2966 align-items: flex-start;
2ce1d0bClaude2967 padding: 14px 16px;
79136bbClaude2968 border-bottom: 1px solid var(--border);
2ce1d0bClaude2969 transition: background var(--t-fast) var(--ease);
79136bbClaude2970 }
2971 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2972 .issue-item:hover { background: var(--bg-hover); }
2973 .issue-state-icon {
2974 font-size: 14px;
2975 padding-top: 2px;
2976 width: 18px;
2977 height: 18px;
2978 display: inline-flex;
2979 align-items: center;
2980 justify-content: center;
2981 border-radius: var(--r-full);
2982 flex-shrink: 0;
2983 }
79136bbClaude2984 .state-open { color: var(--green); }
958d26aClaude2985 .state-closed { color: #b69dff; }
2ce1d0bClaude2986 .issue-title {
debcf27Claude2987 font-family: var(--font-display);
2988 font-size: var(--t-md);
2ce1d0bClaude2989 font-weight: 600;
debcf27Claude2990 line-height: 1.35;
2991 letter-spacing: -0.012em;
2992 }
2993 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2994 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2995 .issue-meta {
2996 font-family: var(--font-mono);
2997 font-size: 11px;
2998 color: var(--text-muted);
2999 margin-top: 5px;
3000 letter-spacing: 0.01em;
2ce1d0bClaude3001 }
79136bbClaude3002
3003 .issue-badge {
3004 display: inline-flex;
3005 align-items: center;
2ce1d0bClaude3006 gap: 6px;
79136bbClaude3007 padding: 4px 12px;
2ce1d0bClaude3008 border-radius: var(--r-full);
3009 font-size: var(--t-sm);
79136bbClaude3010 font-weight: 500;
2ce1d0bClaude3011 line-height: 1.4;
79136bbClaude3012 }
958d26aClaude3013 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3014 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3015 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3016 .state-merged { color: var(--accent); }
958d26aClaude3017 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3018
2ce1d0bClaude3019 .issue-detail { max-width: 920px; }
79136bbClaude3020 .issue-comment-box {
3021 border: 1px solid var(--border);
2ce1d0bClaude3022 border-radius: var(--r-md);
79136bbClaude3023 margin-bottom: 16px;
3024 overflow: hidden;
2ce1d0bClaude3025 background: var(--bg-elevated);
79136bbClaude3026 }
3027 .comment-header {
3028 background: var(--bg-secondary);
2ce1d0bClaude3029 padding: 10px 16px;
79136bbClaude3030 border-bottom: 1px solid var(--border);
2ce1d0bClaude3031 font-size: var(--t-sm);
79136bbClaude3032 color: var(--text-muted);
3033 }
3034
2ce1d0bClaude3035 /* ============================================================ */
3036 /* Panel — flexible container used across many pages */
3037 /* ============================================================ */
3038 .panel {
3039 background: var(--bg-elevated);
3040 border: 1px solid var(--border);
3041 border-radius: var(--r-md);
3042 overflow: hidden;
3043 }
3044 .panel-item {
3045 display: flex;
3046 align-items: center;
3047 gap: 12px;
3048 padding: 12px 16px;
79136bbClaude3049 border-bottom: 1px solid var(--border);
2ce1d0bClaude3050 transition: background var(--t-fast) var(--ease);
3051 }
3052 .panel-item:last-child { border-bottom: none; }
3053 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3054
3055 /* ─── j/k keyboard list navigation ─── */
3056 .is-kbd-focus {
3057 outline: 2px solid rgba(140,109,255,0.6) !important;
3058 outline-offset: -2px;
3059 background: rgba(140,109,255,0.06) !important;
3060 border-radius: 4px;
3061 }
3062 .is-kbd-selected {
3063 outline: 2px solid rgba(52,211,153,0.6) !important;
3064 background: rgba(52,211,153,0.06) !important;
3065 }
2ce1d0bClaude3066 .panel-empty {
3067 padding: 24px;
3068 text-align: center;
79136bbClaude3069 color: var(--text-muted);
2ce1d0bClaude3070 font-size: var(--t-sm);
79136bbClaude3071 }
3072
2ce1d0bClaude3073 /* ============================================================ */
3074 /* Search */
3075 /* ============================================================ */
79136bbClaude3076 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3077
2ce1d0bClaude3078 /* ============================================================ */
3079 /* Timeline */
3080 /* ============================================================ */
3081 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3082 .timeline::before {
3083 content: '';
3084 position: absolute;
3085 left: 4px;
3086 top: 8px;
3087 bottom: 8px;
3088 width: 2px;
2ce1d0bClaude3089 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3090 }
2ce1d0bClaude3091 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3092 .timeline-dot {
3093 position: absolute;
2ce1d0bClaude3094 left: -28px;
3095 top: 8px;
3096 width: 12px;
3097 height: 12px;
3098 border-radius: var(--r-full);
3099 background: var(--accent-gradient);
16b325cClaude3100 border: 2px solid var(--bg);
2ce1d0bClaude3101 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3102 }
3103 .timeline-content {
2ce1d0bClaude3104 background: var(--bg-elevated);
16b325cClaude3105 border: 1px solid var(--border);
2ce1d0bClaude3106 border-radius: var(--r-md);
3107 padding: 14px 16px;
16b325cClaude3108 }
f1ab587Claude3109
2ce1d0bClaude3110 /* ============================================================ */
3111 /* Toggle switch */
3112 /* ============================================================ */
f1ab587Claude3113 .toggle-switch {
3114 position: relative;
3115 display: inline-block;
2ce1d0bClaude3116 width: 40px;
3117 height: 22px;
f1ab587Claude3118 flex-shrink: 0;
3119 margin-left: 16px;
3120 }
3121 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3122 .toggle-slider {
3123 position: absolute;
3124 cursor: pointer;
3125 top: 0; left: 0; right: 0; bottom: 0;
3126 background: var(--bg-tertiary);
3127 border: 1px solid var(--border);
2ce1d0bClaude3128 border-radius: var(--r-full);
3129 transition: all var(--t-base) var(--ease);
f1ab587Claude3130 }
3131 .toggle-slider::before {
3132 content: '';
3133 position: absolute;
2ce1d0bClaude3134 height: 16px;
3135 width: 16px;
f1ab587Claude3136 left: 2px;
3137 bottom: 2px;
3138 background: var(--text-muted);
2ce1d0bClaude3139 border-radius: var(--r-full);
3140 transition: all var(--t-base) var(--ease);
f1ab587Claude3141 }
3142 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3143 background: var(--accent-gradient);
3144 border-color: transparent;
958d26aClaude3145 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3146 }
3147 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3148 transform: translateX(18px);
f1ab587Claude3149 background: #fff;
3150 }
ef8d378Claude3151
3152 /* ============================================================
3153 * 2026 polish layer (purely additive — no layout changes).
3154 * Improves typography rendering, focus states, hover affordances,
3155 * and adds the gradient brand cue to primary buttons. Anything
3156 * that could alter dimensions stays in the rules above.
3157 * ============================================================ */
3158 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3159 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3160 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3161
3162 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3163 h1 { letter-spacing: -0.025em; }
3164
3165 /* Smoother colour transitions everywhere links live */
3166 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3167
3168 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3169 .btn {
3170 transition:
3171 background 120ms cubic-bezier(0.16,1,0.3,1),
3172 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3173 transform 120ms cubic-bezier(0.16,1,0.3,1),
3174 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3175 }
3176 .btn:active { transform: translateY(0.5px); }
3177 .btn:focus-visible {
3178 outline: none;
3179 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3180 }
3181 .btn-primary {
3182 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3183 border-color: transparent;
3184 box-shadow:
3185 inset 0 1px 0 rgba(255,255,255,0.15),
3186 0 1px 2px rgba(168,85,247,0.25);
3187 }
3188 .btn-primary:hover {
3189 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3190 filter: none;
3191 box-shadow:
3192 inset 0 1px 0 rgba(255,255,255,0.20),
3193 0 4px 12px rgba(168,85,247,0.30);
3194 }
3195
3196 /* Inputs: cleaner focus ring + hover */
3197 .form-group input:hover,
3198 .form-group textarea:hover,
3199 .form-group select:hover {
3200 border-color: rgba(255,255,255,0.14);
3201 }
3202 .form-group input:focus,
3203 .form-group textarea:focus,
3204 .form-group select:focus {
3205 border-color: rgba(168,85,247,0.55);
3206 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3207 }
3208 :root[data-theme='light'] .form-group input:hover,
3209 :root[data-theme='light'] .form-group textarea:hover,
3210 :root[data-theme='light'] .form-group select:hover {
3211 border-color: rgba(0,0,0,0.18);
3212 }
3213
3214 /* Cards: subtle hover lift */
3215 .card {
3216 transition:
3217 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3218 transform 160ms cubic-bezier(0.16,1,0.3,1),
3219 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3220 }
3221 .card:hover {
3222 border-color: rgba(255,255,255,0.18);
3223 transform: translateY(-1px);
3224 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3225 }
3226 :root[data-theme='light'] .card:hover {
3227 border-color: rgba(0,0,0,0.18);
3228 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3229 }
3230
3231 /* Issue / commit / panel rows: smoother hover */
3232 .issue-item, .commit-item {
3233 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3234 }
3235 .repo-nav a {
3236 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3237 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3238 }
3239 .nav-link {
3240 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3241 }
3242
3243 /* Auth card: subtle elevation so register/login feel premium */
3244 .auth-container {
3245 background: var(--bg-secondary);
3246 border: 1px solid var(--border);
3247 border-radius: var(--r-lg, 12px);
3248 padding: 32px;
3249 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3250 }
3251 :root[data-theme='light'] .auth-container {
3252 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3253 }
3254 .auth-container h2 { letter-spacing: -0.025em; }
3255
3256 /* Empty state: dashed border, generous padding */
3257 .empty-state {
3258 border: 1px dashed var(--border);
3259 border-radius: var(--r-lg, 12px);
3260 background: var(--bg);
3261 }
3262
3263 /* Badges + commit-sha: smoother transition */
3264 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3265
3266 /* Gradient text utility — matches landing's accent treatment */
3267 .gradient-text {
3268 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3269 -webkit-background-clip: text;
3270 background-clip: text;
3271 -webkit-text-fill-color: transparent;
3272 }
3273
3274 /* Custom scrollbars (subtle, themed) */
3275 ::-webkit-scrollbar { width: 10px; height: 10px; }
3276 ::-webkit-scrollbar-track { background: transparent; }
3277 ::-webkit-scrollbar-thumb {
3278 background: rgba(255,255,255,0.06);
3279 border: 2px solid var(--bg);
3280 border-radius: 9999px;
3281 }
3282 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3283 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3284 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3285
3286 /* Honour reduced-motion preference */
3287 @media (prefers-reduced-motion: reduce) {
3288 *, *::before, *::after {
3289 animation-duration: 0.01ms !important;
3290 animation-iteration-count: 1 !important;
3291 transition-duration: 0.01ms !important;
3292 }
3293 }
c63b860Claude3294
3295 /* Block O3 — visual coherence additive rules. */
3296 .card.card-p-none { padding: 0; }
3297 .card.card-p-sm { padding: var(--space-3); }
3298 .card.card-p-md { padding: var(--space-4); }
3299 .card.card-p-lg { padding: var(--space-6); }
3300 .card.card-elevated { box-shadow: var(--elev-2); }
3301 .card.card-gradient {
3302 background:
3303 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3304 var(--bg-elevated);
3305 }
3306 .card.card-gradient::before { opacity: 1; }
3307 .notice {
3308 padding: var(--space-3) var(--space-4);
3309 border-radius: var(--radius-md);
3310 border: 1px solid var(--border);
3311 background: var(--bg-elevated);
3312 color: var(--text);
3313 font-size: var(--font-size-sm);
3314 margin-bottom: var(--space-6);
3315 line-height: var(--leading-normal);
3316 }
3317 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3318 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3319 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3320 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3321 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3322 .email-preview {
3323 padding: var(--space-5);
3324 background: #fff;
3325 color: #111;
3326 border-radius: var(--radius-md);
3327 }
3328 .code-block {
3329 margin: var(--space-2) 0 0;
3330 padding: var(--space-3);
3331 background: var(--bg-tertiary);
3332 border: 1px solid var(--border-subtle);
3333 border-radius: var(--radius-sm);
3334 font-family: var(--font-mono);
3335 font-size: var(--font-size-xs);
3336 line-height: var(--leading-normal);
3337 overflow-x: auto;
3338 }
3339 .status-pill-operational {
3340 display: inline-flex;
3341 align-items: center;
3342 padding: var(--space-1) var(--space-3);
3343 border-radius: var(--radius-full);
3344 font-size: var(--font-size-xs);
3345 font-weight: 600;
3346 background: rgba(52,211,153,0.15);
3347 color: var(--green);
3348 }
3349 .api-tag {
3350 display: inline-flex;
3351 align-items: center;
3352 font-size: var(--font-size-xs);
3353 padding: 2px var(--space-2);
3354 border-radius: var(--radius-sm);
3355 font-family: var(--font-mono);
3356 }
3357 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3358 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3359 .stat-number {
3360 font-size: var(--font-size-xl);
3361 font-weight: 700;
3362 color: var(--text-strong);
3363 line-height: var(--leading-tight);
3364 }
3365 .stat-number-accent { color: var(--accent); }
3366 .stat-number-blue { color: var(--blue); }
3367 .stat-number-purple { color: var(--text-link); }
3368 footer .footer-tag-sub {
3369 margin-top: var(--space-2);
3370 font-size: var(--font-size-xs);
3371 color: var(--text-faint);
3372 line-height: var(--leading-normal);
3373 }
3374 footer .footer-version-pill {
3375 display: inline-flex;
3376 align-items: center;
3377 gap: var(--space-2);
3378 padding: var(--space-1) var(--space-3);
3379 border-radius: var(--radius-full);
3380 border: 1px solid var(--border);
3381 background: var(--bg-elevated);
3382 color: var(--text-faint);
3383 font-family: var(--font-mono);
3384 font-size: var(--font-size-xs);
3385 cursor: help;
3386 }
3387 footer .footer-banner {
3388 max-width: 1240px;
3389 margin: var(--space-6) auto 0;
3390 padding: var(--space-3) var(--space-4);
3391 border-radius: var(--radius-md);
3392 border: 1px solid var(--border);
3393 background: var(--bg-elevated);
3394 color: var(--text);
3395 font-family: var(--font-mono);
3396 font-size: var(--font-size-xs);
3397 letter-spacing: 0.04em;
3398 text-transform: uppercase;
3399 text-align: center;
3400 }
3401 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3402 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3403 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3404
cf9178bTest User3405 /* ============================================================ */
3406 /* Global toast notifications. */
3407 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3408 /* ============================================================ */
3409 .gx-toast {
3410 pointer-events: auto;
3411 display: inline-flex;
3412 align-items: flex-start;
3413 gap: 10px;
3414 min-width: 280px;
3415 max-width: min(440px, calc(100vw - 32px));
3416 padding: 12px 14px 12px 12px;
3417 background: var(--bg-elevated);
3418 border: 1px solid var(--border);
3419 border-radius: 10px;
3420 box-shadow:
3421 0 12px 36px -10px rgba(15,16,28,0.18),
3422 0 2px 6px rgba(15,16,28,0.04),
3423 0 0 0 1px rgba(15,16,28,0.02);
3424 color: var(--text);
3425 font-size: 13.5px;
3426 line-height: 1.45;
3427 opacity: 0;
3428 transform: translateX(16px);
3429 transition:
3430 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3431 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3432 }
3433 .gx-toast--in { opacity: 1; transform: translateX(0); }
3434 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3435 .gx-toast__icon {
3436 flex-shrink: 0;
3437 width: 20px; height: 20px;
3438 border-radius: 50%;
3439 display: inline-flex;
3440 align-items: center;
3441 justify-content: center;
3442 font-size: 12px;
3443 font-weight: 700;
3444 line-height: 1;
3445 margin-top: 1px;
3446 }
3447 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3448 .gx-toast__close {
3449 flex-shrink: 0;
3450 width: 22px; height: 22px;
3451 border: 0;
3452 background: transparent;
3453 color: var(--text-muted);
3454 font-size: 18px;
3455 line-height: 1;
3456 cursor: pointer;
3457 border-radius: 4px;
3458 padding: 0;
3459 margin: -2px -2px 0 0;
3460 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3461 }
3462 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3463 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3464 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3465 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3466 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3467 @media (prefers-reduced-motion: reduce) {
3468 .gx-toast { transition: opacity 60ms linear; transform: none; }
3469 .gx-toast--in, .gx-toast--out { transform: none; }
3470 }
3471
dc26881CC LABS App3472 /* ============================================================ */
3473 /* Block U4 — cross-document view transitions. */
3474 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3475 /* every same-origin navigation. Older browsers ignore these */
3476 /* rules entirely — no JS shim, no breakage. */
3477 /* prefers-reduced-motion disables the animation honourably. */
3478 /* ============================================================ */
3479 @view-transition {
3480 navigation: auto;
3481 }
3482 ::view-transition-old(root),
3483 ::view-transition-new(root) {
3484 animation-duration: 200ms;
3485 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3486 }
3487 ::view-transition-old(root) {
3488 animation-name: vt-fade-out;
3489 }
3490 ::view-transition-new(root) {
3491 animation-name: vt-fade-in;
3492 }
3493 @keyframes vt-fade-out {
3494 to { opacity: 0; }
3495 }
3496 @keyframes vt-fade-in {
3497 from { opacity: 0; }
3498 }
3499 @media (prefers-reduced-motion: reduce) {
3500 ::view-transition-old(root),
3501 ::view-transition-new(root) {
3502 animation-duration: 0s;
3503 }
3504 }
3505 /* The transition system picks up its root subject from this rule. */
3506 body {
3507 view-transition-name: root;
3508 }
fc1817aClaude3509`;