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.tsxBlame3540 lines · 4 contributors
fc1817aClaude1import type { FC, PropsWithChildren } from "hono/jsx";
06d5ffeClaude2import type { User } from "../db/schema";
3import { hljsThemeCss } from "../lib/highlight";
45e31d0Claude4import { clientJs } from "./client-js";
05cdb85Claude5import { getBuildInfo } from "../lib/build-info";
fc1817aClaude6
06d5ffeClaude7export const Layout: FC<
3ef4c9dClaude8 PropsWithChildren<{
9 title?: string;
10 user?: User | null;
11 notificationCount?: number;
6fc53bdClaude12 theme?: "dark" | "light";
5f2e749Claude13 // Block L10 — additive SEO + Open Graph fields. All optional;
14 // omission preserves the prior render exactly (regression-safe).
15 fullTitle?: string;
16 description?: string;
17 ogTitle?: string;
18 ogDescription?: string;
19 ogType?: string;
20 twitterCard?: "summary" | "summary_large_image";
c63b860Claude21 // Block O3 — site-wide footer banner stripe. When non-empty,
22 // renders below the footer-bottom row; wired from
23 // admin.system_flags.site_banner_text.
24 siteBannerText?: string;
25 siteBannerLevel?: "info" | "warn" | "error";
3ef4c9dClaude26 }>
5f2e749Claude27> = ({
28 children,
29 title,
30 user,
31 notificationCount,
32 theme,
33 fullTitle,
34 description,
35 ogTitle,
36 ogDescription,
37 ogType,
38 twitterCard,
c63b860Claude39 siteBannerText,
40 siteBannerLevel,
5f2e749Claude41}) => {
81201ccTest User42 // Default to "light" — feedback from operators was the dark default
43 // felt too gamer-ish and not what senior platform engineers expect from
44 // a tool they'd evaluate alongside Vercel / Linear / Stripe. Users who
45 // explicitly want dark can flip via the theme toggle (cookie persists).
46 const initialTheme = theme === "dark" ? "dark" : "light";
05cdb85Claude47 const build = getBuildInfo();
5f2e749Claude48 // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron"
49 // suffix); otherwise fall back to the existing `title` + suffix behaviour.
50 const renderedTitle = fullTitle
51 ? fullTitle
52 : title
53 ? `${title} — gluecron`
54 : "gluecron";
fc1817aClaude55 return (
6fc53bdClaude56 <html lang="en" data-theme={initialTheme}>
fc1817aClaude57 <head>
58 <meta charset="UTF-8" />
59 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
eae38d1Claude60 <meta name="theme-color" content="#0d1117" />
3a5755eClaude61 {/* 2026 polish — load Inter + Inter Tight + JetBrains Mono for
62 crisp modern typography. `preconnect` keeps the handshake
63 cost off the critical path; `display=swap` means we never
64 block first paint waiting on fonts. */}
65 <link rel="preconnect" href="https://fonts.googleapis.com" />
66 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
67 <link
68 rel="stylesheet"
69 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"
70 />
44fe49bClaude71 {/* PWA removed 2026-05-16 — repeated reload-loop bugs (admin
72 dashboard, deploy pill, admin-screen flash). A git host has
73 no use for service workers or install-as-app. Manifest link
74 and SW registrations are gone permanently. */}
eae38d1Claude75 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude76 <title>{renderedTitle}</title>
77 {description && <meta name="description" content={description} />}
78 {(ogTitle || fullTitle || title) && (
79 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
80 )}
81 {(ogDescription || description) && (
82 <meta
83 property="og:description"
84 content={ogDescription ?? description ?? ""}
85 />
86 )}
87 {ogType && <meta property="og:type" content={ogType} />}
88 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude89 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
90 <style dangerouslySetInnerHTML={{ __html: css }} />
91 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude92 </head>
93 <body>
4a52a98Claude94 <div class="prelaunch-banner" role="status" aria-live="polite">
95 Pre-launch &mdash; Gluecron is in final validation. Public signups
96 and git hosting for non-owner users open after launch review.
97 </div>
cd4f63bTest User98 {/* Block Q3 — Playground banner. Renders only when the active
99 user is a playground account with a future expiry; the small
100 inline script counts down once per minute. Strip is dismissible
101 per-page-load (re-appears on next nav) — gentle, not noisy. */}
102 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
103 <div
104 class="playground-banner"
105 role="status"
106 aria-live="polite"
107 data-playground-expires={
108 ((user as any).playgroundExpiresAt instanceof Date
109 ? (user as any).playgroundExpiresAt.toISOString()
110 : String((user as any).playgroundExpiresAt))
111 }
112 >
113 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
114 <span class="playground-banner-text">
115 Playground account &mdash;{" "}
116 <span class="playground-banner-countdown">expires soon</span>.{" "}
117 <a href="/play/claim" class="playground-banner-cta">
118 Save your work &rarr;
119 </a>
120 </span>
121 <button
122 type="button"
123 class="playground-banner-dismiss"
124 aria-label="Dismiss"
125 data-playground-dismiss="1"
126 >
127 {"×"}
128 </button>
129 <script
130 dangerouslySetInnerHTML={{
131 __html: /* js */ `
132 (function () {
133 var el = document.currentScript && document.currentScript.parentElement;
134 if (!el) return;
135 var iso = el.getAttribute('data-playground-expires');
136 if (!iso) return;
137 var target = Date.parse(iso);
138 if (isNaN(target)) return;
139 var out = el.querySelector('.playground-banner-countdown');
140 function render() {
141 var ms = target - Date.now();
142 if (!out) return;
143 if (ms <= 0) { out.textContent = 'expired'; return; }
144 var mins = Math.floor(ms / 60000);
145 var hrs = Math.floor(mins / 60);
146 if (hrs > 1) out.textContent = hrs + ' hours left';
147 else if (hrs === 1) out.textContent = '1 hour left';
148 else if (mins > 1) out.textContent = mins + ' minutes left';
149 else out.textContent = 'less than a minute left';
150 }
151 render();
152 setInterval(render, 60000);
153 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
154 if (dismiss) {
155 dismiss.addEventListener('click', function () {
156 el.style.display = 'none';
157 });
158 }
159 })();
160 `,
161 }}
162 />
163 </div>
164 )}
fc1817aClaude165 <header>
166 <nav>
167 <a href="/" class="logo">
168 gluecron
169 </a>
3ef4c9dClaude170 <div class="nav-search">
001af43Claude171 <form method="get" action="/search">
3ef4c9dClaude172 <input
173 type="search"
174 name="q"
175 placeholder="Search (press /)"
176 aria-label="Search"
177 />
178 </form>
179 </div>
06d5ffeClaude180 <div class="nav-right">
f5b9ef5Claude181 {/* Block N3 — site-admin platform-deploy status pill */}
f764c07Claude182 {user && (
183 <a
184 id="deploy-pill"
185 href="/admin/deploys"
186 class="nav-deploy-pill"
187 style="display:none"
188 aria-label="Platform deploy status"
189 title="Platform deploy status"
190 >
191 <span class="deploy-pill-dot" />
192 <span class="deploy-pill-text">Deploys</span>
193 </a>
194 )}
f5b9ef5Claude195 <a href="/explore" class="nav-link">Explore</a>
06d5ffeClaude196 {user ? (
197 <>
f5b9ef5Claude198 {/* AI dropdown */}
c6018a5Claude199 <div class="nav-ai-dropdown" data-nav-ai>
200 <button
201 type="button"
202 class="nav-link nav-ai-trigger"
203 aria-haspopup="true"
204 aria-expanded="false"
205 data-nav-ai-trigger
206 >
207 <span style="display:inline-flex;align-items:center;gap:5px">
f5b9ef5Claude208 <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
c6018a5Claude209 <path d="M12 2l2.39 5.95L20 9l-4.5 3.9L17 19l-5-3.2L7 19l1.5-6.1L4 9l5.61-1.05L12 2z" />
210 </svg>
211 AI
f5b9ef5Claude212 <span aria-hidden="true" style="font-size:9px;opacity:0.7">{String.fromCharCode(9660)}</span>
c6018a5Claude213 </span>
214 </button>
215 <div class="nav-ai-menu" role="menu" data-nav-ai-menu>
216 <a href="/standups" role="menuitem" class="nav-ai-item">
217 <span class="nav-ai-item-label">Standups</span>
218 <span class="nav-ai-item-sub">Daily AI brief</span>
219 </a>
220 <a href="/voice" role="menuitem" class="nav-ai-item">
221 <span class="nav-ai-item-label">Voice</span>
222 <span class="nav-ai-item-sub">Talk to ship a PR</span>
223 </a>
224 <a href="/refactors" role="menuitem" class="nav-ai-item">
225 <span class="nav-ai-item-label">Refactors</span>
226 <span class="nav-ai-item-sub">Multi-repo agent</span>
227 </a>
228 <a href="/specs" role="menuitem" class="nav-ai-item">
229 <span class="nav-ai-item-label">Specs</span>
230 <span class="nav-ai-item-sub">Spec-to-PR loop</span>
231 </a>
232 <a href="/ask" role="menuitem" class="nav-ai-item">
233 <span class="nav-ai-item-label">Ask AI</span>
234 <span class="nav-ai-item-sub">Cross-repo chat</span>
235 </a>
236 </div>
237 </div>
f5b9ef5Claude238 {/* Inbox bell with unread badge */}
239 <a
240 href="/inbox"
241 class="nav-inbox-btn"
242 aria-label={notificationCount && notificationCount > 0 ? `Inbox — ${notificationCount} unread` : "Inbox"}
243 title="Inbox"
244 >
245 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
246 <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
247 <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
248 </svg>
249 {notificationCount && notificationCount > 0 ? (
250 <span class="nav-inbox-badge" aria-hidden="true">
251 {notificationCount > 99 ? "99+" : notificationCount}
252 </span>
253 ) : null}
06d5ffeClaude254 </a>
f5b9ef5Claude255 <a href="/new" class="btn btn-sm btn-primary">+ New</a>
256 {/* User dropdown — consolidates profile + secondary nav */}
257 <div class="nav-user-dropdown" data-nav-user>
258 <button
259 type="button"
260 class="nav-user-trigger"
261 aria-haspopup="true"
262 aria-expanded="false"
263 data-nav-user-trigger
264 >
265 <span class="nav-user-avatar" aria-hidden="true">
266 {(user.displayName || user.username).charAt(0).toUpperCase()}
267 </span>
268 <span class="nav-user-name">{user.displayName || user.username}</span>
269 <span class="nav-user-caret" aria-hidden="true">{"▾"}</span>
270 </button>
271 <div class="nav-user-menu" role="menu" data-nav-user-menu>
272 <div class="nav-user-menu-header">
273 <span class="nav-user-menu-name">{user.displayName || user.username}</span>
274 <span class="nav-user-menu-handle">@{user.username}</span>
275 </div>
276 <div class="nav-user-menu-sep" />
277 <a href="/dashboard" role="menuitem" class="nav-user-item">Dashboard</a>
278 <a href="/pulls" role="menuitem" class="nav-user-item">Pull requests</a>
279 <a href="/issues" role="menuitem" class="nav-user-item">Issues</a>
280 <a href="/activity" role="menuitem" class="nav-user-item">Activity</a>
281 <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a>
bb2dea9Claude282 <a href="/import/actions" role="menuitem" class="nav-user-item">Actions importer</a>
f5b9ef5Claude283 <div class="nav-user-menu-sep" />
284 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
285 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
286 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
287 <div class="nav-user-menu-sep" />
288 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
289 <span class="theme-icon-dark">{"☾"} Light mode</span>
290 <span class="theme-icon-light">{"☀"} Dark mode</span>
291 </a>
292 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
293 </div>
294 </div>
06d5ffeClaude295 </>
296 ) : (
297 <>
f5b9ef5Claude298 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
299 <span class="theme-icon-dark">{"☾"}</span>
300 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude301 </a>
adf5e18Claude302 <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron">
303 Migrate from GitHub
304 </a>
f5b9ef5Claude305 <a href="/login" class="nav-link">Sign in</a>
306 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude307 </>
308 )}
309 </div>
fc1817aClaude310 </nav>
311 </header>
45e31d0Claude312 <main id="main-content">{children}</main>
cf9178bTest User313 {/* Global toast host — populated by the toastScript below from
314 ?success= / ?error= / ?toast= query params. Replaces the
315 per-page banner pattern with one polished slide-in. */}
316 <div
317 id="toast-host"
318 aria-live="polite"
319 aria-atomic="true"
320 style="position:fixed;top:calc(var(--header-h) + 12px);right:16px;z-index:var(--z-toast,10000);display:flex;flex-direction:column;gap:8px;pointer-events:none"
321 />
fc1817aClaude322 <footer>
958d26aClaude323 <div class="footer-inner">
324 <div class="footer-brand">
325 <a href="/" class="logo">gluecron</a>
326 <p class="footer-tag">
327 AI-native code intelligence. Self-hosted git, automated CI,
328 push-time gates. Software that ships itself.
329 </p>
330 </div>
331 <div class="footer-links">
332 <div class="footer-col">
333 <div class="footer-col-title">Product</div>
b0148e9Claude334 <a href="/features">Features</a>
335 <a href="/pricing">Pricing</a>
9f29b65Claude336 <a href="/enterprise">Enterprise</a>
e1fc7dbClaude337 <a href="/changelog">Changelog</a>
958d26aClaude338 <a href="/explore">Explore</a>
339 <a href="/marketplace">Marketplace</a>
adf5e18Claude340 <a href="/developer-program">Developer Program</a>
958d26aClaude341 </div>
342 <div class="footer-col">
343 <div class="footer-col-title">Platform</div>
e0e4219Claude344 <a href="/docs">Docs</a>
b0148e9Claude345 <a href="/help">Quickstart</a>
958d26aClaude346 <a href="/status">Status</a>
347 <a href="/api/graphql">GraphQL</a>
348 <a href="/mcp">MCP server</a>
349 </div>
350 <div class="footer-col">
b0148e9Claude351 <div class="footer-col-title">Company</div>
352 <a href="/about">About</a>
3122762Claude353 <a href="/blog">Blog</a>
958d26aClaude354 <a href="/terms">Terms</a>
355 <a href="/privacy">Privacy</a>
356 <a href="/acceptable-use">Acceptable use</a>
357 </div>
358 </div>
359 </div>
360 <div class="footer-bottom">
361 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude362 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
363 <span class="footer-build-dot" aria-hidden="true" />
364 {build.sha} · {build.branch}
365 </span>
36b4cbdClaude366 </div>
c63b860Claude367 {siteBannerText ? (
368 <div
369 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
370 role="status"
371 aria-live="polite"
372 >
373 {siteBannerText}
374 </div>
375 ) : null}
fc1817aClaude376 </footer>
05cdb85Claude377 {/* Live update poller — checks /api/version every 15s, prompts
378 reload when the running sha changes. Pure progressive-
379 enhancement; degrades to nothing if JS is off. */}
380 <div
381 id="version-banner"
382 style="display:none;position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:9999;background:var(--bg-elevated);border:1px solid rgba(140,109,255,0.45);border-radius:9999px;padding:8px 14px 8px 14px;font-size:13px;color:var(--text-strong);box-shadow:0 12px 28px -8px rgba(0,0,0,0.55),0 0 24px -6px rgba(140,109,255,0.40);font-family:var(--font-sans);align-items:center;gap:10px"
383 >
384 <span style="display:inline-flex;align-items:center;gap:8px">
385 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
386 <span>New version available</span>
387 </span>
388 <button
389 type="button"
390 id="version-banner-reload"
391 style="background:linear-gradient(135deg,#8c6dff 0%,#36c5d6 100%);color:#fff;border:0;border-radius:9999px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit"
392 >
393 Reload
394 </button>
395 </div>
fa880f2Claude396 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude397 {/* Block N3 — site-admin deploy status pill (script-only). The pill
398 container is rendered above for authed users; this script bootstraps
399 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
400 and the pill stays display:none — zero leak. */}
401 {user && (
402 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
403 )}
699e5c7Claude404 {/* Block I4 — Command palette shell (hidden by default) */}
405 <div
406 id="cmdk-backdrop"
407 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
408 />
409 <div
410 id="cmdk-panel"
411 style="display:none;position:fixed;top:10%;left:50%;transform:translateX(-50%);width:min(560px,92vw);background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 32px rgba(0,0,0,0.4);z-index:9999;overflow:hidden"
412 >
413 <input
414 id="cmdk-input"
415 type="text"
416 placeholder="Type a command..."
417 aria-label="Command palette"
dc26881CC LABS App418 style="width:100%;padding:var(--space-3) var(--space-4);background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--border);outline:none;font-size:14px"
699e5c7Claude419 />
420 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
421 </div>
fa880f2Claude422 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude423 {/* PWA-kill script: actively unregisters any service worker
424 previously installed under gluecron.com. Recovers any browser
425 still trapped in the SW reload loop from the legacy registrations. */}
426 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User427 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude428 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude429 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
fc1817aClaude430 </body>
431 </html>
432 );
433};
434
05cdb85Claude435// Live version poller. Checks /api/version every 15s; if the sha differs
436// from the one we booted with, reveal the floating 'New version' pill so
437// the user can reload onto the new code without manually refreshing.
438const versionPollerScript = `
439 (function(){
440 var loadedSha = null;
441 var banner, btn;
442 function poll(){
443 fetch('/api/version', { cache: 'no-store' })
444 .then(function(r){ return r.ok ? r.json() : null; })
445 .then(function(j){
446 if (!j || !j.sha) return;
447 if (loadedSha === null) { loadedSha = j.sha; return; }
448 if (j.sha !== loadedSha && banner) {
449 banner.style.display = 'inline-flex';
450 }
451 })
452 .catch(function(){});
453 }
454 function init(){
455 banner = document.getElementById('version-banner');
456 btn = document.getElementById('version-banner-reload');
457 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
458 poll();
459 setInterval(poll, 15000);
460 }
461 if (document.readyState === 'loading') {
462 document.addEventListener('DOMContentLoaded', init);
463 } else {
464 init();
465 }
466 })();
467`;
468
f764c07Claude469// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
470// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
471// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
472// display:none — there's no leakage of admin-only data to other users.
473//
474// Pill states (CSS classes on the container drive colour):
475// .deploy-pill-success 🟢 "Deployed 12s ago"
476// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
477// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
478// .deploy-pill-empty ⚪ "No deploys yet"
479//
480// Relative-time auto-refreshes every 15s without re-fetching.
481export const deployPillScript = `
482 (function(){
483 var pill, dot, text;
484 var state = { latest: null, asOf: null };
485
486 function classifyAge(ms){
487 if (ms < 0) return 'just now';
488 var s = Math.floor(ms / 1000);
489 if (s < 5) return 'just now';
490 if (s < 60) return s + 's ago';
491 var m = Math.floor(s / 60);
492 if (m < 60) return m + 'm ago';
493 var h = Math.floor(m / 60);
494 if (h < 24) return h + 'h ago';
495 var d = Math.floor(h / 24);
496 return d + 'd ago';
497 }
498 function elapsed(ms){
499 if (ms < 0) ms = 0;
500 var s = Math.floor(ms / 1000);
501 if (s < 60) return s + 's';
502 var m = Math.floor(s / 60);
503 var rem = s - m * 60;
504 return m + 'm ' + rem + 's';
505 }
506
507 function render(){
508 if (!pill || !text || !dot) return;
509 var d = state.latest;
81201ccTest User510 // When there's no deploy event yet, keep the pill HIDDEN. Showing
511 // "No deploys yet" was visible noise on every admin page load and
512 // flashed during reconnect cycles — admins don't need a placeholder.
513 // The pill reveals itself the first time a real deploy fires.
f764c07Claude514 if (!d) {
81201ccTest User515 pill.style.display = 'none';
f764c07Claude516 return;
517 }
518 pill.style.display = 'inline-flex';
519 var now = Date.now();
520 if (d.status === 'in_progress') {
521 pill.className = 'nav-deploy-pill deploy-pill-progress';
522 var started = Date.parse(d.started_at) || now;
523 text.textContent = 'Deploying… ' + elapsed(now - started);
524 } else if (d.status === 'succeeded') {
525 pill.className = 'nav-deploy-pill deploy-pill-success';
526 var ref = Date.parse(d.finished_at || d.started_at) || now;
527 text.textContent = 'Deployed ' + classifyAge(now - ref);
528 } else if (d.status === 'failed') {
529 pill.className = 'nav-deploy-pill deploy-pill-failed';
530 var refF = Date.parse(d.finished_at || d.started_at) || now;
531 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
532 } else {
533 pill.className = 'nav-deploy-pill';
534 text.textContent = d.status;
535 }
536 }
537
538 function fetchLatest(){
539 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
540 .then(function(r){ if (!r.ok) return null; return r.json(); })
541 .then(function(j){
542 if (!j || j.ok !== true) return;
543 state.latest = j.latest;
544 state.asOf = j.asOf;
545 render();
546 subscribe();
547 })
548 .catch(function(){});
549 }
550
551 var subscribed = false;
552 function subscribe(){
553 if (subscribed) return;
554 if (typeof EventSource === 'undefined') return;
555 subscribed = true;
556 var es;
bf19c50Test User557 // Exponential backoff with cap. Previously a tight 1500ms reconnect
558 // produced visible looping in the nav whenever the proxy timed out
559 // or the connection blipped — the bottom-of-page deploy pill
560 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
561 // successful message receipt.
562 var delay = 2000;
563 var DELAY_MAX = 60000;
564 function bump(){
565 delay = Math.min(delay * 2, DELAY_MAX);
566 }
567 function resetDelay(){
568 delay = 2000;
569 }
f764c07Claude570 function connect(){
571 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User572 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude573 es.onmessage = function(m){
bf19c50Test User574 resetDelay();
f764c07Claude575 try {
576 var d = JSON.parse(m.data);
577 if (d && d.run_id) {
578 if (!state.latest || state.latest.run_id === d.run_id ||
579 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
580 state.latest = d;
581 render();
582 }
583 }
584 } catch(e){}
585 };
586 es.onerror = function(){
587 try { es.close(); } catch(e){}
bf19c50Test User588 bump();
f764c07Claude589 setTimeout(connect, delay);
590 };
591 }
592 connect();
593 }
594
595 function init(){
596 pill = document.getElementById('deploy-pill');
597 if (!pill) return;
598 dot = pill.querySelector('.deploy-pill-dot');
599 text = pill.querySelector('.deploy-pill-text');
600 fetchLatest();
601 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
602 // without a fresh fetch.
603 setInterval(render, 15000);
604 }
605 if (document.readyState === 'loading') {
606 document.addEventListener('DOMContentLoaded', init);
607 } else {
608 init();
609 }
610 })();
611`;
612
6fc53bdClaude613// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User614// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
615// is honoured for users who explicitly opted in.
6fc53bdClaude616const themeInitScript = `
617 (function(){
618 try {
619 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User620 var t = m ? decodeURIComponent(m[1]) : 'light';
621 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude622 document.documentElement.setAttribute('data-theme', t);
623 } catch(_){}
624 })();
625`;
626
eae38d1Claude627// Block G1 — register service worker for offline / install support.
628// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App629//
cf9178bTest User630// Global toast notifications — reads ?success=, ?error=, ?toast= from the
631// URL on page load and surfaces a polished slide-in toast instead of the
632// per-page banner divs that crowded the layout. Toasts auto-dismiss after
633// 4.5s; query params are scrubbed from the URL via history.replaceState
634// so a subsequent Refresh doesn't re-fire the same toast.
635//
636// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
637// must be URI-encoded (callers already do this via encodeURIComponent
638// in c.redirect()).
639const toastScript = `
640 (function(){
641 function showToast(kind, message){
642 if (!message) return;
643 var host = document.getElementById('toast-host');
644 if (!host) return;
645 var el = document.createElement('div');
646 el.className = 'gx-toast gx-toast--' + kind;
647 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
648 var icon = document.createElement('span');
649 icon.className = 'gx-toast__icon';
650 icon.textContent = kind === 'success' ? '\\u2713'
651 : kind === 'error' ? '\\u00D7'
652 : kind === 'warn' ? '!'
653 : 'i';
654 el.appendChild(icon);
655 var text = document.createElement('span');
656 text.className = 'gx-toast__text';
657 text.textContent = message;
658 el.appendChild(text);
659 var close = document.createElement('button');
660 close.type = 'button';
661 close.className = 'gx-toast__close';
662 close.setAttribute('aria-label', 'Dismiss notification');
663 close.textContent = '\\u00D7';
664 close.addEventListener('click', function(){ dismiss(); });
665 el.appendChild(close);
666 host.appendChild(el);
667 // Force a reflow then add the visible class so the slide-in transitions.
668 void el.offsetWidth;
669 el.classList.add('gx-toast--in');
670 var timer = setTimeout(dismiss, 4500);
671 function dismiss(){
672 clearTimeout(timer);
673 el.classList.remove('gx-toast--in');
674 el.classList.add('gx-toast--out');
675 setTimeout(function(){
676 if (el.parentNode) el.parentNode.removeChild(el);
677 }, 220);
678 }
679 }
680 try {
681 var url = new URL(window.location.href);
682 var hits = 0;
683 var s = url.searchParams.get('success');
684 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
685 var e = url.searchParams.get('error');
686 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
687 var t = url.searchParams.get('toast');
688 if (t) {
689 var ix = t.indexOf(':');
690 var kind = ix > 0 ? t.slice(0, ix) : 'info';
691 var msg = ix > 0 ? t.slice(ix + 1) : t;
692 showToast(kind, msg);
693 url.searchParams.delete('toast');
694 hits++;
695 }
696 if (hits > 0 && window.history && window.history.replaceState) {
697 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
698 }
699 } catch(_) {}
700 })();
701`;
702
44fe49bClaude703// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
704// and pwaInstallBannerScript. Those two scripts registered /sw.js and
705// /sw-push.js at the same scope, causing a reload loop that made the
706// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
707// uncllickable). Per the SW spec, only one SW can control a scope; two
708// different script URLs at the same scope keep replacing each other.
6345c3eTest User709//
44fe49bClaude710// PWA is gone for good. A git host has no use for service workers,
711// install-as-app, or push notifications via SW. This script actively
712// unregisters every previously installed SW on the gluecron.com origin
713// so any browser still trapped in the loop recovers on the very next
714// page load — without needing the user to clear site data or open
715// DevTools. Idempotent and safe to keep running forever; once all
716// browsers have been cleaned, it's a no-op.
717const pwaKillSwitchScript = `
534f04aClaude718(function(){
719 try {
44fe49bClaude720 if (!('serviceWorker' in navigator)) return;
721 if (!navigator.serviceWorker.getRegistrations) return;
722 navigator.serviceWorker.getRegistrations().then(function(regs){
723 if (!regs || regs.length === 0) return;
724 regs.forEach(function(reg){
725 try { reg.unregister(); } catch(_){}
726 });
727 }).catch(function(){});
728 // Also drop any caches the old SWs left behind so the user gets
729 // truly fresh HTML on every page load. Restricted to gluecron-*
730 // namespaced caches so we don't trample anything a future opt-in
731 // feature might create under a different name.
732 if ('caches' in self) {
733 caches.keys().then(function(keys){
734 keys.forEach(function(k){
735 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
736 try { caches.delete(k); } catch(_){}
d7ba05dClaude737 }
738 });
739 }).catch(function(){});
534f04aClaude740 }
741 } catch(_) {}
742})();
743`;
744
3ef4c9dClaude745const navScript = `
746 (function(){
747 var chord = null;
748 var chordTimer = null;
749 function isTyping(t){
750 t = t || {};
751 var tag = (t.tagName || '').toLowerCase();
752 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
753 }
71cd5ecClaude754
755 // ---------- Block I4 — Command palette ----------
756 var COMMANDS = [
757 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
758 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
759 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
760 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
761 { label: 'Create new repository', href: '/new', kw: 'add create' },
762 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
763 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
764 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
765 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
766 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
767 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
768 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
769 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
770 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude771 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude772 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
773 { label: 'Gists', href: '/gists', kw: 'snippets' },
774 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
775 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
776 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
777 ];
778
779 function fuzzyMatch(item, q){
780 if (!q) return true;
781 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
782 q = q.toLowerCase();
783 var qi = 0;
784 for (var i = 0; i < hay.length && qi < q.length; i++) {
785 if (hay[i] === q[qi]) qi++;
786 }
787 return qi === q.length;
788 }
789
790 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
791
792 function render(){
793 if (!list) return;
794 var html = '';
795 for (var i = 0; i < filtered.length; i++) {
796 var item = filtered[i];
797 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
798 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]799 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App800 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude801 '<div>' + item.label + '</div>' +
802 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
803 '</div>';
804 }
805 if (filtered.length === 0) {
dc26881CC LABS App806 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude807 }
808 list.innerHTML = html;
809 }
810
9c5223fClaude811 function getAllCommands(){
812 // Merge global COMMANDS with repo-context commands injected by repo pages.
813 var extra = (window.__CMDK_REPO_COMMANDS && Array.isArray(window.__CMDK_REPO_COMMANDS))
814 ? window.__CMDK_REPO_COMMANDS : [];
815 return COMMANDS.concat(extra);
816 }
817
71cd5ecClaude818 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;
9c5223fClaude828 filtered = getAllCommands();
71cd5ecClaude829 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;
9c5223fClaude848 filtered = getAllCommands().filter(function(c){ return fuzzyMatch(c, q); });
71cd5ecClaude849 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) {
9c5223fClaude894 // Start 'n' chord — wait 1.2s for next key (i → issue, p → PR).
895 // If no second key arrives, navigate to /new (create repo).
896 chord = 'n';
897 clearTimeout(chordTimer);
898 chordTimer = setTimeout(function(){
899 if (chord === 'n') { window.location.href = '/new'; }
900 chord = null;
901 }, 1200);
902 return;
3ef4c9dClaude903 }
904 // "g" chord
905 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
906 chord = 'g';
907 clearTimeout(chordTimer);
908 chordTimer = setTimeout(function(){ chord = null; }, 1200);
909 return;
910 }
911 if (chord === 'g') {
912 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
913 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
914 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
915 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
916 chord = null;
917 }
9c5223fClaude918 // "n" chord — new issue / new PR (repo-context-aware)
919 if (chord === 'n') {
920 var repoCtx = window.__CMDK_REPO_COMMANDS;
921 var newIssuePath = repoCtx && repoCtx.length ? repoCtx[0].href.replace('/issues/new', '/issues/new') : null;
922 // Find the "new issue" and "new PR" hrefs from repo context commands
923 var issueCmd = repoCtx && repoCtx.find(function(c){ return c.href && c.href.indexOf('/issues/new') !== -1; });
924 var prCmd = repoCtx && repoCtx.find(function(c){ return c.href && c.href.indexOf('/pulls/new') !== -1; });
925 if (e.key === 'i' && issueCmd) {
926 e.preventDefault(); clearTimeout(chordTimer); chord = null;
927 window.location.href = issueCmd.href; return;
928 }
929 if (e.key === 'p' && prCmd) {
930 e.preventDefault(); clearTimeout(chordTimer); chord = null;
931 window.location.href = prCmd.href; return;
932 }
933 }
5882af3Claude934 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
935 if (e.key === 'j' || e.key === 'k') {
936 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
937 var items = Array.from(document.querySelectorAll(selectors));
938 if (items.length === 0) return;
939 e.preventDefault();
940 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
941 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));
942 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
943 items[next].classList.add('is-kbd-focus');
944 items[next].scrollIntoView({ block: 'nearest' });
945 return;
946 }
947 if (e.key === 'Enter') {
948 var focused = document.querySelector('.is-kbd-focus');
949 if (focused) {
950 e.preventDefault();
951 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
952 if (link && link.href) { window.location.href = link.href; }
953 return;
954 }
955 }
956 if (e.key === 'x') {
957 // 'x' selects/deselects focused item (future: bulk actions)
958 var sel = document.querySelector('.is-kbd-focus');
959 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
960 }
3ef4c9dClaude961 });
962 })();
963`;
964
c6018a5Claude965// AI dropdown — keyboard- and click-accessible menu in the top nav.
966// CSS handles the hover-open behaviour for pointer users; this script
967// adds click-to-toggle for touch, Escape-to-close, and outside-click-
968// to-close. Lives in its own IIFE so it never interferes with navScript.
969const navAiDropdownScript = `
970 (function(){
f5b9ef5Claude971 function makeDropdown(rootSel, triggerSel, menuSel) {
972 var open = false;
973 var root = document.querySelector(rootSel);
974 if (!root) return;
975 var trigger = root.querySelector(triggerSel);
976 var menu = root.querySelector(menuSel);
977 if (!trigger || !menu) return;
978 function setOpen(next){
979 open = !!next;
980 root.classList.toggle('is-open', open);
981 menu.classList.toggle('is-open', open);
982 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
983 }
984 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
985 document.addEventListener('click', function(e){
986 if (!open) return;
987 if (root.contains(e.target)) return;
988 setOpen(false);
989 });
990 document.addEventListener('keydown', function(e){
991 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
992 });
c6018a5Claude993 }
f5b9ef5Claude994 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
995 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude996 })();
997`;
998
fc1817aClaude999const css = `
2ce1d0bClaude1000 /* ================================================================
958d26aClaude1001 * Gluecron design system — 2026.05 "Editorial-Technical"
1002 * Slate-noir base · refined violet signature · hairline geometry ·
1003 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
1004 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude1005 * ============================================================== */
6fc53bdClaude1006 :root, :root[data-theme='dark'] {
958d26aClaude1007 /* Surfaces — slate, not black. More depth, less crush. */
1008 --bg: #08090f;
1009 --bg-secondary: #0c0d14;
1010 --bg-tertiary: #11131c;
1011 --bg-elevated: #0f111a;
1012 --bg-surface: #161826;
1013 --bg-hover: rgba(255,255,255,0.04);
1014 --bg-active: rgba(255,255,255,0.08);
1015 --bg-inset: rgba(0,0,0,0.30);
1016
1017 /* Borders — three weights, used deliberately */
1018 --border: rgba(255,255,255,0.06);
1019 --border-subtle: rgba(255,255,255,0.035);
1020 --border-strong: rgba(255,255,255,0.13);
1021 --border-focus: rgba(140,109,255,0.55);
1022
1023 /* Text */
1024 --text: #ededf2;
1025 --text-strong: #f7f7fb;
1026 --text-muted: #8b8c9c;
1027 --text-faint: #555665;
1028 --text-link: #b69dff;
1029
1030 /* Accent — refined violet (less candy), warm amber as secondary signal */
1031 --accent: #8c6dff;
1032 --accent-2: #36c5d6;
1033 --accent-warm: #ffb45e;
1034 --accent-hover: #a48bff;
1035 --accent-pressed:#7559e8;
1036 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1037 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1038 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1039 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1040
1041 /* Semantic */
1042 --green: #34d399;
1043 --red: #f87171;
1044 --yellow: #fbbf24;
1045 --amber: #fbbf24;
1046 --blue: #60a5fa;
1047
3a5755eClaude1048 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1049 display (headlines), JetBrains Mono for code. All three loaded from
1050 Google Fonts with display:swap so we never block first paint. System
1051 fallbacks remain in place — if the CDN is unreachable the site still
1052 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1053 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1054 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1055 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1056 --mono-feat: 'calt', 'liga', 'ss01';
1057
1058 /* Radius — sharper than before */
1059 --r-sm: 5px;
1060 --r: 7px;
1061 --r-md: 9px;
1062 --r-lg: 12px;
1063 --r-xl: 16px;
1064 --r-2xl: 22px;
1065 --r-full: 9999px;
1066 --radius: 7px;
1067
1068 /* Type scale — bigger display sizes for editorial feel */
1069 --t-xs: 11px;
1070 --t-sm: 13px;
1071 --t-base: 14px;
1072 --t-md: 16px;
1073 --t-lg: 20px;
1074 --t-xl: 28px;
1075 --t-2xl: 40px;
1076 --t-3xl: 56px;
1077 --t-display: 72px;
1078 --t-display-lg:96px;
1079
1080 /* Spacing — 4px base */
2ce1d0bClaude1081 --s-0: 0;
958d26aClaude1082 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1083 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1084 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1085 --s-20:80px; --s-24:96px; --s-32:128px;
1086
1087 /* Elevation — softer + more layered */
1088 --elev-0: 0 0 0 1px var(--border);
1089 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1090 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1091 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1092 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1093 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1094 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1095 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1096
1097 /* Motion */
1098 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1099 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1100 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1101 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1102 --t-fast: 120ms;
1103 --t-base: 200ms;
1104 --t-slow: 360ms;
1105 --t-slower:560ms;
1106
1107 --header-h: 60px;
c63b860Claude1108
1109 /* Block O3 — visual coherence: named token aliases (additive). */
1110 --space-1: var(--s-1);
1111 --space-2: var(--s-2);
1112 --space-3: var(--s-3);
1113 --space-4: var(--s-4);
1114 --space-5: var(--s-5);
1115 --space-6: var(--s-6);
1116 --space-8: var(--s-8);
1117 --space-10: var(--s-10);
1118 --space-12: var(--s-12);
1119 --space-16: var(--s-16);
1120 --space-20: var(--s-20);
1121 --space-24: var(--s-24);
1122 --radius-sm: var(--r-sm);
1123 --radius-md: var(--r-md);
1124 --radius-lg: var(--r-lg);
1125 --radius-xl: var(--r-xl);
1126 --radius-full: var(--r-full);
1127 --font-size-xs: var(--t-xs);
1128 --font-size-sm: var(--t-sm);
1129 --font-size-base: var(--t-base);
1130 --font-size-md: var(--t-md);
1131 --font-size-lg: var(--t-lg);
1132 --font-size-xl: var(--t-xl);
1133 --font-size-2xl: var(--t-2xl);
1134 --font-size-3xl: var(--t-3xl);
1135 --font-size-hero: var(--t-display);
1136 --leading-tight: 1.2;
1137 --leading-snug: 1.35;
1138 --leading-normal: 1.5;
1139 --leading-relaxed: 1.6;
1140 --leading-loose: 1.7;
1141 --z-base: 1;
1142 --z-nav: 10;
1143 --z-sticky: 50;
1144 --z-overlay: 100;
1145 --z-modal: 1000;
1146 --z-toast: 10000;
fc1817aClaude1147 }
1148
6fc53bdClaude1149 :root[data-theme='light'] {
958d26aClaude1150 --bg: #fbfbfc;
4c47454Claude1151 --bg-secondary: #ffffff;
958d26aClaude1152 --bg-tertiary: #f3f3f6;
1153 --bg-elevated: #ffffff;
1154 --bg-surface: #f6f6f9;
1155 --bg-hover: rgba(0,0,0,0.035);
1156 --bg-active: rgba(0,0,0,0.07);
1157 --bg-inset: rgba(0,0,0,0.04);
1158
1159 --border: rgba(15,16,28,0.08);
1160 --border-subtle: rgba(15,16,28,0.04);
1161 --border-strong: rgba(15,16,28,0.16);
1162
1163 --text: #0e1020;
1164 --text-strong: #050617;
1165 --text-muted: #5a5b70;
1166 --text-faint: #8a8b9e;
1167 --text-link: #6d4dff;
1168
1169 --accent: #6d4dff;
1170 --accent-2: #0891b2;
1171 --accent-hover: #5a3df0;
1172 --accent-pressed:#4a30d6;
1173 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1174
1175 --green: #059669;
1176 --red: #dc2626;
4c47454Claude1177 --yellow: #d97706;
958d26aClaude1178
1179 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1180 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1181 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1182 }
1183
1184 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1185 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1186 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1187 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1188 :root[data-theme='light'] .theme-icon-light { display: none; }
1189
fc1817aClaude1190 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1191 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1192
958d26aClaude1193 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1194
1195 body {
1196 font-family: var(--font-sans);
1197 background: var(--bg);
1198 color: var(--text);
cf9178bTest User1199 font-size: 15px;
2ce1d0bClaude1200 line-height: 1.55;
958d26aClaude1201 letter-spacing: -0.011em;
fc1817aClaude1202 min-height: 100vh;
1203 display: flex;
1204 flex-direction: column;
958d26aClaude1205 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1206 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1207 and disables automatic synthesis of bold/italic which can produce
1208 muddier rendering on certain weights. */
1209 -webkit-font-smoothing: antialiased;
1210 -moz-osx-font-smoothing: grayscale;
1211 font-synthesis: none;
1212 }
1213 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1214 line-height inversely with size so display text doesn't feel airy. */
1215 h1, h2, h3, h4, h5, h6 {
1216 font-family: var(--font-display);
1217 color: var(--text-strong);
1218 letter-spacing: -0.022em;
1219 line-height: 1.18;
1220 font-weight: 650;
1221 margin-top: 0;
1222 }
1223 h1 { font-size: 28px; letter-spacing: -0.028em; }
1224 h2 { font-size: 22px; }
1225 h3 { font-size: 18px; letter-spacing: -0.018em; }
1226 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1227 /* Link refinement — underline only on hover/focus, never by default
1228 on internal nav. Prevents the "blue underline soup" look. */
1229 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1230 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1231 a:focus-visible {
1232 outline: none;
1233 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1234 border-radius: 3px;
fc1817aClaude1235 }
1236
958d26aClaude1237 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1238 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1239 body::before {
1240 content: '';
1241 position: fixed;
1242 inset: 0;
1243 pointer-events: none;
958d26aClaude1244 z-index: -2;
2ce1d0bClaude1245 background:
958d26aClaude1246 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1247 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1248 }
1249 body::after {
1250 content: '';
1251 position: fixed;
1252 inset: 0;
1253 pointer-events: none;
1254 z-index: -1;
1255 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1256 background-size: 28px 28px;
1257 background-position: 0 0;
1258 opacity: 0.55;
1259 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1260 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1261 }
1262 :root[data-theme='light'] body::before { opacity: 0.55; }
1263 :root[data-theme='light'] body::after {
1264 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1265 opacity: 0.4;
fc1817aClaude1266 }
2ce1d0bClaude1267
1268 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1269 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1270
958d26aClaude1271 /* Heading scale — confident, editorial, tight tracking */
1272 h1, h2, h3, h4, h5, h6 {
1273 font-family: var(--font-display);
2ce1d0bClaude1274 font-weight: 600;
958d26aClaude1275 letter-spacing: -0.022em;
1276 line-height: 1.18;
1277 color: var(--text-strong);
1278 }
1279 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1280 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1281 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1282 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1283 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1284
1285 /* Editorial display heading utility — used by landing + marketing pages */
1286 .display {
1287 font-family: var(--font-display);
1288 font-size: clamp(40px, 7.5vw, 96px);
1289 line-height: 0.98;
1290 letter-spacing: -0.04em;
1291 font-weight: 600;
1292 color: var(--text-strong);
2ce1d0bClaude1293 }
fc1817aClaude1294
958d26aClaude1295 /* Eyebrow — uppercase mono label that sits above section headings */
1296 .eyebrow {
1297 display: inline-flex;
1298 align-items: center;
1299 gap: 8px;
1300 font-family: var(--font-mono);
1301 font-size: 11px;
1302 font-weight: 500;
1303 letter-spacing: 0.14em;
1304 text-transform: uppercase;
1305 color: var(--accent);
1306 margin-bottom: var(--s-3);
1307 }
1308 .eyebrow::before {
1309 content: '';
1310 width: 18px;
1311 height: 1px;
1312 background: currentColor;
1313 opacity: 0.6;
1314 }
1315
1316 /* Section header — paired eyebrow + title + lede */
1317 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1318 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1319 .section-header h2 {
1320 font-size: clamp(28px, 4vw, 44px);
1321 line-height: 1.05;
1322 letter-spacing: -0.028em;
1323 margin-bottom: var(--s-3);
1324 }
1325 .section-header p {
1326 color: var(--text-muted);
1327 font-size: var(--t-md);
1328 line-height: 1.6;
1329 max-width: 580px;
1330 margin: 0 auto;
1331 }
1332 .section-header.left p { margin-left: 0; }
fc1817aClaude1333
958d26aClaude1334 code, kbd, samp {
2ce1d0bClaude1335 font-family: var(--font-mono);
958d26aClaude1336 font-feature-settings: var(--mono-feat);
1337 }
1338 code {
1339 font-size: 0.9em;
2ce1d0bClaude1340 background: var(--bg-tertiary);
958d26aClaude1341 border: 1px solid var(--border-subtle);
2ce1d0bClaude1342 padding: 1px 6px;
1343 border-radius: var(--r-sm);
1344 color: var(--text);
1345 }
958d26aClaude1346 kbd, .kbd {
1347 display: inline-flex;
1348 align-items: center;
1349 padding: 1px 6px;
1350 font-family: var(--font-mono);
1351 font-size: 11px;
1352 background: var(--bg-elevated);
1353 border: 1px solid var(--border);
1354 border-bottom-width: 2px;
1355 border-radius: 4px;
1356 color: var(--text);
1357 line-height: 1.5;
1358 vertical-align: middle;
1359 }
2ce1d0bClaude1360
958d26aClaude1361 /* Mono utility for technical chrome (paths, IDs, dates) */
1362 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1363 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1364
1365 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1366 .prelaunch-banner {
958d26aClaude1367 position: relative;
2ce1d0bClaude1368 background:
958d26aClaude1369 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1370 var(--bg);
958d26aClaude1371 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1372 color: var(--yellow);
958d26aClaude1373 padding: 7px 24px;
1374 font-family: var(--font-mono);
1375 font-size: 11px;
4a52a98Claude1376 font-weight: 500;
1377 text-align: center;
2ce1d0bClaude1378 line-height: 1.5;
958d26aClaude1379 letter-spacing: 0.04em;
1380 text-transform: uppercase;
1381 }
1382 .prelaunch-banner::before {
1383 content: '◆';
1384 margin-right: 8px;
1385 font-size: 9px;
1386 opacity: 0.7;
1387 vertical-align: 1px;
4a52a98Claude1388 }
1389
cd4f63bTest User1390 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1391 visitors don't miss the "save your work" CTA, but slim enough to
1392 not feel like a modal. */
1393 .playground-banner {
1394 position: relative;
1395 display: flex;
1396 align-items: center;
1397 justify-content: center;
1398 gap: 8px;
1399 background:
1400 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1401 var(--bg);
1402 border-bottom: 1px solid rgba(251,191,36,0.45);
1403 color: var(--yellow, #fbbf24);
1404 padding: 8px 40px 8px 24px;
1405 font-size: 13px;
1406 font-weight: 500;
1407 text-align: center;
1408 line-height: 1.4;
1409 }
1410 .playground-banner-icon { font-size: 14px; }
1411 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1412 .playground-banner-countdown { font-weight: 600; }
1413 .playground-banner-cta {
1414 margin-left: 4px;
1415 color: var(--yellow, #fbbf24);
1416 text-decoration: underline;
1417 font-weight: 600;
1418 }
1419 .playground-banner-cta:hover { opacity: 0.85; }
1420 .playground-banner-dismiss {
1421 position: absolute;
1422 top: 50%;
1423 right: 12px;
1424 transform: translateY(-50%);
1425 background: transparent;
1426 border: none;
1427 color: var(--text-muted, #8b949e);
1428 font-size: 18px;
1429 line-height: 1;
1430 cursor: pointer;
1431 padding: 0 4px;
1432 }
1433 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1434
958d26aClaude1435 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1436 header {
2ce1d0bClaude1437 position: sticky;
1438 top: 0;
1439 z-index: 100;
fc1817aClaude1440 border-bottom: 1px solid var(--border);
2ce1d0bClaude1441 padding: 0 24px;
1442 height: var(--header-h);
958d26aClaude1443 background: rgba(8,9,15,0.72);
1444 backdrop-filter: saturate(180%) blur(18px);
1445 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1446 }
958d26aClaude1447 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1448
06d5ffeClaude1449 header nav {
1450 display: flex;
1451 align-items: center;
958d26aClaude1452 gap: 18px;
eed4684Claude1453 max-width: 1920px;
06d5ffeClaude1454 margin: 0 auto;
2ce1d0bClaude1455 height: 100%;
1456 }
1457 .logo {
958d26aClaude1458 font-family: var(--font-display);
1459 font-size: 16px;
2ce1d0bClaude1460 font-weight: 700;
958d26aClaude1461 letter-spacing: -0.025em;
1462 color: var(--text-strong);
2ce1d0bClaude1463 display: inline-flex;
1464 align-items: center;
958d26aClaude1465 gap: 9px;
1466 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1467 }
2ce1d0bClaude1468 .logo::before {
1469 content: '';
958d26aClaude1470 width: 20px; height: 20px;
1471 border-radius: 6px;
2ce1d0bClaude1472 background: var(--accent-gradient);
958d26aClaude1473 box-shadow:
1474 inset 0 1px 0 rgba(255,255,255,0.25),
1475 0 0 0 1px rgba(140,109,255,0.45),
1476 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1477 flex-shrink: 0;
958d26aClaude1478 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1479 }
1480 .logo:hover { text-decoration: none; color: var(--text-strong); }
1481 .logo:hover::before {
1482 transform: rotate(8deg) scale(1.05);
1483 box-shadow:
1484 inset 0 1px 0 rgba(255,255,255,0.30),
1485 0 0 0 1px rgba(140,109,255,0.55),
1486 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1487 }
fc1817aClaude1488
2ce1d0bClaude1489 .nav-search {
1490 flex: 1;
958d26aClaude1491 max-width: 360px;
1492 margin: 0 4px 0 8px;
1493 position: relative;
2ce1d0bClaude1494 }
1495 .nav-search input {
1496 width: 100%;
958d26aClaude1497 padding: 7px 12px 7px 32px;
2ce1d0bClaude1498 background: var(--bg-tertiary);
1499 border: 1px solid var(--border);
1500 border-radius: var(--r-sm);
1501 color: var(--text);
1502 font-family: var(--font-sans);
1503 font-size: var(--t-sm);
958d26aClaude1504 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1505 }
1506 .nav-search::before {
1507 content: '';
1508 position: absolute;
1509 left: 11px; top: 50%;
1510 transform: translateY(-50%);
1511 width: 12px; height: 12px;
1512 border: 1.5px solid var(--text-faint);
1513 border-radius: 50%;
1514 pointer-events: none;
1515 }
1516 .nav-search::after {
1517 content: '';
1518 position: absolute;
1519 left: 19px; top: calc(50% + 4px);
1520 width: 5px; height: 1.5px;
1521 background: var(--text-faint);
1522 transform: rotate(45deg);
1523 pointer-events: none;
2ce1d0bClaude1524 }
1525 .nav-search input::placeholder { color: var(--text-faint); }
1526 .nav-search input:focus {
1527 outline: none;
1528 background: var(--bg-secondary);
958d26aClaude1529 border-color: var(--border-focus);
1530 box-shadow: var(--ring);
2ce1d0bClaude1531 }
06d5ffeClaude1532
958d26aClaude1533 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1534
1535 /* Block N3 — site-admin deploy status pill */
1536 .nav-deploy-pill {
1537 display: inline-flex;
1538 align-items: center;
1539 gap: 6px;
1540 padding: 4px 10px;
1541 margin: 0 6px 0 0;
1542 border-radius: 9999px;
1543 font-size: 11px;
1544 font-weight: 600;
1545 line-height: 1;
1546 color: var(--text-strong);
1547 background: var(--bg-elevated);
1548 border: 1px solid var(--border);
1549 text-decoration: none;
1550 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1551 }
1552 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1553 .nav-deploy-pill .deploy-pill-dot {
1554 display: inline-block;
1555 width: 8px; height: 8px;
1556 border-radius: 50%;
1557 background: #6b7280;
1558 }
1559 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1560 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1561 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1562 .deploy-pill-progress .deploy-pill-dot {
1563 background: #fbbf24;
1564 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1565 animation: deployPillPulse 1.2s ease-in-out infinite;
1566 }
1567 @keyframes deployPillPulse {
1568 0%, 100% { opacity: 1; transform: scale(1); }
1569 50% { opacity: 0.45; transform: scale(0.8); }
1570 }
1571 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1572
c6018a5Claude1573 /* ── AI dropdown (nav consolidation) ── */
1574 .nav-ai-dropdown {
1575 position: relative;
1576 display: inline-flex;
1577 align-items: center;
1578 }
1579 .nav-ai-trigger {
1580 background: transparent;
1581 border: 0;
1582 font: inherit;
1583 cursor: pointer;
1584 color: var(--text-muted);
1585 font-size: var(--t-sm);
1586 font-weight: 500;
1587 padding: 7px 11px;
1588 border-radius: var(--r-sm);
1589 line-height: 1.2;
1590 }
1591 .nav-ai-trigger:hover {
1592 color: var(--text-strong);
1593 background: var(--bg-hover);
1594 }
1595 .nav-ai-menu {
1596 position: absolute;
1597 top: calc(100% + 6px);
1598 right: 0;
1599 min-width: 220px;
1600 background: var(--bg-secondary);
1601 border: 1px solid var(--border-strong);
1602 border-radius: 10px;
1603 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1604 padding: 6px;
1605 display: none;
1606 z-index: var(--z-overlay, 100);
1607 }
1608 .nav-ai-dropdown:hover .nav-ai-menu,
1609 .nav-ai-dropdown.is-open .nav-ai-menu,
1610 .nav-ai-dropdown:focus-within .nav-ai-menu {
1611 display: block;
1612 }
1613 .nav-ai-item {
1614 display: flex;
1615 flex-direction: column;
1616 gap: 1px;
1617 padding: 8px 10px;
1618 border-radius: 6px;
1619 color: var(--text);
1620 text-decoration: none;
1621 transition: background var(--t-fast) var(--ease);
1622 }
1623 .nav-ai-item:hover {
1624 background: var(--bg-hover);
1625 text-decoration: none;
1626 color: var(--text-strong);
1627 }
1628 .nav-ai-item-label {
1629 font-size: var(--t-sm);
1630 font-weight: 600;
1631 color: var(--text-strong);
1632 }
1633 .nav-ai-item-sub {
1634 font-size: 11.5px;
1635 color: var(--text-muted);
1636 }
1637
2ce1d0bClaude1638 .nav-link {
958d26aClaude1639 position: relative;
2ce1d0bClaude1640 color: var(--text-muted);
1641 font-size: var(--t-sm);
1642 font-weight: 500;
958d26aClaude1643 padding: 7px 11px;
2ce1d0bClaude1644 border-radius: var(--r-sm);
958d26aClaude1645 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1646 }
1647 .nav-link:hover {
958d26aClaude1648 color: var(--text-strong);
2ce1d0bClaude1649 background: var(--bg-hover);
1650 text-decoration: none;
1651 }
958d26aClaude1652 .nav-link.active { color: var(--text-strong); }
1653 .nav-link.active::after {
1654 content: '';
1655 position: absolute;
1656 left: 11px; right: 11px;
1657 bottom: -1px;
1658 height: 2px;
1659 background: var(--accent-gradient);
1660 border-radius: 2px;
1661 }
adf5e18Claude1662 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1663 so it reads as an action affordance rather than a passive link. */
1664 .nav-migrate {
1665 color: var(--accent);
1666 font-weight: 600;
1667 border: 1px solid rgba(140,109,255,0.22);
1668 background: rgba(140,109,255,0.07);
1669 }
1670 .nav-migrate:hover {
1671 color: var(--accent-hover);
1672 background: rgba(140,109,255,0.13);
1673 border-color: rgba(140,109,255,0.40);
1674 }
1675 @media (max-width: 780px) { .nav-migrate { display: none; } }
1676
2ce1d0bClaude1677 .nav-user {
958d26aClaude1678 color: var(--text-strong);
2ce1d0bClaude1679 font-weight: 600;
1680 font-size: var(--t-sm);
1681 padding: 6px 10px;
1682 border-radius: var(--r-sm);
958d26aClaude1683 margin-left: 6px;
2ce1d0bClaude1684 transition: background var(--t-fast) var(--ease);
1685 }
958d26aClaude1686 .nav-user::before {
1687 content: '';
1688 display: inline-block;
1689 width: 8px; height: 8px;
1690 background: var(--green);
1691 border-radius: 50%;
1692 margin-right: 7px;
1693 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1694 vertical-align: 1px;
1695 }
2ce1d0bClaude1696 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1697
f5b9ef5Claude1698 /* ── Inbox bell button ── */
1699 .nav-inbox-btn {
1700 position: relative;
1701 display: inline-flex;
1702 align-items: center;
1703 justify-content: center;
1704 width: 34px;
1705 height: 34px;
1706 border-radius: var(--r-sm);
1707 color: var(--text-muted);
1708 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1709 flex-shrink: 0;
1710 }
1711 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1712 .nav-inbox-badge {
1713 position: absolute;
1714 top: 3px; right: 3px;
1715 min-width: 15px; height: 15px;
1716 padding: 0 4px;
1717 font-size: 9.5px;
1718 font-weight: 700;
1719 line-height: 15px;
1720 color: #fff;
1721 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1722 border-radius: 9999px;
1723 text-align: center;
1724 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1725 font-variant-numeric: tabular-nums;
1726 }
1727
1728 /* ── User dropdown ── */
1729 .nav-user-dropdown { position: relative; }
1730 .nav-user-trigger {
1731 display: inline-flex;
1732 align-items: center;
1733 gap: 7px;
1734 padding: 5px 9px 5px 5px;
1735 border-radius: var(--r-sm);
1736 border: 1px solid transparent;
1737 background: transparent;
1738 color: var(--text);
1739 font-family: var(--font-sans);
1740 font-size: var(--t-sm);
1741 font-weight: 500;
1742 cursor: pointer;
1743 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1744 }
1745 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1746 .nav-user-avatar {
1747 width: 24px; height: 24px;
1748 border-radius: 50%;
1749 background: var(--accent-gradient);
1750 color: #fff;
1751 font-size: 11px;
1752 font-weight: 700;
1753 display: inline-flex;
1754 align-items: center;
1755 justify-content: center;
1756 flex-shrink: 0;
1757 box-shadow: 0 0 0 2px var(--border);
1758 }
1759 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1760 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1761 .nav-user-menu {
1762 display: none;
1763 position: absolute;
1764 top: calc(100% + 6px);
1765 right: 0;
1766 min-width: 220px;
1767 background: var(--bg-elevated);
1768 border: 1px solid var(--border-strong);
1769 border-radius: var(--r-lg);
1770 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1771 padding: 6px;
1772 z-index: 200;
1773 animation: navMenuIn 140ms var(--ease) both;
1774 }
1775 .nav-user-menu.is-open { display: block; }
1776 .nav-user-menu-header {
1777 padding: 8px 10px 10px;
1778 display: flex;
1779 flex-direction: column;
1780 gap: 2px;
1781 }
1782 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1783 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1784 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1785 .nav-user-item {
1786 display: block;
1787 padding: 7px 10px;
1788 border-radius: 6px;
1789 font-size: var(--t-sm);
1790 color: var(--text);
1791 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1792 white-space: nowrap;
1793 }
1794 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1795 .nav-user-item--danger { color: var(--red); }
1796 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1797
1798 @keyframes navMenuIn {
1799 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1800 to { opacity: 1; transform: translateY(0) scale(1); }
1801 }
1802
2ce1d0bClaude1803 main {
eed4684Claude1804 max-width: 1920px;
2ce1d0bClaude1805 margin: 0 auto;
958d26aClaude1806 padding: 36px 24px 80px;
2ce1d0bClaude1807 flex: 1;
1808 width: 100%;
ed6e438Claude1809 /* 2026 polish — subtle entrance animation on every page load.
1810 Content fades up 4px over 360ms, giving the site that "alive"
1811 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1812 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1813 }
1814 @keyframes gxMainEnter {
1815 from { opacity: 0; transform: translateY(4px); }
1816 to { opacity: 1; transform: translateY(0); }
1817 }
1818 @media (prefers-reduced-motion: reduce) {
1819 main { animation: none; }
1820 }
1821 /* 2026 polish — accent focus ring across all focusable elements.
1822 The default browser ring is utilitarian; this is the same width
1823 but tinted to the brand accent so keyboard navigation feels
1824 intentional, not jarring. :focus-visible only — mouse users
1825 never see it. */
1826 :focus-visible {
1827 outline: none;
1828 }
1829 a:focus-visible,
1830 button:focus-visible,
1831 input:focus-visible,
1832 select:focus-visible,
1833 textarea:focus-visible,
1834 [tabindex]:focus-visible {
1835 outline: 2px solid rgba(140, 109, 255, 0.55);
1836 outline-offset: 2px;
1837 border-radius: 4px;
2ce1d0bClaude1838 }
fc1817aClaude1839
958d26aClaude1840 /* Editorial footer: link grid + tagline row */
fc1817aClaude1841 footer {
1842 border-top: 1px solid var(--border);
958d26aClaude1843 padding: 56px 24px 40px;
fc1817aClaude1844 color: var(--text-muted);
958d26aClaude1845 font-size: var(--t-sm);
1846 background:
1847 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1848 var(--bg);
1849 }
1850 footer .footer-inner {
eed4684Claude1851 max-width: 1920px;
958d26aClaude1852 margin: 0 auto;
1853 display: grid;
1854 grid-template-columns: 1fr auto;
1855 gap: 48px;
1856 align-items: start;
1857 }
1858 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1859 footer .footer-tag {
1860 color: var(--text-muted);
1861 font-size: var(--t-sm);
1862 max-width: 320px;
1863 line-height: 1.55;
1864 }
1865 footer .footer-links {
1866 display: grid;
1867 grid-template-columns: repeat(3, minmax(120px, auto));
1868 gap: 0 56px;
1869 }
1870 footer .footer-col-title {
1871 font-family: var(--font-mono);
1872 font-size: 11px;
1873 text-transform: uppercase;
1874 letter-spacing: 0.14em;
1875 color: var(--text-faint);
1876 margin-bottom: var(--s-3);
1877 }
1878 footer .footer-col a {
1879 display: block;
1880 color: var(--text-muted);
1881 font-size: var(--t-sm);
1882 padding: 5px 0;
1883 transition: color var(--t-fast) var(--ease);
1884 }
1885 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1886 footer .footer-bottom {
eed4684Claude1887 max-width: 1920px;
958d26aClaude1888 margin: 40px auto 0;
1889 padding-top: 24px;
1890 border-top: 1px solid var(--border-subtle);
1891 display: flex;
1892 justify-content: space-between;
1893 align-items: center;
2ce1d0bClaude1894 color: var(--text-faint);
1895 font-size: var(--t-xs);
958d26aClaude1896 font-family: var(--font-mono);
1897 letter-spacing: 0.02em;
1898 }
1899 footer .footer-bottom a { color: var(--text-faint); }
1900 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1901 footer .footer-build {
1902 display: inline-flex;
1903 align-items: center;
1904 gap: 6px;
1905 color: var(--text-faint);
1906 font-family: var(--font-mono);
1907 font-size: 11px;
1908 cursor: help;
1909 }
1910 footer .footer-build-dot {
1911 width: 6px; height: 6px;
1912 border-radius: 50%;
1913 background: var(--green);
1914 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1915 animation: footer-build-pulse 2.4s ease-in-out infinite;
1916 }
1917 @keyframes footer-build-pulse {
1918 0%, 100% { opacity: 0.6; }
1919 50% { opacity: 1; }
1920 }
958d26aClaude1921 @media (max-width: 768px) {
1922 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1923 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1924 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1925 }
1926
2ce1d0bClaude1927 /* ============================================================ */
1928 /* Buttons */
1929 /* ============================================================ */
dc26881CC LABS App1930 /* ============================================================ */
1931 /* Buttons — Block U2 senior polish pass. */
1932 /* Rules: */
1933 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1934 /* · active presses back down to 0 (80ms — faster on press) */
1935 /* · focus-visible uses a soft box-shadow ring (no outline) */
1936 /* · primary gradient shifts position on hover for a slow */
1937 /* 600ms shimmer */
1938 /* · disabled never lifts and never animates */
1939 /* ============================================================ */
06d5ffeClaude1940 .btn {
1941 display: inline-flex;
1942 align-items: center;
2ce1d0bClaude1943 justify-content: center;
958d26aClaude1944 gap: 7px;
2ce1d0bClaude1945 padding: 7px 14px;
1946 border-radius: var(--r-sm);
958d26aClaude1947 font-family: var(--font-sans);
2ce1d0bClaude1948 font-size: var(--t-sm);
06d5ffeClaude1949 font-weight: 500;
1950 border: 1px solid var(--border);
2ce1d0bClaude1951 background: var(--bg-elevated);
06d5ffeClaude1952 color: var(--text);
1953 cursor: pointer;
1954 text-decoration: none;
958d26aClaude1955 line-height: 1.25;
1956 letter-spacing: -0.008em;
dc26881CC LABS App1957 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1958 Listed once on the base rule so :active can override only the
1959 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1960 transition:
dc26881CC LABS App1961 background 180ms ease,
1962 border-color 180ms ease,
1963 transform 180ms ease,
1964 box-shadow 180ms ease,
1965 color 180ms ease;
2ce1d0bClaude1966 user-select: none;
1967 white-space: nowrap;
958d26aClaude1968 position: relative;
06d5ffeClaude1969 }
2ce1d0bClaude1970 .btn:hover {
1971 background: var(--bg-surface);
1972 border-color: var(--border-strong);
958d26aClaude1973 color: var(--text-strong);
2ce1d0bClaude1974 text-decoration: none;
dc26881CC LABS App1975 /* U2 — universal hover lift + soft accent drop shadow. */
1976 transform: translateY(-1px);
1977 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1978 }
1979 .btn:active {
1980 transform: translateY(0);
1981 transition-duration: 80ms;
1982 }
1983 /* U2 — soft modern focus ring via box-shadow, not outline. */
1984 .btn:focus-visible {
1985 outline: none;
1986 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1987 }
1988
1989 .btn-primary {
1990 background: var(--accent-gradient);
dc26881CC LABS App1991 background-size: 200% 100%;
1992 background-position: 0% 50%;
2ce1d0bClaude1993 border-color: transparent;
1994 color: #fff;
1995 font-weight: 600;
958d26aClaude1996 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1997 box-shadow:
958d26aClaude1998 inset 0 1px 0 rgba(255,255,255,0.22),
1999 inset 0 -1px 0 rgba(0,0,0,0.10),
2000 0 1px 2px rgba(0,0,0,0.40),
2001 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App2002 /* U2 — slower 600ms transition on background-position so the
2003 primary CTA shimmers when the cursor lands. */
2004 transition:
2005 background-position 600ms ease,
2006 transform 180ms ease,
2007 box-shadow 180ms ease,
2008 color 180ms ease;
06d5ffeClaude2009 }
958d26aClaude2010 .btn-primary::before {
2011 content: '';
2012 position: absolute;
2013 inset: 0;
2014 border-radius: inherit;
2015 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
2016 opacity: 0;
2017 transition: opacity var(--t-fast) var(--ease);
2018 pointer-events: none;
2ce1d0bClaude2019 }
2020 .btn-primary:hover {
958d26aClaude2021 color: #fff;
2ce1d0bClaude2022 background: var(--accent-gradient);
dc26881CC LABS App2023 background-size: 200% 100%;
2024 background-position: 100% 50%;
958d26aClaude2025 border-color: transparent;
dc26881CC LABS App2026 transform: translateY(-1px);
2ce1d0bClaude2027 box-shadow:
958d26aClaude2028 inset 0 1px 0 rgba(255,255,255,0.30),
2029 inset 0 -1px 0 rgba(0,0,0,0.10),
2030 0 6px 18px -4px rgba(140,109,255,0.45),
2031 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude2032 }
958d26aClaude2033 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App2034 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2035 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2036 .btn-primary:focus-visible {
2037 box-shadow:
2038 inset 0 1px 0 rgba(255,255,255,0.22),
2039 0 0 0 3px rgba(140,109,255,0.35);
2040 }
2ce1d0bClaude2041
2042 .btn-danger {
2043 background: transparent;
958d26aClaude2044 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2045 color: var(--red);
2046 }
2047 .btn-danger:hover {
958d26aClaude2048 background: rgba(248,113,113,0.08);
2ce1d0bClaude2049 border-color: var(--red);
958d26aClaude2050 color: var(--red);
dc26881CC LABS App2051 transform: translateY(-1px);
2052 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2053 }
dc26881CC LABS App2054 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2055
2056 .btn-ghost {
2057 background: transparent;
2058 border-color: transparent;
2059 color: var(--text-muted);
2060 }
2061 .btn-ghost:hover {
2062 background: var(--bg-hover);
958d26aClaude2063 color: var(--text-strong);
2ce1d0bClaude2064 border-color: var(--border);
dc26881CC LABS App2065 transform: translateY(-1px);
2066 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2067 }
2068
958d26aClaude2069 .btn-secondary {
2070 background: var(--bg-elevated);
2071 border-color: var(--border-strong);
2072 color: var(--text-strong);
2073 }
2074 .btn-secondary:hover {
2075 background: var(--bg-surface);
2076 border-color: var(--border-strong);
dc26881CC LABS App2077 transform: translateY(-1px);
2078 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2079 }
2080
2081 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2082 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2083 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2084 .btn-block { width: 100%; }
2ce1d0bClaude2085
dc26881CC LABS App2086 /* U2 — disabled never lifts, never shimmers, never glows. */
2087 .btn:disabled,
2088 .btn[aria-disabled='true'],
2089 .btn:disabled:hover,
2090 .btn[aria-disabled='true']:hover {
2091 opacity: 0.5;
2ce1d0bClaude2092 cursor: not-allowed;
2093 pointer-events: none;
dc26881CC LABS App2094 transform: none;
2095 box-shadow: none;
2096 }
2097 @media (prefers-reduced-motion: reduce) {
2098 .btn,
2099 .btn:hover,
2100 .btn:active,
2101 .btn-primary,
2102 .btn-primary:hover {
2103 transform: none;
2104 transition: background-color 80ms linear, color 80ms linear;
2105 }
2ce1d0bClaude2106 }
2107
2108 /* ============================================================ */
2109 /* Forms */
2110 /* ============================================================ */
2111 .form-group { margin-bottom: 20px; }
2112 .form-group label {
2113 display: block;
2114 font-size: var(--t-sm);
2115 font-weight: 500;
2116 margin-bottom: 6px;
2117 color: var(--text);
2118 letter-spacing: -0.005em;
2119 }
2120 .form-group input,
2121 .form-group textarea,
2122 .form-group select,
2123 input[type='text'], input[type='email'], input[type='password'],
2124 input[type='url'], input[type='search'], input[type='number'],
2125 textarea, select {
06d5ffeClaude2126 width: 100%;
2ce1d0bClaude2127 padding: 9px 12px;
2128 background: var(--bg-secondary);
06d5ffeClaude2129 border: 1px solid var(--border);
2ce1d0bClaude2130 border-radius: var(--r-sm);
06d5ffeClaude2131 color: var(--text);
2ce1d0bClaude2132 font-size: var(--t-sm);
06d5ffeClaude2133 font-family: var(--font-sans);
2ce1d0bClaude2134 transition:
2135 border-color var(--t-fast) var(--ease),
2136 background var(--t-fast) var(--ease),
2137 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2138 }
2ce1d0bClaude2139 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2140 color: var(--text-faint);
06d5ffeClaude2141 }
2ce1d0bClaude2142 .form-group input:hover, textarea:hover, select:hover,
2143 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2144 border-color: var(--border-strong);
2145 }
2146 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2147 input:focus, textarea:focus, select:focus {
06d5ffeClaude2148 outline: none;
2ce1d0bClaude2149 background: var(--bg);
2150 border-color: var(--border-focus);
2151 box-shadow: var(--ring);
06d5ffeClaude2152 }
2ce1d0bClaude2153 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2154 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2155
2ce1d0bClaude2156 /* ============================================================ */
2157 /* Auth (register / login / verify) */
2158 /* ============================================================ */
2159 .auth-container {
98f45b4Claude2160 /* 2026 polish — wider, more generous, with a subtle accent-glow
2161 border and gradient top-edge so it reads as a premium product
2162 gateway, not a stock form. The 480px width feels intentional
2163 (not cramped, not endless). */
2164 max-width: 480px;
2165 margin: 72px auto;
2166 padding: 40px 40px 36px;
2ce1d0bClaude2167 background: var(--bg-elevated);
2168 border: 1px solid var(--border);
98f45b4Claude2169 border-radius: 16px;
2170 box-shadow:
2171 var(--elev-2),
2172 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2173 position: relative;
2174 overflow: hidden;
2175 }
2176 .auth-container::before {
2177 /* Hairline gradient accent on the top edge — signals 'AI-native'
2178 without shouting. Pointer-events disabled so it never interferes
2179 with form interactions. */
2180 content: '';
2181 position: absolute;
2182 top: 0;
2183 left: 0;
2184 right: 0;
2185 height: 2px;
2186 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2187 opacity: 0.7;
2188 pointer-events: none;
2ce1d0bClaude2189 }
2190 .auth-container h2 {
98f45b4Claude2191 margin: 0 0 8px;
2192 font-size: 28px;
2193 font-weight: 700;
2194 font-family: var(--font-display);
2195 letter-spacing: -0.025em;
2196 color: var(--text-strong);
2197 line-height: 1.15;
2198 }
2199 .auth-container .auth-subtitle {
2200 color: var(--text-muted);
2201 font-size: 14.5px;
2202 line-height: 1.5;
2203 margin: 0 0 24px;
2ce1d0bClaude2204 }
2205 .auth-container > p {
2206 color: var(--text-muted);
2207 font-size: var(--t-sm);
2208 margin-bottom: 24px;
2209 }
98f45b4Claude2210 .auth-container .btn-primary {
2211 width: 100%;
2212 padding: 12px 16px;
2213 font-size: 15px;
2214 font-weight: 600;
2215 margin-top: 4px;
2216 }
582cdacClaude2217
2218 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2219 with a brand-coloured logo on the left and a label centred-trailing.
2220 Hover lifts 1px with a subtle shadow — matches the rest of the
2221 button system but reads as a brand-affiliated action, not a brand-
2222 coloured primary CTA. */
2223 .auth-container .oauth-btn {
2224 display: flex;
2225 align-items: center;
2226 justify-content: center;
2227 gap: 10px;
2228 width: 100%;
2229 padding: 11px 16px;
2230 background: var(--bg-surface, var(--bg-elevated));
2231 border: 1px solid var(--border);
2232 border-radius: var(--r-md, 8px);
2233 color: var(--text-strong);
2234 font-family: var(--font-sans);
2235 font-size: 14.5px;
2236 font-weight: 500;
2237 text-decoration: none;
2238 transition:
2239 transform var(--t-base, 180ms) var(--ease, ease),
2240 box-shadow var(--t-base, 180ms) var(--ease, ease),
2241 background var(--t-fast, 120ms) var(--ease, ease),
2242 border-color var(--t-fast, 120ms) var(--ease, ease);
2243 }
2244 .auth-container .oauth-btn:hover {
2245 transform: translateY(-1px);
2246 background: var(--bg-hover);
2247 border-color: var(--text-muted);
2248 color: var(--text-strong);
2249 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2250 text-decoration: none;
2251 }
2252 .auth-container .oauth-btn:focus-visible {
2253 outline: 2px solid rgba(140, 109, 255, 0.55);
2254 outline-offset: 2px;
2255 }
2256 .auth-container .oauth-btn .oauth-icon {
2257 flex-shrink: 0;
2258 }
2259 /* GitHub icon adopts the text colour so it reads in both themes. */
2260 .auth-container .oauth-github .oauth-icon {
2261 color: var(--text-strong);
2262 }
2263 /* Google logo uses the official 4-colour treatment via inline SVG fill
2264 attributes — nothing to override here. */
2265 /* "or" divider between the password form and provider buttons */
2266 .auth-container .auth-divider {
2267 display: flex;
2268 align-items: center;
2269 gap: 12px;
2270 margin: 20px 0 12px;
2271 color: var(--text-faint);
2272 font-size: 12px;
2273 letter-spacing: 0.08em;
2274 text-transform: uppercase;
2275 }
2276 .auth-container .auth-divider::before,
2277 .auth-container .auth-divider::after {
2278 content: '';
2279 flex: 1;
2280 height: 1px;
2281 background: var(--border);
2282 }
06d5ffeClaude2283 .auth-error {
958d26aClaude2284 background: rgba(248,113,113,0.08);
2285 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2286 color: var(--red);
2ce1d0bClaude2287 padding: 10px 14px;
2288 border-radius: var(--r-sm);
06d5ffeClaude2289 margin-bottom: 16px;
2ce1d0bClaude2290 font-size: var(--t-sm);
06d5ffeClaude2291 }
2292 .auth-success {
958d26aClaude2293 background: rgba(52,211,153,0.08);
2294 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2295 color: var(--green);
2ce1d0bClaude2296 padding: 10px 14px;
2297 border-radius: var(--r-sm);
06d5ffeClaude2298 margin-bottom: 16px;
2ce1d0bClaude2299 font-size: var(--t-sm);
2300 }
2301 .auth-switch {
2302 margin-top: 20px;
2303 font-size: var(--t-sm);
2304 color: var(--text-muted);
2305 text-align: center;
2306 }
2307 .banner {
2308 background: var(--accent-gradient-faint);
958d26aClaude2309 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2310 color: var(--text);
2311 padding: 10px 14px;
2312 border-radius: var(--r-sm);
2313 font-size: var(--t-sm);
06d5ffeClaude2314 }
2315
2ce1d0bClaude2316 /* ============================================================ */
2317 /* Settings */
2318 /* ============================================================ */
2319 .settings-container { max-width: 720px; }
2320 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2321 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2322 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2323 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2324 .ssh-keys-list { margin-bottom: 24px; }
2325 .ssh-key-item {
2326 display: flex;
2327 justify-content: space-between;
2328 align-items: center;
2ce1d0bClaude2329 padding: 14px 16px;
06d5ffeClaude2330 border: 1px solid var(--border);
2ce1d0bClaude2331 border-radius: var(--r-md);
06d5ffeClaude2332 margin-bottom: 8px;
2ce1d0bClaude2333 background: var(--bg-elevated);
2334 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2335 }
2ce1d0bClaude2336 .ssh-key-item:hover { border-color: var(--border-strong); }
2337 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2338 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2339
2ce1d0bClaude2340 /* ============================================================ */
2341 /* Repo header + nav */
2342 /* ============================================================ */
fc1817aClaude2343 .repo-header {
2344 display: flex;
2345 align-items: center;
debcf27Claude2346 gap: 12px;
2347 margin-bottom: 22px;
2348 }
2349 .repo-header-title {
2350 display: flex;
2351 align-items: center;
2352 gap: 10px;
2353 font-family: var(--font-display);
2354 font-size: 24px;
2355 letter-spacing: -0.025em;
2356 flex-wrap: wrap;
2357 }
2358 .repo-header .owner {
2359 color: var(--text-muted);
2360 font-weight: 500;
2361 transition: color var(--t-fast) var(--ease);
2362 }
2363 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2364 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2365 .repo-header .name {
2366 color: var(--text-strong);
2367 font-weight: 700;
2368 letter-spacing: -0.028em;
fc1817aClaude2369 }
2ce1d0bClaude2370 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2371 .repo-header-fork {
2372 font-family: var(--font-mono);
2373 font-size: 11px;
2374 color: var(--text-muted);
2375 margin-top: 4px;
2376 letter-spacing: 0.01em;
2377 }
2378 .repo-header-fork a { color: var(--text-muted); }
2379 .repo-header-fork a:hover { color: var(--accent); }
2380 .repo-header-pill {
2381 display: inline-flex;
2382 align-items: center;
2383 padding: 2px 10px;
2384 border-radius: var(--r-full);
2385 font-family: var(--font-mono);
2386 font-size: 10px;
2387 font-weight: 600;
2388 letter-spacing: 0.12em;
2389 text-transform: uppercase;
2390 line-height: 1.6;
2391 vertical-align: 4px;
2392 }
2393 .repo-header-pill-archived {
2394 background: rgba(251,191,36,0.10);
2395 color: var(--yellow);
2396 border: 1px solid rgba(251,191,36,0.30);
2397 }
2398 .repo-header-pill-template {
2399 background: var(--accent-gradient-faint);
2400 color: var(--accent);
2401 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2402 }
06d5ffeClaude2403 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2404
8c790e0Claude2405 /* Push Watch discoverability — live/recent indicator in the repo header */
2406 @keyframes pushWatchPulse {
2407 0%, 100% { opacity: 1; }
2408 50% { opacity: 0.3; }
2409 }
2410 .repo-header-live-badge {
2411 display: inline-flex;
2412 align-items: center;
2413 gap: 5px;
2414 padding: 2px 9px;
2415 border-radius: 999px;
2416 font-size: 12px;
2417 font-weight: 600;
2418 letter-spacing: 0.02em;
2419 text-decoration: none !important;
2420 vertical-align: 3px;
2421 transition: filter 140ms ease, opacity 140ms ease;
2422 }
2423 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2424 .repo-header-live-badge--live {
2425 background: rgba(218, 54, 51, 0.12);
2426 color: #f97171;
2427 border: 1px solid rgba(218, 54, 51, 0.35);
2428 }
2429 .repo-header-live-badge--live .repo-header-live-dot {
2430 animation: pushWatchPulse 1.2s ease-in-out infinite;
2431 display: inline-block;
2432 }
2433 .repo-header-live-badge--recent {
2434 background: rgba(140, 109, 255, 0.08);
2435 color: var(--text-muted);
2436 border: 1px solid rgba(140, 109, 255, 0.22);
2437 }
2438 .repo-header-live-badge--recent:hover { color: var(--accent); }
2439 @media (prefers-reduced-motion: reduce) {
2440 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2441 }
2442
fc1817aClaude2443 .repo-nav {
2444 display: flex;
debcf27Claude2445 gap: 1px;
fc1817aClaude2446 border-bottom: 1px solid var(--border);
debcf27Claude2447 margin-bottom: 28px;
2ce1d0bClaude2448 overflow-x: auto;
2449 scrollbar-width: thin;
fc1817aClaude2450 }
2ce1d0bClaude2451 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2452 .repo-nav a {
debcf27Claude2453 position: relative;
2454 padding: 11px 14px;
fc1817aClaude2455 color: var(--text-muted);
2456 border-bottom: 2px solid transparent;
2ce1d0bClaude2457 font-size: var(--t-sm);
2458 font-weight: 500;
2459 margin-bottom: -1px;
debcf27Claude2460 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2461 white-space: nowrap;
2462 }
debcf27Claude2463 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2464 .repo-nav a.active {
debcf27Claude2465 color: var(--text-strong);
2466 font-weight: 600;
2467 }
2468 .repo-nav a.active::after {
2469 content: '';
2470 position: absolute;
2471 left: 14px;
2472 right: 14px;
2473 bottom: -1px;
2474 height: 2px;
2475 background: var(--accent-gradient);
2476 border-radius: 2px;
2477 }
2478 /* AI links in the right-side cluster — sparkle accent */
2479 .repo-nav-ai {
2480 color: var(--accent) !important;
2481 font-weight: 500;
2482 }
2483 .repo-nav-ai:hover {
2484 color: var(--accent-hover) !important;
2485 background: var(--accent-gradient-faint) !important;
2486 }
2487 .repo-nav-ai.active {
2488 color: var(--accent-hover) !important;
2ce1d0bClaude2489 font-weight: 600;
fc1817aClaude2490 }
2491
2ce1d0bClaude2492 .breadcrumb {
2493 display: flex;
debcf27Claude2494 gap: 6px;
2ce1d0bClaude2495 align-items: center;
debcf27Claude2496 margin-bottom: 18px;
2ce1d0bClaude2497 color: var(--text-muted);
2498 font-size: var(--t-sm);
2499 font-family: var(--font-mono);
debcf27Claude2500 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2501 }
2502 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2503 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2504 .breadcrumb strong {
2505 color: var(--text-strong);
2506 font-weight: 600;
fc1817aClaude2507 }
2508
debcf27Claude2509 /* Page header — eyebrow + title + optional actions row.
2510 Use on dashboard, settings, admin, any "section landing" page. */
2511 .page-header {
2512 display: flex;
2513 align-items: flex-end;
2514 justify-content: space-between;
2515 gap: 16px;
2516 margin-bottom: 28px;
2517 padding-bottom: 20px;
2518 border-bottom: 1px solid var(--border-subtle);
2519 flex-wrap: wrap;
2520 }
2521 .page-header-text { flex: 1; min-width: 280px; }
2522 .page-header .eyebrow { margin-bottom: var(--s-2); }
2523 .page-header h1 {
2524 font-family: var(--font-display);
2525 font-size: clamp(24px, 3vw, 36px);
2526 line-height: 1.1;
2527 letter-spacing: -0.028em;
2528 margin-bottom: 6px;
2529 }
2530 .page-header p {
2531 color: var(--text-muted);
2532 font-size: var(--t-sm);
2533 line-height: 1.55;
2534 max-width: 640px;
2535 }
2536 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2537
2ce1d0bClaude2538 /* ============================================================ */
2539 /* File browser table */
2540 /* ============================================================ */
2541 .file-table {
2542 width: 100%;
2543 border: 1px solid var(--border);
2544 border-radius: var(--r-md);
2545 overflow: hidden;
2546 background: var(--bg-elevated);
debcf27Claude2547 border-collapse: collapse;
2ce1d0bClaude2548 }
debcf27Claude2549 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2550 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2551 .file-table td {
2552 padding: 9px 16px;
2553 font-size: var(--t-sm);
2554 font-family: var(--font-mono);
2555 font-feature-settings: var(--mono-feat);
2556 }
2ce1d0bClaude2557 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2558 .file-icon {
2559 width: 22px;
2560 color: var(--text-faint);
2561 font-size: 13px;
2562 text-align: center;
2563 }
2564 .file-name a {
2565 color: var(--text);
2566 font-weight: 500;
2567 transition: color var(--t-fast) var(--ease);
2568 }
2569 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2570
2ce1d0bClaude2571 /* ============================================================ */
2572 /* Blob view */
2573 /* ============================================================ */
fc1817aClaude2574 .blob-view {
2575 border: 1px solid var(--border);
2ce1d0bClaude2576 border-radius: var(--r-md);
fc1817aClaude2577 overflow: hidden;
2ce1d0bClaude2578 background: var(--bg-elevated);
fc1817aClaude2579 }
2580 .blob-header {
2581 background: var(--bg-secondary);
2ce1d0bClaude2582 padding: 10px 16px;
fc1817aClaude2583 border-bottom: 1px solid var(--border);
2ce1d0bClaude2584 font-size: var(--t-sm);
fc1817aClaude2585 color: var(--text-muted);
06d5ffeClaude2586 display: flex;
2587 justify-content: space-between;
2588 align-items: center;
fc1817aClaude2589 }
2590 .blob-code {
2591 overflow-x: auto;
2592 font-family: var(--font-mono);
2ce1d0bClaude2593 font-size: var(--t-sm);
2594 line-height: 1.65;
fc1817aClaude2595 }
2596 .blob-code table { width: 100%; border-collapse: collapse; }
2597 .blob-code .line-num {
2598 width: 1%;
2ce1d0bClaude2599 min-width: 56px;
2600 padding: 0 14px;
fc1817aClaude2601 text-align: right;
2ce1d0bClaude2602 color: var(--text-faint);
fc1817aClaude2603 user-select: none;
2604 white-space: nowrap;
2605 border-right: 1px solid var(--border);
2606 }
2ce1d0bClaude2607 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2608 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2609
2ce1d0bClaude2610 /* ============================================================ */
2611 /* Commits + diffs */
2612 /* ============================================================ */
2613 .commit-list {
2614 border: 1px solid var(--border);
2615 border-radius: var(--r-md);
2616 overflow: hidden;
2617 background: var(--bg-elevated);
2618 }
fc1817aClaude2619 .commit-item {
2620 display: flex;
2621 justify-content: space-between;
2622 align-items: center;
debcf27Claude2623 padding: 14px 18px;
2624 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2625 transition: background var(--t-fast) var(--ease);
fc1817aClaude2626 }
2627 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2628 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2629 .commit-message {
2630 font-size: var(--t-sm);
2631 font-weight: 500;
2632 line-height: 1.45;
2633 color: var(--text-strong);
2634 letter-spacing: -0.005em;
2635 }
2636 .commit-meta {
2637 font-family: var(--font-mono);
2638 font-size: 11px;
2639 color: var(--text-muted);
2640 margin-top: 5px;
2641 letter-spacing: 0.01em;
2642 }
fc1817aClaude2643 .commit-sha {
2644 font-family: var(--font-mono);
debcf27Claude2645 font-feature-settings: var(--mono-feat);
2646 font-size: 11px;
2647 padding: 4px 9px;
fc1817aClaude2648 background: var(--bg-tertiary);
2649 border: 1px solid var(--border);
2ce1d0bClaude2650 border-radius: var(--r-sm);
debcf27Claude2651 color: var(--accent);
2652 font-weight: 600;
2653 letter-spacing: 0.02em;
2ce1d0bClaude2654 transition: all var(--t-fast) var(--ease);
fc1817aClaude2655 }
debcf27Claude2656 .commit-sha:hover {
2657 border-color: rgba(140,109,255,0.40);
2658 background: var(--accent-gradient-faint);
2659 color: var(--accent-hover);
2660 text-decoration: none;
fc1817aClaude2661 }
2662
2663 .diff-view { margin-top: 16px; }
2664 .diff-file {
2665 border: 1px solid var(--border);
2ce1d0bClaude2666 border-radius: var(--r-md);
fc1817aClaude2667 margin-bottom: 16px;
2668 overflow: hidden;
2ce1d0bClaude2669 background: var(--bg-elevated);
fc1817aClaude2670 }
2671 .diff-file-header {
2672 background: var(--bg-secondary);
2ce1d0bClaude2673 padding: 10px 16px;
fc1817aClaude2674 border-bottom: 1px solid var(--border);
2675 font-family: var(--font-mono);
2ce1d0bClaude2676 font-size: var(--t-sm);
2677 font-weight: 500;
fc1817aClaude2678 }
2679 .diff-content {
2680 overflow-x: auto;
2681 font-family: var(--font-mono);
2ce1d0bClaude2682 font-size: var(--t-sm);
2683 line-height: 1.65;
fc1817aClaude2684 }
958d26aClaude2685 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2686 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2687 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2688 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2689
2690 .stat-add { color: var(--green); font-weight: 600; }
2691 .stat-del { color: var(--red); font-weight: 600; }
2692
2ce1d0bClaude2693 /* ============================================================ */
2694 /* Empty state */
2695 /* ============================================================ */
fc1817aClaude2696 .empty-state {
2697 text-align: center;
958d26aClaude2698 padding: 96px 24px;
fc1817aClaude2699 color: var(--text-muted);
2ce1d0bClaude2700 border: 1px dashed var(--border);
2701 border-radius: var(--r-lg);
958d26aClaude2702 background:
2703 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2704 var(--bg-elevated);
2705 position: relative;
2706 overflow: hidden;
2707 }
2708 .empty-state::before {
2709 content: '';
2710 position: absolute;
2711 inset: 0;
2712 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2713 background-size: 24px 24px;
2714 opacity: 0.5;
2715 pointer-events: none;
2716 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2717 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2718 }
2719 :root[data-theme='light'] .empty-state::before {
2720 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2721 }
958d26aClaude2722 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2723 .empty-state h2 {
958d26aClaude2724 font-size: var(--t-xl);
2ce1d0bClaude2725 margin-bottom: 8px;
958d26aClaude2726 color: var(--text-strong);
2727 letter-spacing: -0.022em;
2ce1d0bClaude2728 }
958d26aClaude2729 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2730 .empty-state pre {
2731 text-align: left;
2732 display: inline-block;
2733 background: var(--bg-secondary);
958d26aClaude2734 padding: 18px 24px;
2735 border-radius: var(--r-md);
fc1817aClaude2736 border: 1px solid var(--border);
2737 font-family: var(--font-mono);
958d26aClaude2738 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2739 font-size: var(--t-sm);
958d26aClaude2740 margin-top: 24px;
fc1817aClaude2741 line-height: 1.8;
2ce1d0bClaude2742 color: var(--text);
958d26aClaude2743 box-shadow: var(--elev-1);
fc1817aClaude2744 }
2745
2ce1d0bClaude2746 /* ============================================================ */
2747 /* Badges */
2748 /* ============================================================ */
fc1817aClaude2749 .badge {
2ce1d0bClaude2750 display: inline-flex;
2751 align-items: center;
2752 gap: 4px;
2753 padding: 2px 9px;
2754 border-radius: var(--r-full);
2755 font-size: var(--t-xs);
fc1817aClaude2756 font-weight: 500;
2757 background: var(--bg-tertiary);
2758 border: 1px solid var(--border);
2759 color: var(--text-muted);
2ce1d0bClaude2760 line-height: 1.5;
fc1817aClaude2761 }
2762
2ce1d0bClaude2763 /* ============================================================ */
2764 /* Branch dropdown */
2765 /* ============================================================ */
fc1817aClaude2766 .branch-selector {
2767 display: inline-flex;
2768 align-items: center;
2ce1d0bClaude2769 gap: 6px;
2770 padding: 6px 12px;
2771 background: var(--bg-elevated);
fc1817aClaude2772 border: 1px solid var(--border);
2ce1d0bClaude2773 border-radius: var(--r-sm);
2774 font-size: var(--t-sm);
fc1817aClaude2775 color: var(--text);
2776 margin-bottom: 12px;
2ce1d0bClaude2777 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2778 }
2ce1d0bClaude2779 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2780
06d5ffeClaude2781 .branch-dropdown {
2782 position: relative;
2783 display: inline-block;
2784 margin-bottom: 12px;
2785 }
2786 .branch-dropdown-content {
2787 display: none;
2788 position: absolute;
2ce1d0bClaude2789 top: calc(100% + 4px);
06d5ffeClaude2790 left: 0;
2791 z-index: 10;
2ce1d0bClaude2792 min-width: 220px;
2793 background: var(--bg-elevated);
2794 border: 1px solid var(--border-strong);
2795 border-radius: var(--r-md);
2796 overflow: hidden;
2797 box-shadow: var(--elev-3);
06d5ffeClaude2798 }
2799 .branch-dropdown:hover .branch-dropdown-content,
2800 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2801 .branch-dropdown-content a {
2802 display: block;
2ce1d0bClaude2803 padding: 9px 14px;
2804 font-size: var(--t-sm);
06d5ffeClaude2805 color: var(--text);
2806 border-bottom: 1px solid var(--border);
2ce1d0bClaude2807 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2808 }
2809 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2810 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2811 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2812
2ce1d0bClaude2813 /* ============================================================ */
2814 /* Card grid */
2815 /* ============================================================ */
2816 .card-grid {
2817 display: grid;
2818 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2819 gap: 16px;
2820 }
fc1817aClaude2821 .card {
2822 border: 1px solid var(--border);
2ce1d0bClaude2823 border-radius: var(--r-md);
958d26aClaude2824 padding: 20px;
2ce1d0bClaude2825 background: var(--bg-elevated);
2826 transition:
958d26aClaude2827 border-color var(--t-base) var(--ease),
2828 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2829 box-shadow var(--t-base) var(--ease);
2830 position: relative;
2831 overflow: hidden;
958d26aClaude2832 isolation: isolate;
2833 }
2834 .card::before {
2835 content: '';
2836 position: absolute;
2837 inset: 0;
2838 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2839 opacity: 0;
2840 transition: opacity var(--t-base) var(--ease);
2841 pointer-events: none;
2842 z-index: -1;
2ce1d0bClaude2843 }
2844 .card:hover {
2845 border-color: var(--border-strong);
2846 box-shadow: var(--elev-2);
958d26aClaude2847 transform: translateY(-2px);
2ce1d0bClaude2848 }
958d26aClaude2849 .card:hover::before { opacity: 1; }
2850 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2851 .card h3 a { color: var(--text); font-weight: 600; }
2852 .card h3 a:hover { color: var(--text-link); }
2853 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2854 .card-meta {
2855 display: flex;
2856 gap: 14px;
2857 margin-top: 14px;
2858 padding-top: 14px;
2859 border-top: 1px solid var(--border);
2860 font-size: var(--t-xs);
2861 color: var(--text-muted);
2862 }
2863 .card-meta span { display: flex; align-items: center; gap: 5px; }
2864
2865 /* ============================================================ */
2866 /* Stat card / box */
2867 /* ============================================================ */
2868 .stat-card {
2869 background: var(--bg-elevated);
2870 border: 1px solid var(--border);
2871 border-radius: var(--r-md);
fc1817aClaude2872 padding: 16px;
2ce1d0bClaude2873 transition: border-color var(--t-fast) var(--ease);
2874 }
2875 .stat-card:hover { border-color: var(--border-strong); }
2876 .stat-label {
2877 font-size: var(--t-xs);
2878 color: var(--text-muted);
2879 text-transform: uppercase;
2880 letter-spacing: 0.06em;
2881 font-weight: 500;
2882 }
2883 .stat-value {
2884 font-size: var(--t-xl);
2885 font-weight: 700;
2886 margin-top: 4px;
2887 letter-spacing: -0.025em;
2888 color: var(--text);
2889 font-feature-settings: 'tnum';
fc1817aClaude2890 }
06d5ffeClaude2891
2ce1d0bClaude2892 /* ============================================================ */
2893 /* Star button */
2894 /* ============================================================ */
06d5ffeClaude2895 .star-btn {
2896 display: inline-flex;
2897 align-items: center;
2898 gap: 6px;
2ce1d0bClaude2899 padding: 5px 12px;
2900 background: var(--bg-elevated);
06d5ffeClaude2901 border: 1px solid var(--border);
2ce1d0bClaude2902 border-radius: var(--r-sm);
06d5ffeClaude2903 color: var(--text);
2ce1d0bClaude2904 font-size: var(--t-sm);
2905 font-weight: 500;
06d5ffeClaude2906 cursor: pointer;
2ce1d0bClaude2907 transition: all var(--t-fast) var(--ease);
2908 }
2909 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2910 .star-btn.starred {
2911 color: var(--yellow);
958d26aClaude2912 border-color: rgba(251,191,36,0.4);
2913 background: rgba(251,191,36,0.08);
06d5ffeClaude2914 }
2915
2ce1d0bClaude2916 /* ============================================================ */
2917 /* User profile */
2918 /* ============================================================ */
06d5ffeClaude2919 .user-profile {
2920 display: flex;
2921 gap: 32px;
2922 margin-bottom: 32px;
2ce1d0bClaude2923 padding: 24px;
2924 background: var(--bg-elevated);
2925 border: 1px solid var(--border);
2926 border-radius: var(--r-lg);
06d5ffeClaude2927 }
2928 .user-avatar {
2929 width: 96px;
2930 height: 96px;
2ce1d0bClaude2931 border-radius: var(--r-full);
2932 background: var(--accent-gradient-soft);
2933 border: 1px solid var(--border-strong);
06d5ffeClaude2934 display: flex;
2935 align-items: center;
2936 justify-content: center;
2ce1d0bClaude2937 font-size: 36px;
2938 font-weight: 600;
2939 color: var(--text);
06d5ffeClaude2940 flex-shrink: 0;
2ce1d0bClaude2941 letter-spacing: -0.02em;
06d5ffeClaude2942 }
2ce1d0bClaude2943 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2944 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2945 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2946
2ce1d0bClaude2947 /* ============================================================ */
2948 /* New repo form */
2949 /* ============================================================ */
2950 .new-repo-form { max-width: 640px; }
2951 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2952 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2953 .visibility-option {
2954 flex: 1;
2ce1d0bClaude2955 padding: 16px;
06d5ffeClaude2956 border: 1px solid var(--border);
2ce1d0bClaude2957 border-radius: var(--r-md);
2958 background: var(--bg-elevated);
06d5ffeClaude2959 cursor: pointer;
2ce1d0bClaude2960 text-align: left;
2961 transition: all var(--t-fast) var(--ease);
2962 }
2963 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2964 .visibility-option:has(input:checked) {
2965 border-color: var(--accent);
2966 background: var(--accent-gradient-faint);
2967 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2968 }
2969 .visibility-option input { display: none; }
2ce1d0bClaude2970 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2971 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2972
2ce1d0bClaude2973 /* ============================================================ */
2974 /* Issues */
2975 /* ============================================================ */
2976 .issue-tabs { display: flex; gap: 4px; }
2977 .issue-tabs a {
2978 color: var(--text-muted);
2979 font-size: var(--t-sm);
2980 font-weight: 500;
2981 padding: 6px 12px;
2982 border-radius: var(--r-sm);
2983 transition: all var(--t-fast) var(--ease);
2984 }
2985 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2986 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2987
2ce1d0bClaude2988 .issue-list {
2989 border: 1px solid var(--border);
2990 border-radius: var(--r-md);
2991 overflow: hidden;
2992 background: var(--bg-elevated);
2993 }
79136bbClaude2994 .issue-item {
2995 display: flex;
2ce1d0bClaude2996 gap: 14px;
79136bbClaude2997 align-items: flex-start;
2ce1d0bClaude2998 padding: 14px 16px;
79136bbClaude2999 border-bottom: 1px solid var(--border);
2ce1d0bClaude3000 transition: background var(--t-fast) var(--ease);
79136bbClaude3001 }
3002 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude3003 .issue-item:hover { background: var(--bg-hover); }
3004 .issue-state-icon {
3005 font-size: 14px;
3006 padding-top: 2px;
3007 width: 18px;
3008 height: 18px;
3009 display: inline-flex;
3010 align-items: center;
3011 justify-content: center;
3012 border-radius: var(--r-full);
3013 flex-shrink: 0;
3014 }
79136bbClaude3015 .state-open { color: var(--green); }
958d26aClaude3016 .state-closed { color: #b69dff; }
2ce1d0bClaude3017 .issue-title {
debcf27Claude3018 font-family: var(--font-display);
3019 font-size: var(--t-md);
2ce1d0bClaude3020 font-weight: 600;
debcf27Claude3021 line-height: 1.35;
3022 letter-spacing: -0.012em;
3023 }
3024 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
3025 .issue-title a:hover { color: var(--accent); text-decoration: none; }
3026 .issue-meta {
3027 font-family: var(--font-mono);
3028 font-size: 11px;
3029 color: var(--text-muted);
3030 margin-top: 5px;
3031 letter-spacing: 0.01em;
2ce1d0bClaude3032 }
79136bbClaude3033
3034 .issue-badge {
3035 display: inline-flex;
3036 align-items: center;
2ce1d0bClaude3037 gap: 6px;
79136bbClaude3038 padding: 4px 12px;
2ce1d0bClaude3039 border-radius: var(--r-full);
3040 font-size: var(--t-sm);
79136bbClaude3041 font-weight: 500;
2ce1d0bClaude3042 line-height: 1.4;
79136bbClaude3043 }
958d26aClaude3044 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3045 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3046 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3047 .state-merged { color: var(--accent); }
958d26aClaude3048 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3049
2ce1d0bClaude3050 .issue-detail { max-width: 920px; }
79136bbClaude3051 .issue-comment-box {
3052 border: 1px solid var(--border);
2ce1d0bClaude3053 border-radius: var(--r-md);
79136bbClaude3054 margin-bottom: 16px;
3055 overflow: hidden;
2ce1d0bClaude3056 background: var(--bg-elevated);
79136bbClaude3057 }
3058 .comment-header {
3059 background: var(--bg-secondary);
2ce1d0bClaude3060 padding: 10px 16px;
79136bbClaude3061 border-bottom: 1px solid var(--border);
2ce1d0bClaude3062 font-size: var(--t-sm);
79136bbClaude3063 color: var(--text-muted);
3064 }
3065
2ce1d0bClaude3066 /* ============================================================ */
3067 /* Panel — flexible container used across many pages */
3068 /* ============================================================ */
3069 .panel {
3070 background: var(--bg-elevated);
3071 border: 1px solid var(--border);
3072 border-radius: var(--r-md);
3073 overflow: hidden;
3074 }
3075 .panel-item {
3076 display: flex;
3077 align-items: center;
3078 gap: 12px;
3079 padding: 12px 16px;
79136bbClaude3080 border-bottom: 1px solid var(--border);
2ce1d0bClaude3081 transition: background var(--t-fast) var(--ease);
3082 }
3083 .panel-item:last-child { border-bottom: none; }
3084 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3085
3086 /* ─── j/k keyboard list navigation ─── */
3087 .is-kbd-focus {
3088 outline: 2px solid rgba(140,109,255,0.6) !important;
3089 outline-offset: -2px;
3090 background: rgba(140,109,255,0.06) !important;
3091 border-radius: 4px;
3092 }
3093 .is-kbd-selected {
3094 outline: 2px solid rgba(52,211,153,0.6) !important;
3095 background: rgba(52,211,153,0.06) !important;
3096 }
2ce1d0bClaude3097 .panel-empty {
3098 padding: 24px;
3099 text-align: center;
79136bbClaude3100 color: var(--text-muted);
2ce1d0bClaude3101 font-size: var(--t-sm);
79136bbClaude3102 }
3103
2ce1d0bClaude3104 /* ============================================================ */
3105 /* Search */
3106 /* ============================================================ */
79136bbClaude3107 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3108
2ce1d0bClaude3109 /* ============================================================ */
3110 /* Timeline */
3111 /* ============================================================ */
3112 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3113 .timeline::before {
3114 content: '';
3115 position: absolute;
3116 left: 4px;
3117 top: 8px;
3118 bottom: 8px;
3119 width: 2px;
2ce1d0bClaude3120 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3121 }
2ce1d0bClaude3122 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3123 .timeline-dot {
3124 position: absolute;
2ce1d0bClaude3125 left: -28px;
3126 top: 8px;
3127 width: 12px;
3128 height: 12px;
3129 border-radius: var(--r-full);
3130 background: var(--accent-gradient);
16b325cClaude3131 border: 2px solid var(--bg);
2ce1d0bClaude3132 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3133 }
3134 .timeline-content {
2ce1d0bClaude3135 background: var(--bg-elevated);
16b325cClaude3136 border: 1px solid var(--border);
2ce1d0bClaude3137 border-radius: var(--r-md);
3138 padding: 14px 16px;
16b325cClaude3139 }
f1ab587Claude3140
2ce1d0bClaude3141 /* ============================================================ */
3142 /* Toggle switch */
3143 /* ============================================================ */
f1ab587Claude3144 .toggle-switch {
3145 position: relative;
3146 display: inline-block;
2ce1d0bClaude3147 width: 40px;
3148 height: 22px;
f1ab587Claude3149 flex-shrink: 0;
3150 margin-left: 16px;
3151 }
3152 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3153 .toggle-slider {
3154 position: absolute;
3155 cursor: pointer;
3156 top: 0; left: 0; right: 0; bottom: 0;
3157 background: var(--bg-tertiary);
3158 border: 1px solid var(--border);
2ce1d0bClaude3159 border-radius: var(--r-full);
3160 transition: all var(--t-base) var(--ease);
f1ab587Claude3161 }
3162 .toggle-slider::before {
3163 content: '';
3164 position: absolute;
2ce1d0bClaude3165 height: 16px;
3166 width: 16px;
f1ab587Claude3167 left: 2px;
3168 bottom: 2px;
3169 background: var(--text-muted);
2ce1d0bClaude3170 border-radius: var(--r-full);
3171 transition: all var(--t-base) var(--ease);
f1ab587Claude3172 }
3173 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3174 background: var(--accent-gradient);
3175 border-color: transparent;
958d26aClaude3176 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3177 }
3178 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3179 transform: translateX(18px);
f1ab587Claude3180 background: #fff;
3181 }
ef8d378Claude3182
3183 /* ============================================================
3184 * 2026 polish layer (purely additive — no layout changes).
3185 * Improves typography rendering, focus states, hover affordances,
3186 * and adds the gradient brand cue to primary buttons. Anything
3187 * that could alter dimensions stays in the rules above.
3188 * ============================================================ */
3189 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3190 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3191 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3192
3193 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3194 h1 { letter-spacing: -0.025em; }
3195
3196 /* Smoother colour transitions everywhere links live */
3197 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3198
3199 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3200 .btn {
3201 transition:
3202 background 120ms cubic-bezier(0.16,1,0.3,1),
3203 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3204 transform 120ms cubic-bezier(0.16,1,0.3,1),
3205 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3206 }
3207 .btn:active { transform: translateY(0.5px); }
3208 .btn:focus-visible {
3209 outline: none;
3210 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3211 }
3212 .btn-primary {
3213 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3214 border-color: transparent;
3215 box-shadow:
3216 inset 0 1px 0 rgba(255,255,255,0.15),
3217 0 1px 2px rgba(168,85,247,0.25);
3218 }
3219 .btn-primary:hover {
3220 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3221 filter: none;
3222 box-shadow:
3223 inset 0 1px 0 rgba(255,255,255,0.20),
3224 0 4px 12px rgba(168,85,247,0.30);
3225 }
3226
3227 /* Inputs: cleaner focus ring + hover */
3228 .form-group input:hover,
3229 .form-group textarea:hover,
3230 .form-group select:hover {
3231 border-color: rgba(255,255,255,0.14);
3232 }
3233 .form-group input:focus,
3234 .form-group textarea:focus,
3235 .form-group select:focus {
3236 border-color: rgba(168,85,247,0.55);
3237 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3238 }
3239 :root[data-theme='light'] .form-group input:hover,
3240 :root[data-theme='light'] .form-group textarea:hover,
3241 :root[data-theme='light'] .form-group select:hover {
3242 border-color: rgba(0,0,0,0.18);
3243 }
3244
3245 /* Cards: subtle hover lift */
3246 .card {
3247 transition:
3248 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3249 transform 160ms cubic-bezier(0.16,1,0.3,1),
3250 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3251 }
3252 .card:hover {
3253 border-color: rgba(255,255,255,0.18);
3254 transform: translateY(-1px);
3255 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3256 }
3257 :root[data-theme='light'] .card:hover {
3258 border-color: rgba(0,0,0,0.18);
3259 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3260 }
3261
3262 /* Issue / commit / panel rows: smoother hover */
3263 .issue-item, .commit-item {
3264 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3265 }
3266 .repo-nav a {
3267 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3268 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3269 }
3270 .nav-link {
3271 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3272 }
3273
3274 /* Auth card: subtle elevation so register/login feel premium */
3275 .auth-container {
3276 background: var(--bg-secondary);
3277 border: 1px solid var(--border);
3278 border-radius: var(--r-lg, 12px);
3279 padding: 32px;
3280 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3281 }
3282 :root[data-theme='light'] .auth-container {
3283 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3284 }
3285 .auth-container h2 { letter-spacing: -0.025em; }
3286
3287 /* Empty state: dashed border, generous padding */
3288 .empty-state {
3289 border: 1px dashed var(--border);
3290 border-radius: var(--r-lg, 12px);
3291 background: var(--bg);
3292 }
3293
3294 /* Badges + commit-sha: smoother transition */
3295 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3296
3297 /* Gradient text utility — matches landing's accent treatment */
3298 .gradient-text {
3299 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3300 -webkit-background-clip: text;
3301 background-clip: text;
3302 -webkit-text-fill-color: transparent;
3303 }
3304
3305 /* Custom scrollbars (subtle, themed) */
3306 ::-webkit-scrollbar { width: 10px; height: 10px; }
3307 ::-webkit-scrollbar-track { background: transparent; }
3308 ::-webkit-scrollbar-thumb {
3309 background: rgba(255,255,255,0.06);
3310 border: 2px solid var(--bg);
3311 border-radius: 9999px;
3312 }
3313 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3314 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3315 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3316
3317 /* Honour reduced-motion preference */
3318 @media (prefers-reduced-motion: reduce) {
3319 *, *::before, *::after {
3320 animation-duration: 0.01ms !important;
3321 animation-iteration-count: 1 !important;
3322 transition-duration: 0.01ms !important;
3323 }
3324 }
c63b860Claude3325
3326 /* Block O3 — visual coherence additive rules. */
3327 .card.card-p-none { padding: 0; }
3328 .card.card-p-sm { padding: var(--space-3); }
3329 .card.card-p-md { padding: var(--space-4); }
3330 .card.card-p-lg { padding: var(--space-6); }
3331 .card.card-elevated { box-shadow: var(--elev-2); }
3332 .card.card-gradient {
3333 background:
3334 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3335 var(--bg-elevated);
3336 }
3337 .card.card-gradient::before { opacity: 1; }
3338 .notice {
3339 padding: var(--space-3) var(--space-4);
3340 border-radius: var(--radius-md);
3341 border: 1px solid var(--border);
3342 background: var(--bg-elevated);
3343 color: var(--text);
3344 font-size: var(--font-size-sm);
3345 margin-bottom: var(--space-6);
3346 line-height: var(--leading-normal);
3347 }
3348 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3349 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3350 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3351 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3352 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3353 .email-preview {
3354 padding: var(--space-5);
3355 background: #fff;
3356 color: #111;
3357 border-radius: var(--radius-md);
3358 }
3359 .code-block {
3360 margin: var(--space-2) 0 0;
3361 padding: var(--space-3);
3362 background: var(--bg-tertiary);
3363 border: 1px solid var(--border-subtle);
3364 border-radius: var(--radius-sm);
3365 font-family: var(--font-mono);
3366 font-size: var(--font-size-xs);
3367 line-height: var(--leading-normal);
3368 overflow-x: auto;
3369 }
3370 .status-pill-operational {
3371 display: inline-flex;
3372 align-items: center;
3373 padding: var(--space-1) var(--space-3);
3374 border-radius: var(--radius-full);
3375 font-size: var(--font-size-xs);
3376 font-weight: 600;
3377 background: rgba(52,211,153,0.15);
3378 color: var(--green);
3379 }
3380 .api-tag {
3381 display: inline-flex;
3382 align-items: center;
3383 font-size: var(--font-size-xs);
3384 padding: 2px var(--space-2);
3385 border-radius: var(--radius-sm);
3386 font-family: var(--font-mono);
3387 }
3388 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3389 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3390 .stat-number {
3391 font-size: var(--font-size-xl);
3392 font-weight: 700;
3393 color: var(--text-strong);
3394 line-height: var(--leading-tight);
3395 }
3396 .stat-number-accent { color: var(--accent); }
3397 .stat-number-blue { color: var(--blue); }
3398 .stat-number-purple { color: var(--text-link); }
3399 footer .footer-tag-sub {
3400 margin-top: var(--space-2);
3401 font-size: var(--font-size-xs);
3402 color: var(--text-faint);
3403 line-height: var(--leading-normal);
3404 }
3405 footer .footer-version-pill {
3406 display: inline-flex;
3407 align-items: center;
3408 gap: var(--space-2);
3409 padding: var(--space-1) var(--space-3);
3410 border-radius: var(--radius-full);
3411 border: 1px solid var(--border);
3412 background: var(--bg-elevated);
3413 color: var(--text-faint);
3414 font-family: var(--font-mono);
3415 font-size: var(--font-size-xs);
3416 cursor: help;
3417 }
3418 footer .footer-banner {
3419 max-width: 1240px;
3420 margin: var(--space-6) auto 0;
3421 padding: var(--space-3) var(--space-4);
3422 border-radius: var(--radius-md);
3423 border: 1px solid var(--border);
3424 background: var(--bg-elevated);
3425 color: var(--text);
3426 font-family: var(--font-mono);
3427 font-size: var(--font-size-xs);
3428 letter-spacing: 0.04em;
3429 text-transform: uppercase;
3430 text-align: center;
3431 }
3432 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3433 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3434 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3435
cf9178bTest User3436 /* ============================================================ */
3437 /* Global toast notifications. */
3438 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3439 /* ============================================================ */
3440 .gx-toast {
3441 pointer-events: auto;
3442 display: inline-flex;
3443 align-items: flex-start;
3444 gap: 10px;
3445 min-width: 280px;
3446 max-width: min(440px, calc(100vw - 32px));
3447 padding: 12px 14px 12px 12px;
3448 background: var(--bg-elevated);
3449 border: 1px solid var(--border);
3450 border-radius: 10px;
3451 box-shadow:
3452 0 12px 36px -10px rgba(15,16,28,0.18),
3453 0 2px 6px rgba(15,16,28,0.04),
3454 0 0 0 1px rgba(15,16,28,0.02);
3455 color: var(--text);
3456 font-size: 13.5px;
3457 line-height: 1.45;
3458 opacity: 0;
3459 transform: translateX(16px);
3460 transition:
3461 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3462 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3463 }
3464 .gx-toast--in { opacity: 1; transform: translateX(0); }
3465 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3466 .gx-toast__icon {
3467 flex-shrink: 0;
3468 width: 20px; height: 20px;
3469 border-radius: 50%;
3470 display: inline-flex;
3471 align-items: center;
3472 justify-content: center;
3473 font-size: 12px;
3474 font-weight: 700;
3475 line-height: 1;
3476 margin-top: 1px;
3477 }
3478 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3479 .gx-toast__close {
3480 flex-shrink: 0;
3481 width: 22px; height: 22px;
3482 border: 0;
3483 background: transparent;
3484 color: var(--text-muted);
3485 font-size: 18px;
3486 line-height: 1;
3487 cursor: pointer;
3488 border-radius: 4px;
3489 padding: 0;
3490 margin: -2px -2px 0 0;
3491 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3492 }
3493 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3494 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3495 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3496 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3497 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3498 @media (prefers-reduced-motion: reduce) {
3499 .gx-toast { transition: opacity 60ms linear; transform: none; }
3500 .gx-toast--in, .gx-toast--out { transform: none; }
3501 }
3502
dc26881CC LABS App3503 /* ============================================================ */
3504 /* Block U4 — cross-document view transitions. */
3505 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3506 /* every same-origin navigation. Older browsers ignore these */
3507 /* rules entirely — no JS shim, no breakage. */
3508 /* prefers-reduced-motion disables the animation honourably. */
3509 /* ============================================================ */
3510 @view-transition {
3511 navigation: auto;
3512 }
3513 ::view-transition-old(root),
3514 ::view-transition-new(root) {
3515 animation-duration: 200ms;
3516 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3517 }
3518 ::view-transition-old(root) {
3519 animation-name: vt-fade-out;
3520 }
3521 ::view-transition-new(root) {
3522 animation-name: vt-fade-in;
3523 }
3524 @keyframes vt-fade-out {
3525 to { opacity: 0; }
3526 }
3527 @keyframes vt-fade-in {
3528 from { opacity: 0; }
3529 }
3530 @media (prefers-reduced-motion: reduce) {
3531 ::view-transition-old(root),
3532 ::view-transition-new(root) {
3533 animation-duration: 0s;
3534 }
3535 }
3536 /* The transition system picks up its root subject from this rule. */
3537 body {
3538 view-transition-name: root;
3539 }
fc1817aClaude3540`;