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.tsxBlame3562 lines · 4 contributors
fc1817aClaude1import type { FC, PropsWithChildren } from "hono/jsx";
06d5ffeClaude2import type { User } from "../db/schema";
3import { hljsThemeCss } from "../lib/highlight";
45e31d0Claude4import { clientJs } from "./client-js";
05cdb85Claude5import { getBuildInfo } from "../lib/build-info";
fc1817aClaude6
06d5ffeClaude7export const Layout: FC<
3ef4c9dClaude8 PropsWithChildren<{
9 title?: string;
10 user?: User | null;
11 notificationCount?: number;
6fc53bdClaude12 theme?: "dark" | "light";
5f2e749Claude13 // Block L10 — additive SEO + Open Graph fields. All optional;
14 // omission preserves the prior render exactly (regression-safe).
15 fullTitle?: string;
16 description?: string;
17 ogTitle?: string;
18 ogDescription?: string;
19 ogType?: string;
20 twitterCard?: "summary" | "summary_large_image";
c63b860Claude21 // Block O3 — site-wide footer banner stripe. When non-empty,
22 // renders below the footer-bottom row; wired from
23 // admin.system_flags.site_banner_text.
24 siteBannerText?: string;
25 siteBannerLevel?: "info" | "warn" | "error";
3ef4c9dClaude26 }>
5f2e749Claude27> = ({
28 children,
29 title,
30 user,
31 notificationCount,
32 theme,
33 fullTitle,
34 description,
35 ogTitle,
36 ogDescription,
37 ogType,
38 twitterCard,
c63b860Claude39 siteBannerText,
40 siteBannerLevel,
5f2e749Claude41}) => {
81201ccTest User42 // Default to "light" — feedback from operators was the dark default
43 // felt too gamer-ish and not what senior platform engineers expect from
44 // a tool they'd evaluate alongside Vercel / Linear / Stripe. Users who
45 // explicitly want dark can flip via the theme toggle (cookie persists).
46 const initialTheme = theme === "dark" ? "dark" : "light";
05cdb85Claude47 const build = getBuildInfo();
5f2e749Claude48 // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron"
49 // suffix); otherwise fall back to the existing `title` + suffix behaviour.
50 const renderedTitle = fullTitle
51 ? fullTitle
52 : title
53 ? `${title} — gluecron`
54 : "gluecron";
fc1817aClaude55 return (
6fc53bdClaude56 <html lang="en" data-theme={initialTheme}>
fc1817aClaude57 <head>
58 <meta charset="UTF-8" />
59 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
eae38d1Claude60 <meta name="theme-color" content="#0d1117" />
3a5755eClaude61 {/* 2026 polish — load Inter + Inter Tight + JetBrains Mono for
62 crisp modern typography. `preconnect` keeps the handshake
63 cost off the critical path; `display=swap` means we never
64 block first paint waiting on fonts. */}
65 <link rel="preconnect" href="https://fonts.googleapis.com" />
66 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
67 <link
68 rel="stylesheet"
69 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"
70 />
44fe49bClaude71 {/* PWA removed 2026-05-16 — repeated reload-loop bugs (admin
72 dashboard, deploy pill, admin-screen flash). A git host has
73 no use for service workers or install-as-app. Manifest link
74 and SW registrations are gone permanently. */}
eae38d1Claude75 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude76 <title>{renderedTitle}</title>
77 {description && <meta name="description" content={description} />}
78 {(ogTitle || fullTitle || title) && (
79 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
80 )}
81 {(ogDescription || description) && (
82 <meta
83 property="og:description"
84 content={ogDescription ?? description ?? ""}
85 />
86 )}
87 {ogType && <meta property="og:type" content={ogType} />}
88 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude89 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
90 <style dangerouslySetInnerHTML={{ __html: css }} />
91 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude92 </head>
93 <body>
4a52a98Claude94 <div class="prelaunch-banner" role="status" aria-live="polite">
95 Pre-launch &mdash; Gluecron is in final validation. Public signups
96 and git hosting for non-owner users open after launch review.
97 </div>
cd4f63bTest User98 {/* Block Q3 — Playground banner. Renders only when the active
99 user is a playground account with a future expiry; the small
100 inline script counts down once per minute. Strip is dismissible
101 per-page-load (re-appears on next nav) — gentle, not noisy. */}
102 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
103 <div
104 class="playground-banner"
105 role="status"
106 aria-live="polite"
107 data-playground-expires={
108 ((user as any).playgroundExpiresAt instanceof Date
109 ? (user as any).playgroundExpiresAt.toISOString()
110 : String((user as any).playgroundExpiresAt))
111 }
112 >
113 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
114 <span class="playground-banner-text">
115 Playground account &mdash;{" "}
116 <span class="playground-banner-countdown">expires soon</span>.{" "}
117 <a href="/play/claim" class="playground-banner-cta">
118 Save your work &rarr;
119 </a>
120 </span>
121 <button
122 type="button"
123 class="playground-banner-dismiss"
124 aria-label="Dismiss"
125 data-playground-dismiss="1"
126 >
127 {"×"}
128 </button>
129 <script
130 dangerouslySetInnerHTML={{
131 __html: /* js */ `
132 (function () {
133 var el = document.currentScript && document.currentScript.parentElement;
134 if (!el) return;
135 var iso = el.getAttribute('data-playground-expires');
136 if (!iso) return;
137 var target = Date.parse(iso);
138 if (isNaN(target)) return;
139 var out = el.querySelector('.playground-banner-countdown');
140 function render() {
141 var ms = target - Date.now();
142 if (!out) return;
143 if (ms <= 0) { out.textContent = 'expired'; return; }
144 var mins = Math.floor(ms / 60000);
145 var hrs = Math.floor(mins / 60);
146 if (hrs > 1) out.textContent = hrs + ' hours left';
147 else if (hrs === 1) out.textContent = '1 hour left';
148 else if (mins > 1) out.textContent = mins + ' minutes left';
149 else out.textContent = 'less than a minute left';
150 }
151 render();
152 setInterval(render, 60000);
153 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
154 if (dismiss) {
155 dismiss.addEventListener('click', function () {
156 el.style.display = 'none';
157 });
158 }
159 })();
160 `,
161 }}
162 />
163 </div>
164 )}
fc1817aClaude165 <header>
166 <nav>
167 <a href="/" class="logo">
168 gluecron
169 </a>
3ef4c9dClaude170 <div class="nav-search">
001af43Claude171 <form method="get" action="/search">
3ef4c9dClaude172 <input
173 type="search"
174 name="q"
175 placeholder="Search (press /)"
176 aria-label="Search"
177 />
178 </form>
179 </div>
06d5ffeClaude180 <div class="nav-right">
f5b9ef5Claude181 {/* Block N3 — site-admin platform-deploy status pill */}
f764c07Claude182 {user && (
183 <a
184 id="deploy-pill"
185 href="/admin/deploys"
186 class="nav-deploy-pill"
187 style="display:none"
188 aria-label="Platform deploy status"
189 title="Platform deploy status"
190 >
191 <span class="deploy-pill-dot" />
192 <span class="deploy-pill-text">Deploys</span>
193 </a>
194 )}
f5b9ef5Claude195 <a href="/explore" class="nav-link">Explore</a>
06d5ffeClaude196 {user ? (
197 <>
f5b9ef5Claude198 {/* AI dropdown */}
c6018a5Claude199 <div class="nav-ai-dropdown" data-nav-ai>
200 <button
201 type="button"
202 class="nav-link nav-ai-trigger"
203 aria-haspopup="true"
204 aria-expanded="false"
205 data-nav-ai-trigger
206 >
207 <span style="display:inline-flex;align-items:center;gap:5px">
f5b9ef5Claude208 <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
c6018a5Claude209 <path d="M12 2l2.39 5.95L20 9l-4.5 3.9L17 19l-5-3.2L7 19l1.5-6.1L4 9l5.61-1.05L12 2z" />
210 </svg>
211 AI
f5b9ef5Claude212 <span aria-hidden="true" style="font-size:9px;opacity:0.7">{String.fromCharCode(9660)}</span>
c6018a5Claude213 </span>
214 </button>
215 <div class="nav-ai-menu" role="menu" data-nav-ai-menu>
216 <a href="/standups" role="menuitem" class="nav-ai-item">
217 <span class="nav-ai-item-label">Standups</span>
218 <span class="nav-ai-item-sub">Daily AI brief</span>
219 </a>
220 <a href="/voice" role="menuitem" class="nav-ai-item">
221 <span class="nav-ai-item-label">Voice</span>
222 <span class="nav-ai-item-sub">Talk to ship a PR</span>
223 </a>
224 <a href="/refactors" role="menuitem" class="nav-ai-item">
225 <span class="nav-ai-item-label">Refactors</span>
226 <span class="nav-ai-item-sub">Multi-repo agent</span>
227 </a>
228 <a href="/specs" role="menuitem" class="nav-ai-item">
229 <span class="nav-ai-item-label">Specs</span>
230 <span class="nav-ai-item-sub">Spec-to-PR loop</span>
231 </a>
232 <a href="/ask" role="menuitem" class="nav-ai-item">
233 <span class="nav-ai-item-label">Ask AI</span>
234 <span class="nav-ai-item-sub">Cross-repo chat</span>
235 </a>
236 </div>
237 </div>
f5b9ef5Claude238 {/* Inbox bell with unread badge */}
239 <a
240 href="/inbox"
241 class="nav-inbox-btn"
242 aria-label={notificationCount && notificationCount > 0 ? `Inbox — ${notificationCount} unread` : "Inbox"}
243 title="Inbox"
244 >
245 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
246 <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
247 <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
248 </svg>
249 {notificationCount && notificationCount > 0 ? (
250 <span class="nav-inbox-badge" aria-hidden="true">
251 {notificationCount > 99 ? "99+" : notificationCount}
252 </span>
253 ) : null}
06d5ffeClaude254 </a>
f5b9ef5Claude255 <a href="/new" class="btn btn-sm btn-primary">+ New</a>
256 {/* User dropdown — consolidates profile + secondary nav */}
257 <div class="nav-user-dropdown" data-nav-user>
258 <button
259 type="button"
260 class="nav-user-trigger"
261 aria-haspopup="true"
262 aria-expanded="false"
263 data-nav-user-trigger
264 >
265 <span class="nav-user-avatar" aria-hidden="true">
266 {(user.displayName || user.username).charAt(0).toUpperCase()}
267 </span>
268 <span class="nav-user-name">{user.displayName || user.username}</span>
269 <span class="nav-user-caret" aria-hidden="true">{"▾"}</span>
270 </button>
271 <div class="nav-user-menu" role="menu" data-nav-user-menu>
272 <div class="nav-user-menu-header">
273 <span class="nav-user-menu-name">{user.displayName || user.username}</span>
274 <span class="nav-user-menu-handle">@{user.username}</span>
275 </div>
276 <div class="nav-user-menu-sep" />
277 <a href="/dashboard" role="menuitem" class="nav-user-item">Dashboard</a>
278 <a href="/pulls" role="menuitem" class="nav-user-item">Pull requests</a>
279 <a href="/issues" role="menuitem" class="nav-user-item">Issues</a>
280 <a href="/activity" role="menuitem" class="nav-user-item">Activity</a>
281 <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a>
bb2dea9Claude282 <a href="/import/actions" role="menuitem" class="nav-user-item">Actions importer</a>
f5b9ef5Claude283 <div class="nav-user-menu-sep" />
284 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
285 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
286 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
287 <div class="nav-user-menu-sep" />
288 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
289 <span class="theme-icon-dark">{"☾"} Light mode</span>
290 <span class="theme-icon-light">{"☀"} Dark mode</span>
291 </a>
292 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
293 </div>
294 </div>
06d5ffeClaude295 </>
296 ) : (
297 <>
f5b9ef5Claude298 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
299 <span class="theme-icon-dark">{"☾"}</span>
300 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude301 </a>
adf5e18Claude302 <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron">
303 Migrate from GitHub
304 </a>
f5b9ef5Claude305 <a href="/login" class="nav-link">Sign in</a>
306 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude307 </>
308 )}
309 </div>
fc1817aClaude310 </nav>
311 </header>
45e31d0Claude312 <main id="main-content">{children}</main>
cf9178bTest User313 {/* Global toast host — populated by the toastScript below from
314 ?success= / ?error= / ?toast= query params. Replaces the
315 per-page banner pattern with one polished slide-in. */}
316 <div
317 id="toast-host"
318 aria-live="polite"
319 aria-atomic="true"
320 style="position:fixed;top:calc(var(--header-h) + 12px);right:16px;z-index:var(--z-toast,10000);display:flex;flex-direction:column;gap:8px;pointer-events:none"
321 />
fc1817aClaude322 <footer>
958d26aClaude323 <div class="footer-inner">
324 <div class="footer-brand">
325 <a href="/" class="logo">gluecron</a>
326 <p class="footer-tag">
327 AI-native code intelligence. Self-hosted git, automated CI,
328 push-time gates. Software that ships itself.
329 </p>
330 </div>
331 <div class="footer-links">
332 <div class="footer-col">
333 <div class="footer-col-title">Product</div>
b0148e9Claude334 <a href="/features">Features</a>
335 <a href="/pricing">Pricing</a>
9f29b65Claude336 <a href="/enterprise">Enterprise</a>
e1fc7dbClaude337 <a href="/changelog">Changelog</a>
958d26aClaude338 <a href="/explore">Explore</a>
339 <a href="/marketplace">Marketplace</a>
adf5e18Claude340 <a href="/developer-program">Developer Program</a>
958d26aClaude341 </div>
342 <div class="footer-col">
343 <div class="footer-col-title">Platform</div>
e0e4219Claude344 <a href="/docs">Docs</a>
b0148e9Claude345 <a href="/help">Quickstart</a>
958d26aClaude346 <a href="/status">Status</a>
347 <a href="/api/graphql">GraphQL</a>
348 <a href="/mcp">MCP server</a>
349 </div>
350 <div class="footer-col">
b0148e9Claude351 <div class="footer-col-title">Company</div>
352 <a href="/about">About</a>
3122762Claude353 <a href="/blog">Blog</a>
958d26aClaude354 <a href="/terms">Terms</a>
355 <a href="/privacy">Privacy</a>
356 <a href="/acceptable-use">Acceptable use</a>
357 </div>
358 </div>
359 </div>
360 <div class="footer-bottom">
361 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude362 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
363 <span class="footer-build-dot" aria-hidden="true" />
364 {build.sha} · {build.branch}
365 </span>
36b4cbdClaude366 </div>
c63b860Claude367 {siteBannerText ? (
368 <div
369 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
370 role="status"
371 aria-live="polite"
372 >
373 {siteBannerText}
374 </div>
375 ) : null}
fc1817aClaude376 </footer>
05cdb85Claude377 {/* Live update poller — checks /api/version every 15s, prompts
378 reload when the running sha changes. Pure progressive-
379 enhancement; degrades to nothing if JS is off. */}
380 <div
381 id="version-banner"
382 style="display:none;position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:9999;background:var(--bg-elevated);border:1px solid rgba(140,109,255,0.45);border-radius:9999px;padding:8px 14px 8px 14px;font-size:13px;color:var(--text-strong);box-shadow:0 12px 28px -8px rgba(0,0,0,0.55),0 0 24px -6px rgba(140,109,255,0.40);font-family:var(--font-sans);align-items:center;gap:10px"
383 >
384 <span style="display:inline-flex;align-items:center;gap:8px">
385 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
386 <span>New version available</span>
387 </span>
388 <button
389 type="button"
390 id="version-banner-reload"
391 style="background:linear-gradient(135deg,#8c6dff 0%,#36c5d6 100%);color:#fff;border:0;border-radius:9999px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit"
392 >
393 Reload
394 </button>
395 </div>
fa880f2Claude396 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude397 {/* Block N3 — site-admin deploy status pill (script-only). The pill
398 container is rendered above for authed users; this script bootstraps
399 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
400 and the pill stays display:none — zero leak. */}
401 {user && (
402 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
403 )}
699e5c7Claude404 {/* Block I4 — Command palette shell (hidden by default) */}
405 <div
406 id="cmdk-backdrop"
407 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
408 />
409 <div
410 id="cmdk-panel"
411 style="display:none;position:fixed;top:10%;left:50%;transform:translateX(-50%);width:min(560px,92vw);background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 32px rgba(0,0,0,0.4);z-index:9999;overflow:hidden"
412 >
413 <input
414 id="cmdk-input"
415 type="text"
416 placeholder="Type a command..."
417 aria-label="Command palette"
dc26881CC LABS App418 style="width:100%;padding:var(--space-3) var(--space-4);background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--border);outline:none;font-size:14px"
699e5c7Claude419 />
420 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
421 </div>
fa880f2Claude422 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude423 {/* PWA-kill script: actively unregisters any service worker
424 previously installed under gluecron.com. Recovers any browser
425 still trapped in the SW reload loop from the legacy registrations. */}
426 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User427 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude428 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude429 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
b7ecb14Claude430 {/* Bell badge poller — only rendered for authenticated users.
431 Polls /api/notifications/count every 60 s and updates the badge
432 on the inbox bell icon. Falls back gracefully if the endpoint is
433 unavailable or the user signs out mid-session. */}
434 {user && (
435 <script dangerouslySetInnerHTML={{ __html: bellPollerScript }} />
436 )}
fc1817aClaude437 </body>
438 </html>
439 );
440};
441
05cdb85Claude442// Live version poller. Checks /api/version every 15s; if the sha differs
443// from the one we booted with, reveal the floating 'New version' pill so
444// the user can reload onto the new code without manually refreshing.
445const versionPollerScript = `
446 (function(){
447 var loadedSha = null;
448 var banner, btn;
449 function poll(){
450 fetch('/api/version', { cache: 'no-store' })
451 .then(function(r){ return r.ok ? r.json() : null; })
452 .then(function(j){
453 if (!j || !j.sha) return;
454 if (loadedSha === null) { loadedSha = j.sha; return; }
455 if (j.sha !== loadedSha && banner) {
456 banner.style.display = 'inline-flex';
457 }
458 })
459 .catch(function(){});
460 }
461 function init(){
462 banner = document.getElementById('version-banner');
463 btn = document.getElementById('version-banner-reload');
464 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
465 poll();
466 setInterval(poll, 15000);
467 }
468 if (document.readyState === 'loading') {
469 document.addEventListener('DOMContentLoaded', init);
470 } else {
471 init();
472 }
473 })();
474`;
475
f764c07Claude476// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
477// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
478// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
479// display:none — there's no leakage of admin-only data to other users.
480//
481// Pill states (CSS classes on the container drive colour):
482// .deploy-pill-success 🟢 "Deployed 12s ago"
483// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
484// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
485// .deploy-pill-empty ⚪ "No deploys yet"
486//
487// Relative-time auto-refreshes every 15s without re-fetching.
488export const deployPillScript = `
489 (function(){
490 var pill, dot, text;
491 var state = { latest: null, asOf: null };
492
493 function classifyAge(ms){
494 if (ms < 0) return 'just now';
495 var s = Math.floor(ms / 1000);
496 if (s < 5) return 'just now';
497 if (s < 60) return s + 's ago';
498 var m = Math.floor(s / 60);
499 if (m < 60) return m + 'm ago';
500 var h = Math.floor(m / 60);
501 if (h < 24) return h + 'h ago';
502 var d = Math.floor(h / 24);
503 return d + 'd ago';
504 }
505 function elapsed(ms){
506 if (ms < 0) ms = 0;
507 var s = Math.floor(ms / 1000);
508 if (s < 60) return s + 's';
509 var m = Math.floor(s / 60);
510 var rem = s - m * 60;
511 return m + 'm ' + rem + 's';
512 }
513
514 function render(){
515 if (!pill || !text || !dot) return;
516 var d = state.latest;
81201ccTest User517 // When there's no deploy event yet, keep the pill HIDDEN. Showing
518 // "No deploys yet" was visible noise on every admin page load and
519 // flashed during reconnect cycles — admins don't need a placeholder.
520 // The pill reveals itself the first time a real deploy fires.
f764c07Claude521 if (!d) {
81201ccTest User522 pill.style.display = 'none';
f764c07Claude523 return;
524 }
525 pill.style.display = 'inline-flex';
526 var now = Date.now();
527 if (d.status === 'in_progress') {
528 pill.className = 'nav-deploy-pill deploy-pill-progress';
529 var started = Date.parse(d.started_at) || now;
530 text.textContent = 'Deploying… ' + elapsed(now - started);
531 } else if (d.status === 'succeeded') {
532 pill.className = 'nav-deploy-pill deploy-pill-success';
533 var ref = Date.parse(d.finished_at || d.started_at) || now;
534 text.textContent = 'Deployed ' + classifyAge(now - ref);
535 } else if (d.status === 'failed') {
536 pill.className = 'nav-deploy-pill deploy-pill-failed';
537 var refF = Date.parse(d.finished_at || d.started_at) || now;
538 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
539 } else {
540 pill.className = 'nav-deploy-pill';
541 text.textContent = d.status;
542 }
543 }
544
545 function fetchLatest(){
546 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
547 .then(function(r){ if (!r.ok) return null; return r.json(); })
548 .then(function(j){
549 if (!j || j.ok !== true) return;
550 state.latest = j.latest;
551 state.asOf = j.asOf;
552 render();
553 subscribe();
554 })
555 .catch(function(){});
556 }
557
558 var subscribed = false;
559 function subscribe(){
560 if (subscribed) return;
561 if (typeof EventSource === 'undefined') return;
562 subscribed = true;
563 var es;
bf19c50Test User564 // Exponential backoff with cap. Previously a tight 1500ms reconnect
565 // produced visible looping in the nav whenever the proxy timed out
566 // or the connection blipped — the bottom-of-page deploy pill
567 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
568 // successful message receipt.
569 var delay = 2000;
570 var DELAY_MAX = 60000;
571 function bump(){
572 delay = Math.min(delay * 2, DELAY_MAX);
573 }
574 function resetDelay(){
575 delay = 2000;
576 }
f764c07Claude577 function connect(){
578 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User579 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude580 es.onmessage = function(m){
bf19c50Test User581 resetDelay();
f764c07Claude582 try {
583 var d = JSON.parse(m.data);
584 if (d && d.run_id) {
585 if (!state.latest || state.latest.run_id === d.run_id ||
586 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
587 state.latest = d;
588 render();
589 }
590 }
591 } catch(e){}
592 };
593 es.onerror = function(){
594 try { es.close(); } catch(e){}
bf19c50Test User595 bump();
f764c07Claude596 setTimeout(connect, delay);
597 };
598 }
599 connect();
600 }
601
602 function init(){
603 pill = document.getElementById('deploy-pill');
604 if (!pill) return;
605 dot = pill.querySelector('.deploy-pill-dot');
606 text = pill.querySelector('.deploy-pill-text');
607 fetchLatest();
608 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
609 // without a fresh fetch.
610 setInterval(render, 15000);
611 }
612 if (document.readyState === 'loading') {
613 document.addEventListener('DOMContentLoaded', init);
614 } else {
615 init();
616 }
617 })();
618`;
619
6fc53bdClaude620// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User621// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
622// is honoured for users who explicitly opted in.
6fc53bdClaude623const themeInitScript = `
624 (function(){
625 try {
626 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User627 var t = m ? decodeURIComponent(m[1]) : 'light';
628 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude629 document.documentElement.setAttribute('data-theme', t);
630 } catch(_){}
631 })();
632`;
633
eae38d1Claude634// Block G1 — register service worker for offline / install support.
635// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App636//
cf9178bTest User637// Global toast notifications — reads ?success=, ?error=, ?toast= from the
638// URL on page load and surfaces a polished slide-in toast instead of the
639// per-page banner divs that crowded the layout. Toasts auto-dismiss after
640// 4.5s; query params are scrubbed from the URL via history.replaceState
641// so a subsequent Refresh doesn't re-fire the same toast.
642//
643// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
644// must be URI-encoded (callers already do this via encodeURIComponent
645// in c.redirect()).
646const toastScript = `
647 (function(){
648 function showToast(kind, message){
649 if (!message) return;
650 var host = document.getElementById('toast-host');
651 if (!host) return;
652 var el = document.createElement('div');
653 el.className = 'gx-toast gx-toast--' + kind;
654 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
655 var icon = document.createElement('span');
656 icon.className = 'gx-toast__icon';
657 icon.textContent = kind === 'success' ? '\\u2713'
658 : kind === 'error' ? '\\u00D7'
659 : kind === 'warn' ? '!'
660 : 'i';
661 el.appendChild(icon);
662 var text = document.createElement('span');
663 text.className = 'gx-toast__text';
664 text.textContent = message;
665 el.appendChild(text);
666 var close = document.createElement('button');
667 close.type = 'button';
668 close.className = 'gx-toast__close';
669 close.setAttribute('aria-label', 'Dismiss notification');
670 close.textContent = '\\u00D7';
671 close.addEventListener('click', function(){ dismiss(); });
672 el.appendChild(close);
673 host.appendChild(el);
674 // Force a reflow then add the visible class so the slide-in transitions.
675 void el.offsetWidth;
676 el.classList.add('gx-toast--in');
677 var timer = setTimeout(dismiss, 4500);
678 function dismiss(){
679 clearTimeout(timer);
680 el.classList.remove('gx-toast--in');
681 el.classList.add('gx-toast--out');
682 setTimeout(function(){
683 if (el.parentNode) el.parentNode.removeChild(el);
684 }, 220);
685 }
686 }
687 try {
688 var url = new URL(window.location.href);
689 var hits = 0;
690 var s = url.searchParams.get('success');
691 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
692 var e = url.searchParams.get('error');
693 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
694 var t = url.searchParams.get('toast');
695 if (t) {
696 var ix = t.indexOf(':');
697 var kind = ix > 0 ? t.slice(0, ix) : 'info';
698 var msg = ix > 0 ? t.slice(ix + 1) : t;
699 showToast(kind, msg);
700 url.searchParams.delete('toast');
701 hits++;
702 }
703 if (hits > 0 && window.history && window.history.replaceState) {
704 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
705 }
706 } catch(_) {}
707 })();
708`;
709
44fe49bClaude710// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
711// and pwaInstallBannerScript. Those two scripts registered /sw.js and
712// /sw-push.js at the same scope, causing a reload loop that made the
713// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
714// uncllickable). Per the SW spec, only one SW can control a scope; two
715// different script URLs at the same scope keep replacing each other.
6345c3eTest User716//
44fe49bClaude717// PWA is gone for good. A git host has no use for service workers,
718// install-as-app, or push notifications via SW. This script actively
719// unregisters every previously installed SW on the gluecron.com origin
720// so any browser still trapped in the loop recovers on the very next
721// page load — without needing the user to clear site data or open
722// DevTools. Idempotent and safe to keep running forever; once all
723// browsers have been cleaned, it's a no-op.
724const pwaKillSwitchScript = `
534f04aClaude725(function(){
726 try {
44fe49bClaude727 if (!('serviceWorker' in navigator)) return;
728 if (!navigator.serviceWorker.getRegistrations) return;
729 navigator.serviceWorker.getRegistrations().then(function(regs){
730 if (!regs || regs.length === 0) return;
731 regs.forEach(function(reg){
732 try { reg.unregister(); } catch(_){}
733 });
734 }).catch(function(){});
735 // Also drop any caches the old SWs left behind so the user gets
736 // truly fresh HTML on every page load. Restricted to gluecron-*
737 // namespaced caches so we don't trample anything a future opt-in
738 // feature might create under a different name.
739 if ('caches' in self) {
740 caches.keys().then(function(keys){
741 keys.forEach(function(k){
742 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
743 try { caches.delete(k); } catch(_){}
d7ba05dClaude744 }
745 });
746 }).catch(function(){});
534f04aClaude747 }
748 } catch(_) {}
749})();
750`;
751
3ef4c9dClaude752const navScript = `
753 (function(){
754 var chord = null;
755 var chordTimer = null;
756 function isTyping(t){
757 t = t || {};
758 var tag = (t.tagName || '').toLowerCase();
759 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
760 }
71cd5ecClaude761
762 // ---------- Block I4 — Command palette ----------
763 var COMMANDS = [
764 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
765 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
766 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
767 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
768 { label: 'Create new repository', href: '/new', kw: 'add create' },
769 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
770 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
771 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
772 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
773 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
774 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
775 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
776 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
777 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude778 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude779 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
780 { label: 'Gists', href: '/gists', kw: 'snippets' },
781 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
782 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
783 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
784 ];
785
786 function fuzzyMatch(item, q){
787 if (!q) return true;
788 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
789 q = q.toLowerCase();
790 var qi = 0;
791 for (var i = 0; i < hay.length && qi < q.length; i++) {
792 if (hay[i] === q[qi]) qi++;
793 }
794 return qi === q.length;
795 }
796
797 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
798
799 function render(){
800 if (!list) return;
801 var html = '';
802 for (var i = 0; i < filtered.length; i++) {
803 var item = filtered[i];
804 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
805 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]806 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App807 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude808 '<div>' + item.label + '</div>' +
809 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
810 '</div>';
811 }
812 if (filtered.length === 0) {
dc26881CC LABS App813 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude814 }
815 list.innerHTML = html;
816 }
817
818 function openPalette(){
819 backdrop = document.getElementById('cmdk-backdrop');
820 panel = document.getElementById('cmdk-panel');
821 input = document.getElementById('cmdk-input');
822 list = document.getElementById('cmdk-list');
823 if (!backdrop || !panel) return;
824 backdrop.style.display = 'block';
825 panel.style.display = 'block';
826 input.value = '';
827 selected = 0;
828 filtered = COMMANDS.slice();
829 render();
830 input.focus();
831 }
832 function closePalette(){
833 if (backdrop) backdrop.style.display = 'none';
834 if (panel) panel.style.display = 'none';
835 }
836 function go(href){ closePalette(); window.location.href = href; }
837
838 document.addEventListener('click', function(e){
839 var t = e.target;
840 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
841 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]842 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude843 });
844
845 document.addEventListener('input', function(e){
846 if (e.target && e.target.id === 'cmdk-input') {
847 var q = e.target.value;
848 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
849 selected = 0;
850 render();
851 }
852 });
853
3ef4c9dClaude854 document.addEventListener('keydown', function(e){
71cd5ecClaude855 // Palette-scoped keys take priority when open
856 if (panel && panel.style.display === 'block') {
857 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
858 if (e.key === 'ArrowDown') {
859 e.preventDefault();
860 selected = Math.min(filtered.length - 1, selected + 1);
861 render();
862 return;
863 }
864 if (e.key === 'ArrowUp') {
865 e.preventDefault();
866 selected = Math.max(0, selected - 1);
867 render();
868 return;
869 }
870 if (e.key === 'Enter') {
871 e.preventDefault();
872 var item = filtered[selected];
873 if (item) go(item.href);
874 return;
875 }
876 return;
877 }
878
3ef4c9dClaude879 if (isTyping(e.target)) return;
880 // Single key shortcuts
881 if (e.key === '/') {
882 var el = document.querySelector('.nav-search input');
883 if (el) { e.preventDefault(); el.focus(); return; }
884 }
885 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude886 e.preventDefault();
887 openPalette();
888 return;
3ef4c9dClaude889 }
890 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
891 e.preventDefault(); window.location.href = '/shortcuts'; return;
892 }
893 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
894 e.preventDefault(); window.location.href = '/new'; return;
895 }
896 // "g" chord
897 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
898 chord = 'g';
899 clearTimeout(chordTimer);
900 chordTimer = setTimeout(function(){ chord = null; }, 1200);
901 return;
902 }
903 if (chord === 'g') {
904 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
905 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
906 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
907 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
908 chord = null;
909 }
5882af3Claude910 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
911 if (e.key === 'j' || e.key === 'k') {
912 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
913 var items = Array.from(document.querySelectorAll(selectors));
914 if (items.length === 0) return;
915 e.preventDefault();
916 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
917 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));
918 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
919 items[next].classList.add('is-kbd-focus');
920 items[next].scrollIntoView({ block: 'nearest' });
921 return;
922 }
923 if (e.key === 'Enter') {
924 var focused = document.querySelector('.is-kbd-focus');
925 if (focused) {
926 e.preventDefault();
927 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
928 if (link && link.href) { window.location.href = link.href; }
929 return;
930 }
931 }
932 if (e.key === 'x') {
933 // 'x' selects/deselects focused item (future: bulk actions)
934 var sel = document.querySelector('.is-kbd-focus');
935 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
936 }
3ef4c9dClaude937 });
938 })();
939`;
940
b7ecb14Claude941// Bell poller — updates the inbox badge count every 60 s via /api/notifications/count.
942// Only injected when a user is logged in (checked in the JSX above). Uses the
943// `.nav-inbox-badge` element that the server renders inside `.nav-inbox-btn`.
944// If the badge element is absent (user not logged in, DOM mismatch) it exits
945// cleanly without error.
946export const bellPollerScript = `
947(function() {
948 var badge = document.querySelector('.nav-inbox-btn .nav-inbox-badge');
949 var btn = document.querySelector('.nav-inbox-btn');
950 function updateBadge(n) {
951 if (!btn) return;
952 if (n > 0) {
953 var label = n > 99 ? '99+' : String(n);
954 if (!badge) {
955 badge = document.createElement('span');
956 badge.className = 'nav-inbox-badge';
957 badge.setAttribute('aria-hidden', 'true');
958 btn.appendChild(badge);
959 }
960 badge.textContent = label;
961 badge.style.display = '';
962 btn.setAttribute('aria-label', 'Inbox — ' + n + ' unread');
963 } else {
964 if (badge) badge.style.display = 'none';
965 btn.setAttribute('aria-label', 'Inbox');
966 }
967 }
968 function poll() {
969 fetch('/api/notifications/count', { credentials: 'same-origin', cache: 'no-store' })
970 .then(function(r) { return r.ok ? r.json() : null; })
971 .then(function(d) {
972 if (!d) return;
973 var n = typeof d.unread === 'number' ? d.unread : (typeof d.count === 'number' ? d.count : 0);
974 updateBadge(n);
975 })
976 .catch(function() {});
977 }
978 if (document.readyState === 'loading') {
979 document.addEventListener('DOMContentLoaded', function() { poll(); setInterval(poll, 60000); });
980 } else {
981 poll();
982 setInterval(poll, 60000);
983 }
984})();
985`;
986
c6018a5Claude987// AI dropdown — keyboard- and click-accessible menu in the top nav.
988// CSS handles the hover-open behaviour for pointer users; this script
989// adds click-to-toggle for touch, Escape-to-close, and outside-click-
990// to-close. Lives in its own IIFE so it never interferes with navScript.
991const navAiDropdownScript = `
992 (function(){
f5b9ef5Claude993 function makeDropdown(rootSel, triggerSel, menuSel) {
994 var open = false;
995 var root = document.querySelector(rootSel);
996 if (!root) return;
997 var trigger = root.querySelector(triggerSel);
998 var menu = root.querySelector(menuSel);
999 if (!trigger || !menu) return;
1000 function setOpen(next){
1001 open = !!next;
1002 root.classList.toggle('is-open', open);
1003 menu.classList.toggle('is-open', open);
1004 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
1005 }
1006 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
1007 document.addEventListener('click', function(e){
1008 if (!open) return;
1009 if (root.contains(e.target)) return;
1010 setOpen(false);
1011 });
1012 document.addEventListener('keydown', function(e){
1013 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
1014 });
c6018a5Claude1015 }
f5b9ef5Claude1016 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
1017 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude1018 })();
1019`;
1020
fc1817aClaude1021const css = `
2ce1d0bClaude1022 /* ================================================================
958d26aClaude1023 * Gluecron design system — 2026.05 "Editorial-Technical"
1024 * Slate-noir base · refined violet signature · hairline geometry ·
1025 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
1026 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude1027 * ============================================================== */
6fc53bdClaude1028 :root, :root[data-theme='dark'] {
958d26aClaude1029 /* Surfaces — slate, not black. More depth, less crush. */
1030 --bg: #08090f;
1031 --bg-secondary: #0c0d14;
1032 --bg-tertiary: #11131c;
1033 --bg-elevated: #0f111a;
1034 --bg-surface: #161826;
1035 --bg-hover: rgba(255,255,255,0.04);
1036 --bg-active: rgba(255,255,255,0.08);
1037 --bg-inset: rgba(0,0,0,0.30);
1038
1039 /* Borders — three weights, used deliberately */
1040 --border: rgba(255,255,255,0.06);
1041 --border-subtle: rgba(255,255,255,0.035);
1042 --border-strong: rgba(255,255,255,0.13);
1043 --border-focus: rgba(140,109,255,0.55);
1044
1045 /* Text */
1046 --text: #ededf2;
1047 --text-strong: #f7f7fb;
1048 --text-muted: #8b8c9c;
1049 --text-faint: #555665;
1050 --text-link: #b69dff;
1051
1052 /* Accent — refined violet (less candy), warm amber as secondary signal */
1053 --accent: #8c6dff;
1054 --accent-2: #36c5d6;
1055 --accent-warm: #ffb45e;
1056 --accent-hover: #a48bff;
1057 --accent-pressed:#7559e8;
1058 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1059 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1060 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1061 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1062
1063 /* Semantic */
1064 --green: #34d399;
1065 --red: #f87171;
1066 --yellow: #fbbf24;
1067 --amber: #fbbf24;
1068 --blue: #60a5fa;
1069
3a5755eClaude1070 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1071 display (headlines), JetBrains Mono for code. All three loaded from
1072 Google Fonts with display:swap so we never block first paint. System
1073 fallbacks remain in place — if the CDN is unreachable the site still
1074 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1075 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1076 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1077 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1078 --mono-feat: 'calt', 'liga', 'ss01';
1079
1080 /* Radius — sharper than before */
1081 --r-sm: 5px;
1082 --r: 7px;
1083 --r-md: 9px;
1084 --r-lg: 12px;
1085 --r-xl: 16px;
1086 --r-2xl: 22px;
1087 --r-full: 9999px;
1088 --radius: 7px;
1089
1090 /* Type scale — bigger display sizes for editorial feel */
1091 --t-xs: 11px;
1092 --t-sm: 13px;
1093 --t-base: 14px;
1094 --t-md: 16px;
1095 --t-lg: 20px;
1096 --t-xl: 28px;
1097 --t-2xl: 40px;
1098 --t-3xl: 56px;
1099 --t-display: 72px;
1100 --t-display-lg:96px;
1101
1102 /* Spacing — 4px base */
2ce1d0bClaude1103 --s-0: 0;
958d26aClaude1104 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1105 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1106 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1107 --s-20:80px; --s-24:96px; --s-32:128px;
1108
1109 /* Elevation — softer + more layered */
1110 --elev-0: 0 0 0 1px var(--border);
1111 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1112 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1113 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1114 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1115 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1116 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1117 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1118
1119 /* Motion */
1120 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1121 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1122 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1123 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1124 --t-fast: 120ms;
1125 --t-base: 200ms;
1126 --t-slow: 360ms;
1127 --t-slower:560ms;
1128
1129 --header-h: 60px;
c63b860Claude1130
1131 /* Block O3 — visual coherence: named token aliases (additive). */
1132 --space-1: var(--s-1);
1133 --space-2: var(--s-2);
1134 --space-3: var(--s-3);
1135 --space-4: var(--s-4);
1136 --space-5: var(--s-5);
1137 --space-6: var(--s-6);
1138 --space-8: var(--s-8);
1139 --space-10: var(--s-10);
1140 --space-12: var(--s-12);
1141 --space-16: var(--s-16);
1142 --space-20: var(--s-20);
1143 --space-24: var(--s-24);
1144 --radius-sm: var(--r-sm);
1145 --radius-md: var(--r-md);
1146 --radius-lg: var(--r-lg);
1147 --radius-xl: var(--r-xl);
1148 --radius-full: var(--r-full);
1149 --font-size-xs: var(--t-xs);
1150 --font-size-sm: var(--t-sm);
1151 --font-size-base: var(--t-base);
1152 --font-size-md: var(--t-md);
1153 --font-size-lg: var(--t-lg);
1154 --font-size-xl: var(--t-xl);
1155 --font-size-2xl: var(--t-2xl);
1156 --font-size-3xl: var(--t-3xl);
1157 --font-size-hero: var(--t-display);
1158 --leading-tight: 1.2;
1159 --leading-snug: 1.35;
1160 --leading-normal: 1.5;
1161 --leading-relaxed: 1.6;
1162 --leading-loose: 1.7;
1163 --z-base: 1;
1164 --z-nav: 10;
1165 --z-sticky: 50;
1166 --z-overlay: 100;
1167 --z-modal: 1000;
1168 --z-toast: 10000;
fc1817aClaude1169 }
1170
6fc53bdClaude1171 :root[data-theme='light'] {
958d26aClaude1172 --bg: #fbfbfc;
4c47454Claude1173 --bg-secondary: #ffffff;
958d26aClaude1174 --bg-tertiary: #f3f3f6;
1175 --bg-elevated: #ffffff;
1176 --bg-surface: #f6f6f9;
1177 --bg-hover: rgba(0,0,0,0.035);
1178 --bg-active: rgba(0,0,0,0.07);
1179 --bg-inset: rgba(0,0,0,0.04);
1180
1181 --border: rgba(15,16,28,0.08);
1182 --border-subtle: rgba(15,16,28,0.04);
1183 --border-strong: rgba(15,16,28,0.16);
1184
1185 --text: #0e1020;
1186 --text-strong: #050617;
1187 --text-muted: #5a5b70;
1188 --text-faint: #8a8b9e;
1189 --text-link: #6d4dff;
1190
1191 --accent: #6d4dff;
1192 --accent-2: #0891b2;
1193 --accent-hover: #5a3df0;
1194 --accent-pressed:#4a30d6;
1195 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1196
1197 --green: #059669;
1198 --red: #dc2626;
4c47454Claude1199 --yellow: #d97706;
958d26aClaude1200
1201 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1202 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1203 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1204 }
1205
1206 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1207 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1208 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1209 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1210 :root[data-theme='light'] .theme-icon-light { display: none; }
1211
fc1817aClaude1212 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1213 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1214
958d26aClaude1215 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1216
1217 body {
1218 font-family: var(--font-sans);
1219 background: var(--bg);
1220 color: var(--text);
cf9178bTest User1221 font-size: 15px;
2ce1d0bClaude1222 line-height: 1.55;
958d26aClaude1223 letter-spacing: -0.011em;
fc1817aClaude1224 min-height: 100vh;
1225 display: flex;
1226 flex-direction: column;
958d26aClaude1227 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1228 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1229 and disables automatic synthesis of bold/italic which can produce
1230 muddier rendering on certain weights. */
1231 -webkit-font-smoothing: antialiased;
1232 -moz-osx-font-smoothing: grayscale;
1233 font-synthesis: none;
1234 }
1235 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1236 line-height inversely with size so display text doesn't feel airy. */
1237 h1, h2, h3, h4, h5, h6 {
1238 font-family: var(--font-display);
1239 color: var(--text-strong);
1240 letter-spacing: -0.022em;
1241 line-height: 1.18;
1242 font-weight: 650;
1243 margin-top: 0;
1244 }
1245 h1 { font-size: 28px; letter-spacing: -0.028em; }
1246 h2 { font-size: 22px; }
1247 h3 { font-size: 18px; letter-spacing: -0.018em; }
1248 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1249 /* Link refinement — underline only on hover/focus, never by default
1250 on internal nav. Prevents the "blue underline soup" look. */
1251 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1252 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1253 a:focus-visible {
1254 outline: none;
1255 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1256 border-radius: 3px;
fc1817aClaude1257 }
1258
958d26aClaude1259 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1260 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1261 body::before {
1262 content: '';
1263 position: fixed;
1264 inset: 0;
1265 pointer-events: none;
958d26aClaude1266 z-index: -2;
2ce1d0bClaude1267 background:
958d26aClaude1268 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1269 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1270 }
1271 body::after {
1272 content: '';
1273 position: fixed;
1274 inset: 0;
1275 pointer-events: none;
1276 z-index: -1;
1277 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1278 background-size: 28px 28px;
1279 background-position: 0 0;
1280 opacity: 0.55;
1281 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1282 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1283 }
1284 :root[data-theme='light'] body::before { opacity: 0.55; }
1285 :root[data-theme='light'] body::after {
1286 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1287 opacity: 0.4;
fc1817aClaude1288 }
2ce1d0bClaude1289
1290 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1291 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1292
958d26aClaude1293 /* Heading scale — confident, editorial, tight tracking */
1294 h1, h2, h3, h4, h5, h6 {
1295 font-family: var(--font-display);
2ce1d0bClaude1296 font-weight: 600;
958d26aClaude1297 letter-spacing: -0.022em;
1298 line-height: 1.18;
1299 color: var(--text-strong);
1300 }
1301 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1302 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1303 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1304 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1305 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1306
1307 /* Editorial display heading utility — used by landing + marketing pages */
1308 .display {
1309 font-family: var(--font-display);
1310 font-size: clamp(40px, 7.5vw, 96px);
1311 line-height: 0.98;
1312 letter-spacing: -0.04em;
1313 font-weight: 600;
1314 color: var(--text-strong);
2ce1d0bClaude1315 }
fc1817aClaude1316
958d26aClaude1317 /* Eyebrow — uppercase mono label that sits above section headings */
1318 .eyebrow {
1319 display: inline-flex;
1320 align-items: center;
1321 gap: 8px;
1322 font-family: var(--font-mono);
1323 font-size: 11px;
1324 font-weight: 500;
1325 letter-spacing: 0.14em;
1326 text-transform: uppercase;
1327 color: var(--accent);
1328 margin-bottom: var(--s-3);
1329 }
1330 .eyebrow::before {
1331 content: '';
1332 width: 18px;
1333 height: 1px;
1334 background: currentColor;
1335 opacity: 0.6;
1336 }
1337
1338 /* Section header — paired eyebrow + title + lede */
1339 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1340 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1341 .section-header h2 {
1342 font-size: clamp(28px, 4vw, 44px);
1343 line-height: 1.05;
1344 letter-spacing: -0.028em;
1345 margin-bottom: var(--s-3);
1346 }
1347 .section-header p {
1348 color: var(--text-muted);
1349 font-size: var(--t-md);
1350 line-height: 1.6;
1351 max-width: 580px;
1352 margin: 0 auto;
1353 }
1354 .section-header.left p { margin-left: 0; }
fc1817aClaude1355
958d26aClaude1356 code, kbd, samp {
2ce1d0bClaude1357 font-family: var(--font-mono);
958d26aClaude1358 font-feature-settings: var(--mono-feat);
1359 }
1360 code {
1361 font-size: 0.9em;
2ce1d0bClaude1362 background: var(--bg-tertiary);
958d26aClaude1363 border: 1px solid var(--border-subtle);
2ce1d0bClaude1364 padding: 1px 6px;
1365 border-radius: var(--r-sm);
1366 color: var(--text);
1367 }
958d26aClaude1368 kbd, .kbd {
1369 display: inline-flex;
1370 align-items: center;
1371 padding: 1px 6px;
1372 font-family: var(--font-mono);
1373 font-size: 11px;
1374 background: var(--bg-elevated);
1375 border: 1px solid var(--border);
1376 border-bottom-width: 2px;
1377 border-radius: 4px;
1378 color: var(--text);
1379 line-height: 1.5;
1380 vertical-align: middle;
1381 }
2ce1d0bClaude1382
958d26aClaude1383 /* Mono utility for technical chrome (paths, IDs, dates) */
1384 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1385 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1386
1387 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1388 .prelaunch-banner {
958d26aClaude1389 position: relative;
2ce1d0bClaude1390 background:
958d26aClaude1391 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1392 var(--bg);
958d26aClaude1393 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1394 color: var(--yellow);
958d26aClaude1395 padding: 7px 24px;
1396 font-family: var(--font-mono);
1397 font-size: 11px;
4a52a98Claude1398 font-weight: 500;
1399 text-align: center;
2ce1d0bClaude1400 line-height: 1.5;
958d26aClaude1401 letter-spacing: 0.04em;
1402 text-transform: uppercase;
1403 }
1404 .prelaunch-banner::before {
1405 content: '◆';
1406 margin-right: 8px;
1407 font-size: 9px;
1408 opacity: 0.7;
1409 vertical-align: 1px;
4a52a98Claude1410 }
1411
cd4f63bTest User1412 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1413 visitors don't miss the "save your work" CTA, but slim enough to
1414 not feel like a modal. */
1415 .playground-banner {
1416 position: relative;
1417 display: flex;
1418 align-items: center;
1419 justify-content: center;
1420 gap: 8px;
1421 background:
1422 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1423 var(--bg);
1424 border-bottom: 1px solid rgba(251,191,36,0.45);
1425 color: var(--yellow, #fbbf24);
1426 padding: 8px 40px 8px 24px;
1427 font-size: 13px;
1428 font-weight: 500;
1429 text-align: center;
1430 line-height: 1.4;
1431 }
1432 .playground-banner-icon { font-size: 14px; }
1433 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1434 .playground-banner-countdown { font-weight: 600; }
1435 .playground-banner-cta {
1436 margin-left: 4px;
1437 color: var(--yellow, #fbbf24);
1438 text-decoration: underline;
1439 font-weight: 600;
1440 }
1441 .playground-banner-cta:hover { opacity: 0.85; }
1442 .playground-banner-dismiss {
1443 position: absolute;
1444 top: 50%;
1445 right: 12px;
1446 transform: translateY(-50%);
1447 background: transparent;
1448 border: none;
1449 color: var(--text-muted, #8b949e);
1450 font-size: 18px;
1451 line-height: 1;
1452 cursor: pointer;
1453 padding: 0 4px;
1454 }
1455 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1456
958d26aClaude1457 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1458 header {
2ce1d0bClaude1459 position: sticky;
1460 top: 0;
1461 z-index: 100;
fc1817aClaude1462 border-bottom: 1px solid var(--border);
2ce1d0bClaude1463 padding: 0 24px;
1464 height: var(--header-h);
958d26aClaude1465 background: rgba(8,9,15,0.72);
1466 backdrop-filter: saturate(180%) blur(18px);
1467 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1468 }
958d26aClaude1469 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1470
06d5ffeClaude1471 header nav {
1472 display: flex;
1473 align-items: center;
958d26aClaude1474 gap: 18px;
eed4684Claude1475 max-width: 1920px;
06d5ffeClaude1476 margin: 0 auto;
2ce1d0bClaude1477 height: 100%;
1478 }
1479 .logo {
958d26aClaude1480 font-family: var(--font-display);
1481 font-size: 16px;
2ce1d0bClaude1482 font-weight: 700;
958d26aClaude1483 letter-spacing: -0.025em;
1484 color: var(--text-strong);
2ce1d0bClaude1485 display: inline-flex;
1486 align-items: center;
958d26aClaude1487 gap: 9px;
1488 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1489 }
2ce1d0bClaude1490 .logo::before {
1491 content: '';
958d26aClaude1492 width: 20px; height: 20px;
1493 border-radius: 6px;
2ce1d0bClaude1494 background: var(--accent-gradient);
958d26aClaude1495 box-shadow:
1496 inset 0 1px 0 rgba(255,255,255,0.25),
1497 0 0 0 1px rgba(140,109,255,0.45),
1498 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1499 flex-shrink: 0;
958d26aClaude1500 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1501 }
1502 .logo:hover { text-decoration: none; color: var(--text-strong); }
1503 .logo:hover::before {
1504 transform: rotate(8deg) scale(1.05);
1505 box-shadow:
1506 inset 0 1px 0 rgba(255,255,255,0.30),
1507 0 0 0 1px rgba(140,109,255,0.55),
1508 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1509 }
fc1817aClaude1510
2ce1d0bClaude1511 .nav-search {
1512 flex: 1;
958d26aClaude1513 max-width: 360px;
1514 margin: 0 4px 0 8px;
1515 position: relative;
2ce1d0bClaude1516 }
1517 .nav-search input {
1518 width: 100%;
958d26aClaude1519 padding: 7px 12px 7px 32px;
2ce1d0bClaude1520 background: var(--bg-tertiary);
1521 border: 1px solid var(--border);
1522 border-radius: var(--r-sm);
1523 color: var(--text);
1524 font-family: var(--font-sans);
1525 font-size: var(--t-sm);
958d26aClaude1526 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1527 }
1528 .nav-search::before {
1529 content: '';
1530 position: absolute;
1531 left: 11px; top: 50%;
1532 transform: translateY(-50%);
1533 width: 12px; height: 12px;
1534 border: 1.5px solid var(--text-faint);
1535 border-radius: 50%;
1536 pointer-events: none;
1537 }
1538 .nav-search::after {
1539 content: '';
1540 position: absolute;
1541 left: 19px; top: calc(50% + 4px);
1542 width: 5px; height: 1.5px;
1543 background: var(--text-faint);
1544 transform: rotate(45deg);
1545 pointer-events: none;
2ce1d0bClaude1546 }
1547 .nav-search input::placeholder { color: var(--text-faint); }
1548 .nav-search input:focus {
1549 outline: none;
1550 background: var(--bg-secondary);
958d26aClaude1551 border-color: var(--border-focus);
1552 box-shadow: var(--ring);
2ce1d0bClaude1553 }
06d5ffeClaude1554
958d26aClaude1555 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1556
1557 /* Block N3 — site-admin deploy status pill */
1558 .nav-deploy-pill {
1559 display: inline-flex;
1560 align-items: center;
1561 gap: 6px;
1562 padding: 4px 10px;
1563 margin: 0 6px 0 0;
1564 border-radius: 9999px;
1565 font-size: 11px;
1566 font-weight: 600;
1567 line-height: 1;
1568 color: var(--text-strong);
1569 background: var(--bg-elevated);
1570 border: 1px solid var(--border);
1571 text-decoration: none;
1572 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1573 }
1574 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1575 .nav-deploy-pill .deploy-pill-dot {
1576 display: inline-block;
1577 width: 8px; height: 8px;
1578 border-radius: 50%;
1579 background: #6b7280;
1580 }
1581 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1582 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1583 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1584 .deploy-pill-progress .deploy-pill-dot {
1585 background: #fbbf24;
1586 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1587 animation: deployPillPulse 1.2s ease-in-out infinite;
1588 }
1589 @keyframes deployPillPulse {
1590 0%, 100% { opacity: 1; transform: scale(1); }
1591 50% { opacity: 0.45; transform: scale(0.8); }
1592 }
1593 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1594
c6018a5Claude1595 /* ── AI dropdown (nav consolidation) ── */
1596 .nav-ai-dropdown {
1597 position: relative;
1598 display: inline-flex;
1599 align-items: center;
1600 }
1601 .nav-ai-trigger {
1602 background: transparent;
1603 border: 0;
1604 font: inherit;
1605 cursor: pointer;
1606 color: var(--text-muted);
1607 font-size: var(--t-sm);
1608 font-weight: 500;
1609 padding: 7px 11px;
1610 border-radius: var(--r-sm);
1611 line-height: 1.2;
1612 }
1613 .nav-ai-trigger:hover {
1614 color: var(--text-strong);
1615 background: var(--bg-hover);
1616 }
1617 .nav-ai-menu {
1618 position: absolute;
1619 top: calc(100% + 6px);
1620 right: 0;
1621 min-width: 220px;
1622 background: var(--bg-secondary);
1623 border: 1px solid var(--border-strong);
1624 border-radius: 10px;
1625 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1626 padding: 6px;
1627 display: none;
1628 z-index: var(--z-overlay, 100);
1629 }
1630 .nav-ai-dropdown:hover .nav-ai-menu,
1631 .nav-ai-dropdown.is-open .nav-ai-menu,
1632 .nav-ai-dropdown:focus-within .nav-ai-menu {
1633 display: block;
1634 }
1635 .nav-ai-item {
1636 display: flex;
1637 flex-direction: column;
1638 gap: 1px;
1639 padding: 8px 10px;
1640 border-radius: 6px;
1641 color: var(--text);
1642 text-decoration: none;
1643 transition: background var(--t-fast) var(--ease);
1644 }
1645 .nav-ai-item:hover {
1646 background: var(--bg-hover);
1647 text-decoration: none;
1648 color: var(--text-strong);
1649 }
1650 .nav-ai-item-label {
1651 font-size: var(--t-sm);
1652 font-weight: 600;
1653 color: var(--text-strong);
1654 }
1655 .nav-ai-item-sub {
1656 font-size: 11.5px;
1657 color: var(--text-muted);
1658 }
1659
2ce1d0bClaude1660 .nav-link {
958d26aClaude1661 position: relative;
2ce1d0bClaude1662 color: var(--text-muted);
1663 font-size: var(--t-sm);
1664 font-weight: 500;
958d26aClaude1665 padding: 7px 11px;
2ce1d0bClaude1666 border-radius: var(--r-sm);
958d26aClaude1667 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1668 }
1669 .nav-link:hover {
958d26aClaude1670 color: var(--text-strong);
2ce1d0bClaude1671 background: var(--bg-hover);
1672 text-decoration: none;
1673 }
958d26aClaude1674 .nav-link.active { color: var(--text-strong); }
1675 .nav-link.active::after {
1676 content: '';
1677 position: absolute;
1678 left: 11px; right: 11px;
1679 bottom: -1px;
1680 height: 2px;
1681 background: var(--accent-gradient);
1682 border-radius: 2px;
1683 }
adf5e18Claude1684 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1685 so it reads as an action affordance rather than a passive link. */
1686 .nav-migrate {
1687 color: var(--accent);
1688 font-weight: 600;
1689 border: 1px solid rgba(140,109,255,0.22);
1690 background: rgba(140,109,255,0.07);
1691 }
1692 .nav-migrate:hover {
1693 color: var(--accent-hover);
1694 background: rgba(140,109,255,0.13);
1695 border-color: rgba(140,109,255,0.40);
1696 }
1697 @media (max-width: 780px) { .nav-migrate { display: none; } }
1698
2ce1d0bClaude1699 .nav-user {
958d26aClaude1700 color: var(--text-strong);
2ce1d0bClaude1701 font-weight: 600;
1702 font-size: var(--t-sm);
1703 padding: 6px 10px;
1704 border-radius: var(--r-sm);
958d26aClaude1705 margin-left: 6px;
2ce1d0bClaude1706 transition: background var(--t-fast) var(--ease);
1707 }
958d26aClaude1708 .nav-user::before {
1709 content: '';
1710 display: inline-block;
1711 width: 8px; height: 8px;
1712 background: var(--green);
1713 border-radius: 50%;
1714 margin-right: 7px;
1715 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1716 vertical-align: 1px;
1717 }
2ce1d0bClaude1718 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1719
f5b9ef5Claude1720 /* ── Inbox bell button ── */
1721 .nav-inbox-btn {
1722 position: relative;
1723 display: inline-flex;
1724 align-items: center;
1725 justify-content: center;
1726 width: 34px;
1727 height: 34px;
1728 border-radius: var(--r-sm);
1729 color: var(--text-muted);
1730 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1731 flex-shrink: 0;
1732 }
1733 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1734 .nav-inbox-badge {
1735 position: absolute;
1736 top: 3px; right: 3px;
1737 min-width: 15px; height: 15px;
1738 padding: 0 4px;
1739 font-size: 9.5px;
1740 font-weight: 700;
1741 line-height: 15px;
1742 color: #fff;
1743 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1744 border-radius: 9999px;
1745 text-align: center;
1746 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1747 font-variant-numeric: tabular-nums;
1748 }
1749
1750 /* ── User dropdown ── */
1751 .nav-user-dropdown { position: relative; }
1752 .nav-user-trigger {
1753 display: inline-flex;
1754 align-items: center;
1755 gap: 7px;
1756 padding: 5px 9px 5px 5px;
1757 border-radius: var(--r-sm);
1758 border: 1px solid transparent;
1759 background: transparent;
1760 color: var(--text);
1761 font-family: var(--font-sans);
1762 font-size: var(--t-sm);
1763 font-weight: 500;
1764 cursor: pointer;
1765 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1766 }
1767 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1768 .nav-user-avatar {
1769 width: 24px; height: 24px;
1770 border-radius: 50%;
1771 background: var(--accent-gradient);
1772 color: #fff;
1773 font-size: 11px;
1774 font-weight: 700;
1775 display: inline-flex;
1776 align-items: center;
1777 justify-content: center;
1778 flex-shrink: 0;
1779 box-shadow: 0 0 0 2px var(--border);
1780 }
1781 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1782 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1783 .nav-user-menu {
1784 display: none;
1785 position: absolute;
1786 top: calc(100% + 6px);
1787 right: 0;
1788 min-width: 220px;
1789 background: var(--bg-elevated);
1790 border: 1px solid var(--border-strong);
1791 border-radius: var(--r-lg);
1792 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1793 padding: 6px;
1794 z-index: 200;
1795 animation: navMenuIn 140ms var(--ease) both;
1796 }
1797 .nav-user-menu.is-open { display: block; }
1798 .nav-user-menu-header {
1799 padding: 8px 10px 10px;
1800 display: flex;
1801 flex-direction: column;
1802 gap: 2px;
1803 }
1804 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1805 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1806 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1807 .nav-user-item {
1808 display: block;
1809 padding: 7px 10px;
1810 border-radius: 6px;
1811 font-size: var(--t-sm);
1812 color: var(--text);
1813 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1814 white-space: nowrap;
1815 }
1816 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1817 .nav-user-item--danger { color: var(--red); }
1818 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1819
1820 @keyframes navMenuIn {
1821 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1822 to { opacity: 1; transform: translateY(0) scale(1); }
1823 }
1824
2ce1d0bClaude1825 main {
eed4684Claude1826 max-width: 1920px;
2ce1d0bClaude1827 margin: 0 auto;
958d26aClaude1828 padding: 36px 24px 80px;
2ce1d0bClaude1829 flex: 1;
1830 width: 100%;
ed6e438Claude1831 /* 2026 polish — subtle entrance animation on every page load.
1832 Content fades up 4px over 360ms, giving the site that "alive"
1833 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1834 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1835 }
1836 @keyframes gxMainEnter {
1837 from { opacity: 0; transform: translateY(4px); }
1838 to { opacity: 1; transform: translateY(0); }
1839 }
1840 @media (prefers-reduced-motion: reduce) {
1841 main { animation: none; }
1842 }
1843 /* 2026 polish — accent focus ring across all focusable elements.
1844 The default browser ring is utilitarian; this is the same width
1845 but tinted to the brand accent so keyboard navigation feels
1846 intentional, not jarring. :focus-visible only — mouse users
1847 never see it. */
1848 :focus-visible {
1849 outline: none;
1850 }
1851 a:focus-visible,
1852 button:focus-visible,
1853 input:focus-visible,
1854 select:focus-visible,
1855 textarea:focus-visible,
1856 [tabindex]:focus-visible {
1857 outline: 2px solid rgba(140, 109, 255, 0.55);
1858 outline-offset: 2px;
1859 border-radius: 4px;
2ce1d0bClaude1860 }
fc1817aClaude1861
958d26aClaude1862 /* Editorial footer: link grid + tagline row */
fc1817aClaude1863 footer {
1864 border-top: 1px solid var(--border);
958d26aClaude1865 padding: 56px 24px 40px;
fc1817aClaude1866 color: var(--text-muted);
958d26aClaude1867 font-size: var(--t-sm);
1868 background:
1869 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1870 var(--bg);
1871 }
1872 footer .footer-inner {
eed4684Claude1873 max-width: 1920px;
958d26aClaude1874 margin: 0 auto;
1875 display: grid;
1876 grid-template-columns: 1fr auto;
1877 gap: 48px;
1878 align-items: start;
1879 }
1880 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1881 footer .footer-tag {
1882 color: var(--text-muted);
1883 font-size: var(--t-sm);
1884 max-width: 320px;
1885 line-height: 1.55;
1886 }
1887 footer .footer-links {
1888 display: grid;
1889 grid-template-columns: repeat(3, minmax(120px, auto));
1890 gap: 0 56px;
1891 }
1892 footer .footer-col-title {
1893 font-family: var(--font-mono);
1894 font-size: 11px;
1895 text-transform: uppercase;
1896 letter-spacing: 0.14em;
1897 color: var(--text-faint);
1898 margin-bottom: var(--s-3);
1899 }
1900 footer .footer-col a {
1901 display: block;
1902 color: var(--text-muted);
1903 font-size: var(--t-sm);
1904 padding: 5px 0;
1905 transition: color var(--t-fast) var(--ease);
1906 }
1907 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1908 footer .footer-bottom {
eed4684Claude1909 max-width: 1920px;
958d26aClaude1910 margin: 40px auto 0;
1911 padding-top: 24px;
1912 border-top: 1px solid var(--border-subtle);
1913 display: flex;
1914 justify-content: space-between;
1915 align-items: center;
2ce1d0bClaude1916 color: var(--text-faint);
1917 font-size: var(--t-xs);
958d26aClaude1918 font-family: var(--font-mono);
1919 letter-spacing: 0.02em;
1920 }
1921 footer .footer-bottom a { color: var(--text-faint); }
1922 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1923 footer .footer-build {
1924 display: inline-flex;
1925 align-items: center;
1926 gap: 6px;
1927 color: var(--text-faint);
1928 font-family: var(--font-mono);
1929 font-size: 11px;
1930 cursor: help;
1931 }
1932 footer .footer-build-dot {
1933 width: 6px; height: 6px;
1934 border-radius: 50%;
1935 background: var(--green);
1936 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1937 animation: footer-build-pulse 2.4s ease-in-out infinite;
1938 }
1939 @keyframes footer-build-pulse {
1940 0%, 100% { opacity: 0.6; }
1941 50% { opacity: 1; }
1942 }
958d26aClaude1943 @media (max-width: 768px) {
1944 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1945 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1946 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1947 }
1948
2ce1d0bClaude1949 /* ============================================================ */
1950 /* Buttons */
1951 /* ============================================================ */
dc26881CC LABS App1952 /* ============================================================ */
1953 /* Buttons — Block U2 senior polish pass. */
1954 /* Rules: */
1955 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1956 /* · active presses back down to 0 (80ms — faster on press) */
1957 /* · focus-visible uses a soft box-shadow ring (no outline) */
1958 /* · primary gradient shifts position on hover for a slow */
1959 /* 600ms shimmer */
1960 /* · disabled never lifts and never animates */
1961 /* ============================================================ */
06d5ffeClaude1962 .btn {
1963 display: inline-flex;
1964 align-items: center;
2ce1d0bClaude1965 justify-content: center;
958d26aClaude1966 gap: 7px;
2ce1d0bClaude1967 padding: 7px 14px;
1968 border-radius: var(--r-sm);
958d26aClaude1969 font-family: var(--font-sans);
2ce1d0bClaude1970 font-size: var(--t-sm);
06d5ffeClaude1971 font-weight: 500;
1972 border: 1px solid var(--border);
2ce1d0bClaude1973 background: var(--bg-elevated);
06d5ffeClaude1974 color: var(--text);
1975 cursor: pointer;
1976 text-decoration: none;
958d26aClaude1977 line-height: 1.25;
1978 letter-spacing: -0.008em;
dc26881CC LABS App1979 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1980 Listed once on the base rule so :active can override only the
1981 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1982 transition:
dc26881CC LABS App1983 background 180ms ease,
1984 border-color 180ms ease,
1985 transform 180ms ease,
1986 box-shadow 180ms ease,
1987 color 180ms ease;
2ce1d0bClaude1988 user-select: none;
1989 white-space: nowrap;
958d26aClaude1990 position: relative;
06d5ffeClaude1991 }
2ce1d0bClaude1992 .btn:hover {
1993 background: var(--bg-surface);
1994 border-color: var(--border-strong);
958d26aClaude1995 color: var(--text-strong);
2ce1d0bClaude1996 text-decoration: none;
dc26881CC LABS App1997 /* U2 — universal hover lift + soft accent drop shadow. */
1998 transform: translateY(-1px);
1999 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
2000 }
2001 .btn:active {
2002 transform: translateY(0);
2003 transition-duration: 80ms;
2004 }
2005 /* U2 — soft modern focus ring via box-shadow, not outline. */
2006 .btn:focus-visible {
2007 outline: none;
2008 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude2009 }
2010
2011 .btn-primary {
2012 background: var(--accent-gradient);
dc26881CC LABS App2013 background-size: 200% 100%;
2014 background-position: 0% 50%;
2ce1d0bClaude2015 border-color: transparent;
2016 color: #fff;
2017 font-weight: 600;
958d26aClaude2018 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude2019 box-shadow:
958d26aClaude2020 inset 0 1px 0 rgba(255,255,255,0.22),
2021 inset 0 -1px 0 rgba(0,0,0,0.10),
2022 0 1px 2px rgba(0,0,0,0.40),
2023 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App2024 /* U2 — slower 600ms transition on background-position so the
2025 primary CTA shimmers when the cursor lands. */
2026 transition:
2027 background-position 600ms ease,
2028 transform 180ms ease,
2029 box-shadow 180ms ease,
2030 color 180ms ease;
06d5ffeClaude2031 }
958d26aClaude2032 .btn-primary::before {
2033 content: '';
2034 position: absolute;
2035 inset: 0;
2036 border-radius: inherit;
2037 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
2038 opacity: 0;
2039 transition: opacity var(--t-fast) var(--ease);
2040 pointer-events: none;
2ce1d0bClaude2041 }
2042 .btn-primary:hover {
958d26aClaude2043 color: #fff;
2ce1d0bClaude2044 background: var(--accent-gradient);
dc26881CC LABS App2045 background-size: 200% 100%;
2046 background-position: 100% 50%;
958d26aClaude2047 border-color: transparent;
dc26881CC LABS App2048 transform: translateY(-1px);
2ce1d0bClaude2049 box-shadow:
958d26aClaude2050 inset 0 1px 0 rgba(255,255,255,0.30),
2051 inset 0 -1px 0 rgba(0,0,0,0.10),
2052 0 6px 18px -4px rgba(140,109,255,0.45),
2053 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude2054 }
958d26aClaude2055 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App2056 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2057 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2058 .btn-primary:focus-visible {
2059 box-shadow:
2060 inset 0 1px 0 rgba(255,255,255,0.22),
2061 0 0 0 3px rgba(140,109,255,0.35);
2062 }
2ce1d0bClaude2063
2064 .btn-danger {
2065 background: transparent;
958d26aClaude2066 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2067 color: var(--red);
2068 }
2069 .btn-danger:hover {
958d26aClaude2070 background: rgba(248,113,113,0.08);
2ce1d0bClaude2071 border-color: var(--red);
958d26aClaude2072 color: var(--red);
dc26881CC LABS App2073 transform: translateY(-1px);
2074 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2075 }
dc26881CC LABS App2076 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2077
2078 .btn-ghost {
2079 background: transparent;
2080 border-color: transparent;
2081 color: var(--text-muted);
2082 }
2083 .btn-ghost:hover {
2084 background: var(--bg-hover);
958d26aClaude2085 color: var(--text-strong);
2ce1d0bClaude2086 border-color: var(--border);
dc26881CC LABS App2087 transform: translateY(-1px);
2088 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2089 }
2090
958d26aClaude2091 .btn-secondary {
2092 background: var(--bg-elevated);
2093 border-color: var(--border-strong);
2094 color: var(--text-strong);
2095 }
2096 .btn-secondary:hover {
2097 background: var(--bg-surface);
2098 border-color: var(--border-strong);
dc26881CC LABS App2099 transform: translateY(-1px);
2100 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2101 }
2102
2103 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2104 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2105 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2106 .btn-block { width: 100%; }
2ce1d0bClaude2107
dc26881CC LABS App2108 /* U2 — disabled never lifts, never shimmers, never glows. */
2109 .btn:disabled,
2110 .btn[aria-disabled='true'],
2111 .btn:disabled:hover,
2112 .btn[aria-disabled='true']:hover {
2113 opacity: 0.5;
2ce1d0bClaude2114 cursor: not-allowed;
2115 pointer-events: none;
dc26881CC LABS App2116 transform: none;
2117 box-shadow: none;
2118 }
2119 @media (prefers-reduced-motion: reduce) {
2120 .btn,
2121 .btn:hover,
2122 .btn:active,
2123 .btn-primary,
2124 .btn-primary:hover {
2125 transform: none;
2126 transition: background-color 80ms linear, color 80ms linear;
2127 }
2ce1d0bClaude2128 }
2129
2130 /* ============================================================ */
2131 /* Forms */
2132 /* ============================================================ */
2133 .form-group { margin-bottom: 20px; }
2134 .form-group label {
2135 display: block;
2136 font-size: var(--t-sm);
2137 font-weight: 500;
2138 margin-bottom: 6px;
2139 color: var(--text);
2140 letter-spacing: -0.005em;
2141 }
2142 .form-group input,
2143 .form-group textarea,
2144 .form-group select,
2145 input[type='text'], input[type='email'], input[type='password'],
2146 input[type='url'], input[type='search'], input[type='number'],
2147 textarea, select {
06d5ffeClaude2148 width: 100%;
2ce1d0bClaude2149 padding: 9px 12px;
2150 background: var(--bg-secondary);
06d5ffeClaude2151 border: 1px solid var(--border);
2ce1d0bClaude2152 border-radius: var(--r-sm);
06d5ffeClaude2153 color: var(--text);
2ce1d0bClaude2154 font-size: var(--t-sm);
06d5ffeClaude2155 font-family: var(--font-sans);
2ce1d0bClaude2156 transition:
2157 border-color var(--t-fast) var(--ease),
2158 background var(--t-fast) var(--ease),
2159 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2160 }
2ce1d0bClaude2161 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2162 color: var(--text-faint);
06d5ffeClaude2163 }
2ce1d0bClaude2164 .form-group input:hover, textarea:hover, select:hover,
2165 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2166 border-color: var(--border-strong);
2167 }
2168 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2169 input:focus, textarea:focus, select:focus {
06d5ffeClaude2170 outline: none;
2ce1d0bClaude2171 background: var(--bg);
2172 border-color: var(--border-focus);
2173 box-shadow: var(--ring);
06d5ffeClaude2174 }
2ce1d0bClaude2175 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2176 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2177
2ce1d0bClaude2178 /* ============================================================ */
2179 /* Auth (register / login / verify) */
2180 /* ============================================================ */
2181 .auth-container {
98f45b4Claude2182 /* 2026 polish — wider, more generous, with a subtle accent-glow
2183 border and gradient top-edge so it reads as a premium product
2184 gateway, not a stock form. The 480px width feels intentional
2185 (not cramped, not endless). */
2186 max-width: 480px;
2187 margin: 72px auto;
2188 padding: 40px 40px 36px;
2ce1d0bClaude2189 background: var(--bg-elevated);
2190 border: 1px solid var(--border);
98f45b4Claude2191 border-radius: 16px;
2192 box-shadow:
2193 var(--elev-2),
2194 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2195 position: relative;
2196 overflow: hidden;
2197 }
2198 .auth-container::before {
2199 /* Hairline gradient accent on the top edge — signals 'AI-native'
2200 without shouting. Pointer-events disabled so it never interferes
2201 with form interactions. */
2202 content: '';
2203 position: absolute;
2204 top: 0;
2205 left: 0;
2206 right: 0;
2207 height: 2px;
2208 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2209 opacity: 0.7;
2210 pointer-events: none;
2ce1d0bClaude2211 }
2212 .auth-container h2 {
98f45b4Claude2213 margin: 0 0 8px;
2214 font-size: 28px;
2215 font-weight: 700;
2216 font-family: var(--font-display);
2217 letter-spacing: -0.025em;
2218 color: var(--text-strong);
2219 line-height: 1.15;
2220 }
2221 .auth-container .auth-subtitle {
2222 color: var(--text-muted);
2223 font-size: 14.5px;
2224 line-height: 1.5;
2225 margin: 0 0 24px;
2ce1d0bClaude2226 }
2227 .auth-container > p {
2228 color: var(--text-muted);
2229 font-size: var(--t-sm);
2230 margin-bottom: 24px;
2231 }
98f45b4Claude2232 .auth-container .btn-primary {
2233 width: 100%;
2234 padding: 12px 16px;
2235 font-size: 15px;
2236 font-weight: 600;
2237 margin-top: 4px;
2238 }
582cdacClaude2239
2240 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2241 with a brand-coloured logo on the left and a label centred-trailing.
2242 Hover lifts 1px with a subtle shadow — matches the rest of the
2243 button system but reads as a brand-affiliated action, not a brand-
2244 coloured primary CTA. */
2245 .auth-container .oauth-btn {
2246 display: flex;
2247 align-items: center;
2248 justify-content: center;
2249 gap: 10px;
2250 width: 100%;
2251 padding: 11px 16px;
2252 background: var(--bg-surface, var(--bg-elevated));
2253 border: 1px solid var(--border);
2254 border-radius: var(--r-md, 8px);
2255 color: var(--text-strong);
2256 font-family: var(--font-sans);
2257 font-size: 14.5px;
2258 font-weight: 500;
2259 text-decoration: none;
2260 transition:
2261 transform var(--t-base, 180ms) var(--ease, ease),
2262 box-shadow var(--t-base, 180ms) var(--ease, ease),
2263 background var(--t-fast, 120ms) var(--ease, ease),
2264 border-color var(--t-fast, 120ms) var(--ease, ease);
2265 }
2266 .auth-container .oauth-btn:hover {
2267 transform: translateY(-1px);
2268 background: var(--bg-hover);
2269 border-color: var(--text-muted);
2270 color: var(--text-strong);
2271 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2272 text-decoration: none;
2273 }
2274 .auth-container .oauth-btn:focus-visible {
2275 outline: 2px solid rgba(140, 109, 255, 0.55);
2276 outline-offset: 2px;
2277 }
2278 .auth-container .oauth-btn .oauth-icon {
2279 flex-shrink: 0;
2280 }
2281 /* GitHub icon adopts the text colour so it reads in both themes. */
2282 .auth-container .oauth-github .oauth-icon {
2283 color: var(--text-strong);
2284 }
2285 /* Google logo uses the official 4-colour treatment via inline SVG fill
2286 attributes — nothing to override here. */
2287 /* "or" divider between the password form and provider buttons */
2288 .auth-container .auth-divider {
2289 display: flex;
2290 align-items: center;
2291 gap: 12px;
2292 margin: 20px 0 12px;
2293 color: var(--text-faint);
2294 font-size: 12px;
2295 letter-spacing: 0.08em;
2296 text-transform: uppercase;
2297 }
2298 .auth-container .auth-divider::before,
2299 .auth-container .auth-divider::after {
2300 content: '';
2301 flex: 1;
2302 height: 1px;
2303 background: var(--border);
2304 }
06d5ffeClaude2305 .auth-error {
958d26aClaude2306 background: rgba(248,113,113,0.08);
2307 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2308 color: var(--red);
2ce1d0bClaude2309 padding: 10px 14px;
2310 border-radius: var(--r-sm);
06d5ffeClaude2311 margin-bottom: 16px;
2ce1d0bClaude2312 font-size: var(--t-sm);
06d5ffeClaude2313 }
2314 .auth-success {
958d26aClaude2315 background: rgba(52,211,153,0.08);
2316 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2317 color: var(--green);
2ce1d0bClaude2318 padding: 10px 14px;
2319 border-radius: var(--r-sm);
06d5ffeClaude2320 margin-bottom: 16px;
2ce1d0bClaude2321 font-size: var(--t-sm);
2322 }
2323 .auth-switch {
2324 margin-top: 20px;
2325 font-size: var(--t-sm);
2326 color: var(--text-muted);
2327 text-align: center;
2328 }
2329 .banner {
2330 background: var(--accent-gradient-faint);
958d26aClaude2331 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2332 color: var(--text);
2333 padding: 10px 14px;
2334 border-radius: var(--r-sm);
2335 font-size: var(--t-sm);
06d5ffeClaude2336 }
2337
2ce1d0bClaude2338 /* ============================================================ */
2339 /* Settings */
2340 /* ============================================================ */
2341 .settings-container { max-width: 720px; }
2342 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2343 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2344 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2345 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2346 .ssh-keys-list { margin-bottom: 24px; }
2347 .ssh-key-item {
2348 display: flex;
2349 justify-content: space-between;
2350 align-items: center;
2ce1d0bClaude2351 padding: 14px 16px;
06d5ffeClaude2352 border: 1px solid var(--border);
2ce1d0bClaude2353 border-radius: var(--r-md);
06d5ffeClaude2354 margin-bottom: 8px;
2ce1d0bClaude2355 background: var(--bg-elevated);
2356 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2357 }
2ce1d0bClaude2358 .ssh-key-item:hover { border-color: var(--border-strong); }
2359 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2360 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2361
2ce1d0bClaude2362 /* ============================================================ */
2363 /* Repo header + nav */
2364 /* ============================================================ */
fc1817aClaude2365 .repo-header {
2366 display: flex;
2367 align-items: center;
debcf27Claude2368 gap: 12px;
2369 margin-bottom: 22px;
2370 }
2371 .repo-header-title {
2372 display: flex;
2373 align-items: center;
2374 gap: 10px;
2375 font-family: var(--font-display);
2376 font-size: 24px;
2377 letter-spacing: -0.025em;
2378 flex-wrap: wrap;
2379 }
2380 .repo-header .owner {
2381 color: var(--text-muted);
2382 font-weight: 500;
2383 transition: color var(--t-fast) var(--ease);
2384 }
2385 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2386 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2387 .repo-header .name {
2388 color: var(--text-strong);
2389 font-weight: 700;
2390 letter-spacing: -0.028em;
fc1817aClaude2391 }
2ce1d0bClaude2392 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2393 .repo-header-fork {
2394 font-family: var(--font-mono);
2395 font-size: 11px;
2396 color: var(--text-muted);
2397 margin-top: 4px;
2398 letter-spacing: 0.01em;
2399 }
2400 .repo-header-fork a { color: var(--text-muted); }
2401 .repo-header-fork a:hover { color: var(--accent); }
2402 .repo-header-pill {
2403 display: inline-flex;
2404 align-items: center;
2405 padding: 2px 10px;
2406 border-radius: var(--r-full);
2407 font-family: var(--font-mono);
2408 font-size: 10px;
2409 font-weight: 600;
2410 letter-spacing: 0.12em;
2411 text-transform: uppercase;
2412 line-height: 1.6;
2413 vertical-align: 4px;
2414 }
2415 .repo-header-pill-archived {
2416 background: rgba(251,191,36,0.10);
2417 color: var(--yellow);
2418 border: 1px solid rgba(251,191,36,0.30);
2419 }
2420 .repo-header-pill-template {
2421 background: var(--accent-gradient-faint);
2422 color: var(--accent);
2423 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2424 }
06d5ffeClaude2425 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2426
8c790e0Claude2427 /* Push Watch discoverability — live/recent indicator in the repo header */
2428 @keyframes pushWatchPulse {
2429 0%, 100% { opacity: 1; }
2430 50% { opacity: 0.3; }
2431 }
2432 .repo-header-live-badge {
2433 display: inline-flex;
2434 align-items: center;
2435 gap: 5px;
2436 padding: 2px 9px;
2437 border-radius: 999px;
2438 font-size: 12px;
2439 font-weight: 600;
2440 letter-spacing: 0.02em;
2441 text-decoration: none !important;
2442 vertical-align: 3px;
2443 transition: filter 140ms ease, opacity 140ms ease;
2444 }
2445 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2446 .repo-header-live-badge--live {
2447 background: rgba(218, 54, 51, 0.12);
2448 color: #f97171;
2449 border: 1px solid rgba(218, 54, 51, 0.35);
2450 }
2451 .repo-header-live-badge--live .repo-header-live-dot {
2452 animation: pushWatchPulse 1.2s ease-in-out infinite;
2453 display: inline-block;
2454 }
2455 .repo-header-live-badge--recent {
2456 background: rgba(140, 109, 255, 0.08);
2457 color: var(--text-muted);
2458 border: 1px solid rgba(140, 109, 255, 0.22);
2459 }
2460 .repo-header-live-badge--recent:hover { color: var(--accent); }
2461 @media (prefers-reduced-motion: reduce) {
2462 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2463 }
2464
fc1817aClaude2465 .repo-nav {
2466 display: flex;
debcf27Claude2467 gap: 1px;
fc1817aClaude2468 border-bottom: 1px solid var(--border);
debcf27Claude2469 margin-bottom: 28px;
2ce1d0bClaude2470 overflow-x: auto;
2471 scrollbar-width: thin;
fc1817aClaude2472 }
2ce1d0bClaude2473 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2474 .repo-nav a {
debcf27Claude2475 position: relative;
2476 padding: 11px 14px;
fc1817aClaude2477 color: var(--text-muted);
2478 border-bottom: 2px solid transparent;
2ce1d0bClaude2479 font-size: var(--t-sm);
2480 font-weight: 500;
2481 margin-bottom: -1px;
debcf27Claude2482 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2483 white-space: nowrap;
2484 }
debcf27Claude2485 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2486 .repo-nav a.active {
debcf27Claude2487 color: var(--text-strong);
2488 font-weight: 600;
2489 }
2490 .repo-nav a.active::after {
2491 content: '';
2492 position: absolute;
2493 left: 14px;
2494 right: 14px;
2495 bottom: -1px;
2496 height: 2px;
2497 background: var(--accent-gradient);
2498 border-radius: 2px;
2499 }
2500 /* AI links in the right-side cluster — sparkle accent */
2501 .repo-nav-ai {
2502 color: var(--accent) !important;
2503 font-weight: 500;
2504 }
2505 .repo-nav-ai:hover {
2506 color: var(--accent-hover) !important;
2507 background: var(--accent-gradient-faint) !important;
2508 }
2509 .repo-nav-ai.active {
2510 color: var(--accent-hover) !important;
2ce1d0bClaude2511 font-weight: 600;
fc1817aClaude2512 }
2513
2ce1d0bClaude2514 .breadcrumb {
2515 display: flex;
debcf27Claude2516 gap: 6px;
2ce1d0bClaude2517 align-items: center;
debcf27Claude2518 margin-bottom: 18px;
2ce1d0bClaude2519 color: var(--text-muted);
2520 font-size: var(--t-sm);
2521 font-family: var(--font-mono);
debcf27Claude2522 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2523 }
2524 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2525 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2526 .breadcrumb strong {
2527 color: var(--text-strong);
2528 font-weight: 600;
fc1817aClaude2529 }
2530
debcf27Claude2531 /* Page header — eyebrow + title + optional actions row.
2532 Use on dashboard, settings, admin, any "section landing" page. */
2533 .page-header {
2534 display: flex;
2535 align-items: flex-end;
2536 justify-content: space-between;
2537 gap: 16px;
2538 margin-bottom: 28px;
2539 padding-bottom: 20px;
2540 border-bottom: 1px solid var(--border-subtle);
2541 flex-wrap: wrap;
2542 }
2543 .page-header-text { flex: 1; min-width: 280px; }
2544 .page-header .eyebrow { margin-bottom: var(--s-2); }
2545 .page-header h1 {
2546 font-family: var(--font-display);
2547 font-size: clamp(24px, 3vw, 36px);
2548 line-height: 1.1;
2549 letter-spacing: -0.028em;
2550 margin-bottom: 6px;
2551 }
2552 .page-header p {
2553 color: var(--text-muted);
2554 font-size: var(--t-sm);
2555 line-height: 1.55;
2556 max-width: 640px;
2557 }
2558 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2559
2ce1d0bClaude2560 /* ============================================================ */
2561 /* File browser table */
2562 /* ============================================================ */
2563 .file-table {
2564 width: 100%;
2565 border: 1px solid var(--border);
2566 border-radius: var(--r-md);
2567 overflow: hidden;
2568 background: var(--bg-elevated);
debcf27Claude2569 border-collapse: collapse;
2ce1d0bClaude2570 }
debcf27Claude2571 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2572 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2573 .file-table td {
2574 padding: 9px 16px;
2575 font-size: var(--t-sm);
2576 font-family: var(--font-mono);
2577 font-feature-settings: var(--mono-feat);
2578 }
2ce1d0bClaude2579 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2580 .file-icon {
2581 width: 22px;
2582 color: var(--text-faint);
2583 font-size: 13px;
2584 text-align: center;
2585 }
2586 .file-name a {
2587 color: var(--text);
2588 font-weight: 500;
2589 transition: color var(--t-fast) var(--ease);
2590 }
2591 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2592
2ce1d0bClaude2593 /* ============================================================ */
2594 /* Blob view */
2595 /* ============================================================ */
fc1817aClaude2596 .blob-view {
2597 border: 1px solid var(--border);
2ce1d0bClaude2598 border-radius: var(--r-md);
fc1817aClaude2599 overflow: hidden;
2ce1d0bClaude2600 background: var(--bg-elevated);
fc1817aClaude2601 }
2602 .blob-header {
2603 background: var(--bg-secondary);
2ce1d0bClaude2604 padding: 10px 16px;
fc1817aClaude2605 border-bottom: 1px solid var(--border);
2ce1d0bClaude2606 font-size: var(--t-sm);
fc1817aClaude2607 color: var(--text-muted);
06d5ffeClaude2608 display: flex;
2609 justify-content: space-between;
2610 align-items: center;
fc1817aClaude2611 }
2612 .blob-code {
2613 overflow-x: auto;
2614 font-family: var(--font-mono);
2ce1d0bClaude2615 font-size: var(--t-sm);
2616 line-height: 1.65;
fc1817aClaude2617 }
2618 .blob-code table { width: 100%; border-collapse: collapse; }
2619 .blob-code .line-num {
2620 width: 1%;
2ce1d0bClaude2621 min-width: 56px;
2622 padding: 0 14px;
fc1817aClaude2623 text-align: right;
2ce1d0bClaude2624 color: var(--text-faint);
fc1817aClaude2625 user-select: none;
2626 white-space: nowrap;
2627 border-right: 1px solid var(--border);
2628 }
2ce1d0bClaude2629 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2630 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2631
2ce1d0bClaude2632 /* ============================================================ */
2633 /* Commits + diffs */
2634 /* ============================================================ */
2635 .commit-list {
2636 border: 1px solid var(--border);
2637 border-radius: var(--r-md);
2638 overflow: hidden;
2639 background: var(--bg-elevated);
2640 }
fc1817aClaude2641 .commit-item {
2642 display: flex;
2643 justify-content: space-between;
2644 align-items: center;
debcf27Claude2645 padding: 14px 18px;
2646 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2647 transition: background var(--t-fast) var(--ease);
fc1817aClaude2648 }
2649 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2650 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2651 .commit-message {
2652 font-size: var(--t-sm);
2653 font-weight: 500;
2654 line-height: 1.45;
2655 color: var(--text-strong);
2656 letter-spacing: -0.005em;
2657 }
2658 .commit-meta {
2659 font-family: var(--font-mono);
2660 font-size: 11px;
2661 color: var(--text-muted);
2662 margin-top: 5px;
2663 letter-spacing: 0.01em;
2664 }
fc1817aClaude2665 .commit-sha {
2666 font-family: var(--font-mono);
debcf27Claude2667 font-feature-settings: var(--mono-feat);
2668 font-size: 11px;
2669 padding: 4px 9px;
fc1817aClaude2670 background: var(--bg-tertiary);
2671 border: 1px solid var(--border);
2ce1d0bClaude2672 border-radius: var(--r-sm);
debcf27Claude2673 color: var(--accent);
2674 font-weight: 600;
2675 letter-spacing: 0.02em;
2ce1d0bClaude2676 transition: all var(--t-fast) var(--ease);
fc1817aClaude2677 }
debcf27Claude2678 .commit-sha:hover {
2679 border-color: rgba(140,109,255,0.40);
2680 background: var(--accent-gradient-faint);
2681 color: var(--accent-hover);
2682 text-decoration: none;
fc1817aClaude2683 }
2684
2685 .diff-view { margin-top: 16px; }
2686 .diff-file {
2687 border: 1px solid var(--border);
2ce1d0bClaude2688 border-radius: var(--r-md);
fc1817aClaude2689 margin-bottom: 16px;
2690 overflow: hidden;
2ce1d0bClaude2691 background: var(--bg-elevated);
fc1817aClaude2692 }
2693 .diff-file-header {
2694 background: var(--bg-secondary);
2ce1d0bClaude2695 padding: 10px 16px;
fc1817aClaude2696 border-bottom: 1px solid var(--border);
2697 font-family: var(--font-mono);
2ce1d0bClaude2698 font-size: var(--t-sm);
2699 font-weight: 500;
fc1817aClaude2700 }
2701 .diff-content {
2702 overflow-x: auto;
2703 font-family: var(--font-mono);
2ce1d0bClaude2704 font-size: var(--t-sm);
2705 line-height: 1.65;
fc1817aClaude2706 }
958d26aClaude2707 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2708 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2709 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2710 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2711
2712 .stat-add { color: var(--green); font-weight: 600; }
2713 .stat-del { color: var(--red); font-weight: 600; }
2714
2ce1d0bClaude2715 /* ============================================================ */
2716 /* Empty state */
2717 /* ============================================================ */
fc1817aClaude2718 .empty-state {
2719 text-align: center;
958d26aClaude2720 padding: 96px 24px;
fc1817aClaude2721 color: var(--text-muted);
2ce1d0bClaude2722 border: 1px dashed var(--border);
2723 border-radius: var(--r-lg);
958d26aClaude2724 background:
2725 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2726 var(--bg-elevated);
2727 position: relative;
2728 overflow: hidden;
2729 }
2730 .empty-state::before {
2731 content: '';
2732 position: absolute;
2733 inset: 0;
2734 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2735 background-size: 24px 24px;
2736 opacity: 0.5;
2737 pointer-events: none;
2738 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2739 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2740 }
2741 :root[data-theme='light'] .empty-state::before {
2742 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2743 }
958d26aClaude2744 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2745 .empty-state h2 {
958d26aClaude2746 font-size: var(--t-xl);
2ce1d0bClaude2747 margin-bottom: 8px;
958d26aClaude2748 color: var(--text-strong);
2749 letter-spacing: -0.022em;
2ce1d0bClaude2750 }
958d26aClaude2751 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2752 .empty-state pre {
2753 text-align: left;
2754 display: inline-block;
2755 background: var(--bg-secondary);
958d26aClaude2756 padding: 18px 24px;
2757 border-radius: var(--r-md);
fc1817aClaude2758 border: 1px solid var(--border);
2759 font-family: var(--font-mono);
958d26aClaude2760 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2761 font-size: var(--t-sm);
958d26aClaude2762 margin-top: 24px;
fc1817aClaude2763 line-height: 1.8;
2ce1d0bClaude2764 color: var(--text);
958d26aClaude2765 box-shadow: var(--elev-1);
fc1817aClaude2766 }
2767
2ce1d0bClaude2768 /* ============================================================ */
2769 /* Badges */
2770 /* ============================================================ */
fc1817aClaude2771 .badge {
2ce1d0bClaude2772 display: inline-flex;
2773 align-items: center;
2774 gap: 4px;
2775 padding: 2px 9px;
2776 border-radius: var(--r-full);
2777 font-size: var(--t-xs);
fc1817aClaude2778 font-weight: 500;
2779 background: var(--bg-tertiary);
2780 border: 1px solid var(--border);
2781 color: var(--text-muted);
2ce1d0bClaude2782 line-height: 1.5;
fc1817aClaude2783 }
2784
2ce1d0bClaude2785 /* ============================================================ */
2786 /* Branch dropdown */
2787 /* ============================================================ */
fc1817aClaude2788 .branch-selector {
2789 display: inline-flex;
2790 align-items: center;
2ce1d0bClaude2791 gap: 6px;
2792 padding: 6px 12px;
2793 background: var(--bg-elevated);
fc1817aClaude2794 border: 1px solid var(--border);
2ce1d0bClaude2795 border-radius: var(--r-sm);
2796 font-size: var(--t-sm);
fc1817aClaude2797 color: var(--text);
2798 margin-bottom: 12px;
2ce1d0bClaude2799 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2800 }
2ce1d0bClaude2801 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2802
06d5ffeClaude2803 .branch-dropdown {
2804 position: relative;
2805 display: inline-block;
2806 margin-bottom: 12px;
2807 }
2808 .branch-dropdown-content {
2809 display: none;
2810 position: absolute;
2ce1d0bClaude2811 top: calc(100% + 4px);
06d5ffeClaude2812 left: 0;
2813 z-index: 10;
2ce1d0bClaude2814 min-width: 220px;
2815 background: var(--bg-elevated);
2816 border: 1px solid var(--border-strong);
2817 border-radius: var(--r-md);
2818 overflow: hidden;
2819 box-shadow: var(--elev-3);
06d5ffeClaude2820 }
2821 .branch-dropdown:hover .branch-dropdown-content,
2822 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2823 .branch-dropdown-content a {
2824 display: block;
2ce1d0bClaude2825 padding: 9px 14px;
2826 font-size: var(--t-sm);
06d5ffeClaude2827 color: var(--text);
2828 border-bottom: 1px solid var(--border);
2ce1d0bClaude2829 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2830 }
2831 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2832 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2833 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2834
2ce1d0bClaude2835 /* ============================================================ */
2836 /* Card grid */
2837 /* ============================================================ */
2838 .card-grid {
2839 display: grid;
2840 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2841 gap: 16px;
2842 }
fc1817aClaude2843 .card {
2844 border: 1px solid var(--border);
2ce1d0bClaude2845 border-radius: var(--r-md);
958d26aClaude2846 padding: 20px;
2ce1d0bClaude2847 background: var(--bg-elevated);
2848 transition:
958d26aClaude2849 border-color var(--t-base) var(--ease),
2850 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2851 box-shadow var(--t-base) var(--ease);
2852 position: relative;
2853 overflow: hidden;
958d26aClaude2854 isolation: isolate;
2855 }
2856 .card::before {
2857 content: '';
2858 position: absolute;
2859 inset: 0;
2860 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2861 opacity: 0;
2862 transition: opacity var(--t-base) var(--ease);
2863 pointer-events: none;
2864 z-index: -1;
2ce1d0bClaude2865 }
2866 .card:hover {
2867 border-color: var(--border-strong);
2868 box-shadow: var(--elev-2);
958d26aClaude2869 transform: translateY(-2px);
2ce1d0bClaude2870 }
958d26aClaude2871 .card:hover::before { opacity: 1; }
2872 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2873 .card h3 a { color: var(--text); font-weight: 600; }
2874 .card h3 a:hover { color: var(--text-link); }
2875 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2876 .card-meta {
2877 display: flex;
2878 gap: 14px;
2879 margin-top: 14px;
2880 padding-top: 14px;
2881 border-top: 1px solid var(--border);
2882 font-size: var(--t-xs);
2883 color: var(--text-muted);
2884 }
2885 .card-meta span { display: flex; align-items: center; gap: 5px; }
2886
2887 /* ============================================================ */
2888 /* Stat card / box */
2889 /* ============================================================ */
2890 .stat-card {
2891 background: var(--bg-elevated);
2892 border: 1px solid var(--border);
2893 border-radius: var(--r-md);
fc1817aClaude2894 padding: 16px;
2ce1d0bClaude2895 transition: border-color var(--t-fast) var(--ease);
2896 }
2897 .stat-card:hover { border-color: var(--border-strong); }
2898 .stat-label {
2899 font-size: var(--t-xs);
2900 color: var(--text-muted);
2901 text-transform: uppercase;
2902 letter-spacing: 0.06em;
2903 font-weight: 500;
2904 }
2905 .stat-value {
2906 font-size: var(--t-xl);
2907 font-weight: 700;
2908 margin-top: 4px;
2909 letter-spacing: -0.025em;
2910 color: var(--text);
2911 font-feature-settings: 'tnum';
fc1817aClaude2912 }
06d5ffeClaude2913
2ce1d0bClaude2914 /* ============================================================ */
2915 /* Star button */
2916 /* ============================================================ */
06d5ffeClaude2917 .star-btn {
2918 display: inline-flex;
2919 align-items: center;
2920 gap: 6px;
2ce1d0bClaude2921 padding: 5px 12px;
2922 background: var(--bg-elevated);
06d5ffeClaude2923 border: 1px solid var(--border);
2ce1d0bClaude2924 border-radius: var(--r-sm);
06d5ffeClaude2925 color: var(--text);
2ce1d0bClaude2926 font-size: var(--t-sm);
2927 font-weight: 500;
06d5ffeClaude2928 cursor: pointer;
2ce1d0bClaude2929 transition: all var(--t-fast) var(--ease);
2930 }
2931 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2932 .star-btn.starred {
2933 color: var(--yellow);
958d26aClaude2934 border-color: rgba(251,191,36,0.4);
2935 background: rgba(251,191,36,0.08);
06d5ffeClaude2936 }
2937
2ce1d0bClaude2938 /* ============================================================ */
2939 /* User profile */
2940 /* ============================================================ */
06d5ffeClaude2941 .user-profile {
2942 display: flex;
2943 gap: 32px;
2944 margin-bottom: 32px;
2ce1d0bClaude2945 padding: 24px;
2946 background: var(--bg-elevated);
2947 border: 1px solid var(--border);
2948 border-radius: var(--r-lg);
06d5ffeClaude2949 }
2950 .user-avatar {
2951 width: 96px;
2952 height: 96px;
2ce1d0bClaude2953 border-radius: var(--r-full);
2954 background: var(--accent-gradient-soft);
2955 border: 1px solid var(--border-strong);
06d5ffeClaude2956 display: flex;
2957 align-items: center;
2958 justify-content: center;
2ce1d0bClaude2959 font-size: 36px;
2960 font-weight: 600;
2961 color: var(--text);
06d5ffeClaude2962 flex-shrink: 0;
2ce1d0bClaude2963 letter-spacing: -0.02em;
06d5ffeClaude2964 }
2ce1d0bClaude2965 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2966 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2967 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2968
2ce1d0bClaude2969 /* ============================================================ */
2970 /* New repo form */
2971 /* ============================================================ */
2972 .new-repo-form { max-width: 640px; }
2973 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2974 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2975 .visibility-option {
2976 flex: 1;
2ce1d0bClaude2977 padding: 16px;
06d5ffeClaude2978 border: 1px solid var(--border);
2ce1d0bClaude2979 border-radius: var(--r-md);
2980 background: var(--bg-elevated);
06d5ffeClaude2981 cursor: pointer;
2ce1d0bClaude2982 text-align: left;
2983 transition: all var(--t-fast) var(--ease);
2984 }
2985 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2986 .visibility-option:has(input:checked) {
2987 border-color: var(--accent);
2988 background: var(--accent-gradient-faint);
2989 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2990 }
2991 .visibility-option input { display: none; }
2ce1d0bClaude2992 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2993 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2994
2ce1d0bClaude2995 /* ============================================================ */
2996 /* Issues */
2997 /* ============================================================ */
2998 .issue-tabs { display: flex; gap: 4px; }
2999 .issue-tabs a {
3000 color: var(--text-muted);
3001 font-size: var(--t-sm);
3002 font-weight: 500;
3003 padding: 6px 12px;
3004 border-radius: var(--r-sm);
3005 transition: all var(--t-fast) var(--ease);
3006 }
3007 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
3008 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude3009
2ce1d0bClaude3010 .issue-list {
3011 border: 1px solid var(--border);
3012 border-radius: var(--r-md);
3013 overflow: hidden;
3014 background: var(--bg-elevated);
3015 }
79136bbClaude3016 .issue-item {
3017 display: flex;
2ce1d0bClaude3018 gap: 14px;
79136bbClaude3019 align-items: flex-start;
2ce1d0bClaude3020 padding: 14px 16px;
79136bbClaude3021 border-bottom: 1px solid var(--border);
2ce1d0bClaude3022 transition: background var(--t-fast) var(--ease);
79136bbClaude3023 }
3024 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude3025 .issue-item:hover { background: var(--bg-hover); }
3026 .issue-state-icon {
3027 font-size: 14px;
3028 padding-top: 2px;
3029 width: 18px;
3030 height: 18px;
3031 display: inline-flex;
3032 align-items: center;
3033 justify-content: center;
3034 border-radius: var(--r-full);
3035 flex-shrink: 0;
3036 }
79136bbClaude3037 .state-open { color: var(--green); }
958d26aClaude3038 .state-closed { color: #b69dff; }
2ce1d0bClaude3039 .issue-title {
debcf27Claude3040 font-family: var(--font-display);
3041 font-size: var(--t-md);
2ce1d0bClaude3042 font-weight: 600;
debcf27Claude3043 line-height: 1.35;
3044 letter-spacing: -0.012em;
3045 }
3046 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
3047 .issue-title a:hover { color: var(--accent); text-decoration: none; }
3048 .issue-meta {
3049 font-family: var(--font-mono);
3050 font-size: 11px;
3051 color: var(--text-muted);
3052 margin-top: 5px;
3053 letter-spacing: 0.01em;
2ce1d0bClaude3054 }
79136bbClaude3055
3056 .issue-badge {
3057 display: inline-flex;
3058 align-items: center;
2ce1d0bClaude3059 gap: 6px;
79136bbClaude3060 padding: 4px 12px;
2ce1d0bClaude3061 border-radius: var(--r-full);
3062 font-size: var(--t-sm);
79136bbClaude3063 font-weight: 500;
2ce1d0bClaude3064 line-height: 1.4;
79136bbClaude3065 }
958d26aClaude3066 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3067 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3068 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3069 .state-merged { color: var(--accent); }
958d26aClaude3070 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3071
2ce1d0bClaude3072 .issue-detail { max-width: 920px; }
79136bbClaude3073 .issue-comment-box {
3074 border: 1px solid var(--border);
2ce1d0bClaude3075 border-radius: var(--r-md);
79136bbClaude3076 margin-bottom: 16px;
3077 overflow: hidden;
2ce1d0bClaude3078 background: var(--bg-elevated);
79136bbClaude3079 }
3080 .comment-header {
3081 background: var(--bg-secondary);
2ce1d0bClaude3082 padding: 10px 16px;
79136bbClaude3083 border-bottom: 1px solid var(--border);
2ce1d0bClaude3084 font-size: var(--t-sm);
79136bbClaude3085 color: var(--text-muted);
3086 }
3087
2ce1d0bClaude3088 /* ============================================================ */
3089 /* Panel — flexible container used across many pages */
3090 /* ============================================================ */
3091 .panel {
3092 background: var(--bg-elevated);
3093 border: 1px solid var(--border);
3094 border-radius: var(--r-md);
3095 overflow: hidden;
3096 }
3097 .panel-item {
3098 display: flex;
3099 align-items: center;
3100 gap: 12px;
3101 padding: 12px 16px;
79136bbClaude3102 border-bottom: 1px solid var(--border);
2ce1d0bClaude3103 transition: background var(--t-fast) var(--ease);
3104 }
3105 .panel-item:last-child { border-bottom: none; }
3106 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3107
3108 /* ─── j/k keyboard list navigation ─── */
3109 .is-kbd-focus {
3110 outline: 2px solid rgba(140,109,255,0.6) !important;
3111 outline-offset: -2px;
3112 background: rgba(140,109,255,0.06) !important;
3113 border-radius: 4px;
3114 }
3115 .is-kbd-selected {
3116 outline: 2px solid rgba(52,211,153,0.6) !important;
3117 background: rgba(52,211,153,0.06) !important;
3118 }
2ce1d0bClaude3119 .panel-empty {
3120 padding: 24px;
3121 text-align: center;
79136bbClaude3122 color: var(--text-muted);
2ce1d0bClaude3123 font-size: var(--t-sm);
79136bbClaude3124 }
3125
2ce1d0bClaude3126 /* ============================================================ */
3127 /* Search */
3128 /* ============================================================ */
79136bbClaude3129 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3130
2ce1d0bClaude3131 /* ============================================================ */
3132 /* Timeline */
3133 /* ============================================================ */
3134 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3135 .timeline::before {
3136 content: '';
3137 position: absolute;
3138 left: 4px;
3139 top: 8px;
3140 bottom: 8px;
3141 width: 2px;
2ce1d0bClaude3142 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3143 }
2ce1d0bClaude3144 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3145 .timeline-dot {
3146 position: absolute;
2ce1d0bClaude3147 left: -28px;
3148 top: 8px;
3149 width: 12px;
3150 height: 12px;
3151 border-radius: var(--r-full);
3152 background: var(--accent-gradient);
16b325cClaude3153 border: 2px solid var(--bg);
2ce1d0bClaude3154 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3155 }
3156 .timeline-content {
2ce1d0bClaude3157 background: var(--bg-elevated);
16b325cClaude3158 border: 1px solid var(--border);
2ce1d0bClaude3159 border-radius: var(--r-md);
3160 padding: 14px 16px;
16b325cClaude3161 }
f1ab587Claude3162
2ce1d0bClaude3163 /* ============================================================ */
3164 /* Toggle switch */
3165 /* ============================================================ */
f1ab587Claude3166 .toggle-switch {
3167 position: relative;
3168 display: inline-block;
2ce1d0bClaude3169 width: 40px;
3170 height: 22px;
f1ab587Claude3171 flex-shrink: 0;
3172 margin-left: 16px;
3173 }
3174 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3175 .toggle-slider {
3176 position: absolute;
3177 cursor: pointer;
3178 top: 0; left: 0; right: 0; bottom: 0;
3179 background: var(--bg-tertiary);
3180 border: 1px solid var(--border);
2ce1d0bClaude3181 border-radius: var(--r-full);
3182 transition: all var(--t-base) var(--ease);
f1ab587Claude3183 }
3184 .toggle-slider::before {
3185 content: '';
3186 position: absolute;
2ce1d0bClaude3187 height: 16px;
3188 width: 16px;
f1ab587Claude3189 left: 2px;
3190 bottom: 2px;
3191 background: var(--text-muted);
2ce1d0bClaude3192 border-radius: var(--r-full);
3193 transition: all var(--t-base) var(--ease);
f1ab587Claude3194 }
3195 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3196 background: var(--accent-gradient);
3197 border-color: transparent;
958d26aClaude3198 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3199 }
3200 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3201 transform: translateX(18px);
f1ab587Claude3202 background: #fff;
3203 }
ef8d378Claude3204
3205 /* ============================================================
3206 * 2026 polish layer (purely additive — no layout changes).
3207 * Improves typography rendering, focus states, hover affordances,
3208 * and adds the gradient brand cue to primary buttons. Anything
3209 * that could alter dimensions stays in the rules above.
3210 * ============================================================ */
3211 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3212 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3213 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3214
3215 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3216 h1 { letter-spacing: -0.025em; }
3217
3218 /* Smoother colour transitions everywhere links live */
3219 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3220
3221 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3222 .btn {
3223 transition:
3224 background 120ms cubic-bezier(0.16,1,0.3,1),
3225 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3226 transform 120ms cubic-bezier(0.16,1,0.3,1),
3227 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3228 }
3229 .btn:active { transform: translateY(0.5px); }
3230 .btn:focus-visible {
3231 outline: none;
3232 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3233 }
3234 .btn-primary {
3235 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3236 border-color: transparent;
3237 box-shadow:
3238 inset 0 1px 0 rgba(255,255,255,0.15),
3239 0 1px 2px rgba(168,85,247,0.25);
3240 }
3241 .btn-primary:hover {
3242 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3243 filter: none;
3244 box-shadow:
3245 inset 0 1px 0 rgba(255,255,255,0.20),
3246 0 4px 12px rgba(168,85,247,0.30);
3247 }
3248
3249 /* Inputs: cleaner focus ring + hover */
3250 .form-group input:hover,
3251 .form-group textarea:hover,
3252 .form-group select:hover {
3253 border-color: rgba(255,255,255,0.14);
3254 }
3255 .form-group input:focus,
3256 .form-group textarea:focus,
3257 .form-group select:focus {
3258 border-color: rgba(168,85,247,0.55);
3259 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3260 }
3261 :root[data-theme='light'] .form-group input:hover,
3262 :root[data-theme='light'] .form-group textarea:hover,
3263 :root[data-theme='light'] .form-group select:hover {
3264 border-color: rgba(0,0,0,0.18);
3265 }
3266
3267 /* Cards: subtle hover lift */
3268 .card {
3269 transition:
3270 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3271 transform 160ms cubic-bezier(0.16,1,0.3,1),
3272 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3273 }
3274 .card:hover {
3275 border-color: rgba(255,255,255,0.18);
3276 transform: translateY(-1px);
3277 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3278 }
3279 :root[data-theme='light'] .card:hover {
3280 border-color: rgba(0,0,0,0.18);
3281 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3282 }
3283
3284 /* Issue / commit / panel rows: smoother hover */
3285 .issue-item, .commit-item {
3286 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3287 }
3288 .repo-nav a {
3289 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3290 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3291 }
3292 .nav-link {
3293 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3294 }
3295
3296 /* Auth card: subtle elevation so register/login feel premium */
3297 .auth-container {
3298 background: var(--bg-secondary);
3299 border: 1px solid var(--border);
3300 border-radius: var(--r-lg, 12px);
3301 padding: 32px;
3302 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3303 }
3304 :root[data-theme='light'] .auth-container {
3305 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3306 }
3307 .auth-container h2 { letter-spacing: -0.025em; }
3308
3309 /* Empty state: dashed border, generous padding */
3310 .empty-state {
3311 border: 1px dashed var(--border);
3312 border-radius: var(--r-lg, 12px);
3313 background: var(--bg);
3314 }
3315
3316 /* Badges + commit-sha: smoother transition */
3317 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3318
3319 /* Gradient text utility — matches landing's accent treatment */
3320 .gradient-text {
3321 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3322 -webkit-background-clip: text;
3323 background-clip: text;
3324 -webkit-text-fill-color: transparent;
3325 }
3326
3327 /* Custom scrollbars (subtle, themed) */
3328 ::-webkit-scrollbar { width: 10px; height: 10px; }
3329 ::-webkit-scrollbar-track { background: transparent; }
3330 ::-webkit-scrollbar-thumb {
3331 background: rgba(255,255,255,0.06);
3332 border: 2px solid var(--bg);
3333 border-radius: 9999px;
3334 }
3335 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3336 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3337 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3338
3339 /* Honour reduced-motion preference */
3340 @media (prefers-reduced-motion: reduce) {
3341 *, *::before, *::after {
3342 animation-duration: 0.01ms !important;
3343 animation-iteration-count: 1 !important;
3344 transition-duration: 0.01ms !important;
3345 }
3346 }
c63b860Claude3347
3348 /* Block O3 — visual coherence additive rules. */
3349 .card.card-p-none { padding: 0; }
3350 .card.card-p-sm { padding: var(--space-3); }
3351 .card.card-p-md { padding: var(--space-4); }
3352 .card.card-p-lg { padding: var(--space-6); }
3353 .card.card-elevated { box-shadow: var(--elev-2); }
3354 .card.card-gradient {
3355 background:
3356 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3357 var(--bg-elevated);
3358 }
3359 .card.card-gradient::before { opacity: 1; }
3360 .notice {
3361 padding: var(--space-3) var(--space-4);
3362 border-radius: var(--radius-md);
3363 border: 1px solid var(--border);
3364 background: var(--bg-elevated);
3365 color: var(--text);
3366 font-size: var(--font-size-sm);
3367 margin-bottom: var(--space-6);
3368 line-height: var(--leading-normal);
3369 }
3370 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3371 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3372 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3373 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3374 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3375 .email-preview {
3376 padding: var(--space-5);
3377 background: #fff;
3378 color: #111;
3379 border-radius: var(--radius-md);
3380 }
3381 .code-block {
3382 margin: var(--space-2) 0 0;
3383 padding: var(--space-3);
3384 background: var(--bg-tertiary);
3385 border: 1px solid var(--border-subtle);
3386 border-radius: var(--radius-sm);
3387 font-family: var(--font-mono);
3388 font-size: var(--font-size-xs);
3389 line-height: var(--leading-normal);
3390 overflow-x: auto;
3391 }
3392 .status-pill-operational {
3393 display: inline-flex;
3394 align-items: center;
3395 padding: var(--space-1) var(--space-3);
3396 border-radius: var(--radius-full);
3397 font-size: var(--font-size-xs);
3398 font-weight: 600;
3399 background: rgba(52,211,153,0.15);
3400 color: var(--green);
3401 }
3402 .api-tag {
3403 display: inline-flex;
3404 align-items: center;
3405 font-size: var(--font-size-xs);
3406 padding: 2px var(--space-2);
3407 border-radius: var(--radius-sm);
3408 font-family: var(--font-mono);
3409 }
3410 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3411 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3412 .stat-number {
3413 font-size: var(--font-size-xl);
3414 font-weight: 700;
3415 color: var(--text-strong);
3416 line-height: var(--leading-tight);
3417 }
3418 .stat-number-accent { color: var(--accent); }
3419 .stat-number-blue { color: var(--blue); }
3420 .stat-number-purple { color: var(--text-link); }
3421 footer .footer-tag-sub {
3422 margin-top: var(--space-2);
3423 font-size: var(--font-size-xs);
3424 color: var(--text-faint);
3425 line-height: var(--leading-normal);
3426 }
3427 footer .footer-version-pill {
3428 display: inline-flex;
3429 align-items: center;
3430 gap: var(--space-2);
3431 padding: var(--space-1) var(--space-3);
3432 border-radius: var(--radius-full);
3433 border: 1px solid var(--border);
3434 background: var(--bg-elevated);
3435 color: var(--text-faint);
3436 font-family: var(--font-mono);
3437 font-size: var(--font-size-xs);
3438 cursor: help;
3439 }
3440 footer .footer-banner {
3441 max-width: 1240px;
3442 margin: var(--space-6) auto 0;
3443 padding: var(--space-3) var(--space-4);
3444 border-radius: var(--radius-md);
3445 border: 1px solid var(--border);
3446 background: var(--bg-elevated);
3447 color: var(--text);
3448 font-family: var(--font-mono);
3449 font-size: var(--font-size-xs);
3450 letter-spacing: 0.04em;
3451 text-transform: uppercase;
3452 text-align: center;
3453 }
3454 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3455 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3456 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3457
cf9178bTest User3458 /* ============================================================ */
3459 /* Global toast notifications. */
3460 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3461 /* ============================================================ */
3462 .gx-toast {
3463 pointer-events: auto;
3464 display: inline-flex;
3465 align-items: flex-start;
3466 gap: 10px;
3467 min-width: 280px;
3468 max-width: min(440px, calc(100vw - 32px));
3469 padding: 12px 14px 12px 12px;
3470 background: var(--bg-elevated);
3471 border: 1px solid var(--border);
3472 border-radius: 10px;
3473 box-shadow:
3474 0 12px 36px -10px rgba(15,16,28,0.18),
3475 0 2px 6px rgba(15,16,28,0.04),
3476 0 0 0 1px rgba(15,16,28,0.02);
3477 color: var(--text);
3478 font-size: 13.5px;
3479 line-height: 1.45;
3480 opacity: 0;
3481 transform: translateX(16px);
3482 transition:
3483 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3484 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3485 }
3486 .gx-toast--in { opacity: 1; transform: translateX(0); }
3487 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3488 .gx-toast__icon {
3489 flex-shrink: 0;
3490 width: 20px; height: 20px;
3491 border-radius: 50%;
3492 display: inline-flex;
3493 align-items: center;
3494 justify-content: center;
3495 font-size: 12px;
3496 font-weight: 700;
3497 line-height: 1;
3498 margin-top: 1px;
3499 }
3500 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3501 .gx-toast__close {
3502 flex-shrink: 0;
3503 width: 22px; height: 22px;
3504 border: 0;
3505 background: transparent;
3506 color: var(--text-muted);
3507 font-size: 18px;
3508 line-height: 1;
3509 cursor: pointer;
3510 border-radius: 4px;
3511 padding: 0;
3512 margin: -2px -2px 0 0;
3513 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3514 }
3515 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3516 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3517 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3518 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3519 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3520 @media (prefers-reduced-motion: reduce) {
3521 .gx-toast { transition: opacity 60ms linear; transform: none; }
3522 .gx-toast--in, .gx-toast--out { transform: none; }
3523 }
3524
dc26881CC LABS App3525 /* ============================================================ */
3526 /* Block U4 — cross-document view transitions. */
3527 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3528 /* every same-origin navigation. Older browsers ignore these */
3529 /* rules entirely — no JS shim, no breakage. */
3530 /* prefers-reduced-motion disables the animation honourably. */
3531 /* ============================================================ */
3532 @view-transition {
3533 navigation: auto;
3534 }
3535 ::view-transition-old(root),
3536 ::view-transition-new(root) {
3537 animation-duration: 200ms;
3538 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3539 }
3540 ::view-transition-old(root) {
3541 animation-name: vt-fade-out;
3542 }
3543 ::view-transition-new(root) {
3544 animation-name: vt-fade-in;
3545 }
3546 @keyframes vt-fade-out {
3547 to { opacity: 0; }
3548 }
3549 @keyframes vt-fade-in {
3550 from { opacity: 0; }
3551 }
3552 @media (prefers-reduced-motion: reduce) {
3553 ::view-transition-old(root),
3554 ::view-transition-new(root) {
3555 animation-duration: 0s;
3556 }
3557 }
3558 /* The transition system picks up its root subject from this rule. */
3559 body {
3560 view-transition-name: root;
3561 }
fc1817aClaude3562`;