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.tsxBlame3505 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>
b0148e9Claude342 <a href="/help">Quickstart</a>
958d26aClaude343 <a href="/status">Status</a>
344 <a href="/api/graphql">GraphQL</a>
345 <a href="/mcp">MCP server</a>
346 </div>
347 <div class="footer-col">
b0148e9Claude348 <div class="footer-col-title">Company</div>
349 <a href="/about">About</a>
958d26aClaude350 <a href="/terms">Terms</a>
351 <a href="/privacy">Privacy</a>
352 <a href="/acceptable-use">Acceptable use</a>
353 </div>
354 </div>
355 </div>
356 <div class="footer-bottom">
357 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude358 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
359 <span class="footer-build-dot" aria-hidden="true" />
360 {build.sha} · {build.branch}
361 </span>
36b4cbdClaude362 </div>
c63b860Claude363 {siteBannerText ? (
364 <div
365 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
366 role="status"
367 aria-live="polite"
368 >
369 {siteBannerText}
370 </div>
371 ) : null}
fc1817aClaude372 </footer>
05cdb85Claude373 {/* Live update poller — checks /api/version every 15s, prompts
374 reload when the running sha changes. Pure progressive-
375 enhancement; degrades to nothing if JS is off. */}
376 <div
377 id="version-banner"
378 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"
379 >
380 <span style="display:inline-flex;align-items:center;gap:8px">
381 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
382 <span>New version available</span>
383 </span>
384 <button
385 type="button"
386 id="version-banner-reload"
387 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"
388 >
389 Reload
390 </button>
391 </div>
fa880f2Claude392 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude393 {/* Block N3 — site-admin deploy status pill (script-only). The pill
394 container is rendered above for authed users; this script bootstraps
395 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
396 and the pill stays display:none — zero leak. */}
397 {user && (
398 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
399 )}
699e5c7Claude400 {/* Block I4 — Command palette shell (hidden by default) */}
401 <div
402 id="cmdk-backdrop"
403 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
404 />
405 <div
406 id="cmdk-panel"
407 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"
408 >
409 <input
410 id="cmdk-input"
411 type="text"
412 placeholder="Type a command..."
413 aria-label="Command palette"
dc26881CC LABS App414 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"
699e5c7Claude415 />
416 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
417 </div>
fa880f2Claude418 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude419 {/* PWA-kill script: actively unregisters any service worker
420 previously installed under gluecron.com. Recovers any browser
421 still trapped in the SW reload loop from the legacy registrations. */}
422 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User423 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude424 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude425 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
fc1817aClaude426 </body>
427 </html>
428 );
429};
430
05cdb85Claude431// Live version poller. Checks /api/version every 15s; if the sha differs
432// from the one we booted with, reveal the floating 'New version' pill so
433// the user can reload onto the new code without manually refreshing.
434const versionPollerScript = `
435 (function(){
436 var loadedSha = null;
437 var banner, btn;
438 function poll(){
439 fetch('/api/version', { cache: 'no-store' })
440 .then(function(r){ return r.ok ? r.json() : null; })
441 .then(function(j){
442 if (!j || !j.sha) return;
443 if (loadedSha === null) { loadedSha = j.sha; return; }
444 if (j.sha !== loadedSha && banner) {
445 banner.style.display = 'inline-flex';
446 }
447 })
448 .catch(function(){});
449 }
450 function init(){
451 banner = document.getElementById('version-banner');
452 btn = document.getElementById('version-banner-reload');
453 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
454 poll();
455 setInterval(poll, 15000);
456 }
457 if (document.readyState === 'loading') {
458 document.addEventListener('DOMContentLoaded', init);
459 } else {
460 init();
461 }
462 })();
463`;
464
f764c07Claude465// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
466// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
467// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
468// display:none — there's no leakage of admin-only data to other users.
469//
470// Pill states (CSS classes on the container drive colour):
471// .deploy-pill-success 🟢 "Deployed 12s ago"
472// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
473// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
474// .deploy-pill-empty ⚪ "No deploys yet"
475//
476// Relative-time auto-refreshes every 15s without re-fetching.
477export const deployPillScript = `
478 (function(){
479 var pill, dot, text;
480 var state = { latest: null, asOf: null };
481
482 function classifyAge(ms){
483 if (ms < 0) return 'just now';
484 var s = Math.floor(ms / 1000);
485 if (s < 5) return 'just now';
486 if (s < 60) return s + 's ago';
487 var m = Math.floor(s / 60);
488 if (m < 60) return m + 'm ago';
489 var h = Math.floor(m / 60);
490 if (h < 24) return h + 'h ago';
491 var d = Math.floor(h / 24);
492 return d + 'd ago';
493 }
494 function elapsed(ms){
495 if (ms < 0) ms = 0;
496 var s = Math.floor(ms / 1000);
497 if (s < 60) return s + 's';
498 var m = Math.floor(s / 60);
499 var rem = s - m * 60;
500 return m + 'm ' + rem + 's';
501 }
502
503 function render(){
504 if (!pill || !text || !dot) return;
505 var d = state.latest;
81201ccTest User506 // When there's no deploy event yet, keep the pill HIDDEN. Showing
507 // "No deploys yet" was visible noise on every admin page load and
508 // flashed during reconnect cycles — admins don't need a placeholder.
509 // The pill reveals itself the first time a real deploy fires.
f764c07Claude510 if (!d) {
81201ccTest User511 pill.style.display = 'none';
f764c07Claude512 return;
513 }
514 pill.style.display = 'inline-flex';
515 var now = Date.now();
516 if (d.status === 'in_progress') {
517 pill.className = 'nav-deploy-pill deploy-pill-progress';
518 var started = Date.parse(d.started_at) || now;
519 text.textContent = 'Deploying… ' + elapsed(now - started);
520 } else if (d.status === 'succeeded') {
521 pill.className = 'nav-deploy-pill deploy-pill-success';
522 var ref = Date.parse(d.finished_at || d.started_at) || now;
523 text.textContent = 'Deployed ' + classifyAge(now - ref);
524 } else if (d.status === 'failed') {
525 pill.className = 'nav-deploy-pill deploy-pill-failed';
526 var refF = Date.parse(d.finished_at || d.started_at) || now;
527 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
528 } else {
529 pill.className = 'nav-deploy-pill';
530 text.textContent = d.status;
531 }
532 }
533
534 function fetchLatest(){
535 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
536 .then(function(r){ if (!r.ok) return null; return r.json(); })
537 .then(function(j){
538 if (!j || j.ok !== true) return;
539 state.latest = j.latest;
540 state.asOf = j.asOf;
541 render();
542 subscribe();
543 })
544 .catch(function(){});
545 }
546
547 var subscribed = false;
548 function subscribe(){
549 if (subscribed) return;
550 if (typeof EventSource === 'undefined') return;
551 subscribed = true;
552 var es;
bf19c50Test User553 // Exponential backoff with cap. Previously a tight 1500ms reconnect
554 // produced visible looping in the nav whenever the proxy timed out
555 // or the connection blipped — the bottom-of-page deploy pill
556 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
557 // successful message receipt.
558 var delay = 2000;
559 var DELAY_MAX = 60000;
560 function bump(){
561 delay = Math.min(delay * 2, DELAY_MAX);
562 }
563 function resetDelay(){
564 delay = 2000;
565 }
f764c07Claude566 function connect(){
567 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User568 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude569 es.onmessage = function(m){
bf19c50Test User570 resetDelay();
f764c07Claude571 try {
572 var d = JSON.parse(m.data);
573 if (d && d.run_id) {
574 if (!state.latest || state.latest.run_id === d.run_id ||
575 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
576 state.latest = d;
577 render();
578 }
579 }
580 } catch(e){}
581 };
582 es.onerror = function(){
583 try { es.close(); } catch(e){}
bf19c50Test User584 bump();
f764c07Claude585 setTimeout(connect, delay);
586 };
587 }
588 connect();
589 }
590
591 function init(){
592 pill = document.getElementById('deploy-pill');
593 if (!pill) return;
594 dot = pill.querySelector('.deploy-pill-dot');
595 text = pill.querySelector('.deploy-pill-text');
596 fetchLatest();
597 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
598 // without a fresh fetch.
599 setInterval(render, 15000);
600 }
601 if (document.readyState === 'loading') {
602 document.addEventListener('DOMContentLoaded', init);
603 } else {
604 init();
605 }
606 })();
607`;
608
6fc53bdClaude609// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User610// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
611// is honoured for users who explicitly opted in.
6fc53bdClaude612const themeInitScript = `
613 (function(){
614 try {
615 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User616 var t = m ? decodeURIComponent(m[1]) : 'light';
617 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude618 document.documentElement.setAttribute('data-theme', t);
619 } catch(_){}
620 })();
621`;
622
eae38d1Claude623// Block G1 — register service worker for offline / install support.
624// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App625//
cf9178bTest User626// Global toast notifications — reads ?success=, ?error=, ?toast= from the
627// URL on page load and surfaces a polished slide-in toast instead of the
628// per-page banner divs that crowded the layout. Toasts auto-dismiss after
629// 4.5s; query params are scrubbed from the URL via history.replaceState
630// so a subsequent Refresh doesn't re-fire the same toast.
631//
632// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
633// must be URI-encoded (callers already do this via encodeURIComponent
634// in c.redirect()).
635const toastScript = `
636 (function(){
637 function showToast(kind, message){
638 if (!message) return;
639 var host = document.getElementById('toast-host');
640 if (!host) return;
641 var el = document.createElement('div');
642 el.className = 'gx-toast gx-toast--' + kind;
643 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
644 var icon = document.createElement('span');
645 icon.className = 'gx-toast__icon';
646 icon.textContent = kind === 'success' ? '\\u2713'
647 : kind === 'error' ? '\\u00D7'
648 : kind === 'warn' ? '!'
649 : 'i';
650 el.appendChild(icon);
651 var text = document.createElement('span');
652 text.className = 'gx-toast__text';
653 text.textContent = message;
654 el.appendChild(text);
655 var close = document.createElement('button');
656 close.type = 'button';
657 close.className = 'gx-toast__close';
658 close.setAttribute('aria-label', 'Dismiss notification');
659 close.textContent = '\\u00D7';
660 close.addEventListener('click', function(){ dismiss(); });
661 el.appendChild(close);
662 host.appendChild(el);
663 // Force a reflow then add the visible class so the slide-in transitions.
664 void el.offsetWidth;
665 el.classList.add('gx-toast--in');
666 var timer = setTimeout(dismiss, 4500);
667 function dismiss(){
668 clearTimeout(timer);
669 el.classList.remove('gx-toast--in');
670 el.classList.add('gx-toast--out');
671 setTimeout(function(){
672 if (el.parentNode) el.parentNode.removeChild(el);
673 }, 220);
674 }
675 }
676 try {
677 var url = new URL(window.location.href);
678 var hits = 0;
679 var s = url.searchParams.get('success');
680 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
681 var e = url.searchParams.get('error');
682 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
683 var t = url.searchParams.get('toast');
684 if (t) {
685 var ix = t.indexOf(':');
686 var kind = ix > 0 ? t.slice(0, ix) : 'info';
687 var msg = ix > 0 ? t.slice(ix + 1) : t;
688 showToast(kind, msg);
689 url.searchParams.delete('toast');
690 hits++;
691 }
692 if (hits > 0 && window.history && window.history.replaceState) {
693 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
694 }
695 } catch(_) {}
696 })();
697`;
698
44fe49bClaude699// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
700// and pwaInstallBannerScript. Those two scripts registered /sw.js and
701// /sw-push.js at the same scope, causing a reload loop that made the
702// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
703// uncllickable). Per the SW spec, only one SW can control a scope; two
704// different script URLs at the same scope keep replacing each other.
6345c3eTest User705//
44fe49bClaude706// PWA is gone for good. A git host has no use for service workers,
707// install-as-app, or push notifications via SW. This script actively
708// unregisters every previously installed SW on the gluecron.com origin
709// so any browser still trapped in the loop recovers on the very next
710// page load — without needing the user to clear site data or open
711// DevTools. Idempotent and safe to keep running forever; once all
712// browsers have been cleaned, it's a no-op.
713const pwaKillSwitchScript = `
534f04aClaude714(function(){
715 try {
44fe49bClaude716 if (!('serviceWorker' in navigator)) return;
717 if (!navigator.serviceWorker.getRegistrations) return;
718 navigator.serviceWorker.getRegistrations().then(function(regs){
719 if (!regs || regs.length === 0) return;
720 regs.forEach(function(reg){
721 try { reg.unregister(); } catch(_){}
722 });
723 }).catch(function(){});
724 // Also drop any caches the old SWs left behind so the user gets
725 // truly fresh HTML on every page load. Restricted to gluecron-*
726 // namespaced caches so we don't trample anything a future opt-in
727 // feature might create under a different name.
728 if ('caches' in self) {
729 caches.keys().then(function(keys){
730 keys.forEach(function(k){
731 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
732 try { caches.delete(k); } catch(_){}
d7ba05dClaude733 }
734 });
735 }).catch(function(){});
534f04aClaude736 }
737 } catch(_) {}
738})();
739`;
740
3ef4c9dClaude741const navScript = `
742 (function(){
743 var chord = null;
744 var chordTimer = null;
745 function isTyping(t){
746 t = t || {};
747 var tag = (t.tagName || '').toLowerCase();
748 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
749 }
71cd5ecClaude750
751 // ---------- Block I4 — Command palette ----------
752 var COMMANDS = [
753 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
754 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
755 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
756 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
757 { label: 'Create new repository', href: '/new', kw: 'add create' },
758 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
759 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
760 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
761 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
762 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
763 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
764 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
765 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
766 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude767 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude768 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
769 { label: 'Gists', href: '/gists', kw: 'snippets' },
770 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
771 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
772 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
773 ];
774
775 function fuzzyMatch(item, q){
776 if (!q) return true;
777 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
778 q = q.toLowerCase();
779 var qi = 0;
780 for (var i = 0; i < hay.length && qi < q.length; i++) {
781 if (hay[i] === q[qi]) qi++;
782 }
783 return qi === q.length;
784 }
785
786 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
787
788 function render(){
789 if (!list) return;
790 var html = '';
791 for (var i = 0; i < filtered.length; i++) {
792 var item = filtered[i];
793 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
794 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]795 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App796 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude797 '<div>' + item.label + '</div>' +
798 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
799 '</div>';
800 }
801 if (filtered.length === 0) {
dc26881CC LABS App802 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude803 }
804 list.innerHTML = html;
805 }
806
807 function openPalette(){
808 backdrop = document.getElementById('cmdk-backdrop');
809 panel = document.getElementById('cmdk-panel');
810 input = document.getElementById('cmdk-input');
811 list = document.getElementById('cmdk-list');
812 if (!backdrop || !panel) return;
813 backdrop.style.display = 'block';
814 panel.style.display = 'block';
815 input.value = '';
816 selected = 0;
817 filtered = COMMANDS.slice();
818 render();
819 input.focus();
820 }
821 function closePalette(){
822 if (backdrop) backdrop.style.display = 'none';
823 if (panel) panel.style.display = 'none';
824 }
825 function go(href){ closePalette(); window.location.href = href; }
826
827 document.addEventListener('click', function(e){
828 var t = e.target;
829 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
830 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]831 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude832 });
833
834 document.addEventListener('input', function(e){
835 if (e.target && e.target.id === 'cmdk-input') {
836 var q = e.target.value;
837 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
838 selected = 0;
839 render();
840 }
841 });
842
3ef4c9dClaude843 document.addEventListener('keydown', function(e){
71cd5ecClaude844 // Palette-scoped keys take priority when open
845 if (panel && panel.style.display === 'block') {
846 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
847 if (e.key === 'ArrowDown') {
848 e.preventDefault();
849 selected = Math.min(filtered.length - 1, selected + 1);
850 render();
851 return;
852 }
853 if (e.key === 'ArrowUp') {
854 e.preventDefault();
855 selected = Math.max(0, selected - 1);
856 render();
857 return;
858 }
859 if (e.key === 'Enter') {
860 e.preventDefault();
861 var item = filtered[selected];
862 if (item) go(item.href);
863 return;
864 }
865 return;
866 }
867
3ef4c9dClaude868 if (isTyping(e.target)) return;
869 // Single key shortcuts
870 if (e.key === '/') {
871 var el = document.querySelector('.nav-search input');
872 if (el) { e.preventDefault(); el.focus(); return; }
873 }
874 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude875 e.preventDefault();
876 openPalette();
877 return;
3ef4c9dClaude878 }
879 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
880 e.preventDefault(); window.location.href = '/shortcuts'; return;
881 }
882 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
883 e.preventDefault(); window.location.href = '/new'; return;
884 }
885 // "g" chord
886 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
887 chord = 'g';
888 clearTimeout(chordTimer);
889 chordTimer = setTimeout(function(){ chord = null; }, 1200);
890 return;
891 }
892 if (chord === 'g') {
893 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
894 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
895 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
896 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
897 chord = null;
898 }
5882af3Claude899 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
900 if (e.key === 'j' || e.key === 'k') {
901 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
902 var items = Array.from(document.querySelectorAll(selectors));
903 if (items.length === 0) return;
904 e.preventDefault();
905 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
906 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));
907 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
908 items[next].classList.add('is-kbd-focus');
909 items[next].scrollIntoView({ block: 'nearest' });
910 return;
911 }
912 if (e.key === 'Enter') {
913 var focused = document.querySelector('.is-kbd-focus');
914 if (focused) {
915 e.preventDefault();
916 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
917 if (link && link.href) { window.location.href = link.href; }
918 return;
919 }
920 }
921 if (e.key === 'x') {
922 // 'x' selects/deselects focused item (future: bulk actions)
923 var sel = document.querySelector('.is-kbd-focus');
924 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
925 }
3ef4c9dClaude926 });
927 })();
928`;
929
c6018a5Claude930// AI dropdown — keyboard- and click-accessible menu in the top nav.
931// CSS handles the hover-open behaviour for pointer users; this script
932// adds click-to-toggle for touch, Escape-to-close, and outside-click-
933// to-close. Lives in its own IIFE so it never interferes with navScript.
934const navAiDropdownScript = `
935 (function(){
f5b9ef5Claude936 function makeDropdown(rootSel, triggerSel, menuSel) {
937 var open = false;
938 var root = document.querySelector(rootSel);
939 if (!root) return;
940 var trigger = root.querySelector(triggerSel);
941 var menu = root.querySelector(menuSel);
942 if (!trigger || !menu) return;
943 function setOpen(next){
944 open = !!next;
945 root.classList.toggle('is-open', open);
946 menu.classList.toggle('is-open', open);
947 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
948 }
949 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
950 document.addEventListener('click', function(e){
951 if (!open) return;
952 if (root.contains(e.target)) return;
953 setOpen(false);
954 });
955 document.addEventListener('keydown', function(e){
956 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
957 });
c6018a5Claude958 }
f5b9ef5Claude959 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
960 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude961 })();
962`;
963
fc1817aClaude964const css = `
2ce1d0bClaude965 /* ================================================================
958d26aClaude966 * Gluecron design system — 2026.05 "Editorial-Technical"
967 * Slate-noir base · refined violet signature · hairline geometry ·
968 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
969 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude970 * ============================================================== */
6fc53bdClaude971 :root, :root[data-theme='dark'] {
958d26aClaude972 /* Surfaces — slate, not black. More depth, less crush. */
973 --bg: #08090f;
974 --bg-secondary: #0c0d14;
975 --bg-tertiary: #11131c;
976 --bg-elevated: #0f111a;
977 --bg-surface: #161826;
978 --bg-hover: rgba(255,255,255,0.04);
979 --bg-active: rgba(255,255,255,0.08);
980 --bg-inset: rgba(0,0,0,0.30);
981
982 /* Borders — three weights, used deliberately */
983 --border: rgba(255,255,255,0.06);
984 --border-subtle: rgba(255,255,255,0.035);
985 --border-strong: rgba(255,255,255,0.13);
986 --border-focus: rgba(140,109,255,0.55);
987
988 /* Text */
989 --text: #ededf2;
990 --text-strong: #f7f7fb;
991 --text-muted: #8b8c9c;
992 --text-faint: #555665;
993 --text-link: #b69dff;
994
995 /* Accent — refined violet (less candy), warm amber as secondary signal */
996 --accent: #8c6dff;
997 --accent-2: #36c5d6;
998 --accent-warm: #ffb45e;
999 --accent-hover: #a48bff;
1000 --accent-pressed:#7559e8;
1001 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1002 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1003 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1004 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1005
1006 /* Semantic */
1007 --green: #34d399;
1008 --red: #f87171;
1009 --yellow: #fbbf24;
1010 --amber: #fbbf24;
1011 --blue: #60a5fa;
1012
3a5755eClaude1013 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1014 display (headlines), JetBrains Mono for code. All three loaded from
1015 Google Fonts with display:swap so we never block first paint. System
1016 fallbacks remain in place — if the CDN is unreachable the site still
1017 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1018 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1019 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1020 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1021 --mono-feat: 'calt', 'liga', 'ss01';
1022
1023 /* Radius — sharper than before */
1024 --r-sm: 5px;
1025 --r: 7px;
1026 --r-md: 9px;
1027 --r-lg: 12px;
1028 --r-xl: 16px;
1029 --r-2xl: 22px;
1030 --r-full: 9999px;
1031 --radius: 7px;
1032
1033 /* Type scale — bigger display sizes for editorial feel */
1034 --t-xs: 11px;
1035 --t-sm: 13px;
1036 --t-base: 14px;
1037 --t-md: 16px;
1038 --t-lg: 20px;
1039 --t-xl: 28px;
1040 --t-2xl: 40px;
1041 --t-3xl: 56px;
1042 --t-display: 72px;
1043 --t-display-lg:96px;
1044
1045 /* Spacing — 4px base */
2ce1d0bClaude1046 --s-0: 0;
958d26aClaude1047 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1048 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1049 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1050 --s-20:80px; --s-24:96px; --s-32:128px;
1051
1052 /* Elevation — softer + more layered */
1053 --elev-0: 0 0 0 1px var(--border);
1054 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1055 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1056 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1057 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1058 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1059 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1060 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1061
1062 /* Motion */
1063 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1064 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1065 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1066 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1067 --t-fast: 120ms;
1068 --t-base: 200ms;
1069 --t-slow: 360ms;
1070 --t-slower:560ms;
1071
1072 --header-h: 60px;
c63b860Claude1073
1074 /* Block O3 — visual coherence: named token aliases (additive). */
1075 --space-1: var(--s-1);
1076 --space-2: var(--s-2);
1077 --space-3: var(--s-3);
1078 --space-4: var(--s-4);
1079 --space-5: var(--s-5);
1080 --space-6: var(--s-6);
1081 --space-8: var(--s-8);
1082 --space-10: var(--s-10);
1083 --space-12: var(--s-12);
1084 --space-16: var(--s-16);
1085 --space-20: var(--s-20);
1086 --space-24: var(--s-24);
1087 --radius-sm: var(--r-sm);
1088 --radius-md: var(--r-md);
1089 --radius-lg: var(--r-lg);
1090 --radius-xl: var(--r-xl);
1091 --radius-full: var(--r-full);
1092 --font-size-xs: var(--t-xs);
1093 --font-size-sm: var(--t-sm);
1094 --font-size-base: var(--t-base);
1095 --font-size-md: var(--t-md);
1096 --font-size-lg: var(--t-lg);
1097 --font-size-xl: var(--t-xl);
1098 --font-size-2xl: var(--t-2xl);
1099 --font-size-3xl: var(--t-3xl);
1100 --font-size-hero: var(--t-display);
1101 --leading-tight: 1.2;
1102 --leading-snug: 1.35;
1103 --leading-normal: 1.5;
1104 --leading-relaxed: 1.6;
1105 --leading-loose: 1.7;
1106 --z-base: 1;
1107 --z-nav: 10;
1108 --z-sticky: 50;
1109 --z-overlay: 100;
1110 --z-modal: 1000;
1111 --z-toast: 10000;
fc1817aClaude1112 }
1113
6fc53bdClaude1114 :root[data-theme='light'] {
958d26aClaude1115 --bg: #fbfbfc;
4c47454Claude1116 --bg-secondary: #ffffff;
958d26aClaude1117 --bg-tertiary: #f3f3f6;
1118 --bg-elevated: #ffffff;
1119 --bg-surface: #f6f6f9;
1120 --bg-hover: rgba(0,0,0,0.035);
1121 --bg-active: rgba(0,0,0,0.07);
1122 --bg-inset: rgba(0,0,0,0.04);
1123
1124 --border: rgba(15,16,28,0.08);
1125 --border-subtle: rgba(15,16,28,0.04);
1126 --border-strong: rgba(15,16,28,0.16);
1127
1128 --text: #0e1020;
1129 --text-strong: #050617;
1130 --text-muted: #5a5b70;
1131 --text-faint: #8a8b9e;
1132 --text-link: #6d4dff;
1133
1134 --accent: #6d4dff;
1135 --accent-2: #0891b2;
1136 --accent-hover: #5a3df0;
1137 --accent-pressed:#4a30d6;
1138 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1139
1140 --green: #059669;
1141 --red: #dc2626;
4c47454Claude1142 --yellow: #d97706;
958d26aClaude1143
1144 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1145 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1146 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1147 }
1148
1149 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1150 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1151 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1152 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1153 :root[data-theme='light'] .theme-icon-light { display: none; }
1154
fc1817aClaude1155 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1156 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1157
958d26aClaude1158 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1159
1160 body {
1161 font-family: var(--font-sans);
1162 background: var(--bg);
1163 color: var(--text);
cf9178bTest User1164 font-size: 15px;
2ce1d0bClaude1165 line-height: 1.55;
958d26aClaude1166 letter-spacing: -0.011em;
fc1817aClaude1167 min-height: 100vh;
1168 display: flex;
1169 flex-direction: column;
958d26aClaude1170 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1171 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1172 and disables automatic synthesis of bold/italic which can produce
1173 muddier rendering on certain weights. */
1174 -webkit-font-smoothing: antialiased;
1175 -moz-osx-font-smoothing: grayscale;
1176 font-synthesis: none;
1177 }
1178 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1179 line-height inversely with size so display text doesn't feel airy. */
1180 h1, h2, h3, h4, h5, h6 {
1181 font-family: var(--font-display);
1182 color: var(--text-strong);
1183 letter-spacing: -0.022em;
1184 line-height: 1.18;
1185 font-weight: 650;
1186 margin-top: 0;
1187 }
1188 h1 { font-size: 28px; letter-spacing: -0.028em; }
1189 h2 { font-size: 22px; }
1190 h3 { font-size: 18px; letter-spacing: -0.018em; }
1191 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1192 /* Link refinement — underline only on hover/focus, never by default
1193 on internal nav. Prevents the "blue underline soup" look. */
1194 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1195 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1196 a:focus-visible {
1197 outline: none;
1198 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1199 border-radius: 3px;
fc1817aClaude1200 }
1201
958d26aClaude1202 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1203 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1204 body::before {
1205 content: '';
1206 position: fixed;
1207 inset: 0;
1208 pointer-events: none;
958d26aClaude1209 z-index: -2;
2ce1d0bClaude1210 background:
958d26aClaude1211 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1212 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1213 }
1214 body::after {
1215 content: '';
1216 position: fixed;
1217 inset: 0;
1218 pointer-events: none;
1219 z-index: -1;
1220 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1221 background-size: 28px 28px;
1222 background-position: 0 0;
1223 opacity: 0.55;
1224 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1225 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1226 }
1227 :root[data-theme='light'] body::before { opacity: 0.55; }
1228 :root[data-theme='light'] body::after {
1229 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1230 opacity: 0.4;
fc1817aClaude1231 }
2ce1d0bClaude1232
1233 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1234 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1235
958d26aClaude1236 /* Heading scale — confident, editorial, tight tracking */
1237 h1, h2, h3, h4, h5, h6 {
1238 font-family: var(--font-display);
2ce1d0bClaude1239 font-weight: 600;
958d26aClaude1240 letter-spacing: -0.022em;
1241 line-height: 1.18;
1242 color: var(--text-strong);
1243 }
1244 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1245 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1246 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1247 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1248 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1249
1250 /* Editorial display heading utility — used by landing + marketing pages */
1251 .display {
1252 font-family: var(--font-display);
1253 font-size: clamp(40px, 7.5vw, 96px);
1254 line-height: 0.98;
1255 letter-spacing: -0.04em;
1256 font-weight: 600;
1257 color: var(--text-strong);
2ce1d0bClaude1258 }
fc1817aClaude1259
958d26aClaude1260 /* Eyebrow — uppercase mono label that sits above section headings */
1261 .eyebrow {
1262 display: inline-flex;
1263 align-items: center;
1264 gap: 8px;
1265 font-family: var(--font-mono);
1266 font-size: 11px;
1267 font-weight: 500;
1268 letter-spacing: 0.14em;
1269 text-transform: uppercase;
1270 color: var(--accent);
1271 margin-bottom: var(--s-3);
1272 }
1273 .eyebrow::before {
1274 content: '';
1275 width: 18px;
1276 height: 1px;
1277 background: currentColor;
1278 opacity: 0.6;
1279 }
1280
1281 /* Section header — paired eyebrow + title + lede */
1282 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1283 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1284 .section-header h2 {
1285 font-size: clamp(28px, 4vw, 44px);
1286 line-height: 1.05;
1287 letter-spacing: -0.028em;
1288 margin-bottom: var(--s-3);
1289 }
1290 .section-header p {
1291 color: var(--text-muted);
1292 font-size: var(--t-md);
1293 line-height: 1.6;
1294 max-width: 580px;
1295 margin: 0 auto;
1296 }
1297 .section-header.left p { margin-left: 0; }
fc1817aClaude1298
958d26aClaude1299 code, kbd, samp {
2ce1d0bClaude1300 font-family: var(--font-mono);
958d26aClaude1301 font-feature-settings: var(--mono-feat);
1302 }
1303 code {
1304 font-size: 0.9em;
2ce1d0bClaude1305 background: var(--bg-tertiary);
958d26aClaude1306 border: 1px solid var(--border-subtle);
2ce1d0bClaude1307 padding: 1px 6px;
1308 border-radius: var(--r-sm);
1309 color: var(--text);
1310 }
958d26aClaude1311 kbd, .kbd {
1312 display: inline-flex;
1313 align-items: center;
1314 padding: 1px 6px;
1315 font-family: var(--font-mono);
1316 font-size: 11px;
1317 background: var(--bg-elevated);
1318 border: 1px solid var(--border);
1319 border-bottom-width: 2px;
1320 border-radius: 4px;
1321 color: var(--text);
1322 line-height: 1.5;
1323 vertical-align: middle;
1324 }
2ce1d0bClaude1325
958d26aClaude1326 /* Mono utility for technical chrome (paths, IDs, dates) */
1327 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1328 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1329
1330 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1331 .prelaunch-banner {
958d26aClaude1332 position: relative;
2ce1d0bClaude1333 background:
958d26aClaude1334 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1335 var(--bg);
958d26aClaude1336 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1337 color: var(--yellow);
958d26aClaude1338 padding: 7px 24px;
1339 font-family: var(--font-mono);
1340 font-size: 11px;
4a52a98Claude1341 font-weight: 500;
1342 text-align: center;
2ce1d0bClaude1343 line-height: 1.5;
958d26aClaude1344 letter-spacing: 0.04em;
1345 text-transform: uppercase;
1346 }
1347 .prelaunch-banner::before {
1348 content: '◆';
1349 margin-right: 8px;
1350 font-size: 9px;
1351 opacity: 0.7;
1352 vertical-align: 1px;
4a52a98Claude1353 }
1354
cd4f63bTest User1355 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1356 visitors don't miss the "save your work" CTA, but slim enough to
1357 not feel like a modal. */
1358 .playground-banner {
1359 position: relative;
1360 display: flex;
1361 align-items: center;
1362 justify-content: center;
1363 gap: 8px;
1364 background:
1365 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1366 var(--bg);
1367 border-bottom: 1px solid rgba(251,191,36,0.45);
1368 color: var(--yellow, #fbbf24);
1369 padding: 8px 40px 8px 24px;
1370 font-size: 13px;
1371 font-weight: 500;
1372 text-align: center;
1373 line-height: 1.4;
1374 }
1375 .playground-banner-icon { font-size: 14px; }
1376 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1377 .playground-banner-countdown { font-weight: 600; }
1378 .playground-banner-cta {
1379 margin-left: 4px;
1380 color: var(--yellow, #fbbf24);
1381 text-decoration: underline;
1382 font-weight: 600;
1383 }
1384 .playground-banner-cta:hover { opacity: 0.85; }
1385 .playground-banner-dismiss {
1386 position: absolute;
1387 top: 50%;
1388 right: 12px;
1389 transform: translateY(-50%);
1390 background: transparent;
1391 border: none;
1392 color: var(--text-muted, #8b949e);
1393 font-size: 18px;
1394 line-height: 1;
1395 cursor: pointer;
1396 padding: 0 4px;
1397 }
1398 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1399
958d26aClaude1400 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1401 header {
2ce1d0bClaude1402 position: sticky;
1403 top: 0;
1404 z-index: 100;
fc1817aClaude1405 border-bottom: 1px solid var(--border);
2ce1d0bClaude1406 padding: 0 24px;
1407 height: var(--header-h);
958d26aClaude1408 background: rgba(8,9,15,0.72);
1409 backdrop-filter: saturate(180%) blur(18px);
1410 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1411 }
958d26aClaude1412 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1413
06d5ffeClaude1414 header nav {
1415 display: flex;
1416 align-items: center;
958d26aClaude1417 gap: 18px;
eed4684Claude1418 max-width: 1920px;
06d5ffeClaude1419 margin: 0 auto;
2ce1d0bClaude1420 height: 100%;
1421 }
1422 .logo {
958d26aClaude1423 font-family: var(--font-display);
1424 font-size: 16px;
2ce1d0bClaude1425 font-weight: 700;
958d26aClaude1426 letter-spacing: -0.025em;
1427 color: var(--text-strong);
2ce1d0bClaude1428 display: inline-flex;
1429 align-items: center;
958d26aClaude1430 gap: 9px;
1431 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1432 }
2ce1d0bClaude1433 .logo::before {
1434 content: '';
958d26aClaude1435 width: 20px; height: 20px;
1436 border-radius: 6px;
2ce1d0bClaude1437 background: var(--accent-gradient);
958d26aClaude1438 box-shadow:
1439 inset 0 1px 0 rgba(255,255,255,0.25),
1440 0 0 0 1px rgba(140,109,255,0.45),
1441 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1442 flex-shrink: 0;
958d26aClaude1443 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1444 }
1445 .logo:hover { text-decoration: none; color: var(--text-strong); }
1446 .logo:hover::before {
1447 transform: rotate(8deg) scale(1.05);
1448 box-shadow:
1449 inset 0 1px 0 rgba(255,255,255,0.30),
1450 0 0 0 1px rgba(140,109,255,0.55),
1451 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1452 }
fc1817aClaude1453
2ce1d0bClaude1454 .nav-search {
1455 flex: 1;
958d26aClaude1456 max-width: 360px;
1457 margin: 0 4px 0 8px;
1458 position: relative;
2ce1d0bClaude1459 }
1460 .nav-search input {
1461 width: 100%;
958d26aClaude1462 padding: 7px 12px 7px 32px;
2ce1d0bClaude1463 background: var(--bg-tertiary);
1464 border: 1px solid var(--border);
1465 border-radius: var(--r-sm);
1466 color: var(--text);
1467 font-family: var(--font-sans);
1468 font-size: var(--t-sm);
958d26aClaude1469 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1470 }
1471 .nav-search::before {
1472 content: '';
1473 position: absolute;
1474 left: 11px; top: 50%;
1475 transform: translateY(-50%);
1476 width: 12px; height: 12px;
1477 border: 1.5px solid var(--text-faint);
1478 border-radius: 50%;
1479 pointer-events: none;
1480 }
1481 .nav-search::after {
1482 content: '';
1483 position: absolute;
1484 left: 19px; top: calc(50% + 4px);
1485 width: 5px; height: 1.5px;
1486 background: var(--text-faint);
1487 transform: rotate(45deg);
1488 pointer-events: none;
2ce1d0bClaude1489 }
1490 .nav-search input::placeholder { color: var(--text-faint); }
1491 .nav-search input:focus {
1492 outline: none;
1493 background: var(--bg-secondary);
958d26aClaude1494 border-color: var(--border-focus);
1495 box-shadow: var(--ring);
2ce1d0bClaude1496 }
06d5ffeClaude1497
958d26aClaude1498 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1499
1500 /* Block N3 — site-admin deploy status pill */
1501 .nav-deploy-pill {
1502 display: inline-flex;
1503 align-items: center;
1504 gap: 6px;
1505 padding: 4px 10px;
1506 margin: 0 6px 0 0;
1507 border-radius: 9999px;
1508 font-size: 11px;
1509 font-weight: 600;
1510 line-height: 1;
1511 color: var(--text-strong);
1512 background: var(--bg-elevated);
1513 border: 1px solid var(--border);
1514 text-decoration: none;
1515 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1516 }
1517 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1518 .nav-deploy-pill .deploy-pill-dot {
1519 display: inline-block;
1520 width: 8px; height: 8px;
1521 border-radius: 50%;
1522 background: #6b7280;
1523 }
1524 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1525 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1526 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1527 .deploy-pill-progress .deploy-pill-dot {
1528 background: #fbbf24;
1529 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1530 animation: deployPillPulse 1.2s ease-in-out infinite;
1531 }
1532 @keyframes deployPillPulse {
1533 0%, 100% { opacity: 1; transform: scale(1); }
1534 50% { opacity: 0.45; transform: scale(0.8); }
1535 }
1536 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1537
c6018a5Claude1538 /* ── AI dropdown (nav consolidation) ── */
1539 .nav-ai-dropdown {
1540 position: relative;
1541 display: inline-flex;
1542 align-items: center;
1543 }
1544 .nav-ai-trigger {
1545 background: transparent;
1546 border: 0;
1547 font: inherit;
1548 cursor: pointer;
1549 color: var(--text-muted);
1550 font-size: var(--t-sm);
1551 font-weight: 500;
1552 padding: 7px 11px;
1553 border-radius: var(--r-sm);
1554 line-height: 1.2;
1555 }
1556 .nav-ai-trigger:hover {
1557 color: var(--text-strong);
1558 background: var(--bg-hover);
1559 }
1560 .nav-ai-menu {
1561 position: absolute;
1562 top: calc(100% + 6px);
1563 right: 0;
1564 min-width: 220px;
1565 background: var(--bg-secondary);
1566 border: 1px solid var(--border-strong);
1567 border-radius: 10px;
1568 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1569 padding: 6px;
1570 display: none;
1571 z-index: var(--z-overlay, 100);
1572 }
1573 .nav-ai-dropdown:hover .nav-ai-menu,
1574 .nav-ai-dropdown.is-open .nav-ai-menu,
1575 .nav-ai-dropdown:focus-within .nav-ai-menu {
1576 display: block;
1577 }
1578 .nav-ai-item {
1579 display: flex;
1580 flex-direction: column;
1581 gap: 1px;
1582 padding: 8px 10px;
1583 border-radius: 6px;
1584 color: var(--text);
1585 text-decoration: none;
1586 transition: background var(--t-fast) var(--ease);
1587 }
1588 .nav-ai-item:hover {
1589 background: var(--bg-hover);
1590 text-decoration: none;
1591 color: var(--text-strong);
1592 }
1593 .nav-ai-item-label {
1594 font-size: var(--t-sm);
1595 font-weight: 600;
1596 color: var(--text-strong);
1597 }
1598 .nav-ai-item-sub {
1599 font-size: 11.5px;
1600 color: var(--text-muted);
1601 }
1602
2ce1d0bClaude1603 .nav-link {
958d26aClaude1604 position: relative;
2ce1d0bClaude1605 color: var(--text-muted);
1606 font-size: var(--t-sm);
1607 font-weight: 500;
958d26aClaude1608 padding: 7px 11px;
2ce1d0bClaude1609 border-radius: var(--r-sm);
958d26aClaude1610 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1611 }
1612 .nav-link:hover {
958d26aClaude1613 color: var(--text-strong);
2ce1d0bClaude1614 background: var(--bg-hover);
1615 text-decoration: none;
1616 }
958d26aClaude1617 .nav-link.active { color: var(--text-strong); }
1618 .nav-link.active::after {
1619 content: '';
1620 position: absolute;
1621 left: 11px; right: 11px;
1622 bottom: -1px;
1623 height: 2px;
1624 background: var(--accent-gradient);
1625 border-radius: 2px;
1626 }
adf5e18Claude1627 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1628 so it reads as an action affordance rather than a passive link. */
1629 .nav-migrate {
1630 color: var(--accent);
1631 font-weight: 600;
1632 border: 1px solid rgba(140,109,255,0.22);
1633 background: rgba(140,109,255,0.07);
1634 }
1635 .nav-migrate:hover {
1636 color: var(--accent-hover);
1637 background: rgba(140,109,255,0.13);
1638 border-color: rgba(140,109,255,0.40);
1639 }
1640 @media (max-width: 780px) { .nav-migrate { display: none; } }
1641
2ce1d0bClaude1642 .nav-user {
958d26aClaude1643 color: var(--text-strong);
2ce1d0bClaude1644 font-weight: 600;
1645 font-size: var(--t-sm);
1646 padding: 6px 10px;
1647 border-radius: var(--r-sm);
958d26aClaude1648 margin-left: 6px;
2ce1d0bClaude1649 transition: background var(--t-fast) var(--ease);
1650 }
958d26aClaude1651 .nav-user::before {
1652 content: '';
1653 display: inline-block;
1654 width: 8px; height: 8px;
1655 background: var(--green);
1656 border-radius: 50%;
1657 margin-right: 7px;
1658 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1659 vertical-align: 1px;
1660 }
2ce1d0bClaude1661 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1662
f5b9ef5Claude1663 /* ── Inbox bell button ── */
1664 .nav-inbox-btn {
1665 position: relative;
1666 display: inline-flex;
1667 align-items: center;
1668 justify-content: center;
1669 width: 34px;
1670 height: 34px;
1671 border-radius: var(--r-sm);
1672 color: var(--text-muted);
1673 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1674 flex-shrink: 0;
1675 }
1676 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1677 .nav-inbox-badge {
1678 position: absolute;
1679 top: 3px; right: 3px;
1680 min-width: 15px; height: 15px;
1681 padding: 0 4px;
1682 font-size: 9.5px;
1683 font-weight: 700;
1684 line-height: 15px;
1685 color: #fff;
1686 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1687 border-radius: 9999px;
1688 text-align: center;
1689 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1690 font-variant-numeric: tabular-nums;
1691 }
1692
1693 /* ── User dropdown ── */
1694 .nav-user-dropdown { position: relative; }
1695 .nav-user-trigger {
1696 display: inline-flex;
1697 align-items: center;
1698 gap: 7px;
1699 padding: 5px 9px 5px 5px;
1700 border-radius: var(--r-sm);
1701 border: 1px solid transparent;
1702 background: transparent;
1703 color: var(--text);
1704 font-family: var(--font-sans);
1705 font-size: var(--t-sm);
1706 font-weight: 500;
1707 cursor: pointer;
1708 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1709 }
1710 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1711 .nav-user-avatar {
1712 width: 24px; height: 24px;
1713 border-radius: 50%;
1714 background: var(--accent-gradient);
1715 color: #fff;
1716 font-size: 11px;
1717 font-weight: 700;
1718 display: inline-flex;
1719 align-items: center;
1720 justify-content: center;
1721 flex-shrink: 0;
1722 box-shadow: 0 0 0 2px var(--border);
1723 }
1724 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1725 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1726 .nav-user-menu {
1727 display: none;
1728 position: absolute;
1729 top: calc(100% + 6px);
1730 right: 0;
1731 min-width: 220px;
1732 background: var(--bg-elevated);
1733 border: 1px solid var(--border-strong);
1734 border-radius: var(--r-lg);
1735 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1736 padding: 6px;
1737 z-index: 200;
1738 animation: navMenuIn 140ms var(--ease) both;
1739 }
1740 .nav-user-menu.is-open { display: block; }
1741 .nav-user-menu-header {
1742 padding: 8px 10px 10px;
1743 display: flex;
1744 flex-direction: column;
1745 gap: 2px;
1746 }
1747 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1748 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1749 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1750 .nav-user-item {
1751 display: block;
1752 padding: 7px 10px;
1753 border-radius: 6px;
1754 font-size: var(--t-sm);
1755 color: var(--text);
1756 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1757 white-space: nowrap;
1758 }
1759 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1760 .nav-user-item--danger { color: var(--red); }
1761 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1762
1763 @keyframes navMenuIn {
1764 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1765 to { opacity: 1; transform: translateY(0) scale(1); }
1766 }
1767
2ce1d0bClaude1768 main {
eed4684Claude1769 max-width: 1920px;
2ce1d0bClaude1770 margin: 0 auto;
958d26aClaude1771 padding: 36px 24px 80px;
2ce1d0bClaude1772 flex: 1;
1773 width: 100%;
ed6e438Claude1774 /* 2026 polish — subtle entrance animation on every page load.
1775 Content fades up 4px over 360ms, giving the site that "alive"
1776 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1777 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1778 }
1779 @keyframes gxMainEnter {
1780 from { opacity: 0; transform: translateY(4px); }
1781 to { opacity: 1; transform: translateY(0); }
1782 }
1783 @media (prefers-reduced-motion: reduce) {
1784 main { animation: none; }
1785 }
1786 /* 2026 polish — accent focus ring across all focusable elements.
1787 The default browser ring is utilitarian; this is the same width
1788 but tinted to the brand accent so keyboard navigation feels
1789 intentional, not jarring. :focus-visible only — mouse users
1790 never see it. */
1791 :focus-visible {
1792 outline: none;
1793 }
1794 a:focus-visible,
1795 button:focus-visible,
1796 input:focus-visible,
1797 select:focus-visible,
1798 textarea:focus-visible,
1799 [tabindex]:focus-visible {
1800 outline: 2px solid rgba(140, 109, 255, 0.55);
1801 outline-offset: 2px;
1802 border-radius: 4px;
2ce1d0bClaude1803 }
fc1817aClaude1804
958d26aClaude1805 /* Editorial footer: link grid + tagline row */
fc1817aClaude1806 footer {
1807 border-top: 1px solid var(--border);
958d26aClaude1808 padding: 56px 24px 40px;
fc1817aClaude1809 color: var(--text-muted);
958d26aClaude1810 font-size: var(--t-sm);
1811 background:
1812 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1813 var(--bg);
1814 }
1815 footer .footer-inner {
eed4684Claude1816 max-width: 1920px;
958d26aClaude1817 margin: 0 auto;
1818 display: grid;
1819 grid-template-columns: 1fr auto;
1820 gap: 48px;
1821 align-items: start;
1822 }
1823 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1824 footer .footer-tag {
1825 color: var(--text-muted);
1826 font-size: var(--t-sm);
1827 max-width: 320px;
1828 line-height: 1.55;
1829 }
1830 footer .footer-links {
1831 display: grid;
1832 grid-template-columns: repeat(3, minmax(120px, auto));
1833 gap: 0 56px;
1834 }
1835 footer .footer-col-title {
1836 font-family: var(--font-mono);
1837 font-size: 11px;
1838 text-transform: uppercase;
1839 letter-spacing: 0.14em;
1840 color: var(--text-faint);
1841 margin-bottom: var(--s-3);
1842 }
1843 footer .footer-col a {
1844 display: block;
1845 color: var(--text-muted);
1846 font-size: var(--t-sm);
1847 padding: 5px 0;
1848 transition: color var(--t-fast) var(--ease);
1849 }
1850 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1851 footer .footer-bottom {
eed4684Claude1852 max-width: 1920px;
958d26aClaude1853 margin: 40px auto 0;
1854 padding-top: 24px;
1855 border-top: 1px solid var(--border-subtle);
1856 display: flex;
1857 justify-content: space-between;
1858 align-items: center;
2ce1d0bClaude1859 color: var(--text-faint);
1860 font-size: var(--t-xs);
958d26aClaude1861 font-family: var(--font-mono);
1862 letter-spacing: 0.02em;
1863 }
1864 footer .footer-bottom a { color: var(--text-faint); }
1865 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1866 footer .footer-build {
1867 display: inline-flex;
1868 align-items: center;
1869 gap: 6px;
1870 color: var(--text-faint);
1871 font-family: var(--font-mono);
1872 font-size: 11px;
1873 cursor: help;
1874 }
1875 footer .footer-build-dot {
1876 width: 6px; height: 6px;
1877 border-radius: 50%;
1878 background: var(--green);
1879 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1880 animation: footer-build-pulse 2.4s ease-in-out infinite;
1881 }
1882 @keyframes footer-build-pulse {
1883 0%, 100% { opacity: 0.6; }
1884 50% { opacity: 1; }
1885 }
958d26aClaude1886 @media (max-width: 768px) {
1887 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1888 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1889 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1890 }
1891
2ce1d0bClaude1892 /* ============================================================ */
1893 /* Buttons */
1894 /* ============================================================ */
dc26881CC LABS App1895 /* ============================================================ */
1896 /* Buttons — Block U2 senior polish pass. */
1897 /* Rules: */
1898 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1899 /* · active presses back down to 0 (80ms — faster on press) */
1900 /* · focus-visible uses a soft box-shadow ring (no outline) */
1901 /* · primary gradient shifts position on hover for a slow */
1902 /* 600ms shimmer */
1903 /* · disabled never lifts and never animates */
1904 /* ============================================================ */
06d5ffeClaude1905 .btn {
1906 display: inline-flex;
1907 align-items: center;
2ce1d0bClaude1908 justify-content: center;
958d26aClaude1909 gap: 7px;
2ce1d0bClaude1910 padding: 7px 14px;
1911 border-radius: var(--r-sm);
958d26aClaude1912 font-family: var(--font-sans);
2ce1d0bClaude1913 font-size: var(--t-sm);
06d5ffeClaude1914 font-weight: 500;
1915 border: 1px solid var(--border);
2ce1d0bClaude1916 background: var(--bg-elevated);
06d5ffeClaude1917 color: var(--text);
1918 cursor: pointer;
1919 text-decoration: none;
958d26aClaude1920 line-height: 1.25;
1921 letter-spacing: -0.008em;
dc26881CC LABS App1922 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1923 Listed once on the base rule so :active can override only the
1924 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1925 transition:
dc26881CC LABS App1926 background 180ms ease,
1927 border-color 180ms ease,
1928 transform 180ms ease,
1929 box-shadow 180ms ease,
1930 color 180ms ease;
2ce1d0bClaude1931 user-select: none;
1932 white-space: nowrap;
958d26aClaude1933 position: relative;
06d5ffeClaude1934 }
2ce1d0bClaude1935 .btn:hover {
1936 background: var(--bg-surface);
1937 border-color: var(--border-strong);
958d26aClaude1938 color: var(--text-strong);
2ce1d0bClaude1939 text-decoration: none;
dc26881CC LABS App1940 /* U2 — universal hover lift + soft accent drop shadow. */
1941 transform: translateY(-1px);
1942 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1943 }
1944 .btn:active {
1945 transform: translateY(0);
1946 transition-duration: 80ms;
1947 }
1948 /* U2 — soft modern focus ring via box-shadow, not outline. */
1949 .btn:focus-visible {
1950 outline: none;
1951 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1952 }
1953
1954 .btn-primary {
1955 background: var(--accent-gradient);
dc26881CC LABS App1956 background-size: 200% 100%;
1957 background-position: 0% 50%;
2ce1d0bClaude1958 border-color: transparent;
1959 color: #fff;
1960 font-weight: 600;
958d26aClaude1961 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1962 box-shadow:
958d26aClaude1963 inset 0 1px 0 rgba(255,255,255,0.22),
1964 inset 0 -1px 0 rgba(0,0,0,0.10),
1965 0 1px 2px rgba(0,0,0,0.40),
1966 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1967 /* U2 — slower 600ms transition on background-position so the
1968 primary CTA shimmers when the cursor lands. */
1969 transition:
1970 background-position 600ms ease,
1971 transform 180ms ease,
1972 box-shadow 180ms ease,
1973 color 180ms ease;
06d5ffeClaude1974 }
958d26aClaude1975 .btn-primary::before {
1976 content: '';
1977 position: absolute;
1978 inset: 0;
1979 border-radius: inherit;
1980 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1981 opacity: 0;
1982 transition: opacity var(--t-fast) var(--ease);
1983 pointer-events: none;
2ce1d0bClaude1984 }
1985 .btn-primary:hover {
958d26aClaude1986 color: #fff;
2ce1d0bClaude1987 background: var(--accent-gradient);
dc26881CC LABS App1988 background-size: 200% 100%;
1989 background-position: 100% 50%;
958d26aClaude1990 border-color: transparent;
dc26881CC LABS App1991 transform: translateY(-1px);
2ce1d0bClaude1992 box-shadow:
958d26aClaude1993 inset 0 1px 0 rgba(255,255,255,0.30),
1994 inset 0 -1px 0 rgba(0,0,0,0.10),
1995 0 6px 18px -4px rgba(140,109,255,0.45),
1996 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1997 }
958d26aClaude1998 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App1999 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2000 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2001 .btn-primary:focus-visible {
2002 box-shadow:
2003 inset 0 1px 0 rgba(255,255,255,0.22),
2004 0 0 0 3px rgba(140,109,255,0.35);
2005 }
2ce1d0bClaude2006
2007 .btn-danger {
2008 background: transparent;
958d26aClaude2009 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2010 color: var(--red);
2011 }
2012 .btn-danger:hover {
958d26aClaude2013 background: rgba(248,113,113,0.08);
2ce1d0bClaude2014 border-color: var(--red);
958d26aClaude2015 color: var(--red);
dc26881CC LABS App2016 transform: translateY(-1px);
2017 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2018 }
dc26881CC LABS App2019 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2020
2021 .btn-ghost {
2022 background: transparent;
2023 border-color: transparent;
2024 color: var(--text-muted);
2025 }
2026 .btn-ghost:hover {
2027 background: var(--bg-hover);
958d26aClaude2028 color: var(--text-strong);
2ce1d0bClaude2029 border-color: var(--border);
dc26881CC LABS App2030 transform: translateY(-1px);
2031 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2032 }
2033
958d26aClaude2034 .btn-secondary {
2035 background: var(--bg-elevated);
2036 border-color: var(--border-strong);
2037 color: var(--text-strong);
2038 }
2039 .btn-secondary:hover {
2040 background: var(--bg-surface);
2041 border-color: var(--border-strong);
dc26881CC LABS App2042 transform: translateY(-1px);
2043 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2044 }
2045
2046 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2047 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2048 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2049 .btn-block { width: 100%; }
2ce1d0bClaude2050
dc26881CC LABS App2051 /* U2 — disabled never lifts, never shimmers, never glows. */
2052 .btn:disabled,
2053 .btn[aria-disabled='true'],
2054 .btn:disabled:hover,
2055 .btn[aria-disabled='true']:hover {
2056 opacity: 0.5;
2ce1d0bClaude2057 cursor: not-allowed;
2058 pointer-events: none;
dc26881CC LABS App2059 transform: none;
2060 box-shadow: none;
2061 }
2062 @media (prefers-reduced-motion: reduce) {
2063 .btn,
2064 .btn:hover,
2065 .btn:active,
2066 .btn-primary,
2067 .btn-primary:hover {
2068 transform: none;
2069 transition: background-color 80ms linear, color 80ms linear;
2070 }
2ce1d0bClaude2071 }
2072
2073 /* ============================================================ */
2074 /* Forms */
2075 /* ============================================================ */
2076 .form-group { margin-bottom: 20px; }
2077 .form-group label {
2078 display: block;
2079 font-size: var(--t-sm);
2080 font-weight: 500;
2081 margin-bottom: 6px;
2082 color: var(--text);
2083 letter-spacing: -0.005em;
2084 }
2085 .form-group input,
2086 .form-group textarea,
2087 .form-group select,
2088 input[type='text'], input[type='email'], input[type='password'],
2089 input[type='url'], input[type='search'], input[type='number'],
2090 textarea, select {
06d5ffeClaude2091 width: 100%;
2ce1d0bClaude2092 padding: 9px 12px;
2093 background: var(--bg-secondary);
06d5ffeClaude2094 border: 1px solid var(--border);
2ce1d0bClaude2095 border-radius: var(--r-sm);
06d5ffeClaude2096 color: var(--text);
2ce1d0bClaude2097 font-size: var(--t-sm);
06d5ffeClaude2098 font-family: var(--font-sans);
2ce1d0bClaude2099 transition:
2100 border-color var(--t-fast) var(--ease),
2101 background var(--t-fast) var(--ease),
2102 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2103 }
2ce1d0bClaude2104 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2105 color: var(--text-faint);
06d5ffeClaude2106 }
2ce1d0bClaude2107 .form-group input:hover, textarea:hover, select:hover,
2108 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2109 border-color: var(--border-strong);
2110 }
2111 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2112 input:focus, textarea:focus, select:focus {
06d5ffeClaude2113 outline: none;
2ce1d0bClaude2114 background: var(--bg);
2115 border-color: var(--border-focus);
2116 box-shadow: var(--ring);
06d5ffeClaude2117 }
2ce1d0bClaude2118 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2119 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2120
2ce1d0bClaude2121 /* ============================================================ */
2122 /* Auth (register / login / verify) */
2123 /* ============================================================ */
2124 .auth-container {
98f45b4Claude2125 /* 2026 polish — wider, more generous, with a subtle accent-glow
2126 border and gradient top-edge so it reads as a premium product
2127 gateway, not a stock form. The 480px width feels intentional
2128 (not cramped, not endless). */
2129 max-width: 480px;
2130 margin: 72px auto;
2131 padding: 40px 40px 36px;
2ce1d0bClaude2132 background: var(--bg-elevated);
2133 border: 1px solid var(--border);
98f45b4Claude2134 border-radius: 16px;
2135 box-shadow:
2136 var(--elev-2),
2137 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2138 position: relative;
2139 overflow: hidden;
2140 }
2141 .auth-container::before {
2142 /* Hairline gradient accent on the top edge — signals 'AI-native'
2143 without shouting. Pointer-events disabled so it never interferes
2144 with form interactions. */
2145 content: '';
2146 position: absolute;
2147 top: 0;
2148 left: 0;
2149 right: 0;
2150 height: 2px;
2151 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2152 opacity: 0.7;
2153 pointer-events: none;
2ce1d0bClaude2154 }
2155 .auth-container h2 {
98f45b4Claude2156 margin: 0 0 8px;
2157 font-size: 28px;
2158 font-weight: 700;
2159 font-family: var(--font-display);
2160 letter-spacing: -0.025em;
2161 color: var(--text-strong);
2162 line-height: 1.15;
2163 }
2164 .auth-container .auth-subtitle {
2165 color: var(--text-muted);
2166 font-size: 14.5px;
2167 line-height: 1.5;
2168 margin: 0 0 24px;
2ce1d0bClaude2169 }
2170 .auth-container > p {
2171 color: var(--text-muted);
2172 font-size: var(--t-sm);
2173 margin-bottom: 24px;
2174 }
98f45b4Claude2175 .auth-container .btn-primary {
2176 width: 100%;
2177 padding: 12px 16px;
2178 font-size: 15px;
2179 font-weight: 600;
2180 margin-top: 4px;
2181 }
582cdacClaude2182
2183 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2184 with a brand-coloured logo on the left and a label centred-trailing.
2185 Hover lifts 1px with a subtle shadow — matches the rest of the
2186 button system but reads as a brand-affiliated action, not a brand-
2187 coloured primary CTA. */
2188 .auth-container .oauth-btn {
2189 display: flex;
2190 align-items: center;
2191 justify-content: center;
2192 gap: 10px;
2193 width: 100%;
2194 padding: 11px 16px;
2195 background: var(--bg-surface, var(--bg-elevated));
2196 border: 1px solid var(--border);
2197 border-radius: var(--r-md, 8px);
2198 color: var(--text-strong);
2199 font-family: var(--font-sans);
2200 font-size: 14.5px;
2201 font-weight: 500;
2202 text-decoration: none;
2203 transition:
2204 transform var(--t-base, 180ms) var(--ease, ease),
2205 box-shadow var(--t-base, 180ms) var(--ease, ease),
2206 background var(--t-fast, 120ms) var(--ease, ease),
2207 border-color var(--t-fast, 120ms) var(--ease, ease);
2208 }
2209 .auth-container .oauth-btn:hover {
2210 transform: translateY(-1px);
2211 background: var(--bg-hover);
2212 border-color: var(--text-muted);
2213 color: var(--text-strong);
2214 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2215 text-decoration: none;
2216 }
2217 .auth-container .oauth-btn:focus-visible {
2218 outline: 2px solid rgba(140, 109, 255, 0.55);
2219 outline-offset: 2px;
2220 }
2221 .auth-container .oauth-btn .oauth-icon {
2222 flex-shrink: 0;
2223 }
2224 /* GitHub icon adopts the text colour so it reads in both themes. */
2225 .auth-container .oauth-github .oauth-icon {
2226 color: var(--text-strong);
2227 }
2228 /* Google logo uses the official 4-colour treatment via inline SVG fill
2229 attributes — nothing to override here. */
2230 /* "or" divider between the password form and provider buttons */
2231 .auth-container .auth-divider {
2232 display: flex;
2233 align-items: center;
2234 gap: 12px;
2235 margin: 20px 0 12px;
2236 color: var(--text-faint);
2237 font-size: 12px;
2238 letter-spacing: 0.08em;
2239 text-transform: uppercase;
2240 }
2241 .auth-container .auth-divider::before,
2242 .auth-container .auth-divider::after {
2243 content: '';
2244 flex: 1;
2245 height: 1px;
2246 background: var(--border);
2247 }
06d5ffeClaude2248 .auth-error {
958d26aClaude2249 background: rgba(248,113,113,0.08);
2250 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2251 color: var(--red);
2ce1d0bClaude2252 padding: 10px 14px;
2253 border-radius: var(--r-sm);
06d5ffeClaude2254 margin-bottom: 16px;
2ce1d0bClaude2255 font-size: var(--t-sm);
06d5ffeClaude2256 }
2257 .auth-success {
958d26aClaude2258 background: rgba(52,211,153,0.08);
2259 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2260 color: var(--green);
2ce1d0bClaude2261 padding: 10px 14px;
2262 border-radius: var(--r-sm);
06d5ffeClaude2263 margin-bottom: 16px;
2ce1d0bClaude2264 font-size: var(--t-sm);
2265 }
2266 .auth-switch {
2267 margin-top: 20px;
2268 font-size: var(--t-sm);
2269 color: var(--text-muted);
2270 text-align: center;
2271 }
2272 .banner {
2273 background: var(--accent-gradient-faint);
958d26aClaude2274 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2275 color: var(--text);
2276 padding: 10px 14px;
2277 border-radius: var(--r-sm);
2278 font-size: var(--t-sm);
06d5ffeClaude2279 }
2280
2ce1d0bClaude2281 /* ============================================================ */
2282 /* Settings */
2283 /* ============================================================ */
2284 .settings-container { max-width: 720px; }
2285 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2286 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2287 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2288 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2289 .ssh-keys-list { margin-bottom: 24px; }
2290 .ssh-key-item {
2291 display: flex;
2292 justify-content: space-between;
2293 align-items: center;
2ce1d0bClaude2294 padding: 14px 16px;
06d5ffeClaude2295 border: 1px solid var(--border);
2ce1d0bClaude2296 border-radius: var(--r-md);
06d5ffeClaude2297 margin-bottom: 8px;
2ce1d0bClaude2298 background: var(--bg-elevated);
2299 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2300 }
2ce1d0bClaude2301 .ssh-key-item:hover { border-color: var(--border-strong); }
2302 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2303 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2304
2ce1d0bClaude2305 /* ============================================================ */
2306 /* Repo header + nav */
2307 /* ============================================================ */
fc1817aClaude2308 .repo-header {
2309 display: flex;
2310 align-items: center;
debcf27Claude2311 gap: 12px;
2312 margin-bottom: 22px;
2313 }
2314 .repo-header-title {
2315 display: flex;
2316 align-items: center;
2317 gap: 10px;
2318 font-family: var(--font-display);
2319 font-size: 24px;
2320 letter-spacing: -0.025em;
2321 flex-wrap: wrap;
2322 }
2323 .repo-header .owner {
2324 color: var(--text-muted);
2325 font-weight: 500;
2326 transition: color var(--t-fast) var(--ease);
2327 }
2328 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2329 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2330 .repo-header .name {
2331 color: var(--text-strong);
2332 font-weight: 700;
2333 letter-spacing: -0.028em;
fc1817aClaude2334 }
2ce1d0bClaude2335 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2336 .repo-header-fork {
2337 font-family: var(--font-mono);
2338 font-size: 11px;
2339 color: var(--text-muted);
2340 margin-top: 4px;
2341 letter-spacing: 0.01em;
2342 }
2343 .repo-header-fork a { color: var(--text-muted); }
2344 .repo-header-fork a:hover { color: var(--accent); }
2345 .repo-header-pill {
2346 display: inline-flex;
2347 align-items: center;
2348 padding: 2px 10px;
2349 border-radius: var(--r-full);
2350 font-family: var(--font-mono);
2351 font-size: 10px;
2352 font-weight: 600;
2353 letter-spacing: 0.12em;
2354 text-transform: uppercase;
2355 line-height: 1.6;
2356 vertical-align: 4px;
2357 }
2358 .repo-header-pill-archived {
2359 background: rgba(251,191,36,0.10);
2360 color: var(--yellow);
2361 border: 1px solid rgba(251,191,36,0.30);
2362 }
2363 .repo-header-pill-template {
2364 background: var(--accent-gradient-faint);
2365 color: var(--accent);
2366 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2367 }
06d5ffeClaude2368 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2369
8c790e0Claude2370 /* Push Watch discoverability — live/recent indicator in the repo header */
2371 @keyframes pushWatchPulse {
2372 0%, 100% { opacity: 1; }
2373 50% { opacity: 0.3; }
2374 }
2375 .repo-header-live-badge {
2376 display: inline-flex;
2377 align-items: center;
2378 gap: 5px;
2379 padding: 2px 9px;
2380 border-radius: 999px;
2381 font-size: 12px;
2382 font-weight: 600;
2383 letter-spacing: 0.02em;
2384 text-decoration: none !important;
2385 vertical-align: 3px;
2386 transition: filter 140ms ease, opacity 140ms ease;
2387 }
2388 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2389 .repo-header-live-badge--live {
2390 background: rgba(218, 54, 51, 0.12);
2391 color: #f97171;
2392 border: 1px solid rgba(218, 54, 51, 0.35);
2393 }
2394 .repo-header-live-badge--live .repo-header-live-dot {
2395 animation: pushWatchPulse 1.2s ease-in-out infinite;
2396 display: inline-block;
2397 }
2398 .repo-header-live-badge--recent {
2399 background: rgba(140, 109, 255, 0.08);
2400 color: var(--text-muted);
2401 border: 1px solid rgba(140, 109, 255, 0.22);
2402 }
2403 .repo-header-live-badge--recent:hover { color: var(--accent); }
2404 @media (prefers-reduced-motion: reduce) {
2405 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2406 }
2407
fc1817aClaude2408 .repo-nav {
2409 display: flex;
debcf27Claude2410 gap: 1px;
fc1817aClaude2411 border-bottom: 1px solid var(--border);
debcf27Claude2412 margin-bottom: 28px;
2ce1d0bClaude2413 overflow-x: auto;
2414 scrollbar-width: thin;
fc1817aClaude2415 }
2ce1d0bClaude2416 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2417 .repo-nav a {
debcf27Claude2418 position: relative;
2419 padding: 11px 14px;
fc1817aClaude2420 color: var(--text-muted);
2421 border-bottom: 2px solid transparent;
2ce1d0bClaude2422 font-size: var(--t-sm);
2423 font-weight: 500;
2424 margin-bottom: -1px;
debcf27Claude2425 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2426 white-space: nowrap;
2427 }
debcf27Claude2428 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2429 .repo-nav a.active {
debcf27Claude2430 color: var(--text-strong);
2431 font-weight: 600;
2432 }
2433 .repo-nav a.active::after {
2434 content: '';
2435 position: absolute;
2436 left: 14px;
2437 right: 14px;
2438 bottom: -1px;
2439 height: 2px;
2440 background: var(--accent-gradient);
2441 border-radius: 2px;
2442 }
2443 /* AI links in the right-side cluster — sparkle accent */
2444 .repo-nav-ai {
2445 color: var(--accent) !important;
2446 font-weight: 500;
2447 }
2448 .repo-nav-ai:hover {
2449 color: var(--accent-hover) !important;
2450 background: var(--accent-gradient-faint) !important;
2451 }
2452 .repo-nav-ai.active {
2453 color: var(--accent-hover) !important;
2ce1d0bClaude2454 font-weight: 600;
fc1817aClaude2455 }
2456
2ce1d0bClaude2457 .breadcrumb {
2458 display: flex;
debcf27Claude2459 gap: 6px;
2ce1d0bClaude2460 align-items: center;
debcf27Claude2461 margin-bottom: 18px;
2ce1d0bClaude2462 color: var(--text-muted);
2463 font-size: var(--t-sm);
2464 font-family: var(--font-mono);
debcf27Claude2465 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2466 }
2467 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2468 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2469 .breadcrumb strong {
2470 color: var(--text-strong);
2471 font-weight: 600;
fc1817aClaude2472 }
2473
debcf27Claude2474 /* Page header — eyebrow + title + optional actions row.
2475 Use on dashboard, settings, admin, any "section landing" page. */
2476 .page-header {
2477 display: flex;
2478 align-items: flex-end;
2479 justify-content: space-between;
2480 gap: 16px;
2481 margin-bottom: 28px;
2482 padding-bottom: 20px;
2483 border-bottom: 1px solid var(--border-subtle);
2484 flex-wrap: wrap;
2485 }
2486 .page-header-text { flex: 1; min-width: 280px; }
2487 .page-header .eyebrow { margin-bottom: var(--s-2); }
2488 .page-header h1 {
2489 font-family: var(--font-display);
2490 font-size: clamp(24px, 3vw, 36px);
2491 line-height: 1.1;
2492 letter-spacing: -0.028em;
2493 margin-bottom: 6px;
2494 }
2495 .page-header p {
2496 color: var(--text-muted);
2497 font-size: var(--t-sm);
2498 line-height: 1.55;
2499 max-width: 640px;
2500 }
2501 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2502
2ce1d0bClaude2503 /* ============================================================ */
2504 /* File browser table */
2505 /* ============================================================ */
2506 .file-table {
2507 width: 100%;
2508 border: 1px solid var(--border);
2509 border-radius: var(--r-md);
2510 overflow: hidden;
2511 background: var(--bg-elevated);
debcf27Claude2512 border-collapse: collapse;
2ce1d0bClaude2513 }
debcf27Claude2514 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2515 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2516 .file-table td {
2517 padding: 9px 16px;
2518 font-size: var(--t-sm);
2519 font-family: var(--font-mono);
2520 font-feature-settings: var(--mono-feat);
2521 }
2ce1d0bClaude2522 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2523 .file-icon {
2524 width: 22px;
2525 color: var(--text-faint);
2526 font-size: 13px;
2527 text-align: center;
2528 }
2529 .file-name a {
2530 color: var(--text);
2531 font-weight: 500;
2532 transition: color var(--t-fast) var(--ease);
2533 }
2534 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2535
2ce1d0bClaude2536 /* ============================================================ */
2537 /* Blob view */
2538 /* ============================================================ */
fc1817aClaude2539 .blob-view {
2540 border: 1px solid var(--border);
2ce1d0bClaude2541 border-radius: var(--r-md);
fc1817aClaude2542 overflow: hidden;
2ce1d0bClaude2543 background: var(--bg-elevated);
fc1817aClaude2544 }
2545 .blob-header {
2546 background: var(--bg-secondary);
2ce1d0bClaude2547 padding: 10px 16px;
fc1817aClaude2548 border-bottom: 1px solid var(--border);
2ce1d0bClaude2549 font-size: var(--t-sm);
fc1817aClaude2550 color: var(--text-muted);
06d5ffeClaude2551 display: flex;
2552 justify-content: space-between;
2553 align-items: center;
fc1817aClaude2554 }
2555 .blob-code {
2556 overflow-x: auto;
2557 font-family: var(--font-mono);
2ce1d0bClaude2558 font-size: var(--t-sm);
2559 line-height: 1.65;
fc1817aClaude2560 }
2561 .blob-code table { width: 100%; border-collapse: collapse; }
2562 .blob-code .line-num {
2563 width: 1%;
2ce1d0bClaude2564 min-width: 56px;
2565 padding: 0 14px;
fc1817aClaude2566 text-align: right;
2ce1d0bClaude2567 color: var(--text-faint);
fc1817aClaude2568 user-select: none;
2569 white-space: nowrap;
2570 border-right: 1px solid var(--border);
2571 }
2ce1d0bClaude2572 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2573 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2574
2ce1d0bClaude2575 /* ============================================================ */
2576 /* Commits + diffs */
2577 /* ============================================================ */
2578 .commit-list {
2579 border: 1px solid var(--border);
2580 border-radius: var(--r-md);
2581 overflow: hidden;
2582 background: var(--bg-elevated);
2583 }
fc1817aClaude2584 .commit-item {
2585 display: flex;
2586 justify-content: space-between;
2587 align-items: center;
debcf27Claude2588 padding: 14px 18px;
2589 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2590 transition: background var(--t-fast) var(--ease);
fc1817aClaude2591 }
2592 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2593 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2594 .commit-message {
2595 font-size: var(--t-sm);
2596 font-weight: 500;
2597 line-height: 1.45;
2598 color: var(--text-strong);
2599 letter-spacing: -0.005em;
2600 }
2601 .commit-meta {
2602 font-family: var(--font-mono);
2603 font-size: 11px;
2604 color: var(--text-muted);
2605 margin-top: 5px;
2606 letter-spacing: 0.01em;
2607 }
fc1817aClaude2608 .commit-sha {
2609 font-family: var(--font-mono);
debcf27Claude2610 font-feature-settings: var(--mono-feat);
2611 font-size: 11px;
2612 padding: 4px 9px;
fc1817aClaude2613 background: var(--bg-tertiary);
2614 border: 1px solid var(--border);
2ce1d0bClaude2615 border-radius: var(--r-sm);
debcf27Claude2616 color: var(--accent);
2617 font-weight: 600;
2618 letter-spacing: 0.02em;
2ce1d0bClaude2619 transition: all var(--t-fast) var(--ease);
fc1817aClaude2620 }
debcf27Claude2621 .commit-sha:hover {
2622 border-color: rgba(140,109,255,0.40);
2623 background: var(--accent-gradient-faint);
2624 color: var(--accent-hover);
2625 text-decoration: none;
fc1817aClaude2626 }
2627
2628 .diff-view { margin-top: 16px; }
2629 .diff-file {
2630 border: 1px solid var(--border);
2ce1d0bClaude2631 border-radius: var(--r-md);
fc1817aClaude2632 margin-bottom: 16px;
2633 overflow: hidden;
2ce1d0bClaude2634 background: var(--bg-elevated);
fc1817aClaude2635 }
2636 .diff-file-header {
2637 background: var(--bg-secondary);
2ce1d0bClaude2638 padding: 10px 16px;
fc1817aClaude2639 border-bottom: 1px solid var(--border);
2640 font-family: var(--font-mono);
2ce1d0bClaude2641 font-size: var(--t-sm);
2642 font-weight: 500;
fc1817aClaude2643 }
2644 .diff-content {
2645 overflow-x: auto;
2646 font-family: var(--font-mono);
2ce1d0bClaude2647 font-size: var(--t-sm);
2648 line-height: 1.65;
fc1817aClaude2649 }
958d26aClaude2650 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2651 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2652 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2653 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2654
2655 .stat-add { color: var(--green); font-weight: 600; }
2656 .stat-del { color: var(--red); font-weight: 600; }
2657
2ce1d0bClaude2658 /* ============================================================ */
2659 /* Empty state */
2660 /* ============================================================ */
fc1817aClaude2661 .empty-state {
2662 text-align: center;
958d26aClaude2663 padding: 96px 24px;
fc1817aClaude2664 color: var(--text-muted);
2ce1d0bClaude2665 border: 1px dashed var(--border);
2666 border-radius: var(--r-lg);
958d26aClaude2667 background:
2668 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2669 var(--bg-elevated);
2670 position: relative;
2671 overflow: hidden;
2672 }
2673 .empty-state::before {
2674 content: '';
2675 position: absolute;
2676 inset: 0;
2677 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2678 background-size: 24px 24px;
2679 opacity: 0.5;
2680 pointer-events: none;
2681 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2682 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2683 }
2684 :root[data-theme='light'] .empty-state::before {
2685 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2686 }
958d26aClaude2687 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2688 .empty-state h2 {
958d26aClaude2689 font-size: var(--t-xl);
2ce1d0bClaude2690 margin-bottom: 8px;
958d26aClaude2691 color: var(--text-strong);
2692 letter-spacing: -0.022em;
2ce1d0bClaude2693 }
958d26aClaude2694 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2695 .empty-state pre {
2696 text-align: left;
2697 display: inline-block;
2698 background: var(--bg-secondary);
958d26aClaude2699 padding: 18px 24px;
2700 border-radius: var(--r-md);
fc1817aClaude2701 border: 1px solid var(--border);
2702 font-family: var(--font-mono);
958d26aClaude2703 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2704 font-size: var(--t-sm);
958d26aClaude2705 margin-top: 24px;
fc1817aClaude2706 line-height: 1.8;
2ce1d0bClaude2707 color: var(--text);
958d26aClaude2708 box-shadow: var(--elev-1);
fc1817aClaude2709 }
2710
2ce1d0bClaude2711 /* ============================================================ */
2712 /* Badges */
2713 /* ============================================================ */
fc1817aClaude2714 .badge {
2ce1d0bClaude2715 display: inline-flex;
2716 align-items: center;
2717 gap: 4px;
2718 padding: 2px 9px;
2719 border-radius: var(--r-full);
2720 font-size: var(--t-xs);
fc1817aClaude2721 font-weight: 500;
2722 background: var(--bg-tertiary);
2723 border: 1px solid var(--border);
2724 color: var(--text-muted);
2ce1d0bClaude2725 line-height: 1.5;
fc1817aClaude2726 }
2727
2ce1d0bClaude2728 /* ============================================================ */
2729 /* Branch dropdown */
2730 /* ============================================================ */
fc1817aClaude2731 .branch-selector {
2732 display: inline-flex;
2733 align-items: center;
2ce1d0bClaude2734 gap: 6px;
2735 padding: 6px 12px;
2736 background: var(--bg-elevated);
fc1817aClaude2737 border: 1px solid var(--border);
2ce1d0bClaude2738 border-radius: var(--r-sm);
2739 font-size: var(--t-sm);
fc1817aClaude2740 color: var(--text);
2741 margin-bottom: 12px;
2ce1d0bClaude2742 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2743 }
2ce1d0bClaude2744 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2745
06d5ffeClaude2746 .branch-dropdown {
2747 position: relative;
2748 display: inline-block;
2749 margin-bottom: 12px;
2750 }
2751 .branch-dropdown-content {
2752 display: none;
2753 position: absolute;
2ce1d0bClaude2754 top: calc(100% + 4px);
06d5ffeClaude2755 left: 0;
2756 z-index: 10;
2ce1d0bClaude2757 min-width: 220px;
2758 background: var(--bg-elevated);
2759 border: 1px solid var(--border-strong);
2760 border-radius: var(--r-md);
2761 overflow: hidden;
2762 box-shadow: var(--elev-3);
06d5ffeClaude2763 }
2764 .branch-dropdown:hover .branch-dropdown-content,
2765 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2766 .branch-dropdown-content a {
2767 display: block;
2ce1d0bClaude2768 padding: 9px 14px;
2769 font-size: var(--t-sm);
06d5ffeClaude2770 color: var(--text);
2771 border-bottom: 1px solid var(--border);
2ce1d0bClaude2772 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2773 }
2774 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2775 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2776 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2777
2ce1d0bClaude2778 /* ============================================================ */
2779 /* Card grid */
2780 /* ============================================================ */
2781 .card-grid {
2782 display: grid;
2783 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2784 gap: 16px;
2785 }
fc1817aClaude2786 .card {
2787 border: 1px solid var(--border);
2ce1d0bClaude2788 border-radius: var(--r-md);
958d26aClaude2789 padding: 20px;
2ce1d0bClaude2790 background: var(--bg-elevated);
2791 transition:
958d26aClaude2792 border-color var(--t-base) var(--ease),
2793 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2794 box-shadow var(--t-base) var(--ease);
2795 position: relative;
2796 overflow: hidden;
958d26aClaude2797 isolation: isolate;
2798 }
2799 .card::before {
2800 content: '';
2801 position: absolute;
2802 inset: 0;
2803 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2804 opacity: 0;
2805 transition: opacity var(--t-base) var(--ease);
2806 pointer-events: none;
2807 z-index: -1;
2ce1d0bClaude2808 }
2809 .card:hover {
2810 border-color: var(--border-strong);
2811 box-shadow: var(--elev-2);
958d26aClaude2812 transform: translateY(-2px);
2ce1d0bClaude2813 }
958d26aClaude2814 .card:hover::before { opacity: 1; }
2815 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2816 .card h3 a { color: var(--text); font-weight: 600; }
2817 .card h3 a:hover { color: var(--text-link); }
2818 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2819 .card-meta {
2820 display: flex;
2821 gap: 14px;
2822 margin-top: 14px;
2823 padding-top: 14px;
2824 border-top: 1px solid var(--border);
2825 font-size: var(--t-xs);
2826 color: var(--text-muted);
2827 }
2828 .card-meta span { display: flex; align-items: center; gap: 5px; }
2829
2830 /* ============================================================ */
2831 /* Stat card / box */
2832 /* ============================================================ */
2833 .stat-card {
2834 background: var(--bg-elevated);
2835 border: 1px solid var(--border);
2836 border-radius: var(--r-md);
fc1817aClaude2837 padding: 16px;
2ce1d0bClaude2838 transition: border-color var(--t-fast) var(--ease);
2839 }
2840 .stat-card:hover { border-color: var(--border-strong); }
2841 .stat-label {
2842 font-size: var(--t-xs);
2843 color: var(--text-muted);
2844 text-transform: uppercase;
2845 letter-spacing: 0.06em;
2846 font-weight: 500;
2847 }
2848 .stat-value {
2849 font-size: var(--t-xl);
2850 font-weight: 700;
2851 margin-top: 4px;
2852 letter-spacing: -0.025em;
2853 color: var(--text);
2854 font-feature-settings: 'tnum';
fc1817aClaude2855 }
06d5ffeClaude2856
2ce1d0bClaude2857 /* ============================================================ */
2858 /* Star button */
2859 /* ============================================================ */
06d5ffeClaude2860 .star-btn {
2861 display: inline-flex;
2862 align-items: center;
2863 gap: 6px;
2ce1d0bClaude2864 padding: 5px 12px;
2865 background: var(--bg-elevated);
06d5ffeClaude2866 border: 1px solid var(--border);
2ce1d0bClaude2867 border-radius: var(--r-sm);
06d5ffeClaude2868 color: var(--text);
2ce1d0bClaude2869 font-size: var(--t-sm);
2870 font-weight: 500;
06d5ffeClaude2871 cursor: pointer;
2ce1d0bClaude2872 transition: all var(--t-fast) var(--ease);
2873 }
2874 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2875 .star-btn.starred {
2876 color: var(--yellow);
958d26aClaude2877 border-color: rgba(251,191,36,0.4);
2878 background: rgba(251,191,36,0.08);
06d5ffeClaude2879 }
2880
2ce1d0bClaude2881 /* ============================================================ */
2882 /* User profile */
2883 /* ============================================================ */
06d5ffeClaude2884 .user-profile {
2885 display: flex;
2886 gap: 32px;
2887 margin-bottom: 32px;
2ce1d0bClaude2888 padding: 24px;
2889 background: var(--bg-elevated);
2890 border: 1px solid var(--border);
2891 border-radius: var(--r-lg);
06d5ffeClaude2892 }
2893 .user-avatar {
2894 width: 96px;
2895 height: 96px;
2ce1d0bClaude2896 border-radius: var(--r-full);
2897 background: var(--accent-gradient-soft);
2898 border: 1px solid var(--border-strong);
06d5ffeClaude2899 display: flex;
2900 align-items: center;
2901 justify-content: center;
2ce1d0bClaude2902 font-size: 36px;
2903 font-weight: 600;
2904 color: var(--text);
06d5ffeClaude2905 flex-shrink: 0;
2ce1d0bClaude2906 letter-spacing: -0.02em;
06d5ffeClaude2907 }
2ce1d0bClaude2908 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2909 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2910 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2911
2ce1d0bClaude2912 /* ============================================================ */
2913 /* New repo form */
2914 /* ============================================================ */
2915 .new-repo-form { max-width: 640px; }
2916 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2917 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2918 .visibility-option {
2919 flex: 1;
2ce1d0bClaude2920 padding: 16px;
06d5ffeClaude2921 border: 1px solid var(--border);
2ce1d0bClaude2922 border-radius: var(--r-md);
2923 background: var(--bg-elevated);
06d5ffeClaude2924 cursor: pointer;
2ce1d0bClaude2925 text-align: left;
2926 transition: all var(--t-fast) var(--ease);
2927 }
2928 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2929 .visibility-option:has(input:checked) {
2930 border-color: var(--accent);
2931 background: var(--accent-gradient-faint);
2932 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2933 }
2934 .visibility-option input { display: none; }
2ce1d0bClaude2935 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2936 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2937
2ce1d0bClaude2938 /* ============================================================ */
2939 /* Issues */
2940 /* ============================================================ */
2941 .issue-tabs { display: flex; gap: 4px; }
2942 .issue-tabs a {
2943 color: var(--text-muted);
2944 font-size: var(--t-sm);
2945 font-weight: 500;
2946 padding: 6px 12px;
2947 border-radius: var(--r-sm);
2948 transition: all var(--t-fast) var(--ease);
2949 }
2950 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2951 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2952
2ce1d0bClaude2953 .issue-list {
2954 border: 1px solid var(--border);
2955 border-radius: var(--r-md);
2956 overflow: hidden;
2957 background: var(--bg-elevated);
2958 }
79136bbClaude2959 .issue-item {
2960 display: flex;
2ce1d0bClaude2961 gap: 14px;
79136bbClaude2962 align-items: flex-start;
2ce1d0bClaude2963 padding: 14px 16px;
79136bbClaude2964 border-bottom: 1px solid var(--border);
2ce1d0bClaude2965 transition: background var(--t-fast) var(--ease);
79136bbClaude2966 }
2967 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2968 .issue-item:hover { background: var(--bg-hover); }
2969 .issue-state-icon {
2970 font-size: 14px;
2971 padding-top: 2px;
2972 width: 18px;
2973 height: 18px;
2974 display: inline-flex;
2975 align-items: center;
2976 justify-content: center;
2977 border-radius: var(--r-full);
2978 flex-shrink: 0;
2979 }
79136bbClaude2980 .state-open { color: var(--green); }
958d26aClaude2981 .state-closed { color: #b69dff; }
2ce1d0bClaude2982 .issue-title {
debcf27Claude2983 font-family: var(--font-display);
2984 font-size: var(--t-md);
2ce1d0bClaude2985 font-weight: 600;
debcf27Claude2986 line-height: 1.35;
2987 letter-spacing: -0.012em;
2988 }
2989 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2990 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2991 .issue-meta {
2992 font-family: var(--font-mono);
2993 font-size: 11px;
2994 color: var(--text-muted);
2995 margin-top: 5px;
2996 letter-spacing: 0.01em;
2ce1d0bClaude2997 }
79136bbClaude2998
2999 .issue-badge {
3000 display: inline-flex;
3001 align-items: center;
2ce1d0bClaude3002 gap: 6px;
79136bbClaude3003 padding: 4px 12px;
2ce1d0bClaude3004 border-radius: var(--r-full);
3005 font-size: var(--t-sm);
79136bbClaude3006 font-weight: 500;
2ce1d0bClaude3007 line-height: 1.4;
79136bbClaude3008 }
958d26aClaude3009 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3010 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3011 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3012 .state-merged { color: var(--accent); }
958d26aClaude3013 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3014
2ce1d0bClaude3015 .issue-detail { max-width: 920px; }
79136bbClaude3016 .issue-comment-box {
3017 border: 1px solid var(--border);
2ce1d0bClaude3018 border-radius: var(--r-md);
79136bbClaude3019 margin-bottom: 16px;
3020 overflow: hidden;
2ce1d0bClaude3021 background: var(--bg-elevated);
79136bbClaude3022 }
3023 .comment-header {
3024 background: var(--bg-secondary);
2ce1d0bClaude3025 padding: 10px 16px;
79136bbClaude3026 border-bottom: 1px solid var(--border);
2ce1d0bClaude3027 font-size: var(--t-sm);
79136bbClaude3028 color: var(--text-muted);
3029 }
3030
2ce1d0bClaude3031 /* ============================================================ */
3032 /* Panel — flexible container used across many pages */
3033 /* ============================================================ */
3034 .panel {
3035 background: var(--bg-elevated);
3036 border: 1px solid var(--border);
3037 border-radius: var(--r-md);
3038 overflow: hidden;
3039 }
3040 .panel-item {
3041 display: flex;
3042 align-items: center;
3043 gap: 12px;
3044 padding: 12px 16px;
79136bbClaude3045 border-bottom: 1px solid var(--border);
2ce1d0bClaude3046 transition: background var(--t-fast) var(--ease);
3047 }
3048 .panel-item:last-child { border-bottom: none; }
3049 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3050
3051 /* ─── j/k keyboard list navigation ─── */
3052 .is-kbd-focus {
3053 outline: 2px solid rgba(140,109,255,0.6) !important;
3054 outline-offset: -2px;
3055 background: rgba(140,109,255,0.06) !important;
3056 border-radius: 4px;
3057 }
3058 .is-kbd-selected {
3059 outline: 2px solid rgba(52,211,153,0.6) !important;
3060 background: rgba(52,211,153,0.06) !important;
3061 }
2ce1d0bClaude3062 .panel-empty {
3063 padding: 24px;
3064 text-align: center;
79136bbClaude3065 color: var(--text-muted);
2ce1d0bClaude3066 font-size: var(--t-sm);
79136bbClaude3067 }
3068
2ce1d0bClaude3069 /* ============================================================ */
3070 /* Search */
3071 /* ============================================================ */
79136bbClaude3072 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3073
2ce1d0bClaude3074 /* ============================================================ */
3075 /* Timeline */
3076 /* ============================================================ */
3077 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3078 .timeline::before {
3079 content: '';
3080 position: absolute;
3081 left: 4px;
3082 top: 8px;
3083 bottom: 8px;
3084 width: 2px;
2ce1d0bClaude3085 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3086 }
2ce1d0bClaude3087 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3088 .timeline-dot {
3089 position: absolute;
2ce1d0bClaude3090 left: -28px;
3091 top: 8px;
3092 width: 12px;
3093 height: 12px;
3094 border-radius: var(--r-full);
3095 background: var(--accent-gradient);
16b325cClaude3096 border: 2px solid var(--bg);
2ce1d0bClaude3097 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3098 }
3099 .timeline-content {
2ce1d0bClaude3100 background: var(--bg-elevated);
16b325cClaude3101 border: 1px solid var(--border);
2ce1d0bClaude3102 border-radius: var(--r-md);
3103 padding: 14px 16px;
16b325cClaude3104 }
f1ab587Claude3105
2ce1d0bClaude3106 /* ============================================================ */
3107 /* Toggle switch */
3108 /* ============================================================ */
f1ab587Claude3109 .toggle-switch {
3110 position: relative;
3111 display: inline-block;
2ce1d0bClaude3112 width: 40px;
3113 height: 22px;
f1ab587Claude3114 flex-shrink: 0;
3115 margin-left: 16px;
3116 }
3117 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3118 .toggle-slider {
3119 position: absolute;
3120 cursor: pointer;
3121 top: 0; left: 0; right: 0; bottom: 0;
3122 background: var(--bg-tertiary);
3123 border: 1px solid var(--border);
2ce1d0bClaude3124 border-radius: var(--r-full);
3125 transition: all var(--t-base) var(--ease);
f1ab587Claude3126 }
3127 .toggle-slider::before {
3128 content: '';
3129 position: absolute;
2ce1d0bClaude3130 height: 16px;
3131 width: 16px;
f1ab587Claude3132 left: 2px;
3133 bottom: 2px;
3134 background: var(--text-muted);
2ce1d0bClaude3135 border-radius: var(--r-full);
3136 transition: all var(--t-base) var(--ease);
f1ab587Claude3137 }
3138 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3139 background: var(--accent-gradient);
3140 border-color: transparent;
958d26aClaude3141 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3142 }
3143 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3144 transform: translateX(18px);
f1ab587Claude3145 background: #fff;
3146 }
ef8d378Claude3147
3148 /* ============================================================
3149 * 2026 polish layer (purely additive — no layout changes).
3150 * Improves typography rendering, focus states, hover affordances,
3151 * and adds the gradient brand cue to primary buttons. Anything
3152 * that could alter dimensions stays in the rules above.
3153 * ============================================================ */
3154 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3155 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3156 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3157
3158 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3159 h1 { letter-spacing: -0.025em; }
3160
3161 /* Smoother colour transitions everywhere links live */
3162 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3163
3164 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3165 .btn {
3166 transition:
3167 background 120ms cubic-bezier(0.16,1,0.3,1),
3168 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3169 transform 120ms cubic-bezier(0.16,1,0.3,1),
3170 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3171 }
3172 .btn:active { transform: translateY(0.5px); }
3173 .btn:focus-visible {
3174 outline: none;
3175 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3176 }
3177 .btn-primary {
3178 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3179 border-color: transparent;
3180 box-shadow:
3181 inset 0 1px 0 rgba(255,255,255,0.15),
3182 0 1px 2px rgba(168,85,247,0.25);
3183 }
3184 .btn-primary:hover {
3185 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3186 filter: none;
3187 box-shadow:
3188 inset 0 1px 0 rgba(255,255,255,0.20),
3189 0 4px 12px rgba(168,85,247,0.30);
3190 }
3191
3192 /* Inputs: cleaner focus ring + hover */
3193 .form-group input:hover,
3194 .form-group textarea:hover,
3195 .form-group select:hover {
3196 border-color: rgba(255,255,255,0.14);
3197 }
3198 .form-group input:focus,
3199 .form-group textarea:focus,
3200 .form-group select:focus {
3201 border-color: rgba(168,85,247,0.55);
3202 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3203 }
3204 :root[data-theme='light'] .form-group input:hover,
3205 :root[data-theme='light'] .form-group textarea:hover,
3206 :root[data-theme='light'] .form-group select:hover {
3207 border-color: rgba(0,0,0,0.18);
3208 }
3209
3210 /* Cards: subtle hover lift */
3211 .card {
3212 transition:
3213 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3214 transform 160ms cubic-bezier(0.16,1,0.3,1),
3215 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3216 }
3217 .card:hover {
3218 border-color: rgba(255,255,255,0.18);
3219 transform: translateY(-1px);
3220 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3221 }
3222 :root[data-theme='light'] .card:hover {
3223 border-color: rgba(0,0,0,0.18);
3224 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3225 }
3226
3227 /* Issue / commit / panel rows: smoother hover */
3228 .issue-item, .commit-item {
3229 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3230 }
3231 .repo-nav a {
3232 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3233 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3234 }
3235 .nav-link {
3236 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3237 }
3238
3239 /* Auth card: subtle elevation so register/login feel premium */
3240 .auth-container {
3241 background: var(--bg-secondary);
3242 border: 1px solid var(--border);
3243 border-radius: var(--r-lg, 12px);
3244 padding: 32px;
3245 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3246 }
3247 :root[data-theme='light'] .auth-container {
3248 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3249 }
3250 .auth-container h2 { letter-spacing: -0.025em; }
3251
3252 /* Empty state: dashed border, generous padding */
3253 .empty-state {
3254 border: 1px dashed var(--border);
3255 border-radius: var(--r-lg, 12px);
3256 background: var(--bg);
3257 }
3258
3259 /* Badges + commit-sha: smoother transition */
3260 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3261
3262 /* Gradient text utility — matches landing's accent treatment */
3263 .gradient-text {
3264 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3265 -webkit-background-clip: text;
3266 background-clip: text;
3267 -webkit-text-fill-color: transparent;
3268 }
3269
3270 /* Custom scrollbars (subtle, themed) */
3271 ::-webkit-scrollbar { width: 10px; height: 10px; }
3272 ::-webkit-scrollbar-track { background: transparent; }
3273 ::-webkit-scrollbar-thumb {
3274 background: rgba(255,255,255,0.06);
3275 border: 2px solid var(--bg);
3276 border-radius: 9999px;
3277 }
3278 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3279 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3280 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3281
3282 /* Honour reduced-motion preference */
3283 @media (prefers-reduced-motion: reduce) {
3284 *, *::before, *::after {
3285 animation-duration: 0.01ms !important;
3286 animation-iteration-count: 1 !important;
3287 transition-duration: 0.01ms !important;
3288 }
3289 }
c63b860Claude3290
3291 /* Block O3 — visual coherence additive rules. */
3292 .card.card-p-none { padding: 0; }
3293 .card.card-p-sm { padding: var(--space-3); }
3294 .card.card-p-md { padding: var(--space-4); }
3295 .card.card-p-lg { padding: var(--space-6); }
3296 .card.card-elevated { box-shadow: var(--elev-2); }
3297 .card.card-gradient {
3298 background:
3299 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3300 var(--bg-elevated);
3301 }
3302 .card.card-gradient::before { opacity: 1; }
3303 .notice {
3304 padding: var(--space-3) var(--space-4);
3305 border-radius: var(--radius-md);
3306 border: 1px solid var(--border);
3307 background: var(--bg-elevated);
3308 color: var(--text);
3309 font-size: var(--font-size-sm);
3310 margin-bottom: var(--space-6);
3311 line-height: var(--leading-normal);
3312 }
3313 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3314 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3315 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3316 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3317 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3318 .email-preview {
3319 padding: var(--space-5);
3320 background: #fff;
3321 color: #111;
3322 border-radius: var(--radius-md);
3323 }
3324 .code-block {
3325 margin: var(--space-2) 0 0;
3326 padding: var(--space-3);
3327 background: var(--bg-tertiary);
3328 border: 1px solid var(--border-subtle);
3329 border-radius: var(--radius-sm);
3330 font-family: var(--font-mono);
3331 font-size: var(--font-size-xs);
3332 line-height: var(--leading-normal);
3333 overflow-x: auto;
3334 }
3335 .status-pill-operational {
3336 display: inline-flex;
3337 align-items: center;
3338 padding: var(--space-1) var(--space-3);
3339 border-radius: var(--radius-full);
3340 font-size: var(--font-size-xs);
3341 font-weight: 600;
3342 background: rgba(52,211,153,0.15);
3343 color: var(--green);
3344 }
3345 .api-tag {
3346 display: inline-flex;
3347 align-items: center;
3348 font-size: var(--font-size-xs);
3349 padding: 2px var(--space-2);
3350 border-radius: var(--radius-sm);
3351 font-family: var(--font-mono);
3352 }
3353 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3354 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3355 .stat-number {
3356 font-size: var(--font-size-xl);
3357 font-weight: 700;
3358 color: var(--text-strong);
3359 line-height: var(--leading-tight);
3360 }
3361 .stat-number-accent { color: var(--accent); }
3362 .stat-number-blue { color: var(--blue); }
3363 .stat-number-purple { color: var(--text-link); }
3364 footer .footer-tag-sub {
3365 margin-top: var(--space-2);
3366 font-size: var(--font-size-xs);
3367 color: var(--text-faint);
3368 line-height: var(--leading-normal);
3369 }
3370 footer .footer-version-pill {
3371 display: inline-flex;
3372 align-items: center;
3373 gap: var(--space-2);
3374 padding: var(--space-1) var(--space-3);
3375 border-radius: var(--radius-full);
3376 border: 1px solid var(--border);
3377 background: var(--bg-elevated);
3378 color: var(--text-faint);
3379 font-family: var(--font-mono);
3380 font-size: var(--font-size-xs);
3381 cursor: help;
3382 }
3383 footer .footer-banner {
3384 max-width: 1240px;
3385 margin: var(--space-6) auto 0;
3386 padding: var(--space-3) var(--space-4);
3387 border-radius: var(--radius-md);
3388 border: 1px solid var(--border);
3389 background: var(--bg-elevated);
3390 color: var(--text);
3391 font-family: var(--font-mono);
3392 font-size: var(--font-size-xs);
3393 letter-spacing: 0.04em;
3394 text-transform: uppercase;
3395 text-align: center;
3396 }
3397 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3398 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3399 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3400
cf9178bTest User3401 /* ============================================================ */
3402 /* Global toast notifications. */
3403 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3404 /* ============================================================ */
3405 .gx-toast {
3406 pointer-events: auto;
3407 display: inline-flex;
3408 align-items: flex-start;
3409 gap: 10px;
3410 min-width: 280px;
3411 max-width: min(440px, calc(100vw - 32px));
3412 padding: 12px 14px 12px 12px;
3413 background: var(--bg-elevated);
3414 border: 1px solid var(--border);
3415 border-radius: 10px;
3416 box-shadow:
3417 0 12px 36px -10px rgba(15,16,28,0.18),
3418 0 2px 6px rgba(15,16,28,0.04),
3419 0 0 0 1px rgba(15,16,28,0.02);
3420 color: var(--text);
3421 font-size: 13.5px;
3422 line-height: 1.45;
3423 opacity: 0;
3424 transform: translateX(16px);
3425 transition:
3426 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3427 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3428 }
3429 .gx-toast--in { opacity: 1; transform: translateX(0); }
3430 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3431 .gx-toast__icon {
3432 flex-shrink: 0;
3433 width: 20px; height: 20px;
3434 border-radius: 50%;
3435 display: inline-flex;
3436 align-items: center;
3437 justify-content: center;
3438 font-size: 12px;
3439 font-weight: 700;
3440 line-height: 1;
3441 margin-top: 1px;
3442 }
3443 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3444 .gx-toast__close {
3445 flex-shrink: 0;
3446 width: 22px; height: 22px;
3447 border: 0;
3448 background: transparent;
3449 color: var(--text-muted);
3450 font-size: 18px;
3451 line-height: 1;
3452 cursor: pointer;
3453 border-radius: 4px;
3454 padding: 0;
3455 margin: -2px -2px 0 0;
3456 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3457 }
3458 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3459 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3460 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3461 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3462 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3463 @media (prefers-reduced-motion: reduce) {
3464 .gx-toast { transition: opacity 60ms linear; transform: none; }
3465 .gx-toast--in, .gx-toast--out { transform: none; }
3466 }
3467
dc26881CC LABS App3468 /* ============================================================ */
3469 /* Block U4 — cross-document view transitions. */
3470 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3471 /* every same-origin navigation. Older browsers ignore these */
3472 /* rules entirely — no JS shim, no breakage. */
3473 /* prefers-reduced-motion disables the animation honourably. */
3474 /* ============================================================ */
3475 @view-transition {
3476 navigation: auto;
3477 }
3478 ::view-transition-old(root),
3479 ::view-transition-new(root) {
3480 animation-duration: 200ms;
3481 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3482 }
3483 ::view-transition-old(root) {
3484 animation-name: vt-fade-out;
3485 }
3486 ::view-transition-new(root) {
3487 animation-name: vt-fade-in;
3488 }
3489 @keyframes vt-fade-out {
3490 to { opacity: 0; }
3491 }
3492 @keyframes vt-fade-in {
3493 from { opacity: 0; }
3494 }
3495 @media (prefers-reduced-motion: reduce) {
3496 ::view-transition-old(root),
3497 ::view-transition-new(root) {
3498 animation-duration: 0s;
3499 }
3500 }
3501 /* The transition system picks up its root subject from this rule. */
3502 body {
3503 view-transition-name: root;
3504 }
fc1817aClaude3505`;