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.tsxBlame3506 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>
282 <div class="nav-user-menu-sep" />
283 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
284 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
285 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
286 <div class="nav-user-menu-sep" />
287 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
288 <span class="theme-icon-dark">{"☾"} Light mode</span>
289 <span class="theme-icon-light">{"☀"} Dark mode</span>
290 </a>
291 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
292 </div>
293 </div>
06d5ffeClaude294 </>
295 ) : (
296 <>
f5b9ef5Claude297 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
298 <span class="theme-icon-dark">{"☾"}</span>
299 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude300 </a>
adf5e18Claude301 <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron">
302 Migrate from GitHub
303 </a>
f5b9ef5Claude304 <a href="/login" class="nav-link">Sign in</a>
305 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude306 </>
307 )}
308 </div>
fc1817aClaude309 </nav>
310 </header>
45e31d0Claude311 <main id="main-content">{children}</main>
cf9178bTest User312 {/* Global toast host — populated by the toastScript below from
313 ?success= / ?error= / ?toast= query params. Replaces the
314 per-page banner pattern with one polished slide-in. */}
315 <div
316 id="toast-host"
317 aria-live="polite"
318 aria-atomic="true"
319 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"
320 />
fc1817aClaude321 <footer>
958d26aClaude322 <div class="footer-inner">
323 <div class="footer-brand">
324 <a href="/" class="logo">gluecron</a>
325 <p class="footer-tag">
326 AI-native code intelligence. Self-hosted git, automated CI,
327 push-time gates. Software that ships itself.
328 </p>
329 </div>
330 <div class="footer-links">
331 <div class="footer-col">
332 <div class="footer-col-title">Product</div>
b0148e9Claude333 <a href="/features">Features</a>
334 <a href="/pricing">Pricing</a>
e1fc7dbClaude335 <a href="/changelog">Changelog</a>
958d26aClaude336 <a href="/explore">Explore</a>
337 <a href="/marketplace">Marketplace</a>
adf5e18Claude338 <a href="/developer-program">Developer Program</a>
958d26aClaude339 </div>
340 <div class="footer-col">
341 <div class="footer-col-title">Platform</div>
e0e4219Claude342 <a href="/docs">Docs</a>
b0148e9Claude343 <a href="/help">Quickstart</a>
958d26aClaude344 <a href="/status">Status</a>
345 <a href="/api/graphql">GraphQL</a>
346 <a href="/mcp">MCP server</a>
347 </div>
348 <div class="footer-col">
b0148e9Claude349 <div class="footer-col-title">Company</div>
350 <a href="/about">About</a>
958d26aClaude351 <a href="/terms">Terms</a>
352 <a href="/privacy">Privacy</a>
353 <a href="/acceptable-use">Acceptable use</a>
354 </div>
355 </div>
356 </div>
357 <div class="footer-bottom">
358 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude359 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
360 <span class="footer-build-dot" aria-hidden="true" />
361 {build.sha} · {build.branch}
362 </span>
36b4cbdClaude363 </div>
c63b860Claude364 {siteBannerText ? (
365 <div
366 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
367 role="status"
368 aria-live="polite"
369 >
370 {siteBannerText}
371 </div>
372 ) : null}
fc1817aClaude373 </footer>
05cdb85Claude374 {/* Live update poller — checks /api/version every 15s, prompts
375 reload when the running sha changes. Pure progressive-
376 enhancement; degrades to nothing if JS is off. */}
377 <div
378 id="version-banner"
379 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"
380 >
381 <span style="display:inline-flex;align-items:center;gap:8px">
382 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
383 <span>New version available</span>
384 </span>
385 <button
386 type="button"
387 id="version-banner-reload"
388 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"
389 >
390 Reload
391 </button>
392 </div>
fa880f2Claude393 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude394 {/* Block N3 — site-admin deploy status pill (script-only). The pill
395 container is rendered above for authed users; this script bootstraps
396 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
397 and the pill stays display:none — zero leak. */}
398 {user && (
399 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
400 )}
699e5c7Claude401 {/* Block I4 — Command palette shell (hidden by default) */}
402 <div
403 id="cmdk-backdrop"
404 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
405 />
406 <div
407 id="cmdk-panel"
408 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"
409 >
410 <input
411 id="cmdk-input"
412 type="text"
413 placeholder="Type a command..."
414 aria-label="Command palette"
dc26881CC LABS App415 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"
699e5c7Claude416 />
417 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
418 </div>
fa880f2Claude419 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude420 {/* PWA-kill script: actively unregisters any service worker
421 previously installed under gluecron.com. Recovers any browser
422 still trapped in the SW reload loop from the legacy registrations. */}
423 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User424 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude425 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude426 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
fc1817aClaude427 </body>
428 </html>
429 );
430};
431
05cdb85Claude432// Live version poller. Checks /api/version every 15s; if the sha differs
433// from the one we booted with, reveal the floating 'New version' pill so
434// the user can reload onto the new code without manually refreshing.
435const versionPollerScript = `
436 (function(){
437 var loadedSha = null;
438 var banner, btn;
439 function poll(){
440 fetch('/api/version', { cache: 'no-store' })
441 .then(function(r){ return r.ok ? r.json() : null; })
442 .then(function(j){
443 if (!j || !j.sha) return;
444 if (loadedSha === null) { loadedSha = j.sha; return; }
445 if (j.sha !== loadedSha && banner) {
446 banner.style.display = 'inline-flex';
447 }
448 })
449 .catch(function(){});
450 }
451 function init(){
452 banner = document.getElementById('version-banner');
453 btn = document.getElementById('version-banner-reload');
454 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
455 poll();
456 setInterval(poll, 15000);
457 }
458 if (document.readyState === 'loading') {
459 document.addEventListener('DOMContentLoaded', init);
460 } else {
461 init();
462 }
463 })();
464`;
465
f764c07Claude466// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
467// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
468// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
469// display:none — there's no leakage of admin-only data to other users.
470//
471// Pill states (CSS classes on the container drive colour):
472// .deploy-pill-success 🟢 "Deployed 12s ago"
473// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
474// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
475// .deploy-pill-empty ⚪ "No deploys yet"
476//
477// Relative-time auto-refreshes every 15s without re-fetching.
478export const deployPillScript = `
479 (function(){
480 var pill, dot, text;
481 var state = { latest: null, asOf: null };
482
483 function classifyAge(ms){
484 if (ms < 0) return 'just now';
485 var s = Math.floor(ms / 1000);
486 if (s < 5) return 'just now';
487 if (s < 60) return s + 's ago';
488 var m = Math.floor(s / 60);
489 if (m < 60) return m + 'm ago';
490 var h = Math.floor(m / 60);
491 if (h < 24) return h + 'h ago';
492 var d = Math.floor(h / 24);
493 return d + 'd ago';
494 }
495 function elapsed(ms){
496 if (ms < 0) ms = 0;
497 var s = Math.floor(ms / 1000);
498 if (s < 60) return s + 's';
499 var m = Math.floor(s / 60);
500 var rem = s - m * 60;
501 return m + 'm ' + rem + 's';
502 }
503
504 function render(){
505 if (!pill || !text || !dot) return;
506 var d = state.latest;
81201ccTest User507 // When there's no deploy event yet, keep the pill HIDDEN. Showing
508 // "No deploys yet" was visible noise on every admin page load and
509 // flashed during reconnect cycles — admins don't need a placeholder.
510 // The pill reveals itself the first time a real deploy fires.
f764c07Claude511 if (!d) {
81201ccTest User512 pill.style.display = 'none';
f764c07Claude513 return;
514 }
515 pill.style.display = 'inline-flex';
516 var now = Date.now();
517 if (d.status === 'in_progress') {
518 pill.className = 'nav-deploy-pill deploy-pill-progress';
519 var started = Date.parse(d.started_at) || now;
520 text.textContent = 'Deploying… ' + elapsed(now - started);
521 } else if (d.status === 'succeeded') {
522 pill.className = 'nav-deploy-pill deploy-pill-success';
523 var ref = Date.parse(d.finished_at || d.started_at) || now;
524 text.textContent = 'Deployed ' + classifyAge(now - ref);
525 } else if (d.status === 'failed') {
526 pill.className = 'nav-deploy-pill deploy-pill-failed';
527 var refF = Date.parse(d.finished_at || d.started_at) || now;
528 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
529 } else {
530 pill.className = 'nav-deploy-pill';
531 text.textContent = d.status;
532 }
533 }
534
535 function fetchLatest(){
536 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
537 .then(function(r){ if (!r.ok) return null; return r.json(); })
538 .then(function(j){
539 if (!j || j.ok !== true) return;
540 state.latest = j.latest;
541 state.asOf = j.asOf;
542 render();
543 subscribe();
544 })
545 .catch(function(){});
546 }
547
548 var subscribed = false;
549 function subscribe(){
550 if (subscribed) return;
551 if (typeof EventSource === 'undefined') return;
552 subscribed = true;
553 var es;
bf19c50Test User554 // Exponential backoff with cap. Previously a tight 1500ms reconnect
555 // produced visible looping in the nav whenever the proxy timed out
556 // or the connection blipped — the bottom-of-page deploy pill
557 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
558 // successful message receipt.
559 var delay = 2000;
560 var DELAY_MAX = 60000;
561 function bump(){
562 delay = Math.min(delay * 2, DELAY_MAX);
563 }
564 function resetDelay(){
565 delay = 2000;
566 }
f764c07Claude567 function connect(){
568 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User569 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude570 es.onmessage = function(m){
bf19c50Test User571 resetDelay();
f764c07Claude572 try {
573 var d = JSON.parse(m.data);
574 if (d && d.run_id) {
575 if (!state.latest || state.latest.run_id === d.run_id ||
576 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
577 state.latest = d;
578 render();
579 }
580 }
581 } catch(e){}
582 };
583 es.onerror = function(){
584 try { es.close(); } catch(e){}
bf19c50Test User585 bump();
f764c07Claude586 setTimeout(connect, delay);
587 };
588 }
589 connect();
590 }
591
592 function init(){
593 pill = document.getElementById('deploy-pill');
594 if (!pill) return;
595 dot = pill.querySelector('.deploy-pill-dot');
596 text = pill.querySelector('.deploy-pill-text');
597 fetchLatest();
598 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
599 // without a fresh fetch.
600 setInterval(render, 15000);
601 }
602 if (document.readyState === 'loading') {
603 document.addEventListener('DOMContentLoaded', init);
604 } else {
605 init();
606 }
607 })();
608`;
609
6fc53bdClaude610// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User611// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
612// is honoured for users who explicitly opted in.
6fc53bdClaude613const themeInitScript = `
614 (function(){
615 try {
616 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User617 var t = m ? decodeURIComponent(m[1]) : 'light';
618 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude619 document.documentElement.setAttribute('data-theme', t);
620 } catch(_){}
621 })();
622`;
623
eae38d1Claude624// Block G1 — register service worker for offline / install support.
625// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App626//
cf9178bTest User627// Global toast notifications — reads ?success=, ?error=, ?toast= from the
628// URL on page load and surfaces a polished slide-in toast instead of the
629// per-page banner divs that crowded the layout. Toasts auto-dismiss after
630// 4.5s; query params are scrubbed from the URL via history.replaceState
631// so a subsequent Refresh doesn't re-fire the same toast.
632//
633// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
634// must be URI-encoded (callers already do this via encodeURIComponent
635// in c.redirect()).
636const toastScript = `
637 (function(){
638 function showToast(kind, message){
639 if (!message) return;
640 var host = document.getElementById('toast-host');
641 if (!host) return;
642 var el = document.createElement('div');
643 el.className = 'gx-toast gx-toast--' + kind;
644 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
645 var icon = document.createElement('span');
646 icon.className = 'gx-toast__icon';
647 icon.textContent = kind === 'success' ? '\\u2713'
648 : kind === 'error' ? '\\u00D7'
649 : kind === 'warn' ? '!'
650 : 'i';
651 el.appendChild(icon);
652 var text = document.createElement('span');
653 text.className = 'gx-toast__text';
654 text.textContent = message;
655 el.appendChild(text);
656 var close = document.createElement('button');
657 close.type = 'button';
658 close.className = 'gx-toast__close';
659 close.setAttribute('aria-label', 'Dismiss notification');
660 close.textContent = '\\u00D7';
661 close.addEventListener('click', function(){ dismiss(); });
662 el.appendChild(close);
663 host.appendChild(el);
664 // Force a reflow then add the visible class so the slide-in transitions.
665 void el.offsetWidth;
666 el.classList.add('gx-toast--in');
667 var timer = setTimeout(dismiss, 4500);
668 function dismiss(){
669 clearTimeout(timer);
670 el.classList.remove('gx-toast--in');
671 el.classList.add('gx-toast--out');
672 setTimeout(function(){
673 if (el.parentNode) el.parentNode.removeChild(el);
674 }, 220);
675 }
676 }
677 try {
678 var url = new URL(window.location.href);
679 var hits = 0;
680 var s = url.searchParams.get('success');
681 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
682 var e = url.searchParams.get('error');
683 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
684 var t = url.searchParams.get('toast');
685 if (t) {
686 var ix = t.indexOf(':');
687 var kind = ix > 0 ? t.slice(0, ix) : 'info';
688 var msg = ix > 0 ? t.slice(ix + 1) : t;
689 showToast(kind, msg);
690 url.searchParams.delete('toast');
691 hits++;
692 }
693 if (hits > 0 && window.history && window.history.replaceState) {
694 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
695 }
696 } catch(_) {}
697 })();
698`;
699
44fe49bClaude700// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
701// and pwaInstallBannerScript. Those two scripts registered /sw.js and
702// /sw-push.js at the same scope, causing a reload loop that made the
703// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
704// uncllickable). Per the SW spec, only one SW can control a scope; two
705// different script URLs at the same scope keep replacing each other.
6345c3eTest User706//
44fe49bClaude707// PWA is gone for good. A git host has no use for service workers,
708// install-as-app, or push notifications via SW. This script actively
709// unregisters every previously installed SW on the gluecron.com origin
710// so any browser still trapped in the loop recovers on the very next
711// page load — without needing the user to clear site data or open
712// DevTools. Idempotent and safe to keep running forever; once all
713// browsers have been cleaned, it's a no-op.
714const pwaKillSwitchScript = `
534f04aClaude715(function(){
716 try {
44fe49bClaude717 if (!('serviceWorker' in navigator)) return;
718 if (!navigator.serviceWorker.getRegistrations) return;
719 navigator.serviceWorker.getRegistrations().then(function(regs){
720 if (!regs || regs.length === 0) return;
721 regs.forEach(function(reg){
722 try { reg.unregister(); } catch(_){}
723 });
724 }).catch(function(){});
725 // Also drop any caches the old SWs left behind so the user gets
726 // truly fresh HTML on every page load. Restricted to gluecron-*
727 // namespaced caches so we don't trample anything a future opt-in
728 // feature might create under a different name.
729 if ('caches' in self) {
730 caches.keys().then(function(keys){
731 keys.forEach(function(k){
732 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
733 try { caches.delete(k); } catch(_){}
d7ba05dClaude734 }
735 });
736 }).catch(function(){});
534f04aClaude737 }
738 } catch(_) {}
739})();
740`;
741
3ef4c9dClaude742const navScript = `
743 (function(){
744 var chord = null;
745 var chordTimer = null;
746 function isTyping(t){
747 t = t || {};
748 var tag = (t.tagName || '').toLowerCase();
749 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
750 }
71cd5ecClaude751
752 // ---------- Block I4 — Command palette ----------
753 var COMMANDS = [
754 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
755 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
756 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
757 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
758 { label: 'Create new repository', href: '/new', kw: 'add create' },
759 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
760 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
761 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
762 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
763 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
764 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
765 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
766 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
767 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude768 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude769 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
770 { label: 'Gists', href: '/gists', kw: 'snippets' },
771 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
772 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
773 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
774 ];
775
776 function fuzzyMatch(item, q){
777 if (!q) return true;
778 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
779 q = q.toLowerCase();
780 var qi = 0;
781 for (var i = 0; i < hay.length && qi < q.length; i++) {
782 if (hay[i] === q[qi]) qi++;
783 }
784 return qi === q.length;
785 }
786
787 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
788
789 function render(){
790 if (!list) return;
791 var html = '';
792 for (var i = 0; i < filtered.length; i++) {
793 var item = filtered[i];
794 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
795 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]796 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App797 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude798 '<div>' + item.label + '</div>' +
799 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
800 '</div>';
801 }
802 if (filtered.length === 0) {
dc26881CC LABS App803 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude804 }
805 list.innerHTML = html;
806 }
807
808 function openPalette(){
809 backdrop = document.getElementById('cmdk-backdrop');
810 panel = document.getElementById('cmdk-panel');
811 input = document.getElementById('cmdk-input');
812 list = document.getElementById('cmdk-list');
813 if (!backdrop || !panel) return;
814 backdrop.style.display = 'block';
815 panel.style.display = 'block';
816 input.value = '';
817 selected = 0;
818 filtered = COMMANDS.slice();
819 render();
820 input.focus();
821 }
822 function closePalette(){
823 if (backdrop) backdrop.style.display = 'none';
824 if (panel) panel.style.display = 'none';
825 }
826 function go(href){ closePalette(); window.location.href = href; }
827
828 document.addEventListener('click', function(e){
829 var t = e.target;
830 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
831 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]832 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude833 });
834
835 document.addEventListener('input', function(e){
836 if (e.target && e.target.id === 'cmdk-input') {
837 var q = e.target.value;
838 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
839 selected = 0;
840 render();
841 }
842 });
843
3ef4c9dClaude844 document.addEventListener('keydown', function(e){
71cd5ecClaude845 // Palette-scoped keys take priority when open
846 if (panel && panel.style.display === 'block') {
847 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
848 if (e.key === 'ArrowDown') {
849 e.preventDefault();
850 selected = Math.min(filtered.length - 1, selected + 1);
851 render();
852 return;
853 }
854 if (e.key === 'ArrowUp') {
855 e.preventDefault();
856 selected = Math.max(0, selected - 1);
857 render();
858 return;
859 }
860 if (e.key === 'Enter') {
861 e.preventDefault();
862 var item = filtered[selected];
863 if (item) go(item.href);
864 return;
865 }
866 return;
867 }
868
3ef4c9dClaude869 if (isTyping(e.target)) return;
870 // Single key shortcuts
871 if (e.key === '/') {
872 var el = document.querySelector('.nav-search input');
873 if (el) { e.preventDefault(); el.focus(); return; }
874 }
875 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude876 e.preventDefault();
877 openPalette();
878 return;
3ef4c9dClaude879 }
880 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
881 e.preventDefault(); window.location.href = '/shortcuts'; return;
882 }
883 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
884 e.preventDefault(); window.location.href = '/new'; return;
885 }
886 // "g" chord
887 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
888 chord = 'g';
889 clearTimeout(chordTimer);
890 chordTimer = setTimeout(function(){ chord = null; }, 1200);
891 return;
892 }
893 if (chord === 'g') {
894 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
895 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
896 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
897 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
898 chord = null;
899 }
5882af3Claude900 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
901 if (e.key === 'j' || e.key === 'k') {
902 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
903 var items = Array.from(document.querySelectorAll(selectors));
904 if (items.length === 0) return;
905 e.preventDefault();
906 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
907 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));
908 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
909 items[next].classList.add('is-kbd-focus');
910 items[next].scrollIntoView({ block: 'nearest' });
911 return;
912 }
913 if (e.key === 'Enter') {
914 var focused = document.querySelector('.is-kbd-focus');
915 if (focused) {
916 e.preventDefault();
917 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
918 if (link && link.href) { window.location.href = link.href; }
919 return;
920 }
921 }
922 if (e.key === 'x') {
923 // 'x' selects/deselects focused item (future: bulk actions)
924 var sel = document.querySelector('.is-kbd-focus');
925 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
926 }
3ef4c9dClaude927 });
928 })();
929`;
930
c6018a5Claude931// AI dropdown — keyboard- and click-accessible menu in the top nav.
932// CSS handles the hover-open behaviour for pointer users; this script
933// adds click-to-toggle for touch, Escape-to-close, and outside-click-
934// to-close. Lives in its own IIFE so it never interferes with navScript.
935const navAiDropdownScript = `
936 (function(){
f5b9ef5Claude937 function makeDropdown(rootSel, triggerSel, menuSel) {
938 var open = false;
939 var root = document.querySelector(rootSel);
940 if (!root) return;
941 var trigger = root.querySelector(triggerSel);
942 var menu = root.querySelector(menuSel);
943 if (!trigger || !menu) return;
944 function setOpen(next){
945 open = !!next;
946 root.classList.toggle('is-open', open);
947 menu.classList.toggle('is-open', open);
948 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
949 }
950 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
951 document.addEventListener('click', function(e){
952 if (!open) return;
953 if (root.contains(e.target)) return;
954 setOpen(false);
955 });
956 document.addEventListener('keydown', function(e){
957 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
958 });
c6018a5Claude959 }
f5b9ef5Claude960 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
961 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude962 })();
963`;
964
fc1817aClaude965const css = `
2ce1d0bClaude966 /* ================================================================
958d26aClaude967 * Gluecron design system — 2026.05 "Editorial-Technical"
968 * Slate-noir base · refined violet signature · hairline geometry ·
969 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
970 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude971 * ============================================================== */
6fc53bdClaude972 :root, :root[data-theme='dark'] {
958d26aClaude973 /* Surfaces — slate, not black. More depth, less crush. */
974 --bg: #08090f;
975 --bg-secondary: #0c0d14;
976 --bg-tertiary: #11131c;
977 --bg-elevated: #0f111a;
978 --bg-surface: #161826;
979 --bg-hover: rgba(255,255,255,0.04);
980 --bg-active: rgba(255,255,255,0.08);
981 --bg-inset: rgba(0,0,0,0.30);
982
983 /* Borders — three weights, used deliberately */
984 --border: rgba(255,255,255,0.06);
985 --border-subtle: rgba(255,255,255,0.035);
986 --border-strong: rgba(255,255,255,0.13);
987 --border-focus: rgba(140,109,255,0.55);
988
989 /* Text */
990 --text: #ededf2;
991 --text-strong: #f7f7fb;
992 --text-muted: #8b8c9c;
993 --text-faint: #555665;
994 --text-link: #b69dff;
995
996 /* Accent — refined violet (less candy), warm amber as secondary signal */
997 --accent: #8c6dff;
998 --accent-2: #36c5d6;
999 --accent-warm: #ffb45e;
1000 --accent-hover: #a48bff;
1001 --accent-pressed:#7559e8;
1002 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1003 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1004 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1005 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1006
1007 /* Semantic */
1008 --green: #34d399;
1009 --red: #f87171;
1010 --yellow: #fbbf24;
1011 --amber: #fbbf24;
1012 --blue: #60a5fa;
1013
3a5755eClaude1014 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1015 display (headlines), JetBrains Mono for code. All three loaded from
1016 Google Fonts with display:swap so we never block first paint. System
1017 fallbacks remain in place — if the CDN is unreachable the site still
1018 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1019 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1020 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1021 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1022 --mono-feat: 'calt', 'liga', 'ss01';
1023
1024 /* Radius — sharper than before */
1025 --r-sm: 5px;
1026 --r: 7px;
1027 --r-md: 9px;
1028 --r-lg: 12px;
1029 --r-xl: 16px;
1030 --r-2xl: 22px;
1031 --r-full: 9999px;
1032 --radius: 7px;
1033
1034 /* Type scale — bigger display sizes for editorial feel */
1035 --t-xs: 11px;
1036 --t-sm: 13px;
1037 --t-base: 14px;
1038 --t-md: 16px;
1039 --t-lg: 20px;
1040 --t-xl: 28px;
1041 --t-2xl: 40px;
1042 --t-3xl: 56px;
1043 --t-display: 72px;
1044 --t-display-lg:96px;
1045
1046 /* Spacing — 4px base */
2ce1d0bClaude1047 --s-0: 0;
958d26aClaude1048 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1049 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1050 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1051 --s-20:80px; --s-24:96px; --s-32:128px;
1052
1053 /* Elevation — softer + more layered */
1054 --elev-0: 0 0 0 1px var(--border);
1055 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1056 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1057 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1058 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1059 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1060 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1061 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1062
1063 /* Motion */
1064 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1065 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1066 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1067 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1068 --t-fast: 120ms;
1069 --t-base: 200ms;
1070 --t-slow: 360ms;
1071 --t-slower:560ms;
1072
1073 --header-h: 60px;
c63b860Claude1074
1075 /* Block O3 — visual coherence: named token aliases (additive). */
1076 --space-1: var(--s-1);
1077 --space-2: var(--s-2);
1078 --space-3: var(--s-3);
1079 --space-4: var(--s-4);
1080 --space-5: var(--s-5);
1081 --space-6: var(--s-6);
1082 --space-8: var(--s-8);
1083 --space-10: var(--s-10);
1084 --space-12: var(--s-12);
1085 --space-16: var(--s-16);
1086 --space-20: var(--s-20);
1087 --space-24: var(--s-24);
1088 --radius-sm: var(--r-sm);
1089 --radius-md: var(--r-md);
1090 --radius-lg: var(--r-lg);
1091 --radius-xl: var(--r-xl);
1092 --radius-full: var(--r-full);
1093 --font-size-xs: var(--t-xs);
1094 --font-size-sm: var(--t-sm);
1095 --font-size-base: var(--t-base);
1096 --font-size-md: var(--t-md);
1097 --font-size-lg: var(--t-lg);
1098 --font-size-xl: var(--t-xl);
1099 --font-size-2xl: var(--t-2xl);
1100 --font-size-3xl: var(--t-3xl);
1101 --font-size-hero: var(--t-display);
1102 --leading-tight: 1.2;
1103 --leading-snug: 1.35;
1104 --leading-normal: 1.5;
1105 --leading-relaxed: 1.6;
1106 --leading-loose: 1.7;
1107 --z-base: 1;
1108 --z-nav: 10;
1109 --z-sticky: 50;
1110 --z-overlay: 100;
1111 --z-modal: 1000;
1112 --z-toast: 10000;
fc1817aClaude1113 }
1114
6fc53bdClaude1115 :root[data-theme='light'] {
958d26aClaude1116 --bg: #fbfbfc;
4c47454Claude1117 --bg-secondary: #ffffff;
958d26aClaude1118 --bg-tertiary: #f3f3f6;
1119 --bg-elevated: #ffffff;
1120 --bg-surface: #f6f6f9;
1121 --bg-hover: rgba(0,0,0,0.035);
1122 --bg-active: rgba(0,0,0,0.07);
1123 --bg-inset: rgba(0,0,0,0.04);
1124
1125 --border: rgba(15,16,28,0.08);
1126 --border-subtle: rgba(15,16,28,0.04);
1127 --border-strong: rgba(15,16,28,0.16);
1128
1129 --text: #0e1020;
1130 --text-strong: #050617;
1131 --text-muted: #5a5b70;
1132 --text-faint: #8a8b9e;
1133 --text-link: #6d4dff;
1134
1135 --accent: #6d4dff;
1136 --accent-2: #0891b2;
1137 --accent-hover: #5a3df0;
1138 --accent-pressed:#4a30d6;
1139 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1140
1141 --green: #059669;
1142 --red: #dc2626;
4c47454Claude1143 --yellow: #d97706;
958d26aClaude1144
1145 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1146 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1147 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1148 }
1149
1150 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1151 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1152 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1153 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1154 :root[data-theme='light'] .theme-icon-light { display: none; }
1155
fc1817aClaude1156 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1157 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1158
958d26aClaude1159 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1160
1161 body {
1162 font-family: var(--font-sans);
1163 background: var(--bg);
1164 color: var(--text);
cf9178bTest User1165 font-size: 15px;
2ce1d0bClaude1166 line-height: 1.55;
958d26aClaude1167 letter-spacing: -0.011em;
fc1817aClaude1168 min-height: 100vh;
1169 display: flex;
1170 flex-direction: column;
958d26aClaude1171 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1172 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1173 and disables automatic synthesis of bold/italic which can produce
1174 muddier rendering on certain weights. */
1175 -webkit-font-smoothing: antialiased;
1176 -moz-osx-font-smoothing: grayscale;
1177 font-synthesis: none;
1178 }
1179 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1180 line-height inversely with size so display text doesn't feel airy. */
1181 h1, h2, h3, h4, h5, h6 {
1182 font-family: var(--font-display);
1183 color: var(--text-strong);
1184 letter-spacing: -0.022em;
1185 line-height: 1.18;
1186 font-weight: 650;
1187 margin-top: 0;
1188 }
1189 h1 { font-size: 28px; letter-spacing: -0.028em; }
1190 h2 { font-size: 22px; }
1191 h3 { font-size: 18px; letter-spacing: -0.018em; }
1192 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1193 /* Link refinement — underline only on hover/focus, never by default
1194 on internal nav. Prevents the "blue underline soup" look. */
1195 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1196 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1197 a:focus-visible {
1198 outline: none;
1199 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1200 border-radius: 3px;
fc1817aClaude1201 }
1202
958d26aClaude1203 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1204 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1205 body::before {
1206 content: '';
1207 position: fixed;
1208 inset: 0;
1209 pointer-events: none;
958d26aClaude1210 z-index: -2;
2ce1d0bClaude1211 background:
958d26aClaude1212 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1213 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1214 }
1215 body::after {
1216 content: '';
1217 position: fixed;
1218 inset: 0;
1219 pointer-events: none;
1220 z-index: -1;
1221 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1222 background-size: 28px 28px;
1223 background-position: 0 0;
1224 opacity: 0.55;
1225 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1226 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1227 }
1228 :root[data-theme='light'] body::before { opacity: 0.55; }
1229 :root[data-theme='light'] body::after {
1230 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1231 opacity: 0.4;
fc1817aClaude1232 }
2ce1d0bClaude1233
1234 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1235 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1236
958d26aClaude1237 /* Heading scale — confident, editorial, tight tracking */
1238 h1, h2, h3, h4, h5, h6 {
1239 font-family: var(--font-display);
2ce1d0bClaude1240 font-weight: 600;
958d26aClaude1241 letter-spacing: -0.022em;
1242 line-height: 1.18;
1243 color: var(--text-strong);
1244 }
1245 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1246 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1247 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1248 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1249 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1250
1251 /* Editorial display heading utility — used by landing + marketing pages */
1252 .display {
1253 font-family: var(--font-display);
1254 font-size: clamp(40px, 7.5vw, 96px);
1255 line-height: 0.98;
1256 letter-spacing: -0.04em;
1257 font-weight: 600;
1258 color: var(--text-strong);
2ce1d0bClaude1259 }
fc1817aClaude1260
958d26aClaude1261 /* Eyebrow — uppercase mono label that sits above section headings */
1262 .eyebrow {
1263 display: inline-flex;
1264 align-items: center;
1265 gap: 8px;
1266 font-family: var(--font-mono);
1267 font-size: 11px;
1268 font-weight: 500;
1269 letter-spacing: 0.14em;
1270 text-transform: uppercase;
1271 color: var(--accent);
1272 margin-bottom: var(--s-3);
1273 }
1274 .eyebrow::before {
1275 content: '';
1276 width: 18px;
1277 height: 1px;
1278 background: currentColor;
1279 opacity: 0.6;
1280 }
1281
1282 /* Section header — paired eyebrow + title + lede */
1283 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1284 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1285 .section-header h2 {
1286 font-size: clamp(28px, 4vw, 44px);
1287 line-height: 1.05;
1288 letter-spacing: -0.028em;
1289 margin-bottom: var(--s-3);
1290 }
1291 .section-header p {
1292 color: var(--text-muted);
1293 font-size: var(--t-md);
1294 line-height: 1.6;
1295 max-width: 580px;
1296 margin: 0 auto;
1297 }
1298 .section-header.left p { margin-left: 0; }
fc1817aClaude1299
958d26aClaude1300 code, kbd, samp {
2ce1d0bClaude1301 font-family: var(--font-mono);
958d26aClaude1302 font-feature-settings: var(--mono-feat);
1303 }
1304 code {
1305 font-size: 0.9em;
2ce1d0bClaude1306 background: var(--bg-tertiary);
958d26aClaude1307 border: 1px solid var(--border-subtle);
2ce1d0bClaude1308 padding: 1px 6px;
1309 border-radius: var(--r-sm);
1310 color: var(--text);
1311 }
958d26aClaude1312 kbd, .kbd {
1313 display: inline-flex;
1314 align-items: center;
1315 padding: 1px 6px;
1316 font-family: var(--font-mono);
1317 font-size: 11px;
1318 background: var(--bg-elevated);
1319 border: 1px solid var(--border);
1320 border-bottom-width: 2px;
1321 border-radius: 4px;
1322 color: var(--text);
1323 line-height: 1.5;
1324 vertical-align: middle;
1325 }
2ce1d0bClaude1326
958d26aClaude1327 /* Mono utility for technical chrome (paths, IDs, dates) */
1328 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1329 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1330
1331 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1332 .prelaunch-banner {
958d26aClaude1333 position: relative;
2ce1d0bClaude1334 background:
958d26aClaude1335 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1336 var(--bg);
958d26aClaude1337 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1338 color: var(--yellow);
958d26aClaude1339 padding: 7px 24px;
1340 font-family: var(--font-mono);
1341 font-size: 11px;
4a52a98Claude1342 font-weight: 500;
1343 text-align: center;
2ce1d0bClaude1344 line-height: 1.5;
958d26aClaude1345 letter-spacing: 0.04em;
1346 text-transform: uppercase;
1347 }
1348 .prelaunch-banner::before {
1349 content: '◆';
1350 margin-right: 8px;
1351 font-size: 9px;
1352 opacity: 0.7;
1353 vertical-align: 1px;
4a52a98Claude1354 }
1355
cd4f63bTest User1356 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1357 visitors don't miss the "save your work" CTA, but slim enough to
1358 not feel like a modal. */
1359 .playground-banner {
1360 position: relative;
1361 display: flex;
1362 align-items: center;
1363 justify-content: center;
1364 gap: 8px;
1365 background:
1366 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1367 var(--bg);
1368 border-bottom: 1px solid rgba(251,191,36,0.45);
1369 color: var(--yellow, #fbbf24);
1370 padding: 8px 40px 8px 24px;
1371 font-size: 13px;
1372 font-weight: 500;
1373 text-align: center;
1374 line-height: 1.4;
1375 }
1376 .playground-banner-icon { font-size: 14px; }
1377 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1378 .playground-banner-countdown { font-weight: 600; }
1379 .playground-banner-cta {
1380 margin-left: 4px;
1381 color: var(--yellow, #fbbf24);
1382 text-decoration: underline;
1383 font-weight: 600;
1384 }
1385 .playground-banner-cta:hover { opacity: 0.85; }
1386 .playground-banner-dismiss {
1387 position: absolute;
1388 top: 50%;
1389 right: 12px;
1390 transform: translateY(-50%);
1391 background: transparent;
1392 border: none;
1393 color: var(--text-muted, #8b949e);
1394 font-size: 18px;
1395 line-height: 1;
1396 cursor: pointer;
1397 padding: 0 4px;
1398 }
1399 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1400
958d26aClaude1401 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1402 header {
2ce1d0bClaude1403 position: sticky;
1404 top: 0;
1405 z-index: 100;
fc1817aClaude1406 border-bottom: 1px solid var(--border);
2ce1d0bClaude1407 padding: 0 24px;
1408 height: var(--header-h);
958d26aClaude1409 background: rgba(8,9,15,0.72);
1410 backdrop-filter: saturate(180%) blur(18px);
1411 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1412 }
958d26aClaude1413 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1414
06d5ffeClaude1415 header nav {
1416 display: flex;
1417 align-items: center;
958d26aClaude1418 gap: 18px;
eed4684Claude1419 max-width: 1920px;
06d5ffeClaude1420 margin: 0 auto;
2ce1d0bClaude1421 height: 100%;
1422 }
1423 .logo {
958d26aClaude1424 font-family: var(--font-display);
1425 font-size: 16px;
2ce1d0bClaude1426 font-weight: 700;
958d26aClaude1427 letter-spacing: -0.025em;
1428 color: var(--text-strong);
2ce1d0bClaude1429 display: inline-flex;
1430 align-items: center;
958d26aClaude1431 gap: 9px;
1432 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1433 }
2ce1d0bClaude1434 .logo::before {
1435 content: '';
958d26aClaude1436 width: 20px; height: 20px;
1437 border-radius: 6px;
2ce1d0bClaude1438 background: var(--accent-gradient);
958d26aClaude1439 box-shadow:
1440 inset 0 1px 0 rgba(255,255,255,0.25),
1441 0 0 0 1px rgba(140,109,255,0.45),
1442 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1443 flex-shrink: 0;
958d26aClaude1444 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1445 }
1446 .logo:hover { text-decoration: none; color: var(--text-strong); }
1447 .logo:hover::before {
1448 transform: rotate(8deg) scale(1.05);
1449 box-shadow:
1450 inset 0 1px 0 rgba(255,255,255,0.30),
1451 0 0 0 1px rgba(140,109,255,0.55),
1452 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1453 }
fc1817aClaude1454
2ce1d0bClaude1455 .nav-search {
1456 flex: 1;
958d26aClaude1457 max-width: 360px;
1458 margin: 0 4px 0 8px;
1459 position: relative;
2ce1d0bClaude1460 }
1461 .nav-search input {
1462 width: 100%;
958d26aClaude1463 padding: 7px 12px 7px 32px;
2ce1d0bClaude1464 background: var(--bg-tertiary);
1465 border: 1px solid var(--border);
1466 border-radius: var(--r-sm);
1467 color: var(--text);
1468 font-family: var(--font-sans);
1469 font-size: var(--t-sm);
958d26aClaude1470 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1471 }
1472 .nav-search::before {
1473 content: '';
1474 position: absolute;
1475 left: 11px; top: 50%;
1476 transform: translateY(-50%);
1477 width: 12px; height: 12px;
1478 border: 1.5px solid var(--text-faint);
1479 border-radius: 50%;
1480 pointer-events: none;
1481 }
1482 .nav-search::after {
1483 content: '';
1484 position: absolute;
1485 left: 19px; top: calc(50% + 4px);
1486 width: 5px; height: 1.5px;
1487 background: var(--text-faint);
1488 transform: rotate(45deg);
1489 pointer-events: none;
2ce1d0bClaude1490 }
1491 .nav-search input::placeholder { color: var(--text-faint); }
1492 .nav-search input:focus {
1493 outline: none;
1494 background: var(--bg-secondary);
958d26aClaude1495 border-color: var(--border-focus);
1496 box-shadow: var(--ring);
2ce1d0bClaude1497 }
06d5ffeClaude1498
958d26aClaude1499 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1500
1501 /* Block N3 — site-admin deploy status pill */
1502 .nav-deploy-pill {
1503 display: inline-flex;
1504 align-items: center;
1505 gap: 6px;
1506 padding: 4px 10px;
1507 margin: 0 6px 0 0;
1508 border-radius: 9999px;
1509 font-size: 11px;
1510 font-weight: 600;
1511 line-height: 1;
1512 color: var(--text-strong);
1513 background: var(--bg-elevated);
1514 border: 1px solid var(--border);
1515 text-decoration: none;
1516 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1517 }
1518 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1519 .nav-deploy-pill .deploy-pill-dot {
1520 display: inline-block;
1521 width: 8px; height: 8px;
1522 border-radius: 50%;
1523 background: #6b7280;
1524 }
1525 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1526 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1527 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1528 .deploy-pill-progress .deploy-pill-dot {
1529 background: #fbbf24;
1530 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1531 animation: deployPillPulse 1.2s ease-in-out infinite;
1532 }
1533 @keyframes deployPillPulse {
1534 0%, 100% { opacity: 1; transform: scale(1); }
1535 50% { opacity: 0.45; transform: scale(0.8); }
1536 }
1537 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1538
c6018a5Claude1539 /* ── AI dropdown (nav consolidation) ── */
1540 .nav-ai-dropdown {
1541 position: relative;
1542 display: inline-flex;
1543 align-items: center;
1544 }
1545 .nav-ai-trigger {
1546 background: transparent;
1547 border: 0;
1548 font: inherit;
1549 cursor: pointer;
1550 color: var(--text-muted);
1551 font-size: var(--t-sm);
1552 font-weight: 500;
1553 padding: 7px 11px;
1554 border-radius: var(--r-sm);
1555 line-height: 1.2;
1556 }
1557 .nav-ai-trigger:hover {
1558 color: var(--text-strong);
1559 background: var(--bg-hover);
1560 }
1561 .nav-ai-menu {
1562 position: absolute;
1563 top: calc(100% + 6px);
1564 right: 0;
1565 min-width: 220px;
1566 background: var(--bg-secondary);
1567 border: 1px solid var(--border-strong);
1568 border-radius: 10px;
1569 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1570 padding: 6px;
1571 display: none;
1572 z-index: var(--z-overlay, 100);
1573 }
1574 .nav-ai-dropdown:hover .nav-ai-menu,
1575 .nav-ai-dropdown.is-open .nav-ai-menu,
1576 .nav-ai-dropdown:focus-within .nav-ai-menu {
1577 display: block;
1578 }
1579 .nav-ai-item {
1580 display: flex;
1581 flex-direction: column;
1582 gap: 1px;
1583 padding: 8px 10px;
1584 border-radius: 6px;
1585 color: var(--text);
1586 text-decoration: none;
1587 transition: background var(--t-fast) var(--ease);
1588 }
1589 .nav-ai-item:hover {
1590 background: var(--bg-hover);
1591 text-decoration: none;
1592 color: var(--text-strong);
1593 }
1594 .nav-ai-item-label {
1595 font-size: var(--t-sm);
1596 font-weight: 600;
1597 color: var(--text-strong);
1598 }
1599 .nav-ai-item-sub {
1600 font-size: 11.5px;
1601 color: var(--text-muted);
1602 }
1603
2ce1d0bClaude1604 .nav-link {
958d26aClaude1605 position: relative;
2ce1d0bClaude1606 color: var(--text-muted);
1607 font-size: var(--t-sm);
1608 font-weight: 500;
958d26aClaude1609 padding: 7px 11px;
2ce1d0bClaude1610 border-radius: var(--r-sm);
958d26aClaude1611 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1612 }
1613 .nav-link:hover {
958d26aClaude1614 color: var(--text-strong);
2ce1d0bClaude1615 background: var(--bg-hover);
1616 text-decoration: none;
1617 }
958d26aClaude1618 .nav-link.active { color: var(--text-strong); }
1619 .nav-link.active::after {
1620 content: '';
1621 position: absolute;
1622 left: 11px; right: 11px;
1623 bottom: -1px;
1624 height: 2px;
1625 background: var(--accent-gradient);
1626 border-radius: 2px;
1627 }
adf5e18Claude1628 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1629 so it reads as an action affordance rather than a passive link. */
1630 .nav-migrate {
1631 color: var(--accent);
1632 font-weight: 600;
1633 border: 1px solid rgba(140,109,255,0.22);
1634 background: rgba(140,109,255,0.07);
1635 }
1636 .nav-migrate:hover {
1637 color: var(--accent-hover);
1638 background: rgba(140,109,255,0.13);
1639 border-color: rgba(140,109,255,0.40);
1640 }
1641 @media (max-width: 780px) { .nav-migrate { display: none; } }
1642
2ce1d0bClaude1643 .nav-user {
958d26aClaude1644 color: var(--text-strong);
2ce1d0bClaude1645 font-weight: 600;
1646 font-size: var(--t-sm);
1647 padding: 6px 10px;
1648 border-radius: var(--r-sm);
958d26aClaude1649 margin-left: 6px;
2ce1d0bClaude1650 transition: background var(--t-fast) var(--ease);
1651 }
958d26aClaude1652 .nav-user::before {
1653 content: '';
1654 display: inline-block;
1655 width: 8px; height: 8px;
1656 background: var(--green);
1657 border-radius: 50%;
1658 margin-right: 7px;
1659 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1660 vertical-align: 1px;
1661 }
2ce1d0bClaude1662 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1663
f5b9ef5Claude1664 /* ── Inbox bell button ── */
1665 .nav-inbox-btn {
1666 position: relative;
1667 display: inline-flex;
1668 align-items: center;
1669 justify-content: center;
1670 width: 34px;
1671 height: 34px;
1672 border-radius: var(--r-sm);
1673 color: var(--text-muted);
1674 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1675 flex-shrink: 0;
1676 }
1677 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1678 .nav-inbox-badge {
1679 position: absolute;
1680 top: 3px; right: 3px;
1681 min-width: 15px; height: 15px;
1682 padding: 0 4px;
1683 font-size: 9.5px;
1684 font-weight: 700;
1685 line-height: 15px;
1686 color: #fff;
1687 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1688 border-radius: 9999px;
1689 text-align: center;
1690 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1691 font-variant-numeric: tabular-nums;
1692 }
1693
1694 /* ── User dropdown ── */
1695 .nav-user-dropdown { position: relative; }
1696 .nav-user-trigger {
1697 display: inline-flex;
1698 align-items: center;
1699 gap: 7px;
1700 padding: 5px 9px 5px 5px;
1701 border-radius: var(--r-sm);
1702 border: 1px solid transparent;
1703 background: transparent;
1704 color: var(--text);
1705 font-family: var(--font-sans);
1706 font-size: var(--t-sm);
1707 font-weight: 500;
1708 cursor: pointer;
1709 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1710 }
1711 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1712 .nav-user-avatar {
1713 width: 24px; height: 24px;
1714 border-radius: 50%;
1715 background: var(--accent-gradient);
1716 color: #fff;
1717 font-size: 11px;
1718 font-weight: 700;
1719 display: inline-flex;
1720 align-items: center;
1721 justify-content: center;
1722 flex-shrink: 0;
1723 box-shadow: 0 0 0 2px var(--border);
1724 }
1725 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1726 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1727 .nav-user-menu {
1728 display: none;
1729 position: absolute;
1730 top: calc(100% + 6px);
1731 right: 0;
1732 min-width: 220px;
1733 background: var(--bg-elevated);
1734 border: 1px solid var(--border-strong);
1735 border-radius: var(--r-lg);
1736 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1737 padding: 6px;
1738 z-index: 200;
1739 animation: navMenuIn 140ms var(--ease) both;
1740 }
1741 .nav-user-menu.is-open { display: block; }
1742 .nav-user-menu-header {
1743 padding: 8px 10px 10px;
1744 display: flex;
1745 flex-direction: column;
1746 gap: 2px;
1747 }
1748 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1749 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1750 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1751 .nav-user-item {
1752 display: block;
1753 padding: 7px 10px;
1754 border-radius: 6px;
1755 font-size: var(--t-sm);
1756 color: var(--text);
1757 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1758 white-space: nowrap;
1759 }
1760 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1761 .nav-user-item--danger { color: var(--red); }
1762 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1763
1764 @keyframes navMenuIn {
1765 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1766 to { opacity: 1; transform: translateY(0) scale(1); }
1767 }
1768
2ce1d0bClaude1769 main {
eed4684Claude1770 max-width: 1920px;
2ce1d0bClaude1771 margin: 0 auto;
958d26aClaude1772 padding: 36px 24px 80px;
2ce1d0bClaude1773 flex: 1;
1774 width: 100%;
ed6e438Claude1775 /* 2026 polish — subtle entrance animation on every page load.
1776 Content fades up 4px over 360ms, giving the site that "alive"
1777 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1778 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1779 }
1780 @keyframes gxMainEnter {
1781 from { opacity: 0; transform: translateY(4px); }
1782 to { opacity: 1; transform: translateY(0); }
1783 }
1784 @media (prefers-reduced-motion: reduce) {
1785 main { animation: none; }
1786 }
1787 /* 2026 polish — accent focus ring across all focusable elements.
1788 The default browser ring is utilitarian; this is the same width
1789 but tinted to the brand accent so keyboard navigation feels
1790 intentional, not jarring. :focus-visible only — mouse users
1791 never see it. */
1792 :focus-visible {
1793 outline: none;
1794 }
1795 a:focus-visible,
1796 button:focus-visible,
1797 input:focus-visible,
1798 select:focus-visible,
1799 textarea:focus-visible,
1800 [tabindex]:focus-visible {
1801 outline: 2px solid rgba(140, 109, 255, 0.55);
1802 outline-offset: 2px;
1803 border-radius: 4px;
2ce1d0bClaude1804 }
fc1817aClaude1805
958d26aClaude1806 /* Editorial footer: link grid + tagline row */
fc1817aClaude1807 footer {
1808 border-top: 1px solid var(--border);
958d26aClaude1809 padding: 56px 24px 40px;
fc1817aClaude1810 color: var(--text-muted);
958d26aClaude1811 font-size: var(--t-sm);
1812 background:
1813 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1814 var(--bg);
1815 }
1816 footer .footer-inner {
eed4684Claude1817 max-width: 1920px;
958d26aClaude1818 margin: 0 auto;
1819 display: grid;
1820 grid-template-columns: 1fr auto;
1821 gap: 48px;
1822 align-items: start;
1823 }
1824 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1825 footer .footer-tag {
1826 color: var(--text-muted);
1827 font-size: var(--t-sm);
1828 max-width: 320px;
1829 line-height: 1.55;
1830 }
1831 footer .footer-links {
1832 display: grid;
1833 grid-template-columns: repeat(3, minmax(120px, auto));
1834 gap: 0 56px;
1835 }
1836 footer .footer-col-title {
1837 font-family: var(--font-mono);
1838 font-size: 11px;
1839 text-transform: uppercase;
1840 letter-spacing: 0.14em;
1841 color: var(--text-faint);
1842 margin-bottom: var(--s-3);
1843 }
1844 footer .footer-col a {
1845 display: block;
1846 color: var(--text-muted);
1847 font-size: var(--t-sm);
1848 padding: 5px 0;
1849 transition: color var(--t-fast) var(--ease);
1850 }
1851 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1852 footer .footer-bottom {
eed4684Claude1853 max-width: 1920px;
958d26aClaude1854 margin: 40px auto 0;
1855 padding-top: 24px;
1856 border-top: 1px solid var(--border-subtle);
1857 display: flex;
1858 justify-content: space-between;
1859 align-items: center;
2ce1d0bClaude1860 color: var(--text-faint);
1861 font-size: var(--t-xs);
958d26aClaude1862 font-family: var(--font-mono);
1863 letter-spacing: 0.02em;
1864 }
1865 footer .footer-bottom a { color: var(--text-faint); }
1866 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1867 footer .footer-build {
1868 display: inline-flex;
1869 align-items: center;
1870 gap: 6px;
1871 color: var(--text-faint);
1872 font-family: var(--font-mono);
1873 font-size: 11px;
1874 cursor: help;
1875 }
1876 footer .footer-build-dot {
1877 width: 6px; height: 6px;
1878 border-radius: 50%;
1879 background: var(--green);
1880 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1881 animation: footer-build-pulse 2.4s ease-in-out infinite;
1882 }
1883 @keyframes footer-build-pulse {
1884 0%, 100% { opacity: 0.6; }
1885 50% { opacity: 1; }
1886 }
958d26aClaude1887 @media (max-width: 768px) {
1888 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1889 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1890 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1891 }
1892
2ce1d0bClaude1893 /* ============================================================ */
1894 /* Buttons */
1895 /* ============================================================ */
dc26881CC LABS App1896 /* ============================================================ */
1897 /* Buttons — Block U2 senior polish pass. */
1898 /* Rules: */
1899 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1900 /* · active presses back down to 0 (80ms — faster on press) */
1901 /* · focus-visible uses a soft box-shadow ring (no outline) */
1902 /* · primary gradient shifts position on hover for a slow */
1903 /* 600ms shimmer */
1904 /* · disabled never lifts and never animates */
1905 /* ============================================================ */
06d5ffeClaude1906 .btn {
1907 display: inline-flex;
1908 align-items: center;
2ce1d0bClaude1909 justify-content: center;
958d26aClaude1910 gap: 7px;
2ce1d0bClaude1911 padding: 7px 14px;
1912 border-radius: var(--r-sm);
958d26aClaude1913 font-family: var(--font-sans);
2ce1d0bClaude1914 font-size: var(--t-sm);
06d5ffeClaude1915 font-weight: 500;
1916 border: 1px solid var(--border);
2ce1d0bClaude1917 background: var(--bg-elevated);
06d5ffeClaude1918 color: var(--text);
1919 cursor: pointer;
1920 text-decoration: none;
958d26aClaude1921 line-height: 1.25;
1922 letter-spacing: -0.008em;
dc26881CC LABS App1923 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1924 Listed once on the base rule so :active can override only the
1925 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1926 transition:
dc26881CC LABS App1927 background 180ms ease,
1928 border-color 180ms ease,
1929 transform 180ms ease,
1930 box-shadow 180ms ease,
1931 color 180ms ease;
2ce1d0bClaude1932 user-select: none;
1933 white-space: nowrap;
958d26aClaude1934 position: relative;
06d5ffeClaude1935 }
2ce1d0bClaude1936 .btn:hover {
1937 background: var(--bg-surface);
1938 border-color: var(--border-strong);
958d26aClaude1939 color: var(--text-strong);
2ce1d0bClaude1940 text-decoration: none;
dc26881CC LABS App1941 /* U2 — universal hover lift + soft accent drop shadow. */
1942 transform: translateY(-1px);
1943 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1944 }
1945 .btn:active {
1946 transform: translateY(0);
1947 transition-duration: 80ms;
1948 }
1949 /* U2 — soft modern focus ring via box-shadow, not outline. */
1950 .btn:focus-visible {
1951 outline: none;
1952 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1953 }
1954
1955 .btn-primary {
1956 background: var(--accent-gradient);
dc26881CC LABS App1957 background-size: 200% 100%;
1958 background-position: 0% 50%;
2ce1d0bClaude1959 border-color: transparent;
1960 color: #fff;
1961 font-weight: 600;
958d26aClaude1962 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1963 box-shadow:
958d26aClaude1964 inset 0 1px 0 rgba(255,255,255,0.22),
1965 inset 0 -1px 0 rgba(0,0,0,0.10),
1966 0 1px 2px rgba(0,0,0,0.40),
1967 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1968 /* U2 — slower 600ms transition on background-position so the
1969 primary CTA shimmers when the cursor lands. */
1970 transition:
1971 background-position 600ms ease,
1972 transform 180ms ease,
1973 box-shadow 180ms ease,
1974 color 180ms ease;
06d5ffeClaude1975 }
958d26aClaude1976 .btn-primary::before {
1977 content: '';
1978 position: absolute;
1979 inset: 0;
1980 border-radius: inherit;
1981 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1982 opacity: 0;
1983 transition: opacity var(--t-fast) var(--ease);
1984 pointer-events: none;
2ce1d0bClaude1985 }
1986 .btn-primary:hover {
958d26aClaude1987 color: #fff;
2ce1d0bClaude1988 background: var(--accent-gradient);
dc26881CC LABS App1989 background-size: 200% 100%;
1990 background-position: 100% 50%;
958d26aClaude1991 border-color: transparent;
dc26881CC LABS App1992 transform: translateY(-1px);
2ce1d0bClaude1993 box-shadow:
958d26aClaude1994 inset 0 1px 0 rgba(255,255,255,0.30),
1995 inset 0 -1px 0 rgba(0,0,0,0.10),
1996 0 6px 18px -4px rgba(140,109,255,0.45),
1997 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1998 }
958d26aClaude1999 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App2000 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2001 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2002 .btn-primary:focus-visible {
2003 box-shadow:
2004 inset 0 1px 0 rgba(255,255,255,0.22),
2005 0 0 0 3px rgba(140,109,255,0.35);
2006 }
2ce1d0bClaude2007
2008 .btn-danger {
2009 background: transparent;
958d26aClaude2010 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2011 color: var(--red);
2012 }
2013 .btn-danger:hover {
958d26aClaude2014 background: rgba(248,113,113,0.08);
2ce1d0bClaude2015 border-color: var(--red);
958d26aClaude2016 color: var(--red);
dc26881CC LABS App2017 transform: translateY(-1px);
2018 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2019 }
dc26881CC LABS App2020 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2021
2022 .btn-ghost {
2023 background: transparent;
2024 border-color: transparent;
2025 color: var(--text-muted);
2026 }
2027 .btn-ghost:hover {
2028 background: var(--bg-hover);
958d26aClaude2029 color: var(--text-strong);
2ce1d0bClaude2030 border-color: var(--border);
dc26881CC LABS App2031 transform: translateY(-1px);
2032 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2033 }
2034
958d26aClaude2035 .btn-secondary {
2036 background: var(--bg-elevated);
2037 border-color: var(--border-strong);
2038 color: var(--text-strong);
2039 }
2040 .btn-secondary:hover {
2041 background: var(--bg-surface);
2042 border-color: var(--border-strong);
dc26881CC LABS App2043 transform: translateY(-1px);
2044 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2045 }
2046
2047 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2048 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2049 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2050 .btn-block { width: 100%; }
2ce1d0bClaude2051
dc26881CC LABS App2052 /* U2 — disabled never lifts, never shimmers, never glows. */
2053 .btn:disabled,
2054 .btn[aria-disabled='true'],
2055 .btn:disabled:hover,
2056 .btn[aria-disabled='true']:hover {
2057 opacity: 0.5;
2ce1d0bClaude2058 cursor: not-allowed;
2059 pointer-events: none;
dc26881CC LABS App2060 transform: none;
2061 box-shadow: none;
2062 }
2063 @media (prefers-reduced-motion: reduce) {
2064 .btn,
2065 .btn:hover,
2066 .btn:active,
2067 .btn-primary,
2068 .btn-primary:hover {
2069 transform: none;
2070 transition: background-color 80ms linear, color 80ms linear;
2071 }
2ce1d0bClaude2072 }
2073
2074 /* ============================================================ */
2075 /* Forms */
2076 /* ============================================================ */
2077 .form-group { margin-bottom: 20px; }
2078 .form-group label {
2079 display: block;
2080 font-size: var(--t-sm);
2081 font-weight: 500;
2082 margin-bottom: 6px;
2083 color: var(--text);
2084 letter-spacing: -0.005em;
2085 }
2086 .form-group input,
2087 .form-group textarea,
2088 .form-group select,
2089 input[type='text'], input[type='email'], input[type='password'],
2090 input[type='url'], input[type='search'], input[type='number'],
2091 textarea, select {
06d5ffeClaude2092 width: 100%;
2ce1d0bClaude2093 padding: 9px 12px;
2094 background: var(--bg-secondary);
06d5ffeClaude2095 border: 1px solid var(--border);
2ce1d0bClaude2096 border-radius: var(--r-sm);
06d5ffeClaude2097 color: var(--text);
2ce1d0bClaude2098 font-size: var(--t-sm);
06d5ffeClaude2099 font-family: var(--font-sans);
2ce1d0bClaude2100 transition:
2101 border-color var(--t-fast) var(--ease),
2102 background var(--t-fast) var(--ease),
2103 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2104 }
2ce1d0bClaude2105 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2106 color: var(--text-faint);
06d5ffeClaude2107 }
2ce1d0bClaude2108 .form-group input:hover, textarea:hover, select:hover,
2109 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2110 border-color: var(--border-strong);
2111 }
2112 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2113 input:focus, textarea:focus, select:focus {
06d5ffeClaude2114 outline: none;
2ce1d0bClaude2115 background: var(--bg);
2116 border-color: var(--border-focus);
2117 box-shadow: var(--ring);
06d5ffeClaude2118 }
2ce1d0bClaude2119 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2120 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2121
2ce1d0bClaude2122 /* ============================================================ */
2123 /* Auth (register / login / verify) */
2124 /* ============================================================ */
2125 .auth-container {
98f45b4Claude2126 /* 2026 polish — wider, more generous, with a subtle accent-glow
2127 border and gradient top-edge so it reads as a premium product
2128 gateway, not a stock form. The 480px width feels intentional
2129 (not cramped, not endless). */
2130 max-width: 480px;
2131 margin: 72px auto;
2132 padding: 40px 40px 36px;
2ce1d0bClaude2133 background: var(--bg-elevated);
2134 border: 1px solid var(--border);
98f45b4Claude2135 border-radius: 16px;
2136 box-shadow:
2137 var(--elev-2),
2138 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2139 position: relative;
2140 overflow: hidden;
2141 }
2142 .auth-container::before {
2143 /* Hairline gradient accent on the top edge — signals 'AI-native'
2144 without shouting. Pointer-events disabled so it never interferes
2145 with form interactions. */
2146 content: '';
2147 position: absolute;
2148 top: 0;
2149 left: 0;
2150 right: 0;
2151 height: 2px;
2152 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2153 opacity: 0.7;
2154 pointer-events: none;
2ce1d0bClaude2155 }
2156 .auth-container h2 {
98f45b4Claude2157 margin: 0 0 8px;
2158 font-size: 28px;
2159 font-weight: 700;
2160 font-family: var(--font-display);
2161 letter-spacing: -0.025em;
2162 color: var(--text-strong);
2163 line-height: 1.15;
2164 }
2165 .auth-container .auth-subtitle {
2166 color: var(--text-muted);
2167 font-size: 14.5px;
2168 line-height: 1.5;
2169 margin: 0 0 24px;
2ce1d0bClaude2170 }
2171 .auth-container > p {
2172 color: var(--text-muted);
2173 font-size: var(--t-sm);
2174 margin-bottom: 24px;
2175 }
98f45b4Claude2176 .auth-container .btn-primary {
2177 width: 100%;
2178 padding: 12px 16px;
2179 font-size: 15px;
2180 font-weight: 600;
2181 margin-top: 4px;
2182 }
582cdacClaude2183
2184 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2185 with a brand-coloured logo on the left and a label centred-trailing.
2186 Hover lifts 1px with a subtle shadow — matches the rest of the
2187 button system but reads as a brand-affiliated action, not a brand-
2188 coloured primary CTA. */
2189 .auth-container .oauth-btn {
2190 display: flex;
2191 align-items: center;
2192 justify-content: center;
2193 gap: 10px;
2194 width: 100%;
2195 padding: 11px 16px;
2196 background: var(--bg-surface, var(--bg-elevated));
2197 border: 1px solid var(--border);
2198 border-radius: var(--r-md, 8px);
2199 color: var(--text-strong);
2200 font-family: var(--font-sans);
2201 font-size: 14.5px;
2202 font-weight: 500;
2203 text-decoration: none;
2204 transition:
2205 transform var(--t-base, 180ms) var(--ease, ease),
2206 box-shadow var(--t-base, 180ms) var(--ease, ease),
2207 background var(--t-fast, 120ms) var(--ease, ease),
2208 border-color var(--t-fast, 120ms) var(--ease, ease);
2209 }
2210 .auth-container .oauth-btn:hover {
2211 transform: translateY(-1px);
2212 background: var(--bg-hover);
2213 border-color: var(--text-muted);
2214 color: var(--text-strong);
2215 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2216 text-decoration: none;
2217 }
2218 .auth-container .oauth-btn:focus-visible {
2219 outline: 2px solid rgba(140, 109, 255, 0.55);
2220 outline-offset: 2px;
2221 }
2222 .auth-container .oauth-btn .oauth-icon {
2223 flex-shrink: 0;
2224 }
2225 /* GitHub icon adopts the text colour so it reads in both themes. */
2226 .auth-container .oauth-github .oauth-icon {
2227 color: var(--text-strong);
2228 }
2229 /* Google logo uses the official 4-colour treatment via inline SVG fill
2230 attributes — nothing to override here. */
2231 /* "or" divider between the password form and provider buttons */
2232 .auth-container .auth-divider {
2233 display: flex;
2234 align-items: center;
2235 gap: 12px;
2236 margin: 20px 0 12px;
2237 color: var(--text-faint);
2238 font-size: 12px;
2239 letter-spacing: 0.08em;
2240 text-transform: uppercase;
2241 }
2242 .auth-container .auth-divider::before,
2243 .auth-container .auth-divider::after {
2244 content: '';
2245 flex: 1;
2246 height: 1px;
2247 background: var(--border);
2248 }
06d5ffeClaude2249 .auth-error {
958d26aClaude2250 background: rgba(248,113,113,0.08);
2251 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2252 color: var(--red);
2ce1d0bClaude2253 padding: 10px 14px;
2254 border-radius: var(--r-sm);
06d5ffeClaude2255 margin-bottom: 16px;
2ce1d0bClaude2256 font-size: var(--t-sm);
06d5ffeClaude2257 }
2258 .auth-success {
958d26aClaude2259 background: rgba(52,211,153,0.08);
2260 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2261 color: var(--green);
2ce1d0bClaude2262 padding: 10px 14px;
2263 border-radius: var(--r-sm);
06d5ffeClaude2264 margin-bottom: 16px;
2ce1d0bClaude2265 font-size: var(--t-sm);
2266 }
2267 .auth-switch {
2268 margin-top: 20px;
2269 font-size: var(--t-sm);
2270 color: var(--text-muted);
2271 text-align: center;
2272 }
2273 .banner {
2274 background: var(--accent-gradient-faint);
958d26aClaude2275 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2276 color: var(--text);
2277 padding: 10px 14px;
2278 border-radius: var(--r-sm);
2279 font-size: var(--t-sm);
06d5ffeClaude2280 }
2281
2ce1d0bClaude2282 /* ============================================================ */
2283 /* Settings */
2284 /* ============================================================ */
2285 .settings-container { max-width: 720px; }
2286 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2287 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2288 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2289 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2290 .ssh-keys-list { margin-bottom: 24px; }
2291 .ssh-key-item {
2292 display: flex;
2293 justify-content: space-between;
2294 align-items: center;
2ce1d0bClaude2295 padding: 14px 16px;
06d5ffeClaude2296 border: 1px solid var(--border);
2ce1d0bClaude2297 border-radius: var(--r-md);
06d5ffeClaude2298 margin-bottom: 8px;
2ce1d0bClaude2299 background: var(--bg-elevated);
2300 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2301 }
2ce1d0bClaude2302 .ssh-key-item:hover { border-color: var(--border-strong); }
2303 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2304 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2305
2ce1d0bClaude2306 /* ============================================================ */
2307 /* Repo header + nav */
2308 /* ============================================================ */
fc1817aClaude2309 .repo-header {
2310 display: flex;
2311 align-items: center;
debcf27Claude2312 gap: 12px;
2313 margin-bottom: 22px;
2314 }
2315 .repo-header-title {
2316 display: flex;
2317 align-items: center;
2318 gap: 10px;
2319 font-family: var(--font-display);
2320 font-size: 24px;
2321 letter-spacing: -0.025em;
2322 flex-wrap: wrap;
2323 }
2324 .repo-header .owner {
2325 color: var(--text-muted);
2326 font-weight: 500;
2327 transition: color var(--t-fast) var(--ease);
2328 }
2329 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2330 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2331 .repo-header .name {
2332 color: var(--text-strong);
2333 font-weight: 700;
2334 letter-spacing: -0.028em;
fc1817aClaude2335 }
2ce1d0bClaude2336 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2337 .repo-header-fork {
2338 font-family: var(--font-mono);
2339 font-size: 11px;
2340 color: var(--text-muted);
2341 margin-top: 4px;
2342 letter-spacing: 0.01em;
2343 }
2344 .repo-header-fork a { color: var(--text-muted); }
2345 .repo-header-fork a:hover { color: var(--accent); }
2346 .repo-header-pill {
2347 display: inline-flex;
2348 align-items: center;
2349 padding: 2px 10px;
2350 border-radius: var(--r-full);
2351 font-family: var(--font-mono);
2352 font-size: 10px;
2353 font-weight: 600;
2354 letter-spacing: 0.12em;
2355 text-transform: uppercase;
2356 line-height: 1.6;
2357 vertical-align: 4px;
2358 }
2359 .repo-header-pill-archived {
2360 background: rgba(251,191,36,0.10);
2361 color: var(--yellow);
2362 border: 1px solid rgba(251,191,36,0.30);
2363 }
2364 .repo-header-pill-template {
2365 background: var(--accent-gradient-faint);
2366 color: var(--accent);
2367 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2368 }
06d5ffeClaude2369 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2370
8c790e0Claude2371 /* Push Watch discoverability — live/recent indicator in the repo header */
2372 @keyframes pushWatchPulse {
2373 0%, 100% { opacity: 1; }
2374 50% { opacity: 0.3; }
2375 }
2376 .repo-header-live-badge {
2377 display: inline-flex;
2378 align-items: center;
2379 gap: 5px;
2380 padding: 2px 9px;
2381 border-radius: 999px;
2382 font-size: 12px;
2383 font-weight: 600;
2384 letter-spacing: 0.02em;
2385 text-decoration: none !important;
2386 vertical-align: 3px;
2387 transition: filter 140ms ease, opacity 140ms ease;
2388 }
2389 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2390 .repo-header-live-badge--live {
2391 background: rgba(218, 54, 51, 0.12);
2392 color: #f97171;
2393 border: 1px solid rgba(218, 54, 51, 0.35);
2394 }
2395 .repo-header-live-badge--live .repo-header-live-dot {
2396 animation: pushWatchPulse 1.2s ease-in-out infinite;
2397 display: inline-block;
2398 }
2399 .repo-header-live-badge--recent {
2400 background: rgba(140, 109, 255, 0.08);
2401 color: var(--text-muted);
2402 border: 1px solid rgba(140, 109, 255, 0.22);
2403 }
2404 .repo-header-live-badge--recent:hover { color: var(--accent); }
2405 @media (prefers-reduced-motion: reduce) {
2406 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2407 }
2408
fc1817aClaude2409 .repo-nav {
2410 display: flex;
debcf27Claude2411 gap: 1px;
fc1817aClaude2412 border-bottom: 1px solid var(--border);
debcf27Claude2413 margin-bottom: 28px;
2ce1d0bClaude2414 overflow-x: auto;
2415 scrollbar-width: thin;
fc1817aClaude2416 }
2ce1d0bClaude2417 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2418 .repo-nav a {
debcf27Claude2419 position: relative;
2420 padding: 11px 14px;
fc1817aClaude2421 color: var(--text-muted);
2422 border-bottom: 2px solid transparent;
2ce1d0bClaude2423 font-size: var(--t-sm);
2424 font-weight: 500;
2425 margin-bottom: -1px;
debcf27Claude2426 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2427 white-space: nowrap;
2428 }
debcf27Claude2429 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2430 .repo-nav a.active {
debcf27Claude2431 color: var(--text-strong);
2432 font-weight: 600;
2433 }
2434 .repo-nav a.active::after {
2435 content: '';
2436 position: absolute;
2437 left: 14px;
2438 right: 14px;
2439 bottom: -1px;
2440 height: 2px;
2441 background: var(--accent-gradient);
2442 border-radius: 2px;
2443 }
2444 /* AI links in the right-side cluster — sparkle accent */
2445 .repo-nav-ai {
2446 color: var(--accent) !important;
2447 font-weight: 500;
2448 }
2449 .repo-nav-ai:hover {
2450 color: var(--accent-hover) !important;
2451 background: var(--accent-gradient-faint) !important;
2452 }
2453 .repo-nav-ai.active {
2454 color: var(--accent-hover) !important;
2ce1d0bClaude2455 font-weight: 600;
fc1817aClaude2456 }
2457
2ce1d0bClaude2458 .breadcrumb {
2459 display: flex;
debcf27Claude2460 gap: 6px;
2ce1d0bClaude2461 align-items: center;
debcf27Claude2462 margin-bottom: 18px;
2ce1d0bClaude2463 color: var(--text-muted);
2464 font-size: var(--t-sm);
2465 font-family: var(--font-mono);
debcf27Claude2466 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2467 }
2468 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2469 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2470 .breadcrumb strong {
2471 color: var(--text-strong);
2472 font-weight: 600;
fc1817aClaude2473 }
2474
debcf27Claude2475 /* Page header — eyebrow + title + optional actions row.
2476 Use on dashboard, settings, admin, any "section landing" page. */
2477 .page-header {
2478 display: flex;
2479 align-items: flex-end;
2480 justify-content: space-between;
2481 gap: 16px;
2482 margin-bottom: 28px;
2483 padding-bottom: 20px;
2484 border-bottom: 1px solid var(--border-subtle);
2485 flex-wrap: wrap;
2486 }
2487 .page-header-text { flex: 1; min-width: 280px; }
2488 .page-header .eyebrow { margin-bottom: var(--s-2); }
2489 .page-header h1 {
2490 font-family: var(--font-display);
2491 font-size: clamp(24px, 3vw, 36px);
2492 line-height: 1.1;
2493 letter-spacing: -0.028em;
2494 margin-bottom: 6px;
2495 }
2496 .page-header p {
2497 color: var(--text-muted);
2498 font-size: var(--t-sm);
2499 line-height: 1.55;
2500 max-width: 640px;
2501 }
2502 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2503
2ce1d0bClaude2504 /* ============================================================ */
2505 /* File browser table */
2506 /* ============================================================ */
2507 .file-table {
2508 width: 100%;
2509 border: 1px solid var(--border);
2510 border-radius: var(--r-md);
2511 overflow: hidden;
2512 background: var(--bg-elevated);
debcf27Claude2513 border-collapse: collapse;
2ce1d0bClaude2514 }
debcf27Claude2515 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2516 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2517 .file-table td {
2518 padding: 9px 16px;
2519 font-size: var(--t-sm);
2520 font-family: var(--font-mono);
2521 font-feature-settings: var(--mono-feat);
2522 }
2ce1d0bClaude2523 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2524 .file-icon {
2525 width: 22px;
2526 color: var(--text-faint);
2527 font-size: 13px;
2528 text-align: center;
2529 }
2530 .file-name a {
2531 color: var(--text);
2532 font-weight: 500;
2533 transition: color var(--t-fast) var(--ease);
2534 }
2535 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2536
2ce1d0bClaude2537 /* ============================================================ */
2538 /* Blob view */
2539 /* ============================================================ */
fc1817aClaude2540 .blob-view {
2541 border: 1px solid var(--border);
2ce1d0bClaude2542 border-radius: var(--r-md);
fc1817aClaude2543 overflow: hidden;
2ce1d0bClaude2544 background: var(--bg-elevated);
fc1817aClaude2545 }
2546 .blob-header {
2547 background: var(--bg-secondary);
2ce1d0bClaude2548 padding: 10px 16px;
fc1817aClaude2549 border-bottom: 1px solid var(--border);
2ce1d0bClaude2550 font-size: var(--t-sm);
fc1817aClaude2551 color: var(--text-muted);
06d5ffeClaude2552 display: flex;
2553 justify-content: space-between;
2554 align-items: center;
fc1817aClaude2555 }
2556 .blob-code {
2557 overflow-x: auto;
2558 font-family: var(--font-mono);
2ce1d0bClaude2559 font-size: var(--t-sm);
2560 line-height: 1.65;
fc1817aClaude2561 }
2562 .blob-code table { width: 100%; border-collapse: collapse; }
2563 .blob-code .line-num {
2564 width: 1%;
2ce1d0bClaude2565 min-width: 56px;
2566 padding: 0 14px;
fc1817aClaude2567 text-align: right;
2ce1d0bClaude2568 color: var(--text-faint);
fc1817aClaude2569 user-select: none;
2570 white-space: nowrap;
2571 border-right: 1px solid var(--border);
2572 }
2ce1d0bClaude2573 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2574 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2575
2ce1d0bClaude2576 /* ============================================================ */
2577 /* Commits + diffs */
2578 /* ============================================================ */
2579 .commit-list {
2580 border: 1px solid var(--border);
2581 border-radius: var(--r-md);
2582 overflow: hidden;
2583 background: var(--bg-elevated);
2584 }
fc1817aClaude2585 .commit-item {
2586 display: flex;
2587 justify-content: space-between;
2588 align-items: center;
debcf27Claude2589 padding: 14px 18px;
2590 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2591 transition: background var(--t-fast) var(--ease);
fc1817aClaude2592 }
2593 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2594 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2595 .commit-message {
2596 font-size: var(--t-sm);
2597 font-weight: 500;
2598 line-height: 1.45;
2599 color: var(--text-strong);
2600 letter-spacing: -0.005em;
2601 }
2602 .commit-meta {
2603 font-family: var(--font-mono);
2604 font-size: 11px;
2605 color: var(--text-muted);
2606 margin-top: 5px;
2607 letter-spacing: 0.01em;
2608 }
fc1817aClaude2609 .commit-sha {
2610 font-family: var(--font-mono);
debcf27Claude2611 font-feature-settings: var(--mono-feat);
2612 font-size: 11px;
2613 padding: 4px 9px;
fc1817aClaude2614 background: var(--bg-tertiary);
2615 border: 1px solid var(--border);
2ce1d0bClaude2616 border-radius: var(--r-sm);
debcf27Claude2617 color: var(--accent);
2618 font-weight: 600;
2619 letter-spacing: 0.02em;
2ce1d0bClaude2620 transition: all var(--t-fast) var(--ease);
fc1817aClaude2621 }
debcf27Claude2622 .commit-sha:hover {
2623 border-color: rgba(140,109,255,0.40);
2624 background: var(--accent-gradient-faint);
2625 color: var(--accent-hover);
2626 text-decoration: none;
fc1817aClaude2627 }
2628
2629 .diff-view { margin-top: 16px; }
2630 .diff-file {
2631 border: 1px solid var(--border);
2ce1d0bClaude2632 border-radius: var(--r-md);
fc1817aClaude2633 margin-bottom: 16px;
2634 overflow: hidden;
2ce1d0bClaude2635 background: var(--bg-elevated);
fc1817aClaude2636 }
2637 .diff-file-header {
2638 background: var(--bg-secondary);
2ce1d0bClaude2639 padding: 10px 16px;
fc1817aClaude2640 border-bottom: 1px solid var(--border);
2641 font-family: var(--font-mono);
2ce1d0bClaude2642 font-size: var(--t-sm);
2643 font-weight: 500;
fc1817aClaude2644 }
2645 .diff-content {
2646 overflow-x: auto;
2647 font-family: var(--font-mono);
2ce1d0bClaude2648 font-size: var(--t-sm);
2649 line-height: 1.65;
fc1817aClaude2650 }
958d26aClaude2651 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2652 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2653 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2654 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2655
2656 .stat-add { color: var(--green); font-weight: 600; }
2657 .stat-del { color: var(--red); font-weight: 600; }
2658
2ce1d0bClaude2659 /* ============================================================ */
2660 /* Empty state */
2661 /* ============================================================ */
fc1817aClaude2662 .empty-state {
2663 text-align: center;
958d26aClaude2664 padding: 96px 24px;
fc1817aClaude2665 color: var(--text-muted);
2ce1d0bClaude2666 border: 1px dashed var(--border);
2667 border-radius: var(--r-lg);
958d26aClaude2668 background:
2669 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2670 var(--bg-elevated);
2671 position: relative;
2672 overflow: hidden;
2673 }
2674 .empty-state::before {
2675 content: '';
2676 position: absolute;
2677 inset: 0;
2678 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2679 background-size: 24px 24px;
2680 opacity: 0.5;
2681 pointer-events: none;
2682 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2683 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2684 }
2685 :root[data-theme='light'] .empty-state::before {
2686 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2687 }
958d26aClaude2688 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2689 .empty-state h2 {
958d26aClaude2690 font-size: var(--t-xl);
2ce1d0bClaude2691 margin-bottom: 8px;
958d26aClaude2692 color: var(--text-strong);
2693 letter-spacing: -0.022em;
2ce1d0bClaude2694 }
958d26aClaude2695 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2696 .empty-state pre {
2697 text-align: left;
2698 display: inline-block;
2699 background: var(--bg-secondary);
958d26aClaude2700 padding: 18px 24px;
2701 border-radius: var(--r-md);
fc1817aClaude2702 border: 1px solid var(--border);
2703 font-family: var(--font-mono);
958d26aClaude2704 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2705 font-size: var(--t-sm);
958d26aClaude2706 margin-top: 24px;
fc1817aClaude2707 line-height: 1.8;
2ce1d0bClaude2708 color: var(--text);
958d26aClaude2709 box-shadow: var(--elev-1);
fc1817aClaude2710 }
2711
2ce1d0bClaude2712 /* ============================================================ */
2713 /* Badges */
2714 /* ============================================================ */
fc1817aClaude2715 .badge {
2ce1d0bClaude2716 display: inline-flex;
2717 align-items: center;
2718 gap: 4px;
2719 padding: 2px 9px;
2720 border-radius: var(--r-full);
2721 font-size: var(--t-xs);
fc1817aClaude2722 font-weight: 500;
2723 background: var(--bg-tertiary);
2724 border: 1px solid var(--border);
2725 color: var(--text-muted);
2ce1d0bClaude2726 line-height: 1.5;
fc1817aClaude2727 }
2728
2ce1d0bClaude2729 /* ============================================================ */
2730 /* Branch dropdown */
2731 /* ============================================================ */
fc1817aClaude2732 .branch-selector {
2733 display: inline-flex;
2734 align-items: center;
2ce1d0bClaude2735 gap: 6px;
2736 padding: 6px 12px;
2737 background: var(--bg-elevated);
fc1817aClaude2738 border: 1px solid var(--border);
2ce1d0bClaude2739 border-radius: var(--r-sm);
2740 font-size: var(--t-sm);
fc1817aClaude2741 color: var(--text);
2742 margin-bottom: 12px;
2ce1d0bClaude2743 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2744 }
2ce1d0bClaude2745 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2746
06d5ffeClaude2747 .branch-dropdown {
2748 position: relative;
2749 display: inline-block;
2750 margin-bottom: 12px;
2751 }
2752 .branch-dropdown-content {
2753 display: none;
2754 position: absolute;
2ce1d0bClaude2755 top: calc(100% + 4px);
06d5ffeClaude2756 left: 0;
2757 z-index: 10;
2ce1d0bClaude2758 min-width: 220px;
2759 background: var(--bg-elevated);
2760 border: 1px solid var(--border-strong);
2761 border-radius: var(--r-md);
2762 overflow: hidden;
2763 box-shadow: var(--elev-3);
06d5ffeClaude2764 }
2765 .branch-dropdown:hover .branch-dropdown-content,
2766 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2767 .branch-dropdown-content a {
2768 display: block;
2ce1d0bClaude2769 padding: 9px 14px;
2770 font-size: var(--t-sm);
06d5ffeClaude2771 color: var(--text);
2772 border-bottom: 1px solid var(--border);
2ce1d0bClaude2773 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2774 }
2775 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2776 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2777 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2778
2ce1d0bClaude2779 /* ============================================================ */
2780 /* Card grid */
2781 /* ============================================================ */
2782 .card-grid {
2783 display: grid;
2784 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2785 gap: 16px;
2786 }
fc1817aClaude2787 .card {
2788 border: 1px solid var(--border);
2ce1d0bClaude2789 border-radius: var(--r-md);
958d26aClaude2790 padding: 20px;
2ce1d0bClaude2791 background: var(--bg-elevated);
2792 transition:
958d26aClaude2793 border-color var(--t-base) var(--ease),
2794 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2795 box-shadow var(--t-base) var(--ease);
2796 position: relative;
2797 overflow: hidden;
958d26aClaude2798 isolation: isolate;
2799 }
2800 .card::before {
2801 content: '';
2802 position: absolute;
2803 inset: 0;
2804 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2805 opacity: 0;
2806 transition: opacity var(--t-base) var(--ease);
2807 pointer-events: none;
2808 z-index: -1;
2ce1d0bClaude2809 }
2810 .card:hover {
2811 border-color: var(--border-strong);
2812 box-shadow: var(--elev-2);
958d26aClaude2813 transform: translateY(-2px);
2ce1d0bClaude2814 }
958d26aClaude2815 .card:hover::before { opacity: 1; }
2816 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2817 .card h3 a { color: var(--text); font-weight: 600; }
2818 .card h3 a:hover { color: var(--text-link); }
2819 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2820 .card-meta {
2821 display: flex;
2822 gap: 14px;
2823 margin-top: 14px;
2824 padding-top: 14px;
2825 border-top: 1px solid var(--border);
2826 font-size: var(--t-xs);
2827 color: var(--text-muted);
2828 }
2829 .card-meta span { display: flex; align-items: center; gap: 5px; }
2830
2831 /* ============================================================ */
2832 /* Stat card / box */
2833 /* ============================================================ */
2834 .stat-card {
2835 background: var(--bg-elevated);
2836 border: 1px solid var(--border);
2837 border-radius: var(--r-md);
fc1817aClaude2838 padding: 16px;
2ce1d0bClaude2839 transition: border-color var(--t-fast) var(--ease);
2840 }
2841 .stat-card:hover { border-color: var(--border-strong); }
2842 .stat-label {
2843 font-size: var(--t-xs);
2844 color: var(--text-muted);
2845 text-transform: uppercase;
2846 letter-spacing: 0.06em;
2847 font-weight: 500;
2848 }
2849 .stat-value {
2850 font-size: var(--t-xl);
2851 font-weight: 700;
2852 margin-top: 4px;
2853 letter-spacing: -0.025em;
2854 color: var(--text);
2855 font-feature-settings: 'tnum';
fc1817aClaude2856 }
06d5ffeClaude2857
2ce1d0bClaude2858 /* ============================================================ */
2859 /* Star button */
2860 /* ============================================================ */
06d5ffeClaude2861 .star-btn {
2862 display: inline-flex;
2863 align-items: center;
2864 gap: 6px;
2ce1d0bClaude2865 padding: 5px 12px;
2866 background: var(--bg-elevated);
06d5ffeClaude2867 border: 1px solid var(--border);
2ce1d0bClaude2868 border-radius: var(--r-sm);
06d5ffeClaude2869 color: var(--text);
2ce1d0bClaude2870 font-size: var(--t-sm);
2871 font-weight: 500;
06d5ffeClaude2872 cursor: pointer;
2ce1d0bClaude2873 transition: all var(--t-fast) var(--ease);
2874 }
2875 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2876 .star-btn.starred {
2877 color: var(--yellow);
958d26aClaude2878 border-color: rgba(251,191,36,0.4);
2879 background: rgba(251,191,36,0.08);
06d5ffeClaude2880 }
2881
2ce1d0bClaude2882 /* ============================================================ */
2883 /* User profile */
2884 /* ============================================================ */
06d5ffeClaude2885 .user-profile {
2886 display: flex;
2887 gap: 32px;
2888 margin-bottom: 32px;
2ce1d0bClaude2889 padding: 24px;
2890 background: var(--bg-elevated);
2891 border: 1px solid var(--border);
2892 border-radius: var(--r-lg);
06d5ffeClaude2893 }
2894 .user-avatar {
2895 width: 96px;
2896 height: 96px;
2ce1d0bClaude2897 border-radius: var(--r-full);
2898 background: var(--accent-gradient-soft);
2899 border: 1px solid var(--border-strong);
06d5ffeClaude2900 display: flex;
2901 align-items: center;
2902 justify-content: center;
2ce1d0bClaude2903 font-size: 36px;
2904 font-weight: 600;
2905 color: var(--text);
06d5ffeClaude2906 flex-shrink: 0;
2ce1d0bClaude2907 letter-spacing: -0.02em;
06d5ffeClaude2908 }
2ce1d0bClaude2909 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2910 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2911 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2912
2ce1d0bClaude2913 /* ============================================================ */
2914 /* New repo form */
2915 /* ============================================================ */
2916 .new-repo-form { max-width: 640px; }
2917 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2918 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2919 .visibility-option {
2920 flex: 1;
2ce1d0bClaude2921 padding: 16px;
06d5ffeClaude2922 border: 1px solid var(--border);
2ce1d0bClaude2923 border-radius: var(--r-md);
2924 background: var(--bg-elevated);
06d5ffeClaude2925 cursor: pointer;
2ce1d0bClaude2926 text-align: left;
2927 transition: all var(--t-fast) var(--ease);
2928 }
2929 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2930 .visibility-option:has(input:checked) {
2931 border-color: var(--accent);
2932 background: var(--accent-gradient-faint);
2933 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2934 }
2935 .visibility-option input { display: none; }
2ce1d0bClaude2936 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2937 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2938
2ce1d0bClaude2939 /* ============================================================ */
2940 /* Issues */
2941 /* ============================================================ */
2942 .issue-tabs { display: flex; gap: 4px; }
2943 .issue-tabs a {
2944 color: var(--text-muted);
2945 font-size: var(--t-sm);
2946 font-weight: 500;
2947 padding: 6px 12px;
2948 border-radius: var(--r-sm);
2949 transition: all var(--t-fast) var(--ease);
2950 }
2951 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2952 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2953
2ce1d0bClaude2954 .issue-list {
2955 border: 1px solid var(--border);
2956 border-radius: var(--r-md);
2957 overflow: hidden;
2958 background: var(--bg-elevated);
2959 }
79136bbClaude2960 .issue-item {
2961 display: flex;
2ce1d0bClaude2962 gap: 14px;
79136bbClaude2963 align-items: flex-start;
2ce1d0bClaude2964 padding: 14px 16px;
79136bbClaude2965 border-bottom: 1px solid var(--border);
2ce1d0bClaude2966 transition: background var(--t-fast) var(--ease);
79136bbClaude2967 }
2968 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2969 .issue-item:hover { background: var(--bg-hover); }
2970 .issue-state-icon {
2971 font-size: 14px;
2972 padding-top: 2px;
2973 width: 18px;
2974 height: 18px;
2975 display: inline-flex;
2976 align-items: center;
2977 justify-content: center;
2978 border-radius: var(--r-full);
2979 flex-shrink: 0;
2980 }
79136bbClaude2981 .state-open { color: var(--green); }
958d26aClaude2982 .state-closed { color: #b69dff; }
2ce1d0bClaude2983 .issue-title {
debcf27Claude2984 font-family: var(--font-display);
2985 font-size: var(--t-md);
2ce1d0bClaude2986 font-weight: 600;
debcf27Claude2987 line-height: 1.35;
2988 letter-spacing: -0.012em;
2989 }
2990 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2991 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2992 .issue-meta {
2993 font-family: var(--font-mono);
2994 font-size: 11px;
2995 color: var(--text-muted);
2996 margin-top: 5px;
2997 letter-spacing: 0.01em;
2ce1d0bClaude2998 }
79136bbClaude2999
3000 .issue-badge {
3001 display: inline-flex;
3002 align-items: center;
2ce1d0bClaude3003 gap: 6px;
79136bbClaude3004 padding: 4px 12px;
2ce1d0bClaude3005 border-radius: var(--r-full);
3006 font-size: var(--t-sm);
79136bbClaude3007 font-weight: 500;
2ce1d0bClaude3008 line-height: 1.4;
79136bbClaude3009 }
958d26aClaude3010 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3011 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3012 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3013 .state-merged { color: var(--accent); }
958d26aClaude3014 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3015
2ce1d0bClaude3016 .issue-detail { max-width: 920px; }
79136bbClaude3017 .issue-comment-box {
3018 border: 1px solid var(--border);
2ce1d0bClaude3019 border-radius: var(--r-md);
79136bbClaude3020 margin-bottom: 16px;
3021 overflow: hidden;
2ce1d0bClaude3022 background: var(--bg-elevated);
79136bbClaude3023 }
3024 .comment-header {
3025 background: var(--bg-secondary);
2ce1d0bClaude3026 padding: 10px 16px;
79136bbClaude3027 border-bottom: 1px solid var(--border);
2ce1d0bClaude3028 font-size: var(--t-sm);
79136bbClaude3029 color: var(--text-muted);
3030 }
3031
2ce1d0bClaude3032 /* ============================================================ */
3033 /* Panel — flexible container used across many pages */
3034 /* ============================================================ */
3035 .panel {
3036 background: var(--bg-elevated);
3037 border: 1px solid var(--border);
3038 border-radius: var(--r-md);
3039 overflow: hidden;
3040 }
3041 .panel-item {
3042 display: flex;
3043 align-items: center;
3044 gap: 12px;
3045 padding: 12px 16px;
79136bbClaude3046 border-bottom: 1px solid var(--border);
2ce1d0bClaude3047 transition: background var(--t-fast) var(--ease);
3048 }
3049 .panel-item:last-child { border-bottom: none; }
3050 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3051
3052 /* ─── j/k keyboard list navigation ─── */
3053 .is-kbd-focus {
3054 outline: 2px solid rgba(140,109,255,0.6) !important;
3055 outline-offset: -2px;
3056 background: rgba(140,109,255,0.06) !important;
3057 border-radius: 4px;
3058 }
3059 .is-kbd-selected {
3060 outline: 2px solid rgba(52,211,153,0.6) !important;
3061 background: rgba(52,211,153,0.06) !important;
3062 }
2ce1d0bClaude3063 .panel-empty {
3064 padding: 24px;
3065 text-align: center;
79136bbClaude3066 color: var(--text-muted);
2ce1d0bClaude3067 font-size: var(--t-sm);
79136bbClaude3068 }
3069
2ce1d0bClaude3070 /* ============================================================ */
3071 /* Search */
3072 /* ============================================================ */
79136bbClaude3073 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3074
2ce1d0bClaude3075 /* ============================================================ */
3076 /* Timeline */
3077 /* ============================================================ */
3078 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3079 .timeline::before {
3080 content: '';
3081 position: absolute;
3082 left: 4px;
3083 top: 8px;
3084 bottom: 8px;
3085 width: 2px;
2ce1d0bClaude3086 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3087 }
2ce1d0bClaude3088 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3089 .timeline-dot {
3090 position: absolute;
2ce1d0bClaude3091 left: -28px;
3092 top: 8px;
3093 width: 12px;
3094 height: 12px;
3095 border-radius: var(--r-full);
3096 background: var(--accent-gradient);
16b325cClaude3097 border: 2px solid var(--bg);
2ce1d0bClaude3098 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3099 }
3100 .timeline-content {
2ce1d0bClaude3101 background: var(--bg-elevated);
16b325cClaude3102 border: 1px solid var(--border);
2ce1d0bClaude3103 border-radius: var(--r-md);
3104 padding: 14px 16px;
16b325cClaude3105 }
f1ab587Claude3106
2ce1d0bClaude3107 /* ============================================================ */
3108 /* Toggle switch */
3109 /* ============================================================ */
f1ab587Claude3110 .toggle-switch {
3111 position: relative;
3112 display: inline-block;
2ce1d0bClaude3113 width: 40px;
3114 height: 22px;
f1ab587Claude3115 flex-shrink: 0;
3116 margin-left: 16px;
3117 }
3118 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3119 .toggle-slider {
3120 position: absolute;
3121 cursor: pointer;
3122 top: 0; left: 0; right: 0; bottom: 0;
3123 background: var(--bg-tertiary);
3124 border: 1px solid var(--border);
2ce1d0bClaude3125 border-radius: var(--r-full);
3126 transition: all var(--t-base) var(--ease);
f1ab587Claude3127 }
3128 .toggle-slider::before {
3129 content: '';
3130 position: absolute;
2ce1d0bClaude3131 height: 16px;
3132 width: 16px;
f1ab587Claude3133 left: 2px;
3134 bottom: 2px;
3135 background: var(--text-muted);
2ce1d0bClaude3136 border-radius: var(--r-full);
3137 transition: all var(--t-base) var(--ease);
f1ab587Claude3138 }
3139 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3140 background: var(--accent-gradient);
3141 border-color: transparent;
958d26aClaude3142 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3143 }
3144 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3145 transform: translateX(18px);
f1ab587Claude3146 background: #fff;
3147 }
ef8d378Claude3148
3149 /* ============================================================
3150 * 2026 polish layer (purely additive — no layout changes).
3151 * Improves typography rendering, focus states, hover affordances,
3152 * and adds the gradient brand cue to primary buttons. Anything
3153 * that could alter dimensions stays in the rules above.
3154 * ============================================================ */
3155 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3156 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3157 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3158
3159 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3160 h1 { letter-spacing: -0.025em; }
3161
3162 /* Smoother colour transitions everywhere links live */
3163 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3164
3165 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3166 .btn {
3167 transition:
3168 background 120ms cubic-bezier(0.16,1,0.3,1),
3169 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3170 transform 120ms cubic-bezier(0.16,1,0.3,1),
3171 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3172 }
3173 .btn:active { transform: translateY(0.5px); }
3174 .btn:focus-visible {
3175 outline: none;
3176 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3177 }
3178 .btn-primary {
3179 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3180 border-color: transparent;
3181 box-shadow:
3182 inset 0 1px 0 rgba(255,255,255,0.15),
3183 0 1px 2px rgba(168,85,247,0.25);
3184 }
3185 .btn-primary:hover {
3186 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3187 filter: none;
3188 box-shadow:
3189 inset 0 1px 0 rgba(255,255,255,0.20),
3190 0 4px 12px rgba(168,85,247,0.30);
3191 }
3192
3193 /* Inputs: cleaner focus ring + hover */
3194 .form-group input:hover,
3195 .form-group textarea:hover,
3196 .form-group select:hover {
3197 border-color: rgba(255,255,255,0.14);
3198 }
3199 .form-group input:focus,
3200 .form-group textarea:focus,
3201 .form-group select:focus {
3202 border-color: rgba(168,85,247,0.55);
3203 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3204 }
3205 :root[data-theme='light'] .form-group input:hover,
3206 :root[data-theme='light'] .form-group textarea:hover,
3207 :root[data-theme='light'] .form-group select:hover {
3208 border-color: rgba(0,0,0,0.18);
3209 }
3210
3211 /* Cards: subtle hover lift */
3212 .card {
3213 transition:
3214 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3215 transform 160ms cubic-bezier(0.16,1,0.3,1),
3216 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3217 }
3218 .card:hover {
3219 border-color: rgba(255,255,255,0.18);
3220 transform: translateY(-1px);
3221 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3222 }
3223 :root[data-theme='light'] .card:hover {
3224 border-color: rgba(0,0,0,0.18);
3225 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3226 }
3227
3228 /* Issue / commit / panel rows: smoother hover */
3229 .issue-item, .commit-item {
3230 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3231 }
3232 .repo-nav a {
3233 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3234 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3235 }
3236 .nav-link {
3237 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3238 }
3239
3240 /* Auth card: subtle elevation so register/login feel premium */
3241 .auth-container {
3242 background: var(--bg-secondary);
3243 border: 1px solid var(--border);
3244 border-radius: var(--r-lg, 12px);
3245 padding: 32px;
3246 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3247 }
3248 :root[data-theme='light'] .auth-container {
3249 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3250 }
3251 .auth-container h2 { letter-spacing: -0.025em; }
3252
3253 /* Empty state: dashed border, generous padding */
3254 .empty-state {
3255 border: 1px dashed var(--border);
3256 border-radius: var(--r-lg, 12px);
3257 background: var(--bg);
3258 }
3259
3260 /* Badges + commit-sha: smoother transition */
3261 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3262
3263 /* Gradient text utility — matches landing's accent treatment */
3264 .gradient-text {
3265 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3266 -webkit-background-clip: text;
3267 background-clip: text;
3268 -webkit-text-fill-color: transparent;
3269 }
3270
3271 /* Custom scrollbars (subtle, themed) */
3272 ::-webkit-scrollbar { width: 10px; height: 10px; }
3273 ::-webkit-scrollbar-track { background: transparent; }
3274 ::-webkit-scrollbar-thumb {
3275 background: rgba(255,255,255,0.06);
3276 border: 2px solid var(--bg);
3277 border-radius: 9999px;
3278 }
3279 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3280 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3281 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3282
3283 /* Honour reduced-motion preference */
3284 @media (prefers-reduced-motion: reduce) {
3285 *, *::before, *::after {
3286 animation-duration: 0.01ms !important;
3287 animation-iteration-count: 1 !important;
3288 transition-duration: 0.01ms !important;
3289 }
3290 }
c63b860Claude3291
3292 /* Block O3 — visual coherence additive rules. */
3293 .card.card-p-none { padding: 0; }
3294 .card.card-p-sm { padding: var(--space-3); }
3295 .card.card-p-md { padding: var(--space-4); }
3296 .card.card-p-lg { padding: var(--space-6); }
3297 .card.card-elevated { box-shadow: var(--elev-2); }
3298 .card.card-gradient {
3299 background:
3300 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3301 var(--bg-elevated);
3302 }
3303 .card.card-gradient::before { opacity: 1; }
3304 .notice {
3305 padding: var(--space-3) var(--space-4);
3306 border-radius: var(--radius-md);
3307 border: 1px solid var(--border);
3308 background: var(--bg-elevated);
3309 color: var(--text);
3310 font-size: var(--font-size-sm);
3311 margin-bottom: var(--space-6);
3312 line-height: var(--leading-normal);
3313 }
3314 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3315 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3316 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3317 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3318 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3319 .email-preview {
3320 padding: var(--space-5);
3321 background: #fff;
3322 color: #111;
3323 border-radius: var(--radius-md);
3324 }
3325 .code-block {
3326 margin: var(--space-2) 0 0;
3327 padding: var(--space-3);
3328 background: var(--bg-tertiary);
3329 border: 1px solid var(--border-subtle);
3330 border-radius: var(--radius-sm);
3331 font-family: var(--font-mono);
3332 font-size: var(--font-size-xs);
3333 line-height: var(--leading-normal);
3334 overflow-x: auto;
3335 }
3336 .status-pill-operational {
3337 display: inline-flex;
3338 align-items: center;
3339 padding: var(--space-1) var(--space-3);
3340 border-radius: var(--radius-full);
3341 font-size: var(--font-size-xs);
3342 font-weight: 600;
3343 background: rgba(52,211,153,0.15);
3344 color: var(--green);
3345 }
3346 .api-tag {
3347 display: inline-flex;
3348 align-items: center;
3349 font-size: var(--font-size-xs);
3350 padding: 2px var(--space-2);
3351 border-radius: var(--radius-sm);
3352 font-family: var(--font-mono);
3353 }
3354 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3355 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3356 .stat-number {
3357 font-size: var(--font-size-xl);
3358 font-weight: 700;
3359 color: var(--text-strong);
3360 line-height: var(--leading-tight);
3361 }
3362 .stat-number-accent { color: var(--accent); }
3363 .stat-number-blue { color: var(--blue); }
3364 .stat-number-purple { color: var(--text-link); }
3365 footer .footer-tag-sub {
3366 margin-top: var(--space-2);
3367 font-size: var(--font-size-xs);
3368 color: var(--text-faint);
3369 line-height: var(--leading-normal);
3370 }
3371 footer .footer-version-pill {
3372 display: inline-flex;
3373 align-items: center;
3374 gap: var(--space-2);
3375 padding: var(--space-1) var(--space-3);
3376 border-radius: var(--radius-full);
3377 border: 1px solid var(--border);
3378 background: var(--bg-elevated);
3379 color: var(--text-faint);
3380 font-family: var(--font-mono);
3381 font-size: var(--font-size-xs);
3382 cursor: help;
3383 }
3384 footer .footer-banner {
3385 max-width: 1240px;
3386 margin: var(--space-6) auto 0;
3387 padding: var(--space-3) var(--space-4);
3388 border-radius: var(--radius-md);
3389 border: 1px solid var(--border);
3390 background: var(--bg-elevated);
3391 color: var(--text);
3392 font-family: var(--font-mono);
3393 font-size: var(--font-size-xs);
3394 letter-spacing: 0.04em;
3395 text-transform: uppercase;
3396 text-align: center;
3397 }
3398 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3399 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3400 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3401
cf9178bTest User3402 /* ============================================================ */
3403 /* Global toast notifications. */
3404 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3405 /* ============================================================ */
3406 .gx-toast {
3407 pointer-events: auto;
3408 display: inline-flex;
3409 align-items: flex-start;
3410 gap: 10px;
3411 min-width: 280px;
3412 max-width: min(440px, calc(100vw - 32px));
3413 padding: 12px 14px 12px 12px;
3414 background: var(--bg-elevated);
3415 border: 1px solid var(--border);
3416 border-radius: 10px;
3417 box-shadow:
3418 0 12px 36px -10px rgba(15,16,28,0.18),
3419 0 2px 6px rgba(15,16,28,0.04),
3420 0 0 0 1px rgba(15,16,28,0.02);
3421 color: var(--text);
3422 font-size: 13.5px;
3423 line-height: 1.45;
3424 opacity: 0;
3425 transform: translateX(16px);
3426 transition:
3427 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3428 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3429 }
3430 .gx-toast--in { opacity: 1; transform: translateX(0); }
3431 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3432 .gx-toast__icon {
3433 flex-shrink: 0;
3434 width: 20px; height: 20px;
3435 border-radius: 50%;
3436 display: inline-flex;
3437 align-items: center;
3438 justify-content: center;
3439 font-size: 12px;
3440 font-weight: 700;
3441 line-height: 1;
3442 margin-top: 1px;
3443 }
3444 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3445 .gx-toast__close {
3446 flex-shrink: 0;
3447 width: 22px; height: 22px;
3448 border: 0;
3449 background: transparent;
3450 color: var(--text-muted);
3451 font-size: 18px;
3452 line-height: 1;
3453 cursor: pointer;
3454 border-radius: 4px;
3455 padding: 0;
3456 margin: -2px -2px 0 0;
3457 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3458 }
3459 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3460 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3461 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3462 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3463 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3464 @media (prefers-reduced-motion: reduce) {
3465 .gx-toast { transition: opacity 60ms linear; transform: none; }
3466 .gx-toast--in, .gx-toast--out { transform: none; }
3467 }
3468
dc26881CC LABS App3469 /* ============================================================ */
3470 /* Block U4 — cross-document view transitions. */
3471 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3472 /* every same-origin navigation. Older browsers ignore these */
3473 /* rules entirely — no JS shim, no breakage. */
3474 /* prefers-reduced-motion disables the animation honourably. */
3475 /* ============================================================ */
3476 @view-transition {
3477 navigation: auto;
3478 }
3479 ::view-transition-old(root),
3480 ::view-transition-new(root) {
3481 animation-duration: 200ms;
3482 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3483 }
3484 ::view-transition-old(root) {
3485 animation-name: vt-fade-out;
3486 }
3487 ::view-transition-new(root) {
3488 animation-name: vt-fade-in;
3489 }
3490 @keyframes vt-fade-out {
3491 to { opacity: 0; }
3492 }
3493 @keyframes vt-fade-in {
3494 from { opacity: 0; }
3495 }
3496 @media (prefers-reduced-motion: reduce) {
3497 ::view-transition-old(root),
3498 ::view-transition-new(root) {
3499 animation-duration: 0s;
3500 }
3501 }
3502 /* The transition system picks up its root subject from this rule. */
3503 body {
3504 view-transition-name: root;
3505 }
fc1817aClaude3506`;