Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
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.tsxBlame2852 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}) => {
6fc53bdClaude42 const initialTheme = theme === "light" ? "light" : "dark";
05cdb85Claude43 const build = getBuildInfo();
5f2e749Claude44 // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron"
45 // suffix); otherwise fall back to the existing `title` + suffix behaviour.
46 const renderedTitle = fullTitle
47 ? fullTitle
48 : title
49 ? `${title} — gluecron`
50 : "gluecron";
fc1817aClaude51 return (
6fc53bdClaude52 <html lang="en" data-theme={initialTheme}>
fc1817aClaude53 <head>
54 <meta charset="UTF-8" />
55 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
eae38d1Claude56 <meta name="theme-color" content="#0d1117" />
57 <link rel="manifest" href="/manifest.webmanifest" />
58 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude59 <title>{renderedTitle}</title>
60 {description && <meta name="description" content={description} />}
61 {(ogTitle || fullTitle || title) && (
62 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
63 )}
64 {(ogDescription || description) && (
65 <meta
66 property="og:description"
67 content={ogDescription ?? description ?? ""}
68 />
69 )}
70 {ogType && <meta property="og:type" content={ogType} />}
71 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude72 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
73 <style dangerouslySetInnerHTML={{ __html: css }} />
74 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude75 </head>
76 <body>
4a52a98Claude77 <div class="prelaunch-banner" role="status" aria-live="polite">
78 Pre-launch &mdash; Gluecron is in final validation. Public signups
79 and git hosting for non-owner users open after launch review.
80 </div>
cd4f63bTest User81 {/* Block Q3 — Playground banner. Renders only when the active
82 user is a playground account with a future expiry; the small
83 inline script counts down once per minute. Strip is dismissible
84 per-page-load (re-appears on next nav) — gentle, not noisy. */}
85 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
86 <div
87 class="playground-banner"
88 role="status"
89 aria-live="polite"
90 data-playground-expires={
91 ((user as any).playgroundExpiresAt instanceof Date
92 ? (user as any).playgroundExpiresAt.toISOString()
93 : String((user as any).playgroundExpiresAt))
94 }
95 >
96 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
97 <span class="playground-banner-text">
98 Playground account &mdash;{" "}
99 <span class="playground-banner-countdown">expires soon</span>.{" "}
100 <a href="/play/claim" class="playground-banner-cta">
101 Save your work &rarr;
102 </a>
103 </span>
104 <button
105 type="button"
106 class="playground-banner-dismiss"
107 aria-label="Dismiss"
108 data-playground-dismiss="1"
109 >
110 {"×"}
111 </button>
112 <script
113 dangerouslySetInnerHTML={{
114 __html: /* js */ `
115 (function () {
116 var el = document.currentScript && document.currentScript.parentElement;
117 if (!el) return;
118 var iso = el.getAttribute('data-playground-expires');
119 if (!iso) return;
120 var target = Date.parse(iso);
121 if (isNaN(target)) return;
122 var out = el.querySelector('.playground-banner-countdown');
123 function render() {
124 var ms = target - Date.now();
125 if (!out) return;
126 if (ms <= 0) { out.textContent = 'expired'; return; }
127 var mins = Math.floor(ms / 60000);
128 var hrs = Math.floor(mins / 60);
129 if (hrs > 1) out.textContent = hrs + ' hours left';
130 else if (hrs === 1) out.textContent = '1 hour left';
131 else if (mins > 1) out.textContent = mins + ' minutes left';
132 else out.textContent = 'less than a minute left';
133 }
134 render();
135 setInterval(render, 60000);
136 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
137 if (dismiss) {
138 dismiss.addEventListener('click', function () {
139 el.style.display = 'none';
140 });
141 }
142 })();
143 `,
144 }}
145 />
146 </div>
147 )}
fc1817aClaude148 <header>
149 <nav>
150 <a href="/" class="logo">
151 gluecron
152 </a>
3ef4c9dClaude153 <div class="nav-search">
001af43Claude154 <form method="get" action="/search">
3ef4c9dClaude155 <input
156 type="search"
157 name="q"
158 placeholder="Search (press /)"
159 aria-label="Search"
160 />
161 </form>
162 </div>
06d5ffeClaude163 <div class="nav-right">
f764c07Claude164 {/* Block N3 — site-admin platform-deploy status pill. Hidden
165 by default; revealed client-side once /admin/deploys/latest.json
166 responds 200 (non-admins get 401/403 and the pill stays
167 hidden). Subscribes to the `platform:deploys` SSE topic
168 for live updates. See `deployPillScript` below. */}
169 {user && (
170 <a
171 id="deploy-pill"
172 href="/admin/deploys"
173 class="nav-deploy-pill"
174 style="display:none"
175 aria-label="Platform deploy status"
176 title="Platform deploy status"
177 >
178 <span class="deploy-pill-dot" />
179 <span class="deploy-pill-text">Deploys</span>
180 </a>
181 )}
6fc53bdClaude182 <a
183 href="/theme/toggle"
184 class="nav-link nav-theme"
185 title="Toggle theme"
186 aria-label="Toggle theme"
187 >
188 <span class="theme-icon-dark">{"\u263E"}</span>
189 <span class="theme-icon-light">{"\u2600"}</span>
190 </a>
c81ab7aClaude191 <a href="/explore" class="nav-link">
192 Explore
193 </a>
06d5ffeClaude194 {user ? (
195 <>
f1ab587Claude196 <a href="/dashboard" class="nav-link" style="font-weight: 600">
197 Dashboard
198 </a>
bdbd0deClaude199 <a href="/import" class="nav-link">
200 Import
201 </a>
06d5ffeClaude202 <a href="/new" class="btn btn-sm btn-primary">
203 + New
204 </a>
205 <a href={`/${user.username}`} class="nav-user">
206 {user.displayName || user.username}
207 </a>
208 <a href="/settings" class="nav-link">
209 Settings
210 </a>
211 <a href="/logout" class="nav-link">
212 Sign out
213 </a>
214 </>
215 ) : (
216 <>
217 <a href="/login" class="nav-link">
218 Sign in
219 </a>
220 <a href="/register" class="btn btn-sm btn-primary">
221 Register
222 </a>
223 </>
224 )}
225 </div>
fc1817aClaude226 </nav>
227 </header>
45e31d0Claude228 <main id="main-content">{children}</main>
fc1817aClaude229 <footer>
958d26aClaude230 <div class="footer-inner">
231 <div class="footer-brand">
232 <a href="/" class="logo">gluecron</a>
233 <p class="footer-tag">
234 AI-native code intelligence. Self-hosted git, automated CI,
235 push-time gates. Software that ships itself.
236 </p>
237 </div>
238 <div class="footer-links">
239 <div class="footer-col">
240 <div class="footer-col-title">Product</div>
b0148e9Claude241 <a href="/features">Features</a>
242 <a href="/pricing">Pricing</a>
958d26aClaude243 <a href="/explore">Explore</a>
244 <a href="/marketplace">Marketplace</a>
245 </div>
246 <div class="footer-col">
247 <div class="footer-col-title">Platform</div>
b0148e9Claude248 <a href="/help">Quickstart</a>
958d26aClaude249 <a href="/status">Status</a>
250 <a href="/api/graphql">GraphQL</a>
251 <a href="/mcp">MCP server</a>
252 </div>
253 <div class="footer-col">
b0148e9Claude254 <div class="footer-col-title">Company</div>
255 <a href="/about">About</a>
958d26aClaude256 <a href="/terms">Terms</a>
257 <a href="/privacy">Privacy</a>
258 <a href="/acceptable-use">Acceptable use</a>
259 </div>
260 </div>
261 </div>
262 <div class="footer-bottom">
263 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude264 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
265 <span class="footer-build-dot" aria-hidden="true" />
266 {build.sha} · {build.branch}
267 </span>
36b4cbdClaude268 </div>
c63b860Claude269 {siteBannerText ? (
270 <div
271 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
272 role="status"
273 aria-live="polite"
274 >
275 {siteBannerText}
276 </div>
277 ) : null}
fc1817aClaude278 </footer>
05cdb85Claude279 {/* Live update poller — checks /api/version every 15s, prompts
280 reload when the running sha changes. Pure progressive-
281 enhancement; degrades to nothing if JS is off. */}
282 <div
283 id="version-banner"
284 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"
285 >
286 <span style="display:inline-flex;align-items:center;gap:8px">
287 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
288 <span>New version available</span>
289 </span>
290 <button
291 type="button"
292 id="version-banner-reload"
293 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"
294 >
295 Reload
296 </button>
297 </div>
fa880f2Claude298 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude299 {/* Block N3 — site-admin deploy status pill (script-only). The pill
300 container is rendered above for authed users; this script bootstraps
301 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
302 and the pill stays display:none — zero leak. */}
303 {user && (
304 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
305 )}
699e5c7Claude306 {/* Block I4 — Command palette shell (hidden by default) */}
307 <div
308 id="cmdk-backdrop"
309 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
310 />
311 <div
312 id="cmdk-panel"
313 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"
314 >
315 <input
316 id="cmdk-input"
317 type="text"
318 placeholder="Type a command..."
319 aria-label="Command palette"
bba3681Test User320 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"
699e5c7Claude321 />
322 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
323 </div>
fa880f2Claude324 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
325 <script dangerouslySetInnerHTML={{ __html: pwaRegisterScript }} />
534f04aClaude326 {/* Block M2 — smart install banner + push-SW bootstrap. Authed
327 users only; the banner respects a 3+ visits + 14-day cooldown
328 heuristic. The push SW is registered on the same gate so we
329 don't ask anonymous visitors to opt into anything. */}
330 {user && (
331 <script
332 dangerouslySetInnerHTML={{ __html: pwaInstallBannerScript }}
333 />
334 )}
fa880f2Claude335 <script dangerouslySetInnerHTML={{ __html: navScript }} />
fc1817aClaude336 </body>
337 </html>
338 );
339};
340
05cdb85Claude341// Live version poller. Checks /api/version every 15s; if the sha differs
342// from the one we booted with, reveal the floating 'New version' pill so
343// the user can reload onto the new code without manually refreshing.
344const versionPollerScript = `
345 (function(){
346 var loadedSha = null;
347 var banner, btn;
348 function poll(){
349 fetch('/api/version', { cache: 'no-store' })
350 .then(function(r){ return r.ok ? r.json() : null; })
351 .then(function(j){
352 if (!j || !j.sha) return;
353 if (loadedSha === null) { loadedSha = j.sha; return; }
354 if (j.sha !== loadedSha && banner) {
355 banner.style.display = 'inline-flex';
356 }
357 })
358 .catch(function(){});
359 }
360 function init(){
361 banner = document.getElementById('version-banner');
362 btn = document.getElementById('version-banner-reload');
363 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
364 poll();
365 setInterval(poll, 15000);
366 }
367 if (document.readyState === 'loading') {
368 document.addEventListener('DOMContentLoaded', init);
369 } else {
370 init();
371 }
372 })();
373`;
374
f764c07Claude375// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
376// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
377// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
378// display:none — there's no leakage of admin-only data to other users.
379//
380// Pill states (CSS classes on the container drive colour):
381// .deploy-pill-success 🟢 "Deployed 12s ago"
382// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
383// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
384// .deploy-pill-empty ⚪ "No deploys yet"
385//
386// Relative-time auto-refreshes every 15s without re-fetching.
387export const deployPillScript = `
388 (function(){
389 var pill, dot, text;
390 var state = { latest: null, asOf: null };
391
392 function classifyAge(ms){
393 if (ms < 0) return 'just now';
394 var s = Math.floor(ms / 1000);
395 if (s < 5) return 'just now';
396 if (s < 60) return s + 's ago';
397 var m = Math.floor(s / 60);
398 if (m < 60) return m + 'm ago';
399 var h = Math.floor(m / 60);
400 if (h < 24) return h + 'h ago';
401 var d = Math.floor(h / 24);
402 return d + 'd ago';
403 }
404 function elapsed(ms){
405 if (ms < 0) ms = 0;
406 var s = Math.floor(ms / 1000);
407 if (s < 60) return s + 's';
408 var m = Math.floor(s / 60);
409 var rem = s - m * 60;
410 return m + 'm ' + rem + 's';
411 }
412
413 function render(){
414 if (!pill || !text || !dot) return;
415 var d = state.latest;
416 if (!d) {
417 pill.className = 'nav-deploy-pill deploy-pill-empty';
418 text.textContent = 'No deploys yet';
419 pill.style.display = 'inline-flex';
420 return;
421 }
422 pill.style.display = 'inline-flex';
423 var now = Date.now();
424 if (d.status === 'in_progress') {
425 pill.className = 'nav-deploy-pill deploy-pill-progress';
426 var started = Date.parse(d.started_at) || now;
427 text.textContent = 'Deploying… ' + elapsed(now - started);
428 } else if (d.status === 'succeeded') {
429 pill.className = 'nav-deploy-pill deploy-pill-success';
430 var ref = Date.parse(d.finished_at || d.started_at) || now;
431 text.textContent = 'Deployed ' + classifyAge(now - ref);
432 } else if (d.status === 'failed') {
433 pill.className = 'nav-deploy-pill deploy-pill-failed';
434 var refF = Date.parse(d.finished_at || d.started_at) || now;
435 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
436 } else {
437 pill.className = 'nav-deploy-pill';
438 text.textContent = d.status;
439 }
440 }
441
442 function fetchLatest(){
443 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
444 .then(function(r){ if (!r.ok) return null; return r.json(); })
445 .then(function(j){
446 if (!j || j.ok !== true) return;
447 state.latest = j.latest;
448 state.asOf = j.asOf;
449 render();
450 subscribe();
451 })
452 .catch(function(){});
453 }
454
455 var subscribed = false;
456 function subscribe(){
457 if (subscribed) return;
458 if (typeof EventSource === 'undefined') return;
459 subscribed = true;
460 var es;
461 var delay = 1500;
462 function connect(){
463 try { es = new EventSource('/live-events/platform:deploys'); }
464 catch(e){ setTimeout(connect, delay); return; }
465 es.onmessage = function(m){
466 try {
467 var d = JSON.parse(m.data);
468 if (d && d.run_id) {
469 if (!state.latest || state.latest.run_id === d.run_id ||
470 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
471 state.latest = d;
472 render();
473 }
474 }
475 } catch(e){}
476 };
477 es.onerror = function(){
478 try { es.close(); } catch(e){}
479 setTimeout(connect, delay);
480 };
481 }
482 connect();
483 }
484
485 function init(){
486 pill = document.getElementById('deploy-pill');
487 if (!pill) return;
488 dot = pill.querySelector('.deploy-pill-dot');
489 text = pill.querySelector('.deploy-pill-text');
490 fetchLatest();
491 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
492 // without a fresh fetch.
493 setInterval(render, 15000);
494 }
495 if (document.readyState === 'loading') {
496 document.addEventListener('DOMContentLoaded', init);
497 } else {
498 init();
499 }
500 })();
501`;
502
6fc53bdClaude503// Runs before paint — reads the theme cookie and flips data-theme so there's
504// no dark-to-light flash on load. SSR default is dark.
505const themeInitScript = `
506 (function(){
507 try {
508 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
509 var t = m ? decodeURIComponent(m[1]) : 'dark';
510 if (t !== 'light' && t !== 'dark') t = 'dark';
511 document.documentElement.setAttribute('data-theme', t);
512 } catch(_){}
513 })();
514`;
515
eae38d1Claude516// Block G1 — register service worker for offline / install support.
517// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App518//
519// Block S2 extension — when an updated SW activates we force a single
520// reload so the user picks up the fresh HTML immediately instead of
521// being stuck on the previous deploy's cached page (the "I saw /login's
522// old version even after merging" bug that triggered S2 in the first
523// place). The reload only fires when `controller` is already set, which
524// means this is NOT the first-ever install (no double-load on first
525// visit). A page-scoped guard prevents reload loops if the SW updates
526// twice in quick succession.
eae38d1Claude527const pwaRegisterScript = `
528 if ('serviceWorker' in navigator) {
529 window.addEventListener('load', function(){
b1be050CC LABS App530 navigator.serviceWorker.register('/sw.js').then(function(reg){
531 var reloaded = false;
532 reg.addEventListener('updatefound', function(){
533 var newSW = reg.installing;
534 if (!newSW) return;
535 newSW.addEventListener('statechange', function(){
536 if (newSW.state === 'activated' && navigator.serviceWorker.controller && !reloaded) {
537 reloaded = true;
538 window.location.reload();
539 }
540 });
541 });
542 }).catch(function(){});
eae38d1Claude543 });
544 }
545`;
546
534f04aClaude547// Block M2 — smart install banner (authed users only). Three heuristics:
548// 1. user is authenticated (gated server-side via the `{user &&}` JSX)
549// 2. visit counter (localStorage) ≥ 3
550// 3. dismissed-cooldown < 14 days ago
551// Also bootstraps the push + offline SW at /sw-push.js. Idempotent — safe
552// to load on every page; only inserts DOM nodes if all conditions match.
553const pwaInstallBannerScript = `
554(function(){
555 try {
556 var DISMISS_KEY = 'gc:pwa-banner-dismissed-at';
557 var VISITS_KEY = 'gc:pwa-visit-count';
558 var DISMISS_MS = 14 * 24 * 60 * 60 * 1000;
559 var visits = parseInt(localStorage.getItem(VISITS_KEY) || '0', 10) || 0;
560 visits++;
561 try { localStorage.setItem(VISITS_KEY, String(visits)); } catch(_){}
562 // Bootstrap the push + offline SW (separate from /sw.js's locked behaviour).
563 if ('serviceWorker' in navigator) {
564 window.addEventListener('load', function(){
565 navigator.serviceWorker.register('/sw-push.js', { scope: '/' })
566 .catch(function(){});
567 });
568 }
569 var deferredPrompt = null;
570 window.addEventListener('beforeinstallprompt', function(e){
571 e.preventDefault();
572 deferredPrompt = e;
573 maybeShow();
574 });
575 function maybeShow(){
576 if (!deferredPrompt) return;
577 if (visits < 3) return;
578 var dismissedAt = parseInt(localStorage.getItem(DISMISS_KEY) || '0', 10) || 0;
579 if (dismissedAt && (Date.now() - dismissedAt) < DISMISS_MS) return;
580 if (document.getElementById('gc-install-banner')) return;
581 var bar = document.createElement('div');
582 bar.id = 'gc-install-banner';
583 bar.setAttribute('role', 'dialog');
584 bar.setAttribute('aria-label', 'Install Gluecron');
585 bar.style.cssText = 'position:fixed;left:12px;right:12px;bottom:12px;z-index:9997;'
586 + 'background:var(--bg-elevated,#161b22);color:var(--text,#c9d1d9);'
587 + 'border:1px solid var(--border,#30363d);border-radius:8px;padding:12px 14px;'
588 + 'display:flex;gap:10px;align-items:center;justify-content:space-between;'
589 + 'box-shadow:0 8px 24px rgba(0,0,0,0.45);font-size:13px;line-height:1.3;'
590 + 'max-width:560px;margin:0 auto';
591 bar.innerHTML = '<span style="flex:1">'
592 + '<strong>Install Gluecron</strong> to keep working when offline + get push notifications.'
593 + '</span>'
594 + '<button type="button" id="gc-install-go" style="background:#238636;color:#fff;'
595 + 'border:0;border-radius:6px;padding:6px 12px;font-size:12px;cursor:pointer;'
596 + 'font-family:inherit">Install</button>'
597 + '<button type="button" id="gc-install-no" style="background:transparent;color:inherit;'
598 + 'border:1px solid var(--border,#30363d);border-radius:6px;padding:6px 12px;'
599 + 'font-size:12px;cursor:pointer;font-family:inherit">Not now</button>';
600 document.body.appendChild(bar);
601 var go = bar.querySelector('#gc-install-go');
602 var no = bar.querySelector('#gc-install-no');
603 if (go) go.addEventListener('click', function(){
604 try { deferredPrompt.prompt(); } catch(_){}
605 bar.parentNode && bar.parentNode.removeChild(bar);
606 deferredPrompt = null;
607 });
608 if (no) no.addEventListener('click', function(){
609 try { localStorage.setItem(DISMISS_KEY, String(Date.now())); } catch(_){}
610 bar.parentNode && bar.parentNode.removeChild(bar);
611 });
612 }
613 } catch(_) {}
614})();
615`;
616
3ef4c9dClaude617const navScript = `
618 (function(){
619 var chord = null;
620 var chordTimer = null;
621 function isTyping(t){
622 t = t || {};
623 var tag = (t.tagName || '').toLowerCase();
624 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
625 }
71cd5ecClaude626
627 // ---------- Block I4 — Command palette ----------
628 var COMMANDS = [
629 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
630 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
631 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
632 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
633 { label: 'Create new repository', href: '/new', kw: 'add create' },
634 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
635 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
636 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
637 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
638 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
639 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
640 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
641 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
642 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
643 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
644 { label: 'Gists', href: '/gists', kw: 'snippets' },
645 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
646 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
647 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
648 ];
649
650 function fuzzyMatch(item, q){
651 if (!q) return true;
652 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
653 q = q.toLowerCase();
654 var qi = 0;
655 for (var i = 0; i < hay.length && qi < q.length; i++) {
656 if (hay[i] === q[qi]) qi++;
657 }
658 return qi === q.length;
659 }
660
661 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
662
663 function render(){
664 if (!list) return;
665 var html = '';
666 for (var i = 0; i < filtered.length; i++) {
667 var item = filtered[i];
668 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
669 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]670 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
bba3681Test User671 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude672 '<div>' + item.label + '</div>' +
673 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
674 '</div>';
675 }
676 if (filtered.length === 0) {
bba3681Test User677 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude678 }
679 list.innerHTML = html;
680 }
681
682 function openPalette(){
683 backdrop = document.getElementById('cmdk-backdrop');
684 panel = document.getElementById('cmdk-panel');
685 input = document.getElementById('cmdk-input');
686 list = document.getElementById('cmdk-list');
687 if (!backdrop || !panel) return;
688 backdrop.style.display = 'block';
689 panel.style.display = 'block';
690 input.value = '';
691 selected = 0;
692 filtered = COMMANDS.slice();
693 render();
694 input.focus();
695 }
696 function closePalette(){
697 if (backdrop) backdrop.style.display = 'none';
698 if (panel) panel.style.display = 'none';
699 }
700 function go(href){ closePalette(); window.location.href = href; }
701
702 document.addEventListener('click', function(e){
703 var t = e.target;
704 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
705 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]706 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude707 });
708
709 document.addEventListener('input', function(e){
710 if (e.target && e.target.id === 'cmdk-input') {
711 var q = e.target.value;
712 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
713 selected = 0;
714 render();
715 }
716 });
717
3ef4c9dClaude718 document.addEventListener('keydown', function(e){
71cd5ecClaude719 // Palette-scoped keys take priority when open
720 if (panel && panel.style.display === 'block') {
721 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
722 if (e.key === 'ArrowDown') {
723 e.preventDefault();
724 selected = Math.min(filtered.length - 1, selected + 1);
725 render();
726 return;
727 }
728 if (e.key === 'ArrowUp') {
729 e.preventDefault();
730 selected = Math.max(0, selected - 1);
731 render();
732 return;
733 }
734 if (e.key === 'Enter') {
735 e.preventDefault();
736 var item = filtered[selected];
737 if (item) go(item.href);
738 return;
739 }
740 return;
741 }
742
3ef4c9dClaude743 if (isTyping(e.target)) return;
744 // Single key shortcuts
745 if (e.key === '/') {
746 var el = document.querySelector('.nav-search input');
747 if (el) { e.preventDefault(); el.focus(); return; }
748 }
749 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude750 e.preventDefault();
751 openPalette();
752 return;
3ef4c9dClaude753 }
754 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
755 e.preventDefault(); window.location.href = '/shortcuts'; return;
756 }
757 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
758 e.preventDefault(); window.location.href = '/new'; return;
759 }
760 // "g" chord
761 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
762 chord = 'g';
763 clearTimeout(chordTimer);
764 chordTimer = setTimeout(function(){ chord = null; }, 1200);
765 return;
766 }
767 if (chord === 'g') {
768 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
769 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
770 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
771 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
772 chord = null;
773 }
774 });
775 })();
776`;
777
fc1817aClaude778const css = `
2ce1d0bClaude779 /* ================================================================
958d26aClaude780 * Gluecron design system — 2026.05 "Editorial-Technical"
781 * Slate-noir base · refined violet signature · hairline geometry ·
782 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
783 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude784 * ============================================================== */
6fc53bdClaude785 :root, :root[data-theme='dark'] {
958d26aClaude786 /* Surfaces — slate, not black. More depth, less crush. */
787 --bg: #08090f;
788 --bg-secondary: #0c0d14;
789 --bg-tertiary: #11131c;
790 --bg-elevated: #0f111a;
791 --bg-surface: #161826;
792 --bg-hover: rgba(255,255,255,0.04);
793 --bg-active: rgba(255,255,255,0.08);
794 --bg-inset: rgba(0,0,0,0.30);
795
796 /* Borders — three weights, used deliberately */
797 --border: rgba(255,255,255,0.06);
798 --border-subtle: rgba(255,255,255,0.035);
799 --border-strong: rgba(255,255,255,0.13);
800 --border-focus: rgba(140,109,255,0.55);
801
802 /* Text */
803 --text: #ededf2;
804 --text-strong: #f7f7fb;
805 --text-muted: #8b8c9c;
806 --text-faint: #555665;
807 --text-link: #b69dff;
808
809 /* Accent — refined violet (less candy), warm amber as secondary signal */
810 --accent: #8c6dff;
811 --accent-2: #36c5d6;
812 --accent-warm: #ffb45e;
813 --accent-hover: #a48bff;
814 --accent-pressed:#7559e8;
815 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
816 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
817 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
818 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
819
820 /* Semantic */
821 --green: #34d399;
822 --red: #f87171;
823 --yellow: #fbbf24;
824 --amber: #fbbf24;
825 --blue: #60a5fa;
826
fb71554Claude827 /* Type — system fonts FIRST so we never depend on Google Fonts loading.
828 Segoe UI (Win), -apple-system / SF (Mac), Roboto (Android), Inter as
829 optional upgrade if the user already has it. NEVER falls back to serif. */
830 --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
831 --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, 'Inter', sans-serif;
832 --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, 'Inter Tight', 'Inter', sans-serif;
958d26aClaude833 --mono-feat: 'calt', 'liga', 'ss01';
834
835 /* Radius — sharper than before */
836 --r-sm: 5px;
837 --r: 7px;
838 --r-md: 9px;
839 --r-lg: 12px;
840 --r-xl: 16px;
841 --r-2xl: 22px;
842 --r-full: 9999px;
843 --radius: 7px;
844
845 /* Type scale — bigger display sizes for editorial feel */
846 --t-xs: 11px;
847 --t-sm: 13px;
848 --t-base: 14px;
849 --t-md: 16px;
850 --t-lg: 20px;
851 --t-xl: 28px;
852 --t-2xl: 40px;
853 --t-3xl: 56px;
854 --t-display: 72px;
855 --t-display-lg:96px;
856
857 /* Spacing — 4px base */
2ce1d0bClaude858 --s-0: 0;
958d26aClaude859 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
860 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
861 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
862 --s-20:80px; --s-24:96px; --s-32:128px;
863
864 /* Elevation — softer + more layered */
865 --elev-0: 0 0 0 1px var(--border);
866 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
867 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
868 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
869 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
870 --ring: 0 0 0 3px rgba(140,109,255,0.28);
871 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
872 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
873
874 /* Motion */
875 --ease: cubic-bezier(0.16, 1, 0.3, 1);
876 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
877 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
878 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
879 --t-fast: 120ms;
880 --t-base: 200ms;
881 --t-slow: 360ms;
882 --t-slower:560ms;
883
884 --header-h: 60px;
c63b860Claude885
886 /* Block O3 — visual coherence: named token aliases (additive). */
887 --space-1: var(--s-1);
888 --space-2: var(--s-2);
889 --space-3: var(--s-3);
890 --space-4: var(--s-4);
891 --space-5: var(--s-5);
892 --space-6: var(--s-6);
893 --space-8: var(--s-8);
894 --space-10: var(--s-10);
895 --space-12: var(--s-12);
896 --space-16: var(--s-16);
897 --space-20: var(--s-20);
898 --space-24: var(--s-24);
899 --radius-sm: var(--r-sm);
900 --radius-md: var(--r-md);
901 --radius-lg: var(--r-lg);
902 --radius-xl: var(--r-xl);
903 --radius-full: var(--r-full);
904 --font-size-xs: var(--t-xs);
905 --font-size-sm: var(--t-sm);
906 --font-size-base: var(--t-base);
907 --font-size-md: var(--t-md);
908 --font-size-lg: var(--t-lg);
909 --font-size-xl: var(--t-xl);
910 --font-size-2xl: var(--t-2xl);
911 --font-size-3xl: var(--t-3xl);
912 --font-size-hero: var(--t-display);
913 --leading-tight: 1.2;
914 --leading-snug: 1.35;
915 --leading-normal: 1.5;
916 --leading-relaxed: 1.6;
917 --leading-loose: 1.7;
918 --z-base: 1;
919 --z-nav: 10;
920 --z-sticky: 50;
921 --z-overlay: 100;
922 --z-modal: 1000;
923 --z-toast: 10000;
fc1817aClaude924 }
925
6fc53bdClaude926 :root[data-theme='light'] {
958d26aClaude927 --bg: #fbfbfc;
4c47454Claude928 --bg-secondary: #ffffff;
958d26aClaude929 --bg-tertiary: #f3f3f6;
930 --bg-elevated: #ffffff;
931 --bg-surface: #f6f6f9;
932 --bg-hover: rgba(0,0,0,0.035);
933 --bg-active: rgba(0,0,0,0.07);
934 --bg-inset: rgba(0,0,0,0.04);
935
936 --border: rgba(15,16,28,0.08);
937 --border-subtle: rgba(15,16,28,0.04);
938 --border-strong: rgba(15,16,28,0.16);
939
940 --text: #0e1020;
941 --text-strong: #050617;
942 --text-muted: #5a5b70;
943 --text-faint: #8a8b9e;
944 --text-link: #6d4dff;
945
946 --accent: #6d4dff;
947 --accent-2: #0891b2;
948 --accent-hover: #5a3df0;
949 --accent-pressed:#4a30d6;
950 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
951
952 --green: #059669;
953 --red: #dc2626;
4c47454Claude954 --yellow: #d97706;
958d26aClaude955
956 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
957 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
958 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude959 }
960
961 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude962 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
963 .nav-theme:hover { opacity: 1; }
6fc53bdClaude964 :root[data-theme='dark'] .theme-icon-dark { display: none; }
965 :root[data-theme='light'] .theme-icon-light { display: none; }
966
fc1817aClaude967 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude968 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude969
958d26aClaude970 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude971
972 body {
973 font-family: var(--font-sans);
974 background: var(--bg);
975 color: var(--text);
2ce1d0bClaude976 line-height: 1.55;
958d26aClaude977 letter-spacing: -0.011em;
fc1817aClaude978 min-height: 100vh;
979 display: flex;
980 flex-direction: column;
958d26aClaude981 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
fc1817aClaude982 }
983
958d26aClaude984 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
985 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude986 body::before {
987 content: '';
988 position: fixed;
989 inset: 0;
990 pointer-events: none;
958d26aClaude991 z-index: -2;
2ce1d0bClaude992 background:
958d26aClaude993 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
994 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
995 }
996 body::after {
997 content: '';
998 position: fixed;
999 inset: 0;
1000 pointer-events: none;
1001 z-index: -1;
1002 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1003 background-size: 28px 28px;
1004 background-position: 0 0;
1005 opacity: 0.55;
1006 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1007 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1008 }
1009 :root[data-theme='light'] body::before { opacity: 0.55; }
1010 :root[data-theme='light'] body::after {
1011 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1012 opacity: 0.4;
fc1817aClaude1013 }
2ce1d0bClaude1014
1015 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1016 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1017
958d26aClaude1018 /* Heading scale — confident, editorial, tight tracking */
1019 h1, h2, h3, h4, h5, h6 {
1020 font-family: var(--font-display);
2ce1d0bClaude1021 font-weight: 600;
958d26aClaude1022 letter-spacing: -0.022em;
1023 line-height: 1.18;
1024 color: var(--text-strong);
1025 }
1026 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1027 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1028 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1029 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1030 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1031
1032 /* Editorial display heading utility — used by landing + marketing pages */
1033 .display {
1034 font-family: var(--font-display);
1035 font-size: clamp(40px, 7.5vw, 96px);
1036 line-height: 0.98;
1037 letter-spacing: -0.04em;
1038 font-weight: 600;
1039 color: var(--text-strong);
2ce1d0bClaude1040 }
fc1817aClaude1041
958d26aClaude1042 /* Eyebrow — uppercase mono label that sits above section headings */
1043 .eyebrow {
1044 display: inline-flex;
1045 align-items: center;
1046 gap: 8px;
1047 font-family: var(--font-mono);
1048 font-size: 11px;
1049 font-weight: 500;
1050 letter-spacing: 0.14em;
1051 text-transform: uppercase;
1052 color: var(--accent);
1053 margin-bottom: var(--s-3);
1054 }
1055 .eyebrow::before {
1056 content: '';
1057 width: 18px;
1058 height: 1px;
1059 background: currentColor;
1060 opacity: 0.6;
1061 }
1062
1063 /* Section header — paired eyebrow + title + lede */
1064 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1065 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1066 .section-header h2 {
1067 font-size: clamp(28px, 4vw, 44px);
1068 line-height: 1.05;
1069 letter-spacing: -0.028em;
1070 margin-bottom: var(--s-3);
1071 }
1072 .section-header p {
1073 color: var(--text-muted);
1074 font-size: var(--t-md);
1075 line-height: 1.6;
1076 max-width: 580px;
1077 margin: 0 auto;
1078 }
1079 .section-header.left p { margin-left: 0; }
fc1817aClaude1080
958d26aClaude1081 code, kbd, samp {
2ce1d0bClaude1082 font-family: var(--font-mono);
958d26aClaude1083 font-feature-settings: var(--mono-feat);
1084 }
1085 code {
1086 font-size: 0.9em;
2ce1d0bClaude1087 background: var(--bg-tertiary);
958d26aClaude1088 border: 1px solid var(--border-subtle);
2ce1d0bClaude1089 padding: 1px 6px;
1090 border-radius: var(--r-sm);
1091 color: var(--text);
1092 }
958d26aClaude1093 kbd, .kbd {
1094 display: inline-flex;
1095 align-items: center;
1096 padding: 1px 6px;
1097 font-family: var(--font-mono);
1098 font-size: 11px;
1099 background: var(--bg-elevated);
1100 border: 1px solid var(--border);
1101 border-bottom-width: 2px;
1102 border-radius: 4px;
1103 color: var(--text);
1104 line-height: 1.5;
1105 vertical-align: middle;
1106 }
2ce1d0bClaude1107
958d26aClaude1108 /* Mono utility for technical chrome (paths, IDs, dates) */
1109 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1110 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1111
1112 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1113 .prelaunch-banner {
958d26aClaude1114 position: relative;
2ce1d0bClaude1115 background:
958d26aClaude1116 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1117 var(--bg);
958d26aClaude1118 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1119 color: var(--yellow);
958d26aClaude1120 padding: 7px 24px;
1121 font-family: var(--font-mono);
1122 font-size: 11px;
4a52a98Claude1123 font-weight: 500;
1124 text-align: center;
2ce1d0bClaude1125 line-height: 1.5;
958d26aClaude1126 letter-spacing: 0.04em;
1127 text-transform: uppercase;
1128 }
1129 .prelaunch-banner::before {
1130 content: '◆';
1131 margin-right: 8px;
1132 font-size: 9px;
1133 opacity: 0.7;
1134 vertical-align: 1px;
4a52a98Claude1135 }
1136
cd4f63bTest User1137 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1138 visitors don't miss the "save your work" CTA, but slim enough to
1139 not feel like a modal. */
1140 .playground-banner {
1141 position: relative;
1142 display: flex;
1143 align-items: center;
1144 justify-content: center;
1145 gap: 8px;
1146 background:
1147 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1148 var(--bg);
1149 border-bottom: 1px solid rgba(251,191,36,0.45);
1150 color: var(--yellow, #fbbf24);
1151 padding: 8px 40px 8px 24px;
1152 font-size: 13px;
1153 font-weight: 500;
1154 text-align: center;
1155 line-height: 1.4;
1156 }
1157 .playground-banner-icon { font-size: 14px; }
1158 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1159 .playground-banner-countdown { font-weight: 600; }
1160 .playground-banner-cta {
1161 margin-left: 4px;
1162 color: var(--yellow, #fbbf24);
1163 text-decoration: underline;
1164 font-weight: 600;
1165 }
1166 .playground-banner-cta:hover { opacity: 0.85; }
1167 .playground-banner-dismiss {
1168 position: absolute;
1169 top: 50%;
1170 right: 12px;
1171 transform: translateY(-50%);
1172 background: transparent;
1173 border: none;
1174 color: var(--text-muted, #8b949e);
1175 font-size: 18px;
1176 line-height: 1;
1177 cursor: pointer;
1178 padding: 0 4px;
1179 }
1180 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1181
958d26aClaude1182 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1183 header {
2ce1d0bClaude1184 position: sticky;
1185 top: 0;
1186 z-index: 100;
fc1817aClaude1187 border-bottom: 1px solid var(--border);
2ce1d0bClaude1188 padding: 0 24px;
1189 height: var(--header-h);
958d26aClaude1190 background: rgba(8,9,15,0.72);
1191 backdrop-filter: saturate(180%) blur(18px);
1192 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1193 }
958d26aClaude1194 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1195
06d5ffeClaude1196 header nav {
1197 display: flex;
1198 align-items: center;
958d26aClaude1199 gap: 18px;
1200 max-width: 1240px;
06d5ffeClaude1201 margin: 0 auto;
2ce1d0bClaude1202 height: 100%;
1203 }
1204 .logo {
958d26aClaude1205 font-family: var(--font-display);
1206 font-size: 16px;
2ce1d0bClaude1207 font-weight: 700;
958d26aClaude1208 letter-spacing: -0.025em;
1209 color: var(--text-strong);
2ce1d0bClaude1210 display: inline-flex;
1211 align-items: center;
958d26aClaude1212 gap: 9px;
1213 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1214 }
2ce1d0bClaude1215 .logo::before {
1216 content: '';
958d26aClaude1217 width: 20px; height: 20px;
1218 border-radius: 6px;
2ce1d0bClaude1219 background: var(--accent-gradient);
958d26aClaude1220 box-shadow:
1221 inset 0 1px 0 rgba(255,255,255,0.25),
1222 0 0 0 1px rgba(140,109,255,0.45),
1223 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1224 flex-shrink: 0;
958d26aClaude1225 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1226 }
1227 .logo:hover { text-decoration: none; color: var(--text-strong); }
1228 .logo:hover::before {
1229 transform: rotate(8deg) scale(1.05);
1230 box-shadow:
1231 inset 0 1px 0 rgba(255,255,255,0.30),
1232 0 0 0 1px rgba(140,109,255,0.55),
1233 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1234 }
fc1817aClaude1235
2ce1d0bClaude1236 .nav-search {
1237 flex: 1;
958d26aClaude1238 max-width: 360px;
1239 margin: 0 4px 0 8px;
1240 position: relative;
2ce1d0bClaude1241 }
1242 .nav-search input {
1243 width: 100%;
958d26aClaude1244 padding: 7px 12px 7px 32px;
2ce1d0bClaude1245 background: var(--bg-tertiary);
1246 border: 1px solid var(--border);
1247 border-radius: var(--r-sm);
1248 color: var(--text);
1249 font-family: var(--font-sans);
1250 font-size: var(--t-sm);
958d26aClaude1251 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1252 }
1253 .nav-search::before {
1254 content: '';
1255 position: absolute;
1256 left: 11px; top: 50%;
1257 transform: translateY(-50%);
1258 width: 12px; height: 12px;
1259 border: 1.5px solid var(--text-faint);
1260 border-radius: 50%;
1261 pointer-events: none;
1262 }
1263 .nav-search::after {
1264 content: '';
1265 position: absolute;
1266 left: 19px; top: calc(50% + 4px);
1267 width: 5px; height: 1.5px;
1268 background: var(--text-faint);
1269 transform: rotate(45deg);
1270 pointer-events: none;
2ce1d0bClaude1271 }
1272 .nav-search input::placeholder { color: var(--text-faint); }
1273 .nav-search input:focus {
1274 outline: none;
1275 background: var(--bg-secondary);
958d26aClaude1276 border-color: var(--border-focus);
1277 box-shadow: var(--ring);
2ce1d0bClaude1278 }
06d5ffeClaude1279
958d26aClaude1280 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1281
1282 /* Block N3 — site-admin deploy status pill */
1283 .nav-deploy-pill {
1284 display: inline-flex;
1285 align-items: center;
1286 gap: 6px;
1287 padding: 4px 10px;
1288 margin: 0 6px 0 0;
1289 border-radius: 9999px;
1290 font-size: 11px;
1291 font-weight: 600;
1292 line-height: 1;
1293 color: var(--text-strong);
1294 background: var(--bg-elevated);
1295 border: 1px solid var(--border);
1296 text-decoration: none;
1297 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1298 }
1299 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1300 .nav-deploy-pill .deploy-pill-dot {
1301 display: inline-block;
1302 width: 8px; height: 8px;
1303 border-radius: 50%;
1304 background: #6b7280;
1305 }
1306 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1307 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1308 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1309 .deploy-pill-progress .deploy-pill-dot {
1310 background: #fbbf24;
1311 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1312 animation: deployPillPulse 1.2s ease-in-out infinite;
1313 }
1314 @keyframes deployPillPulse {
1315 0%, 100% { opacity: 1; transform: scale(1); }
1316 50% { opacity: 0.45; transform: scale(0.8); }
1317 }
1318 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1319
2ce1d0bClaude1320 .nav-link {
958d26aClaude1321 position: relative;
2ce1d0bClaude1322 color: var(--text-muted);
1323 font-size: var(--t-sm);
1324 font-weight: 500;
958d26aClaude1325 padding: 7px 11px;
2ce1d0bClaude1326 border-radius: var(--r-sm);
958d26aClaude1327 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1328 }
1329 .nav-link:hover {
958d26aClaude1330 color: var(--text-strong);
2ce1d0bClaude1331 background: var(--bg-hover);
1332 text-decoration: none;
1333 }
958d26aClaude1334 .nav-link.active { color: var(--text-strong); }
1335 .nav-link.active::after {
1336 content: '';
1337 position: absolute;
1338 left: 11px; right: 11px;
1339 bottom: -1px;
1340 height: 2px;
1341 background: var(--accent-gradient);
1342 border-radius: 2px;
1343 }
2ce1d0bClaude1344 .nav-user {
958d26aClaude1345 color: var(--text-strong);
2ce1d0bClaude1346 font-weight: 600;
1347 font-size: var(--t-sm);
1348 padding: 6px 10px;
1349 border-radius: var(--r-sm);
958d26aClaude1350 margin-left: 6px;
2ce1d0bClaude1351 transition: background var(--t-fast) var(--ease);
1352 }
958d26aClaude1353 .nav-user::before {
1354 content: '';
1355 display: inline-block;
1356 width: 8px; height: 8px;
1357 background: var(--green);
1358 border-radius: 50%;
1359 margin-right: 7px;
1360 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1361 vertical-align: 1px;
1362 }
2ce1d0bClaude1363 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1364
2ce1d0bClaude1365 main {
958d26aClaude1366 max-width: 1240px;
2ce1d0bClaude1367 margin: 0 auto;
958d26aClaude1368 padding: 36px 24px 80px;
2ce1d0bClaude1369 flex: 1;
1370 width: 100%;
1371 }
fc1817aClaude1372
958d26aClaude1373 /* Editorial footer: link grid + tagline row */
fc1817aClaude1374 footer {
1375 border-top: 1px solid var(--border);
958d26aClaude1376 padding: 56px 24px 40px;
fc1817aClaude1377 color: var(--text-muted);
958d26aClaude1378 font-size: var(--t-sm);
1379 background:
1380 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1381 var(--bg);
1382 }
1383 footer .footer-inner {
1384 max-width: 1240px;
1385 margin: 0 auto;
1386 display: grid;
1387 grid-template-columns: 1fr auto;
1388 gap: 48px;
1389 align-items: start;
1390 }
1391 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1392 footer .footer-tag {
1393 color: var(--text-muted);
1394 font-size: var(--t-sm);
1395 max-width: 320px;
1396 line-height: 1.55;
1397 }
1398 footer .footer-links {
1399 display: grid;
1400 grid-template-columns: repeat(3, minmax(120px, auto));
1401 gap: 0 56px;
1402 }
1403 footer .footer-col-title {
1404 font-family: var(--font-mono);
1405 font-size: 11px;
1406 text-transform: uppercase;
1407 letter-spacing: 0.14em;
1408 color: var(--text-faint);
1409 margin-bottom: var(--s-3);
1410 }
1411 footer .footer-col a {
1412 display: block;
1413 color: var(--text-muted);
1414 font-size: var(--t-sm);
1415 padding: 5px 0;
1416 transition: color var(--t-fast) var(--ease);
1417 }
1418 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1419 footer .footer-bottom {
1420 max-width: 1240px;
1421 margin: 40px auto 0;
1422 padding-top: 24px;
1423 border-top: 1px solid var(--border-subtle);
1424 display: flex;
1425 justify-content: space-between;
1426 align-items: center;
2ce1d0bClaude1427 color: var(--text-faint);
1428 font-size: var(--t-xs);
958d26aClaude1429 font-family: var(--font-mono);
1430 letter-spacing: 0.02em;
1431 }
1432 footer .footer-bottom a { color: var(--text-faint); }
1433 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1434 footer .footer-build {
1435 display: inline-flex;
1436 align-items: center;
1437 gap: 6px;
1438 color: var(--text-faint);
1439 font-family: var(--font-mono);
1440 font-size: 11px;
1441 cursor: help;
1442 }
1443 footer .footer-build-dot {
1444 width: 6px; height: 6px;
1445 border-radius: 50%;
1446 background: var(--green);
1447 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1448 animation: footer-build-pulse 2.4s ease-in-out infinite;
1449 }
1450 @keyframes footer-build-pulse {
1451 0%, 100% { opacity: 0.6; }
1452 50% { opacity: 1; }
1453 }
958d26aClaude1454 @media (max-width: 768px) {
1455 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1456 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1457 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1458 }
1459
2ce1d0bClaude1460 /* ============================================================ */
1461 /* Buttons */
1462 /* ============================================================ */
bba3681Test User1463 /* ============================================================ */
1464 /* Buttons — Block U2 senior polish pass. */
1465 /* Rules: */
1466 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1467 /* · active presses back down to 0 (80ms — faster on press) */
1468 /* · focus-visible uses a soft box-shadow ring (no outline) */
1469 /* · primary gradient shifts position on hover for a slow */
1470 /* 600ms shimmer */
1471 /* · disabled never lifts and never animates */
1472 /* ============================================================ */
06d5ffeClaude1473 .btn {
1474 display: inline-flex;
1475 align-items: center;
2ce1d0bClaude1476 justify-content: center;
958d26aClaude1477 gap: 7px;
2ce1d0bClaude1478 padding: 7px 14px;
1479 border-radius: var(--r-sm);
958d26aClaude1480 font-family: var(--font-sans);
2ce1d0bClaude1481 font-size: var(--t-sm);
06d5ffeClaude1482 font-weight: 500;
1483 border: 1px solid var(--border);
2ce1d0bClaude1484 background: var(--bg-elevated);
06d5ffeClaude1485 color: var(--text);
1486 cursor: pointer;
1487 text-decoration: none;
958d26aClaude1488 line-height: 1.25;
1489 letter-spacing: -0.008em;
bba3681Test User1490 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1491 Listed once on the base rule so :active can override only the
1492 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1493 transition:
bba3681Test User1494 background 180ms ease,
1495 border-color 180ms ease,
1496 transform 180ms ease,
1497 box-shadow 180ms ease,
1498 color 180ms ease;
2ce1d0bClaude1499 user-select: none;
1500 white-space: nowrap;
958d26aClaude1501 position: relative;
06d5ffeClaude1502 }
2ce1d0bClaude1503 .btn:hover {
1504 background: var(--bg-surface);
1505 border-color: var(--border-strong);
958d26aClaude1506 color: var(--text-strong);
2ce1d0bClaude1507 text-decoration: none;
bba3681Test User1508 /* U2 — universal hover lift + soft accent drop shadow. */
1509 transform: translateY(-1px);
1510 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1511 }
1512 .btn:active {
1513 transform: translateY(0);
1514 transition-duration: 80ms;
1515 }
1516 /* U2 — soft modern focus ring via box-shadow, not outline. */
1517 .btn:focus-visible {
1518 outline: none;
1519 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1520 }
1521
1522 .btn-primary {
1523 background: var(--accent-gradient);
bba3681Test User1524 background-size: 200% 100%;
1525 background-position: 0% 50%;
2ce1d0bClaude1526 border-color: transparent;
1527 color: #fff;
1528 font-weight: 600;
958d26aClaude1529 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1530 box-shadow:
958d26aClaude1531 inset 0 1px 0 rgba(255,255,255,0.22),
1532 inset 0 -1px 0 rgba(0,0,0,0.10),
1533 0 1px 2px rgba(0,0,0,0.40),
1534 0 0 0 1px rgba(140,109,255,0.30);
bba3681Test User1535 /* U2 — slower 600ms transition on background-position so the
1536 primary CTA shimmers when the cursor lands. */
1537 transition:
1538 background-position 600ms ease,
1539 transform 180ms ease,
1540 box-shadow 180ms ease,
1541 color 180ms ease;
06d5ffeClaude1542 }
958d26aClaude1543 .btn-primary::before {
1544 content: '';
1545 position: absolute;
1546 inset: 0;
1547 border-radius: inherit;
1548 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1549 opacity: 0;
1550 transition: opacity var(--t-fast) var(--ease);
1551 pointer-events: none;
2ce1d0bClaude1552 }
1553 .btn-primary:hover {
958d26aClaude1554 color: #fff;
2ce1d0bClaude1555 background: var(--accent-gradient);
bba3681Test User1556 background-size: 200% 100%;
1557 background-position: 100% 50%;
958d26aClaude1558 border-color: transparent;
bba3681Test User1559 transform: translateY(-1px);
2ce1d0bClaude1560 box-shadow:
958d26aClaude1561 inset 0 1px 0 rgba(255,255,255,0.30),
1562 inset 0 -1px 0 rgba(0,0,0,0.10),
1563 0 6px 18px -4px rgba(140,109,255,0.45),
1564 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1565 }
958d26aClaude1566 .btn-primary:hover::before { opacity: 1; }
bba3681Test User1567 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
1568 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
1569 .btn-primary:focus-visible {
1570 box-shadow:
1571 inset 0 1px 0 rgba(255,255,255,0.22),
1572 0 0 0 3px rgba(140,109,255,0.35);
1573 }
2ce1d0bClaude1574
1575 .btn-danger {
1576 background: transparent;
958d26aClaude1577 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude1578 color: var(--red);
1579 }
1580 .btn-danger:hover {
958d26aClaude1581 background: rgba(248,113,113,0.08);
2ce1d0bClaude1582 border-color: var(--red);
958d26aClaude1583 color: var(--red);
bba3681Test User1584 transform: translateY(-1px);
1585 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude1586 }
bba3681Test User1587 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude1588
1589 .btn-ghost {
1590 background: transparent;
1591 border-color: transparent;
1592 color: var(--text-muted);
1593 }
1594 .btn-ghost:hover {
1595 background: var(--bg-hover);
958d26aClaude1596 color: var(--text-strong);
2ce1d0bClaude1597 border-color: var(--border);
bba3681Test User1598 transform: translateY(-1px);
1599 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude1600 }
1601
958d26aClaude1602 .btn-secondary {
1603 background: var(--bg-elevated);
1604 border-color: var(--border-strong);
1605 color: var(--text-strong);
1606 }
1607 .btn-secondary:hover {
1608 background: var(--bg-surface);
1609 border-color: var(--border-strong);
bba3681Test User1610 transform: translateY(-1px);
1611 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude1612 }
1613
1614 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
1615 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
1616 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
1617 .btn-block { width: 100%; }
2ce1d0bClaude1618
bba3681Test User1619 /* U2 — disabled never lifts, never shimmers, never glows. */
1620 .btn:disabled,
1621 .btn[aria-disabled='true'],
1622 .btn:disabled:hover,
1623 .btn[aria-disabled='true']:hover {
1624 opacity: 0.5;
2ce1d0bClaude1625 cursor: not-allowed;
1626 pointer-events: none;
bba3681Test User1627 transform: none;
1628 box-shadow: none;
1629 }
1630 @media (prefers-reduced-motion: reduce) {
1631 .btn,
1632 .btn:hover,
1633 .btn:active,
1634 .btn-primary,
1635 .btn-primary:hover {
1636 transform: none;
1637 transition: background-color 80ms linear, color 80ms linear;
1638 }
2ce1d0bClaude1639 }
1640
1641 /* ============================================================ */
1642 /* Forms */
1643 /* ============================================================ */
1644 .form-group { margin-bottom: 20px; }
1645 .form-group label {
1646 display: block;
1647 font-size: var(--t-sm);
1648 font-weight: 500;
1649 margin-bottom: 6px;
1650 color: var(--text);
1651 letter-spacing: -0.005em;
1652 }
1653 .form-group input,
1654 .form-group textarea,
1655 .form-group select,
1656 input[type='text'], input[type='email'], input[type='password'],
1657 input[type='url'], input[type='search'], input[type='number'],
1658 textarea, select {
06d5ffeClaude1659 width: 100%;
2ce1d0bClaude1660 padding: 9px 12px;
1661 background: var(--bg-secondary);
06d5ffeClaude1662 border: 1px solid var(--border);
2ce1d0bClaude1663 border-radius: var(--r-sm);
06d5ffeClaude1664 color: var(--text);
2ce1d0bClaude1665 font-size: var(--t-sm);
06d5ffeClaude1666 font-family: var(--font-sans);
2ce1d0bClaude1667 transition:
1668 border-color var(--t-fast) var(--ease),
1669 background var(--t-fast) var(--ease),
1670 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude1671 }
2ce1d0bClaude1672 .form-group input::placeholder, textarea::placeholder, input::placeholder {
1673 color: var(--text-faint);
06d5ffeClaude1674 }
2ce1d0bClaude1675 .form-group input:hover, textarea:hover, select:hover,
1676 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
1677 border-color: var(--border-strong);
1678 }
1679 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
1680 input:focus, textarea:focus, select:focus {
06d5ffeClaude1681 outline: none;
2ce1d0bClaude1682 background: var(--bg);
1683 border-color: var(--border-focus);
1684 box-shadow: var(--ring);
06d5ffeClaude1685 }
2ce1d0bClaude1686 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude1687 .input-disabled { opacity: 0.5; cursor: not-allowed; }
1688
2ce1d0bClaude1689 /* ============================================================ */
1690 /* Auth (register / login / verify) */
1691 /* ============================================================ */
1692 .auth-container {
1693 max-width: 420px;
1694 margin: 64px auto;
1695 padding: 32px;
1696 background: var(--bg-elevated);
1697 border: 1px solid var(--border);
1698 border-radius: var(--r-lg);
1699 box-shadow: var(--elev-2);
1700 }
1701 .auth-container h2 {
1702 margin-bottom: 6px;
1703 font-size: var(--t-lg);
1704 letter-spacing: -0.02em;
1705 }
1706 .auth-container > p {
1707 color: var(--text-muted);
1708 font-size: var(--t-sm);
1709 margin-bottom: 24px;
1710 }
1711 .auth-container .btn-primary { width: 100%; padding: 10px 16px; }
06d5ffeClaude1712 .auth-error {
958d26aClaude1713 background: rgba(248,113,113,0.08);
1714 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude1715 color: var(--red);
2ce1d0bClaude1716 padding: 10px 14px;
1717 border-radius: var(--r-sm);
06d5ffeClaude1718 margin-bottom: 16px;
2ce1d0bClaude1719 font-size: var(--t-sm);
06d5ffeClaude1720 }
1721 .auth-success {
958d26aClaude1722 background: rgba(52,211,153,0.08);
1723 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude1724 color: var(--green);
2ce1d0bClaude1725 padding: 10px 14px;
1726 border-radius: var(--r-sm);
06d5ffeClaude1727 margin-bottom: 16px;
2ce1d0bClaude1728 font-size: var(--t-sm);
1729 }
1730 .auth-switch {
1731 margin-top: 20px;
1732 font-size: var(--t-sm);
1733 color: var(--text-muted);
1734 text-align: center;
1735 }
1736 .banner {
1737 background: var(--accent-gradient-faint);
958d26aClaude1738 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude1739 color: var(--text);
1740 padding: 10px 14px;
1741 border-radius: var(--r-sm);
1742 font-size: var(--t-sm);
06d5ffeClaude1743 }
1744
2ce1d0bClaude1745 /* ============================================================ */
1746 /* Settings */
1747 /* ============================================================ */
1748 .settings-container { max-width: 720px; }
1749 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
1750 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
1751 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
1752 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude1753 .ssh-keys-list { margin-bottom: 24px; }
1754 .ssh-key-item {
1755 display: flex;
1756 justify-content: space-between;
1757 align-items: center;
2ce1d0bClaude1758 padding: 14px 16px;
06d5ffeClaude1759 border: 1px solid var(--border);
2ce1d0bClaude1760 border-radius: var(--r-md);
06d5ffeClaude1761 margin-bottom: 8px;
2ce1d0bClaude1762 background: var(--bg-elevated);
1763 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude1764 }
2ce1d0bClaude1765 .ssh-key-item:hover { border-color: var(--border-strong); }
1766 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
1767 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude1768
2ce1d0bClaude1769 /* ============================================================ */
1770 /* Repo header + nav */
1771 /* ============================================================ */
fc1817aClaude1772 .repo-header {
1773 display: flex;
1774 align-items: center;
debcf27Claude1775 gap: 12px;
1776 margin-bottom: 22px;
1777 }
1778 .repo-header-title {
1779 display: flex;
1780 align-items: center;
1781 gap: 10px;
1782 font-family: var(--font-display);
1783 font-size: 24px;
1784 letter-spacing: -0.025em;
1785 flex-wrap: wrap;
1786 }
1787 .repo-header .owner {
1788 color: var(--text-muted);
1789 font-weight: 500;
1790 transition: color var(--t-fast) var(--ease);
1791 }
1792 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
1793 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
1794 .repo-header .name {
1795 color: var(--text-strong);
1796 font-weight: 700;
1797 letter-spacing: -0.028em;
fc1817aClaude1798 }
2ce1d0bClaude1799 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude1800 .repo-header-fork {
1801 font-family: var(--font-mono);
1802 font-size: 11px;
1803 color: var(--text-muted);
1804 margin-top: 4px;
1805 letter-spacing: 0.01em;
1806 }
1807 .repo-header-fork a { color: var(--text-muted); }
1808 .repo-header-fork a:hover { color: var(--accent); }
1809 .repo-header-pill {
1810 display: inline-flex;
1811 align-items: center;
1812 padding: 2px 10px;
1813 border-radius: var(--r-full);
1814 font-family: var(--font-mono);
1815 font-size: 10px;
1816 font-weight: 600;
1817 letter-spacing: 0.12em;
1818 text-transform: uppercase;
1819 line-height: 1.6;
1820 vertical-align: 4px;
1821 }
1822 .repo-header-pill-archived {
1823 background: rgba(251,191,36,0.10);
1824 color: var(--yellow);
1825 border: 1px solid rgba(251,191,36,0.30);
1826 }
1827 .repo-header-pill-template {
1828 background: var(--accent-gradient-faint);
1829 color: var(--accent);
1830 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude1831 }
06d5ffeClaude1832 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude1833
1834 .repo-nav {
1835 display: flex;
debcf27Claude1836 gap: 1px;
fc1817aClaude1837 border-bottom: 1px solid var(--border);
debcf27Claude1838 margin-bottom: 28px;
2ce1d0bClaude1839 overflow-x: auto;
1840 scrollbar-width: thin;
fc1817aClaude1841 }
2ce1d0bClaude1842 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude1843 .repo-nav a {
debcf27Claude1844 position: relative;
1845 padding: 11px 14px;
fc1817aClaude1846 color: var(--text-muted);
1847 border-bottom: 2px solid transparent;
2ce1d0bClaude1848 font-size: var(--t-sm);
1849 font-weight: 500;
1850 margin-bottom: -1px;
debcf27Claude1851 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1852 white-space: nowrap;
1853 }
debcf27Claude1854 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude1855 .repo-nav a.active {
debcf27Claude1856 color: var(--text-strong);
1857 font-weight: 600;
1858 }
1859 .repo-nav a.active::after {
1860 content: '';
1861 position: absolute;
1862 left: 14px;
1863 right: 14px;
1864 bottom: -1px;
1865 height: 2px;
1866 background: var(--accent-gradient);
1867 border-radius: 2px;
1868 }
1869 /* AI links in the right-side cluster — sparkle accent */
1870 .repo-nav-ai {
1871 color: var(--accent) !important;
1872 font-weight: 500;
1873 }
1874 .repo-nav-ai:hover {
1875 color: var(--accent-hover) !important;
1876 background: var(--accent-gradient-faint) !important;
1877 }
1878 .repo-nav-ai.active {
1879 color: var(--accent-hover) !important;
2ce1d0bClaude1880 font-weight: 600;
fc1817aClaude1881 }
1882
2ce1d0bClaude1883 .breadcrumb {
1884 display: flex;
debcf27Claude1885 gap: 6px;
2ce1d0bClaude1886 align-items: center;
debcf27Claude1887 margin-bottom: 18px;
2ce1d0bClaude1888 color: var(--text-muted);
1889 font-size: var(--t-sm);
1890 font-family: var(--font-mono);
debcf27Claude1891 font-feature-settings: var(--mono-feat);
2ce1d0bClaude1892 }
1893 .breadcrumb a { color: var(--text-link); font-weight: 500; }
1894 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude1895 .breadcrumb strong {
1896 color: var(--text-strong);
1897 font-weight: 600;
fc1817aClaude1898 }
1899
debcf27Claude1900 /* Page header — eyebrow + title + optional actions row.
1901 Use on dashboard, settings, admin, any "section landing" page. */
1902 .page-header {
1903 display: flex;
1904 align-items: flex-end;
1905 justify-content: space-between;
1906 gap: 16px;
1907 margin-bottom: 28px;
1908 padding-bottom: 20px;
1909 border-bottom: 1px solid var(--border-subtle);
1910 flex-wrap: wrap;
1911 }
1912 .page-header-text { flex: 1; min-width: 280px; }
1913 .page-header .eyebrow { margin-bottom: var(--s-2); }
1914 .page-header h1 {
1915 font-family: var(--font-display);
1916 font-size: clamp(24px, 3vw, 36px);
1917 line-height: 1.1;
1918 letter-spacing: -0.028em;
1919 margin-bottom: 6px;
1920 }
1921 .page-header p {
1922 color: var(--text-muted);
1923 font-size: var(--t-sm);
1924 line-height: 1.55;
1925 max-width: 640px;
1926 }
1927 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude1928
2ce1d0bClaude1929 /* ============================================================ */
1930 /* File browser table */
1931 /* ============================================================ */
1932 .file-table {
1933 width: 100%;
1934 border: 1px solid var(--border);
1935 border-radius: var(--r-md);
1936 overflow: hidden;
1937 background: var(--bg-elevated);
debcf27Claude1938 border-collapse: collapse;
2ce1d0bClaude1939 }
debcf27Claude1940 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude1941 .file-table tr:last-child { border-bottom: none; }
debcf27Claude1942 .file-table td {
1943 padding: 9px 16px;
1944 font-size: var(--t-sm);
1945 font-family: var(--font-mono);
1946 font-feature-settings: var(--mono-feat);
1947 }
2ce1d0bClaude1948 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude1949 .file-icon {
1950 width: 22px;
1951 color: var(--text-faint);
1952 font-size: 13px;
1953 text-align: center;
1954 }
1955 .file-name a {
1956 color: var(--text);
1957 font-weight: 500;
1958 transition: color var(--t-fast) var(--ease);
1959 }
1960 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude1961
2ce1d0bClaude1962 /* ============================================================ */
1963 /* Blob view */
1964 /* ============================================================ */
fc1817aClaude1965 .blob-view {
1966 border: 1px solid var(--border);
2ce1d0bClaude1967 border-radius: var(--r-md);
fc1817aClaude1968 overflow: hidden;
2ce1d0bClaude1969 background: var(--bg-elevated);
fc1817aClaude1970 }
1971 .blob-header {
1972 background: var(--bg-secondary);
2ce1d0bClaude1973 padding: 10px 16px;
fc1817aClaude1974 border-bottom: 1px solid var(--border);
2ce1d0bClaude1975 font-size: var(--t-sm);
fc1817aClaude1976 color: var(--text-muted);
06d5ffeClaude1977 display: flex;
1978 justify-content: space-between;
1979 align-items: center;
fc1817aClaude1980 }
1981 .blob-code {
1982 overflow-x: auto;
1983 font-family: var(--font-mono);
2ce1d0bClaude1984 font-size: var(--t-sm);
1985 line-height: 1.65;
fc1817aClaude1986 }
1987 .blob-code table { width: 100%; border-collapse: collapse; }
1988 .blob-code .line-num {
1989 width: 1%;
2ce1d0bClaude1990 min-width: 56px;
1991 padding: 0 14px;
fc1817aClaude1992 text-align: right;
2ce1d0bClaude1993 color: var(--text-faint);
fc1817aClaude1994 user-select: none;
1995 white-space: nowrap;
1996 border-right: 1px solid var(--border);
1997 }
2ce1d0bClaude1998 .blob-code .line-content { padding: 0 16px; white-space: pre; }
1999 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2000
2ce1d0bClaude2001 /* ============================================================ */
2002 /* Commits + diffs */
2003 /* ============================================================ */
2004 .commit-list {
2005 border: 1px solid var(--border);
2006 border-radius: var(--r-md);
2007 overflow: hidden;
2008 background: var(--bg-elevated);
2009 }
fc1817aClaude2010 .commit-item {
2011 display: flex;
2012 justify-content: space-between;
2013 align-items: center;
debcf27Claude2014 padding: 14px 18px;
2015 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2016 transition: background var(--t-fast) var(--ease);
fc1817aClaude2017 }
2018 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2019 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2020 .commit-message {
2021 font-size: var(--t-sm);
2022 font-weight: 500;
2023 line-height: 1.45;
2024 color: var(--text-strong);
2025 letter-spacing: -0.005em;
2026 }
2027 .commit-meta {
2028 font-family: var(--font-mono);
2029 font-size: 11px;
2030 color: var(--text-muted);
2031 margin-top: 5px;
2032 letter-spacing: 0.01em;
2033 }
fc1817aClaude2034 .commit-sha {
2035 font-family: var(--font-mono);
debcf27Claude2036 font-feature-settings: var(--mono-feat);
2037 font-size: 11px;
2038 padding: 4px 9px;
fc1817aClaude2039 background: var(--bg-tertiary);
2040 border: 1px solid var(--border);
2ce1d0bClaude2041 border-radius: var(--r-sm);
debcf27Claude2042 color: var(--accent);
2043 font-weight: 600;
2044 letter-spacing: 0.02em;
2ce1d0bClaude2045 transition: all var(--t-fast) var(--ease);
fc1817aClaude2046 }
debcf27Claude2047 .commit-sha:hover {
2048 border-color: rgba(140,109,255,0.40);
2049 background: var(--accent-gradient-faint);
2050 color: var(--accent-hover);
2051 text-decoration: none;
fc1817aClaude2052 }
2053
2054 .diff-view { margin-top: 16px; }
2055 .diff-file {
2056 border: 1px solid var(--border);
2ce1d0bClaude2057 border-radius: var(--r-md);
fc1817aClaude2058 margin-bottom: 16px;
2059 overflow: hidden;
2ce1d0bClaude2060 background: var(--bg-elevated);
fc1817aClaude2061 }
2062 .diff-file-header {
2063 background: var(--bg-secondary);
2ce1d0bClaude2064 padding: 10px 16px;
fc1817aClaude2065 border-bottom: 1px solid var(--border);
2066 font-family: var(--font-mono);
2ce1d0bClaude2067 font-size: var(--t-sm);
2068 font-weight: 500;
fc1817aClaude2069 }
2070 .diff-content {
2071 overflow-x: auto;
2072 font-family: var(--font-mono);
2ce1d0bClaude2073 font-size: var(--t-sm);
2074 line-height: 1.65;
fc1817aClaude2075 }
958d26aClaude2076 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2077 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2078 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2079 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2080
2081 .stat-add { color: var(--green); font-weight: 600; }
2082 .stat-del { color: var(--red); font-weight: 600; }
2083
2ce1d0bClaude2084 /* ============================================================ */
2085 /* Empty state */
2086 /* ============================================================ */
fc1817aClaude2087 .empty-state {
2088 text-align: center;
958d26aClaude2089 padding: 96px 24px;
fc1817aClaude2090 color: var(--text-muted);
2ce1d0bClaude2091 border: 1px dashed var(--border);
2092 border-radius: var(--r-lg);
958d26aClaude2093 background:
2094 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2095 var(--bg-elevated);
2096 position: relative;
2097 overflow: hidden;
2098 }
2099 .empty-state::before {
2100 content: '';
2101 position: absolute;
2102 inset: 0;
2103 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2104 background-size: 24px 24px;
2105 opacity: 0.5;
2106 pointer-events: none;
2107 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2108 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2109 }
2110 :root[data-theme='light'] .empty-state::before {
2111 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2112 }
958d26aClaude2113 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2114 .empty-state h2 {
958d26aClaude2115 font-size: var(--t-xl);
2ce1d0bClaude2116 margin-bottom: 8px;
958d26aClaude2117 color: var(--text-strong);
2118 letter-spacing: -0.022em;
2ce1d0bClaude2119 }
958d26aClaude2120 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2121 .empty-state pre {
2122 text-align: left;
2123 display: inline-block;
2124 background: var(--bg-secondary);
958d26aClaude2125 padding: 18px 24px;
2126 border-radius: var(--r-md);
fc1817aClaude2127 border: 1px solid var(--border);
2128 font-family: var(--font-mono);
958d26aClaude2129 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2130 font-size: var(--t-sm);
958d26aClaude2131 margin-top: 24px;
fc1817aClaude2132 line-height: 1.8;
2ce1d0bClaude2133 color: var(--text);
958d26aClaude2134 box-shadow: var(--elev-1);
fc1817aClaude2135 }
2136
2ce1d0bClaude2137 /* ============================================================ */
2138 /* Badges */
2139 /* ============================================================ */
fc1817aClaude2140 .badge {
2ce1d0bClaude2141 display: inline-flex;
2142 align-items: center;
2143 gap: 4px;
2144 padding: 2px 9px;
2145 border-radius: var(--r-full);
2146 font-size: var(--t-xs);
fc1817aClaude2147 font-weight: 500;
2148 background: var(--bg-tertiary);
2149 border: 1px solid var(--border);
2150 color: var(--text-muted);
2ce1d0bClaude2151 line-height: 1.5;
fc1817aClaude2152 }
2153
2ce1d0bClaude2154 /* ============================================================ */
2155 /* Branch dropdown */
2156 /* ============================================================ */
fc1817aClaude2157 .branch-selector {
2158 display: inline-flex;
2159 align-items: center;
2ce1d0bClaude2160 gap: 6px;
2161 padding: 6px 12px;
2162 background: var(--bg-elevated);
fc1817aClaude2163 border: 1px solid var(--border);
2ce1d0bClaude2164 border-radius: var(--r-sm);
2165 font-size: var(--t-sm);
fc1817aClaude2166 color: var(--text);
2167 margin-bottom: 12px;
2ce1d0bClaude2168 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2169 }
2ce1d0bClaude2170 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2171
06d5ffeClaude2172 .branch-dropdown {
2173 position: relative;
2174 display: inline-block;
2175 margin-bottom: 12px;
2176 }
2177 .branch-dropdown-content {
2178 display: none;
2179 position: absolute;
2ce1d0bClaude2180 top: calc(100% + 4px);
06d5ffeClaude2181 left: 0;
2182 z-index: 10;
2ce1d0bClaude2183 min-width: 220px;
2184 background: var(--bg-elevated);
2185 border: 1px solid var(--border-strong);
2186 border-radius: var(--r-md);
2187 overflow: hidden;
2188 box-shadow: var(--elev-3);
06d5ffeClaude2189 }
2190 .branch-dropdown:hover .branch-dropdown-content,
2191 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2192 .branch-dropdown-content a {
2193 display: block;
2ce1d0bClaude2194 padding: 9px 14px;
2195 font-size: var(--t-sm);
06d5ffeClaude2196 color: var(--text);
2197 border-bottom: 1px solid var(--border);
2ce1d0bClaude2198 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2199 }
2200 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2201 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2202 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2203
2ce1d0bClaude2204 /* ============================================================ */
2205 /* Card grid */
2206 /* ============================================================ */
2207 .card-grid {
2208 display: grid;
2209 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2210 gap: 16px;
2211 }
fc1817aClaude2212 .card {
2213 border: 1px solid var(--border);
2ce1d0bClaude2214 border-radius: var(--r-md);
958d26aClaude2215 padding: 20px;
2ce1d0bClaude2216 background: var(--bg-elevated);
2217 transition:
958d26aClaude2218 border-color var(--t-base) var(--ease),
2219 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2220 box-shadow var(--t-base) var(--ease);
2221 position: relative;
2222 overflow: hidden;
958d26aClaude2223 isolation: isolate;
2224 }
2225 .card::before {
2226 content: '';
2227 position: absolute;
2228 inset: 0;
2229 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2230 opacity: 0;
2231 transition: opacity var(--t-base) var(--ease);
2232 pointer-events: none;
2233 z-index: -1;
2ce1d0bClaude2234 }
2235 .card:hover {
2236 border-color: var(--border-strong);
2237 box-shadow: var(--elev-2);
958d26aClaude2238 transform: translateY(-2px);
2ce1d0bClaude2239 }
958d26aClaude2240 .card:hover::before { opacity: 1; }
2241 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2242 .card h3 a { color: var(--text); font-weight: 600; }
2243 .card h3 a:hover { color: var(--text-link); }
2244 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2245 .card-meta {
2246 display: flex;
2247 gap: 14px;
2248 margin-top: 14px;
2249 padding-top: 14px;
2250 border-top: 1px solid var(--border);
2251 font-size: var(--t-xs);
2252 color: var(--text-muted);
2253 }
2254 .card-meta span { display: flex; align-items: center; gap: 5px; }
2255
2256 /* ============================================================ */
2257 /* Stat card / box */
2258 /* ============================================================ */
2259 .stat-card {
2260 background: var(--bg-elevated);
2261 border: 1px solid var(--border);
2262 border-radius: var(--r-md);
fc1817aClaude2263 padding: 16px;
2ce1d0bClaude2264 transition: border-color var(--t-fast) var(--ease);
2265 }
2266 .stat-card:hover { border-color: var(--border-strong); }
2267 .stat-label {
2268 font-size: var(--t-xs);
2269 color: var(--text-muted);
2270 text-transform: uppercase;
2271 letter-spacing: 0.06em;
2272 font-weight: 500;
2273 }
2274 .stat-value {
2275 font-size: var(--t-xl);
2276 font-weight: 700;
2277 margin-top: 4px;
2278 letter-spacing: -0.025em;
2279 color: var(--text);
2280 font-feature-settings: 'tnum';
fc1817aClaude2281 }
06d5ffeClaude2282
2ce1d0bClaude2283 /* ============================================================ */
2284 /* Star button */
2285 /* ============================================================ */
06d5ffeClaude2286 .star-btn {
2287 display: inline-flex;
2288 align-items: center;
2289 gap: 6px;
2ce1d0bClaude2290 padding: 5px 12px;
2291 background: var(--bg-elevated);
06d5ffeClaude2292 border: 1px solid var(--border);
2ce1d0bClaude2293 border-radius: var(--r-sm);
06d5ffeClaude2294 color: var(--text);
2ce1d0bClaude2295 font-size: var(--t-sm);
2296 font-weight: 500;
06d5ffeClaude2297 cursor: pointer;
2ce1d0bClaude2298 transition: all var(--t-fast) var(--ease);
2299 }
2300 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2301 .star-btn.starred {
2302 color: var(--yellow);
958d26aClaude2303 border-color: rgba(251,191,36,0.4);
2304 background: rgba(251,191,36,0.08);
06d5ffeClaude2305 }
2306
2ce1d0bClaude2307 /* ============================================================ */
2308 /* User profile */
2309 /* ============================================================ */
06d5ffeClaude2310 .user-profile {
2311 display: flex;
2312 gap: 32px;
2313 margin-bottom: 32px;
2ce1d0bClaude2314 padding: 24px;
2315 background: var(--bg-elevated);
2316 border: 1px solid var(--border);
2317 border-radius: var(--r-lg);
06d5ffeClaude2318 }
2319 .user-avatar {
2320 width: 96px;
2321 height: 96px;
2ce1d0bClaude2322 border-radius: var(--r-full);
2323 background: var(--accent-gradient-soft);
2324 border: 1px solid var(--border-strong);
06d5ffeClaude2325 display: flex;
2326 align-items: center;
2327 justify-content: center;
2ce1d0bClaude2328 font-size: 36px;
2329 font-weight: 600;
2330 color: var(--text);
06d5ffeClaude2331 flex-shrink: 0;
2ce1d0bClaude2332 letter-spacing: -0.02em;
06d5ffeClaude2333 }
2ce1d0bClaude2334 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2335 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2336 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2337
2ce1d0bClaude2338 /* ============================================================ */
2339 /* New repo form */
2340 /* ============================================================ */
2341 .new-repo-form { max-width: 640px; }
2342 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2343 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2344 .visibility-option {
2345 flex: 1;
2ce1d0bClaude2346 padding: 16px;
06d5ffeClaude2347 border: 1px solid var(--border);
2ce1d0bClaude2348 border-radius: var(--r-md);
2349 background: var(--bg-elevated);
06d5ffeClaude2350 cursor: pointer;
2ce1d0bClaude2351 text-align: left;
2352 transition: all var(--t-fast) var(--ease);
2353 }
2354 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2355 .visibility-option:has(input:checked) {
2356 border-color: var(--accent);
2357 background: var(--accent-gradient-faint);
2358 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2359 }
2360 .visibility-option input { display: none; }
2ce1d0bClaude2361 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2362 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2363
2ce1d0bClaude2364 /* ============================================================ */
2365 /* Issues */
2366 /* ============================================================ */
2367 .issue-tabs { display: flex; gap: 4px; }
2368 .issue-tabs a {
2369 color: var(--text-muted);
2370 font-size: var(--t-sm);
2371 font-weight: 500;
2372 padding: 6px 12px;
2373 border-radius: var(--r-sm);
2374 transition: all var(--t-fast) var(--ease);
2375 }
2376 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2377 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2378
2ce1d0bClaude2379 .issue-list {
2380 border: 1px solid var(--border);
2381 border-radius: var(--r-md);
2382 overflow: hidden;
2383 background: var(--bg-elevated);
2384 }
79136bbClaude2385 .issue-item {
2386 display: flex;
2ce1d0bClaude2387 gap: 14px;
79136bbClaude2388 align-items: flex-start;
2ce1d0bClaude2389 padding: 14px 16px;
79136bbClaude2390 border-bottom: 1px solid var(--border);
2ce1d0bClaude2391 transition: background var(--t-fast) var(--ease);
79136bbClaude2392 }
2393 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2394 .issue-item:hover { background: var(--bg-hover); }
2395 .issue-state-icon {
2396 font-size: 14px;
2397 padding-top: 2px;
2398 width: 18px;
2399 height: 18px;
2400 display: inline-flex;
2401 align-items: center;
2402 justify-content: center;
2403 border-radius: var(--r-full);
2404 flex-shrink: 0;
2405 }
79136bbClaude2406 .state-open { color: var(--green); }
958d26aClaude2407 .state-closed { color: #b69dff; }
2ce1d0bClaude2408 .issue-title {
debcf27Claude2409 font-family: var(--font-display);
2410 font-size: var(--t-md);
2ce1d0bClaude2411 font-weight: 600;
debcf27Claude2412 line-height: 1.35;
2413 letter-spacing: -0.012em;
2414 }
2415 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2416 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2417 .issue-meta {
2418 font-family: var(--font-mono);
2419 font-size: 11px;
2420 color: var(--text-muted);
2421 margin-top: 5px;
2422 letter-spacing: 0.01em;
2ce1d0bClaude2423 }
79136bbClaude2424
2425 .issue-badge {
2426 display: inline-flex;
2427 align-items: center;
2ce1d0bClaude2428 gap: 6px;
79136bbClaude2429 padding: 4px 12px;
2ce1d0bClaude2430 border-radius: var(--r-full);
2431 font-size: var(--t-sm);
79136bbClaude2432 font-weight: 500;
2ce1d0bClaude2433 line-height: 1.4;
79136bbClaude2434 }
958d26aClaude2435 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
2436 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
2437 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude2438 .state-merged { color: var(--accent); }
958d26aClaude2439 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude2440
2ce1d0bClaude2441 .issue-detail { max-width: 920px; }
79136bbClaude2442 .issue-comment-box {
2443 border: 1px solid var(--border);
2ce1d0bClaude2444 border-radius: var(--r-md);
79136bbClaude2445 margin-bottom: 16px;
2446 overflow: hidden;
2ce1d0bClaude2447 background: var(--bg-elevated);
79136bbClaude2448 }
2449 .comment-header {
2450 background: var(--bg-secondary);
2ce1d0bClaude2451 padding: 10px 16px;
79136bbClaude2452 border-bottom: 1px solid var(--border);
2ce1d0bClaude2453 font-size: var(--t-sm);
79136bbClaude2454 color: var(--text-muted);
2455 }
2456
2ce1d0bClaude2457 /* ============================================================ */
2458 /* Panel — flexible container used across many pages */
2459 /* ============================================================ */
2460 .panel {
2461 background: var(--bg-elevated);
2462 border: 1px solid var(--border);
2463 border-radius: var(--r-md);
2464 overflow: hidden;
2465 }
2466 .panel-item {
2467 display: flex;
2468 align-items: center;
2469 gap: 12px;
2470 padding: 12px 16px;
79136bbClaude2471 border-bottom: 1px solid var(--border);
2ce1d0bClaude2472 transition: background var(--t-fast) var(--ease);
2473 }
2474 .panel-item:last-child { border-bottom: none; }
2475 .panel-item:hover { background: var(--bg-hover); }
2476 .panel-empty {
2477 padding: 24px;
2478 text-align: center;
79136bbClaude2479 color: var(--text-muted);
2ce1d0bClaude2480 font-size: var(--t-sm);
79136bbClaude2481 }
2482
2ce1d0bClaude2483 /* ============================================================ */
2484 /* Search */
2485 /* ============================================================ */
79136bbClaude2486 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude2487
2ce1d0bClaude2488 /* ============================================================ */
2489 /* Timeline */
2490 /* ============================================================ */
2491 .timeline { position: relative; padding-left: 28px; }
16b325cClaude2492 .timeline::before {
2493 content: '';
2494 position: absolute;
2495 left: 4px;
2496 top: 8px;
2497 bottom: 8px;
2498 width: 2px;
2ce1d0bClaude2499 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude2500 }
2ce1d0bClaude2501 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude2502 .timeline-dot {
2503 position: absolute;
2ce1d0bClaude2504 left: -28px;
2505 top: 8px;
2506 width: 12px;
2507 height: 12px;
2508 border-radius: var(--r-full);
2509 background: var(--accent-gradient);
16b325cClaude2510 border: 2px solid var(--bg);
2ce1d0bClaude2511 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude2512 }
2513 .timeline-content {
2ce1d0bClaude2514 background: var(--bg-elevated);
16b325cClaude2515 border: 1px solid var(--border);
2ce1d0bClaude2516 border-radius: var(--r-md);
2517 padding: 14px 16px;
16b325cClaude2518 }
f1ab587Claude2519
2ce1d0bClaude2520 /* ============================================================ */
2521 /* Toggle switch */
2522 /* ============================================================ */
f1ab587Claude2523 .toggle-switch {
2524 position: relative;
2525 display: inline-block;
2ce1d0bClaude2526 width: 40px;
2527 height: 22px;
f1ab587Claude2528 flex-shrink: 0;
2529 margin-left: 16px;
2530 }
2531 .toggle-switch input { opacity: 0; width: 0; height: 0; }
2532 .toggle-slider {
2533 position: absolute;
2534 cursor: pointer;
2535 top: 0; left: 0; right: 0; bottom: 0;
2536 background: var(--bg-tertiary);
2537 border: 1px solid var(--border);
2ce1d0bClaude2538 border-radius: var(--r-full);
2539 transition: all var(--t-base) var(--ease);
f1ab587Claude2540 }
2541 .toggle-slider::before {
2542 content: '';
2543 position: absolute;
2ce1d0bClaude2544 height: 16px;
2545 width: 16px;
f1ab587Claude2546 left: 2px;
2547 bottom: 2px;
2548 background: var(--text-muted);
2ce1d0bClaude2549 border-radius: var(--r-full);
2550 transition: all var(--t-base) var(--ease);
f1ab587Claude2551 }
2552 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude2553 background: var(--accent-gradient);
2554 border-color: transparent;
958d26aClaude2555 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude2556 }
2557 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude2558 transform: translateX(18px);
f1ab587Claude2559 background: #fff;
2560 }
ef8d378Claude2561
2562 /* ============================================================
2563 * 2026 polish layer (purely additive — no layout changes).
2564 * Improves typography rendering, focus states, hover affordances,
2565 * and adds the gradient brand cue to primary buttons. Anything
2566 * that could alter dimensions stays in the rules above.
2567 * ============================================================ */
2568 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
2569 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
2570 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
2571
2572 h1, h2, h3, h4 { letter-spacing: -0.018em; }
2573 h1 { letter-spacing: -0.025em; }
2574
2575 /* Smoother colour transitions everywhere links live */
2576 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
2577
2578 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
2579 .btn {
2580 transition:
2581 background 120ms cubic-bezier(0.16,1,0.3,1),
2582 border-color 120ms cubic-bezier(0.16,1,0.3,1),
2583 transform 120ms cubic-bezier(0.16,1,0.3,1),
2584 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
2585 }
2586 .btn:active { transform: translateY(0.5px); }
2587 .btn:focus-visible {
2588 outline: none;
2589 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
2590 }
2591 .btn-primary {
2592 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2593 border-color: transparent;
2594 box-shadow:
2595 inset 0 1px 0 rgba(255,255,255,0.15),
2596 0 1px 2px rgba(168,85,247,0.25);
2597 }
2598 .btn-primary:hover {
2599 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
2600 filter: none;
2601 box-shadow:
2602 inset 0 1px 0 rgba(255,255,255,0.20),
2603 0 4px 12px rgba(168,85,247,0.30);
2604 }
2605
2606 /* Inputs: cleaner focus ring + hover */
2607 .form-group input:hover,
2608 .form-group textarea:hover,
2609 .form-group select:hover {
2610 border-color: rgba(255,255,255,0.14);
2611 }
2612 .form-group input:focus,
2613 .form-group textarea:focus,
2614 .form-group select:focus {
2615 border-color: rgba(168,85,247,0.55);
2616 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
2617 }
2618 :root[data-theme='light'] .form-group input:hover,
2619 :root[data-theme='light'] .form-group textarea:hover,
2620 :root[data-theme='light'] .form-group select:hover {
2621 border-color: rgba(0,0,0,0.18);
2622 }
2623
2624 /* Cards: subtle hover lift */
2625 .card {
2626 transition:
2627 border-color 160ms cubic-bezier(0.16,1,0.3,1),
2628 transform 160ms cubic-bezier(0.16,1,0.3,1),
2629 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
2630 }
2631 .card:hover {
2632 border-color: rgba(255,255,255,0.18);
2633 transform: translateY(-1px);
2634 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
2635 }
2636 :root[data-theme='light'] .card:hover {
2637 border-color: rgba(0,0,0,0.18);
2638 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
2639 }
2640
2641 /* Issue / commit / panel rows: smoother hover */
2642 .issue-item, .commit-item {
2643 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
2644 }
2645 .repo-nav a {
2646 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
2647 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
2648 }
2649 .nav-link {
2650 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
2651 }
2652
2653 /* Auth card: subtle elevation so register/login feel premium */
2654 .auth-container {
2655 background: var(--bg-secondary);
2656 border: 1px solid var(--border);
2657 border-radius: var(--r-lg, 12px);
2658 padding: 32px;
2659 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
2660 }
2661 :root[data-theme='light'] .auth-container {
2662 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
2663 }
2664 .auth-container h2 { letter-spacing: -0.025em; }
2665
2666 /* Empty state: dashed border, generous padding */
2667 .empty-state {
2668 border: 1px dashed var(--border);
2669 border-radius: var(--r-lg, 12px);
2670 background: var(--bg);
2671 }
2672
2673 /* Badges + commit-sha: smoother transition */
2674 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
2675
2676 /* Gradient text utility — matches landing's accent treatment */
2677 .gradient-text {
2678 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2679 -webkit-background-clip: text;
2680 background-clip: text;
2681 -webkit-text-fill-color: transparent;
2682 }
2683
2684 /* Custom scrollbars (subtle, themed) */
2685 ::-webkit-scrollbar { width: 10px; height: 10px; }
2686 ::-webkit-scrollbar-track { background: transparent; }
2687 ::-webkit-scrollbar-thumb {
2688 background: rgba(255,255,255,0.06);
2689 border: 2px solid var(--bg);
2690 border-radius: 9999px;
2691 }
2692 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
2693 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
2694 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
2695
2696 /* Honour reduced-motion preference */
2697 @media (prefers-reduced-motion: reduce) {
2698 *, *::before, *::after {
2699 animation-duration: 0.01ms !important;
2700 animation-iteration-count: 1 !important;
2701 transition-duration: 0.01ms !important;
2702 }
2703 }
c63b860Claude2704
2705 /* Block O3 — visual coherence additive rules. */
2706 .card.card-p-none { padding: 0; }
2707 .card.card-p-sm { padding: var(--space-3); }
2708 .card.card-p-md { padding: var(--space-4); }
2709 .card.card-p-lg { padding: var(--space-6); }
2710 .card.card-elevated { box-shadow: var(--elev-2); }
2711 .card.card-gradient {
2712 background:
2713 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
2714 var(--bg-elevated);
2715 }
2716 .card.card-gradient::before { opacity: 1; }
2717 .notice {
2718 padding: var(--space-3) var(--space-4);
2719 border-radius: var(--radius-md);
2720 border: 1px solid var(--border);
2721 background: var(--bg-elevated);
2722 color: var(--text);
2723 font-size: var(--font-size-sm);
2724 margin-bottom: var(--space-6);
2725 line-height: var(--leading-normal);
2726 }
2727 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
2728 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
2729 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
2730 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
2731 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
2732 .email-preview {
2733 padding: var(--space-5);
2734 background: #fff;
2735 color: #111;
2736 border-radius: var(--radius-md);
2737 }
2738 .code-block {
2739 margin: var(--space-2) 0 0;
2740 padding: var(--space-3);
2741 background: var(--bg-tertiary);
2742 border: 1px solid var(--border-subtle);
2743 border-radius: var(--radius-sm);
2744 font-family: var(--font-mono);
2745 font-size: var(--font-size-xs);
2746 line-height: var(--leading-normal);
2747 overflow-x: auto;
2748 }
2749 .status-pill-operational {
2750 display: inline-flex;
2751 align-items: center;
2752 padding: var(--space-1) var(--space-3);
2753 border-radius: var(--radius-full);
2754 font-size: var(--font-size-xs);
2755 font-weight: 600;
2756 background: rgba(52,211,153,0.15);
2757 color: var(--green);
2758 }
2759 .api-tag {
2760 display: inline-flex;
2761 align-items: center;
2762 font-size: var(--font-size-xs);
2763 padding: 2px var(--space-2);
2764 border-radius: var(--radius-sm);
2765 font-family: var(--font-mono);
2766 }
2767 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
2768 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
2769 .stat-number {
2770 font-size: var(--font-size-xl);
2771 font-weight: 700;
2772 color: var(--text-strong);
2773 line-height: var(--leading-tight);
2774 }
2775 .stat-number-accent { color: var(--accent); }
2776 .stat-number-blue { color: var(--blue); }
2777 .stat-number-purple { color: var(--text-link); }
2778 footer .footer-tag-sub {
2779 margin-top: var(--space-2);
2780 font-size: var(--font-size-xs);
2781 color: var(--text-faint);
2782 line-height: var(--leading-normal);
2783 }
2784 footer .footer-version-pill {
2785 display: inline-flex;
2786 align-items: center;
2787 gap: var(--space-2);
2788 padding: var(--space-1) var(--space-3);
2789 border-radius: var(--radius-full);
2790 border: 1px solid var(--border);
2791 background: var(--bg-elevated);
2792 color: var(--text-faint);
2793 font-family: var(--font-mono);
2794 font-size: var(--font-size-xs);
2795 cursor: help;
2796 }
2797 footer .footer-banner {
2798 max-width: 1240px;
2799 margin: var(--space-6) auto 0;
2800 padding: var(--space-3) var(--space-4);
2801 border-radius: var(--radius-md);
2802 border: 1px solid var(--border);
2803 background: var(--bg-elevated);
2804 color: var(--text);
2805 font-family: var(--font-mono);
2806 font-size: var(--font-size-xs);
2807 letter-spacing: 0.04em;
2808 text-transform: uppercase;
2809 text-align: center;
2810 }
2811 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
2812 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
2813 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
bba3681Test User2814
2815 /* ============================================================ */
2816 /* Block U4 — cross-document view transitions. */
2817 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
2818 /* every same-origin navigation. Older browsers ignore these */
2819 /* rules entirely — no JS shim, no breakage. */
2820 /* prefers-reduced-motion disables the animation honourably. */
2821 /* ============================================================ */
2822 @view-transition {
2823 navigation: auto;
2824 }
2825 ::view-transition-old(root),
2826 ::view-transition-new(root) {
2827 animation-duration: 200ms;
2828 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
2829 }
2830 ::view-transition-old(root) {
2831 animation-name: vt-fade-out;
2832 }
2833 ::view-transition-new(root) {
2834 animation-name: vt-fade-in;
2835 }
2836 @keyframes vt-fade-out {
2837 to { opacity: 0; }
2838 }
2839 @keyframes vt-fade-in {
2840 from { opacity: 0; }
2841 }
2842 @media (prefers-reduced-motion: reduce) {
2843 ::view-transition-old(root),
2844 ::view-transition-new(root) {
2845 animation-duration: 0s;
2846 }
2847 }
2848 /* The transition system picks up its root subject from this rule. */
2849 body {
2850 view-transition-name: root;
2851 }
fc1817aClaude2852`;