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.tsxBlame3507 lines · 4 contributors
fc1817aClaude1import type { FC, PropsWithChildren } from "hono/jsx";
06d5ffeClaude2import type { User } from "../db/schema";
3import { hljsThemeCss } from "../lib/highlight";
45e31d0Claude4import { clientJs } from "./client-js";
05cdb85Claude5import { getBuildInfo } from "../lib/build-info";
fc1817aClaude6
06d5ffeClaude7export const Layout: FC<
3ef4c9dClaude8 PropsWithChildren<{
9 title?: string;
10 user?: User | null;
11 notificationCount?: number;
6fc53bdClaude12 theme?: "dark" | "light";
5f2e749Claude13 // Block L10 — additive SEO + Open Graph fields. All optional;
14 // omission preserves the prior render exactly (regression-safe).
15 fullTitle?: string;
16 description?: string;
17 ogTitle?: string;
18 ogDescription?: string;
19 ogType?: string;
20 twitterCard?: "summary" | "summary_large_image";
c63b860Claude21 // Block O3 — site-wide footer banner stripe. When non-empty,
22 // renders below the footer-bottom row; wired from
23 // admin.system_flags.site_banner_text.
24 siteBannerText?: string;
25 siteBannerLevel?: "info" | "warn" | "error";
3ef4c9dClaude26 }>
5f2e749Claude27> = ({
28 children,
29 title,
30 user,
31 notificationCount,
32 theme,
33 fullTitle,
34 description,
35 ogTitle,
36 ogDescription,
37 ogType,
38 twitterCard,
c63b860Claude39 siteBannerText,
40 siteBannerLevel,
5f2e749Claude41}) => {
81201ccTest User42 // Default to "light" — feedback from operators was the dark default
43 // felt too gamer-ish and not what senior platform engineers expect from
44 // a tool they'd evaluate alongside Vercel / Linear / Stripe. Users who
45 // explicitly want dark can flip via the theme toggle (cookie persists).
46 const initialTheme = theme === "dark" ? "dark" : "light";
05cdb85Claude47 const build = getBuildInfo();
5f2e749Claude48 // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron"
49 // suffix); otherwise fall back to the existing `title` + suffix behaviour.
50 const renderedTitle = fullTitle
51 ? fullTitle
52 : title
53 ? `${title} — gluecron`
54 : "gluecron";
fc1817aClaude55 return (
6fc53bdClaude56 <html lang="en" data-theme={initialTheme}>
fc1817aClaude57 <head>
58 <meta charset="UTF-8" />
59 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
eae38d1Claude60 <meta name="theme-color" content="#0d1117" />
3a5755eClaude61 {/* 2026 polish — load Inter + Inter Tight + JetBrains Mono for
62 crisp modern typography. `preconnect` keeps the handshake
63 cost off the critical path; `display=swap` means we never
64 block first paint waiting on fonts. */}
65 <link rel="preconnect" href="https://fonts.googleapis.com" />
66 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
67 <link
68 rel="stylesheet"
69 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"
70 />
44fe49bClaude71 {/* PWA removed 2026-05-16 — repeated reload-loop bugs (admin
72 dashboard, deploy pill, admin-screen flash). A git host has
73 no use for service workers or install-as-app. Manifest link
74 and SW registrations are gone permanently. */}
eae38d1Claude75 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude76 <title>{renderedTitle}</title>
77 {description && <meta name="description" content={description} />}
78 {(ogTitle || fullTitle || title) && (
79 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
80 )}
81 {(ogDescription || description) && (
82 <meta
83 property="og:description"
84 content={ogDescription ?? description ?? ""}
85 />
86 )}
87 {ogType && <meta property="og:type" content={ogType} />}
88 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude89 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
90 <style dangerouslySetInnerHTML={{ __html: css }} />
91 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude92 </head>
93 <body>
4a52a98Claude94 <div class="prelaunch-banner" role="status" aria-live="polite">
95 Pre-launch &mdash; Gluecron is in final validation. Public signups
96 and git hosting for non-owner users open after launch review.
97 </div>
cd4f63bTest User98 {/* Block Q3 — Playground banner. Renders only when the active
99 user is a playground account with a future expiry; the small
100 inline script counts down once per minute. Strip is dismissible
101 per-page-load (re-appears on next nav) — gentle, not noisy. */}
102 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
103 <div
104 class="playground-banner"
105 role="status"
106 aria-live="polite"
107 data-playground-expires={
108 ((user as any).playgroundExpiresAt instanceof Date
109 ? (user as any).playgroundExpiresAt.toISOString()
110 : String((user as any).playgroundExpiresAt))
111 }
112 >
113 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
114 <span class="playground-banner-text">
115 Playground account &mdash;{" "}
116 <span class="playground-banner-countdown">expires soon</span>.{" "}
117 <a href="/play/claim" class="playground-banner-cta">
118 Save your work &rarr;
119 </a>
120 </span>
121 <button
122 type="button"
123 class="playground-banner-dismiss"
124 aria-label="Dismiss"
125 data-playground-dismiss="1"
126 >
127 {"×"}
128 </button>
129 <script
130 dangerouslySetInnerHTML={{
131 __html: /* js */ `
132 (function () {
133 var el = document.currentScript && document.currentScript.parentElement;
134 if (!el) return;
135 var iso = el.getAttribute('data-playground-expires');
136 if (!iso) return;
137 var target = Date.parse(iso);
138 if (isNaN(target)) return;
139 var out = el.querySelector('.playground-banner-countdown');
140 function render() {
141 var ms = target - Date.now();
142 if (!out) return;
143 if (ms <= 0) { out.textContent = 'expired'; return; }
144 var mins = Math.floor(ms / 60000);
145 var hrs = Math.floor(mins / 60);
146 if (hrs > 1) out.textContent = hrs + ' hours left';
147 else if (hrs === 1) out.textContent = '1 hour left';
148 else if (mins > 1) out.textContent = mins + ' minutes left';
149 else out.textContent = 'less than a minute left';
150 }
151 render();
152 setInterval(render, 60000);
153 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
154 if (dismiss) {
155 dismiss.addEventListener('click', function () {
156 el.style.display = 'none';
157 });
158 }
159 })();
160 `,
161 }}
162 />
163 </div>
164 )}
fc1817aClaude165 <header>
166 <nav>
167 <a href="/" class="logo">
168 gluecron
169 </a>
3ef4c9dClaude170 <div class="nav-search">
001af43Claude171 <form method="get" action="/search">
3ef4c9dClaude172 <input
173 type="search"
174 name="q"
175 placeholder="Search (press /)"
176 aria-label="Search"
177 />
178 </form>
179 </div>
06d5ffeClaude180 <div class="nav-right">
f5b9ef5Claude181 {/* Block N3 — site-admin platform-deploy status pill */}
f764c07Claude182 {user && (
183 <a
184 id="deploy-pill"
185 href="/admin/deploys"
186 class="nav-deploy-pill"
187 style="display:none"
188 aria-label="Platform deploy status"
189 title="Platform deploy status"
190 >
191 <span class="deploy-pill-dot" />
192 <span class="deploy-pill-text">Deploys</span>
193 </a>
194 )}
f5b9ef5Claude195 <a href="/explore" class="nav-link">Explore</a>
06d5ffeClaude196 {user ? (
197 <>
f5b9ef5Claude198 {/* AI dropdown */}
c6018a5Claude199 <div class="nav-ai-dropdown" data-nav-ai>
200 <button
201 type="button"
202 class="nav-link nav-ai-trigger"
203 aria-haspopup="true"
204 aria-expanded="false"
205 data-nav-ai-trigger
206 >
207 <span style="display:inline-flex;align-items:center;gap:5px">
f5b9ef5Claude208 <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
c6018a5Claude209 <path d="M12 2l2.39 5.95L20 9l-4.5 3.9L17 19l-5-3.2L7 19l1.5-6.1L4 9l5.61-1.05L12 2z" />
210 </svg>
211 AI
f5b9ef5Claude212 <span aria-hidden="true" style="font-size:9px;opacity:0.7">{String.fromCharCode(9660)}</span>
c6018a5Claude213 </span>
214 </button>
215 <div class="nav-ai-menu" role="menu" data-nav-ai-menu>
216 <a href="/standups" role="menuitem" class="nav-ai-item">
217 <span class="nav-ai-item-label">Standups</span>
218 <span class="nav-ai-item-sub">Daily AI brief</span>
219 </a>
220 <a href="/voice" role="menuitem" class="nav-ai-item">
221 <span class="nav-ai-item-label">Voice</span>
222 <span class="nav-ai-item-sub">Talk to ship a PR</span>
223 </a>
224 <a href="/refactors" role="menuitem" class="nav-ai-item">
225 <span class="nav-ai-item-label">Refactors</span>
226 <span class="nav-ai-item-sub">Multi-repo agent</span>
227 </a>
228 <a href="/specs" role="menuitem" class="nav-ai-item">
229 <span class="nav-ai-item-label">Specs</span>
230 <span class="nav-ai-item-sub">Spec-to-PR loop</span>
231 </a>
232 <a href="/ask" role="menuitem" class="nav-ai-item">
233 <span class="nav-ai-item-label">Ask AI</span>
234 <span class="nav-ai-item-sub">Cross-repo chat</span>
235 </a>
236 </div>
237 </div>
f5b9ef5Claude238 {/* Inbox bell with unread badge */}
239 <a
240 href="/inbox"
241 class="nav-inbox-btn"
242 aria-label={notificationCount && notificationCount > 0 ? `Inbox — ${notificationCount} unread` : "Inbox"}
243 title="Inbox"
244 >
245 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
246 <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
247 <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
248 </svg>
249 {notificationCount && notificationCount > 0 ? (
250 <span class="nav-inbox-badge" aria-hidden="true">
251 {notificationCount > 99 ? "99+" : notificationCount}
252 </span>
253 ) : null}
06d5ffeClaude254 </a>
f5b9ef5Claude255 <a href="/new" class="btn btn-sm btn-primary">+ New</a>
256 {/* User dropdown — consolidates profile + secondary nav */}
257 <div class="nav-user-dropdown" data-nav-user>
258 <button
259 type="button"
260 class="nav-user-trigger"
261 aria-haspopup="true"
262 aria-expanded="false"
263 data-nav-user-trigger
264 >
265 <span class="nav-user-avatar" aria-hidden="true">
266 {(user.displayName || user.username).charAt(0).toUpperCase()}
267 </span>
268 <span class="nav-user-name">{user.displayName || user.username}</span>
269 <span class="nav-user-caret" aria-hidden="true">{"▾"}</span>
270 </button>
271 <div class="nav-user-menu" role="menu" data-nav-user-menu>
272 <div class="nav-user-menu-header">
273 <span class="nav-user-menu-name">{user.displayName || user.username}</span>
274 <span class="nav-user-menu-handle">@{user.username}</span>
275 </div>
276 <div class="nav-user-menu-sep" />
277 <a href="/dashboard" role="menuitem" class="nav-user-item">Dashboard</a>
278 <a href="/pulls" role="menuitem" class="nav-user-item">Pull requests</a>
279 <a href="/issues" role="menuitem" class="nav-user-item">Issues</a>
280 <a href="/activity" role="menuitem" class="nav-user-item">Activity</a>
281 <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a>
282 <div class="nav-user-menu-sep" />
283 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
284 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
285 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
286 <div class="nav-user-menu-sep" />
287 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
288 <span class="theme-icon-dark">{"☾"} Light mode</span>
289 <span class="theme-icon-light">{"☀"} Dark mode</span>
290 </a>
291 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
292 </div>
293 </div>
06d5ffeClaude294 </>
295 ) : (
296 <>
f5b9ef5Claude297 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
298 <span class="theme-icon-dark">{"☾"}</span>
299 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude300 </a>
adf5e18Claude301 <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron">
302 Migrate from GitHub
303 </a>
f5b9ef5Claude304 <a href="/login" class="nav-link">Sign in</a>
305 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude306 </>
307 )}
308 </div>
fc1817aClaude309 </nav>
310 </header>
45e31d0Claude311 <main id="main-content">{children}</main>
cf9178bTest User312 {/* Global toast host — populated by the toastScript below from
313 ?success= / ?error= / ?toast= query params. Replaces the
314 per-page banner pattern with one polished slide-in. */}
315 <div
316 id="toast-host"
317 aria-live="polite"
318 aria-atomic="true"
319 style="position:fixed;top:calc(var(--header-h) + 12px);right:16px;z-index:var(--z-toast,10000);display:flex;flex-direction:column;gap:8px;pointer-events:none"
320 />
fc1817aClaude321 <footer>
958d26aClaude322 <div class="footer-inner">
323 <div class="footer-brand">
324 <a href="/" class="logo">gluecron</a>
325 <p class="footer-tag">
326 AI-native code intelligence. Self-hosted git, automated CI,
327 push-time gates. Software that ships itself.
328 </p>
329 </div>
330 <div class="footer-links">
331 <div class="footer-col">
332 <div class="footer-col-title">Product</div>
b0148e9Claude333 <a href="/features">Features</a>
334 <a href="/pricing">Pricing</a>
9f29b65Claude335 <a href="/enterprise">Enterprise</a>
e1fc7dbClaude336 <a href="/changelog">Changelog</a>
958d26aClaude337 <a href="/explore">Explore</a>
338 <a href="/marketplace">Marketplace</a>
adf5e18Claude339 <a href="/developer-program">Developer Program</a>
958d26aClaude340 </div>
341 <div class="footer-col">
342 <div class="footer-col-title">Platform</div>
e0e4219Claude343 <a href="/docs">Docs</a>
b0148e9Claude344 <a href="/help">Quickstart</a>
958d26aClaude345 <a href="/status">Status</a>
346 <a href="/api/graphql">GraphQL</a>
347 <a href="/mcp">MCP server</a>
348 </div>
349 <div class="footer-col">
b0148e9Claude350 <div class="footer-col-title">Company</div>
351 <a href="/about">About</a>
958d26aClaude352 <a href="/terms">Terms</a>
353 <a href="/privacy">Privacy</a>
354 <a href="/acceptable-use">Acceptable use</a>
355 </div>
356 </div>
357 </div>
358 <div class="footer-bottom">
359 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude360 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
361 <span class="footer-build-dot" aria-hidden="true" />
362 {build.sha} · {build.branch}
363 </span>
36b4cbdClaude364 </div>
c63b860Claude365 {siteBannerText ? (
366 <div
367 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
368 role="status"
369 aria-live="polite"
370 >
371 {siteBannerText}
372 </div>
373 ) : null}
fc1817aClaude374 </footer>
05cdb85Claude375 {/* Live update poller — checks /api/version every 15s, prompts
376 reload when the running sha changes. Pure progressive-
377 enhancement; degrades to nothing if JS is off. */}
378 <div
379 id="version-banner"
380 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"
381 >
382 <span style="display:inline-flex;align-items:center;gap:8px">
383 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
384 <span>New version available</span>
385 </span>
386 <button
387 type="button"
388 id="version-banner-reload"
389 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"
390 >
391 Reload
392 </button>
393 </div>
fa880f2Claude394 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude395 {/* Block N3 — site-admin deploy status pill (script-only). The pill
396 container is rendered above for authed users; this script bootstraps
397 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
398 and the pill stays display:none — zero leak. */}
399 {user && (
400 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
401 )}
699e5c7Claude402 {/* Block I4 — Command palette shell (hidden by default) */}
403 <div
404 id="cmdk-backdrop"
405 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
406 />
407 <div
408 id="cmdk-panel"
409 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"
410 >
411 <input
412 id="cmdk-input"
413 type="text"
414 placeholder="Type a command..."
415 aria-label="Command palette"
dc26881CC LABS App416 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"
699e5c7Claude417 />
418 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
419 </div>
fa880f2Claude420 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude421 {/* PWA-kill script: actively unregisters any service worker
422 previously installed under gluecron.com. Recovers any browser
423 still trapped in the SW reload loop from the legacy registrations. */}
424 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User425 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude426 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude427 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
fc1817aClaude428 </body>
429 </html>
430 );
431};
432
05cdb85Claude433// Live version poller. Checks /api/version every 15s; if the sha differs
434// from the one we booted with, reveal the floating 'New version' pill so
435// the user can reload onto the new code without manually refreshing.
436const versionPollerScript = `
437 (function(){
438 var loadedSha = null;
439 var banner, btn;
440 function poll(){
441 fetch('/api/version', { cache: 'no-store' })
442 .then(function(r){ return r.ok ? r.json() : null; })
443 .then(function(j){
444 if (!j || !j.sha) return;
445 if (loadedSha === null) { loadedSha = j.sha; return; }
446 if (j.sha !== loadedSha && banner) {
447 banner.style.display = 'inline-flex';
448 }
449 })
450 .catch(function(){});
451 }
452 function init(){
453 banner = document.getElementById('version-banner');
454 btn = document.getElementById('version-banner-reload');
455 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
456 poll();
457 setInterval(poll, 15000);
458 }
459 if (document.readyState === 'loading') {
460 document.addEventListener('DOMContentLoaded', init);
461 } else {
462 init();
463 }
464 })();
465`;
466
f764c07Claude467// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
468// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
469// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
470// display:none — there's no leakage of admin-only data to other users.
471//
472// Pill states (CSS classes on the container drive colour):
473// .deploy-pill-success 🟢 "Deployed 12s ago"
474// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
475// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
476// .deploy-pill-empty ⚪ "No deploys yet"
477//
478// Relative-time auto-refreshes every 15s without re-fetching.
479export const deployPillScript = `
480 (function(){
481 var pill, dot, text;
482 var state = { latest: null, asOf: null };
483
484 function classifyAge(ms){
485 if (ms < 0) return 'just now';
486 var s = Math.floor(ms / 1000);
487 if (s < 5) return 'just now';
488 if (s < 60) return s + 's ago';
489 var m = Math.floor(s / 60);
490 if (m < 60) return m + 'm ago';
491 var h = Math.floor(m / 60);
492 if (h < 24) return h + 'h ago';
493 var d = Math.floor(h / 24);
494 return d + 'd ago';
495 }
496 function elapsed(ms){
497 if (ms < 0) ms = 0;
498 var s = Math.floor(ms / 1000);
499 if (s < 60) return s + 's';
500 var m = Math.floor(s / 60);
501 var rem = s - m * 60;
502 return m + 'm ' + rem + 's';
503 }
504
505 function render(){
506 if (!pill || !text || !dot) return;
507 var d = state.latest;
81201ccTest User508 // When there's no deploy event yet, keep the pill HIDDEN. Showing
509 // "No deploys yet" was visible noise on every admin page load and
510 // flashed during reconnect cycles — admins don't need a placeholder.
511 // The pill reveals itself the first time a real deploy fires.
f764c07Claude512 if (!d) {
81201ccTest User513 pill.style.display = 'none';
f764c07Claude514 return;
515 }
516 pill.style.display = 'inline-flex';
517 var now = Date.now();
518 if (d.status === 'in_progress') {
519 pill.className = 'nav-deploy-pill deploy-pill-progress';
520 var started = Date.parse(d.started_at) || now;
521 text.textContent = 'Deploying… ' + elapsed(now - started);
522 } else if (d.status === 'succeeded') {
523 pill.className = 'nav-deploy-pill deploy-pill-success';
524 var ref = Date.parse(d.finished_at || d.started_at) || now;
525 text.textContent = 'Deployed ' + classifyAge(now - ref);
526 } else if (d.status === 'failed') {
527 pill.className = 'nav-deploy-pill deploy-pill-failed';
528 var refF = Date.parse(d.finished_at || d.started_at) || now;
529 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
530 } else {
531 pill.className = 'nav-deploy-pill';
532 text.textContent = d.status;
533 }
534 }
535
536 function fetchLatest(){
537 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
538 .then(function(r){ if (!r.ok) return null; return r.json(); })
539 .then(function(j){
540 if (!j || j.ok !== true) return;
541 state.latest = j.latest;
542 state.asOf = j.asOf;
543 render();
544 subscribe();
545 })
546 .catch(function(){});
547 }
548
549 var subscribed = false;
550 function subscribe(){
551 if (subscribed) return;
552 if (typeof EventSource === 'undefined') return;
553 subscribed = true;
554 var es;
bf19c50Test User555 // Exponential backoff with cap. Previously a tight 1500ms reconnect
556 // produced visible looping in the nav whenever the proxy timed out
557 // or the connection blipped — the bottom-of-page deploy pill
558 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
559 // successful message receipt.
560 var delay = 2000;
561 var DELAY_MAX = 60000;
562 function bump(){
563 delay = Math.min(delay * 2, DELAY_MAX);
564 }
565 function resetDelay(){
566 delay = 2000;
567 }
f764c07Claude568 function connect(){
569 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User570 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude571 es.onmessage = function(m){
bf19c50Test User572 resetDelay();
f764c07Claude573 try {
574 var d = JSON.parse(m.data);
575 if (d && d.run_id) {
576 if (!state.latest || state.latest.run_id === d.run_id ||
577 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
578 state.latest = d;
579 render();
580 }
581 }
582 } catch(e){}
583 };
584 es.onerror = function(){
585 try { es.close(); } catch(e){}
bf19c50Test User586 bump();
f764c07Claude587 setTimeout(connect, delay);
588 };
589 }
590 connect();
591 }
592
593 function init(){
594 pill = document.getElementById('deploy-pill');
595 if (!pill) return;
596 dot = pill.querySelector('.deploy-pill-dot');
597 text = pill.querySelector('.deploy-pill-text');
598 fetchLatest();
599 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
600 // without a fresh fetch.
601 setInterval(render, 15000);
602 }
603 if (document.readyState === 'loading') {
604 document.addEventListener('DOMContentLoaded', init);
605 } else {
606 init();
607 }
608 })();
609`;
610
6fc53bdClaude611// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User612// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
613// is honoured for users who explicitly opted in.
6fc53bdClaude614const themeInitScript = `
615 (function(){
616 try {
617 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User618 var t = m ? decodeURIComponent(m[1]) : 'light';
619 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude620 document.documentElement.setAttribute('data-theme', t);
621 } catch(_){}
622 })();
623`;
624
eae38d1Claude625// Block G1 — register service worker for offline / install support.
626// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App627//
cf9178bTest User628// Global toast notifications — reads ?success=, ?error=, ?toast= from the
629// URL on page load and surfaces a polished slide-in toast instead of the
630// per-page banner divs that crowded the layout. Toasts auto-dismiss after
631// 4.5s; query params are scrubbed from the URL via history.replaceState
632// so a subsequent Refresh doesn't re-fire the same toast.
633//
634// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
635// must be URI-encoded (callers already do this via encodeURIComponent
636// in c.redirect()).
637const toastScript = `
638 (function(){
639 function showToast(kind, message){
640 if (!message) return;
641 var host = document.getElementById('toast-host');
642 if (!host) return;
643 var el = document.createElement('div');
644 el.className = 'gx-toast gx-toast--' + kind;
645 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
646 var icon = document.createElement('span');
647 icon.className = 'gx-toast__icon';
648 icon.textContent = kind === 'success' ? '\\u2713'
649 : kind === 'error' ? '\\u00D7'
650 : kind === 'warn' ? '!'
651 : 'i';
652 el.appendChild(icon);
653 var text = document.createElement('span');
654 text.className = 'gx-toast__text';
655 text.textContent = message;
656 el.appendChild(text);
657 var close = document.createElement('button');
658 close.type = 'button';
659 close.className = 'gx-toast__close';
660 close.setAttribute('aria-label', 'Dismiss notification');
661 close.textContent = '\\u00D7';
662 close.addEventListener('click', function(){ dismiss(); });
663 el.appendChild(close);
664 host.appendChild(el);
665 // Force a reflow then add the visible class so the slide-in transitions.
666 void el.offsetWidth;
667 el.classList.add('gx-toast--in');
668 var timer = setTimeout(dismiss, 4500);
669 function dismiss(){
670 clearTimeout(timer);
671 el.classList.remove('gx-toast--in');
672 el.classList.add('gx-toast--out');
673 setTimeout(function(){
674 if (el.parentNode) el.parentNode.removeChild(el);
675 }, 220);
676 }
677 }
678 try {
679 var url = new URL(window.location.href);
680 var hits = 0;
681 var s = url.searchParams.get('success');
682 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
683 var e = url.searchParams.get('error');
684 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
685 var t = url.searchParams.get('toast');
686 if (t) {
687 var ix = t.indexOf(':');
688 var kind = ix > 0 ? t.slice(0, ix) : 'info';
689 var msg = ix > 0 ? t.slice(ix + 1) : t;
690 showToast(kind, msg);
691 url.searchParams.delete('toast');
692 hits++;
693 }
694 if (hits > 0 && window.history && window.history.replaceState) {
695 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
696 }
697 } catch(_) {}
698 })();
699`;
700
44fe49bClaude701// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
702// and pwaInstallBannerScript. Those two scripts registered /sw.js and
703// /sw-push.js at the same scope, causing a reload loop that made the
704// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
705// uncllickable). Per the SW spec, only one SW can control a scope; two
706// different script URLs at the same scope keep replacing each other.
6345c3eTest User707//
44fe49bClaude708// PWA is gone for good. A git host has no use for service workers,
709// install-as-app, or push notifications via SW. This script actively
710// unregisters every previously installed SW on the gluecron.com origin
711// so any browser still trapped in the loop recovers on the very next
712// page load — without needing the user to clear site data or open
713// DevTools. Idempotent and safe to keep running forever; once all
714// browsers have been cleaned, it's a no-op.
715const pwaKillSwitchScript = `
534f04aClaude716(function(){
717 try {
44fe49bClaude718 if (!('serviceWorker' in navigator)) return;
719 if (!navigator.serviceWorker.getRegistrations) return;
720 navigator.serviceWorker.getRegistrations().then(function(regs){
721 if (!regs || regs.length === 0) return;
722 regs.forEach(function(reg){
723 try { reg.unregister(); } catch(_){}
724 });
725 }).catch(function(){});
726 // Also drop any caches the old SWs left behind so the user gets
727 // truly fresh HTML on every page load. Restricted to gluecron-*
728 // namespaced caches so we don't trample anything a future opt-in
729 // feature might create under a different name.
730 if ('caches' in self) {
731 caches.keys().then(function(keys){
732 keys.forEach(function(k){
733 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
734 try { caches.delete(k); } catch(_){}
d7ba05dClaude735 }
736 });
737 }).catch(function(){});
534f04aClaude738 }
739 } catch(_) {}
740})();
741`;
742
3ef4c9dClaude743const navScript = `
744 (function(){
745 var chord = null;
746 var chordTimer = null;
747 function isTyping(t){
748 t = t || {};
749 var tag = (t.tagName || '').toLowerCase();
750 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
751 }
71cd5ecClaude752
753 // ---------- Block I4 — Command palette ----------
754 var COMMANDS = [
755 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
756 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
757 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
758 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
759 { label: 'Create new repository', href: '/new', kw: 'add create' },
760 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
761 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
762 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
763 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
764 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
765 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
766 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
767 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
768 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude769 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude770 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
771 { label: 'Gists', href: '/gists', kw: 'snippets' },
772 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
773 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
774 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
775 ];
776
777 function fuzzyMatch(item, q){
778 if (!q) return true;
779 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
780 q = q.toLowerCase();
781 var qi = 0;
782 for (var i = 0; i < hay.length && qi < q.length; i++) {
783 if (hay[i] === q[qi]) qi++;
784 }
785 return qi === q.length;
786 }
787
788 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
789
790 function render(){
791 if (!list) return;
792 var html = '';
793 for (var i = 0; i < filtered.length; i++) {
794 var item = filtered[i];
795 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
796 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]797 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App798 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude799 '<div>' + item.label + '</div>' +
800 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
801 '</div>';
802 }
803 if (filtered.length === 0) {
dc26881CC LABS App804 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude805 }
806 list.innerHTML = html;
807 }
808
809 function openPalette(){
810 backdrop = document.getElementById('cmdk-backdrop');
811 panel = document.getElementById('cmdk-panel');
812 input = document.getElementById('cmdk-input');
813 list = document.getElementById('cmdk-list');
814 if (!backdrop || !panel) return;
815 backdrop.style.display = 'block';
816 panel.style.display = 'block';
817 input.value = '';
818 selected = 0;
819 filtered = COMMANDS.slice();
820 render();
821 input.focus();
822 }
823 function closePalette(){
824 if (backdrop) backdrop.style.display = 'none';
825 if (panel) panel.style.display = 'none';
826 }
827 function go(href){ closePalette(); window.location.href = href; }
828
829 document.addEventListener('click', function(e){
830 var t = e.target;
831 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
832 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]833 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude834 });
835
836 document.addEventListener('input', function(e){
837 if (e.target && e.target.id === 'cmdk-input') {
838 var q = e.target.value;
839 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
840 selected = 0;
841 render();
842 }
843 });
844
3ef4c9dClaude845 document.addEventListener('keydown', function(e){
71cd5ecClaude846 // Palette-scoped keys take priority when open
847 if (panel && panel.style.display === 'block') {
848 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
849 if (e.key === 'ArrowDown') {
850 e.preventDefault();
851 selected = Math.min(filtered.length - 1, selected + 1);
852 render();
853 return;
854 }
855 if (e.key === 'ArrowUp') {
856 e.preventDefault();
857 selected = Math.max(0, selected - 1);
858 render();
859 return;
860 }
861 if (e.key === 'Enter') {
862 e.preventDefault();
863 var item = filtered[selected];
864 if (item) go(item.href);
865 return;
866 }
867 return;
868 }
869
3ef4c9dClaude870 if (isTyping(e.target)) return;
871 // Single key shortcuts
872 if (e.key === '/') {
873 var el = document.querySelector('.nav-search input');
874 if (el) { e.preventDefault(); el.focus(); return; }
875 }
876 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude877 e.preventDefault();
878 openPalette();
879 return;
3ef4c9dClaude880 }
881 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
882 e.preventDefault(); window.location.href = '/shortcuts'; return;
883 }
884 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
885 e.preventDefault(); window.location.href = '/new'; return;
886 }
887 // "g" chord
888 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
889 chord = 'g';
890 clearTimeout(chordTimer);
891 chordTimer = setTimeout(function(){ chord = null; }, 1200);
892 return;
893 }
894 if (chord === 'g') {
895 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
896 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
897 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
898 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
899 chord = null;
900 }
5882af3Claude901 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
902 if (e.key === 'j' || e.key === 'k') {
903 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
904 var items = Array.from(document.querySelectorAll(selectors));
905 if (items.length === 0) return;
906 e.preventDefault();
907 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
908 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));
909 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
910 items[next].classList.add('is-kbd-focus');
911 items[next].scrollIntoView({ block: 'nearest' });
912 return;
913 }
914 if (e.key === 'Enter') {
915 var focused = document.querySelector('.is-kbd-focus');
916 if (focused) {
917 e.preventDefault();
918 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
919 if (link && link.href) { window.location.href = link.href; }
920 return;
921 }
922 }
923 if (e.key === 'x') {
924 // 'x' selects/deselects focused item (future: bulk actions)
925 var sel = document.querySelector('.is-kbd-focus');
926 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
927 }
3ef4c9dClaude928 });
929 })();
930`;
931
c6018a5Claude932// AI dropdown — keyboard- and click-accessible menu in the top nav.
933// CSS handles the hover-open behaviour for pointer users; this script
934// adds click-to-toggle for touch, Escape-to-close, and outside-click-
935// to-close. Lives in its own IIFE so it never interferes with navScript.
936const navAiDropdownScript = `
937 (function(){
f5b9ef5Claude938 function makeDropdown(rootSel, triggerSel, menuSel) {
939 var open = false;
940 var root = document.querySelector(rootSel);
941 if (!root) return;
942 var trigger = root.querySelector(triggerSel);
943 var menu = root.querySelector(menuSel);
944 if (!trigger || !menu) return;
945 function setOpen(next){
946 open = !!next;
947 root.classList.toggle('is-open', open);
948 menu.classList.toggle('is-open', open);
949 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
950 }
951 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
952 document.addEventListener('click', function(e){
953 if (!open) return;
954 if (root.contains(e.target)) return;
955 setOpen(false);
956 });
957 document.addEventListener('keydown', function(e){
958 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
959 });
c6018a5Claude960 }
f5b9ef5Claude961 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
962 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude963 })();
964`;
965
fc1817aClaude966const css = `
2ce1d0bClaude967 /* ================================================================
958d26aClaude968 * Gluecron design system — 2026.05 "Editorial-Technical"
969 * Slate-noir base · refined violet signature · hairline geometry ·
970 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
971 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude972 * ============================================================== */
6fc53bdClaude973 :root, :root[data-theme='dark'] {
958d26aClaude974 /* Surfaces — slate, not black. More depth, less crush. */
975 --bg: #08090f;
976 --bg-secondary: #0c0d14;
977 --bg-tertiary: #11131c;
978 --bg-elevated: #0f111a;
979 --bg-surface: #161826;
980 --bg-hover: rgba(255,255,255,0.04);
981 --bg-active: rgba(255,255,255,0.08);
982 --bg-inset: rgba(0,0,0,0.30);
983
984 /* Borders — three weights, used deliberately */
985 --border: rgba(255,255,255,0.06);
986 --border-subtle: rgba(255,255,255,0.035);
987 --border-strong: rgba(255,255,255,0.13);
988 --border-focus: rgba(140,109,255,0.55);
989
990 /* Text */
991 --text: #ededf2;
992 --text-strong: #f7f7fb;
993 --text-muted: #8b8c9c;
994 --text-faint: #555665;
995 --text-link: #b69dff;
996
997 /* Accent — refined violet (less candy), warm amber as secondary signal */
998 --accent: #8c6dff;
999 --accent-2: #36c5d6;
1000 --accent-warm: #ffb45e;
1001 --accent-hover: #a48bff;
1002 --accent-pressed:#7559e8;
1003 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1004 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1005 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1006 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1007
1008 /* Semantic */
1009 --green: #34d399;
1010 --red: #f87171;
1011 --yellow: #fbbf24;
1012 --amber: #fbbf24;
1013 --blue: #60a5fa;
1014
3a5755eClaude1015 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1016 display (headlines), JetBrains Mono for code. All three loaded from
1017 Google Fonts with display:swap so we never block first paint. System
1018 fallbacks remain in place — if the CDN is unreachable the site still
1019 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1020 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1021 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1022 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1023 --mono-feat: 'calt', 'liga', 'ss01';
1024
1025 /* Radius — sharper than before */
1026 --r-sm: 5px;
1027 --r: 7px;
1028 --r-md: 9px;
1029 --r-lg: 12px;
1030 --r-xl: 16px;
1031 --r-2xl: 22px;
1032 --r-full: 9999px;
1033 --radius: 7px;
1034
1035 /* Type scale — bigger display sizes for editorial feel */
1036 --t-xs: 11px;
1037 --t-sm: 13px;
1038 --t-base: 14px;
1039 --t-md: 16px;
1040 --t-lg: 20px;
1041 --t-xl: 28px;
1042 --t-2xl: 40px;
1043 --t-3xl: 56px;
1044 --t-display: 72px;
1045 --t-display-lg:96px;
1046
1047 /* Spacing — 4px base */
2ce1d0bClaude1048 --s-0: 0;
958d26aClaude1049 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1050 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1051 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1052 --s-20:80px; --s-24:96px; --s-32:128px;
1053
1054 /* Elevation — softer + more layered */
1055 --elev-0: 0 0 0 1px var(--border);
1056 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1057 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1058 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1059 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1060 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1061 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1062 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1063
1064 /* Motion */
1065 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1066 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1067 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1068 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1069 --t-fast: 120ms;
1070 --t-base: 200ms;
1071 --t-slow: 360ms;
1072 --t-slower:560ms;
1073
1074 --header-h: 60px;
c63b860Claude1075
1076 /* Block O3 — visual coherence: named token aliases (additive). */
1077 --space-1: var(--s-1);
1078 --space-2: var(--s-2);
1079 --space-3: var(--s-3);
1080 --space-4: var(--s-4);
1081 --space-5: var(--s-5);
1082 --space-6: var(--s-6);
1083 --space-8: var(--s-8);
1084 --space-10: var(--s-10);
1085 --space-12: var(--s-12);
1086 --space-16: var(--s-16);
1087 --space-20: var(--s-20);
1088 --space-24: var(--s-24);
1089 --radius-sm: var(--r-sm);
1090 --radius-md: var(--r-md);
1091 --radius-lg: var(--r-lg);
1092 --radius-xl: var(--r-xl);
1093 --radius-full: var(--r-full);
1094 --font-size-xs: var(--t-xs);
1095 --font-size-sm: var(--t-sm);
1096 --font-size-base: var(--t-base);
1097 --font-size-md: var(--t-md);
1098 --font-size-lg: var(--t-lg);
1099 --font-size-xl: var(--t-xl);
1100 --font-size-2xl: var(--t-2xl);
1101 --font-size-3xl: var(--t-3xl);
1102 --font-size-hero: var(--t-display);
1103 --leading-tight: 1.2;
1104 --leading-snug: 1.35;
1105 --leading-normal: 1.5;
1106 --leading-relaxed: 1.6;
1107 --leading-loose: 1.7;
1108 --z-base: 1;
1109 --z-nav: 10;
1110 --z-sticky: 50;
1111 --z-overlay: 100;
1112 --z-modal: 1000;
1113 --z-toast: 10000;
fc1817aClaude1114 }
1115
6fc53bdClaude1116 :root[data-theme='light'] {
958d26aClaude1117 --bg: #fbfbfc;
4c47454Claude1118 --bg-secondary: #ffffff;
958d26aClaude1119 --bg-tertiary: #f3f3f6;
1120 --bg-elevated: #ffffff;
1121 --bg-surface: #f6f6f9;
1122 --bg-hover: rgba(0,0,0,0.035);
1123 --bg-active: rgba(0,0,0,0.07);
1124 --bg-inset: rgba(0,0,0,0.04);
1125
1126 --border: rgba(15,16,28,0.08);
1127 --border-subtle: rgba(15,16,28,0.04);
1128 --border-strong: rgba(15,16,28,0.16);
1129
1130 --text: #0e1020;
1131 --text-strong: #050617;
1132 --text-muted: #5a5b70;
1133 --text-faint: #8a8b9e;
1134 --text-link: #6d4dff;
1135
1136 --accent: #6d4dff;
1137 --accent-2: #0891b2;
1138 --accent-hover: #5a3df0;
1139 --accent-pressed:#4a30d6;
1140 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1141
1142 --green: #059669;
1143 --red: #dc2626;
4c47454Claude1144 --yellow: #d97706;
958d26aClaude1145
1146 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1147 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1148 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1149 }
1150
1151 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1152 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1153 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1154 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1155 :root[data-theme='light'] .theme-icon-light { display: none; }
1156
fc1817aClaude1157 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1158 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1159
958d26aClaude1160 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1161
1162 body {
1163 font-family: var(--font-sans);
1164 background: var(--bg);
1165 color: var(--text);
cf9178bTest User1166 font-size: 15px;
2ce1d0bClaude1167 line-height: 1.55;
958d26aClaude1168 letter-spacing: -0.011em;
fc1817aClaude1169 min-height: 100vh;
1170 display: flex;
1171 flex-direction: column;
958d26aClaude1172 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1173 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1174 and disables automatic synthesis of bold/italic which can produce
1175 muddier rendering on certain weights. */
1176 -webkit-font-smoothing: antialiased;
1177 -moz-osx-font-smoothing: grayscale;
1178 font-synthesis: none;
1179 }
1180 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1181 line-height inversely with size so display text doesn't feel airy. */
1182 h1, h2, h3, h4, h5, h6 {
1183 font-family: var(--font-display);
1184 color: var(--text-strong);
1185 letter-spacing: -0.022em;
1186 line-height: 1.18;
1187 font-weight: 650;
1188 margin-top: 0;
1189 }
1190 h1 { font-size: 28px; letter-spacing: -0.028em; }
1191 h2 { font-size: 22px; }
1192 h3 { font-size: 18px; letter-spacing: -0.018em; }
1193 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1194 /* Link refinement — underline only on hover/focus, never by default
1195 on internal nav. Prevents the "blue underline soup" look. */
1196 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1197 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1198 a:focus-visible {
1199 outline: none;
1200 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1201 border-radius: 3px;
fc1817aClaude1202 }
1203
958d26aClaude1204 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1205 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1206 body::before {
1207 content: '';
1208 position: fixed;
1209 inset: 0;
1210 pointer-events: none;
958d26aClaude1211 z-index: -2;
2ce1d0bClaude1212 background:
958d26aClaude1213 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1214 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1215 }
1216 body::after {
1217 content: '';
1218 position: fixed;
1219 inset: 0;
1220 pointer-events: none;
1221 z-index: -1;
1222 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1223 background-size: 28px 28px;
1224 background-position: 0 0;
1225 opacity: 0.55;
1226 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1227 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1228 }
1229 :root[data-theme='light'] body::before { opacity: 0.55; }
1230 :root[data-theme='light'] body::after {
1231 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1232 opacity: 0.4;
fc1817aClaude1233 }
2ce1d0bClaude1234
1235 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1236 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1237
958d26aClaude1238 /* Heading scale — confident, editorial, tight tracking */
1239 h1, h2, h3, h4, h5, h6 {
1240 font-family: var(--font-display);
2ce1d0bClaude1241 font-weight: 600;
958d26aClaude1242 letter-spacing: -0.022em;
1243 line-height: 1.18;
1244 color: var(--text-strong);
1245 }
1246 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1247 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1248 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1249 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1250 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1251
1252 /* Editorial display heading utility — used by landing + marketing pages */
1253 .display {
1254 font-family: var(--font-display);
1255 font-size: clamp(40px, 7.5vw, 96px);
1256 line-height: 0.98;
1257 letter-spacing: -0.04em;
1258 font-weight: 600;
1259 color: var(--text-strong);
2ce1d0bClaude1260 }
fc1817aClaude1261
958d26aClaude1262 /* Eyebrow — uppercase mono label that sits above section headings */
1263 .eyebrow {
1264 display: inline-flex;
1265 align-items: center;
1266 gap: 8px;
1267 font-family: var(--font-mono);
1268 font-size: 11px;
1269 font-weight: 500;
1270 letter-spacing: 0.14em;
1271 text-transform: uppercase;
1272 color: var(--accent);
1273 margin-bottom: var(--s-3);
1274 }
1275 .eyebrow::before {
1276 content: '';
1277 width: 18px;
1278 height: 1px;
1279 background: currentColor;
1280 opacity: 0.6;
1281 }
1282
1283 /* Section header — paired eyebrow + title + lede */
1284 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1285 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1286 .section-header h2 {
1287 font-size: clamp(28px, 4vw, 44px);
1288 line-height: 1.05;
1289 letter-spacing: -0.028em;
1290 margin-bottom: var(--s-3);
1291 }
1292 .section-header p {
1293 color: var(--text-muted);
1294 font-size: var(--t-md);
1295 line-height: 1.6;
1296 max-width: 580px;
1297 margin: 0 auto;
1298 }
1299 .section-header.left p { margin-left: 0; }
fc1817aClaude1300
958d26aClaude1301 code, kbd, samp {
2ce1d0bClaude1302 font-family: var(--font-mono);
958d26aClaude1303 font-feature-settings: var(--mono-feat);
1304 }
1305 code {
1306 font-size: 0.9em;
2ce1d0bClaude1307 background: var(--bg-tertiary);
958d26aClaude1308 border: 1px solid var(--border-subtle);
2ce1d0bClaude1309 padding: 1px 6px;
1310 border-radius: var(--r-sm);
1311 color: var(--text);
1312 }
958d26aClaude1313 kbd, .kbd {
1314 display: inline-flex;
1315 align-items: center;
1316 padding: 1px 6px;
1317 font-family: var(--font-mono);
1318 font-size: 11px;
1319 background: var(--bg-elevated);
1320 border: 1px solid var(--border);
1321 border-bottom-width: 2px;
1322 border-radius: 4px;
1323 color: var(--text);
1324 line-height: 1.5;
1325 vertical-align: middle;
1326 }
2ce1d0bClaude1327
958d26aClaude1328 /* Mono utility for technical chrome (paths, IDs, dates) */
1329 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1330 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1331
1332 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1333 .prelaunch-banner {
958d26aClaude1334 position: relative;
2ce1d0bClaude1335 background:
958d26aClaude1336 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1337 var(--bg);
958d26aClaude1338 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1339 color: var(--yellow);
958d26aClaude1340 padding: 7px 24px;
1341 font-family: var(--font-mono);
1342 font-size: 11px;
4a52a98Claude1343 font-weight: 500;
1344 text-align: center;
2ce1d0bClaude1345 line-height: 1.5;
958d26aClaude1346 letter-spacing: 0.04em;
1347 text-transform: uppercase;
1348 }
1349 .prelaunch-banner::before {
1350 content: '◆';
1351 margin-right: 8px;
1352 font-size: 9px;
1353 opacity: 0.7;
1354 vertical-align: 1px;
4a52a98Claude1355 }
1356
cd4f63bTest User1357 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1358 visitors don't miss the "save your work" CTA, but slim enough to
1359 not feel like a modal. */
1360 .playground-banner {
1361 position: relative;
1362 display: flex;
1363 align-items: center;
1364 justify-content: center;
1365 gap: 8px;
1366 background:
1367 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1368 var(--bg);
1369 border-bottom: 1px solid rgba(251,191,36,0.45);
1370 color: var(--yellow, #fbbf24);
1371 padding: 8px 40px 8px 24px;
1372 font-size: 13px;
1373 font-weight: 500;
1374 text-align: center;
1375 line-height: 1.4;
1376 }
1377 .playground-banner-icon { font-size: 14px; }
1378 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1379 .playground-banner-countdown { font-weight: 600; }
1380 .playground-banner-cta {
1381 margin-left: 4px;
1382 color: var(--yellow, #fbbf24);
1383 text-decoration: underline;
1384 font-weight: 600;
1385 }
1386 .playground-banner-cta:hover { opacity: 0.85; }
1387 .playground-banner-dismiss {
1388 position: absolute;
1389 top: 50%;
1390 right: 12px;
1391 transform: translateY(-50%);
1392 background: transparent;
1393 border: none;
1394 color: var(--text-muted, #8b949e);
1395 font-size: 18px;
1396 line-height: 1;
1397 cursor: pointer;
1398 padding: 0 4px;
1399 }
1400 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1401
958d26aClaude1402 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1403 header {
2ce1d0bClaude1404 position: sticky;
1405 top: 0;
1406 z-index: 100;
fc1817aClaude1407 border-bottom: 1px solid var(--border);
2ce1d0bClaude1408 padding: 0 24px;
1409 height: var(--header-h);
958d26aClaude1410 background: rgba(8,9,15,0.72);
1411 backdrop-filter: saturate(180%) blur(18px);
1412 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1413 }
958d26aClaude1414 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1415
06d5ffeClaude1416 header nav {
1417 display: flex;
1418 align-items: center;
958d26aClaude1419 gap: 18px;
eed4684Claude1420 max-width: 1920px;
06d5ffeClaude1421 margin: 0 auto;
2ce1d0bClaude1422 height: 100%;
1423 }
1424 .logo {
958d26aClaude1425 font-family: var(--font-display);
1426 font-size: 16px;
2ce1d0bClaude1427 font-weight: 700;
958d26aClaude1428 letter-spacing: -0.025em;
1429 color: var(--text-strong);
2ce1d0bClaude1430 display: inline-flex;
1431 align-items: center;
958d26aClaude1432 gap: 9px;
1433 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1434 }
2ce1d0bClaude1435 .logo::before {
1436 content: '';
958d26aClaude1437 width: 20px; height: 20px;
1438 border-radius: 6px;
2ce1d0bClaude1439 background: var(--accent-gradient);
958d26aClaude1440 box-shadow:
1441 inset 0 1px 0 rgba(255,255,255,0.25),
1442 0 0 0 1px rgba(140,109,255,0.45),
1443 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1444 flex-shrink: 0;
958d26aClaude1445 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1446 }
1447 .logo:hover { text-decoration: none; color: var(--text-strong); }
1448 .logo:hover::before {
1449 transform: rotate(8deg) scale(1.05);
1450 box-shadow:
1451 inset 0 1px 0 rgba(255,255,255,0.30),
1452 0 0 0 1px rgba(140,109,255,0.55),
1453 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1454 }
fc1817aClaude1455
2ce1d0bClaude1456 .nav-search {
1457 flex: 1;
958d26aClaude1458 max-width: 360px;
1459 margin: 0 4px 0 8px;
1460 position: relative;
2ce1d0bClaude1461 }
1462 .nav-search input {
1463 width: 100%;
958d26aClaude1464 padding: 7px 12px 7px 32px;
2ce1d0bClaude1465 background: var(--bg-tertiary);
1466 border: 1px solid var(--border);
1467 border-radius: var(--r-sm);
1468 color: var(--text);
1469 font-family: var(--font-sans);
1470 font-size: var(--t-sm);
958d26aClaude1471 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1472 }
1473 .nav-search::before {
1474 content: '';
1475 position: absolute;
1476 left: 11px; top: 50%;
1477 transform: translateY(-50%);
1478 width: 12px; height: 12px;
1479 border: 1.5px solid var(--text-faint);
1480 border-radius: 50%;
1481 pointer-events: none;
1482 }
1483 .nav-search::after {
1484 content: '';
1485 position: absolute;
1486 left: 19px; top: calc(50% + 4px);
1487 width: 5px; height: 1.5px;
1488 background: var(--text-faint);
1489 transform: rotate(45deg);
1490 pointer-events: none;
2ce1d0bClaude1491 }
1492 .nav-search input::placeholder { color: var(--text-faint); }
1493 .nav-search input:focus {
1494 outline: none;
1495 background: var(--bg-secondary);
958d26aClaude1496 border-color: var(--border-focus);
1497 box-shadow: var(--ring);
2ce1d0bClaude1498 }
06d5ffeClaude1499
958d26aClaude1500 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1501
1502 /* Block N3 — site-admin deploy status pill */
1503 .nav-deploy-pill {
1504 display: inline-flex;
1505 align-items: center;
1506 gap: 6px;
1507 padding: 4px 10px;
1508 margin: 0 6px 0 0;
1509 border-radius: 9999px;
1510 font-size: 11px;
1511 font-weight: 600;
1512 line-height: 1;
1513 color: var(--text-strong);
1514 background: var(--bg-elevated);
1515 border: 1px solid var(--border);
1516 text-decoration: none;
1517 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1518 }
1519 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1520 .nav-deploy-pill .deploy-pill-dot {
1521 display: inline-block;
1522 width: 8px; height: 8px;
1523 border-radius: 50%;
1524 background: #6b7280;
1525 }
1526 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1527 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1528 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1529 .deploy-pill-progress .deploy-pill-dot {
1530 background: #fbbf24;
1531 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1532 animation: deployPillPulse 1.2s ease-in-out infinite;
1533 }
1534 @keyframes deployPillPulse {
1535 0%, 100% { opacity: 1; transform: scale(1); }
1536 50% { opacity: 0.45; transform: scale(0.8); }
1537 }
1538 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1539
c6018a5Claude1540 /* ── AI dropdown (nav consolidation) ── */
1541 .nav-ai-dropdown {
1542 position: relative;
1543 display: inline-flex;
1544 align-items: center;
1545 }
1546 .nav-ai-trigger {
1547 background: transparent;
1548 border: 0;
1549 font: inherit;
1550 cursor: pointer;
1551 color: var(--text-muted);
1552 font-size: var(--t-sm);
1553 font-weight: 500;
1554 padding: 7px 11px;
1555 border-radius: var(--r-sm);
1556 line-height: 1.2;
1557 }
1558 .nav-ai-trigger:hover {
1559 color: var(--text-strong);
1560 background: var(--bg-hover);
1561 }
1562 .nav-ai-menu {
1563 position: absolute;
1564 top: calc(100% + 6px);
1565 right: 0;
1566 min-width: 220px;
1567 background: var(--bg-secondary);
1568 border: 1px solid var(--border-strong);
1569 border-radius: 10px;
1570 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1571 padding: 6px;
1572 display: none;
1573 z-index: var(--z-overlay, 100);
1574 }
1575 .nav-ai-dropdown:hover .nav-ai-menu,
1576 .nav-ai-dropdown.is-open .nav-ai-menu,
1577 .nav-ai-dropdown:focus-within .nav-ai-menu {
1578 display: block;
1579 }
1580 .nav-ai-item {
1581 display: flex;
1582 flex-direction: column;
1583 gap: 1px;
1584 padding: 8px 10px;
1585 border-radius: 6px;
1586 color: var(--text);
1587 text-decoration: none;
1588 transition: background var(--t-fast) var(--ease);
1589 }
1590 .nav-ai-item:hover {
1591 background: var(--bg-hover);
1592 text-decoration: none;
1593 color: var(--text-strong);
1594 }
1595 .nav-ai-item-label {
1596 font-size: var(--t-sm);
1597 font-weight: 600;
1598 color: var(--text-strong);
1599 }
1600 .nav-ai-item-sub {
1601 font-size: 11.5px;
1602 color: var(--text-muted);
1603 }
1604
2ce1d0bClaude1605 .nav-link {
958d26aClaude1606 position: relative;
2ce1d0bClaude1607 color: var(--text-muted);
1608 font-size: var(--t-sm);
1609 font-weight: 500;
958d26aClaude1610 padding: 7px 11px;
2ce1d0bClaude1611 border-radius: var(--r-sm);
958d26aClaude1612 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1613 }
1614 .nav-link:hover {
958d26aClaude1615 color: var(--text-strong);
2ce1d0bClaude1616 background: var(--bg-hover);
1617 text-decoration: none;
1618 }
958d26aClaude1619 .nav-link.active { color: var(--text-strong); }
1620 .nav-link.active::after {
1621 content: '';
1622 position: absolute;
1623 left: 11px; right: 11px;
1624 bottom: -1px;
1625 height: 2px;
1626 background: var(--accent-gradient);
1627 border-radius: 2px;
1628 }
adf5e18Claude1629 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1630 so it reads as an action affordance rather than a passive link. */
1631 .nav-migrate {
1632 color: var(--accent);
1633 font-weight: 600;
1634 border: 1px solid rgba(140,109,255,0.22);
1635 background: rgba(140,109,255,0.07);
1636 }
1637 .nav-migrate:hover {
1638 color: var(--accent-hover);
1639 background: rgba(140,109,255,0.13);
1640 border-color: rgba(140,109,255,0.40);
1641 }
1642 @media (max-width: 780px) { .nav-migrate { display: none; } }
1643
2ce1d0bClaude1644 .nav-user {
958d26aClaude1645 color: var(--text-strong);
2ce1d0bClaude1646 font-weight: 600;
1647 font-size: var(--t-sm);
1648 padding: 6px 10px;
1649 border-radius: var(--r-sm);
958d26aClaude1650 margin-left: 6px;
2ce1d0bClaude1651 transition: background var(--t-fast) var(--ease);
1652 }
958d26aClaude1653 .nav-user::before {
1654 content: '';
1655 display: inline-block;
1656 width: 8px; height: 8px;
1657 background: var(--green);
1658 border-radius: 50%;
1659 margin-right: 7px;
1660 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1661 vertical-align: 1px;
1662 }
2ce1d0bClaude1663 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1664
f5b9ef5Claude1665 /* ── Inbox bell button ── */
1666 .nav-inbox-btn {
1667 position: relative;
1668 display: inline-flex;
1669 align-items: center;
1670 justify-content: center;
1671 width: 34px;
1672 height: 34px;
1673 border-radius: var(--r-sm);
1674 color: var(--text-muted);
1675 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1676 flex-shrink: 0;
1677 }
1678 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1679 .nav-inbox-badge {
1680 position: absolute;
1681 top: 3px; right: 3px;
1682 min-width: 15px; height: 15px;
1683 padding: 0 4px;
1684 font-size: 9.5px;
1685 font-weight: 700;
1686 line-height: 15px;
1687 color: #fff;
1688 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1689 border-radius: 9999px;
1690 text-align: center;
1691 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1692 font-variant-numeric: tabular-nums;
1693 }
1694
1695 /* ── User dropdown ── */
1696 .nav-user-dropdown { position: relative; }
1697 .nav-user-trigger {
1698 display: inline-flex;
1699 align-items: center;
1700 gap: 7px;
1701 padding: 5px 9px 5px 5px;
1702 border-radius: var(--r-sm);
1703 border: 1px solid transparent;
1704 background: transparent;
1705 color: var(--text);
1706 font-family: var(--font-sans);
1707 font-size: var(--t-sm);
1708 font-weight: 500;
1709 cursor: pointer;
1710 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1711 }
1712 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1713 .nav-user-avatar {
1714 width: 24px; height: 24px;
1715 border-radius: 50%;
1716 background: var(--accent-gradient);
1717 color: #fff;
1718 font-size: 11px;
1719 font-weight: 700;
1720 display: inline-flex;
1721 align-items: center;
1722 justify-content: center;
1723 flex-shrink: 0;
1724 box-shadow: 0 0 0 2px var(--border);
1725 }
1726 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1727 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1728 .nav-user-menu {
1729 display: none;
1730 position: absolute;
1731 top: calc(100% + 6px);
1732 right: 0;
1733 min-width: 220px;
1734 background: var(--bg-elevated);
1735 border: 1px solid var(--border-strong);
1736 border-radius: var(--r-lg);
1737 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1738 padding: 6px;
1739 z-index: 200;
1740 animation: navMenuIn 140ms var(--ease) both;
1741 }
1742 .nav-user-menu.is-open { display: block; }
1743 .nav-user-menu-header {
1744 padding: 8px 10px 10px;
1745 display: flex;
1746 flex-direction: column;
1747 gap: 2px;
1748 }
1749 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1750 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1751 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1752 .nav-user-item {
1753 display: block;
1754 padding: 7px 10px;
1755 border-radius: 6px;
1756 font-size: var(--t-sm);
1757 color: var(--text);
1758 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1759 white-space: nowrap;
1760 }
1761 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1762 .nav-user-item--danger { color: var(--red); }
1763 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1764
1765 @keyframes navMenuIn {
1766 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1767 to { opacity: 1; transform: translateY(0) scale(1); }
1768 }
1769
2ce1d0bClaude1770 main {
eed4684Claude1771 max-width: 1920px;
2ce1d0bClaude1772 margin: 0 auto;
958d26aClaude1773 padding: 36px 24px 80px;
2ce1d0bClaude1774 flex: 1;
1775 width: 100%;
ed6e438Claude1776 /* 2026 polish — subtle entrance animation on every page load.
1777 Content fades up 4px over 360ms, giving the site that "alive"
1778 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1779 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1780 }
1781 @keyframes gxMainEnter {
1782 from { opacity: 0; transform: translateY(4px); }
1783 to { opacity: 1; transform: translateY(0); }
1784 }
1785 @media (prefers-reduced-motion: reduce) {
1786 main { animation: none; }
1787 }
1788 /* 2026 polish — accent focus ring across all focusable elements.
1789 The default browser ring is utilitarian; this is the same width
1790 but tinted to the brand accent so keyboard navigation feels
1791 intentional, not jarring. :focus-visible only — mouse users
1792 never see it. */
1793 :focus-visible {
1794 outline: none;
1795 }
1796 a:focus-visible,
1797 button:focus-visible,
1798 input:focus-visible,
1799 select:focus-visible,
1800 textarea:focus-visible,
1801 [tabindex]:focus-visible {
1802 outline: 2px solid rgba(140, 109, 255, 0.55);
1803 outline-offset: 2px;
1804 border-radius: 4px;
2ce1d0bClaude1805 }
fc1817aClaude1806
958d26aClaude1807 /* Editorial footer: link grid + tagline row */
fc1817aClaude1808 footer {
1809 border-top: 1px solid var(--border);
958d26aClaude1810 padding: 56px 24px 40px;
fc1817aClaude1811 color: var(--text-muted);
958d26aClaude1812 font-size: var(--t-sm);
1813 background:
1814 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1815 var(--bg);
1816 }
1817 footer .footer-inner {
eed4684Claude1818 max-width: 1920px;
958d26aClaude1819 margin: 0 auto;
1820 display: grid;
1821 grid-template-columns: 1fr auto;
1822 gap: 48px;
1823 align-items: start;
1824 }
1825 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1826 footer .footer-tag {
1827 color: var(--text-muted);
1828 font-size: var(--t-sm);
1829 max-width: 320px;
1830 line-height: 1.55;
1831 }
1832 footer .footer-links {
1833 display: grid;
1834 grid-template-columns: repeat(3, minmax(120px, auto));
1835 gap: 0 56px;
1836 }
1837 footer .footer-col-title {
1838 font-family: var(--font-mono);
1839 font-size: 11px;
1840 text-transform: uppercase;
1841 letter-spacing: 0.14em;
1842 color: var(--text-faint);
1843 margin-bottom: var(--s-3);
1844 }
1845 footer .footer-col a {
1846 display: block;
1847 color: var(--text-muted);
1848 font-size: var(--t-sm);
1849 padding: 5px 0;
1850 transition: color var(--t-fast) var(--ease);
1851 }
1852 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1853 footer .footer-bottom {
eed4684Claude1854 max-width: 1920px;
958d26aClaude1855 margin: 40px auto 0;
1856 padding-top: 24px;
1857 border-top: 1px solid var(--border-subtle);
1858 display: flex;
1859 justify-content: space-between;
1860 align-items: center;
2ce1d0bClaude1861 color: var(--text-faint);
1862 font-size: var(--t-xs);
958d26aClaude1863 font-family: var(--font-mono);
1864 letter-spacing: 0.02em;
1865 }
1866 footer .footer-bottom a { color: var(--text-faint); }
1867 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1868 footer .footer-build {
1869 display: inline-flex;
1870 align-items: center;
1871 gap: 6px;
1872 color: var(--text-faint);
1873 font-family: var(--font-mono);
1874 font-size: 11px;
1875 cursor: help;
1876 }
1877 footer .footer-build-dot {
1878 width: 6px; height: 6px;
1879 border-radius: 50%;
1880 background: var(--green);
1881 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1882 animation: footer-build-pulse 2.4s ease-in-out infinite;
1883 }
1884 @keyframes footer-build-pulse {
1885 0%, 100% { opacity: 0.6; }
1886 50% { opacity: 1; }
1887 }
958d26aClaude1888 @media (max-width: 768px) {
1889 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1890 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1891 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1892 }
1893
2ce1d0bClaude1894 /* ============================================================ */
1895 /* Buttons */
1896 /* ============================================================ */
dc26881CC LABS App1897 /* ============================================================ */
1898 /* Buttons — Block U2 senior polish pass. */
1899 /* Rules: */
1900 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1901 /* · active presses back down to 0 (80ms — faster on press) */
1902 /* · focus-visible uses a soft box-shadow ring (no outline) */
1903 /* · primary gradient shifts position on hover for a slow */
1904 /* 600ms shimmer */
1905 /* · disabled never lifts and never animates */
1906 /* ============================================================ */
06d5ffeClaude1907 .btn {
1908 display: inline-flex;
1909 align-items: center;
2ce1d0bClaude1910 justify-content: center;
958d26aClaude1911 gap: 7px;
2ce1d0bClaude1912 padding: 7px 14px;
1913 border-radius: var(--r-sm);
958d26aClaude1914 font-family: var(--font-sans);
2ce1d0bClaude1915 font-size: var(--t-sm);
06d5ffeClaude1916 font-weight: 500;
1917 border: 1px solid var(--border);
2ce1d0bClaude1918 background: var(--bg-elevated);
06d5ffeClaude1919 color: var(--text);
1920 cursor: pointer;
1921 text-decoration: none;
958d26aClaude1922 line-height: 1.25;
1923 letter-spacing: -0.008em;
dc26881CC LABS App1924 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1925 Listed once on the base rule so :active can override only the
1926 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1927 transition:
dc26881CC LABS App1928 background 180ms ease,
1929 border-color 180ms ease,
1930 transform 180ms ease,
1931 box-shadow 180ms ease,
1932 color 180ms ease;
2ce1d0bClaude1933 user-select: none;
1934 white-space: nowrap;
958d26aClaude1935 position: relative;
06d5ffeClaude1936 }
2ce1d0bClaude1937 .btn:hover {
1938 background: var(--bg-surface);
1939 border-color: var(--border-strong);
958d26aClaude1940 color: var(--text-strong);
2ce1d0bClaude1941 text-decoration: none;
dc26881CC LABS App1942 /* U2 — universal hover lift + soft accent drop shadow. */
1943 transform: translateY(-1px);
1944 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1945 }
1946 .btn:active {
1947 transform: translateY(0);
1948 transition-duration: 80ms;
1949 }
1950 /* U2 — soft modern focus ring via box-shadow, not outline. */
1951 .btn:focus-visible {
1952 outline: none;
1953 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1954 }
1955
1956 .btn-primary {
1957 background: var(--accent-gradient);
dc26881CC LABS App1958 background-size: 200% 100%;
1959 background-position: 0% 50%;
2ce1d0bClaude1960 border-color: transparent;
1961 color: #fff;
1962 font-weight: 600;
958d26aClaude1963 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1964 box-shadow:
958d26aClaude1965 inset 0 1px 0 rgba(255,255,255,0.22),
1966 inset 0 -1px 0 rgba(0,0,0,0.10),
1967 0 1px 2px rgba(0,0,0,0.40),
1968 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1969 /* U2 — slower 600ms transition on background-position so the
1970 primary CTA shimmers when the cursor lands. */
1971 transition:
1972 background-position 600ms ease,
1973 transform 180ms ease,
1974 box-shadow 180ms ease,
1975 color 180ms ease;
06d5ffeClaude1976 }
958d26aClaude1977 .btn-primary::before {
1978 content: '';
1979 position: absolute;
1980 inset: 0;
1981 border-radius: inherit;
1982 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1983 opacity: 0;
1984 transition: opacity var(--t-fast) var(--ease);
1985 pointer-events: none;
2ce1d0bClaude1986 }
1987 .btn-primary:hover {
958d26aClaude1988 color: #fff;
2ce1d0bClaude1989 background: var(--accent-gradient);
dc26881CC LABS App1990 background-size: 200% 100%;
1991 background-position: 100% 50%;
958d26aClaude1992 border-color: transparent;
dc26881CC LABS App1993 transform: translateY(-1px);
2ce1d0bClaude1994 box-shadow:
958d26aClaude1995 inset 0 1px 0 rgba(255,255,255,0.30),
1996 inset 0 -1px 0 rgba(0,0,0,0.10),
1997 0 6px 18px -4px rgba(140,109,255,0.45),
1998 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1999 }
958d26aClaude2000 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App2001 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2002 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2003 .btn-primary:focus-visible {
2004 box-shadow:
2005 inset 0 1px 0 rgba(255,255,255,0.22),
2006 0 0 0 3px rgba(140,109,255,0.35);
2007 }
2ce1d0bClaude2008
2009 .btn-danger {
2010 background: transparent;
958d26aClaude2011 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2012 color: var(--red);
2013 }
2014 .btn-danger:hover {
958d26aClaude2015 background: rgba(248,113,113,0.08);
2ce1d0bClaude2016 border-color: var(--red);
958d26aClaude2017 color: var(--red);
dc26881CC LABS App2018 transform: translateY(-1px);
2019 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2020 }
dc26881CC LABS App2021 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2022
2023 .btn-ghost {
2024 background: transparent;
2025 border-color: transparent;
2026 color: var(--text-muted);
2027 }
2028 .btn-ghost:hover {
2029 background: var(--bg-hover);
958d26aClaude2030 color: var(--text-strong);
2ce1d0bClaude2031 border-color: var(--border);
dc26881CC LABS App2032 transform: translateY(-1px);
2033 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2034 }
2035
958d26aClaude2036 .btn-secondary {
2037 background: var(--bg-elevated);
2038 border-color: var(--border-strong);
2039 color: var(--text-strong);
2040 }
2041 .btn-secondary:hover {
2042 background: var(--bg-surface);
2043 border-color: var(--border-strong);
dc26881CC LABS App2044 transform: translateY(-1px);
2045 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2046 }
2047
2048 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2049 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2050 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2051 .btn-block { width: 100%; }
2ce1d0bClaude2052
dc26881CC LABS App2053 /* U2 — disabled never lifts, never shimmers, never glows. */
2054 .btn:disabled,
2055 .btn[aria-disabled='true'],
2056 .btn:disabled:hover,
2057 .btn[aria-disabled='true']:hover {
2058 opacity: 0.5;
2ce1d0bClaude2059 cursor: not-allowed;
2060 pointer-events: none;
dc26881CC LABS App2061 transform: none;
2062 box-shadow: none;
2063 }
2064 @media (prefers-reduced-motion: reduce) {
2065 .btn,
2066 .btn:hover,
2067 .btn:active,
2068 .btn-primary,
2069 .btn-primary:hover {
2070 transform: none;
2071 transition: background-color 80ms linear, color 80ms linear;
2072 }
2ce1d0bClaude2073 }
2074
2075 /* ============================================================ */
2076 /* Forms */
2077 /* ============================================================ */
2078 .form-group { margin-bottom: 20px; }
2079 .form-group label {
2080 display: block;
2081 font-size: var(--t-sm);
2082 font-weight: 500;
2083 margin-bottom: 6px;
2084 color: var(--text);
2085 letter-spacing: -0.005em;
2086 }
2087 .form-group input,
2088 .form-group textarea,
2089 .form-group select,
2090 input[type='text'], input[type='email'], input[type='password'],
2091 input[type='url'], input[type='search'], input[type='number'],
2092 textarea, select {
06d5ffeClaude2093 width: 100%;
2ce1d0bClaude2094 padding: 9px 12px;
2095 background: var(--bg-secondary);
06d5ffeClaude2096 border: 1px solid var(--border);
2ce1d0bClaude2097 border-radius: var(--r-sm);
06d5ffeClaude2098 color: var(--text);
2ce1d0bClaude2099 font-size: var(--t-sm);
06d5ffeClaude2100 font-family: var(--font-sans);
2ce1d0bClaude2101 transition:
2102 border-color var(--t-fast) var(--ease),
2103 background var(--t-fast) var(--ease),
2104 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2105 }
2ce1d0bClaude2106 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2107 color: var(--text-faint);
06d5ffeClaude2108 }
2ce1d0bClaude2109 .form-group input:hover, textarea:hover, select:hover,
2110 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2111 border-color: var(--border-strong);
2112 }
2113 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2114 input:focus, textarea:focus, select:focus {
06d5ffeClaude2115 outline: none;
2ce1d0bClaude2116 background: var(--bg);
2117 border-color: var(--border-focus);
2118 box-shadow: var(--ring);
06d5ffeClaude2119 }
2ce1d0bClaude2120 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2121 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2122
2ce1d0bClaude2123 /* ============================================================ */
2124 /* Auth (register / login / verify) */
2125 /* ============================================================ */
2126 .auth-container {
98f45b4Claude2127 /* 2026 polish — wider, more generous, with a subtle accent-glow
2128 border and gradient top-edge so it reads as a premium product
2129 gateway, not a stock form. The 480px width feels intentional
2130 (not cramped, not endless). */
2131 max-width: 480px;
2132 margin: 72px auto;
2133 padding: 40px 40px 36px;
2ce1d0bClaude2134 background: var(--bg-elevated);
2135 border: 1px solid var(--border);
98f45b4Claude2136 border-radius: 16px;
2137 box-shadow:
2138 var(--elev-2),
2139 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2140 position: relative;
2141 overflow: hidden;
2142 }
2143 .auth-container::before {
2144 /* Hairline gradient accent on the top edge — signals 'AI-native'
2145 without shouting. Pointer-events disabled so it never interferes
2146 with form interactions. */
2147 content: '';
2148 position: absolute;
2149 top: 0;
2150 left: 0;
2151 right: 0;
2152 height: 2px;
2153 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2154 opacity: 0.7;
2155 pointer-events: none;
2ce1d0bClaude2156 }
2157 .auth-container h2 {
98f45b4Claude2158 margin: 0 0 8px;
2159 font-size: 28px;
2160 font-weight: 700;
2161 font-family: var(--font-display);
2162 letter-spacing: -0.025em;
2163 color: var(--text-strong);
2164 line-height: 1.15;
2165 }
2166 .auth-container .auth-subtitle {
2167 color: var(--text-muted);
2168 font-size: 14.5px;
2169 line-height: 1.5;
2170 margin: 0 0 24px;
2ce1d0bClaude2171 }
2172 .auth-container > p {
2173 color: var(--text-muted);
2174 font-size: var(--t-sm);
2175 margin-bottom: 24px;
2176 }
98f45b4Claude2177 .auth-container .btn-primary {
2178 width: 100%;
2179 padding: 12px 16px;
2180 font-size: 15px;
2181 font-weight: 600;
2182 margin-top: 4px;
2183 }
582cdacClaude2184
2185 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2186 with a brand-coloured logo on the left and a label centred-trailing.
2187 Hover lifts 1px with a subtle shadow — matches the rest of the
2188 button system but reads as a brand-affiliated action, not a brand-
2189 coloured primary CTA. */
2190 .auth-container .oauth-btn {
2191 display: flex;
2192 align-items: center;
2193 justify-content: center;
2194 gap: 10px;
2195 width: 100%;
2196 padding: 11px 16px;
2197 background: var(--bg-surface, var(--bg-elevated));
2198 border: 1px solid var(--border);
2199 border-radius: var(--r-md, 8px);
2200 color: var(--text-strong);
2201 font-family: var(--font-sans);
2202 font-size: 14.5px;
2203 font-weight: 500;
2204 text-decoration: none;
2205 transition:
2206 transform var(--t-base, 180ms) var(--ease, ease),
2207 box-shadow var(--t-base, 180ms) var(--ease, ease),
2208 background var(--t-fast, 120ms) var(--ease, ease),
2209 border-color var(--t-fast, 120ms) var(--ease, ease);
2210 }
2211 .auth-container .oauth-btn:hover {
2212 transform: translateY(-1px);
2213 background: var(--bg-hover);
2214 border-color: var(--text-muted);
2215 color: var(--text-strong);
2216 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2217 text-decoration: none;
2218 }
2219 .auth-container .oauth-btn:focus-visible {
2220 outline: 2px solid rgba(140, 109, 255, 0.55);
2221 outline-offset: 2px;
2222 }
2223 .auth-container .oauth-btn .oauth-icon {
2224 flex-shrink: 0;
2225 }
2226 /* GitHub icon adopts the text colour so it reads in both themes. */
2227 .auth-container .oauth-github .oauth-icon {
2228 color: var(--text-strong);
2229 }
2230 /* Google logo uses the official 4-colour treatment via inline SVG fill
2231 attributes — nothing to override here. */
2232 /* "or" divider between the password form and provider buttons */
2233 .auth-container .auth-divider {
2234 display: flex;
2235 align-items: center;
2236 gap: 12px;
2237 margin: 20px 0 12px;
2238 color: var(--text-faint);
2239 font-size: 12px;
2240 letter-spacing: 0.08em;
2241 text-transform: uppercase;
2242 }
2243 .auth-container .auth-divider::before,
2244 .auth-container .auth-divider::after {
2245 content: '';
2246 flex: 1;
2247 height: 1px;
2248 background: var(--border);
2249 }
06d5ffeClaude2250 .auth-error {
958d26aClaude2251 background: rgba(248,113,113,0.08);
2252 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2253 color: var(--red);
2ce1d0bClaude2254 padding: 10px 14px;
2255 border-radius: var(--r-sm);
06d5ffeClaude2256 margin-bottom: 16px;
2ce1d0bClaude2257 font-size: var(--t-sm);
06d5ffeClaude2258 }
2259 .auth-success {
958d26aClaude2260 background: rgba(52,211,153,0.08);
2261 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2262 color: var(--green);
2ce1d0bClaude2263 padding: 10px 14px;
2264 border-radius: var(--r-sm);
06d5ffeClaude2265 margin-bottom: 16px;
2ce1d0bClaude2266 font-size: var(--t-sm);
2267 }
2268 .auth-switch {
2269 margin-top: 20px;
2270 font-size: var(--t-sm);
2271 color: var(--text-muted);
2272 text-align: center;
2273 }
2274 .banner {
2275 background: var(--accent-gradient-faint);
958d26aClaude2276 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2277 color: var(--text);
2278 padding: 10px 14px;
2279 border-radius: var(--r-sm);
2280 font-size: var(--t-sm);
06d5ffeClaude2281 }
2282
2ce1d0bClaude2283 /* ============================================================ */
2284 /* Settings */
2285 /* ============================================================ */
2286 .settings-container { max-width: 720px; }
2287 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2288 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2289 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2290 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2291 .ssh-keys-list { margin-bottom: 24px; }
2292 .ssh-key-item {
2293 display: flex;
2294 justify-content: space-between;
2295 align-items: center;
2ce1d0bClaude2296 padding: 14px 16px;
06d5ffeClaude2297 border: 1px solid var(--border);
2ce1d0bClaude2298 border-radius: var(--r-md);
06d5ffeClaude2299 margin-bottom: 8px;
2ce1d0bClaude2300 background: var(--bg-elevated);
2301 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2302 }
2ce1d0bClaude2303 .ssh-key-item:hover { border-color: var(--border-strong); }
2304 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2305 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2306
2ce1d0bClaude2307 /* ============================================================ */
2308 /* Repo header + nav */
2309 /* ============================================================ */
fc1817aClaude2310 .repo-header {
2311 display: flex;
2312 align-items: center;
debcf27Claude2313 gap: 12px;
2314 margin-bottom: 22px;
2315 }
2316 .repo-header-title {
2317 display: flex;
2318 align-items: center;
2319 gap: 10px;
2320 font-family: var(--font-display);
2321 font-size: 24px;
2322 letter-spacing: -0.025em;
2323 flex-wrap: wrap;
2324 }
2325 .repo-header .owner {
2326 color: var(--text-muted);
2327 font-weight: 500;
2328 transition: color var(--t-fast) var(--ease);
2329 }
2330 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2331 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2332 .repo-header .name {
2333 color: var(--text-strong);
2334 font-weight: 700;
2335 letter-spacing: -0.028em;
fc1817aClaude2336 }
2ce1d0bClaude2337 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2338 .repo-header-fork {
2339 font-family: var(--font-mono);
2340 font-size: 11px;
2341 color: var(--text-muted);
2342 margin-top: 4px;
2343 letter-spacing: 0.01em;
2344 }
2345 .repo-header-fork a { color: var(--text-muted); }
2346 .repo-header-fork a:hover { color: var(--accent); }
2347 .repo-header-pill {
2348 display: inline-flex;
2349 align-items: center;
2350 padding: 2px 10px;
2351 border-radius: var(--r-full);
2352 font-family: var(--font-mono);
2353 font-size: 10px;
2354 font-weight: 600;
2355 letter-spacing: 0.12em;
2356 text-transform: uppercase;
2357 line-height: 1.6;
2358 vertical-align: 4px;
2359 }
2360 .repo-header-pill-archived {
2361 background: rgba(251,191,36,0.10);
2362 color: var(--yellow);
2363 border: 1px solid rgba(251,191,36,0.30);
2364 }
2365 .repo-header-pill-template {
2366 background: var(--accent-gradient-faint);
2367 color: var(--accent);
2368 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2369 }
06d5ffeClaude2370 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2371
8c790e0Claude2372 /* Push Watch discoverability — live/recent indicator in the repo header */
2373 @keyframes pushWatchPulse {
2374 0%, 100% { opacity: 1; }
2375 50% { opacity: 0.3; }
2376 }
2377 .repo-header-live-badge {
2378 display: inline-flex;
2379 align-items: center;
2380 gap: 5px;
2381 padding: 2px 9px;
2382 border-radius: 999px;
2383 font-size: 12px;
2384 font-weight: 600;
2385 letter-spacing: 0.02em;
2386 text-decoration: none !important;
2387 vertical-align: 3px;
2388 transition: filter 140ms ease, opacity 140ms ease;
2389 }
2390 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2391 .repo-header-live-badge--live {
2392 background: rgba(218, 54, 51, 0.12);
2393 color: #f97171;
2394 border: 1px solid rgba(218, 54, 51, 0.35);
2395 }
2396 .repo-header-live-badge--live .repo-header-live-dot {
2397 animation: pushWatchPulse 1.2s ease-in-out infinite;
2398 display: inline-block;
2399 }
2400 .repo-header-live-badge--recent {
2401 background: rgba(140, 109, 255, 0.08);
2402 color: var(--text-muted);
2403 border: 1px solid rgba(140, 109, 255, 0.22);
2404 }
2405 .repo-header-live-badge--recent:hover { color: var(--accent); }
2406 @media (prefers-reduced-motion: reduce) {
2407 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2408 }
2409
fc1817aClaude2410 .repo-nav {
2411 display: flex;
debcf27Claude2412 gap: 1px;
fc1817aClaude2413 border-bottom: 1px solid var(--border);
debcf27Claude2414 margin-bottom: 28px;
2ce1d0bClaude2415 overflow-x: auto;
2416 scrollbar-width: thin;
fc1817aClaude2417 }
2ce1d0bClaude2418 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2419 .repo-nav a {
debcf27Claude2420 position: relative;
2421 padding: 11px 14px;
fc1817aClaude2422 color: var(--text-muted);
2423 border-bottom: 2px solid transparent;
2ce1d0bClaude2424 font-size: var(--t-sm);
2425 font-weight: 500;
2426 margin-bottom: -1px;
debcf27Claude2427 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2428 white-space: nowrap;
2429 }
debcf27Claude2430 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2431 .repo-nav a.active {
debcf27Claude2432 color: var(--text-strong);
2433 font-weight: 600;
2434 }
2435 .repo-nav a.active::after {
2436 content: '';
2437 position: absolute;
2438 left: 14px;
2439 right: 14px;
2440 bottom: -1px;
2441 height: 2px;
2442 background: var(--accent-gradient);
2443 border-radius: 2px;
2444 }
2445 /* AI links in the right-side cluster — sparkle accent */
2446 .repo-nav-ai {
2447 color: var(--accent) !important;
2448 font-weight: 500;
2449 }
2450 .repo-nav-ai:hover {
2451 color: var(--accent-hover) !important;
2452 background: var(--accent-gradient-faint) !important;
2453 }
2454 .repo-nav-ai.active {
2455 color: var(--accent-hover) !important;
2ce1d0bClaude2456 font-weight: 600;
fc1817aClaude2457 }
2458
2ce1d0bClaude2459 .breadcrumb {
2460 display: flex;
debcf27Claude2461 gap: 6px;
2ce1d0bClaude2462 align-items: center;
debcf27Claude2463 margin-bottom: 18px;
2ce1d0bClaude2464 color: var(--text-muted);
2465 font-size: var(--t-sm);
2466 font-family: var(--font-mono);
debcf27Claude2467 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2468 }
2469 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2470 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2471 .breadcrumb strong {
2472 color: var(--text-strong);
2473 font-weight: 600;
fc1817aClaude2474 }
2475
debcf27Claude2476 /* Page header — eyebrow + title + optional actions row.
2477 Use on dashboard, settings, admin, any "section landing" page. */
2478 .page-header {
2479 display: flex;
2480 align-items: flex-end;
2481 justify-content: space-between;
2482 gap: 16px;
2483 margin-bottom: 28px;
2484 padding-bottom: 20px;
2485 border-bottom: 1px solid var(--border-subtle);
2486 flex-wrap: wrap;
2487 }
2488 .page-header-text { flex: 1; min-width: 280px; }
2489 .page-header .eyebrow { margin-bottom: var(--s-2); }
2490 .page-header h1 {
2491 font-family: var(--font-display);
2492 font-size: clamp(24px, 3vw, 36px);
2493 line-height: 1.1;
2494 letter-spacing: -0.028em;
2495 margin-bottom: 6px;
2496 }
2497 .page-header p {
2498 color: var(--text-muted);
2499 font-size: var(--t-sm);
2500 line-height: 1.55;
2501 max-width: 640px;
2502 }
2503 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2504
2ce1d0bClaude2505 /* ============================================================ */
2506 /* File browser table */
2507 /* ============================================================ */
2508 .file-table {
2509 width: 100%;
2510 border: 1px solid var(--border);
2511 border-radius: var(--r-md);
2512 overflow: hidden;
2513 background: var(--bg-elevated);
debcf27Claude2514 border-collapse: collapse;
2ce1d0bClaude2515 }
debcf27Claude2516 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2517 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2518 .file-table td {
2519 padding: 9px 16px;
2520 font-size: var(--t-sm);
2521 font-family: var(--font-mono);
2522 font-feature-settings: var(--mono-feat);
2523 }
2ce1d0bClaude2524 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2525 .file-icon {
2526 width: 22px;
2527 color: var(--text-faint);
2528 font-size: 13px;
2529 text-align: center;
2530 }
2531 .file-name a {
2532 color: var(--text);
2533 font-weight: 500;
2534 transition: color var(--t-fast) var(--ease);
2535 }
2536 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2537
2ce1d0bClaude2538 /* ============================================================ */
2539 /* Blob view */
2540 /* ============================================================ */
fc1817aClaude2541 .blob-view {
2542 border: 1px solid var(--border);
2ce1d0bClaude2543 border-radius: var(--r-md);
fc1817aClaude2544 overflow: hidden;
2ce1d0bClaude2545 background: var(--bg-elevated);
fc1817aClaude2546 }
2547 .blob-header {
2548 background: var(--bg-secondary);
2ce1d0bClaude2549 padding: 10px 16px;
fc1817aClaude2550 border-bottom: 1px solid var(--border);
2ce1d0bClaude2551 font-size: var(--t-sm);
fc1817aClaude2552 color: var(--text-muted);
06d5ffeClaude2553 display: flex;
2554 justify-content: space-between;
2555 align-items: center;
fc1817aClaude2556 }
2557 .blob-code {
2558 overflow-x: auto;
2559 font-family: var(--font-mono);
2ce1d0bClaude2560 font-size: var(--t-sm);
2561 line-height: 1.65;
fc1817aClaude2562 }
2563 .blob-code table { width: 100%; border-collapse: collapse; }
2564 .blob-code .line-num {
2565 width: 1%;
2ce1d0bClaude2566 min-width: 56px;
2567 padding: 0 14px;
fc1817aClaude2568 text-align: right;
2ce1d0bClaude2569 color: var(--text-faint);
fc1817aClaude2570 user-select: none;
2571 white-space: nowrap;
2572 border-right: 1px solid var(--border);
2573 }
2ce1d0bClaude2574 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2575 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2576
2ce1d0bClaude2577 /* ============================================================ */
2578 /* Commits + diffs */
2579 /* ============================================================ */
2580 .commit-list {
2581 border: 1px solid var(--border);
2582 border-radius: var(--r-md);
2583 overflow: hidden;
2584 background: var(--bg-elevated);
2585 }
fc1817aClaude2586 .commit-item {
2587 display: flex;
2588 justify-content: space-between;
2589 align-items: center;
debcf27Claude2590 padding: 14px 18px;
2591 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2592 transition: background var(--t-fast) var(--ease);
fc1817aClaude2593 }
2594 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2595 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2596 .commit-message {
2597 font-size: var(--t-sm);
2598 font-weight: 500;
2599 line-height: 1.45;
2600 color: var(--text-strong);
2601 letter-spacing: -0.005em;
2602 }
2603 .commit-meta {
2604 font-family: var(--font-mono);
2605 font-size: 11px;
2606 color: var(--text-muted);
2607 margin-top: 5px;
2608 letter-spacing: 0.01em;
2609 }
fc1817aClaude2610 .commit-sha {
2611 font-family: var(--font-mono);
debcf27Claude2612 font-feature-settings: var(--mono-feat);
2613 font-size: 11px;
2614 padding: 4px 9px;
fc1817aClaude2615 background: var(--bg-tertiary);
2616 border: 1px solid var(--border);
2ce1d0bClaude2617 border-radius: var(--r-sm);
debcf27Claude2618 color: var(--accent);
2619 font-weight: 600;
2620 letter-spacing: 0.02em;
2ce1d0bClaude2621 transition: all var(--t-fast) var(--ease);
fc1817aClaude2622 }
debcf27Claude2623 .commit-sha:hover {
2624 border-color: rgba(140,109,255,0.40);
2625 background: var(--accent-gradient-faint);
2626 color: var(--accent-hover);
2627 text-decoration: none;
fc1817aClaude2628 }
2629
2630 .diff-view { margin-top: 16px; }
2631 .diff-file {
2632 border: 1px solid var(--border);
2ce1d0bClaude2633 border-radius: var(--r-md);
fc1817aClaude2634 margin-bottom: 16px;
2635 overflow: hidden;
2ce1d0bClaude2636 background: var(--bg-elevated);
fc1817aClaude2637 }
2638 .diff-file-header {
2639 background: var(--bg-secondary);
2ce1d0bClaude2640 padding: 10px 16px;
fc1817aClaude2641 border-bottom: 1px solid var(--border);
2642 font-family: var(--font-mono);
2ce1d0bClaude2643 font-size: var(--t-sm);
2644 font-weight: 500;
fc1817aClaude2645 }
2646 .diff-content {
2647 overflow-x: auto;
2648 font-family: var(--font-mono);
2ce1d0bClaude2649 font-size: var(--t-sm);
2650 line-height: 1.65;
fc1817aClaude2651 }
958d26aClaude2652 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2653 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2654 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2655 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2656
2657 .stat-add { color: var(--green); font-weight: 600; }
2658 .stat-del { color: var(--red); font-weight: 600; }
2659
2ce1d0bClaude2660 /* ============================================================ */
2661 /* Empty state */
2662 /* ============================================================ */
fc1817aClaude2663 .empty-state {
2664 text-align: center;
958d26aClaude2665 padding: 96px 24px;
fc1817aClaude2666 color: var(--text-muted);
2ce1d0bClaude2667 border: 1px dashed var(--border);
2668 border-radius: var(--r-lg);
958d26aClaude2669 background:
2670 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2671 var(--bg-elevated);
2672 position: relative;
2673 overflow: hidden;
2674 }
2675 .empty-state::before {
2676 content: '';
2677 position: absolute;
2678 inset: 0;
2679 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2680 background-size: 24px 24px;
2681 opacity: 0.5;
2682 pointer-events: none;
2683 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2684 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2685 }
2686 :root[data-theme='light'] .empty-state::before {
2687 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2688 }
958d26aClaude2689 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2690 .empty-state h2 {
958d26aClaude2691 font-size: var(--t-xl);
2ce1d0bClaude2692 margin-bottom: 8px;
958d26aClaude2693 color: var(--text-strong);
2694 letter-spacing: -0.022em;
2ce1d0bClaude2695 }
958d26aClaude2696 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2697 .empty-state pre {
2698 text-align: left;
2699 display: inline-block;
2700 background: var(--bg-secondary);
958d26aClaude2701 padding: 18px 24px;
2702 border-radius: var(--r-md);
fc1817aClaude2703 border: 1px solid var(--border);
2704 font-family: var(--font-mono);
958d26aClaude2705 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2706 font-size: var(--t-sm);
958d26aClaude2707 margin-top: 24px;
fc1817aClaude2708 line-height: 1.8;
2ce1d0bClaude2709 color: var(--text);
958d26aClaude2710 box-shadow: var(--elev-1);
fc1817aClaude2711 }
2712
2ce1d0bClaude2713 /* ============================================================ */
2714 /* Badges */
2715 /* ============================================================ */
fc1817aClaude2716 .badge {
2ce1d0bClaude2717 display: inline-flex;
2718 align-items: center;
2719 gap: 4px;
2720 padding: 2px 9px;
2721 border-radius: var(--r-full);
2722 font-size: var(--t-xs);
fc1817aClaude2723 font-weight: 500;
2724 background: var(--bg-tertiary);
2725 border: 1px solid var(--border);
2726 color: var(--text-muted);
2ce1d0bClaude2727 line-height: 1.5;
fc1817aClaude2728 }
2729
2ce1d0bClaude2730 /* ============================================================ */
2731 /* Branch dropdown */
2732 /* ============================================================ */
fc1817aClaude2733 .branch-selector {
2734 display: inline-flex;
2735 align-items: center;
2ce1d0bClaude2736 gap: 6px;
2737 padding: 6px 12px;
2738 background: var(--bg-elevated);
fc1817aClaude2739 border: 1px solid var(--border);
2ce1d0bClaude2740 border-radius: var(--r-sm);
2741 font-size: var(--t-sm);
fc1817aClaude2742 color: var(--text);
2743 margin-bottom: 12px;
2ce1d0bClaude2744 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2745 }
2ce1d0bClaude2746 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2747
06d5ffeClaude2748 .branch-dropdown {
2749 position: relative;
2750 display: inline-block;
2751 margin-bottom: 12px;
2752 }
2753 .branch-dropdown-content {
2754 display: none;
2755 position: absolute;
2ce1d0bClaude2756 top: calc(100% + 4px);
06d5ffeClaude2757 left: 0;
2758 z-index: 10;
2ce1d0bClaude2759 min-width: 220px;
2760 background: var(--bg-elevated);
2761 border: 1px solid var(--border-strong);
2762 border-radius: var(--r-md);
2763 overflow: hidden;
2764 box-shadow: var(--elev-3);
06d5ffeClaude2765 }
2766 .branch-dropdown:hover .branch-dropdown-content,
2767 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2768 .branch-dropdown-content a {
2769 display: block;
2ce1d0bClaude2770 padding: 9px 14px;
2771 font-size: var(--t-sm);
06d5ffeClaude2772 color: var(--text);
2773 border-bottom: 1px solid var(--border);
2ce1d0bClaude2774 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2775 }
2776 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2777 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2778 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2779
2ce1d0bClaude2780 /* ============================================================ */
2781 /* Card grid */
2782 /* ============================================================ */
2783 .card-grid {
2784 display: grid;
2785 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2786 gap: 16px;
2787 }
fc1817aClaude2788 .card {
2789 border: 1px solid var(--border);
2ce1d0bClaude2790 border-radius: var(--r-md);
958d26aClaude2791 padding: 20px;
2ce1d0bClaude2792 background: var(--bg-elevated);
2793 transition:
958d26aClaude2794 border-color var(--t-base) var(--ease),
2795 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2796 box-shadow var(--t-base) var(--ease);
2797 position: relative;
2798 overflow: hidden;
958d26aClaude2799 isolation: isolate;
2800 }
2801 .card::before {
2802 content: '';
2803 position: absolute;
2804 inset: 0;
2805 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2806 opacity: 0;
2807 transition: opacity var(--t-base) var(--ease);
2808 pointer-events: none;
2809 z-index: -1;
2ce1d0bClaude2810 }
2811 .card:hover {
2812 border-color: var(--border-strong);
2813 box-shadow: var(--elev-2);
958d26aClaude2814 transform: translateY(-2px);
2ce1d0bClaude2815 }
958d26aClaude2816 .card:hover::before { opacity: 1; }
2817 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2818 .card h3 a { color: var(--text); font-weight: 600; }
2819 .card h3 a:hover { color: var(--text-link); }
2820 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2821 .card-meta {
2822 display: flex;
2823 gap: 14px;
2824 margin-top: 14px;
2825 padding-top: 14px;
2826 border-top: 1px solid var(--border);
2827 font-size: var(--t-xs);
2828 color: var(--text-muted);
2829 }
2830 .card-meta span { display: flex; align-items: center; gap: 5px; }
2831
2832 /* ============================================================ */
2833 /* Stat card / box */
2834 /* ============================================================ */
2835 .stat-card {
2836 background: var(--bg-elevated);
2837 border: 1px solid var(--border);
2838 border-radius: var(--r-md);
fc1817aClaude2839 padding: 16px;
2ce1d0bClaude2840 transition: border-color var(--t-fast) var(--ease);
2841 }
2842 .stat-card:hover { border-color: var(--border-strong); }
2843 .stat-label {
2844 font-size: var(--t-xs);
2845 color: var(--text-muted);
2846 text-transform: uppercase;
2847 letter-spacing: 0.06em;
2848 font-weight: 500;
2849 }
2850 .stat-value {
2851 font-size: var(--t-xl);
2852 font-weight: 700;
2853 margin-top: 4px;
2854 letter-spacing: -0.025em;
2855 color: var(--text);
2856 font-feature-settings: 'tnum';
fc1817aClaude2857 }
06d5ffeClaude2858
2ce1d0bClaude2859 /* ============================================================ */
2860 /* Star button */
2861 /* ============================================================ */
06d5ffeClaude2862 .star-btn {
2863 display: inline-flex;
2864 align-items: center;
2865 gap: 6px;
2ce1d0bClaude2866 padding: 5px 12px;
2867 background: var(--bg-elevated);
06d5ffeClaude2868 border: 1px solid var(--border);
2ce1d0bClaude2869 border-radius: var(--r-sm);
06d5ffeClaude2870 color: var(--text);
2ce1d0bClaude2871 font-size: var(--t-sm);
2872 font-weight: 500;
06d5ffeClaude2873 cursor: pointer;
2ce1d0bClaude2874 transition: all var(--t-fast) var(--ease);
2875 }
2876 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2877 .star-btn.starred {
2878 color: var(--yellow);
958d26aClaude2879 border-color: rgba(251,191,36,0.4);
2880 background: rgba(251,191,36,0.08);
06d5ffeClaude2881 }
2882
2ce1d0bClaude2883 /* ============================================================ */
2884 /* User profile */
2885 /* ============================================================ */
06d5ffeClaude2886 .user-profile {
2887 display: flex;
2888 gap: 32px;
2889 margin-bottom: 32px;
2ce1d0bClaude2890 padding: 24px;
2891 background: var(--bg-elevated);
2892 border: 1px solid var(--border);
2893 border-radius: var(--r-lg);
06d5ffeClaude2894 }
2895 .user-avatar {
2896 width: 96px;
2897 height: 96px;
2ce1d0bClaude2898 border-radius: var(--r-full);
2899 background: var(--accent-gradient-soft);
2900 border: 1px solid var(--border-strong);
06d5ffeClaude2901 display: flex;
2902 align-items: center;
2903 justify-content: center;
2ce1d0bClaude2904 font-size: 36px;
2905 font-weight: 600;
2906 color: var(--text);
06d5ffeClaude2907 flex-shrink: 0;
2ce1d0bClaude2908 letter-spacing: -0.02em;
06d5ffeClaude2909 }
2ce1d0bClaude2910 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2911 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2912 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2913
2ce1d0bClaude2914 /* ============================================================ */
2915 /* New repo form */
2916 /* ============================================================ */
2917 .new-repo-form { max-width: 640px; }
2918 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2919 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2920 .visibility-option {
2921 flex: 1;
2ce1d0bClaude2922 padding: 16px;
06d5ffeClaude2923 border: 1px solid var(--border);
2ce1d0bClaude2924 border-radius: var(--r-md);
2925 background: var(--bg-elevated);
06d5ffeClaude2926 cursor: pointer;
2ce1d0bClaude2927 text-align: left;
2928 transition: all var(--t-fast) var(--ease);
2929 }
2930 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2931 .visibility-option:has(input:checked) {
2932 border-color: var(--accent);
2933 background: var(--accent-gradient-faint);
2934 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2935 }
2936 .visibility-option input { display: none; }
2ce1d0bClaude2937 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2938 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2939
2ce1d0bClaude2940 /* ============================================================ */
2941 /* Issues */
2942 /* ============================================================ */
2943 .issue-tabs { display: flex; gap: 4px; }
2944 .issue-tabs a {
2945 color: var(--text-muted);
2946 font-size: var(--t-sm);
2947 font-weight: 500;
2948 padding: 6px 12px;
2949 border-radius: var(--r-sm);
2950 transition: all var(--t-fast) var(--ease);
2951 }
2952 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2953 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2954
2ce1d0bClaude2955 .issue-list {
2956 border: 1px solid var(--border);
2957 border-radius: var(--r-md);
2958 overflow: hidden;
2959 background: var(--bg-elevated);
2960 }
79136bbClaude2961 .issue-item {
2962 display: flex;
2ce1d0bClaude2963 gap: 14px;
79136bbClaude2964 align-items: flex-start;
2ce1d0bClaude2965 padding: 14px 16px;
79136bbClaude2966 border-bottom: 1px solid var(--border);
2ce1d0bClaude2967 transition: background var(--t-fast) var(--ease);
79136bbClaude2968 }
2969 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2970 .issue-item:hover { background: var(--bg-hover); }
2971 .issue-state-icon {
2972 font-size: 14px;
2973 padding-top: 2px;
2974 width: 18px;
2975 height: 18px;
2976 display: inline-flex;
2977 align-items: center;
2978 justify-content: center;
2979 border-radius: var(--r-full);
2980 flex-shrink: 0;
2981 }
79136bbClaude2982 .state-open { color: var(--green); }
958d26aClaude2983 .state-closed { color: #b69dff; }
2ce1d0bClaude2984 .issue-title {
debcf27Claude2985 font-family: var(--font-display);
2986 font-size: var(--t-md);
2ce1d0bClaude2987 font-weight: 600;
debcf27Claude2988 line-height: 1.35;
2989 letter-spacing: -0.012em;
2990 }
2991 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2992 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2993 .issue-meta {
2994 font-family: var(--font-mono);
2995 font-size: 11px;
2996 color: var(--text-muted);
2997 margin-top: 5px;
2998 letter-spacing: 0.01em;
2ce1d0bClaude2999 }
79136bbClaude3000
3001 .issue-badge {
3002 display: inline-flex;
3003 align-items: center;
2ce1d0bClaude3004 gap: 6px;
79136bbClaude3005 padding: 4px 12px;
2ce1d0bClaude3006 border-radius: var(--r-full);
3007 font-size: var(--t-sm);
79136bbClaude3008 font-weight: 500;
2ce1d0bClaude3009 line-height: 1.4;
79136bbClaude3010 }
958d26aClaude3011 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
3012 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
3013 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude3014 .state-merged { color: var(--accent); }
958d26aClaude3015 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude3016
2ce1d0bClaude3017 .issue-detail { max-width: 920px; }
79136bbClaude3018 .issue-comment-box {
3019 border: 1px solid var(--border);
2ce1d0bClaude3020 border-radius: var(--r-md);
79136bbClaude3021 margin-bottom: 16px;
3022 overflow: hidden;
2ce1d0bClaude3023 background: var(--bg-elevated);
79136bbClaude3024 }
3025 .comment-header {
3026 background: var(--bg-secondary);
2ce1d0bClaude3027 padding: 10px 16px;
79136bbClaude3028 border-bottom: 1px solid var(--border);
2ce1d0bClaude3029 font-size: var(--t-sm);
79136bbClaude3030 color: var(--text-muted);
3031 }
3032
2ce1d0bClaude3033 /* ============================================================ */
3034 /* Panel — flexible container used across many pages */
3035 /* ============================================================ */
3036 .panel {
3037 background: var(--bg-elevated);
3038 border: 1px solid var(--border);
3039 border-radius: var(--r-md);
3040 overflow: hidden;
3041 }
3042 .panel-item {
3043 display: flex;
3044 align-items: center;
3045 gap: 12px;
3046 padding: 12px 16px;
79136bbClaude3047 border-bottom: 1px solid var(--border);
2ce1d0bClaude3048 transition: background var(--t-fast) var(--ease);
3049 }
3050 .panel-item:last-child { border-bottom: none; }
3051 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3052
3053 /* ─── j/k keyboard list navigation ─── */
3054 .is-kbd-focus {
3055 outline: 2px solid rgba(140,109,255,0.6) !important;
3056 outline-offset: -2px;
3057 background: rgba(140,109,255,0.06) !important;
3058 border-radius: 4px;
3059 }
3060 .is-kbd-selected {
3061 outline: 2px solid rgba(52,211,153,0.6) !important;
3062 background: rgba(52,211,153,0.06) !important;
3063 }
2ce1d0bClaude3064 .panel-empty {
3065 padding: 24px;
3066 text-align: center;
79136bbClaude3067 color: var(--text-muted);
2ce1d0bClaude3068 font-size: var(--t-sm);
79136bbClaude3069 }
3070
2ce1d0bClaude3071 /* ============================================================ */
3072 /* Search */
3073 /* ============================================================ */
79136bbClaude3074 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3075
2ce1d0bClaude3076 /* ============================================================ */
3077 /* Timeline */
3078 /* ============================================================ */
3079 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3080 .timeline::before {
3081 content: '';
3082 position: absolute;
3083 left: 4px;
3084 top: 8px;
3085 bottom: 8px;
3086 width: 2px;
2ce1d0bClaude3087 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3088 }
2ce1d0bClaude3089 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3090 .timeline-dot {
3091 position: absolute;
2ce1d0bClaude3092 left: -28px;
3093 top: 8px;
3094 width: 12px;
3095 height: 12px;
3096 border-radius: var(--r-full);
3097 background: var(--accent-gradient);
16b325cClaude3098 border: 2px solid var(--bg);
2ce1d0bClaude3099 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3100 }
3101 .timeline-content {
2ce1d0bClaude3102 background: var(--bg-elevated);
16b325cClaude3103 border: 1px solid var(--border);
2ce1d0bClaude3104 border-radius: var(--r-md);
3105 padding: 14px 16px;
16b325cClaude3106 }
f1ab587Claude3107
2ce1d0bClaude3108 /* ============================================================ */
3109 /* Toggle switch */
3110 /* ============================================================ */
f1ab587Claude3111 .toggle-switch {
3112 position: relative;
3113 display: inline-block;
2ce1d0bClaude3114 width: 40px;
3115 height: 22px;
f1ab587Claude3116 flex-shrink: 0;
3117 margin-left: 16px;
3118 }
3119 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3120 .toggle-slider {
3121 position: absolute;
3122 cursor: pointer;
3123 top: 0; left: 0; right: 0; bottom: 0;
3124 background: var(--bg-tertiary);
3125 border: 1px solid var(--border);
2ce1d0bClaude3126 border-radius: var(--r-full);
3127 transition: all var(--t-base) var(--ease);
f1ab587Claude3128 }
3129 .toggle-slider::before {
3130 content: '';
3131 position: absolute;
2ce1d0bClaude3132 height: 16px;
3133 width: 16px;
f1ab587Claude3134 left: 2px;
3135 bottom: 2px;
3136 background: var(--text-muted);
2ce1d0bClaude3137 border-radius: var(--r-full);
3138 transition: all var(--t-base) var(--ease);
f1ab587Claude3139 }
3140 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3141 background: var(--accent-gradient);
3142 border-color: transparent;
958d26aClaude3143 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3144 }
3145 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3146 transform: translateX(18px);
f1ab587Claude3147 background: #fff;
3148 }
ef8d378Claude3149
3150 /* ============================================================
3151 * 2026 polish layer (purely additive — no layout changes).
3152 * Improves typography rendering, focus states, hover affordances,
3153 * and adds the gradient brand cue to primary buttons. Anything
3154 * that could alter dimensions stays in the rules above.
3155 * ============================================================ */
3156 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3157 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3158 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3159
3160 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3161 h1 { letter-spacing: -0.025em; }
3162
3163 /* Smoother colour transitions everywhere links live */
3164 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3165
3166 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3167 .btn {
3168 transition:
3169 background 120ms cubic-bezier(0.16,1,0.3,1),
3170 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3171 transform 120ms cubic-bezier(0.16,1,0.3,1),
3172 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3173 }
3174 .btn:active { transform: translateY(0.5px); }
3175 .btn:focus-visible {
3176 outline: none;
3177 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3178 }
3179 .btn-primary {
3180 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3181 border-color: transparent;
3182 box-shadow:
3183 inset 0 1px 0 rgba(255,255,255,0.15),
3184 0 1px 2px rgba(168,85,247,0.25);
3185 }
3186 .btn-primary:hover {
3187 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3188 filter: none;
3189 box-shadow:
3190 inset 0 1px 0 rgba(255,255,255,0.20),
3191 0 4px 12px rgba(168,85,247,0.30);
3192 }
3193
3194 /* Inputs: cleaner focus ring + hover */
3195 .form-group input:hover,
3196 .form-group textarea:hover,
3197 .form-group select:hover {
3198 border-color: rgba(255,255,255,0.14);
3199 }
3200 .form-group input:focus,
3201 .form-group textarea:focus,
3202 .form-group select:focus {
3203 border-color: rgba(168,85,247,0.55);
3204 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3205 }
3206 :root[data-theme='light'] .form-group input:hover,
3207 :root[data-theme='light'] .form-group textarea:hover,
3208 :root[data-theme='light'] .form-group select:hover {
3209 border-color: rgba(0,0,0,0.18);
3210 }
3211
3212 /* Cards: subtle hover lift */
3213 .card {
3214 transition:
3215 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3216 transform 160ms cubic-bezier(0.16,1,0.3,1),
3217 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3218 }
3219 .card:hover {
3220 border-color: rgba(255,255,255,0.18);
3221 transform: translateY(-1px);
3222 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3223 }
3224 :root[data-theme='light'] .card:hover {
3225 border-color: rgba(0,0,0,0.18);
3226 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3227 }
3228
3229 /* Issue / commit / panel rows: smoother hover */
3230 .issue-item, .commit-item {
3231 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3232 }
3233 .repo-nav a {
3234 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3235 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3236 }
3237 .nav-link {
3238 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3239 }
3240
3241 /* Auth card: subtle elevation so register/login feel premium */
3242 .auth-container {
3243 background: var(--bg-secondary);
3244 border: 1px solid var(--border);
3245 border-radius: var(--r-lg, 12px);
3246 padding: 32px;
3247 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3248 }
3249 :root[data-theme='light'] .auth-container {
3250 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3251 }
3252 .auth-container h2 { letter-spacing: -0.025em; }
3253
3254 /* Empty state: dashed border, generous padding */
3255 .empty-state {
3256 border: 1px dashed var(--border);
3257 border-radius: var(--r-lg, 12px);
3258 background: var(--bg);
3259 }
3260
3261 /* Badges + commit-sha: smoother transition */
3262 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3263
3264 /* Gradient text utility — matches landing's accent treatment */
3265 .gradient-text {
3266 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3267 -webkit-background-clip: text;
3268 background-clip: text;
3269 -webkit-text-fill-color: transparent;
3270 }
3271
3272 /* Custom scrollbars (subtle, themed) */
3273 ::-webkit-scrollbar { width: 10px; height: 10px; }
3274 ::-webkit-scrollbar-track { background: transparent; }
3275 ::-webkit-scrollbar-thumb {
3276 background: rgba(255,255,255,0.06);
3277 border: 2px solid var(--bg);
3278 border-radius: 9999px;
3279 }
3280 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3281 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3282 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3283
3284 /* Honour reduced-motion preference */
3285 @media (prefers-reduced-motion: reduce) {
3286 *, *::before, *::after {
3287 animation-duration: 0.01ms !important;
3288 animation-iteration-count: 1 !important;
3289 transition-duration: 0.01ms !important;
3290 }
3291 }
c63b860Claude3292
3293 /* Block O3 — visual coherence additive rules. */
3294 .card.card-p-none { padding: 0; }
3295 .card.card-p-sm { padding: var(--space-3); }
3296 .card.card-p-md { padding: var(--space-4); }
3297 .card.card-p-lg { padding: var(--space-6); }
3298 .card.card-elevated { box-shadow: var(--elev-2); }
3299 .card.card-gradient {
3300 background:
3301 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3302 var(--bg-elevated);
3303 }
3304 .card.card-gradient::before { opacity: 1; }
3305 .notice {
3306 padding: var(--space-3) var(--space-4);
3307 border-radius: var(--radius-md);
3308 border: 1px solid var(--border);
3309 background: var(--bg-elevated);
3310 color: var(--text);
3311 font-size: var(--font-size-sm);
3312 margin-bottom: var(--space-6);
3313 line-height: var(--leading-normal);
3314 }
3315 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3316 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3317 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3318 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3319 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3320 .email-preview {
3321 padding: var(--space-5);
3322 background: #fff;
3323 color: #111;
3324 border-radius: var(--radius-md);
3325 }
3326 .code-block {
3327 margin: var(--space-2) 0 0;
3328 padding: var(--space-3);
3329 background: var(--bg-tertiary);
3330 border: 1px solid var(--border-subtle);
3331 border-radius: var(--radius-sm);
3332 font-family: var(--font-mono);
3333 font-size: var(--font-size-xs);
3334 line-height: var(--leading-normal);
3335 overflow-x: auto;
3336 }
3337 .status-pill-operational {
3338 display: inline-flex;
3339 align-items: center;
3340 padding: var(--space-1) var(--space-3);
3341 border-radius: var(--radius-full);
3342 font-size: var(--font-size-xs);
3343 font-weight: 600;
3344 background: rgba(52,211,153,0.15);
3345 color: var(--green);
3346 }
3347 .api-tag {
3348 display: inline-flex;
3349 align-items: center;
3350 font-size: var(--font-size-xs);
3351 padding: 2px var(--space-2);
3352 border-radius: var(--radius-sm);
3353 font-family: var(--font-mono);
3354 }
3355 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3356 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3357 .stat-number {
3358 font-size: var(--font-size-xl);
3359 font-weight: 700;
3360 color: var(--text-strong);
3361 line-height: var(--leading-tight);
3362 }
3363 .stat-number-accent { color: var(--accent); }
3364 .stat-number-blue { color: var(--blue); }
3365 .stat-number-purple { color: var(--text-link); }
3366 footer .footer-tag-sub {
3367 margin-top: var(--space-2);
3368 font-size: var(--font-size-xs);
3369 color: var(--text-faint);
3370 line-height: var(--leading-normal);
3371 }
3372 footer .footer-version-pill {
3373 display: inline-flex;
3374 align-items: center;
3375 gap: var(--space-2);
3376 padding: var(--space-1) var(--space-3);
3377 border-radius: var(--radius-full);
3378 border: 1px solid var(--border);
3379 background: var(--bg-elevated);
3380 color: var(--text-faint);
3381 font-family: var(--font-mono);
3382 font-size: var(--font-size-xs);
3383 cursor: help;
3384 }
3385 footer .footer-banner {
3386 max-width: 1240px;
3387 margin: var(--space-6) auto 0;
3388 padding: var(--space-3) var(--space-4);
3389 border-radius: var(--radius-md);
3390 border: 1px solid var(--border);
3391 background: var(--bg-elevated);
3392 color: var(--text);
3393 font-family: var(--font-mono);
3394 font-size: var(--font-size-xs);
3395 letter-spacing: 0.04em;
3396 text-transform: uppercase;
3397 text-align: center;
3398 }
3399 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3400 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3401 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3402
cf9178bTest User3403 /* ============================================================ */
3404 /* Global toast notifications. */
3405 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3406 /* ============================================================ */
3407 .gx-toast {
3408 pointer-events: auto;
3409 display: inline-flex;
3410 align-items: flex-start;
3411 gap: 10px;
3412 min-width: 280px;
3413 max-width: min(440px, calc(100vw - 32px));
3414 padding: 12px 14px 12px 12px;
3415 background: var(--bg-elevated);
3416 border: 1px solid var(--border);
3417 border-radius: 10px;
3418 box-shadow:
3419 0 12px 36px -10px rgba(15,16,28,0.18),
3420 0 2px 6px rgba(15,16,28,0.04),
3421 0 0 0 1px rgba(15,16,28,0.02);
3422 color: var(--text);
3423 font-size: 13.5px;
3424 line-height: 1.45;
3425 opacity: 0;
3426 transform: translateX(16px);
3427 transition:
3428 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3429 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3430 }
3431 .gx-toast--in { opacity: 1; transform: translateX(0); }
3432 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3433 .gx-toast__icon {
3434 flex-shrink: 0;
3435 width: 20px; height: 20px;
3436 border-radius: 50%;
3437 display: inline-flex;
3438 align-items: center;
3439 justify-content: center;
3440 font-size: 12px;
3441 font-weight: 700;
3442 line-height: 1;
3443 margin-top: 1px;
3444 }
3445 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3446 .gx-toast__close {
3447 flex-shrink: 0;
3448 width: 22px; height: 22px;
3449 border: 0;
3450 background: transparent;
3451 color: var(--text-muted);
3452 font-size: 18px;
3453 line-height: 1;
3454 cursor: pointer;
3455 border-radius: 4px;
3456 padding: 0;
3457 margin: -2px -2px 0 0;
3458 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3459 }
3460 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3461 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3462 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3463 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3464 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3465 @media (prefers-reduced-motion: reduce) {
3466 .gx-toast { transition: opacity 60ms linear; transform: none; }
3467 .gx-toast--in, .gx-toast--out { transform: none; }
3468 }
3469
dc26881CC LABS App3470 /* ============================================================ */
3471 /* Block U4 — cross-document view transitions. */
3472 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3473 /* every same-origin navigation. Older browsers ignore these */
3474 /* rules entirely — no JS shim, no breakage. */
3475 /* prefers-reduced-motion disables the animation honourably. */
3476 /* ============================================================ */
3477 @view-transition {
3478 navigation: auto;
3479 }
3480 ::view-transition-old(root),
3481 ::view-transition-new(root) {
3482 animation-duration: 200ms;
3483 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3484 }
3485 ::view-transition-old(root) {
3486 animation-name: vt-fade-out;
3487 }
3488 ::view-transition-new(root) {
3489 animation-name: vt-fade-in;
3490 }
3491 @keyframes vt-fade-out {
3492 to { opacity: 0; }
3493 }
3494 @keyframes vt-fade-in {
3495 from { opacity: 0; }
3496 }
3497 @media (prefers-reduced-motion: reduce) {
3498 ::view-transition-old(root),
3499 ::view-transition-new(root) {
3500 animation-duration: 0s;
3501 }
3502 }
3503 /* The transition system picks up its root subject from this rule. */
3504 body {
3505 view-transition-name: root;
3506 }
fc1817aClaude3507`;