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.tsxBlame3346 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">
f764c07Claude181 {/* Block N3 — site-admin platform-deploy status pill. Hidden
182 by default; revealed client-side once /admin/deploys/latest.json
183 responds 200 (non-admins get 401/403 and the pill stays
184 hidden). Subscribes to the `platform:deploys` SSE topic
185 for live updates. See `deployPillScript` below. */}
186 {user && (
187 <a
188 id="deploy-pill"
189 href="/admin/deploys"
190 class="nav-deploy-pill"
191 style="display:none"
192 aria-label="Platform deploy status"
193 title="Platform deploy status"
194 >
195 <span class="deploy-pill-dot" />
196 <span class="deploy-pill-text">Deploys</span>
197 </a>
198 )}
6fc53bdClaude199 <a
200 href="/theme/toggle"
201 class="nav-link nav-theme"
202 title="Toggle theme"
203 aria-label="Toggle theme"
204 >
205 <span class="theme-icon-dark">{"\u263E"}</span>
206 <span class="theme-icon-light">{"\u2600"}</span>
207 </a>
c81ab7aClaude208 <a href="/explore" class="nav-link">
209 Explore
210 </a>
06d5ffeClaude211 {user ? (
212 <>
f1ab587Claude213 <a href="/dashboard" class="nav-link" style="font-weight: 600">
214 Dashboard
215 </a>
a6ff0f2Claude216 <a href="/pulls" class="nav-link">
217 Pulls
218 </a>
e9aa4d8Claude219 <a href="/issues" class="nav-link">
220 Issues
221 </a>
222 <a href="/activity" class="nav-link">
223 Activity
224 </a>
225 <a href="/inbox" class="nav-link" style="position:relative">
226 Inbox
227 {notificationCount && notificationCount > 0 ? (
228 <span
229 aria-label={`${notificationCount} unread`}
230 style="display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 5px;margin-left:6px;font-size:10.5px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;color:#fff;background:linear-gradient(135deg,#8c6dff 0%,#36c5d6 100%);border-radius:9999px;box-shadow:0 0 8px rgba(140,109,255,0.45)"
231 >
232 {notificationCount > 99 ? "99+" : notificationCount}
233 </span>
234 ) : null}
235 </a>
c6018a5Claude236 {/* AI dropdown — consolidates Standups, Voice, Refactors,
237 Specs, Ask AI to keep the top-level nav lean. Hover-open
238 with click+keyboard fallback via navAiDropdownScript. */}
239 <div class="nav-ai-dropdown" data-nav-ai>
240 <button
241 type="button"
242 class="nav-link nav-ai-trigger"
243 aria-haspopup="true"
244 aria-expanded="false"
245 data-nav-ai-trigger
246 >
247 <span style="display:inline-flex;align-items:center;gap:5px">
248 <svg
249 width="13"
250 height="13"
251 viewBox="0 0 24 24"
252 fill="none"
253 stroke="currentColor"
254 stroke-width="2.2"
255 stroke-linecap="round"
256 stroke-linejoin="round"
257 aria-hidden="true"
258 >
259 <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" />
260 </svg>
261 AI
262 <span aria-hidden="true" style="font-size:9px;opacity:0.7">▾</span>
263 </span>
264 </button>
265 <div class="nav-ai-menu" role="menu" data-nav-ai-menu>
266 <a href="/standups" role="menuitem" class="nav-ai-item">
267 <span class="nav-ai-item-label">Standups</span>
268 <span class="nav-ai-item-sub">Daily AI brief</span>
269 </a>
270 <a href="/voice" role="menuitem" class="nav-ai-item">
271 <span class="nav-ai-item-label">Voice</span>
272 <span class="nav-ai-item-sub">Talk to ship a PR</span>
273 </a>
274 <a href="/refactors" role="menuitem" class="nav-ai-item">
275 <span class="nav-ai-item-label">Refactors</span>
276 <span class="nav-ai-item-sub">Multi-repo agent</span>
277 </a>
278 <a href="/specs" role="menuitem" class="nav-ai-item">
279 <span class="nav-ai-item-label">Specs</span>
280 <span class="nav-ai-item-sub">Spec-to-PR loop</span>
281 </a>
282 <a href="/ask" role="menuitem" class="nav-ai-item">
283 <span class="nav-ai-item-label">Ask AI</span>
284 <span class="nav-ai-item-sub">Cross-repo chat</span>
285 </a>
286 </div>
287 </div>
bdbd0deClaude288 <a href="/import" class="nav-link">
289 Import
290 </a>
06d5ffeClaude291 <a href="/new" class="btn btn-sm btn-primary">
292 + New
293 </a>
294 <a href={`/${user.username}`} class="nav-user">
295 {user.displayName || user.username}
296 </a>
297 <a href="/settings" class="nav-link">
298 Settings
299 </a>
300 <a href="/logout" class="nav-link">
301 Sign out
302 </a>
303 </>
304 ) : (
305 <>
306 <a href="/login" class="nav-link">
307 Sign in
308 </a>
309 <a href="/register" class="btn btn-sm btn-primary">
310 Register
311 </a>
312 </>
313 )}
314 </div>
fc1817aClaude315 </nav>
316 </header>
45e31d0Claude317 <main id="main-content">{children}</main>
cf9178bTest User318 {/* Global toast host — populated by the toastScript below from
319 ?success= / ?error= / ?toast= query params. Replaces the
320 per-page banner pattern with one polished slide-in. */}
321 <div
322 id="toast-host"
323 aria-live="polite"
324 aria-atomic="true"
325 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"
326 />
fc1817aClaude327 <footer>
958d26aClaude328 <div class="footer-inner">
329 <div class="footer-brand">
330 <a href="/" class="logo">gluecron</a>
331 <p class="footer-tag">
332 AI-native code intelligence. Self-hosted git, automated CI,
333 push-time gates. Software that ships itself.
334 </p>
335 </div>
336 <div class="footer-links">
337 <div class="footer-col">
338 <div class="footer-col-title">Product</div>
b0148e9Claude339 <a href="/features">Features</a>
340 <a href="/pricing">Pricing</a>
958d26aClaude341 <a href="/explore">Explore</a>
342 <a href="/marketplace">Marketplace</a>
343 </div>
344 <div class="footer-col">
345 <div class="footer-col-title">Platform</div>
b0148e9Claude346 <a href="/help">Quickstart</a>
958d26aClaude347 <a href="/status">Status</a>
348 <a href="/api/graphql">GraphQL</a>
349 <a href="/mcp">MCP server</a>
350 </div>
351 <div class="footer-col">
b0148e9Claude352 <div class="footer-col-title">Company</div>
353 <a href="/about">About</a>
958d26aClaude354 <a href="/terms">Terms</a>
355 <a href="/privacy">Privacy</a>
356 <a href="/acceptable-use">Acceptable use</a>
357 </div>
358 </div>
359 </div>
360 <div class="footer-bottom">
361 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude362 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
363 <span class="footer-build-dot" aria-hidden="true" />
364 {build.sha} · {build.branch}
365 </span>
36b4cbdClaude366 </div>
c63b860Claude367 {siteBannerText ? (
368 <div
369 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
370 role="status"
371 aria-live="polite"
372 >
373 {siteBannerText}
374 </div>
375 ) : null}
fc1817aClaude376 </footer>
05cdb85Claude377 {/* Live update poller — checks /api/version every 15s, prompts
378 reload when the running sha changes. Pure progressive-
379 enhancement; degrades to nothing if JS is off. */}
380 <div
381 id="version-banner"
382 style="display:none;position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:9999;background:var(--bg-elevated);border:1px solid rgba(140,109,255,0.45);border-radius:9999px;padding:8px 14px 8px 14px;font-size:13px;color:var(--text-strong);box-shadow:0 12px 28px -8px rgba(0,0,0,0.55),0 0 24px -6px rgba(140,109,255,0.40);font-family:var(--font-sans);align-items:center;gap:10px"
383 >
384 <span style="display:inline-flex;align-items:center;gap:8px">
385 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
386 <span>New version available</span>
387 </span>
388 <button
389 type="button"
390 id="version-banner-reload"
391 style="background:linear-gradient(135deg,#8c6dff 0%,#36c5d6 100%);color:#fff;border:0;border-radius:9999px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit"
392 >
393 Reload
394 </button>
395 </div>
fa880f2Claude396 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude397 {/* Block N3 — site-admin deploy status pill (script-only). The pill
398 container is rendered above for authed users; this script bootstraps
399 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
400 and the pill stays display:none — zero leak. */}
401 {user && (
402 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
403 )}
699e5c7Claude404 {/* Block I4 — Command palette shell (hidden by default) */}
405 <div
406 id="cmdk-backdrop"
407 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
408 />
409 <div
410 id="cmdk-panel"
411 style="display:none;position:fixed;top:10%;left:50%;transform:translateX(-50%);width:min(560px,92vw);background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 32px rgba(0,0,0,0.4);z-index:9999;overflow:hidden"
412 >
413 <input
414 id="cmdk-input"
415 type="text"
416 placeholder="Type a command..."
417 aria-label="Command palette"
dc26881CC LABS App418 style="width:100%;padding:var(--space-3) var(--space-4);background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--border);outline:none;font-size:14px"
699e5c7Claude419 />
420 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
421 </div>
fa880f2Claude422 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude423 {/* PWA-kill script: actively unregisters any service worker
424 previously installed under gluecron.com. Recovers any browser
425 still trapped in the SW reload loop from the legacy registrations. */}
426 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User427 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude428 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude429 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
fc1817aClaude430 </body>
431 </html>
432 );
433};
434
05cdb85Claude435// Live version poller. Checks /api/version every 15s; if the sha differs
436// from the one we booted with, reveal the floating 'New version' pill so
437// the user can reload onto the new code without manually refreshing.
438const versionPollerScript = `
439 (function(){
440 var loadedSha = null;
441 var banner, btn;
442 function poll(){
443 fetch('/api/version', { cache: 'no-store' })
444 .then(function(r){ return r.ok ? r.json() : null; })
445 .then(function(j){
446 if (!j || !j.sha) return;
447 if (loadedSha === null) { loadedSha = j.sha; return; }
448 if (j.sha !== loadedSha && banner) {
449 banner.style.display = 'inline-flex';
450 }
451 })
452 .catch(function(){});
453 }
454 function init(){
455 banner = document.getElementById('version-banner');
456 btn = document.getElementById('version-banner-reload');
457 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
458 poll();
459 setInterval(poll, 15000);
460 }
461 if (document.readyState === 'loading') {
462 document.addEventListener('DOMContentLoaded', init);
463 } else {
464 init();
465 }
466 })();
467`;
468
f764c07Claude469// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
470// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
471// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
472// display:none — there's no leakage of admin-only data to other users.
473//
474// Pill states (CSS classes on the container drive colour):
475// .deploy-pill-success 🟢 "Deployed 12s ago"
476// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
477// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
478// .deploy-pill-empty ⚪ "No deploys yet"
479//
480// Relative-time auto-refreshes every 15s without re-fetching.
481export const deployPillScript = `
482 (function(){
483 var pill, dot, text;
484 var state = { latest: null, asOf: null };
485
486 function classifyAge(ms){
487 if (ms < 0) return 'just now';
488 var s = Math.floor(ms / 1000);
489 if (s < 5) return 'just now';
490 if (s < 60) return s + 's ago';
491 var m = Math.floor(s / 60);
492 if (m < 60) return m + 'm ago';
493 var h = Math.floor(m / 60);
494 if (h < 24) return h + 'h ago';
495 var d = Math.floor(h / 24);
496 return d + 'd ago';
497 }
498 function elapsed(ms){
499 if (ms < 0) ms = 0;
500 var s = Math.floor(ms / 1000);
501 if (s < 60) return s + 's';
502 var m = Math.floor(s / 60);
503 var rem = s - m * 60;
504 return m + 'm ' + rem + 's';
505 }
506
507 function render(){
508 if (!pill || !text || !dot) return;
509 var d = state.latest;
81201ccTest User510 // When there's no deploy event yet, keep the pill HIDDEN. Showing
511 // "No deploys yet" was visible noise on every admin page load and
512 // flashed during reconnect cycles — admins don't need a placeholder.
513 // The pill reveals itself the first time a real deploy fires.
f764c07Claude514 if (!d) {
81201ccTest User515 pill.style.display = 'none';
f764c07Claude516 return;
517 }
518 pill.style.display = 'inline-flex';
519 var now = Date.now();
520 if (d.status === 'in_progress') {
521 pill.className = 'nav-deploy-pill deploy-pill-progress';
522 var started = Date.parse(d.started_at) || now;
523 text.textContent = 'Deploying… ' + elapsed(now - started);
524 } else if (d.status === 'succeeded') {
525 pill.className = 'nav-deploy-pill deploy-pill-success';
526 var ref = Date.parse(d.finished_at || d.started_at) || now;
527 text.textContent = 'Deployed ' + classifyAge(now - ref);
528 } else if (d.status === 'failed') {
529 pill.className = 'nav-deploy-pill deploy-pill-failed';
530 var refF = Date.parse(d.finished_at || d.started_at) || now;
531 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
532 } else {
533 pill.className = 'nav-deploy-pill';
534 text.textContent = d.status;
535 }
536 }
537
538 function fetchLatest(){
539 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
540 .then(function(r){ if (!r.ok) return null; return r.json(); })
541 .then(function(j){
542 if (!j || j.ok !== true) return;
543 state.latest = j.latest;
544 state.asOf = j.asOf;
545 render();
546 subscribe();
547 })
548 .catch(function(){});
549 }
550
551 var subscribed = false;
552 function subscribe(){
553 if (subscribed) return;
554 if (typeof EventSource === 'undefined') return;
555 subscribed = true;
556 var es;
bf19c50Test User557 // Exponential backoff with cap. Previously a tight 1500ms reconnect
558 // produced visible looping in the nav whenever the proxy timed out
559 // or the connection blipped — the bottom-of-page deploy pill
560 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
561 // successful message receipt.
562 var delay = 2000;
563 var DELAY_MAX = 60000;
564 function bump(){
565 delay = Math.min(delay * 2, DELAY_MAX);
566 }
567 function resetDelay(){
568 delay = 2000;
569 }
f764c07Claude570 function connect(){
571 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User572 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude573 es.onmessage = function(m){
bf19c50Test User574 resetDelay();
f764c07Claude575 try {
576 var d = JSON.parse(m.data);
577 if (d && d.run_id) {
578 if (!state.latest || state.latest.run_id === d.run_id ||
579 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
580 state.latest = d;
581 render();
582 }
583 }
584 } catch(e){}
585 };
586 es.onerror = function(){
587 try { es.close(); } catch(e){}
bf19c50Test User588 bump();
f764c07Claude589 setTimeout(connect, delay);
590 };
591 }
592 connect();
593 }
594
595 function init(){
596 pill = document.getElementById('deploy-pill');
597 if (!pill) return;
598 dot = pill.querySelector('.deploy-pill-dot');
599 text = pill.querySelector('.deploy-pill-text');
600 fetchLatest();
601 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
602 // without a fresh fetch.
603 setInterval(render, 15000);
604 }
605 if (document.readyState === 'loading') {
606 document.addEventListener('DOMContentLoaded', init);
607 } else {
608 init();
609 }
610 })();
611`;
612
6fc53bdClaude613// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User614// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
615// is honoured for users who explicitly opted in.
6fc53bdClaude616const themeInitScript = `
617 (function(){
618 try {
619 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User620 var t = m ? decodeURIComponent(m[1]) : 'light';
621 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude622 document.documentElement.setAttribute('data-theme', t);
623 } catch(_){}
624 })();
625`;
626
eae38d1Claude627// Block G1 — register service worker for offline / install support.
628// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App629//
cf9178bTest User630// Global toast notifications — reads ?success=, ?error=, ?toast= from the
631// URL on page load and surfaces a polished slide-in toast instead of the
632// per-page banner divs that crowded the layout. Toasts auto-dismiss after
633// 4.5s; query params are scrubbed from the URL via history.replaceState
634// so a subsequent Refresh doesn't re-fire the same toast.
635//
636// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
637// must be URI-encoded (callers already do this via encodeURIComponent
638// in c.redirect()).
639const toastScript = `
640 (function(){
641 function showToast(kind, message){
642 if (!message) return;
643 var host = document.getElementById('toast-host');
644 if (!host) return;
645 var el = document.createElement('div');
646 el.className = 'gx-toast gx-toast--' + kind;
647 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
648 var icon = document.createElement('span');
649 icon.className = 'gx-toast__icon';
650 icon.textContent = kind === 'success' ? '\\u2713'
651 : kind === 'error' ? '\\u00D7'
652 : kind === 'warn' ? '!'
653 : 'i';
654 el.appendChild(icon);
655 var text = document.createElement('span');
656 text.className = 'gx-toast__text';
657 text.textContent = message;
658 el.appendChild(text);
659 var close = document.createElement('button');
660 close.type = 'button';
661 close.className = 'gx-toast__close';
662 close.setAttribute('aria-label', 'Dismiss notification');
663 close.textContent = '\\u00D7';
664 close.addEventListener('click', function(){ dismiss(); });
665 el.appendChild(close);
666 host.appendChild(el);
667 // Force a reflow then add the visible class so the slide-in transitions.
668 void el.offsetWidth;
669 el.classList.add('gx-toast--in');
670 var timer = setTimeout(dismiss, 4500);
671 function dismiss(){
672 clearTimeout(timer);
673 el.classList.remove('gx-toast--in');
674 el.classList.add('gx-toast--out');
675 setTimeout(function(){
676 if (el.parentNode) el.parentNode.removeChild(el);
677 }, 220);
678 }
679 }
680 try {
681 var url = new URL(window.location.href);
682 var hits = 0;
683 var s = url.searchParams.get('success');
684 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
685 var e = url.searchParams.get('error');
686 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
687 var t = url.searchParams.get('toast');
688 if (t) {
689 var ix = t.indexOf(':');
690 var kind = ix > 0 ? t.slice(0, ix) : 'info';
691 var msg = ix > 0 ? t.slice(ix + 1) : t;
692 showToast(kind, msg);
693 url.searchParams.delete('toast');
694 hits++;
695 }
696 if (hits > 0 && window.history && window.history.replaceState) {
697 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
698 }
699 } catch(_) {}
700 })();
701`;
702
44fe49bClaude703// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
704// and pwaInstallBannerScript. Those two scripts registered /sw.js and
705// /sw-push.js at the same scope, causing a reload loop that made the
706// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
707// uncllickable). Per the SW spec, only one SW can control a scope; two
708// different script URLs at the same scope keep replacing each other.
6345c3eTest User709//
44fe49bClaude710// PWA is gone for good. A git host has no use for service workers,
711// install-as-app, or push notifications via SW. This script actively
712// unregisters every previously installed SW on the gluecron.com origin
713// so any browser still trapped in the loop recovers on the very next
714// page load — without needing the user to clear site data or open
715// DevTools. Idempotent and safe to keep running forever; once all
716// browsers have been cleaned, it's a no-op.
717const pwaKillSwitchScript = `
534f04aClaude718(function(){
719 try {
44fe49bClaude720 if (!('serviceWorker' in navigator)) return;
721 if (!navigator.serviceWorker.getRegistrations) return;
722 navigator.serviceWorker.getRegistrations().then(function(regs){
723 if (!regs || regs.length === 0) return;
724 regs.forEach(function(reg){
725 try { reg.unregister(); } catch(_){}
726 });
727 }).catch(function(){});
728 // Also drop any caches the old SWs left behind so the user gets
729 // truly fresh HTML on every page load. Restricted to gluecron-*
730 // namespaced caches so we don't trample anything a future opt-in
731 // feature might create under a different name.
732 if ('caches' in self) {
733 caches.keys().then(function(keys){
734 keys.forEach(function(k){
735 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
736 try { caches.delete(k); } catch(_){}
d7ba05dClaude737 }
738 });
739 }).catch(function(){});
534f04aClaude740 }
741 } catch(_) {}
742})();
743`;
744
3ef4c9dClaude745const navScript = `
746 (function(){
747 var chord = null;
748 var chordTimer = null;
749 function isTyping(t){
750 t = t || {};
751 var tag = (t.tagName || '').toLowerCase();
752 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
753 }
71cd5ecClaude754
755 // ---------- Block I4 — Command palette ----------
756 var COMMANDS = [
757 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
758 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
759 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
760 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
761 { label: 'Create new repository', href: '/new', kw: 'add create' },
762 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
763 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
764 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
765 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
766 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
767 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
768 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
769 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
770 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude771 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude772 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
773 { label: 'Gists', href: '/gists', kw: 'snippets' },
774 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
775 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
776 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
777 ];
778
779 function fuzzyMatch(item, q){
780 if (!q) return true;
781 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
782 q = q.toLowerCase();
783 var qi = 0;
784 for (var i = 0; i < hay.length && qi < q.length; i++) {
785 if (hay[i] === q[qi]) qi++;
786 }
787 return qi === q.length;
788 }
789
790 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
791
792 function render(){
793 if (!list) return;
794 var html = '';
795 for (var i = 0; i < filtered.length; i++) {
796 var item = filtered[i];
797 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
798 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]799 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App800 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude801 '<div>' + item.label + '</div>' +
802 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
803 '</div>';
804 }
805 if (filtered.length === 0) {
dc26881CC LABS App806 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude807 }
808 list.innerHTML = html;
809 }
810
811 function openPalette(){
812 backdrop = document.getElementById('cmdk-backdrop');
813 panel = document.getElementById('cmdk-panel');
814 input = document.getElementById('cmdk-input');
815 list = document.getElementById('cmdk-list');
816 if (!backdrop || !panel) return;
817 backdrop.style.display = 'block';
818 panel.style.display = 'block';
819 input.value = '';
820 selected = 0;
821 filtered = COMMANDS.slice();
822 render();
823 input.focus();
824 }
825 function closePalette(){
826 if (backdrop) backdrop.style.display = 'none';
827 if (panel) panel.style.display = 'none';
828 }
829 function go(href){ closePalette(); window.location.href = href; }
830
831 document.addEventListener('click', function(e){
832 var t = e.target;
833 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
834 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]835 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude836 });
837
838 document.addEventListener('input', function(e){
839 if (e.target && e.target.id === 'cmdk-input') {
840 var q = e.target.value;
841 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
842 selected = 0;
843 render();
844 }
845 });
846
3ef4c9dClaude847 document.addEventListener('keydown', function(e){
71cd5ecClaude848 // Palette-scoped keys take priority when open
849 if (panel && panel.style.display === 'block') {
850 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
851 if (e.key === 'ArrowDown') {
852 e.preventDefault();
853 selected = Math.min(filtered.length - 1, selected + 1);
854 render();
855 return;
856 }
857 if (e.key === 'ArrowUp') {
858 e.preventDefault();
859 selected = Math.max(0, selected - 1);
860 render();
861 return;
862 }
863 if (e.key === 'Enter') {
864 e.preventDefault();
865 var item = filtered[selected];
866 if (item) go(item.href);
867 return;
868 }
869 return;
870 }
871
3ef4c9dClaude872 if (isTyping(e.target)) return;
873 // Single key shortcuts
874 if (e.key === '/') {
875 var el = document.querySelector('.nav-search input');
876 if (el) { e.preventDefault(); el.focus(); return; }
877 }
878 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude879 e.preventDefault();
880 openPalette();
881 return;
3ef4c9dClaude882 }
883 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
884 e.preventDefault(); window.location.href = '/shortcuts'; return;
885 }
886 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
887 e.preventDefault(); window.location.href = '/new'; return;
888 }
889 // "g" chord
890 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
891 chord = 'g';
892 clearTimeout(chordTimer);
893 chordTimer = setTimeout(function(){ chord = null; }, 1200);
894 return;
895 }
896 if (chord === 'g') {
897 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
898 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
899 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
900 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
901 chord = null;
902 }
5882af3Claude903 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
904 if (e.key === 'j' || e.key === 'k') {
905 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
906 var items = Array.from(document.querySelectorAll(selectors));
907 if (items.length === 0) return;
908 e.preventDefault();
909 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
910 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));
911 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
912 items[next].classList.add('is-kbd-focus');
913 items[next].scrollIntoView({ block: 'nearest' });
914 return;
915 }
916 if (e.key === 'Enter') {
917 var focused = document.querySelector('.is-kbd-focus');
918 if (focused) {
919 e.preventDefault();
920 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
921 if (link && link.href) { window.location.href = link.href; }
922 return;
923 }
924 }
925 if (e.key === 'x') {
926 // 'x' selects/deselects focused item (future: bulk actions)
927 var sel = document.querySelector('.is-kbd-focus');
928 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
929 }
3ef4c9dClaude930 });
931 })();
932`;
933
c6018a5Claude934// AI dropdown — keyboard- and click-accessible menu in the top nav.
935// CSS handles the hover-open behaviour for pointer users; this script
936// adds click-to-toggle for touch, Escape-to-close, and outside-click-
937// to-close. Lives in its own IIFE so it never interferes with navScript.
938const navAiDropdownScript = `
939 (function(){
940 var open = false;
941 var root = document.querySelector('[data-nav-ai]');
942 if (!root) return;
943 var trigger = root.querySelector('[data-nav-ai-trigger]');
944 var menu = root.querySelector('[data-nav-ai-menu]');
945 if (!trigger || !menu) return;
946 function setOpen(next){
947 open = !!next;
948 root.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 });
960 })();
961`;
962
fc1817aClaude963const css = `
2ce1d0bClaude964 /* ================================================================
958d26aClaude965 * Gluecron design system — 2026.05 "Editorial-Technical"
966 * Slate-noir base · refined violet signature · hairline geometry ·
967 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
968 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude969 * ============================================================== */
6fc53bdClaude970 :root, :root[data-theme='dark'] {
958d26aClaude971 /* Surfaces — slate, not black. More depth, less crush. */
972 --bg: #08090f;
973 --bg-secondary: #0c0d14;
974 --bg-tertiary: #11131c;
975 --bg-elevated: #0f111a;
976 --bg-surface: #161826;
977 --bg-hover: rgba(255,255,255,0.04);
978 --bg-active: rgba(255,255,255,0.08);
979 --bg-inset: rgba(0,0,0,0.30);
980
981 /* Borders — three weights, used deliberately */
982 --border: rgba(255,255,255,0.06);
983 --border-subtle: rgba(255,255,255,0.035);
984 --border-strong: rgba(255,255,255,0.13);
985 --border-focus: rgba(140,109,255,0.55);
986
987 /* Text */
988 --text: #ededf2;
989 --text-strong: #f7f7fb;
990 --text-muted: #8b8c9c;
991 --text-faint: #555665;
992 --text-link: #b69dff;
993
994 /* Accent — refined violet (less candy), warm amber as secondary signal */
995 --accent: #8c6dff;
996 --accent-2: #36c5d6;
997 --accent-warm: #ffb45e;
998 --accent-hover: #a48bff;
999 --accent-pressed:#7559e8;
1000 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1001 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
1002 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
1003 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1004
1005 /* Semantic */
1006 --green: #34d399;
1007 --red: #f87171;
1008 --yellow: #fbbf24;
1009 --amber: #fbbf24;
1010 --blue: #60a5fa;
1011
3a5755eClaude1012 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1013 display (headlines), JetBrains Mono for code. All three loaded from
1014 Google Fonts with display:swap so we never block first paint. System
1015 fallbacks remain in place — if the CDN is unreachable the site still
1016 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1017 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1018 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1019 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1020 --mono-feat: 'calt', 'liga', 'ss01';
1021
1022 /* Radius — sharper than before */
1023 --r-sm: 5px;
1024 --r: 7px;
1025 --r-md: 9px;
1026 --r-lg: 12px;
1027 --r-xl: 16px;
1028 --r-2xl: 22px;
1029 --r-full: 9999px;
1030 --radius: 7px;
1031
1032 /* Type scale — bigger display sizes for editorial feel */
1033 --t-xs: 11px;
1034 --t-sm: 13px;
1035 --t-base: 14px;
1036 --t-md: 16px;
1037 --t-lg: 20px;
1038 --t-xl: 28px;
1039 --t-2xl: 40px;
1040 --t-3xl: 56px;
1041 --t-display: 72px;
1042 --t-display-lg:96px;
1043
1044 /* Spacing — 4px base */
2ce1d0bClaude1045 --s-0: 0;
958d26aClaude1046 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1047 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1048 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1049 --s-20:80px; --s-24:96px; --s-32:128px;
1050
1051 /* Elevation — softer + more layered */
1052 --elev-0: 0 0 0 1px var(--border);
1053 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1054 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1055 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1056 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1057 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1058 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1059 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1060
1061 /* Motion */
1062 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1063 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1064 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1065 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1066 --t-fast: 120ms;
1067 --t-base: 200ms;
1068 --t-slow: 360ms;
1069 --t-slower:560ms;
1070
1071 --header-h: 60px;
c63b860Claude1072
1073 /* Block O3 — visual coherence: named token aliases (additive). */
1074 --space-1: var(--s-1);
1075 --space-2: var(--s-2);
1076 --space-3: var(--s-3);
1077 --space-4: var(--s-4);
1078 --space-5: var(--s-5);
1079 --space-6: var(--s-6);
1080 --space-8: var(--s-8);
1081 --space-10: var(--s-10);
1082 --space-12: var(--s-12);
1083 --space-16: var(--s-16);
1084 --space-20: var(--s-20);
1085 --space-24: var(--s-24);
1086 --radius-sm: var(--r-sm);
1087 --radius-md: var(--r-md);
1088 --radius-lg: var(--r-lg);
1089 --radius-xl: var(--r-xl);
1090 --radius-full: var(--r-full);
1091 --font-size-xs: var(--t-xs);
1092 --font-size-sm: var(--t-sm);
1093 --font-size-base: var(--t-base);
1094 --font-size-md: var(--t-md);
1095 --font-size-lg: var(--t-lg);
1096 --font-size-xl: var(--t-xl);
1097 --font-size-2xl: var(--t-2xl);
1098 --font-size-3xl: var(--t-3xl);
1099 --font-size-hero: var(--t-display);
1100 --leading-tight: 1.2;
1101 --leading-snug: 1.35;
1102 --leading-normal: 1.5;
1103 --leading-relaxed: 1.6;
1104 --leading-loose: 1.7;
1105 --z-base: 1;
1106 --z-nav: 10;
1107 --z-sticky: 50;
1108 --z-overlay: 100;
1109 --z-modal: 1000;
1110 --z-toast: 10000;
fc1817aClaude1111 }
1112
6fc53bdClaude1113 :root[data-theme='light'] {
958d26aClaude1114 --bg: #fbfbfc;
4c47454Claude1115 --bg-secondary: #ffffff;
958d26aClaude1116 --bg-tertiary: #f3f3f6;
1117 --bg-elevated: #ffffff;
1118 --bg-surface: #f6f6f9;
1119 --bg-hover: rgba(0,0,0,0.035);
1120 --bg-active: rgba(0,0,0,0.07);
1121 --bg-inset: rgba(0,0,0,0.04);
1122
1123 --border: rgba(15,16,28,0.08);
1124 --border-subtle: rgba(15,16,28,0.04);
1125 --border-strong: rgba(15,16,28,0.16);
1126
1127 --text: #0e1020;
1128 --text-strong: #050617;
1129 --text-muted: #5a5b70;
1130 --text-faint: #8a8b9e;
1131 --text-link: #6d4dff;
1132
1133 --accent: #6d4dff;
1134 --accent-2: #0891b2;
1135 --accent-hover: #5a3df0;
1136 --accent-pressed:#4a30d6;
1137 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1138
1139 --green: #059669;
1140 --red: #dc2626;
4c47454Claude1141 --yellow: #d97706;
958d26aClaude1142
1143 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1144 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1145 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1146 }
1147
1148 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1149 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1150 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1151 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1152 :root[data-theme='light'] .theme-icon-light { display: none; }
1153
fc1817aClaude1154 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1155 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1156
958d26aClaude1157 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1158
1159 body {
1160 font-family: var(--font-sans);
1161 background: var(--bg);
1162 color: var(--text);
cf9178bTest User1163 font-size: 15px;
2ce1d0bClaude1164 line-height: 1.55;
958d26aClaude1165 letter-spacing: -0.011em;
fc1817aClaude1166 min-height: 100vh;
1167 display: flex;
1168 flex-direction: column;
958d26aClaude1169 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1170 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1171 and disables automatic synthesis of bold/italic which can produce
1172 muddier rendering on certain weights. */
1173 -webkit-font-smoothing: antialiased;
1174 -moz-osx-font-smoothing: grayscale;
1175 font-synthesis: none;
1176 }
1177 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1178 line-height inversely with size so display text doesn't feel airy. */
1179 h1, h2, h3, h4, h5, h6 {
1180 font-family: var(--font-display);
1181 color: var(--text-strong);
1182 letter-spacing: -0.022em;
1183 line-height: 1.18;
1184 font-weight: 650;
1185 margin-top: 0;
1186 }
1187 h1 { font-size: 28px; letter-spacing: -0.028em; }
1188 h2 { font-size: 22px; }
1189 h3 { font-size: 18px; letter-spacing: -0.018em; }
1190 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1191 /* Link refinement — underline only on hover/focus, never by default
1192 on internal nav. Prevents the "blue underline soup" look. */
1193 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1194 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1195 a:focus-visible {
1196 outline: none;
1197 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1198 border-radius: 3px;
fc1817aClaude1199 }
1200
958d26aClaude1201 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1202 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1203 body::before {
1204 content: '';
1205 position: fixed;
1206 inset: 0;
1207 pointer-events: none;
958d26aClaude1208 z-index: -2;
2ce1d0bClaude1209 background:
958d26aClaude1210 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1211 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1212 }
1213 body::after {
1214 content: '';
1215 position: fixed;
1216 inset: 0;
1217 pointer-events: none;
1218 z-index: -1;
1219 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1220 background-size: 28px 28px;
1221 background-position: 0 0;
1222 opacity: 0.55;
1223 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1224 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1225 }
1226 :root[data-theme='light'] body::before { opacity: 0.55; }
1227 :root[data-theme='light'] body::after {
1228 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1229 opacity: 0.4;
fc1817aClaude1230 }
2ce1d0bClaude1231
1232 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1233 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1234
958d26aClaude1235 /* Heading scale — confident, editorial, tight tracking */
1236 h1, h2, h3, h4, h5, h6 {
1237 font-family: var(--font-display);
2ce1d0bClaude1238 font-weight: 600;
958d26aClaude1239 letter-spacing: -0.022em;
1240 line-height: 1.18;
1241 color: var(--text-strong);
1242 }
1243 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1244 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1245 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1246 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1247 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1248
1249 /* Editorial display heading utility — used by landing + marketing pages */
1250 .display {
1251 font-family: var(--font-display);
1252 font-size: clamp(40px, 7.5vw, 96px);
1253 line-height: 0.98;
1254 letter-spacing: -0.04em;
1255 font-weight: 600;
1256 color: var(--text-strong);
2ce1d0bClaude1257 }
fc1817aClaude1258
958d26aClaude1259 /* Eyebrow — uppercase mono label that sits above section headings */
1260 .eyebrow {
1261 display: inline-flex;
1262 align-items: center;
1263 gap: 8px;
1264 font-family: var(--font-mono);
1265 font-size: 11px;
1266 font-weight: 500;
1267 letter-spacing: 0.14em;
1268 text-transform: uppercase;
1269 color: var(--accent);
1270 margin-bottom: var(--s-3);
1271 }
1272 .eyebrow::before {
1273 content: '';
1274 width: 18px;
1275 height: 1px;
1276 background: currentColor;
1277 opacity: 0.6;
1278 }
1279
1280 /* Section header — paired eyebrow + title + lede */
1281 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1282 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1283 .section-header h2 {
1284 font-size: clamp(28px, 4vw, 44px);
1285 line-height: 1.05;
1286 letter-spacing: -0.028em;
1287 margin-bottom: var(--s-3);
1288 }
1289 .section-header p {
1290 color: var(--text-muted);
1291 font-size: var(--t-md);
1292 line-height: 1.6;
1293 max-width: 580px;
1294 margin: 0 auto;
1295 }
1296 .section-header.left p { margin-left: 0; }
fc1817aClaude1297
958d26aClaude1298 code, kbd, samp {
2ce1d0bClaude1299 font-family: var(--font-mono);
958d26aClaude1300 font-feature-settings: var(--mono-feat);
1301 }
1302 code {
1303 font-size: 0.9em;
2ce1d0bClaude1304 background: var(--bg-tertiary);
958d26aClaude1305 border: 1px solid var(--border-subtle);
2ce1d0bClaude1306 padding: 1px 6px;
1307 border-radius: var(--r-sm);
1308 color: var(--text);
1309 }
958d26aClaude1310 kbd, .kbd {
1311 display: inline-flex;
1312 align-items: center;
1313 padding: 1px 6px;
1314 font-family: var(--font-mono);
1315 font-size: 11px;
1316 background: var(--bg-elevated);
1317 border: 1px solid var(--border);
1318 border-bottom-width: 2px;
1319 border-radius: 4px;
1320 color: var(--text);
1321 line-height: 1.5;
1322 vertical-align: middle;
1323 }
2ce1d0bClaude1324
958d26aClaude1325 /* Mono utility for technical chrome (paths, IDs, dates) */
1326 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1327 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1328
1329 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1330 .prelaunch-banner {
958d26aClaude1331 position: relative;
2ce1d0bClaude1332 background:
958d26aClaude1333 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1334 var(--bg);
958d26aClaude1335 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1336 color: var(--yellow);
958d26aClaude1337 padding: 7px 24px;
1338 font-family: var(--font-mono);
1339 font-size: 11px;
4a52a98Claude1340 font-weight: 500;
1341 text-align: center;
2ce1d0bClaude1342 line-height: 1.5;
958d26aClaude1343 letter-spacing: 0.04em;
1344 text-transform: uppercase;
1345 }
1346 .prelaunch-banner::before {
1347 content: '◆';
1348 margin-right: 8px;
1349 font-size: 9px;
1350 opacity: 0.7;
1351 vertical-align: 1px;
4a52a98Claude1352 }
1353
cd4f63bTest User1354 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1355 visitors don't miss the "save your work" CTA, but slim enough to
1356 not feel like a modal. */
1357 .playground-banner {
1358 position: relative;
1359 display: flex;
1360 align-items: center;
1361 justify-content: center;
1362 gap: 8px;
1363 background:
1364 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1365 var(--bg);
1366 border-bottom: 1px solid rgba(251,191,36,0.45);
1367 color: var(--yellow, #fbbf24);
1368 padding: 8px 40px 8px 24px;
1369 font-size: 13px;
1370 font-weight: 500;
1371 text-align: center;
1372 line-height: 1.4;
1373 }
1374 .playground-banner-icon { font-size: 14px; }
1375 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1376 .playground-banner-countdown { font-weight: 600; }
1377 .playground-banner-cta {
1378 margin-left: 4px;
1379 color: var(--yellow, #fbbf24);
1380 text-decoration: underline;
1381 font-weight: 600;
1382 }
1383 .playground-banner-cta:hover { opacity: 0.85; }
1384 .playground-banner-dismiss {
1385 position: absolute;
1386 top: 50%;
1387 right: 12px;
1388 transform: translateY(-50%);
1389 background: transparent;
1390 border: none;
1391 color: var(--text-muted, #8b949e);
1392 font-size: 18px;
1393 line-height: 1;
1394 cursor: pointer;
1395 padding: 0 4px;
1396 }
1397 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1398
958d26aClaude1399 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1400 header {
2ce1d0bClaude1401 position: sticky;
1402 top: 0;
1403 z-index: 100;
fc1817aClaude1404 border-bottom: 1px solid var(--border);
2ce1d0bClaude1405 padding: 0 24px;
1406 height: var(--header-h);
958d26aClaude1407 background: rgba(8,9,15,0.72);
1408 backdrop-filter: saturate(180%) blur(18px);
1409 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1410 }
958d26aClaude1411 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1412
06d5ffeClaude1413 header nav {
1414 display: flex;
1415 align-items: center;
958d26aClaude1416 gap: 18px;
1417 max-width: 1240px;
06d5ffeClaude1418 margin: 0 auto;
2ce1d0bClaude1419 height: 100%;
1420 }
1421 .logo {
958d26aClaude1422 font-family: var(--font-display);
1423 font-size: 16px;
2ce1d0bClaude1424 font-weight: 700;
958d26aClaude1425 letter-spacing: -0.025em;
1426 color: var(--text-strong);
2ce1d0bClaude1427 display: inline-flex;
1428 align-items: center;
958d26aClaude1429 gap: 9px;
1430 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1431 }
2ce1d0bClaude1432 .logo::before {
1433 content: '';
958d26aClaude1434 width: 20px; height: 20px;
1435 border-radius: 6px;
2ce1d0bClaude1436 background: var(--accent-gradient);
958d26aClaude1437 box-shadow:
1438 inset 0 1px 0 rgba(255,255,255,0.25),
1439 0 0 0 1px rgba(140,109,255,0.45),
1440 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1441 flex-shrink: 0;
958d26aClaude1442 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1443 }
1444 .logo:hover { text-decoration: none; color: var(--text-strong); }
1445 .logo:hover::before {
1446 transform: rotate(8deg) scale(1.05);
1447 box-shadow:
1448 inset 0 1px 0 rgba(255,255,255,0.30),
1449 0 0 0 1px rgba(140,109,255,0.55),
1450 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1451 }
fc1817aClaude1452
2ce1d0bClaude1453 .nav-search {
1454 flex: 1;
958d26aClaude1455 max-width: 360px;
1456 margin: 0 4px 0 8px;
1457 position: relative;
2ce1d0bClaude1458 }
1459 .nav-search input {
1460 width: 100%;
958d26aClaude1461 padding: 7px 12px 7px 32px;
2ce1d0bClaude1462 background: var(--bg-tertiary);
1463 border: 1px solid var(--border);
1464 border-radius: var(--r-sm);
1465 color: var(--text);
1466 font-family: var(--font-sans);
1467 font-size: var(--t-sm);
958d26aClaude1468 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1469 }
1470 .nav-search::before {
1471 content: '';
1472 position: absolute;
1473 left: 11px; top: 50%;
1474 transform: translateY(-50%);
1475 width: 12px; height: 12px;
1476 border: 1.5px solid var(--text-faint);
1477 border-radius: 50%;
1478 pointer-events: none;
1479 }
1480 .nav-search::after {
1481 content: '';
1482 position: absolute;
1483 left: 19px; top: calc(50% + 4px);
1484 width: 5px; height: 1.5px;
1485 background: var(--text-faint);
1486 transform: rotate(45deg);
1487 pointer-events: none;
2ce1d0bClaude1488 }
1489 .nav-search input::placeholder { color: var(--text-faint); }
1490 .nav-search input:focus {
1491 outline: none;
1492 background: var(--bg-secondary);
958d26aClaude1493 border-color: var(--border-focus);
1494 box-shadow: var(--ring);
2ce1d0bClaude1495 }
06d5ffeClaude1496
958d26aClaude1497 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1498
1499 /* Block N3 — site-admin deploy status pill */
1500 .nav-deploy-pill {
1501 display: inline-flex;
1502 align-items: center;
1503 gap: 6px;
1504 padding: 4px 10px;
1505 margin: 0 6px 0 0;
1506 border-radius: 9999px;
1507 font-size: 11px;
1508 font-weight: 600;
1509 line-height: 1;
1510 color: var(--text-strong);
1511 background: var(--bg-elevated);
1512 border: 1px solid var(--border);
1513 text-decoration: none;
1514 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1515 }
1516 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1517 .nav-deploy-pill .deploy-pill-dot {
1518 display: inline-block;
1519 width: 8px; height: 8px;
1520 border-radius: 50%;
1521 background: #6b7280;
1522 }
1523 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1524 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1525 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1526 .deploy-pill-progress .deploy-pill-dot {
1527 background: #fbbf24;
1528 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1529 animation: deployPillPulse 1.2s ease-in-out infinite;
1530 }
1531 @keyframes deployPillPulse {
1532 0%, 100% { opacity: 1; transform: scale(1); }
1533 50% { opacity: 0.45; transform: scale(0.8); }
1534 }
1535 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1536
c6018a5Claude1537 /* ── AI dropdown (nav consolidation) ── */
1538 .nav-ai-dropdown {
1539 position: relative;
1540 display: inline-flex;
1541 align-items: center;
1542 }
1543 .nav-ai-trigger {
1544 background: transparent;
1545 border: 0;
1546 font: inherit;
1547 cursor: pointer;
1548 color: var(--text-muted);
1549 font-size: var(--t-sm);
1550 font-weight: 500;
1551 padding: 7px 11px;
1552 border-radius: var(--r-sm);
1553 line-height: 1.2;
1554 }
1555 .nav-ai-trigger:hover {
1556 color: var(--text-strong);
1557 background: var(--bg-hover);
1558 }
1559 .nav-ai-menu {
1560 position: absolute;
1561 top: calc(100% + 6px);
1562 right: 0;
1563 min-width: 220px;
1564 background: var(--bg-secondary);
1565 border: 1px solid var(--border-strong);
1566 border-radius: 10px;
1567 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1568 padding: 6px;
1569 display: none;
1570 z-index: var(--z-overlay, 100);
1571 }
1572 .nav-ai-dropdown:hover .nav-ai-menu,
1573 .nav-ai-dropdown.is-open .nav-ai-menu,
1574 .nav-ai-dropdown:focus-within .nav-ai-menu {
1575 display: block;
1576 }
1577 .nav-ai-item {
1578 display: flex;
1579 flex-direction: column;
1580 gap: 1px;
1581 padding: 8px 10px;
1582 border-radius: 6px;
1583 color: var(--text);
1584 text-decoration: none;
1585 transition: background var(--t-fast) var(--ease);
1586 }
1587 .nav-ai-item:hover {
1588 background: var(--bg-hover);
1589 text-decoration: none;
1590 color: var(--text-strong);
1591 }
1592 .nav-ai-item-label {
1593 font-size: var(--t-sm);
1594 font-weight: 600;
1595 color: var(--text-strong);
1596 }
1597 .nav-ai-item-sub {
1598 font-size: 11.5px;
1599 color: var(--text-muted);
1600 }
1601
2ce1d0bClaude1602 .nav-link {
958d26aClaude1603 position: relative;
2ce1d0bClaude1604 color: var(--text-muted);
1605 font-size: var(--t-sm);
1606 font-weight: 500;
958d26aClaude1607 padding: 7px 11px;
2ce1d0bClaude1608 border-radius: var(--r-sm);
958d26aClaude1609 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1610 }
1611 .nav-link:hover {
958d26aClaude1612 color: var(--text-strong);
2ce1d0bClaude1613 background: var(--bg-hover);
1614 text-decoration: none;
1615 }
958d26aClaude1616 .nav-link.active { color: var(--text-strong); }
1617 .nav-link.active::after {
1618 content: '';
1619 position: absolute;
1620 left: 11px; right: 11px;
1621 bottom: -1px;
1622 height: 2px;
1623 background: var(--accent-gradient);
1624 border-radius: 2px;
1625 }
2ce1d0bClaude1626 .nav-user {
958d26aClaude1627 color: var(--text-strong);
2ce1d0bClaude1628 font-weight: 600;
1629 font-size: var(--t-sm);
1630 padding: 6px 10px;
1631 border-radius: var(--r-sm);
958d26aClaude1632 margin-left: 6px;
2ce1d0bClaude1633 transition: background var(--t-fast) var(--ease);
1634 }
958d26aClaude1635 .nav-user::before {
1636 content: '';
1637 display: inline-block;
1638 width: 8px; height: 8px;
1639 background: var(--green);
1640 border-radius: 50%;
1641 margin-right: 7px;
1642 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1643 vertical-align: 1px;
1644 }
2ce1d0bClaude1645 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1646
2ce1d0bClaude1647 main {
958d26aClaude1648 max-width: 1240px;
2ce1d0bClaude1649 margin: 0 auto;
958d26aClaude1650 padding: 36px 24px 80px;
2ce1d0bClaude1651 flex: 1;
1652 width: 100%;
ed6e438Claude1653 /* 2026 polish — subtle entrance animation on every page load.
1654 Content fades up 4px over 360ms, giving the site that "alive"
1655 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1656 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1657 }
1658 @keyframes gxMainEnter {
1659 from { opacity: 0; transform: translateY(4px); }
1660 to { opacity: 1; transform: translateY(0); }
1661 }
1662 @media (prefers-reduced-motion: reduce) {
1663 main { animation: none; }
1664 }
1665 /* 2026 polish — accent focus ring across all focusable elements.
1666 The default browser ring is utilitarian; this is the same width
1667 but tinted to the brand accent so keyboard navigation feels
1668 intentional, not jarring. :focus-visible only — mouse users
1669 never see it. */
1670 :focus-visible {
1671 outline: none;
1672 }
1673 a:focus-visible,
1674 button:focus-visible,
1675 input:focus-visible,
1676 select:focus-visible,
1677 textarea:focus-visible,
1678 [tabindex]:focus-visible {
1679 outline: 2px solid rgba(140, 109, 255, 0.55);
1680 outline-offset: 2px;
1681 border-radius: 4px;
2ce1d0bClaude1682 }
fc1817aClaude1683
958d26aClaude1684 /* Editorial footer: link grid + tagline row */
fc1817aClaude1685 footer {
1686 border-top: 1px solid var(--border);
958d26aClaude1687 padding: 56px 24px 40px;
fc1817aClaude1688 color: var(--text-muted);
958d26aClaude1689 font-size: var(--t-sm);
1690 background:
1691 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1692 var(--bg);
1693 }
1694 footer .footer-inner {
1695 max-width: 1240px;
1696 margin: 0 auto;
1697 display: grid;
1698 grid-template-columns: 1fr auto;
1699 gap: 48px;
1700 align-items: start;
1701 }
1702 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1703 footer .footer-tag {
1704 color: var(--text-muted);
1705 font-size: var(--t-sm);
1706 max-width: 320px;
1707 line-height: 1.55;
1708 }
1709 footer .footer-links {
1710 display: grid;
1711 grid-template-columns: repeat(3, minmax(120px, auto));
1712 gap: 0 56px;
1713 }
1714 footer .footer-col-title {
1715 font-family: var(--font-mono);
1716 font-size: 11px;
1717 text-transform: uppercase;
1718 letter-spacing: 0.14em;
1719 color: var(--text-faint);
1720 margin-bottom: var(--s-3);
1721 }
1722 footer .footer-col a {
1723 display: block;
1724 color: var(--text-muted);
1725 font-size: var(--t-sm);
1726 padding: 5px 0;
1727 transition: color var(--t-fast) var(--ease);
1728 }
1729 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1730 footer .footer-bottom {
1731 max-width: 1240px;
1732 margin: 40px auto 0;
1733 padding-top: 24px;
1734 border-top: 1px solid var(--border-subtle);
1735 display: flex;
1736 justify-content: space-between;
1737 align-items: center;
2ce1d0bClaude1738 color: var(--text-faint);
1739 font-size: var(--t-xs);
958d26aClaude1740 font-family: var(--font-mono);
1741 letter-spacing: 0.02em;
1742 }
1743 footer .footer-bottom a { color: var(--text-faint); }
1744 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1745 footer .footer-build {
1746 display: inline-flex;
1747 align-items: center;
1748 gap: 6px;
1749 color: var(--text-faint);
1750 font-family: var(--font-mono);
1751 font-size: 11px;
1752 cursor: help;
1753 }
1754 footer .footer-build-dot {
1755 width: 6px; height: 6px;
1756 border-radius: 50%;
1757 background: var(--green);
1758 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1759 animation: footer-build-pulse 2.4s ease-in-out infinite;
1760 }
1761 @keyframes footer-build-pulse {
1762 0%, 100% { opacity: 0.6; }
1763 50% { opacity: 1; }
1764 }
958d26aClaude1765 @media (max-width: 768px) {
1766 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1767 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1768 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1769 }
1770
2ce1d0bClaude1771 /* ============================================================ */
1772 /* Buttons */
1773 /* ============================================================ */
dc26881CC LABS App1774 /* ============================================================ */
1775 /* Buttons — Block U2 senior polish pass. */
1776 /* Rules: */
1777 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1778 /* · active presses back down to 0 (80ms — faster on press) */
1779 /* · focus-visible uses a soft box-shadow ring (no outline) */
1780 /* · primary gradient shifts position on hover for a slow */
1781 /* 600ms shimmer */
1782 /* · disabled never lifts and never animates */
1783 /* ============================================================ */
06d5ffeClaude1784 .btn {
1785 display: inline-flex;
1786 align-items: center;
2ce1d0bClaude1787 justify-content: center;
958d26aClaude1788 gap: 7px;
2ce1d0bClaude1789 padding: 7px 14px;
1790 border-radius: var(--r-sm);
958d26aClaude1791 font-family: var(--font-sans);
2ce1d0bClaude1792 font-size: var(--t-sm);
06d5ffeClaude1793 font-weight: 500;
1794 border: 1px solid var(--border);
2ce1d0bClaude1795 background: var(--bg-elevated);
06d5ffeClaude1796 color: var(--text);
1797 cursor: pointer;
1798 text-decoration: none;
958d26aClaude1799 line-height: 1.25;
1800 letter-spacing: -0.008em;
dc26881CC LABS App1801 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1802 Listed once on the base rule so :active can override only the
1803 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1804 transition:
dc26881CC LABS App1805 background 180ms ease,
1806 border-color 180ms ease,
1807 transform 180ms ease,
1808 box-shadow 180ms ease,
1809 color 180ms ease;
2ce1d0bClaude1810 user-select: none;
1811 white-space: nowrap;
958d26aClaude1812 position: relative;
06d5ffeClaude1813 }
2ce1d0bClaude1814 .btn:hover {
1815 background: var(--bg-surface);
1816 border-color: var(--border-strong);
958d26aClaude1817 color: var(--text-strong);
2ce1d0bClaude1818 text-decoration: none;
dc26881CC LABS App1819 /* U2 — universal hover lift + soft accent drop shadow. */
1820 transform: translateY(-1px);
1821 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1822 }
1823 .btn:active {
1824 transform: translateY(0);
1825 transition-duration: 80ms;
1826 }
1827 /* U2 — soft modern focus ring via box-shadow, not outline. */
1828 .btn:focus-visible {
1829 outline: none;
1830 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1831 }
1832
1833 .btn-primary {
1834 background: var(--accent-gradient);
dc26881CC LABS App1835 background-size: 200% 100%;
1836 background-position: 0% 50%;
2ce1d0bClaude1837 border-color: transparent;
1838 color: #fff;
1839 font-weight: 600;
958d26aClaude1840 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1841 box-shadow:
958d26aClaude1842 inset 0 1px 0 rgba(255,255,255,0.22),
1843 inset 0 -1px 0 rgba(0,0,0,0.10),
1844 0 1px 2px rgba(0,0,0,0.40),
1845 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1846 /* U2 — slower 600ms transition on background-position so the
1847 primary CTA shimmers when the cursor lands. */
1848 transition:
1849 background-position 600ms ease,
1850 transform 180ms ease,
1851 box-shadow 180ms ease,
1852 color 180ms ease;
06d5ffeClaude1853 }
958d26aClaude1854 .btn-primary::before {
1855 content: '';
1856 position: absolute;
1857 inset: 0;
1858 border-radius: inherit;
1859 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1860 opacity: 0;
1861 transition: opacity var(--t-fast) var(--ease);
1862 pointer-events: none;
2ce1d0bClaude1863 }
1864 .btn-primary:hover {
958d26aClaude1865 color: #fff;
2ce1d0bClaude1866 background: var(--accent-gradient);
dc26881CC LABS App1867 background-size: 200% 100%;
1868 background-position: 100% 50%;
958d26aClaude1869 border-color: transparent;
dc26881CC LABS App1870 transform: translateY(-1px);
2ce1d0bClaude1871 box-shadow:
958d26aClaude1872 inset 0 1px 0 rgba(255,255,255,0.30),
1873 inset 0 -1px 0 rgba(0,0,0,0.10),
1874 0 6px 18px -4px rgba(140,109,255,0.45),
1875 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1876 }
958d26aClaude1877 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App1878 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
1879 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
1880 .btn-primary:focus-visible {
1881 box-shadow:
1882 inset 0 1px 0 rgba(255,255,255,0.22),
1883 0 0 0 3px rgba(140,109,255,0.35);
1884 }
2ce1d0bClaude1885
1886 .btn-danger {
1887 background: transparent;
958d26aClaude1888 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude1889 color: var(--red);
1890 }
1891 .btn-danger:hover {
958d26aClaude1892 background: rgba(248,113,113,0.08);
2ce1d0bClaude1893 border-color: var(--red);
958d26aClaude1894 color: var(--red);
dc26881CC LABS App1895 transform: translateY(-1px);
1896 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude1897 }
dc26881CC LABS App1898 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude1899
1900 .btn-ghost {
1901 background: transparent;
1902 border-color: transparent;
1903 color: var(--text-muted);
1904 }
1905 .btn-ghost:hover {
1906 background: var(--bg-hover);
958d26aClaude1907 color: var(--text-strong);
2ce1d0bClaude1908 border-color: var(--border);
dc26881CC LABS App1909 transform: translateY(-1px);
1910 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude1911 }
1912
958d26aClaude1913 .btn-secondary {
1914 background: var(--bg-elevated);
1915 border-color: var(--border-strong);
1916 color: var(--text-strong);
1917 }
1918 .btn-secondary:hover {
1919 background: var(--bg-surface);
1920 border-color: var(--border-strong);
dc26881CC LABS App1921 transform: translateY(-1px);
1922 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude1923 }
1924
1925 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
1926 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
1927 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
1928 .btn-block { width: 100%; }
2ce1d0bClaude1929
dc26881CC LABS App1930 /* U2 — disabled never lifts, never shimmers, never glows. */
1931 .btn:disabled,
1932 .btn[aria-disabled='true'],
1933 .btn:disabled:hover,
1934 .btn[aria-disabled='true']:hover {
1935 opacity: 0.5;
2ce1d0bClaude1936 cursor: not-allowed;
1937 pointer-events: none;
dc26881CC LABS App1938 transform: none;
1939 box-shadow: none;
1940 }
1941 @media (prefers-reduced-motion: reduce) {
1942 .btn,
1943 .btn:hover,
1944 .btn:active,
1945 .btn-primary,
1946 .btn-primary:hover {
1947 transform: none;
1948 transition: background-color 80ms linear, color 80ms linear;
1949 }
2ce1d0bClaude1950 }
1951
1952 /* ============================================================ */
1953 /* Forms */
1954 /* ============================================================ */
1955 .form-group { margin-bottom: 20px; }
1956 .form-group label {
1957 display: block;
1958 font-size: var(--t-sm);
1959 font-weight: 500;
1960 margin-bottom: 6px;
1961 color: var(--text);
1962 letter-spacing: -0.005em;
1963 }
1964 .form-group input,
1965 .form-group textarea,
1966 .form-group select,
1967 input[type='text'], input[type='email'], input[type='password'],
1968 input[type='url'], input[type='search'], input[type='number'],
1969 textarea, select {
06d5ffeClaude1970 width: 100%;
2ce1d0bClaude1971 padding: 9px 12px;
1972 background: var(--bg-secondary);
06d5ffeClaude1973 border: 1px solid var(--border);
2ce1d0bClaude1974 border-radius: var(--r-sm);
06d5ffeClaude1975 color: var(--text);
2ce1d0bClaude1976 font-size: var(--t-sm);
06d5ffeClaude1977 font-family: var(--font-sans);
2ce1d0bClaude1978 transition:
1979 border-color var(--t-fast) var(--ease),
1980 background var(--t-fast) var(--ease),
1981 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude1982 }
2ce1d0bClaude1983 .form-group input::placeholder, textarea::placeholder, input::placeholder {
1984 color: var(--text-faint);
06d5ffeClaude1985 }
2ce1d0bClaude1986 .form-group input:hover, textarea:hover, select:hover,
1987 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
1988 border-color: var(--border-strong);
1989 }
1990 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
1991 input:focus, textarea:focus, select:focus {
06d5ffeClaude1992 outline: none;
2ce1d0bClaude1993 background: var(--bg);
1994 border-color: var(--border-focus);
1995 box-shadow: var(--ring);
06d5ffeClaude1996 }
2ce1d0bClaude1997 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude1998 .input-disabled { opacity: 0.5; cursor: not-allowed; }
1999
2ce1d0bClaude2000 /* ============================================================ */
2001 /* Auth (register / login / verify) */
2002 /* ============================================================ */
2003 .auth-container {
98f45b4Claude2004 /* 2026 polish — wider, more generous, with a subtle accent-glow
2005 border and gradient top-edge so it reads as a premium product
2006 gateway, not a stock form. The 480px width feels intentional
2007 (not cramped, not endless). */
2008 max-width: 480px;
2009 margin: 72px auto;
2010 padding: 40px 40px 36px;
2ce1d0bClaude2011 background: var(--bg-elevated);
2012 border: 1px solid var(--border);
98f45b4Claude2013 border-radius: 16px;
2014 box-shadow:
2015 var(--elev-2),
2016 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2017 position: relative;
2018 overflow: hidden;
2019 }
2020 .auth-container::before {
2021 /* Hairline gradient accent on the top edge — signals 'AI-native'
2022 without shouting. Pointer-events disabled so it never interferes
2023 with form interactions. */
2024 content: '';
2025 position: absolute;
2026 top: 0;
2027 left: 0;
2028 right: 0;
2029 height: 2px;
2030 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2031 opacity: 0.7;
2032 pointer-events: none;
2ce1d0bClaude2033 }
2034 .auth-container h2 {
98f45b4Claude2035 margin: 0 0 8px;
2036 font-size: 28px;
2037 font-weight: 700;
2038 font-family: var(--font-display);
2039 letter-spacing: -0.025em;
2040 color: var(--text-strong);
2041 line-height: 1.15;
2042 }
2043 .auth-container .auth-subtitle {
2044 color: var(--text-muted);
2045 font-size: 14.5px;
2046 line-height: 1.5;
2047 margin: 0 0 24px;
2ce1d0bClaude2048 }
2049 .auth-container > p {
2050 color: var(--text-muted);
2051 font-size: var(--t-sm);
2052 margin-bottom: 24px;
2053 }
98f45b4Claude2054 .auth-container .btn-primary {
2055 width: 100%;
2056 padding: 12px 16px;
2057 font-size: 15px;
2058 font-weight: 600;
2059 margin-top: 4px;
2060 }
582cdacClaude2061
2062 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2063 with a brand-coloured logo on the left and a label centred-trailing.
2064 Hover lifts 1px with a subtle shadow — matches the rest of the
2065 button system but reads as a brand-affiliated action, not a brand-
2066 coloured primary CTA. */
2067 .auth-container .oauth-btn {
2068 display: flex;
2069 align-items: center;
2070 justify-content: center;
2071 gap: 10px;
2072 width: 100%;
2073 padding: 11px 16px;
2074 background: var(--bg-surface, var(--bg-elevated));
2075 border: 1px solid var(--border);
2076 border-radius: var(--r-md, 8px);
2077 color: var(--text-strong);
2078 font-family: var(--font-sans);
2079 font-size: 14.5px;
2080 font-weight: 500;
2081 text-decoration: none;
2082 transition:
2083 transform var(--t-base, 180ms) var(--ease, ease),
2084 box-shadow var(--t-base, 180ms) var(--ease, ease),
2085 background var(--t-fast, 120ms) var(--ease, ease),
2086 border-color var(--t-fast, 120ms) var(--ease, ease);
2087 }
2088 .auth-container .oauth-btn:hover {
2089 transform: translateY(-1px);
2090 background: var(--bg-hover);
2091 border-color: var(--text-muted);
2092 color: var(--text-strong);
2093 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2094 text-decoration: none;
2095 }
2096 .auth-container .oauth-btn:focus-visible {
2097 outline: 2px solid rgba(140, 109, 255, 0.55);
2098 outline-offset: 2px;
2099 }
2100 .auth-container .oauth-btn .oauth-icon {
2101 flex-shrink: 0;
2102 }
2103 /* GitHub icon adopts the text colour so it reads in both themes. */
2104 .auth-container .oauth-github .oauth-icon {
2105 color: var(--text-strong);
2106 }
2107 /* Google logo uses the official 4-colour treatment via inline SVG fill
2108 attributes — nothing to override here. */
2109 /* "or" divider between the password form and provider buttons */
2110 .auth-container .auth-divider {
2111 display: flex;
2112 align-items: center;
2113 gap: 12px;
2114 margin: 20px 0 12px;
2115 color: var(--text-faint);
2116 font-size: 12px;
2117 letter-spacing: 0.08em;
2118 text-transform: uppercase;
2119 }
2120 .auth-container .auth-divider::before,
2121 .auth-container .auth-divider::after {
2122 content: '';
2123 flex: 1;
2124 height: 1px;
2125 background: var(--border);
2126 }
06d5ffeClaude2127 .auth-error {
958d26aClaude2128 background: rgba(248,113,113,0.08);
2129 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2130 color: var(--red);
2ce1d0bClaude2131 padding: 10px 14px;
2132 border-radius: var(--r-sm);
06d5ffeClaude2133 margin-bottom: 16px;
2ce1d0bClaude2134 font-size: var(--t-sm);
06d5ffeClaude2135 }
2136 .auth-success {
958d26aClaude2137 background: rgba(52,211,153,0.08);
2138 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2139 color: var(--green);
2ce1d0bClaude2140 padding: 10px 14px;
2141 border-radius: var(--r-sm);
06d5ffeClaude2142 margin-bottom: 16px;
2ce1d0bClaude2143 font-size: var(--t-sm);
2144 }
2145 .auth-switch {
2146 margin-top: 20px;
2147 font-size: var(--t-sm);
2148 color: var(--text-muted);
2149 text-align: center;
2150 }
2151 .banner {
2152 background: var(--accent-gradient-faint);
958d26aClaude2153 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2154 color: var(--text);
2155 padding: 10px 14px;
2156 border-radius: var(--r-sm);
2157 font-size: var(--t-sm);
06d5ffeClaude2158 }
2159
2ce1d0bClaude2160 /* ============================================================ */
2161 /* Settings */
2162 /* ============================================================ */
2163 .settings-container { max-width: 720px; }
2164 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2165 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2166 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2167 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2168 .ssh-keys-list { margin-bottom: 24px; }
2169 .ssh-key-item {
2170 display: flex;
2171 justify-content: space-between;
2172 align-items: center;
2ce1d0bClaude2173 padding: 14px 16px;
06d5ffeClaude2174 border: 1px solid var(--border);
2ce1d0bClaude2175 border-radius: var(--r-md);
06d5ffeClaude2176 margin-bottom: 8px;
2ce1d0bClaude2177 background: var(--bg-elevated);
2178 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2179 }
2ce1d0bClaude2180 .ssh-key-item:hover { border-color: var(--border-strong); }
2181 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2182 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2183
2ce1d0bClaude2184 /* ============================================================ */
2185 /* Repo header + nav */
2186 /* ============================================================ */
fc1817aClaude2187 .repo-header {
2188 display: flex;
2189 align-items: center;
debcf27Claude2190 gap: 12px;
2191 margin-bottom: 22px;
2192 }
2193 .repo-header-title {
2194 display: flex;
2195 align-items: center;
2196 gap: 10px;
2197 font-family: var(--font-display);
2198 font-size: 24px;
2199 letter-spacing: -0.025em;
2200 flex-wrap: wrap;
2201 }
2202 .repo-header .owner {
2203 color: var(--text-muted);
2204 font-weight: 500;
2205 transition: color var(--t-fast) var(--ease);
2206 }
2207 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2208 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2209 .repo-header .name {
2210 color: var(--text-strong);
2211 font-weight: 700;
2212 letter-spacing: -0.028em;
fc1817aClaude2213 }
2ce1d0bClaude2214 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2215 .repo-header-fork {
2216 font-family: var(--font-mono);
2217 font-size: 11px;
2218 color: var(--text-muted);
2219 margin-top: 4px;
2220 letter-spacing: 0.01em;
2221 }
2222 .repo-header-fork a { color: var(--text-muted); }
2223 .repo-header-fork a:hover { color: var(--accent); }
2224 .repo-header-pill {
2225 display: inline-flex;
2226 align-items: center;
2227 padding: 2px 10px;
2228 border-radius: var(--r-full);
2229 font-family: var(--font-mono);
2230 font-size: 10px;
2231 font-weight: 600;
2232 letter-spacing: 0.12em;
2233 text-transform: uppercase;
2234 line-height: 1.6;
2235 vertical-align: 4px;
2236 }
2237 .repo-header-pill-archived {
2238 background: rgba(251,191,36,0.10);
2239 color: var(--yellow);
2240 border: 1px solid rgba(251,191,36,0.30);
2241 }
2242 .repo-header-pill-template {
2243 background: var(--accent-gradient-faint);
2244 color: var(--accent);
2245 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2246 }
06d5ffeClaude2247 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2248
2249 .repo-nav {
2250 display: flex;
debcf27Claude2251 gap: 1px;
fc1817aClaude2252 border-bottom: 1px solid var(--border);
debcf27Claude2253 margin-bottom: 28px;
2ce1d0bClaude2254 overflow-x: auto;
2255 scrollbar-width: thin;
fc1817aClaude2256 }
2ce1d0bClaude2257 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2258 .repo-nav a {
debcf27Claude2259 position: relative;
2260 padding: 11px 14px;
fc1817aClaude2261 color: var(--text-muted);
2262 border-bottom: 2px solid transparent;
2ce1d0bClaude2263 font-size: var(--t-sm);
2264 font-weight: 500;
2265 margin-bottom: -1px;
debcf27Claude2266 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2267 white-space: nowrap;
2268 }
debcf27Claude2269 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2270 .repo-nav a.active {
debcf27Claude2271 color: var(--text-strong);
2272 font-weight: 600;
2273 }
2274 .repo-nav a.active::after {
2275 content: '';
2276 position: absolute;
2277 left: 14px;
2278 right: 14px;
2279 bottom: -1px;
2280 height: 2px;
2281 background: var(--accent-gradient);
2282 border-radius: 2px;
2283 }
2284 /* AI links in the right-side cluster — sparkle accent */
2285 .repo-nav-ai {
2286 color: var(--accent) !important;
2287 font-weight: 500;
2288 }
2289 .repo-nav-ai:hover {
2290 color: var(--accent-hover) !important;
2291 background: var(--accent-gradient-faint) !important;
2292 }
2293 .repo-nav-ai.active {
2294 color: var(--accent-hover) !important;
2ce1d0bClaude2295 font-weight: 600;
fc1817aClaude2296 }
2297
2ce1d0bClaude2298 .breadcrumb {
2299 display: flex;
debcf27Claude2300 gap: 6px;
2ce1d0bClaude2301 align-items: center;
debcf27Claude2302 margin-bottom: 18px;
2ce1d0bClaude2303 color: var(--text-muted);
2304 font-size: var(--t-sm);
2305 font-family: var(--font-mono);
debcf27Claude2306 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2307 }
2308 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2309 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2310 .breadcrumb strong {
2311 color: var(--text-strong);
2312 font-weight: 600;
fc1817aClaude2313 }
2314
debcf27Claude2315 /* Page header — eyebrow + title + optional actions row.
2316 Use on dashboard, settings, admin, any "section landing" page. */
2317 .page-header {
2318 display: flex;
2319 align-items: flex-end;
2320 justify-content: space-between;
2321 gap: 16px;
2322 margin-bottom: 28px;
2323 padding-bottom: 20px;
2324 border-bottom: 1px solid var(--border-subtle);
2325 flex-wrap: wrap;
2326 }
2327 .page-header-text { flex: 1; min-width: 280px; }
2328 .page-header .eyebrow { margin-bottom: var(--s-2); }
2329 .page-header h1 {
2330 font-family: var(--font-display);
2331 font-size: clamp(24px, 3vw, 36px);
2332 line-height: 1.1;
2333 letter-spacing: -0.028em;
2334 margin-bottom: 6px;
2335 }
2336 .page-header p {
2337 color: var(--text-muted);
2338 font-size: var(--t-sm);
2339 line-height: 1.55;
2340 max-width: 640px;
2341 }
2342 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2343
2ce1d0bClaude2344 /* ============================================================ */
2345 /* File browser table */
2346 /* ============================================================ */
2347 .file-table {
2348 width: 100%;
2349 border: 1px solid var(--border);
2350 border-radius: var(--r-md);
2351 overflow: hidden;
2352 background: var(--bg-elevated);
debcf27Claude2353 border-collapse: collapse;
2ce1d0bClaude2354 }
debcf27Claude2355 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2356 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2357 .file-table td {
2358 padding: 9px 16px;
2359 font-size: var(--t-sm);
2360 font-family: var(--font-mono);
2361 font-feature-settings: var(--mono-feat);
2362 }
2ce1d0bClaude2363 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2364 .file-icon {
2365 width: 22px;
2366 color: var(--text-faint);
2367 font-size: 13px;
2368 text-align: center;
2369 }
2370 .file-name a {
2371 color: var(--text);
2372 font-weight: 500;
2373 transition: color var(--t-fast) var(--ease);
2374 }
2375 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2376
2ce1d0bClaude2377 /* ============================================================ */
2378 /* Blob view */
2379 /* ============================================================ */
fc1817aClaude2380 .blob-view {
2381 border: 1px solid var(--border);
2ce1d0bClaude2382 border-radius: var(--r-md);
fc1817aClaude2383 overflow: hidden;
2ce1d0bClaude2384 background: var(--bg-elevated);
fc1817aClaude2385 }
2386 .blob-header {
2387 background: var(--bg-secondary);
2ce1d0bClaude2388 padding: 10px 16px;
fc1817aClaude2389 border-bottom: 1px solid var(--border);
2ce1d0bClaude2390 font-size: var(--t-sm);
fc1817aClaude2391 color: var(--text-muted);
06d5ffeClaude2392 display: flex;
2393 justify-content: space-between;
2394 align-items: center;
fc1817aClaude2395 }
2396 .blob-code {
2397 overflow-x: auto;
2398 font-family: var(--font-mono);
2ce1d0bClaude2399 font-size: var(--t-sm);
2400 line-height: 1.65;
fc1817aClaude2401 }
2402 .blob-code table { width: 100%; border-collapse: collapse; }
2403 .blob-code .line-num {
2404 width: 1%;
2ce1d0bClaude2405 min-width: 56px;
2406 padding: 0 14px;
fc1817aClaude2407 text-align: right;
2ce1d0bClaude2408 color: var(--text-faint);
fc1817aClaude2409 user-select: none;
2410 white-space: nowrap;
2411 border-right: 1px solid var(--border);
2412 }
2ce1d0bClaude2413 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2414 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2415
2ce1d0bClaude2416 /* ============================================================ */
2417 /* Commits + diffs */
2418 /* ============================================================ */
2419 .commit-list {
2420 border: 1px solid var(--border);
2421 border-radius: var(--r-md);
2422 overflow: hidden;
2423 background: var(--bg-elevated);
2424 }
fc1817aClaude2425 .commit-item {
2426 display: flex;
2427 justify-content: space-between;
2428 align-items: center;
debcf27Claude2429 padding: 14px 18px;
2430 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2431 transition: background var(--t-fast) var(--ease);
fc1817aClaude2432 }
2433 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2434 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2435 .commit-message {
2436 font-size: var(--t-sm);
2437 font-weight: 500;
2438 line-height: 1.45;
2439 color: var(--text-strong);
2440 letter-spacing: -0.005em;
2441 }
2442 .commit-meta {
2443 font-family: var(--font-mono);
2444 font-size: 11px;
2445 color: var(--text-muted);
2446 margin-top: 5px;
2447 letter-spacing: 0.01em;
2448 }
fc1817aClaude2449 .commit-sha {
2450 font-family: var(--font-mono);
debcf27Claude2451 font-feature-settings: var(--mono-feat);
2452 font-size: 11px;
2453 padding: 4px 9px;
fc1817aClaude2454 background: var(--bg-tertiary);
2455 border: 1px solid var(--border);
2ce1d0bClaude2456 border-radius: var(--r-sm);
debcf27Claude2457 color: var(--accent);
2458 font-weight: 600;
2459 letter-spacing: 0.02em;
2ce1d0bClaude2460 transition: all var(--t-fast) var(--ease);
fc1817aClaude2461 }
debcf27Claude2462 .commit-sha:hover {
2463 border-color: rgba(140,109,255,0.40);
2464 background: var(--accent-gradient-faint);
2465 color: var(--accent-hover);
2466 text-decoration: none;
fc1817aClaude2467 }
2468
2469 .diff-view { margin-top: 16px; }
2470 .diff-file {
2471 border: 1px solid var(--border);
2ce1d0bClaude2472 border-radius: var(--r-md);
fc1817aClaude2473 margin-bottom: 16px;
2474 overflow: hidden;
2ce1d0bClaude2475 background: var(--bg-elevated);
fc1817aClaude2476 }
2477 .diff-file-header {
2478 background: var(--bg-secondary);
2ce1d0bClaude2479 padding: 10px 16px;
fc1817aClaude2480 border-bottom: 1px solid var(--border);
2481 font-family: var(--font-mono);
2ce1d0bClaude2482 font-size: var(--t-sm);
2483 font-weight: 500;
fc1817aClaude2484 }
2485 .diff-content {
2486 overflow-x: auto;
2487 font-family: var(--font-mono);
2ce1d0bClaude2488 font-size: var(--t-sm);
2489 line-height: 1.65;
fc1817aClaude2490 }
958d26aClaude2491 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2492 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2493 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2494 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2495
2496 .stat-add { color: var(--green); font-weight: 600; }
2497 .stat-del { color: var(--red); font-weight: 600; }
2498
2ce1d0bClaude2499 /* ============================================================ */
2500 /* Empty state */
2501 /* ============================================================ */
fc1817aClaude2502 .empty-state {
2503 text-align: center;
958d26aClaude2504 padding: 96px 24px;
fc1817aClaude2505 color: var(--text-muted);
2ce1d0bClaude2506 border: 1px dashed var(--border);
2507 border-radius: var(--r-lg);
958d26aClaude2508 background:
2509 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2510 var(--bg-elevated);
2511 position: relative;
2512 overflow: hidden;
2513 }
2514 .empty-state::before {
2515 content: '';
2516 position: absolute;
2517 inset: 0;
2518 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2519 background-size: 24px 24px;
2520 opacity: 0.5;
2521 pointer-events: none;
2522 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2523 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2524 }
2525 :root[data-theme='light'] .empty-state::before {
2526 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2527 }
958d26aClaude2528 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2529 .empty-state h2 {
958d26aClaude2530 font-size: var(--t-xl);
2ce1d0bClaude2531 margin-bottom: 8px;
958d26aClaude2532 color: var(--text-strong);
2533 letter-spacing: -0.022em;
2ce1d0bClaude2534 }
958d26aClaude2535 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2536 .empty-state pre {
2537 text-align: left;
2538 display: inline-block;
2539 background: var(--bg-secondary);
958d26aClaude2540 padding: 18px 24px;
2541 border-radius: var(--r-md);
fc1817aClaude2542 border: 1px solid var(--border);
2543 font-family: var(--font-mono);
958d26aClaude2544 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2545 font-size: var(--t-sm);
958d26aClaude2546 margin-top: 24px;
fc1817aClaude2547 line-height: 1.8;
2ce1d0bClaude2548 color: var(--text);
958d26aClaude2549 box-shadow: var(--elev-1);
fc1817aClaude2550 }
2551
2ce1d0bClaude2552 /* ============================================================ */
2553 /* Badges */
2554 /* ============================================================ */
fc1817aClaude2555 .badge {
2ce1d0bClaude2556 display: inline-flex;
2557 align-items: center;
2558 gap: 4px;
2559 padding: 2px 9px;
2560 border-radius: var(--r-full);
2561 font-size: var(--t-xs);
fc1817aClaude2562 font-weight: 500;
2563 background: var(--bg-tertiary);
2564 border: 1px solid var(--border);
2565 color: var(--text-muted);
2ce1d0bClaude2566 line-height: 1.5;
fc1817aClaude2567 }
2568
2ce1d0bClaude2569 /* ============================================================ */
2570 /* Branch dropdown */
2571 /* ============================================================ */
fc1817aClaude2572 .branch-selector {
2573 display: inline-flex;
2574 align-items: center;
2ce1d0bClaude2575 gap: 6px;
2576 padding: 6px 12px;
2577 background: var(--bg-elevated);
fc1817aClaude2578 border: 1px solid var(--border);
2ce1d0bClaude2579 border-radius: var(--r-sm);
2580 font-size: var(--t-sm);
fc1817aClaude2581 color: var(--text);
2582 margin-bottom: 12px;
2ce1d0bClaude2583 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2584 }
2ce1d0bClaude2585 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2586
06d5ffeClaude2587 .branch-dropdown {
2588 position: relative;
2589 display: inline-block;
2590 margin-bottom: 12px;
2591 }
2592 .branch-dropdown-content {
2593 display: none;
2594 position: absolute;
2ce1d0bClaude2595 top: calc(100% + 4px);
06d5ffeClaude2596 left: 0;
2597 z-index: 10;
2ce1d0bClaude2598 min-width: 220px;
2599 background: var(--bg-elevated);
2600 border: 1px solid var(--border-strong);
2601 border-radius: var(--r-md);
2602 overflow: hidden;
2603 box-shadow: var(--elev-3);
06d5ffeClaude2604 }
2605 .branch-dropdown:hover .branch-dropdown-content,
2606 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2607 .branch-dropdown-content a {
2608 display: block;
2ce1d0bClaude2609 padding: 9px 14px;
2610 font-size: var(--t-sm);
06d5ffeClaude2611 color: var(--text);
2612 border-bottom: 1px solid var(--border);
2ce1d0bClaude2613 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2614 }
2615 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2616 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2617 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2618
2ce1d0bClaude2619 /* ============================================================ */
2620 /* Card grid */
2621 /* ============================================================ */
2622 .card-grid {
2623 display: grid;
2624 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2625 gap: 16px;
2626 }
fc1817aClaude2627 .card {
2628 border: 1px solid var(--border);
2ce1d0bClaude2629 border-radius: var(--r-md);
958d26aClaude2630 padding: 20px;
2ce1d0bClaude2631 background: var(--bg-elevated);
2632 transition:
958d26aClaude2633 border-color var(--t-base) var(--ease),
2634 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2635 box-shadow var(--t-base) var(--ease);
2636 position: relative;
2637 overflow: hidden;
958d26aClaude2638 isolation: isolate;
2639 }
2640 .card::before {
2641 content: '';
2642 position: absolute;
2643 inset: 0;
2644 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2645 opacity: 0;
2646 transition: opacity var(--t-base) var(--ease);
2647 pointer-events: none;
2648 z-index: -1;
2ce1d0bClaude2649 }
2650 .card:hover {
2651 border-color: var(--border-strong);
2652 box-shadow: var(--elev-2);
958d26aClaude2653 transform: translateY(-2px);
2ce1d0bClaude2654 }
958d26aClaude2655 .card:hover::before { opacity: 1; }
2656 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2657 .card h3 a { color: var(--text); font-weight: 600; }
2658 .card h3 a:hover { color: var(--text-link); }
2659 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2660 .card-meta {
2661 display: flex;
2662 gap: 14px;
2663 margin-top: 14px;
2664 padding-top: 14px;
2665 border-top: 1px solid var(--border);
2666 font-size: var(--t-xs);
2667 color: var(--text-muted);
2668 }
2669 .card-meta span { display: flex; align-items: center; gap: 5px; }
2670
2671 /* ============================================================ */
2672 /* Stat card / box */
2673 /* ============================================================ */
2674 .stat-card {
2675 background: var(--bg-elevated);
2676 border: 1px solid var(--border);
2677 border-radius: var(--r-md);
fc1817aClaude2678 padding: 16px;
2ce1d0bClaude2679 transition: border-color var(--t-fast) var(--ease);
2680 }
2681 .stat-card:hover { border-color: var(--border-strong); }
2682 .stat-label {
2683 font-size: var(--t-xs);
2684 color: var(--text-muted);
2685 text-transform: uppercase;
2686 letter-spacing: 0.06em;
2687 font-weight: 500;
2688 }
2689 .stat-value {
2690 font-size: var(--t-xl);
2691 font-weight: 700;
2692 margin-top: 4px;
2693 letter-spacing: -0.025em;
2694 color: var(--text);
2695 font-feature-settings: 'tnum';
fc1817aClaude2696 }
06d5ffeClaude2697
2ce1d0bClaude2698 /* ============================================================ */
2699 /* Star button */
2700 /* ============================================================ */
06d5ffeClaude2701 .star-btn {
2702 display: inline-flex;
2703 align-items: center;
2704 gap: 6px;
2ce1d0bClaude2705 padding: 5px 12px;
2706 background: var(--bg-elevated);
06d5ffeClaude2707 border: 1px solid var(--border);
2ce1d0bClaude2708 border-radius: var(--r-sm);
06d5ffeClaude2709 color: var(--text);
2ce1d0bClaude2710 font-size: var(--t-sm);
2711 font-weight: 500;
06d5ffeClaude2712 cursor: pointer;
2ce1d0bClaude2713 transition: all var(--t-fast) var(--ease);
2714 }
2715 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2716 .star-btn.starred {
2717 color: var(--yellow);
958d26aClaude2718 border-color: rgba(251,191,36,0.4);
2719 background: rgba(251,191,36,0.08);
06d5ffeClaude2720 }
2721
2ce1d0bClaude2722 /* ============================================================ */
2723 /* User profile */
2724 /* ============================================================ */
06d5ffeClaude2725 .user-profile {
2726 display: flex;
2727 gap: 32px;
2728 margin-bottom: 32px;
2ce1d0bClaude2729 padding: 24px;
2730 background: var(--bg-elevated);
2731 border: 1px solid var(--border);
2732 border-radius: var(--r-lg);
06d5ffeClaude2733 }
2734 .user-avatar {
2735 width: 96px;
2736 height: 96px;
2ce1d0bClaude2737 border-radius: var(--r-full);
2738 background: var(--accent-gradient-soft);
2739 border: 1px solid var(--border-strong);
06d5ffeClaude2740 display: flex;
2741 align-items: center;
2742 justify-content: center;
2ce1d0bClaude2743 font-size: 36px;
2744 font-weight: 600;
2745 color: var(--text);
06d5ffeClaude2746 flex-shrink: 0;
2ce1d0bClaude2747 letter-spacing: -0.02em;
06d5ffeClaude2748 }
2ce1d0bClaude2749 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2750 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2751 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2752
2ce1d0bClaude2753 /* ============================================================ */
2754 /* New repo form */
2755 /* ============================================================ */
2756 .new-repo-form { max-width: 640px; }
2757 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2758 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2759 .visibility-option {
2760 flex: 1;
2ce1d0bClaude2761 padding: 16px;
06d5ffeClaude2762 border: 1px solid var(--border);
2ce1d0bClaude2763 border-radius: var(--r-md);
2764 background: var(--bg-elevated);
06d5ffeClaude2765 cursor: pointer;
2ce1d0bClaude2766 text-align: left;
2767 transition: all var(--t-fast) var(--ease);
2768 }
2769 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2770 .visibility-option:has(input:checked) {
2771 border-color: var(--accent);
2772 background: var(--accent-gradient-faint);
2773 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2774 }
2775 .visibility-option input { display: none; }
2ce1d0bClaude2776 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2777 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2778
2ce1d0bClaude2779 /* ============================================================ */
2780 /* Issues */
2781 /* ============================================================ */
2782 .issue-tabs { display: flex; gap: 4px; }
2783 .issue-tabs a {
2784 color: var(--text-muted);
2785 font-size: var(--t-sm);
2786 font-weight: 500;
2787 padding: 6px 12px;
2788 border-radius: var(--r-sm);
2789 transition: all var(--t-fast) var(--ease);
2790 }
2791 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2792 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2793
2ce1d0bClaude2794 .issue-list {
2795 border: 1px solid var(--border);
2796 border-radius: var(--r-md);
2797 overflow: hidden;
2798 background: var(--bg-elevated);
2799 }
79136bbClaude2800 .issue-item {
2801 display: flex;
2ce1d0bClaude2802 gap: 14px;
79136bbClaude2803 align-items: flex-start;
2ce1d0bClaude2804 padding: 14px 16px;
79136bbClaude2805 border-bottom: 1px solid var(--border);
2ce1d0bClaude2806 transition: background var(--t-fast) var(--ease);
79136bbClaude2807 }
2808 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2809 .issue-item:hover { background: var(--bg-hover); }
2810 .issue-state-icon {
2811 font-size: 14px;
2812 padding-top: 2px;
2813 width: 18px;
2814 height: 18px;
2815 display: inline-flex;
2816 align-items: center;
2817 justify-content: center;
2818 border-radius: var(--r-full);
2819 flex-shrink: 0;
2820 }
79136bbClaude2821 .state-open { color: var(--green); }
958d26aClaude2822 .state-closed { color: #b69dff; }
2ce1d0bClaude2823 .issue-title {
debcf27Claude2824 font-family: var(--font-display);
2825 font-size: var(--t-md);
2ce1d0bClaude2826 font-weight: 600;
debcf27Claude2827 line-height: 1.35;
2828 letter-spacing: -0.012em;
2829 }
2830 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2831 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2832 .issue-meta {
2833 font-family: var(--font-mono);
2834 font-size: 11px;
2835 color: var(--text-muted);
2836 margin-top: 5px;
2837 letter-spacing: 0.01em;
2ce1d0bClaude2838 }
79136bbClaude2839
2840 .issue-badge {
2841 display: inline-flex;
2842 align-items: center;
2ce1d0bClaude2843 gap: 6px;
79136bbClaude2844 padding: 4px 12px;
2ce1d0bClaude2845 border-radius: var(--r-full);
2846 font-size: var(--t-sm);
79136bbClaude2847 font-weight: 500;
2ce1d0bClaude2848 line-height: 1.4;
79136bbClaude2849 }
958d26aClaude2850 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
2851 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
2852 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude2853 .state-merged { color: var(--accent); }
958d26aClaude2854 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude2855
2ce1d0bClaude2856 .issue-detail { max-width: 920px; }
79136bbClaude2857 .issue-comment-box {
2858 border: 1px solid var(--border);
2ce1d0bClaude2859 border-radius: var(--r-md);
79136bbClaude2860 margin-bottom: 16px;
2861 overflow: hidden;
2ce1d0bClaude2862 background: var(--bg-elevated);
79136bbClaude2863 }
2864 .comment-header {
2865 background: var(--bg-secondary);
2ce1d0bClaude2866 padding: 10px 16px;
79136bbClaude2867 border-bottom: 1px solid var(--border);
2ce1d0bClaude2868 font-size: var(--t-sm);
79136bbClaude2869 color: var(--text-muted);
2870 }
2871
2ce1d0bClaude2872 /* ============================================================ */
2873 /* Panel — flexible container used across many pages */
2874 /* ============================================================ */
2875 .panel {
2876 background: var(--bg-elevated);
2877 border: 1px solid var(--border);
2878 border-radius: var(--r-md);
2879 overflow: hidden;
2880 }
2881 .panel-item {
2882 display: flex;
2883 align-items: center;
2884 gap: 12px;
2885 padding: 12px 16px;
79136bbClaude2886 border-bottom: 1px solid var(--border);
2ce1d0bClaude2887 transition: background var(--t-fast) var(--ease);
2888 }
2889 .panel-item:last-child { border-bottom: none; }
2890 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude2891
2892 /* ─── j/k keyboard list navigation ─── */
2893 .is-kbd-focus {
2894 outline: 2px solid rgba(140,109,255,0.6) !important;
2895 outline-offset: -2px;
2896 background: rgba(140,109,255,0.06) !important;
2897 border-radius: 4px;
2898 }
2899 .is-kbd-selected {
2900 outline: 2px solid rgba(52,211,153,0.6) !important;
2901 background: rgba(52,211,153,0.06) !important;
2902 }
2ce1d0bClaude2903 .panel-empty {
2904 padding: 24px;
2905 text-align: center;
79136bbClaude2906 color: var(--text-muted);
2ce1d0bClaude2907 font-size: var(--t-sm);
79136bbClaude2908 }
2909
2ce1d0bClaude2910 /* ============================================================ */
2911 /* Search */
2912 /* ============================================================ */
79136bbClaude2913 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude2914
2ce1d0bClaude2915 /* ============================================================ */
2916 /* Timeline */
2917 /* ============================================================ */
2918 .timeline { position: relative; padding-left: 28px; }
16b325cClaude2919 .timeline::before {
2920 content: '';
2921 position: absolute;
2922 left: 4px;
2923 top: 8px;
2924 bottom: 8px;
2925 width: 2px;
2ce1d0bClaude2926 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude2927 }
2ce1d0bClaude2928 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude2929 .timeline-dot {
2930 position: absolute;
2ce1d0bClaude2931 left: -28px;
2932 top: 8px;
2933 width: 12px;
2934 height: 12px;
2935 border-radius: var(--r-full);
2936 background: var(--accent-gradient);
16b325cClaude2937 border: 2px solid var(--bg);
2ce1d0bClaude2938 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude2939 }
2940 .timeline-content {
2ce1d0bClaude2941 background: var(--bg-elevated);
16b325cClaude2942 border: 1px solid var(--border);
2ce1d0bClaude2943 border-radius: var(--r-md);
2944 padding: 14px 16px;
16b325cClaude2945 }
f1ab587Claude2946
2ce1d0bClaude2947 /* ============================================================ */
2948 /* Toggle switch */
2949 /* ============================================================ */
f1ab587Claude2950 .toggle-switch {
2951 position: relative;
2952 display: inline-block;
2ce1d0bClaude2953 width: 40px;
2954 height: 22px;
f1ab587Claude2955 flex-shrink: 0;
2956 margin-left: 16px;
2957 }
2958 .toggle-switch input { opacity: 0; width: 0; height: 0; }
2959 .toggle-slider {
2960 position: absolute;
2961 cursor: pointer;
2962 top: 0; left: 0; right: 0; bottom: 0;
2963 background: var(--bg-tertiary);
2964 border: 1px solid var(--border);
2ce1d0bClaude2965 border-radius: var(--r-full);
2966 transition: all var(--t-base) var(--ease);
f1ab587Claude2967 }
2968 .toggle-slider::before {
2969 content: '';
2970 position: absolute;
2ce1d0bClaude2971 height: 16px;
2972 width: 16px;
f1ab587Claude2973 left: 2px;
2974 bottom: 2px;
2975 background: var(--text-muted);
2ce1d0bClaude2976 border-radius: var(--r-full);
2977 transition: all var(--t-base) var(--ease);
f1ab587Claude2978 }
2979 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude2980 background: var(--accent-gradient);
2981 border-color: transparent;
958d26aClaude2982 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude2983 }
2984 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude2985 transform: translateX(18px);
f1ab587Claude2986 background: #fff;
2987 }
ef8d378Claude2988
2989 /* ============================================================
2990 * 2026 polish layer (purely additive — no layout changes).
2991 * Improves typography rendering, focus states, hover affordances,
2992 * and adds the gradient brand cue to primary buttons. Anything
2993 * that could alter dimensions stays in the rules above.
2994 * ============================================================ */
2995 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
2996 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
2997 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
2998
2999 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3000 h1 { letter-spacing: -0.025em; }
3001
3002 /* Smoother colour transitions everywhere links live */
3003 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3004
3005 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3006 .btn {
3007 transition:
3008 background 120ms cubic-bezier(0.16,1,0.3,1),
3009 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3010 transform 120ms cubic-bezier(0.16,1,0.3,1),
3011 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3012 }
3013 .btn:active { transform: translateY(0.5px); }
3014 .btn:focus-visible {
3015 outline: none;
3016 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3017 }
3018 .btn-primary {
3019 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3020 border-color: transparent;
3021 box-shadow:
3022 inset 0 1px 0 rgba(255,255,255,0.15),
3023 0 1px 2px rgba(168,85,247,0.25);
3024 }
3025 .btn-primary:hover {
3026 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3027 filter: none;
3028 box-shadow:
3029 inset 0 1px 0 rgba(255,255,255,0.20),
3030 0 4px 12px rgba(168,85,247,0.30);
3031 }
3032
3033 /* Inputs: cleaner focus ring + hover */
3034 .form-group input:hover,
3035 .form-group textarea:hover,
3036 .form-group select:hover {
3037 border-color: rgba(255,255,255,0.14);
3038 }
3039 .form-group input:focus,
3040 .form-group textarea:focus,
3041 .form-group select:focus {
3042 border-color: rgba(168,85,247,0.55);
3043 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3044 }
3045 :root[data-theme='light'] .form-group input:hover,
3046 :root[data-theme='light'] .form-group textarea:hover,
3047 :root[data-theme='light'] .form-group select:hover {
3048 border-color: rgba(0,0,0,0.18);
3049 }
3050
3051 /* Cards: subtle hover lift */
3052 .card {
3053 transition:
3054 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3055 transform 160ms cubic-bezier(0.16,1,0.3,1),
3056 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3057 }
3058 .card:hover {
3059 border-color: rgba(255,255,255,0.18);
3060 transform: translateY(-1px);
3061 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3062 }
3063 :root[data-theme='light'] .card:hover {
3064 border-color: rgba(0,0,0,0.18);
3065 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3066 }
3067
3068 /* Issue / commit / panel rows: smoother hover */
3069 .issue-item, .commit-item {
3070 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3071 }
3072 .repo-nav a {
3073 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3074 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3075 }
3076 .nav-link {
3077 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3078 }
3079
3080 /* Auth card: subtle elevation so register/login feel premium */
3081 .auth-container {
3082 background: var(--bg-secondary);
3083 border: 1px solid var(--border);
3084 border-radius: var(--r-lg, 12px);
3085 padding: 32px;
3086 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3087 }
3088 :root[data-theme='light'] .auth-container {
3089 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3090 }
3091 .auth-container h2 { letter-spacing: -0.025em; }
3092
3093 /* Empty state: dashed border, generous padding */
3094 .empty-state {
3095 border: 1px dashed var(--border);
3096 border-radius: var(--r-lg, 12px);
3097 background: var(--bg);
3098 }
3099
3100 /* Badges + commit-sha: smoother transition */
3101 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3102
3103 /* Gradient text utility — matches landing's accent treatment */
3104 .gradient-text {
3105 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3106 -webkit-background-clip: text;
3107 background-clip: text;
3108 -webkit-text-fill-color: transparent;
3109 }
3110
3111 /* Custom scrollbars (subtle, themed) */
3112 ::-webkit-scrollbar { width: 10px; height: 10px; }
3113 ::-webkit-scrollbar-track { background: transparent; }
3114 ::-webkit-scrollbar-thumb {
3115 background: rgba(255,255,255,0.06);
3116 border: 2px solid var(--bg);
3117 border-radius: 9999px;
3118 }
3119 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3120 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3121 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3122
3123 /* Honour reduced-motion preference */
3124 @media (prefers-reduced-motion: reduce) {
3125 *, *::before, *::after {
3126 animation-duration: 0.01ms !important;
3127 animation-iteration-count: 1 !important;
3128 transition-duration: 0.01ms !important;
3129 }
3130 }
c63b860Claude3131
3132 /* Block O3 — visual coherence additive rules. */
3133 .card.card-p-none { padding: 0; }
3134 .card.card-p-sm { padding: var(--space-3); }
3135 .card.card-p-md { padding: var(--space-4); }
3136 .card.card-p-lg { padding: var(--space-6); }
3137 .card.card-elevated { box-shadow: var(--elev-2); }
3138 .card.card-gradient {
3139 background:
3140 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3141 var(--bg-elevated);
3142 }
3143 .card.card-gradient::before { opacity: 1; }
3144 .notice {
3145 padding: var(--space-3) var(--space-4);
3146 border-radius: var(--radius-md);
3147 border: 1px solid var(--border);
3148 background: var(--bg-elevated);
3149 color: var(--text);
3150 font-size: var(--font-size-sm);
3151 margin-bottom: var(--space-6);
3152 line-height: var(--leading-normal);
3153 }
3154 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3155 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3156 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3157 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3158 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3159 .email-preview {
3160 padding: var(--space-5);
3161 background: #fff;
3162 color: #111;
3163 border-radius: var(--radius-md);
3164 }
3165 .code-block {
3166 margin: var(--space-2) 0 0;
3167 padding: var(--space-3);
3168 background: var(--bg-tertiary);
3169 border: 1px solid var(--border-subtle);
3170 border-radius: var(--radius-sm);
3171 font-family: var(--font-mono);
3172 font-size: var(--font-size-xs);
3173 line-height: var(--leading-normal);
3174 overflow-x: auto;
3175 }
3176 .status-pill-operational {
3177 display: inline-flex;
3178 align-items: center;
3179 padding: var(--space-1) var(--space-3);
3180 border-radius: var(--radius-full);
3181 font-size: var(--font-size-xs);
3182 font-weight: 600;
3183 background: rgba(52,211,153,0.15);
3184 color: var(--green);
3185 }
3186 .api-tag {
3187 display: inline-flex;
3188 align-items: center;
3189 font-size: var(--font-size-xs);
3190 padding: 2px var(--space-2);
3191 border-radius: var(--radius-sm);
3192 font-family: var(--font-mono);
3193 }
3194 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3195 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3196 .stat-number {
3197 font-size: var(--font-size-xl);
3198 font-weight: 700;
3199 color: var(--text-strong);
3200 line-height: var(--leading-tight);
3201 }
3202 .stat-number-accent { color: var(--accent); }
3203 .stat-number-blue { color: var(--blue); }
3204 .stat-number-purple { color: var(--text-link); }
3205 footer .footer-tag-sub {
3206 margin-top: var(--space-2);
3207 font-size: var(--font-size-xs);
3208 color: var(--text-faint);
3209 line-height: var(--leading-normal);
3210 }
3211 footer .footer-version-pill {
3212 display: inline-flex;
3213 align-items: center;
3214 gap: var(--space-2);
3215 padding: var(--space-1) var(--space-3);
3216 border-radius: var(--radius-full);
3217 border: 1px solid var(--border);
3218 background: var(--bg-elevated);
3219 color: var(--text-faint);
3220 font-family: var(--font-mono);
3221 font-size: var(--font-size-xs);
3222 cursor: help;
3223 }
3224 footer .footer-banner {
3225 max-width: 1240px;
3226 margin: var(--space-6) auto 0;
3227 padding: var(--space-3) var(--space-4);
3228 border-radius: var(--radius-md);
3229 border: 1px solid var(--border);
3230 background: var(--bg-elevated);
3231 color: var(--text);
3232 font-family: var(--font-mono);
3233 font-size: var(--font-size-xs);
3234 letter-spacing: 0.04em;
3235 text-transform: uppercase;
3236 text-align: center;
3237 }
3238 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3239 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3240 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3241
cf9178bTest User3242 /* ============================================================ */
3243 /* Global toast notifications. */
3244 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3245 /* ============================================================ */
3246 .gx-toast {
3247 pointer-events: auto;
3248 display: inline-flex;
3249 align-items: flex-start;
3250 gap: 10px;
3251 min-width: 280px;
3252 max-width: min(440px, calc(100vw - 32px));
3253 padding: 12px 14px 12px 12px;
3254 background: var(--bg-elevated);
3255 border: 1px solid var(--border);
3256 border-radius: 10px;
3257 box-shadow:
3258 0 12px 36px -10px rgba(15,16,28,0.18),
3259 0 2px 6px rgba(15,16,28,0.04),
3260 0 0 0 1px rgba(15,16,28,0.02);
3261 color: var(--text);
3262 font-size: 13.5px;
3263 line-height: 1.45;
3264 opacity: 0;
3265 transform: translateX(16px);
3266 transition:
3267 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3268 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3269 }
3270 .gx-toast--in { opacity: 1; transform: translateX(0); }
3271 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3272 .gx-toast__icon {
3273 flex-shrink: 0;
3274 width: 20px; height: 20px;
3275 border-radius: 50%;
3276 display: inline-flex;
3277 align-items: center;
3278 justify-content: center;
3279 font-size: 12px;
3280 font-weight: 700;
3281 line-height: 1;
3282 margin-top: 1px;
3283 }
3284 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3285 .gx-toast__close {
3286 flex-shrink: 0;
3287 width: 22px; height: 22px;
3288 border: 0;
3289 background: transparent;
3290 color: var(--text-muted);
3291 font-size: 18px;
3292 line-height: 1;
3293 cursor: pointer;
3294 border-radius: 4px;
3295 padding: 0;
3296 margin: -2px -2px 0 0;
3297 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3298 }
3299 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3300 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3301 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3302 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3303 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3304 @media (prefers-reduced-motion: reduce) {
3305 .gx-toast { transition: opacity 60ms linear; transform: none; }
3306 .gx-toast--in, .gx-toast--out { transform: none; }
3307 }
3308
dc26881CC LABS App3309 /* ============================================================ */
3310 /* Block U4 — cross-document view transitions. */
3311 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3312 /* every same-origin navigation. Older browsers ignore these */
3313 /* rules entirely — no JS shim, no breakage. */
3314 /* prefers-reduced-motion disables the animation honourably. */
3315 /* ============================================================ */
3316 @view-transition {
3317 navigation: auto;
3318 }
3319 ::view-transition-old(root),
3320 ::view-transition-new(root) {
3321 animation-duration: 200ms;
3322 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3323 }
3324 ::view-transition-old(root) {
3325 animation-name: vt-fade-out;
3326 }
3327 ::view-transition-new(root) {
3328 animation-name: vt-fade-in;
3329 }
3330 @keyframes vt-fade-out {
3331 to { opacity: 0; }
3332 }
3333 @keyframes vt-fade-in {
3334 from { opacity: 0; }
3335 }
3336 @media (prefers-reduced-motion: reduce) {
3337 ::view-transition-old(root),
3338 ::view-transition-new(root) {
3339 animation-duration: 0s;
3340 }
3341 }
3342 /* The transition system picks up its root subject from this rule. */
3343 body {
3344 view-transition-name: root;
3345 }
fc1817aClaude3346`;