Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesPull RequestsActionsSecurityInsightsSettings
✨ AI
More
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.tsxBlame3563 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>
8286942Claude281 <a href="/insights" role="menuitem" class="nav-user-item">Insights</a>
f5b9ef5Claude282 <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a>
bb2dea9Claude283 <a href="/import/actions" role="menuitem" class="nav-user-item">Actions importer</a>
f5b9ef5Claude284 <div class="nav-user-menu-sep" />
285 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
286 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
287 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
288 <div class="nav-user-menu-sep" />
289 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
290 <span class="theme-icon-dark">{"☾"} Light mode</span>
291 <span class="theme-icon-light">{"☀"} Dark mode</span>
292 </a>
293 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
294 </div>
295 </div>
06d5ffeClaude296 </>
297 ) : (
298 <>
f5b9ef5Claude299 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
300 <span class="theme-icon-dark">{"☾"}</span>
301 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude302 </a>
adf5e18Claude303 <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron">
304 Migrate from GitHub
305 </a>
f5b9ef5Claude306 <a href="/login" class="nav-link">Sign in</a>
307 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude308 </>
309 )}
310 </div>
fc1817aClaude311 </nav>
312 </header>
45e31d0Claude313 <main id="main-content">{children}</main>
cf9178bTest User314 {/* Global toast host — populated by the toastScript below from
315 ?success= / ?error= / ?toast= query params. Replaces the
316 per-page banner pattern with one polished slide-in. */}
317 <div
318 id="toast-host"
319 aria-live="polite"
320 aria-atomic="true"
321 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"
322 />
fc1817aClaude323 <footer>
958d26aClaude324 <div class="footer-inner">
325 <div class="footer-brand">
326 <a href="/" class="logo">gluecron</a>
327 <p class="footer-tag">
328 AI-native code intelligence. Self-hosted git, automated CI,
329 push-time gates. Software that ships itself.
330 </p>
331 </div>
332 <div class="footer-links">
333 <div class="footer-col">
334 <div class="footer-col-title">Product</div>
b0148e9Claude335 <a href="/features">Features</a>
336 <a href="/pricing">Pricing</a>
9f29b65Claude337 <a href="/enterprise">Enterprise</a>
e1fc7dbClaude338 <a href="/changelog">Changelog</a>
958d26aClaude339 <a href="/explore">Explore</a>
340 <a href="/marketplace">Marketplace</a>
adf5e18Claude341 <a href="/developer-program">Developer Program</a>
958d26aClaude342 </div>
343 <div class="footer-col">
344 <div class="footer-col-title">Platform</div>
e0e4219Claude345 <a href="/docs">Docs</a>
b0148e9Claude346 <a href="/help">Quickstart</a>
958d26aClaude347 <a href="/status">Status</a>
348 <a href="/api/graphql">GraphQL</a>
349 <a href="/mcp">MCP server</a>
350 </div>
351 <div class="footer-col">
b0148e9Claude352 <div class="footer-col-title">Company</div>
353 <a href="/about">About</a>
3122762Claude354 <a href="/blog">Blog</a>
958d26aClaude355 <a href="/terms">Terms</a>
356 <a href="/privacy">Privacy</a>
357 <a href="/acceptable-use">Acceptable use</a>
358 </div>
359 </div>
360 </div>
361 <div class="footer-bottom">
362 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude363 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
364 <span class="footer-build-dot" aria-hidden="true" />
365 {build.sha} · {build.branch}
366 </span>
36b4cbdClaude367 </div>
c63b860Claude368 {siteBannerText ? (
369 <div
370 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
371 role="status"
372 aria-live="polite"
373 >
374 {siteBannerText}
375 </div>
376 ) : null}
fc1817aClaude377 </footer>
05cdb85Claude378 {/* Live update poller — checks /api/version every 15s, prompts
379 reload when the running sha changes. Pure progressive-
380 enhancement; degrades to nothing if JS is off. */}
381 <div
382 id="version-banner"
383 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"
384 >
385 <span style="display:inline-flex;align-items:center;gap:8px">
386 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
387 <span>New version available</span>
388 </span>
389 <button
390 type="button"
391 id="version-banner-reload"
392 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"
393 >
394 Reload
395 </button>
396 </div>
fa880f2Claude397 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude398 {/* Block N3 — site-admin deploy status pill (script-only). The pill
399 container is rendered above for authed users; this script bootstraps
400 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
401 and the pill stays display:none — zero leak. */}
402 {user && (
403 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
404 )}
699e5c7Claude405 {/* Block I4 — Command palette shell (hidden by default) */}
406 <div
407 id="cmdk-backdrop"
408 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
409 />
410 <div
411 id="cmdk-panel"
412 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"
413 >
414 <input
415 id="cmdk-input"
416 type="text"
417 placeholder="Type a command..."
418 aria-label="Command palette"
dc26881CC LABS App419 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"
699e5c7Claude420 />
421 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
422 </div>
fa880f2Claude423 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude424 {/* PWA-kill script: actively unregisters any service worker
425 previously installed under gluecron.com. Recovers any browser
426 still trapped in the SW reload loop from the legacy registrations. */}
427 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User428 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude429 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude430 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
b7ecb14Claude431 {/* Bell badge poller — only rendered for authenticated users.
432 Polls /api/notifications/count every 60 s and updates the badge
433 on the inbox bell icon. Falls back gracefully if the endpoint is
434 unavailable or the user signs out mid-session. */}
435 {user && (
436 <script dangerouslySetInnerHTML={{ __html: bellPollerScript }} />
437 )}
fc1817aClaude438 </body>
439 </html>
440 );
441};
442
05cdb85Claude443// Live version poller. Checks /api/version every 15s; if the sha differs
444// from the one we booted with, reveal the floating 'New version' pill so
445// the user can reload onto the new code without manually refreshing.
446const versionPollerScript = `
447 (function(){
448 var loadedSha = null;
449 var banner, btn;
450 function poll(){
451 fetch('/api/version', { cache: 'no-store' })
452 .then(function(r){ return r.ok ? r.json() : null; })
453 .then(function(j){
454 if (!j || !j.sha) return;
455 if (loadedSha === null) { loadedSha = j.sha; return; }
456 if (j.sha !== loadedSha && banner) {
457 banner.style.display = 'inline-flex';
458 }
459 })
460 .catch(function(){});
461 }
462 function init(){
463 banner = document.getElementById('version-banner');
464 btn = document.getElementById('version-banner-reload');
465 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
466 poll();
467 setInterval(poll, 15000);
468 }
469 if (document.readyState === 'loading') {
470 document.addEventListener('DOMContentLoaded', init);
471 } else {
472 init();
473 }
474 })();
475`;
476
f764c07Claude477// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
478// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
479// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
480// display:none — there's no leakage of admin-only data to other users.
481//
482// Pill states (CSS classes on the container drive colour):
483// .deploy-pill-success 🟢 "Deployed 12s ago"
484// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
485// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
486// .deploy-pill-empty ⚪ "No deploys yet"
487//
488// Relative-time auto-refreshes every 15s without re-fetching.
489export const deployPillScript = `
490 (function(){
491 var pill, dot, text;
492 var state = { latest: null, asOf: null };
493
494 function classifyAge(ms){
495 if (ms < 0) return 'just now';
496 var s = Math.floor(ms / 1000);
497 if (s < 5) return 'just now';
498 if (s < 60) return s + 's ago';
499 var m = Math.floor(s / 60);
500 if (m < 60) return m + 'm ago';
501 var h = Math.floor(m / 60);
502 if (h < 24) return h + 'h ago';
503 var d = Math.floor(h / 24);
504 return d + 'd ago';
505 }
506 function elapsed(ms){
507 if (ms < 0) ms = 0;
508 var s = Math.floor(ms / 1000);
509 if (s < 60) return s + 's';
510 var m = Math.floor(s / 60);
511 var rem = s - m * 60;
512 return m + 'm ' + rem + 's';
513 }
514
515 function render(){
516 if (!pill || !text || !dot) return;
517 var d = state.latest;
81201ccTest User518 // When there's no deploy event yet, keep the pill HIDDEN. Showing
519 // "No deploys yet" was visible noise on every admin page load and
520 // flashed during reconnect cycles — admins don't need a placeholder.
521 // The pill reveals itself the first time a real deploy fires.
f764c07Claude522 if (!d) {
81201ccTest User523 pill.style.display = 'none';
f764c07Claude524 return;
525 }
526 pill.style.display = 'inline-flex';
527 var now = Date.now();
528 if (d.status === 'in_progress') {
529 pill.className = 'nav-deploy-pill deploy-pill-progress';
530 var started = Date.parse(d.started_at) || now;
531 text.textContent = 'Deploying… ' + elapsed(now - started);
532 } else if (d.status === 'succeeded') {
533 pill.className = 'nav-deploy-pill deploy-pill-success';
534 var ref = Date.parse(d.finished_at || d.started_at) || now;
535 text.textContent = 'Deployed ' + classifyAge(now - ref);
536 } else if (d.status === 'failed') {
537 pill.className = 'nav-deploy-pill deploy-pill-failed';
538 var refF = Date.parse(d.finished_at || d.started_at) || now;
539 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
540 } else {
541 pill.className = 'nav-deploy-pill';
542 text.textContent = d.status;
543 }
544 }
545
546 function fetchLatest(){
547 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
548 .then(function(r){ if (!r.ok) return null; return r.json(); })
549 .then(function(j){
550 if (!j || j.ok !== true) return;
551 state.latest = j.latest;
552 state.asOf = j.asOf;
553 render();
554 subscribe();
555 })
556 .catch(function(){});
557 }
558
559 var subscribed = false;
560 function subscribe(){
561 if (subscribed) return;
562 if (typeof EventSource === 'undefined') return;
563 subscribed = true;
564 var es;
bf19c50Test User565 // Exponential backoff with cap. Previously a tight 1500ms reconnect
566 // produced visible looping in the nav whenever the proxy timed out
567 // or the connection blipped — the bottom-of-page deploy pill
568 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
569 // successful message receipt.
570 var delay = 2000;
571 var DELAY_MAX = 60000;
572 function bump(){
573 delay = Math.min(delay * 2, DELAY_MAX);
574 }
575 function resetDelay(){
576 delay = 2000;
577 }
f764c07Claude578 function connect(){
579 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User580 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude581 es.onmessage = function(m){
bf19c50Test User582 resetDelay();
f764c07Claude583 try {
584 var d = JSON.parse(m.data);
585 if (d && d.run_id) {
586 if (!state.latest || state.latest.run_id === d.run_id ||
587 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
588 state.latest = d;
589 render();
590 }
591 }
592 } catch(e){}
593 };
594 es.onerror = function(){
595 try { es.close(); } catch(e){}
bf19c50Test User596 bump();
f764c07Claude597 setTimeout(connect, delay);
598 };
599 }
600 connect();
601 }
602
603 function init(){
604 pill = document.getElementById('deploy-pill');
605 if (!pill) return;
606 dot = pill.querySelector('.deploy-pill-dot');
607 text = pill.querySelector('.deploy-pill-text');
608 fetchLatest();
609 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
610 // without a fresh fetch.
611 setInterval(render, 15000);
612 }
613 if (document.readyState === 'loading') {
614 document.addEventListener('DOMContentLoaded', init);
615 } else {
616 init();
617 }
618 })();
619`;
620
6fc53bdClaude621// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User622// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
623// is honoured for users who explicitly opted in.
6fc53bdClaude624const themeInitScript = `
625 (function(){
626 try {
627 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User628 var t = m ? decodeURIComponent(m[1]) : 'light';
629 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude630 document.documentElement.setAttribute('data-theme', t);
631 } catch(_){}
632 })();
633`;
634
eae38d1Claude635// Block G1 — register service worker for offline / install support.
636// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App637//
cf9178bTest User638// Global toast notifications — reads ?success=, ?error=, ?toast= from the
639// URL on page load and surfaces a polished slide-in toast instead of the
640// per-page banner divs that crowded the layout. Toasts auto-dismiss after
641// 4.5s; query params are scrubbed from the URL via history.replaceState
642// so a subsequent Refresh doesn't re-fire the same toast.
643//
644// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
645// must be URI-encoded (callers already do this via encodeURIComponent
646// in c.redirect()).
647const toastScript = `
648 (function(){
649 function showToast(kind, message){
650 if (!message) return;
651 var host = document.getElementById('toast-host');
652 if (!host) return;
653 var el = document.createElement('div');
654 el.className = 'gx-toast gx-toast--' + kind;
655 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
656 var icon = document.createElement('span');
657 icon.className = 'gx-toast__icon';
658 icon.textContent = kind === 'success' ? '\\u2713'
659 : kind === 'error' ? '\\u00D7'
660 : kind === 'warn' ? '!'
661 : 'i';
662 el.appendChild(icon);
663 var text = document.createElement('span');
664 text.className = 'gx-toast__text';
665 text.textContent = message;
666 el.appendChild(text);
667 var close = document.createElement('button');
668 close.type = 'button';
669 close.className = 'gx-toast__close';
670 close.setAttribute('aria-label', 'Dismiss notification');
671 close.textContent = '\\u00D7';
672 close.addEventListener('click', function(){ dismiss(); });
673 el.appendChild(close);
674 host.appendChild(el);
675 // Force a reflow then add the visible class so the slide-in transitions.
676 void el.offsetWidth;
677 el.classList.add('gx-toast--in');
678 var timer = setTimeout(dismiss, 4500);
679 function dismiss(){
680 clearTimeout(timer);
681 el.classList.remove('gx-toast--in');
682 el.classList.add('gx-toast--out');
683 setTimeout(function(){
684 if (el.parentNode) el.parentNode.removeChild(el);
685 }, 220);
686 }
687 }
688 try {
689 var url = new URL(window.location.href);
690 var hits = 0;
691 var s = url.searchParams.get('success');
692 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
693 var e = url.searchParams.get('error');
694 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
695 var t = url.searchParams.get('toast');
696 if (t) {
697 var ix = t.indexOf(':');
698 var kind = ix > 0 ? t.slice(0, ix) : 'info';
699 var msg = ix > 0 ? t.slice(ix + 1) : t;
700 showToast(kind, msg);
701 url.searchParams.delete('toast');
702 hits++;
703 }
704 if (hits > 0 && window.history && window.history.replaceState) {
705 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
706 }
707 } catch(_) {}
708 })();
709`;
710
44fe49bClaude711// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
712// and pwaInstallBannerScript. Those two scripts registered /sw.js and
713// /sw-push.js at the same scope, causing a reload loop that made the
714// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
715// uncllickable). Per the SW spec, only one SW can control a scope; two
716// different script URLs at the same scope keep replacing each other.
6345c3eTest User717//
44fe49bClaude718// PWA is gone for good. A git host has no use for service workers,
719// install-as-app, or push notifications via SW. This script actively
720// unregisters every previously installed SW on the gluecron.com origin
721// so any browser still trapped in the loop recovers on the very next
722// page load — without needing the user to clear site data or open
723// DevTools. Idempotent and safe to keep running forever; once all
724// browsers have been cleaned, it's a no-op.
725const pwaKillSwitchScript = `
534f04aClaude726(function(){
727 try {
44fe49bClaude728 if (!('serviceWorker' in navigator)) return;
729 if (!navigator.serviceWorker.getRegistrations) return;
730 navigator.serviceWorker.getRegistrations().then(function(regs){
731 if (!regs || regs.length === 0) return;
732 regs.forEach(function(reg){
733 try { reg.unregister(); } catch(_){}
734 });
735 }).catch(function(){});
736 // Also drop any caches the old SWs left behind so the user gets
737 // truly fresh HTML on every page load. Restricted to gluecron-*
738 // namespaced caches so we don't trample anything a future opt-in
739 // feature might create under a different name.
740 if ('caches' in self) {
741 caches.keys().then(function(keys){
742 keys.forEach(function(k){
743 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
744 try { caches.delete(k); } catch(_){}
d7ba05dClaude745 }
746 });
747 }).catch(function(){});
534f04aClaude748 }
749 } catch(_) {}
750})();
751`;
752
3ef4c9dClaude753const navScript = `
754 (function(){
755 var chord = null;
756 var chordTimer = null;
757 function isTyping(t){
758 t = t || {};
759 var tag = (t.tagName || '').toLowerCase();
760 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
761 }
71cd5ecClaude762
763 // ---------- Block I4 — Command palette ----------
764 var COMMANDS = [
765 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
766 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
767 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
768 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
769 { label: 'Create new repository', href: '/new', kw: 'add create' },
770 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
771 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
772 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
773 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
774 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
775 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
776 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
777 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
778 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude779 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude780 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
781 { label: 'Gists', href: '/gists', kw: 'snippets' },
782 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
783 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
784 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
785 ];
786
787 function fuzzyMatch(item, q){
788 if (!q) return true;
789 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
790 q = q.toLowerCase();
791 var qi = 0;
792 for (var i = 0; i < hay.length && qi < q.length; i++) {
793 if (hay[i] === q[qi]) qi++;
794 }
795 return qi === q.length;
796 }
797
798 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
799
800 function render(){
801 if (!list) return;
802 var html = '';
803 for (var i = 0; i < filtered.length; i++) {
804 var item = filtered[i];
805 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
806 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]807 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App808 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude809 '<div>' + item.label + '</div>' +
810 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
811 '</div>';
812 }
813 if (filtered.length === 0) {
dc26881CC LABS App814 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude815 }
816 list.innerHTML = html;
817 }
818
819 function openPalette(){
820 backdrop = document.getElementById('cmdk-backdrop');
821 panel = document.getElementById('cmdk-panel');
822 input = document.getElementById('cmdk-input');
823 list = document.getElementById('cmdk-list');
824 if (!backdrop || !panel) return;
825 backdrop.style.display = 'block';
826 panel.style.display = 'block';
827 input.value = '';
828 selected = 0;
829 filtered = COMMANDS.slice();
830 render();
831 input.focus();
832 }
833 function closePalette(){
834 if (backdrop) backdrop.style.display = 'none';
835 if (panel) panel.style.display = 'none';
836 }
837 function go(href){ closePalette(); window.location.href = href; }
838
839 document.addEventListener('click', function(e){
840 var t = e.target;
841 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
842 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]843 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude844 });
845
846 document.addEventListener('input', function(e){
847 if (e.target && e.target.id === 'cmdk-input') {
848 var q = e.target.value;
849 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
850 selected = 0;
851 render();
852 }
853 });
854
3ef4c9dClaude855 document.addEventListener('keydown', function(e){
71cd5ecClaude856 // Palette-scoped keys take priority when open
857 if (panel && panel.style.display === 'block') {
858 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
859 if (e.key === 'ArrowDown') {
860 e.preventDefault();
861 selected = Math.min(filtered.length - 1, selected + 1);
862 render();
863 return;
864 }
865 if (e.key === 'ArrowUp') {
866 e.preventDefault();
867 selected = Math.max(0, selected - 1);
868 render();
869 return;
870 }
871 if (e.key === 'Enter') {
872 e.preventDefault();
873 var item = filtered[selected];
874 if (item) go(item.href);
875 return;
876 }
877 return;
878 }
879
3ef4c9dClaude880 if (isTyping(e.target)) return;
881 // Single key shortcuts
882 if (e.key === '/') {
883 var el = document.querySelector('.nav-search input');
884 if (el) { e.preventDefault(); el.focus(); return; }
885 }
886 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude887 e.preventDefault();
888 openPalette();
889 return;
3ef4c9dClaude890 }
891 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
892 e.preventDefault(); window.location.href = '/shortcuts'; return;
893 }
894 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
895 e.preventDefault(); window.location.href = '/new'; return;
896 }
897 // "g" chord
898 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
899 chord = 'g';
900 clearTimeout(chordTimer);
901 chordTimer = setTimeout(function(){ chord = null; }, 1200);
902 return;
903 }
904 if (chord === 'g') {
905 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
906 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
907 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
908 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
909 chord = null;
910 }
5882af3Claude911 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
912 if (e.key === 'j' || e.key === 'k') {
913 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
914 var items = Array.from(document.querySelectorAll(selectors));
915 if (items.length === 0) return;
916 e.preventDefault();
917 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
918 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));
919 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
920 items[next].classList.add('is-kbd-focus');
921 items[next].scrollIntoView({ block: 'nearest' });
922 return;
923 }
924 if (e.key === 'Enter') {
925 var focused = document.querySelector('.is-kbd-focus');
926 if (focused) {
927 e.preventDefault();
928 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
929 if (link && link.href) { window.location.href = link.href; }
930 return;
931 }
932 }
933 if (e.key === 'x') {
934 // 'x' selects/deselects focused item (future: bulk actions)
935 var sel = document.querySelector('.is-kbd-focus');
936 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
937 }
3ef4c9dClaude938 });
939 })();
940`;
941
b7ecb14Claude942// Bell poller — updates the inbox badge count every 60 s via /api/notifications/count.
943// Only injected when a user is logged in (checked in the JSX above). Uses the
944// `.nav-inbox-badge` element that the server renders inside `.nav-inbox-btn`.
945// If the badge element is absent (user not logged in, DOM mismatch) it exits
946// cleanly without error.
947export const bellPollerScript = `
948(function() {
949 var badge = document.querySelector('.nav-inbox-btn .nav-inbox-badge');
950 var btn = document.querySelector('.nav-inbox-btn');
951 function updateBadge(n) {
952 if (!btn) return;
953 if (n > 0) {
954 var label = n > 99 ? '99+' : String(n);
955 if (!badge) {
956 badge = document.createElement('span');
957 badge.className = 'nav-inbox-badge';
958 badge.setAttribute('aria-hidden', 'true');
959 btn.appendChild(badge);
960 }
961 badge.textContent = label;
962 badge.style.display = '';
963 btn.setAttribute('aria-label', 'Inbox — ' + n + ' unread');
964 } else {
965 if (badge) badge.style.display = 'none';
966 btn.setAttribute('aria-label', 'Inbox');
967 }
968 }
969 function poll() {
970 fetch('/api/notifications/count', { credentials: 'same-origin', cache: 'no-store' })
971 .then(function(r) { return r.ok ? r.json() : null; })
972 .then(function(d) {
973 if (!d) return;
974 var n = typeof d.unread === 'number' ? d.unread : (typeof d.count === 'number' ? d.count : 0);
975 updateBadge(n);
976 })
977 .catch(function() {});
978 }
979 if (document.readyState === 'loading') {
980 document.addEventListener('DOMContentLoaded', function() { poll(); setInterval(poll, 60000); });
981 } else {
982 poll();
983 setInterval(poll, 60000);
984 }
985})();
986`;
987
c6018a5Claude988// AI dropdown — keyboard- and click-accessible menu in the top nav.
989// CSS handles the hover-open behaviour for pointer users; this script
990// adds click-to-toggle for touch, Escape-to-close, and outside-click-
991// to-close. Lives in its own IIFE so it never interferes with navScript.
992const navAiDropdownScript = `
993 (function(){
f5b9ef5Claude994 function makeDropdown(rootSel, triggerSel, menuSel) {
995 var open = false;
996 var root = document.querySelector(rootSel);
997 if (!root) return;
998 var trigger = root.querySelector(triggerSel);
999 var menu = root.querySelector(menuSel);
1000 if (!trigger || !menu) return;
1001 function setOpen(next){
1002 open = !!next;
1003 root.classList.toggle('is-open', open);
1004 menu.classList.toggle('is-open', open);
1005 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
1006 }
1007 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
1008 document.addEventListener('click', function(e){
1009 if (!open) return;
1010 if (root.contains(e.target)) return;
1011 setOpen(false);
1012 });
1013 document.addEventListener('keydown', function(e){
1014 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
1015 });
c6018a5Claude1016 }
f5b9ef5Claude1017 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
1018 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude1019 })();
1020`;
1021
fc1817aClaude1022const css = `
2ce1d0bClaude1023 /* ================================================================
958d26aClaude1024 * Gluecron design system — 2026.05 "Editorial-Technical"
1025 * Slate-noir base · refined violet signature · hairline geometry ·
1026 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
1027 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude1028 * ============================================================== */
6fc53bdClaude1029 :root, :root[data-theme='dark'] {
958d26aClaude1030 /* Surfaces — slate, not black. More depth, less crush. */
1031 --bg: #08090f;
1032 --bg-secondary: #0c0d14;
1033 --bg-tertiary: #11131c;
1034 --bg-elevated: #0f111a;
1035 --bg-surface: #161826;
1036 --bg-hover: rgba(255,255,255,0.04);
1037 --bg-active: rgba(255,255,255,0.08);
1038 --bg-inset: rgba(0,0,0,0.30);
1039
1040 /* Borders — three weights, used deliberately */
1041 --border: rgba(255,255,255,0.06);
1042 --border-subtle: rgba(255,255,255,0.035);
1043 --border-strong: rgba(255,255,255,0.13);
1044 --border-focus: rgba(140,109,255,0.55);
1045
1046 /* Text */
1047 --text: #ededf2;
1048 --text-strong: #f7f7fb;
1049 --text-muted: #8b8c9c;
1050 --text-faint: #555665;
1051 --text-link: #b69dff;
1052
1053 /* Accent — refined violet (less candy), warm amber as secondary signal */
1054 --accent: #8c6dff;
1055 --accent-2: #36c5d6;
1056 --accent-warm: #ffb45e;
1057 --accent-hover: #a48bff;
1058 --accent-pressed:#7559e8;
1059 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1060 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1061 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1062 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1063
1064 /* Semantic */
1065 --green: #34d399;
1066 --red: #f87171;
1067 --yellow: #fbbf24;
1068 --amber: #fbbf24;
1069 --blue: #60a5fa;
1070
3a5755eClaude1071 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1072 display (headlines), JetBrains Mono for code. All three loaded from
1073 Google Fonts with display:swap so we never block first paint. System
1074 fallbacks remain in place — if the CDN is unreachable the site still
1075 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1076 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1077 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1078 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1079 --mono-feat: 'calt', 'liga', 'ss01';
1080
1081 /* Radius — sharper than before */
1082 --r-sm: 5px;
1083 --r: 7px;
1084 --r-md: 9px;
1085 --r-lg: 12px;
1086 --r-xl: 16px;
1087 --r-2xl: 22px;
1088 --r-full: 9999px;
1089 --radius: 7px;
1090
1091 /* Type scale — bigger display sizes for editorial feel */
1092 --t-xs: 11px;
1093 --t-sm: 13px;
1094 --t-base: 14px;
1095 --t-md: 16px;
1096 --t-lg: 20px;
1097 --t-xl: 28px;
1098 --t-2xl: 40px;
1099 --t-3xl: 56px;
1100 --t-display: 72px;
1101 --t-display-lg:96px;
1102
1103 /* Spacing — 4px base */
2ce1d0bClaude1104 --s-0: 0;
958d26aClaude1105 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1106 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1107 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1108 --s-20:80px; --s-24:96px; --s-32:128px;
1109
1110 /* Elevation — softer + more layered */
1111 --elev-0: 0 0 0 1px var(--border);
1112 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1113 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1114 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1115 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1116 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1117 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1118 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1119
1120 /* Motion */
1121 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1122 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1123 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1124 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1125 --t-fast: 120ms;
1126 --t-base: 200ms;
1127 --t-slow: 360ms;
1128 --t-slower:560ms;
1129
1130 --header-h: 60px;
c63b860Claude1131
1132 /* Block O3 — visual coherence: named token aliases (additive). */
1133 --space-1: var(--s-1);
1134 --space-2: var(--s-2);
1135 --space-3: var(--s-3);
1136 --space-4: var(--s-4);
1137 --space-5: var(--s-5);
1138 --space-6: var(--s-6);
1139 --space-8: var(--s-8);
1140 --space-10: var(--s-10);
1141 --space-12: var(--s-12);
1142 --space-16: var(--s-16);
1143 --space-20: var(--s-20);
1144 --space-24: var(--s-24);
1145 --radius-sm: var(--r-sm);
1146 --radius-md: var(--r-md);
1147 --radius-lg: var(--r-lg);
1148 --radius-xl: var(--r-xl);
1149 --radius-full: var(--r-full);
1150 --font-size-xs: var(--t-xs);
1151 --font-size-sm: var(--t-sm);
1152 --font-size-base: var(--t-base);
1153 --font-size-md: var(--t-md);
1154 --font-size-lg: var(--t-lg);
1155 --font-size-xl: var(--t-xl);
1156 --font-size-2xl: var(--t-2xl);
1157 --font-size-3xl: var(--t-3xl);
1158 --font-size-hero: var(--t-display);
1159 --leading-tight: 1.2;
1160 --leading-snug: 1.35;
1161 --leading-normal: 1.5;
1162 --leading-relaxed: 1.6;
1163 --leading-loose: 1.7;
1164 --z-base: 1;
1165 --z-nav: 10;
1166 --z-sticky: 50;
1167 --z-overlay: 100;
1168 --z-modal: 1000;
1169 --z-toast: 10000;
fc1817aClaude1170 }
1171
6fc53bdClaude1172 :root[data-theme='light'] {
958d26aClaude1173 --bg: #fbfbfc;
4c47454Claude1174 --bg-secondary: #ffffff;
958d26aClaude1175 --bg-tertiary: #f3f3f6;
1176 --bg-elevated: #ffffff;
1177 --bg-surface: #f6f6f9;
1178 --bg-hover: rgba(0,0,0,0.035);
1179 --bg-active: rgba(0,0,0,0.07);
1180 --bg-inset: rgba(0,0,0,0.04);
1181
1182 --border: rgba(15,16,28,0.08);
1183 --border-subtle: rgba(15,16,28,0.04);
1184 --border-strong: rgba(15,16,28,0.16);
1185
1186 --text: #0e1020;
1187 --text-strong: #050617;
1188 --text-muted: #5a5b70;
1189 --text-faint: #8a8b9e;
1190 --text-link: #6d4dff;
1191
1192 --accent: #6d4dff;
1193 --accent-2: #0891b2;
1194 --accent-hover: #5a3df0;
1195 --accent-pressed:#4a30d6;
1196 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1197
1198 --green: #059669;
1199 --red: #dc2626;
4c47454Claude1200 --yellow: #d97706;
958d26aClaude1201
1202 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1203 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1204 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1205 }
1206
1207 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1208 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1209 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1210 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1211 :root[data-theme='light'] .theme-icon-light { display: none; }
1212
fc1817aClaude1213 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1214 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1215
958d26aClaude1216 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1217
1218 body {
1219 font-family: var(--font-sans);
1220 background: var(--bg);
1221 color: var(--text);
cf9178bTest User1222 font-size: 15px;
2ce1d0bClaude1223 line-height: 1.55;
958d26aClaude1224 letter-spacing: -0.011em;
fc1817aClaude1225 min-height: 100vh;
1226 display: flex;
1227 flex-direction: column;
958d26aClaude1228 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1229 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1230 and disables automatic synthesis of bold/italic which can produce
1231 muddier rendering on certain weights. */
1232 -webkit-font-smoothing: antialiased;
1233 -moz-osx-font-smoothing: grayscale;
1234 font-synthesis: none;
1235 }
1236 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1237 line-height inversely with size so display text doesn't feel airy. */
1238 h1, h2, h3, h4, h5, h6 {
1239 font-family: var(--font-display);
1240 color: var(--text-strong);
1241 letter-spacing: -0.022em;
1242 line-height: 1.18;
1243 font-weight: 650;
1244 margin-top: 0;
1245 }
1246 h1 { font-size: 28px; letter-spacing: -0.028em; }
1247 h2 { font-size: 22px; }
1248 h3 { font-size: 18px; letter-spacing: -0.018em; }
1249 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1250 /* Link refinement — underline only on hover/focus, never by default
1251 on internal nav. Prevents the "blue underline soup" look. */
1252 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1253 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1254 a:focus-visible {
1255 outline: none;
1256 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1257 border-radius: 3px;
fc1817aClaude1258 }
1259
958d26aClaude1260 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1261 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1262 body::before {
1263 content: '';
1264 position: fixed;
1265 inset: 0;
1266 pointer-events: none;
958d26aClaude1267 z-index: -2;
2ce1d0bClaude1268 background:
958d26aClaude1269 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1270 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1271 }
1272 body::after {
1273 content: '';
1274 position: fixed;
1275 inset: 0;
1276 pointer-events: none;
1277 z-index: -1;
1278 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1279 background-size: 28px 28px;
1280 background-position: 0 0;
1281 opacity: 0.55;
1282 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1283 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1284 }
1285 :root[data-theme='light'] body::before { opacity: 0.55; }
1286 :root[data-theme='light'] body::after {
1287 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1288 opacity: 0.4;
fc1817aClaude1289 }
2ce1d0bClaude1290
1291 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1292 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1293
958d26aClaude1294 /* Heading scale — confident, editorial, tight tracking */
1295 h1, h2, h3, h4, h5, h6 {
1296 font-family: var(--font-display);
2ce1d0bClaude1297 font-weight: 600;
958d26aClaude1298 letter-spacing: -0.022em;
1299 line-height: 1.18;
1300 color: var(--text-strong);
1301 }
1302 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1303 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1304 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1305 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1306 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1307
1308 /* Editorial display heading utility — used by landing + marketing pages */
1309 .display {
1310 font-family: var(--font-display);
1311 font-size: clamp(40px, 7.5vw, 96px);
1312 line-height: 0.98;
1313 letter-spacing: -0.04em;
1314 font-weight: 600;
1315 color: var(--text-strong);
2ce1d0bClaude1316 }
fc1817aClaude1317
958d26aClaude1318 /* Eyebrow — uppercase mono label that sits above section headings */
1319 .eyebrow {
1320 display: inline-flex;
1321 align-items: center;
1322 gap: 8px;
1323 font-family: var(--font-mono);
1324 font-size: 11px;
1325 font-weight: 500;
1326 letter-spacing: 0.14em;
1327 text-transform: uppercase;
1328 color: var(--accent);
1329 margin-bottom: var(--s-3);
1330 }
1331 .eyebrow::before {
1332 content: '';
1333 width: 18px;
1334 height: 1px;
1335 background: currentColor;
1336 opacity: 0.6;
1337 }
1338
1339 /* Section header — paired eyebrow + title + lede */
1340 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1341 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1342 .section-header h2 {
1343 font-size: clamp(28px, 4vw, 44px);
1344 line-height: 1.05;
1345 letter-spacing: -0.028em;
1346 margin-bottom: var(--s-3);
1347 }
1348 .section-header p {
1349 color: var(--text-muted);
1350 font-size: var(--t-md);
1351 line-height: 1.6;
1352 max-width: 580px;
1353 margin: 0 auto;
1354 }
1355 .section-header.left p { margin-left: 0; }
fc1817aClaude1356
958d26aClaude1357 code, kbd, samp {
2ce1d0bClaude1358 font-family: var(--font-mono);
958d26aClaude1359 font-feature-settings: var(--mono-feat);
1360 }
1361 code {
1362 font-size: 0.9em;
2ce1d0bClaude1363 background: var(--bg-tertiary);
958d26aClaude1364 border: 1px solid var(--border-subtle);
2ce1d0bClaude1365 padding: 1px 6px;
1366 border-radius: var(--r-sm);
1367 color: var(--text);
1368 }
958d26aClaude1369 kbd, .kbd {
1370 display: inline-flex;
1371 align-items: center;
1372 padding: 1px 6px;
1373 font-family: var(--font-mono);
1374 font-size: 11px;
1375 background: var(--bg-elevated);
1376 border: 1px solid var(--border);
1377 border-bottom-width: 2px;
1378 border-radius: 4px;
1379 color: var(--text);
1380 line-height: 1.5;
1381 vertical-align: middle;
1382 }
2ce1d0bClaude1383
958d26aClaude1384 /* Mono utility for technical chrome (paths, IDs, dates) */
1385 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1386 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1387
1388 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1389 .prelaunch-banner {
958d26aClaude1390 position: relative;
2ce1d0bClaude1391 background:
958d26aClaude1392 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1393 var(--bg);
958d26aClaude1394 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1395 color: var(--yellow);
958d26aClaude1396 padding: 7px 24px;
1397 font-family: var(--font-mono);
1398 font-size: 11px;
4a52a98Claude1399 font-weight: 500;
1400 text-align: center;
2ce1d0bClaude1401 line-height: 1.5;
958d26aClaude1402 letter-spacing: 0.04em;
1403 text-transform: uppercase;
1404 }
1405 .prelaunch-banner::before {
1406 content: '◆';
1407 margin-right: 8px;
1408 font-size: 9px;
1409 opacity: 0.7;
1410 vertical-align: 1px;
4a52a98Claude1411 }
1412
cd4f63bTest User1413 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1414 visitors don't miss the "save your work" CTA, but slim enough to
1415 not feel like a modal. */
1416 .playground-banner {
1417 position: relative;
1418 display: flex;
1419 align-items: center;
1420 justify-content: center;
1421 gap: 8px;
1422 background:
1423 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1424 var(--bg);
1425 border-bottom: 1px solid rgba(251,191,36,0.45);
1426 color: var(--yellow, #fbbf24);
1427 padding: 8px 40px 8px 24px;
1428 font-size: 13px;
1429 font-weight: 500;
1430 text-align: center;
1431 line-height: 1.4;
1432 }
1433 .playground-banner-icon { font-size: 14px; }
1434 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1435 .playground-banner-countdown { font-weight: 600; }
1436 .playground-banner-cta {
1437 margin-left: 4px;
1438 color: var(--yellow, #fbbf24);
1439 text-decoration: underline;
1440 font-weight: 600;
1441 }
1442 .playground-banner-cta:hover { opacity: 0.85; }
1443 .playground-banner-dismiss {
1444 position: absolute;
1445 top: 50%;
1446 right: 12px;
1447 transform: translateY(-50%);
1448 background: transparent;
1449 border: none;
1450 color: var(--text-muted, #8b949e);
1451 font-size: 18px;
1452 line-height: 1;
1453 cursor: pointer;
1454 padding: 0 4px;
1455 }
1456 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1457
958d26aClaude1458 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1459 header {
2ce1d0bClaude1460 position: sticky;
1461 top: 0;
1462 z-index: 100;
fc1817aClaude1463 border-bottom: 1px solid var(--border);
2ce1d0bClaude1464 padding: 0 24px;
1465 height: var(--header-h);
958d26aClaude1466 background: rgba(8,9,15,0.72);
1467 backdrop-filter: saturate(180%) blur(18px);
1468 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1469 }
958d26aClaude1470 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1471
06d5ffeClaude1472 header nav {
1473 display: flex;
1474 align-items: center;
958d26aClaude1475 gap: 18px;
eed4684Claude1476 max-width: 1920px;
06d5ffeClaude1477 margin: 0 auto;
2ce1d0bClaude1478 height: 100%;
1479 }
1480 .logo {
958d26aClaude1481 font-family: var(--font-display);
1482 font-size: 16px;
2ce1d0bClaude1483 font-weight: 700;
958d26aClaude1484 letter-spacing: -0.025em;
1485 color: var(--text-strong);
2ce1d0bClaude1486 display: inline-flex;
1487 align-items: center;
958d26aClaude1488 gap: 9px;
1489 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1490 }
2ce1d0bClaude1491 .logo::before {
1492 content: '';
958d26aClaude1493 width: 20px; height: 20px;
1494 border-radius: 6px;
2ce1d0bClaude1495 background: var(--accent-gradient);
958d26aClaude1496 box-shadow:
1497 inset 0 1px 0 rgba(255,255,255,0.25),
1498 0 0 0 1px rgba(140,109,255,0.45),
1499 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1500 flex-shrink: 0;
958d26aClaude1501 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1502 }
1503 .logo:hover { text-decoration: none; color: var(--text-strong); }
1504 .logo:hover::before {
1505 transform: rotate(8deg) scale(1.05);
1506 box-shadow:
1507 inset 0 1px 0 rgba(255,255,255,0.30),
1508 0 0 0 1px rgba(140,109,255,0.55),
1509 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1510 }
fc1817aClaude1511
2ce1d0bClaude1512 .nav-search {
1513 flex: 1;
958d26aClaude1514 max-width: 360px;
1515 margin: 0 4px 0 8px;
1516 position: relative;
2ce1d0bClaude1517 }
1518 .nav-search input {
1519 width: 100%;
958d26aClaude1520 padding: 7px 12px 7px 32px;
2ce1d0bClaude1521 background: var(--bg-tertiary);
1522 border: 1px solid var(--border);
1523 border-radius: var(--r-sm);
1524 color: var(--text);
1525 font-family: var(--font-sans);
1526 font-size: var(--t-sm);
958d26aClaude1527 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1528 }
1529 .nav-search::before {
1530 content: '';
1531 position: absolute;
1532 left: 11px; top: 50%;
1533 transform: translateY(-50%);
1534 width: 12px; height: 12px;
1535 border: 1.5px solid var(--text-faint);
1536 border-radius: 50%;
1537 pointer-events: none;
1538 }
1539 .nav-search::after {
1540 content: '';
1541 position: absolute;
1542 left: 19px; top: calc(50% + 4px);
1543 width: 5px; height: 1.5px;
1544 background: var(--text-faint);
1545 transform: rotate(45deg);
1546 pointer-events: none;
2ce1d0bClaude1547 }
1548 .nav-search input::placeholder { color: var(--text-faint); }
1549 .nav-search input:focus {
1550 outline: none;
1551 background: var(--bg-secondary);
958d26aClaude1552 border-color: var(--border-focus);
1553 box-shadow: var(--ring);
2ce1d0bClaude1554 }
06d5ffeClaude1555
958d26aClaude1556 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1557
1558 /* Block N3 — site-admin deploy status pill */
1559 .nav-deploy-pill {
1560 display: inline-flex;
1561 align-items: center;
1562 gap: 6px;
1563 padding: 4px 10px;
1564 margin: 0 6px 0 0;
1565 border-radius: 9999px;
1566 font-size: 11px;
1567 font-weight: 600;
1568 line-height: 1;
1569 color: var(--text-strong);
1570 background: var(--bg-elevated);
1571 border: 1px solid var(--border);
1572 text-decoration: none;
1573 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1574 }
1575 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1576 .nav-deploy-pill .deploy-pill-dot {
1577 display: inline-block;
1578 width: 8px; height: 8px;
1579 border-radius: 50%;
1580 background: #6b7280;
1581 }
1582 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1583 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1584 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1585 .deploy-pill-progress .deploy-pill-dot {
1586 background: #fbbf24;
1587 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1588 animation: deployPillPulse 1.2s ease-in-out infinite;
1589 }
1590 @keyframes deployPillPulse {
1591 0%, 100% { opacity: 1; transform: scale(1); }
1592 50% { opacity: 0.45; transform: scale(0.8); }
1593 }
1594 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1595
c6018a5Claude1596 /* ── AI dropdown (nav consolidation) ── */
1597 .nav-ai-dropdown {
1598 position: relative;
1599 display: inline-flex;
1600 align-items: center;
1601 }
1602 .nav-ai-trigger {
1603 background: transparent;
1604 border: 0;
1605 font: inherit;
1606 cursor: pointer;
1607 color: var(--text-muted);
1608 font-size: var(--t-sm);
1609 font-weight: 500;
1610 padding: 7px 11px;
1611 border-radius: var(--r-sm);
1612 line-height: 1.2;
1613 }
1614 .nav-ai-trigger:hover {
1615 color: var(--text-strong);
1616 background: var(--bg-hover);
1617 }
1618 .nav-ai-menu {
1619 position: absolute;
1620 top: calc(100% + 6px);
1621 right: 0;
1622 min-width: 220px;
1623 background: var(--bg-secondary);
1624 border: 1px solid var(--border-strong);
1625 border-radius: 10px;
1626 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1627 padding: 6px;
1628 display: none;
1629 z-index: var(--z-overlay, 100);
1630 }
1631 .nav-ai-dropdown:hover .nav-ai-menu,
1632 .nav-ai-dropdown.is-open .nav-ai-menu,
1633 .nav-ai-dropdown:focus-within .nav-ai-menu {
1634 display: block;
1635 }
1636 .nav-ai-item {
1637 display: flex;
1638 flex-direction: column;
1639 gap: 1px;
1640 padding: 8px 10px;
1641 border-radius: 6px;
1642 color: var(--text);
1643 text-decoration: none;
1644 transition: background var(--t-fast) var(--ease);
1645 }
1646 .nav-ai-item:hover {
1647 background: var(--bg-hover);
1648 text-decoration: none;
1649 color: var(--text-strong);
1650 }
1651 .nav-ai-item-label {
1652 font-size: var(--t-sm);
1653 font-weight: 600;
1654 color: var(--text-strong);
1655 }
1656 .nav-ai-item-sub {
1657 font-size: 11.5px;
1658 color: var(--text-muted);
1659 }
1660
2ce1d0bClaude1661 .nav-link {
958d26aClaude1662 position: relative;
2ce1d0bClaude1663 color: var(--text-muted);
1664 font-size: var(--t-sm);
1665 font-weight: 500;
958d26aClaude1666 padding: 7px 11px;
2ce1d0bClaude1667 border-radius: var(--r-sm);
958d26aClaude1668 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1669 }
1670 .nav-link:hover {
958d26aClaude1671 color: var(--text-strong);
2ce1d0bClaude1672 background: var(--bg-hover);
1673 text-decoration: none;
1674 }
958d26aClaude1675 .nav-link.active { color: var(--text-strong); }
1676 .nav-link.active::after {
1677 content: '';
1678 position: absolute;
1679 left: 11px; right: 11px;
1680 bottom: -1px;
1681 height: 2px;
1682 background: var(--accent-gradient);
1683 border-radius: 2px;
1684 }
adf5e18Claude1685 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1686 so it reads as an action affordance rather than a passive link. */
1687 .nav-migrate {
1688 color: var(--accent);
1689 font-weight: 600;
1690 border: 1px solid rgba(140,109,255,0.22);
1691 background: rgba(140,109,255,0.07);
1692 }
1693 .nav-migrate:hover {
1694 color: var(--accent-hover);
1695 background: rgba(140,109,255,0.13);
1696 border-color: rgba(140,109,255,0.40);
1697 }
1698 @media (max-width: 780px) { .nav-migrate { display: none; } }
1699
2ce1d0bClaude1700 .nav-user {
958d26aClaude1701 color: var(--text-strong);
2ce1d0bClaude1702 font-weight: 600;
1703 font-size: var(--t-sm);
1704 padding: 6px 10px;
1705 border-radius: var(--r-sm);
958d26aClaude1706 margin-left: 6px;
2ce1d0bClaude1707 transition: background var(--t-fast) var(--ease);
1708 }
958d26aClaude1709 .nav-user::before {
1710 content: '';
1711 display: inline-block;
1712 width: 8px; height: 8px;
1713 background: var(--green);
1714 border-radius: 50%;
1715 margin-right: 7px;
1716 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1717 vertical-align: 1px;
1718 }
2ce1d0bClaude1719 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1720
f5b9ef5Claude1721 /* ── Inbox bell button ── */
1722 .nav-inbox-btn {
1723 position: relative;
1724 display: inline-flex;
1725 align-items: center;
1726 justify-content: center;
1727 width: 34px;
1728 height: 34px;
1729 border-radius: var(--r-sm);
1730 color: var(--text-muted);
1731 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1732 flex-shrink: 0;
1733 }
1734 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1735 .nav-inbox-badge {
1736 position: absolute;
1737 top: 3px; right: 3px;
1738 min-width: 15px; height: 15px;
1739 padding: 0 4px;
1740 font-size: 9.5px;
1741 font-weight: 700;
1742 line-height: 15px;
1743 color: #fff;
1744 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1745 border-radius: 9999px;
1746 text-align: center;
1747 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1748 font-variant-numeric: tabular-nums;
1749 }
1750
1751 /* ── User dropdown ── */
1752 .nav-user-dropdown { position: relative; }
1753 .nav-user-trigger {
1754 display: inline-flex;
1755 align-items: center;
1756 gap: 7px;
1757 padding: 5px 9px 5px 5px;
1758 border-radius: var(--r-sm);
1759 border: 1px solid transparent;
1760 background: transparent;
1761 color: var(--text);
1762 font-family: var(--font-sans);
1763 font-size: var(--t-sm);
1764 font-weight: 500;
1765 cursor: pointer;
1766 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1767 }
1768 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1769 .nav-user-avatar {
1770 width: 24px; height: 24px;
1771 border-radius: 50%;
1772 background: var(--accent-gradient);
1773 color: #fff;
1774 font-size: 11px;
1775 font-weight: 700;
1776 display: inline-flex;
1777 align-items: center;
1778 justify-content: center;
1779 flex-shrink: 0;
1780 box-shadow: 0 0 0 2px var(--border);
1781 }
1782 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1783 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1784 .nav-user-menu {
1785 display: none;
1786 position: absolute;
1787 top: calc(100% + 6px);
1788 right: 0;
1789 min-width: 220px;
1790 background: var(--bg-elevated);
1791 border: 1px solid var(--border-strong);
1792 border-radius: var(--r-lg);
1793 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1794 padding: 6px;
1795 z-index: 200;
1796 animation: navMenuIn 140ms var(--ease) both;
1797 }
1798 .nav-user-menu.is-open { display: block; }
1799 .nav-user-menu-header {
1800 padding: 8px 10px 10px;
1801 display: flex;
1802 flex-direction: column;
1803 gap: 2px;
1804 }
1805 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1806 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1807 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1808 .nav-user-item {
1809 display: block;
1810 padding: 7px 10px;
1811 border-radius: 6px;
1812 font-size: var(--t-sm);
1813 color: var(--text);
1814 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1815 white-space: nowrap;
1816 }
1817 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1818 .nav-user-item--danger { color: var(--red); }
1819 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1820
1821 @keyframes navMenuIn {
1822 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1823 to { opacity: 1; transform: translateY(0) scale(1); }
1824 }
1825
2ce1d0bClaude1826 main {
eed4684Claude1827 max-width: 1920px;
2ce1d0bClaude1828 margin: 0 auto;
958d26aClaude1829 padding: 36px 24px 80px;
2ce1d0bClaude1830 flex: 1;
1831 width: 100%;
ed6e438Claude1832 /* 2026 polish — subtle entrance animation on every page load.
1833 Content fades up 4px over 360ms, giving the site that "alive"
1834 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1835 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1836 }
1837 @keyframes gxMainEnter {
1838 from { opacity: 0; transform: translateY(4px); }
1839 to { opacity: 1; transform: translateY(0); }
1840 }
1841 @media (prefers-reduced-motion: reduce) {
1842 main { animation: none; }
1843 }
1844 /* 2026 polish — accent focus ring across all focusable elements.
1845 The default browser ring is utilitarian; this is the same width
1846 but tinted to the brand accent so keyboard navigation feels
1847 intentional, not jarring. :focus-visible only — mouse users
1848 never see it. */
1849 :focus-visible {
1850 outline: none;
1851 }
1852 a:focus-visible,
1853 button:focus-visible,
1854 input:focus-visible,
1855 select:focus-visible,
1856 textarea:focus-visible,
1857 [tabindex]:focus-visible {
1858 outline: 2px solid rgba(140, 109, 255, 0.55);
1859 outline-offset: 2px;
1860 border-radius: 4px;
2ce1d0bClaude1861 }
fc1817aClaude1862
958d26aClaude1863 /* Editorial footer: link grid + tagline row */
fc1817aClaude1864 footer {
1865 border-top: 1px solid var(--border);
958d26aClaude1866 padding: 56px 24px 40px;
fc1817aClaude1867 color: var(--text-muted);
958d26aClaude1868 font-size: var(--t-sm);
1869 background:
1870 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1871 var(--bg);
1872 }
1873 footer .footer-inner {
eed4684Claude1874 max-width: 1920px;
958d26aClaude1875 margin: 0 auto;
1876 display: grid;
1877 grid-template-columns: 1fr auto;
1878 gap: 48px;
1879 align-items: start;
1880 }
1881 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1882 footer .footer-tag {
1883 color: var(--text-muted);
1884 font-size: var(--t-sm);
1885 max-width: 320px;
1886 line-height: 1.55;
1887 }
1888 footer .footer-links {
1889 display: grid;
1890 grid-template-columns: repeat(3, minmax(120px, auto));
1891 gap: 0 56px;
1892 }
1893 footer .footer-col-title {
1894 font-family: var(--font-mono);
1895 font-size: 11px;
1896 text-transform: uppercase;
1897 letter-spacing: 0.14em;
1898 color: var(--text-faint);
1899 margin-bottom: var(--s-3);
1900 }
1901 footer .footer-col a {
1902 display: block;
1903 color: var(--text-muted);
1904 font-size: var(--t-sm);
1905 padding: 5px 0;
1906 transition: color var(--t-fast) var(--ease);
1907 }
1908 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1909 footer .footer-bottom {
eed4684Claude1910 max-width: 1920px;
958d26aClaude1911 margin: 40px auto 0;
1912 padding-top: 24px;
1913 border-top: 1px solid var(--border-subtle);
1914 display: flex;
1915 justify-content: space-between;
1916 align-items: center;
2ce1d0bClaude1917 color: var(--text-faint);
1918 font-size: var(--t-xs);
958d26aClaude1919 font-family: var(--font-mono);
1920 letter-spacing: 0.02em;
1921 }
1922 footer .footer-bottom a { color: var(--text-faint); }
1923 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1924 footer .footer-build {
1925 display: inline-flex;
1926 align-items: center;
1927 gap: 6px;
1928 color: var(--text-faint);
1929 font-family: var(--font-mono);
1930 font-size: 11px;
1931 cursor: help;
1932 }
1933 footer .footer-build-dot {
1934 width: 6px; height: 6px;
1935 border-radius: 50%;
1936 background: var(--green);
1937 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1938 animation: footer-build-pulse 2.4s ease-in-out infinite;
1939 }
1940 @keyframes footer-build-pulse {
1941 0%, 100% { opacity: 0.6; }
1942 50% { opacity: 1; }
1943 }
958d26aClaude1944 @media (max-width: 768px) {
1945 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1946 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1947 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1948 }
1949
2ce1d0bClaude1950 /* ============================================================ */
1951 /* Buttons */
1952 /* ============================================================ */
dc26881CC LABS App1953 /* ============================================================ */
1954 /* Buttons — Block U2 senior polish pass. */
1955 /* Rules: */
1956 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1957 /* · active presses back down to 0 (80ms — faster on press) */
1958 /* · focus-visible uses a soft box-shadow ring (no outline) */
1959 /* · primary gradient shifts position on hover for a slow */
1960 /* 600ms shimmer */
1961 /* · disabled never lifts and never animates */
1962 /* ============================================================ */
06d5ffeClaude1963 .btn {
1964 display: inline-flex;
1965 align-items: center;
2ce1d0bClaude1966 justify-content: center;
958d26aClaude1967 gap: 7px;
2ce1d0bClaude1968 padding: 7px 14px;
1969 border-radius: var(--r-sm);
958d26aClaude1970 font-family: var(--font-sans);
2ce1d0bClaude1971 font-size: var(--t-sm);
06d5ffeClaude1972 font-weight: 500;
1973 border: 1px solid var(--border);
2ce1d0bClaude1974 background: var(--bg-elevated);
06d5ffeClaude1975 color: var(--text);
1976 cursor: pointer;
1977 text-decoration: none;
958d26aClaude1978 line-height: 1.25;
1979 letter-spacing: -0.008em;
dc26881CC LABS App1980 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1981 Listed once on the base rule so :active can override only the
1982 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1983 transition:
dc26881CC LABS App1984 background 180ms ease,
1985 border-color 180ms ease,
1986 transform 180ms ease,
1987 box-shadow 180ms ease,
1988 color 180ms ease;
2ce1d0bClaude1989 user-select: none;
1990 white-space: nowrap;
958d26aClaude1991 position: relative;
06d5ffeClaude1992 }
2ce1d0bClaude1993 .btn:hover {
1994 background: var(--bg-surface);
1995 border-color: var(--border-strong);
958d26aClaude1996 color: var(--text-strong);
2ce1d0bClaude1997 text-decoration: none;
dc26881CC LABS App1998 /* U2 — universal hover lift + soft accent drop shadow. */
1999 transform: translateY(-1px);
2000 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
2001 }
2002 .btn:active {
2003 transform: translateY(0);
2004 transition-duration: 80ms;
2005 }
2006 /* U2 — soft modern focus ring via box-shadow, not outline. */
2007 .btn:focus-visible {
2008 outline: none;
2009 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude2010 }
2011
2012 .btn-primary {
2013 background: var(--accent-gradient);
dc26881CC LABS App2014 background-size: 200% 100%;
2015 background-position: 0% 50%;
2ce1d0bClaude2016 border-color: transparent;
2017 color: #fff;
2018 font-weight: 600;
958d26aClaude2019 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude2020 box-shadow:
958d26aClaude2021 inset 0 1px 0 rgba(255,255,255,0.22),
2022 inset 0 -1px 0 rgba(0,0,0,0.10),
2023 0 1px 2px rgba(0,0,0,0.40),
2024 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App2025 /* U2 — slower 600ms transition on background-position so the
2026 primary CTA shimmers when the cursor lands. */
2027 transition:
2028 background-position 600ms ease,
2029 transform 180ms ease,
2030 box-shadow 180ms ease,
2031 color 180ms ease;
06d5ffeClaude2032 }
958d26aClaude2033 .btn-primary::before {
2034 content: '';
2035 position: absolute;
2036 inset: 0;
2037 border-radius: inherit;
2038 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
2039 opacity: 0;
2040 transition: opacity var(--t-fast) var(--ease);
2041 pointer-events: none;
2ce1d0bClaude2042 }
2043 .btn-primary:hover {
958d26aClaude2044 color: #fff;
2ce1d0bClaude2045 background: var(--accent-gradient);
dc26881CC LABS App2046 background-size: 200% 100%;
2047 background-position: 100% 50%;
958d26aClaude2048 border-color: transparent;
dc26881CC LABS App2049 transform: translateY(-1px);
2ce1d0bClaude2050 box-shadow:
958d26aClaude2051 inset 0 1px 0 rgba(255,255,255,0.30),
2052 inset 0 -1px 0 rgba(0,0,0,0.10),
2053 0 6px 18px -4px rgba(140,109,255,0.45),
2054 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude2055 }
958d26aClaude2056 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App2057 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2058 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2059 .btn-primary:focus-visible {
2060 box-shadow:
2061 inset 0 1px 0 rgba(255,255,255,0.22),
2062 0 0 0 3px rgba(140,109,255,0.35);
2063 }
2ce1d0bClaude2064
2065 .btn-danger {
2066 background: transparent;
958d26aClaude2067 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2068 color: var(--red);
2069 }
2070 .btn-danger:hover {
958d26aClaude2071 background: rgba(248,113,113,0.08);
2ce1d0bClaude2072 border-color: var(--red);
958d26aClaude2073 color: var(--red);
dc26881CC LABS App2074 transform: translateY(-1px);
2075 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2076 }
dc26881CC LABS App2077 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2078
2079 .btn-ghost {
2080 background: transparent;
2081 border-color: transparent;
2082 color: var(--text-muted);
2083 }
2084 .btn-ghost:hover {
2085 background: var(--bg-hover);
958d26aClaude2086 color: var(--text-strong);
2ce1d0bClaude2087 border-color: var(--border);
dc26881CC LABS App2088 transform: translateY(-1px);
2089 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2090 }
2091
958d26aClaude2092 .btn-secondary {
2093 background: var(--bg-elevated);
2094 border-color: var(--border-strong);
2095 color: var(--text-strong);
2096 }
2097 .btn-secondary:hover {
2098 background: var(--bg-surface);
2099 border-color: var(--border-strong);
dc26881CC LABS App2100 transform: translateY(-1px);
2101 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2102 }
2103
2104 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2105 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2106 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2107 .btn-block { width: 100%; }
2ce1d0bClaude2108
dc26881CC LABS App2109 /* U2 — disabled never lifts, never shimmers, never glows. */
2110 .btn:disabled,
2111 .btn[aria-disabled='true'],
2112 .btn:disabled:hover,
2113 .btn[aria-disabled='true']:hover {
2114 opacity: 0.5;
2ce1d0bClaude2115 cursor: not-allowed;
2116 pointer-events: none;
dc26881CC LABS App2117 transform: none;
2118 box-shadow: none;
2119 }
2120 @media (prefers-reduced-motion: reduce) {
2121 .btn,
2122 .btn:hover,
2123 .btn:active,
2124 .btn-primary,
2125 .btn-primary:hover {
2126 transform: none;
2127 transition: background-color 80ms linear, color 80ms linear;
2128 }
2ce1d0bClaude2129 }
2130
2131 /* ============================================================ */
2132 /* Forms */
2133 /* ============================================================ */
2134 .form-group { margin-bottom: 20px; }
2135 .form-group label {
2136 display: block;
2137 font-size: var(--t-sm);
2138 font-weight: 500;
2139 margin-bottom: 6px;
2140 color: var(--text);
2141 letter-spacing: -0.005em;
2142 }
2143 .form-group input,
2144 .form-group textarea,
2145 .form-group select,
2146 input[type='text'], input[type='email'], input[type='password'],
2147 input[type='url'], input[type='search'], input[type='number'],
2148 textarea, select {
06d5ffeClaude2149 width: 100%;
2ce1d0bClaude2150 padding: 9px 12px;
2151 background: var(--bg-secondary);
06d5ffeClaude2152 border: 1px solid var(--border);
2ce1d0bClaude2153 border-radius: var(--r-sm);
06d5ffeClaude2154 color: var(--text);
2ce1d0bClaude2155 font-size: var(--t-sm);
06d5ffeClaude2156 font-family: var(--font-sans);
2ce1d0bClaude2157 transition:
2158 border-color var(--t-fast) var(--ease),
2159 background var(--t-fast) var(--ease),
2160 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2161 }
2ce1d0bClaude2162 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2163 color: var(--text-faint);
06d5ffeClaude2164 }
2ce1d0bClaude2165 .form-group input:hover, textarea:hover, select:hover,
2166 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2167 border-color: var(--border-strong);
2168 }
2169 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2170 input:focus, textarea:focus, select:focus {
06d5ffeClaude2171 outline: none;
2ce1d0bClaude2172 background: var(--bg);
2173 border-color: var(--border-focus);
2174 box-shadow: var(--ring);
06d5ffeClaude2175 }
2ce1d0bClaude2176 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2177 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2178
2ce1d0bClaude2179 /* ============================================================ */
2180 /* Auth (register / login / verify) */
2181 /* ============================================================ */
2182 .auth-container {
98f45b4Claude2183 /* 2026 polish — wider, more generous, with a subtle accent-glow
2184 border and gradient top-edge so it reads as a premium product
2185 gateway, not a stock form. The 480px width feels intentional
2186 (not cramped, not endless). */
2187 max-width: 480px;
2188 margin: 72px auto;
2189 padding: 40px 40px 36px;
2ce1d0bClaude2190 background: var(--bg-elevated);
2191 border: 1px solid var(--border);
98f45b4Claude2192 border-radius: 16px;
2193 box-shadow:
2194 var(--elev-2),
2195 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2196 position: relative;
2197 overflow: hidden;
2198 }
2199 .auth-container::before {
2200 /* Hairline gradient accent on the top edge — signals 'AI-native'
2201 without shouting. Pointer-events disabled so it never interferes
2202 with form interactions. */
2203 content: '';
2204 position: absolute;
2205 top: 0;
2206 left: 0;
2207 right: 0;
2208 height: 2px;
2209 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2210 opacity: 0.7;
2211 pointer-events: none;
2ce1d0bClaude2212 }
2213 .auth-container h2 {
98f45b4Claude2214 margin: 0 0 8px;
2215 font-size: 28px;
2216 font-weight: 700;
2217 font-family: var(--font-display);
2218 letter-spacing: -0.025em;
2219 color: var(--text-strong);
2220 line-height: 1.15;
2221 }
2222 .auth-container .auth-subtitle {
2223 color: var(--text-muted);
2224 font-size: 14.5px;
2225 line-height: 1.5;
2226 margin: 0 0 24px;
2ce1d0bClaude2227 }
2228 .auth-container > p {
2229 color: var(--text-muted);
2230 font-size: var(--t-sm);
2231 margin-bottom: 24px;
2232 }
98f45b4Claude2233 .auth-container .btn-primary {
2234 width: 100%;
2235 padding: 12px 16px;
2236 font-size: 15px;
2237 font-weight: 600;
2238 margin-top: 4px;
2239 }
582cdacClaude2240
2241 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2242 with a brand-coloured logo on the left and a label centred-trailing.
2243 Hover lifts 1px with a subtle shadow — matches the rest of the
2244 button system but reads as a brand-affiliated action, not a brand-
2245 coloured primary CTA. */
2246 .auth-container .oauth-btn {
2247 display: flex;
2248 align-items: center;
2249 justify-content: center;
2250 gap: 10px;
2251 width: 100%;
2252 padding: 11px 16px;
2253 background: var(--bg-surface, var(--bg-elevated));
2254 border: 1px solid var(--border);
2255 border-radius: var(--r-md, 8px);
2256 color: var(--text-strong);
2257 font-family: var(--font-sans);
2258 font-size: 14.5px;
2259 font-weight: 500;
2260 text-decoration: none;
2261 transition:
2262 transform var(--t-base, 180ms) var(--ease, ease),
2263 box-shadow var(--t-base, 180ms) var(--ease, ease),
2264 background var(--t-fast, 120ms) var(--ease, ease),
2265 border-color var(--t-fast, 120ms) var(--ease, ease);
2266 }
2267 .auth-container .oauth-btn:hover {
2268 transform: translateY(-1px);
2269 background: var(--bg-hover);
2270 border-color: var(--text-muted);
2271 color: var(--text-strong);
2272 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2273 text-decoration: none;
2274 }
2275 .auth-container .oauth-btn:focus-visible {
2276 outline: 2px solid rgba(140, 109, 255, 0.55);
2277 outline-offset: 2px;
2278 }
2279 .auth-container .oauth-btn .oauth-icon {
2280 flex-shrink: 0;
2281 }
2282 /* GitHub icon adopts the text colour so it reads in both themes. */
2283 .auth-container .oauth-github .oauth-icon {
2284 color: var(--text-strong);
2285 }
2286 /* Google logo uses the official 4-colour treatment via inline SVG fill
2287 attributes — nothing to override here. */
2288 /* "or" divider between the password form and provider buttons */
2289 .auth-container .auth-divider {
2290 display: flex;
2291 align-items: center;
2292 gap: 12px;
2293 margin: 20px 0 12px;
2294 color: var(--text-faint);
2295 font-size: 12px;
2296 letter-spacing: 0.08em;
2297 text-transform: uppercase;
2298 }
2299 .auth-container .auth-divider::before,
2300 .auth-container .auth-divider::after {
2301 content: '';
2302 flex: 1;
2303 height: 1px;
2304 background: var(--border);
2305 }
06d5ffeClaude2306 .auth-error {
958d26aClaude2307 background: rgba(248,113,113,0.08);
2308 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2309 color: var(--red);
2ce1d0bClaude2310 padding: 10px 14px;
2311 border-radius: var(--r-sm);
06d5ffeClaude2312 margin-bottom: 16px;
2ce1d0bClaude2313 font-size: var(--t-sm);
06d5ffeClaude2314 }
2315 .auth-success {
958d26aClaude2316 background: rgba(52,211,153,0.08);
2317 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2318 color: var(--green);
2ce1d0bClaude2319 padding: 10px 14px;
2320 border-radius: var(--r-sm);
06d5ffeClaude2321 margin-bottom: 16px;
2ce1d0bClaude2322 font-size: var(--t-sm);
2323 }
2324 .auth-switch {
2325 margin-top: 20px;
2326 font-size: var(--t-sm);
2327 color: var(--text-muted);
2328 text-align: center;
2329 }
2330 .banner {
2331 background: var(--accent-gradient-faint);
958d26aClaude2332 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2333 color: var(--text);
2334 padding: 10px 14px;
2335 border-radius: var(--r-sm);
2336 font-size: var(--t-sm);
06d5ffeClaude2337 }
2338
2ce1d0bClaude2339 /* ============================================================ */
2340 /* Settings */
2341 /* ============================================================ */
2342 .settings-container { max-width: 720px; }
2343 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2344 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2345 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2346 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2347 .ssh-keys-list { margin-bottom: 24px; }
2348 .ssh-key-item {
2349 display: flex;
2350 justify-content: space-between;
2351 align-items: center;
2ce1d0bClaude2352 padding: 14px 16px;
06d5ffeClaude2353 border: 1px solid var(--border);
2ce1d0bClaude2354 border-radius: var(--r-md);
06d5ffeClaude2355 margin-bottom: 8px;
2ce1d0bClaude2356 background: var(--bg-elevated);
2357 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2358 }
2ce1d0bClaude2359 .ssh-key-item:hover { border-color: var(--border-strong); }
2360 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2361 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2362
2ce1d0bClaude2363 /* ============================================================ */
2364 /* Repo header + nav */
2365 /* ============================================================ */
fc1817aClaude2366 .repo-header {
2367 display: flex;
2368 align-items: center;
debcf27Claude2369 gap: 12px;
2370 margin-bottom: 22px;
2371 }
2372 .repo-header-title {
2373 display: flex;
2374 align-items: center;
2375 gap: 10px;
2376 font-family: var(--font-display);
2377 font-size: 24px;
2378 letter-spacing: -0.025em;
2379 flex-wrap: wrap;
2380 }
2381 .repo-header .owner {
2382 color: var(--text-muted);
2383 font-weight: 500;
2384 transition: color var(--t-fast) var(--ease);
2385 }
2386 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2387 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2388 .repo-header .name {
2389 color: var(--text-strong);
2390 font-weight: 700;
2391 letter-spacing: -0.028em;
fc1817aClaude2392 }
2ce1d0bClaude2393 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2394 .repo-header-fork {
2395 font-family: var(--font-mono);
2396 font-size: 11px;
2397 color: var(--text-muted);
2398 margin-top: 4px;
2399 letter-spacing: 0.01em;
2400 }
2401 .repo-header-fork a { color: var(--text-muted); }
2402 .repo-header-fork a:hover { color: var(--accent); }
2403 .repo-header-pill {
2404 display: inline-flex;
2405 align-items: center;
2406 padding: 2px 10px;
2407 border-radius: var(--r-full);
2408 font-family: var(--font-mono);
2409 font-size: 10px;
2410 font-weight: 600;
2411 letter-spacing: 0.12em;
2412 text-transform: uppercase;
2413 line-height: 1.6;
2414 vertical-align: 4px;
2415 }
2416 .repo-header-pill-archived {
2417 background: rgba(251,191,36,0.10);
2418 color: var(--yellow);
2419 border: 1px solid rgba(251,191,36,0.30);
2420 }
2421 .repo-header-pill-template {
2422 background: var(--accent-gradient-faint);
2423 color: var(--accent);
2424 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2425 }
06d5ffeClaude2426 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2427
8c790e0Claude2428 /* Push Watch discoverability — live/recent indicator in the repo header */
2429 @keyframes pushWatchPulse {
2430 0%, 100% { opacity: 1; }
2431 50% { opacity: 0.3; }
2432 }
2433 .repo-header-live-badge {
2434 display: inline-flex;
2435 align-items: center;
2436 gap: 5px;
2437 padding: 2px 9px;
2438 border-radius: 999px;
2439 font-size: 12px;
2440 font-weight: 600;
2441 letter-spacing: 0.02em;
2442 text-decoration: none !important;
2443 vertical-align: 3px;
2444 transition: filter 140ms ease, opacity 140ms ease;
2445 }
2446 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2447 .repo-header-live-badge--live {
2448 background: rgba(218, 54, 51, 0.12);
2449 color: #f97171;
2450 border: 1px solid rgba(218, 54, 51, 0.35);
2451 }
2452 .repo-header-live-badge--live .repo-header-live-dot {
2453 animation: pushWatchPulse 1.2s ease-in-out infinite;
2454 display: inline-block;
2455 }
2456 .repo-header-live-badge--recent {
2457 background: rgba(140, 109, 255, 0.08);
2458 color: var(--text-muted);
2459 border: 1px solid rgba(140, 109, 255, 0.22);
2460 }
2461 .repo-header-live-badge--recent:hover { color: var(--accent); }
2462 @media (prefers-reduced-motion: reduce) {
2463 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2464 }
2465
fc1817aClaude2466 .repo-nav {
2467 display: flex;
debcf27Claude2468 gap: 1px;
fc1817aClaude2469 border-bottom: 1px solid var(--border);
debcf27Claude2470 margin-bottom: 28px;
2ce1d0bClaude2471 overflow-x: auto;
2472 scrollbar-width: thin;
fc1817aClaude2473 }
2ce1d0bClaude2474 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2475 .repo-nav a {
debcf27Claude2476 position: relative;
2477 padding: 11px 14px;
fc1817aClaude2478 color: var(--text-muted);
2479 border-bottom: 2px solid transparent;
2ce1d0bClaude2480 font-size: var(--t-sm);
2481 font-weight: 500;
2482 margin-bottom: -1px;
debcf27Claude2483 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2484 white-space: nowrap;
2485 }
debcf27Claude2486 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2487 .repo-nav a.active {
debcf27Claude2488 color: var(--text-strong);
2489 font-weight: 600;
2490 }
2491 .repo-nav a.active::after {
2492 content: '';
2493 position: absolute;
2494 left: 14px;
2495 right: 14px;
2496 bottom: -1px;
2497 height: 2px;
2498 background: var(--accent-gradient);
2499 border-radius: 2px;
2500 }
2501 /* AI links in the right-side cluster — sparkle accent */
2502 .repo-nav-ai {
2503 color: var(--accent) !important;
2504 font-weight: 500;
2505 }
2506 .repo-nav-ai:hover {
2507 color: var(--accent-hover) !important;
2508 background: var(--accent-gradient-faint) !important;
2509 }
2510 .repo-nav-ai.active {
2511 color: var(--accent-hover) !important;
2ce1d0bClaude2512 font-weight: 600;
fc1817aClaude2513 }
2514
2ce1d0bClaude2515 .breadcrumb {
2516 display: flex;
debcf27Claude2517 gap: 6px;
2ce1d0bClaude2518 align-items: center;
debcf27Claude2519 margin-bottom: 18px;
2ce1d0bClaude2520 color: var(--text-muted);
2521 font-size: var(--t-sm);
2522 font-family: var(--font-mono);
debcf27Claude2523 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2524 }
2525 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2526 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2527 .breadcrumb strong {
2528 color: var(--text-strong);
2529 font-weight: 600;
fc1817aClaude2530 }
2531
debcf27Claude2532 /* Page header — eyebrow + title + optional actions row.
2533 Use on dashboard, settings, admin, any "section landing" page. */
2534 .page-header {
2535 display: flex;
2536 align-items: flex-end;
2537 justify-content: space-between;
2538 gap: 16px;
2539 margin-bottom: 28px;
2540 padding-bottom: 20px;
2541 border-bottom: 1px solid var(--border-subtle);
2542 flex-wrap: wrap;
2543 }
2544 .page-header-text { flex: 1; min-width: 280px; }
2545 .page-header .eyebrow { margin-bottom: var(--s-2); }
2546 .page-header h1 {
2547 font-family: var(--font-display);
2548 font-size: clamp(24px, 3vw, 36px);
2549 line-height: 1.1;
2550 letter-spacing: -0.028em;
2551 margin-bottom: 6px;
2552 }
2553 .page-header p {
2554 color: var(--text-muted);
2555 font-size: var(--t-sm);
2556 line-height: 1.55;
2557 max-width: 640px;
2558 }
2559 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2560
2ce1d0bClaude2561 /* ============================================================ */
2562 /* File browser table */
2563 /* ============================================================ */
2564 .file-table {
2565 width: 100%;
2566 border: 1px solid var(--border);
2567 border-radius: var(--r-md);
2568 overflow: hidden;
2569 background: var(--bg-elevated);
debcf27Claude2570 border-collapse: collapse;
2ce1d0bClaude2571 }
debcf27Claude2572 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2573 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2574 .file-table td {
2575 padding: 9px 16px;
2576 font-size: var(--t-sm);
2577 font-family: var(--font-mono);
2578 font-feature-settings: var(--mono-feat);
2579 }
2ce1d0bClaude2580 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2581 .file-icon {
2582 width: 22px;
2583 color: var(--text-faint);
2584 font-size: 13px;
2585 text-align: center;
2586 }
2587 .file-name a {
2588 color: var(--text);
2589 font-weight: 500;
2590 transition: color var(--t-fast) var(--ease);
2591 }
2592 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2593
2ce1d0bClaude2594 /* ============================================================ */
2595 /* Blob view */
2596 /* ============================================================ */
fc1817aClaude2597 .blob-view {
2598 border: 1px solid var(--border);
2ce1d0bClaude2599 border-radius: var(--r-md);
fc1817aClaude2600 overflow: hidden;
2ce1d0bClaude2601 background: var(--bg-elevated);
fc1817aClaude2602 }
2603 .blob-header {
2604 background: var(--bg-secondary);
2ce1d0bClaude2605 padding: 10px 16px;
fc1817aClaude2606 border-bottom: 1px solid var(--border);
2ce1d0bClaude2607 font-size: var(--t-sm);
fc1817aClaude2608 color: var(--text-muted);
06d5ffeClaude2609 display: flex;
2610 justify-content: space-between;
2611 align-items: center;
fc1817aClaude2612 }
2613 .blob-code {
2614 overflow-x: auto;
2615 font-family: var(--font-mono);
2ce1d0bClaude2616 font-size: var(--t-sm);
2617 line-height: 1.65;
fc1817aClaude2618 }
2619 .blob-code table { width: 100%; border-collapse: collapse; }
2620 .blob-code .line-num {
2621 width: 1%;
2ce1d0bClaude2622 min-width: 56px;
2623 padding: 0 14px;
fc1817aClaude2624 text-align: right;
2ce1d0bClaude2625 color: var(--text-faint);
fc1817aClaude2626 user-select: none;
2627 white-space: nowrap;
2628 border-right: 1px solid var(--border);
2629 }
2ce1d0bClaude2630 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2631 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2632
2ce1d0bClaude2633 /* ============================================================ */
2634 /* Commits + diffs */
2635 /* ============================================================ */
2636 .commit-list {
2637 border: 1px solid var(--border);
2638 border-radius: var(--r-md);
2639 overflow: hidden;
2640 background: var(--bg-elevated);
2641 }
fc1817aClaude2642 .commit-item {
2643 display: flex;
2644 justify-content: space-between;
2645 align-items: center;
debcf27Claude2646 padding: 14px 18px;
2647 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2648 transition: background var(--t-fast) var(--ease);
fc1817aClaude2649 }
2650 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2651 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2652 .commit-message {
2653 font-size: var(--t-sm);
2654 font-weight: 500;
2655 line-height: 1.45;
2656 color: var(--text-strong);
2657 letter-spacing: -0.005em;
2658 }
2659 .commit-meta {
2660 font-family: var(--font-mono);
2661 font-size: 11px;
2662 color: var(--text-muted);
2663 margin-top: 5px;
2664 letter-spacing: 0.01em;
2665 }
fc1817aClaude2666 .commit-sha {
2667 font-family: var(--font-mono);
debcf27Claude2668 font-feature-settings: var(--mono-feat);
2669 font-size: 11px;
2670 padding: 4px 9px;
fc1817aClaude2671 background: var(--bg-tertiary);
2672 border: 1px solid var(--border);
2ce1d0bClaude2673 border-radius: var(--r-sm);
debcf27Claude2674 color: var(--accent);
2675 font-weight: 600;
2676 letter-spacing: 0.02em;
2ce1d0bClaude2677 transition: all var(--t-fast) var(--ease);
fc1817aClaude2678 }
debcf27Claude2679 .commit-sha:hover {
2680 border-color: rgba(140,109,255,0.40);
2681 background: var(--accent-gradient-faint);
2682 color: var(--accent-hover);
2683 text-decoration: none;
fc1817aClaude2684 }
2685
2686 .diff-view { margin-top: 16px; }
2687 .diff-file {
2688 border: 1px solid var(--border);
2ce1d0bClaude2689 border-radius: var(--r-md);
fc1817aClaude2690 margin-bottom: 16px;
2691 overflow: hidden;
2ce1d0bClaude2692 background: var(--bg-elevated);
fc1817aClaude2693 }
2694 .diff-file-header {
2695 background: var(--bg-secondary);
2ce1d0bClaude2696 padding: 10px 16px;
fc1817aClaude2697 border-bottom: 1px solid var(--border);
2698 font-family: var(--font-mono);
2ce1d0bClaude2699 font-size: var(--t-sm);
2700 font-weight: 500;
fc1817aClaude2701 }
2702 .diff-content {
2703 overflow-x: auto;
2704 font-family: var(--font-mono);
2ce1d0bClaude2705 font-size: var(--t-sm);
2706 line-height: 1.65;
fc1817aClaude2707 }
958d26aClaude2708 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2709 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2710 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2711 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2712
2713 .stat-add { color: var(--green); font-weight: 600; }
2714 .stat-del { color: var(--red); font-weight: 600; }
2715
2ce1d0bClaude2716 /* ============================================================ */
2717 /* Empty state */
2718 /* ============================================================ */
fc1817aClaude2719 .empty-state {
2720 text-align: center;
958d26aClaude2721 padding: 96px 24px;
fc1817aClaude2722 color: var(--text-muted);
2ce1d0bClaude2723 border: 1px dashed var(--border);
2724 border-radius: var(--r-lg);
958d26aClaude2725 background:
2726 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2727 var(--bg-elevated);
2728 position: relative;
2729 overflow: hidden;
2730 }
2731 .empty-state::before {
2732 content: '';
2733 position: absolute;
2734 inset: 0;
2735 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2736 background-size: 24px 24px;
2737 opacity: 0.5;
2738 pointer-events: none;
2739 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2740 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2741 }
2742 :root[data-theme='light'] .empty-state::before {
2743 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2744 }
958d26aClaude2745 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2746 .empty-state h2 {
958d26aClaude2747 font-size: var(--t-xl);
2ce1d0bClaude2748 margin-bottom: 8px;
958d26aClaude2749 color: var(--text-strong);
2750 letter-spacing: -0.022em;
2ce1d0bClaude2751 }
958d26aClaude2752 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2753 .empty-state pre {
2754 text-align: left;
2755 display: inline-block;
2756 background: var(--bg-secondary);
958d26aClaude2757 padding: 18px 24px;
2758 border-radius: var(--r-md);
fc1817aClaude2759 border: 1px solid var(--border);
2760 font-family: var(--font-mono);
958d26aClaude2761 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2762 font-size: var(--t-sm);
958d26aClaude2763 margin-top: 24px;
fc1817aClaude2764 line-height: 1.8;
2ce1d0bClaude2765 color: var(--text);
958d26aClaude2766 box-shadow: var(--elev-1);
fc1817aClaude2767 }
2768
2ce1d0bClaude2769 /* ============================================================ */
2770 /* Badges */
2771 /* ============================================================ */
fc1817aClaude2772 .badge {
2ce1d0bClaude2773 display: inline-flex;
2774 align-items: center;
2775 gap: 4px;
2776 padding: 2px 9px;
2777 border-radius: var(--r-full);
2778 font-size: var(--t-xs);
fc1817aClaude2779 font-weight: 500;
2780 background: var(--bg-tertiary);
2781 border: 1px solid var(--border);
2782 color: var(--text-muted);
2ce1d0bClaude2783 line-height: 1.5;
fc1817aClaude2784 }
2785
2ce1d0bClaude2786 /* ============================================================ */
2787 /* Branch dropdown */
2788 /* ============================================================ */
fc1817aClaude2789 .branch-selector {
2790 display: inline-flex;
2791 align-items: center;
2ce1d0bClaude2792 gap: 6px;
2793 padding: 6px 12px;
2794 background: var(--bg-elevated);
fc1817aClaude2795 border: 1px solid var(--border);
2ce1d0bClaude2796 border-radius: var(--r-sm);
2797 font-size: var(--t-sm);
fc1817aClaude2798 color: var(--text);
2799 margin-bottom: 12px;
2ce1d0bClaude2800 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2801 }
2ce1d0bClaude2802 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2803
06d5ffeClaude2804 .branch-dropdown {
2805 position: relative;
2806 display: inline-block;
2807 margin-bottom: 12px;
2808 }
2809 .branch-dropdown-content {
2810 display: none;
2811 position: absolute;
2ce1d0bClaude2812 top: calc(100% + 4px);
06d5ffeClaude2813 left: 0;
2814 z-index: 10;
2ce1d0bClaude2815 min-width: 220px;
2816 background: var(--bg-elevated);
2817 border: 1px solid var(--border-strong);
2818 border-radius: var(--r-md);
2819 overflow: hidden;
2820 box-shadow: var(--elev-3);
06d5ffeClaude2821 }
2822 .branch-dropdown:hover .branch-dropdown-content,
2823 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2824 .branch-dropdown-content a {
2825 display: block;
2ce1d0bClaude2826 padding: 9px 14px;
2827 font-size: var(--t-sm);
06d5ffeClaude2828 color: var(--text);
2829 border-bottom: 1px solid var(--border);
2ce1d0bClaude2830 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2831 }
2832 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2833 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2834 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2835
2ce1d0bClaude2836 /* ============================================================ */
2837 /* Card grid */
2838 /* ============================================================ */
2839 .card-grid {
2840 display: grid;
2841 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2842 gap: 16px;
2843 }
fc1817aClaude2844 .card {
2845 border: 1px solid var(--border);
2ce1d0bClaude2846 border-radius: var(--r-md);
958d26aClaude2847 padding: 20px;
2ce1d0bClaude2848 background: var(--bg-elevated);
2849 transition:
958d26aClaude2850 border-color var(--t-base) var(--ease),
2851 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2852 box-shadow var(--t-base) var(--ease);
2853 position: relative;
2854 overflow: hidden;
958d26aClaude2855 isolation: isolate;
2856 }
2857 .card::before {
2858 content: '';
2859 position: absolute;
2860 inset: 0;
2861 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2862 opacity: 0;
2863 transition: opacity var(--t-base) var(--ease);
2864 pointer-events: none;
2865 z-index: -1;
2ce1d0bClaude2866 }
2867 .card:hover {
2868 border-color: var(--border-strong);
2869 box-shadow: var(--elev-2);
958d26aClaude2870 transform: translateY(-2px);
2ce1d0bClaude2871 }
958d26aClaude2872 .card:hover::before { opacity: 1; }
2873 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2874 .card h3 a { color: var(--text); font-weight: 600; }
2875 .card h3 a:hover { color: var(--text-link); }
2876 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2877 .card-meta {
2878 display: flex;
2879 gap: 14px;
2880 margin-top: 14px;
2881 padding-top: 14px;
2882 border-top: 1px solid var(--border);
2883 font-size: var(--t-xs);
2884 color: var(--text-muted);
2885 }
2886 .card-meta span { display: flex; align-items: center; gap: 5px; }
2887
2888 /* ============================================================ */
2889 /* Stat card / box */
2890 /* ============================================================ */
2891 .stat-card {
2892 background: var(--bg-elevated);
2893 border: 1px solid var(--border);
2894 border-radius: var(--r-md);
fc1817aClaude2895 padding: 16px;
2ce1d0bClaude2896 transition: border-color var(--t-fast) var(--ease);
2897 }
2898 .stat-card:hover { border-color: var(--border-strong); }
2899 .stat-label {
2900 font-size: var(--t-xs);
2901 color: var(--text-muted);
2902 text-transform: uppercase;
2903 letter-spacing: 0.06em;
2904 font-weight: 500;
2905 }
2906 .stat-value {
2907 font-size: var(--t-xl);
2908 font-weight: 700;
2909 margin-top: 4px;
2910 letter-spacing: -0.025em;
2911 color: var(--text);
2912 font-feature-settings: 'tnum';
fc1817aClaude2913 }
06d5ffeClaude2914
2ce1d0bClaude2915 /* ============================================================ */
2916 /* Star button */
2917 /* ============================================================ */
06d5ffeClaude2918 .star-btn {
2919 display: inline-flex;
2920 align-items: center;
2921 gap: 6px;
2ce1d0bClaude2922 padding: 5px 12px;
2923 background: var(--bg-elevated);
06d5ffeClaude2924 border: 1px solid var(--border);
2ce1d0bClaude2925 border-radius: var(--r-sm);
06d5ffeClaude2926 color: var(--text);
2ce1d0bClaude2927 font-size: var(--t-sm);
2928 font-weight: 500;
06d5ffeClaude2929 cursor: pointer;
2ce1d0bClaude2930 transition: all var(--t-fast) var(--ease);
2931 }
2932 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2933 .star-btn.starred {
2934 color: var(--yellow);
958d26aClaude2935 border-color: rgba(251,191,36,0.4);
2936 background: rgba(251,191,36,0.08);
06d5ffeClaude2937 }
2938
2ce1d0bClaude2939 /* ============================================================ */
2940 /* User profile */
2941 /* ============================================================ */
06d5ffeClaude2942 .user-profile {
2943 display: flex;
2944 gap: 32px;
2945 margin-bottom: 32px;
2ce1d0bClaude2946 padding: 24px;
2947 background: var(--bg-elevated);
2948 border: 1px solid var(--border);
2949 border-radius: var(--r-lg);
06d5ffeClaude2950 }
2951 .user-avatar {
2952 width: 96px;
2953 height: 96px;
2ce1d0bClaude2954 border-radius: var(--r-full);
2955 background: var(--accent-gradient-soft);
2956 border: 1px solid var(--border-strong);
06d5ffeClaude2957 display: flex;
2958 align-items: center;
2959 justify-content: center;
2ce1d0bClaude2960 font-size: 36px;
2961 font-weight: 600;
2962 color: var(--text);
06d5ffeClaude2963 flex-shrink: 0;
2ce1d0bClaude2964 letter-spacing: -0.02em;
06d5ffeClaude2965 }
2ce1d0bClaude2966 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2967 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2968 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2969
2ce1d0bClaude2970 /* ============================================================ */
2971 /* New repo form */
2972 /* ============================================================ */
2973 .new-repo-form { max-width: 640px; }
2974 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2975 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2976 .visibility-option {
2977 flex: 1;
2ce1d0bClaude2978 padding: 16px;
06d5ffeClaude2979 border: 1px solid var(--border);
2ce1d0bClaude2980 border-radius: var(--r-md);
2981 background: var(--bg-elevated);
06d5ffeClaude2982 cursor: pointer;
2ce1d0bClaude2983 text-align: left;
2984 transition: all var(--t-fast) var(--ease);
2985 }
2986 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2987 .visibility-option:has(input:checked) {
2988 border-color: var(--accent);
2989 background: var(--accent-gradient-faint);
2990 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2991 }
2992 .visibility-option input { display: none; }
2ce1d0bClaude2993 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2994 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2995
2ce1d0bClaude2996 /* ============================================================ */
2997 /* Issues */
2998 /* ============================================================ */
2999 .issue-tabs { display: flex; gap: 4px; }
3000 .issue-tabs a {
3001 color: var(--text-muted);
3002 font-size: var(--t-sm);
3003 font-weight: 500;
3004 padding: 6px 12px;
3005 border-radius: var(--r-sm);
3006 transition: all var(--t-fast) var(--ease);
3007 }
3008 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
3009 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude3010
2ce1d0bClaude3011 .issue-list {
3012 border: 1px solid var(--border);
3013 border-radius: var(--r-md);
3014 overflow: hidden;
3015 background: var(--bg-elevated);
3016 }
79136bbClaude3017 .issue-item {
3018 display: flex;
2ce1d0bClaude3019 gap: 14px;
79136bbClaude3020 align-items: flex-start;
2ce1d0bClaude3021 padding: 14px 16px;
79136bbClaude3022 border-bottom: 1px solid var(--border);
2ce1d0bClaude3023 transition: background var(--t-fast) var(--ease);
79136bbClaude3024 }
3025 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude3026 .issue-item:hover { background: var(--bg-hover); }
3027 .issue-state-icon {
3028 font-size: 14px;
3029 padding-top: 2px;
3030 width: 18px;
3031 height: 18px;
3032 display: inline-flex;
3033 align-items: center;
3034 justify-content: center;
3035 border-radius: var(--r-full);
3036 flex-shrink: 0;
3037 }
79136bbClaude3038 .state-open { color: var(--green); }
958d26aClaude3039 .state-closed { color: #b69dff; }
2ce1d0bClaude3040 .issue-title {
debcf27Claude3041 font-family: var(--font-display);
3042 font-size: var(--t-md);
2ce1d0bClaude3043 font-weight: 600;
debcf27Claude3044 line-height: 1.35;
3045 letter-spacing: -0.012em;
3046 }
3047 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
3048 .issue-title a:hover { color: var(--accent); text-decoration: none; }
3049 .issue-meta {
3050 font-family: var(--font-mono);
3051 font-size: 11px;
3052 color: var(--text-muted);
3053 margin-top: 5px;
3054 letter-spacing: 0.01em;
2ce1d0bClaude3055 }
79136bbClaude3056
3057 .issue-badge {
3058 display: inline-flex;
3059 align-items: center;
2ce1d0bClaude3060 gap: 6px;
79136bbClaude3061 padding: 4px 12px;
2ce1d0bClaude3062 border-radius: var(--r-full);
3063 font-size: var(--t-sm);
79136bbClaude3064 font-weight: 500;
2ce1d0bClaude3065 line-height: 1.4;
79136bbClaude3066 }
958d26aClaude3067 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3068 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3069 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3070 .state-merged { color: var(--accent); }
958d26aClaude3071 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3072
2ce1d0bClaude3073 .issue-detail { max-width: 920px; }
79136bbClaude3074 .issue-comment-box {
3075 border: 1px solid var(--border);
2ce1d0bClaude3076 border-radius: var(--r-md);
79136bbClaude3077 margin-bottom: 16px;
3078 overflow: hidden;
2ce1d0bClaude3079 background: var(--bg-elevated);
79136bbClaude3080 }
3081 .comment-header {
3082 background: var(--bg-secondary);
2ce1d0bClaude3083 padding: 10px 16px;
79136bbClaude3084 border-bottom: 1px solid var(--border);
2ce1d0bClaude3085 font-size: var(--t-sm);
79136bbClaude3086 color: var(--text-muted);
3087 }
3088
2ce1d0bClaude3089 /* ============================================================ */
3090 /* Panel — flexible container used across many pages */
3091 /* ============================================================ */
3092 .panel {
3093 background: var(--bg-elevated);
3094 border: 1px solid var(--border);
3095 border-radius: var(--r-md);
3096 overflow: hidden;
3097 }
3098 .panel-item {
3099 display: flex;
3100 align-items: center;
3101 gap: 12px;
3102 padding: 12px 16px;
79136bbClaude3103 border-bottom: 1px solid var(--border);
2ce1d0bClaude3104 transition: background var(--t-fast) var(--ease);
3105 }
3106 .panel-item:last-child { border-bottom: none; }
3107 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3108
3109 /* ─── j/k keyboard list navigation ─── */
3110 .is-kbd-focus {
3111 outline: 2px solid rgba(140,109,255,0.6) !important;
3112 outline-offset: -2px;
3113 background: rgba(140,109,255,0.06) !important;
3114 border-radius: 4px;
3115 }
3116 .is-kbd-selected {
3117 outline: 2px solid rgba(52,211,153,0.6) !important;
3118 background: rgba(52,211,153,0.06) !important;
3119 }
2ce1d0bClaude3120 .panel-empty {
3121 padding: 24px;
3122 text-align: center;
79136bbClaude3123 color: var(--text-muted);
2ce1d0bClaude3124 font-size: var(--t-sm);
79136bbClaude3125 }
3126
2ce1d0bClaude3127 /* ============================================================ */
3128 /* Search */
3129 /* ============================================================ */
79136bbClaude3130 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3131
2ce1d0bClaude3132 /* ============================================================ */
3133 /* Timeline */
3134 /* ============================================================ */
3135 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3136 .timeline::before {
3137 content: '';
3138 position: absolute;
3139 left: 4px;
3140 top: 8px;
3141 bottom: 8px;
3142 width: 2px;
2ce1d0bClaude3143 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3144 }
2ce1d0bClaude3145 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3146 .timeline-dot {
3147 position: absolute;
2ce1d0bClaude3148 left: -28px;
3149 top: 8px;
3150 width: 12px;
3151 height: 12px;
3152 border-radius: var(--r-full);
3153 background: var(--accent-gradient);
16b325cClaude3154 border: 2px solid var(--bg);
2ce1d0bClaude3155 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3156 }
3157 .timeline-content {
2ce1d0bClaude3158 background: var(--bg-elevated);
16b325cClaude3159 border: 1px solid var(--border);
2ce1d0bClaude3160 border-radius: var(--r-md);
3161 padding: 14px 16px;
16b325cClaude3162 }
f1ab587Claude3163
2ce1d0bClaude3164 /* ============================================================ */
3165 /* Toggle switch */
3166 /* ============================================================ */
f1ab587Claude3167 .toggle-switch {
3168 position: relative;
3169 display: inline-block;
2ce1d0bClaude3170 width: 40px;
3171 height: 22px;
f1ab587Claude3172 flex-shrink: 0;
3173 margin-left: 16px;
3174 }
3175 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3176 .toggle-slider {
3177 position: absolute;
3178 cursor: pointer;
3179 top: 0; left: 0; right: 0; bottom: 0;
3180 background: var(--bg-tertiary);
3181 border: 1px solid var(--border);
2ce1d0bClaude3182 border-radius: var(--r-full);
3183 transition: all var(--t-base) var(--ease);
f1ab587Claude3184 }
3185 .toggle-slider::before {
3186 content: '';
3187 position: absolute;
2ce1d0bClaude3188 height: 16px;
3189 width: 16px;
f1ab587Claude3190 left: 2px;
3191 bottom: 2px;
3192 background: var(--text-muted);
2ce1d0bClaude3193 border-radius: var(--r-full);
3194 transition: all var(--t-base) var(--ease);
f1ab587Claude3195 }
3196 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3197 background: var(--accent-gradient);
3198 border-color: transparent;
958d26aClaude3199 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3200 }
3201 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3202 transform: translateX(18px);
f1ab587Claude3203 background: #fff;
3204 }
ef8d378Claude3205
3206 /* ============================================================
3207 * 2026 polish layer (purely additive — no layout changes).
3208 * Improves typography rendering, focus states, hover affordances,
3209 * and adds the gradient brand cue to primary buttons. Anything
3210 * that could alter dimensions stays in the rules above.
3211 * ============================================================ */
3212 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3213 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3214 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3215
3216 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3217 h1 { letter-spacing: -0.025em; }
3218
3219 /* Smoother colour transitions everywhere links live */
3220 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3221
3222 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3223 .btn {
3224 transition:
3225 background 120ms cubic-bezier(0.16,1,0.3,1),
3226 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3227 transform 120ms cubic-bezier(0.16,1,0.3,1),
3228 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3229 }
3230 .btn:active { transform: translateY(0.5px); }
3231 .btn:focus-visible {
3232 outline: none;
3233 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3234 }
3235 .btn-primary {
3236 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3237 border-color: transparent;
3238 box-shadow:
3239 inset 0 1px 0 rgba(255,255,255,0.15),
3240 0 1px 2px rgba(168,85,247,0.25);
3241 }
3242 .btn-primary:hover {
3243 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3244 filter: none;
3245 box-shadow:
3246 inset 0 1px 0 rgba(255,255,255,0.20),
3247 0 4px 12px rgba(168,85,247,0.30);
3248 }
3249
3250 /* Inputs: cleaner focus ring + hover */
3251 .form-group input:hover,
3252 .form-group textarea:hover,
3253 .form-group select:hover {
3254 border-color: rgba(255,255,255,0.14);
3255 }
3256 .form-group input:focus,
3257 .form-group textarea:focus,
3258 .form-group select:focus {
3259 border-color: rgba(168,85,247,0.55);
3260 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3261 }
3262 :root[data-theme='light'] .form-group input:hover,
3263 :root[data-theme='light'] .form-group textarea:hover,
3264 :root[data-theme='light'] .form-group select:hover {
3265 border-color: rgba(0,0,0,0.18);
3266 }
3267
3268 /* Cards: subtle hover lift */
3269 .card {
3270 transition:
3271 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3272 transform 160ms cubic-bezier(0.16,1,0.3,1),
3273 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3274 }
3275 .card:hover {
3276 border-color: rgba(255,255,255,0.18);
3277 transform: translateY(-1px);
3278 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3279 }
3280 :root[data-theme='light'] .card:hover {
3281 border-color: rgba(0,0,0,0.18);
3282 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3283 }
3284
3285 /* Issue / commit / panel rows: smoother hover */
3286 .issue-item, .commit-item {
3287 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3288 }
3289 .repo-nav a {
3290 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3291 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3292 }
3293 .nav-link {
3294 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3295 }
3296
3297 /* Auth card: subtle elevation so register/login feel premium */
3298 .auth-container {
3299 background: var(--bg-secondary);
3300 border: 1px solid var(--border);
3301 border-radius: var(--r-lg, 12px);
3302 padding: 32px;
3303 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3304 }
3305 :root[data-theme='light'] .auth-container {
3306 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3307 }
3308 .auth-container h2 { letter-spacing: -0.025em; }
3309
3310 /* Empty state: dashed border, generous padding */
3311 .empty-state {
3312 border: 1px dashed var(--border);
3313 border-radius: var(--r-lg, 12px);
3314 background: var(--bg);
3315 }
3316
3317 /* Badges + commit-sha: smoother transition */
3318 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3319
3320 /* Gradient text utility — matches landing's accent treatment */
3321 .gradient-text {
3322 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3323 -webkit-background-clip: text;
3324 background-clip: text;
3325 -webkit-text-fill-color: transparent;
3326 }
3327
3328 /* Custom scrollbars (subtle, themed) */
3329 ::-webkit-scrollbar { width: 10px; height: 10px; }
3330 ::-webkit-scrollbar-track { background: transparent; }
3331 ::-webkit-scrollbar-thumb {
3332 background: rgba(255,255,255,0.06);
3333 border: 2px solid var(--bg);
3334 border-radius: 9999px;
3335 }
3336 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3337 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3338 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3339
3340 /* Honour reduced-motion preference */
3341 @media (prefers-reduced-motion: reduce) {
3342 *, *::before, *::after {
3343 animation-duration: 0.01ms !important;
3344 animation-iteration-count: 1 !important;
3345 transition-duration: 0.01ms !important;
3346 }
3347 }
c63b860Claude3348
3349 /* Block O3 — visual coherence additive rules. */
3350 .card.card-p-none { padding: 0; }
3351 .card.card-p-sm { padding: var(--space-3); }
3352 .card.card-p-md { padding: var(--space-4); }
3353 .card.card-p-lg { padding: var(--space-6); }
3354 .card.card-elevated { box-shadow: var(--elev-2); }
3355 .card.card-gradient {
3356 background:
3357 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3358 var(--bg-elevated);
3359 }
3360 .card.card-gradient::before { opacity: 1; }
3361 .notice {
3362 padding: var(--space-3) var(--space-4);
3363 border-radius: var(--radius-md);
3364 border: 1px solid var(--border);
3365 background: var(--bg-elevated);
3366 color: var(--text);
3367 font-size: var(--font-size-sm);
3368 margin-bottom: var(--space-6);
3369 line-height: var(--leading-normal);
3370 }
3371 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3372 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3373 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3374 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3375 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3376 .email-preview {
3377 padding: var(--space-5);
3378 background: #fff;
3379 color: #111;
3380 border-radius: var(--radius-md);
3381 }
3382 .code-block {
3383 margin: var(--space-2) 0 0;
3384 padding: var(--space-3);
3385 background: var(--bg-tertiary);
3386 border: 1px solid var(--border-subtle);
3387 border-radius: var(--radius-sm);
3388 font-family: var(--font-mono);
3389 font-size: var(--font-size-xs);
3390 line-height: var(--leading-normal);
3391 overflow-x: auto;
3392 }
3393 .status-pill-operational {
3394 display: inline-flex;
3395 align-items: center;
3396 padding: var(--space-1) var(--space-3);
3397 border-radius: var(--radius-full);
3398 font-size: var(--font-size-xs);
3399 font-weight: 600;
3400 background: rgba(52,211,153,0.15);
3401 color: var(--green);
3402 }
3403 .api-tag {
3404 display: inline-flex;
3405 align-items: center;
3406 font-size: var(--font-size-xs);
3407 padding: 2px var(--space-2);
3408 border-radius: var(--radius-sm);
3409 font-family: var(--font-mono);
3410 }
3411 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3412 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3413 .stat-number {
3414 font-size: var(--font-size-xl);
3415 font-weight: 700;
3416 color: var(--text-strong);
3417 line-height: var(--leading-tight);
3418 }
3419 .stat-number-accent { color: var(--accent); }
3420 .stat-number-blue { color: var(--blue); }
3421 .stat-number-purple { color: var(--text-link); }
3422 footer .footer-tag-sub {
3423 margin-top: var(--space-2);
3424 font-size: var(--font-size-xs);
3425 color: var(--text-faint);
3426 line-height: var(--leading-normal);
3427 }
3428 footer .footer-version-pill {
3429 display: inline-flex;
3430 align-items: center;
3431 gap: var(--space-2);
3432 padding: var(--space-1) var(--space-3);
3433 border-radius: var(--radius-full);
3434 border: 1px solid var(--border);
3435 background: var(--bg-elevated);
3436 color: var(--text-faint);
3437 font-family: var(--font-mono);
3438 font-size: var(--font-size-xs);
3439 cursor: help;
3440 }
3441 footer .footer-banner {
3442 max-width: 1240px;
3443 margin: var(--space-6) auto 0;
3444 padding: var(--space-3) var(--space-4);
3445 border-radius: var(--radius-md);
3446 border: 1px solid var(--border);
3447 background: var(--bg-elevated);
3448 color: var(--text);
3449 font-family: var(--font-mono);
3450 font-size: var(--font-size-xs);
3451 letter-spacing: 0.04em;
3452 text-transform: uppercase;
3453 text-align: center;
3454 }
3455 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3456 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3457 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3458
cf9178bTest User3459 /* ============================================================ */
3460 /* Global toast notifications. */
3461 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3462 /* ============================================================ */
3463 .gx-toast {
3464 pointer-events: auto;
3465 display: inline-flex;
3466 align-items: flex-start;
3467 gap: 10px;
3468 min-width: 280px;
3469 max-width: min(440px, calc(100vw - 32px));
3470 padding: 12px 14px 12px 12px;
3471 background: var(--bg-elevated);
3472 border: 1px solid var(--border);
3473 border-radius: 10px;
3474 box-shadow:
3475 0 12px 36px -10px rgba(15,16,28,0.18),
3476 0 2px 6px rgba(15,16,28,0.04),
3477 0 0 0 1px rgba(15,16,28,0.02);
3478 color: var(--text);
3479 font-size: 13.5px;
3480 line-height: 1.45;
3481 opacity: 0;
3482 transform: translateX(16px);
3483 transition:
3484 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3485 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3486 }
3487 .gx-toast--in { opacity: 1; transform: translateX(0); }
3488 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3489 .gx-toast__icon {
3490 flex-shrink: 0;
3491 width: 20px; height: 20px;
3492 border-radius: 50%;
3493 display: inline-flex;
3494 align-items: center;
3495 justify-content: center;
3496 font-size: 12px;
3497 font-weight: 700;
3498 line-height: 1;
3499 margin-top: 1px;
3500 }
3501 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3502 .gx-toast__close {
3503 flex-shrink: 0;
3504 width: 22px; height: 22px;
3505 border: 0;
3506 background: transparent;
3507 color: var(--text-muted);
3508 font-size: 18px;
3509 line-height: 1;
3510 cursor: pointer;
3511 border-radius: 4px;
3512 padding: 0;
3513 margin: -2px -2px 0 0;
3514 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3515 }
3516 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3517 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3518 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3519 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3520 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3521 @media (prefers-reduced-motion: reduce) {
3522 .gx-toast { transition: opacity 60ms linear; transform: none; }
3523 .gx-toast--in, .gx-toast--out { transform: none; }
3524 }
3525
dc26881CC LABS App3526 /* ============================================================ */
3527 /* Block U4 — cross-document view transitions. */
3528 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3529 /* every same-origin navigation. Older browsers ignore these */
3530 /* rules entirely — no JS shim, no breakage. */
3531 /* prefers-reduced-motion disables the animation honourably. */
3532 /* ============================================================ */
3533 @view-transition {
3534 navigation: auto;
3535 }
3536 ::view-transition-old(root),
3537 ::view-transition-new(root) {
3538 animation-duration: 200ms;
3539 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3540 }
3541 ::view-transition-old(root) {
3542 animation-name: vt-fade-out;
3543 }
3544 ::view-transition-new(root) {
3545 animation-name: vt-fade-in;
3546 }
3547 @keyframes vt-fade-out {
3548 to { opacity: 0; }
3549 }
3550 @keyframes vt-fade-in {
3551 from { opacity: 0; }
3552 }
3553 @media (prefers-reduced-motion: reduce) {
3554 ::view-transition-old(root),
3555 ::view-transition-new(root) {
3556 animation-duration: 0s;
3557 }
3558 }
3559 /* The transition system picks up its root subject from this rule. */
3560 body {
3561 view-transition-name: root;
3562 }
fc1817aClaude3563`;