Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesPull RequestsActionsSecurityInsightsSettings
✨ AI
More
Blame · Line-by-line history

layout.tsx

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

layout.tsxBlame3184 lines · 4 contributors
fc1817aClaude1import type { FC, PropsWithChildren } from "hono/jsx";
06d5ffeClaude2import type { User } from "../db/schema";
3import { hljsThemeCss } from "../lib/highlight";
45e31d0Claude4import { clientJs } from "./client-js";
05cdb85Claude5import { getBuildInfo } from "../lib/build-info";
fc1817aClaude6
06d5ffeClaude7export const Layout: FC<
3ef4c9dClaude8 PropsWithChildren<{
9 title?: string;
10 user?: User | null;
11 notificationCount?: number;
6fc53bdClaude12 theme?: "dark" | "light";
5f2e749Claude13 // Block L10 — additive SEO + Open Graph fields. All optional;
14 // omission preserves the prior render exactly (regression-safe).
15 fullTitle?: string;
16 description?: string;
17 ogTitle?: string;
18 ogDescription?: string;
19 ogType?: string;
20 twitterCard?: "summary" | "summary_large_image";
c63b860Claude21 // Block O3 — site-wide footer banner stripe. When non-empty,
22 // renders below the footer-bottom row; wired from
23 // admin.system_flags.site_banner_text.
24 siteBannerText?: string;
25 siteBannerLevel?: "info" | "warn" | "error";
3ef4c9dClaude26 }>
5f2e749Claude27> = ({
28 children,
29 title,
30 user,
31 notificationCount,
32 theme,
33 fullTitle,
34 description,
35 ogTitle,
36 ogDescription,
37 ogType,
38 twitterCard,
c63b860Claude39 siteBannerText,
40 siteBannerLevel,
5f2e749Claude41}) => {
81201ccTest User42 // Default to "light" — feedback from operators was the dark default
43 // felt too gamer-ish and not what senior platform engineers expect from
44 // a tool they'd evaluate alongside Vercel / Linear / Stripe. Users who
45 // explicitly want dark can flip via the theme toggle (cookie persists).
46 const initialTheme = theme === "dark" ? "dark" : "light";
05cdb85Claude47 const build = getBuildInfo();
5f2e749Claude48 // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron"
49 // suffix); otherwise fall back to the existing `title` + suffix behaviour.
50 const renderedTitle = fullTitle
51 ? fullTitle
52 : title
53 ? `${title} — gluecron`
54 : "gluecron";
fc1817aClaude55 return (
6fc53bdClaude56 <html lang="en" data-theme={initialTheme}>
fc1817aClaude57 <head>
58 <meta charset="UTF-8" />
59 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
eae38d1Claude60 <meta name="theme-color" content="#0d1117" />
3a5755eClaude61 {/* 2026 polish — load Inter + Inter Tight + JetBrains Mono for
62 crisp modern typography. `preconnect` keeps the handshake
63 cost off the critical path; `display=swap` means we never
64 block first paint waiting on fonts. */}
65 <link rel="preconnect" href="https://fonts.googleapis.com" />
66 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
67 <link
68 rel="stylesheet"
69 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"
70 />
44fe49bClaude71 {/* PWA removed 2026-05-16 — repeated reload-loop bugs (admin
72 dashboard, deploy pill, admin-screen flash). A git host has
73 no use for service workers or install-as-app. Manifest link
74 and SW registrations are gone permanently. */}
eae38d1Claude75 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude76 <title>{renderedTitle}</title>
77 {description && <meta name="description" content={description} />}
78 {(ogTitle || fullTitle || title) && (
79 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
80 )}
81 {(ogDescription || description) && (
82 <meta
83 property="og:description"
84 content={ogDescription ?? description ?? ""}
85 />
86 )}
87 {ogType && <meta property="og:type" content={ogType} />}
88 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude89 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
90 <style dangerouslySetInnerHTML={{ __html: css }} />
91 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude92 </head>
93 <body>
4a52a98Claude94 <div class="prelaunch-banner" role="status" aria-live="polite">
95 Pre-launch &mdash; Gluecron is in final validation. Public signups
96 and git hosting for non-owner users open after launch review.
97 </div>
cd4f63bTest User98 {/* Block Q3 — Playground banner. Renders only when the active
99 user is a playground account with a future expiry; the small
100 inline script counts down once per minute. Strip is dismissible
101 per-page-load (re-appears on next nav) — gentle, not noisy. */}
102 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
103 <div
104 class="playground-banner"
105 role="status"
106 aria-live="polite"
107 data-playground-expires={
108 ((user as any).playgroundExpiresAt instanceof Date
109 ? (user as any).playgroundExpiresAt.toISOString()
110 : String((user as any).playgroundExpiresAt))
111 }
112 >
113 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
114 <span class="playground-banner-text">
115 Playground account &mdash;{" "}
116 <span class="playground-banner-countdown">expires soon</span>.{" "}
117 <a href="/play/claim" class="playground-banner-cta">
118 Save your work &rarr;
119 </a>
120 </span>
121 <button
122 type="button"
123 class="playground-banner-dismiss"
124 aria-label="Dismiss"
125 data-playground-dismiss="1"
126 >
127 {"×"}
128 </button>
129 <script
130 dangerouslySetInnerHTML={{
131 __html: /* js */ `
132 (function () {
133 var el = document.currentScript && document.currentScript.parentElement;
134 if (!el) return;
135 var iso = el.getAttribute('data-playground-expires');
136 if (!iso) return;
137 var target = Date.parse(iso);
138 if (isNaN(target)) return;
139 var out = el.querySelector('.playground-banner-countdown');
140 function render() {
141 var ms = target - Date.now();
142 if (!out) return;
143 if (ms <= 0) { out.textContent = 'expired'; return; }
144 var mins = Math.floor(ms / 60000);
145 var hrs = Math.floor(mins / 60);
146 if (hrs > 1) out.textContent = hrs + ' hours left';
147 else if (hrs === 1) out.textContent = '1 hour left';
148 else if (mins > 1) out.textContent = mins + ' minutes left';
149 else out.textContent = 'less than a minute left';
150 }
151 render();
152 setInterval(render, 60000);
153 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
154 if (dismiss) {
155 dismiss.addEventListener('click', function () {
156 el.style.display = 'none';
157 });
158 }
159 })();
160 `,
161 }}
162 />
163 </div>
164 )}
fc1817aClaude165 <header>
166 <nav>
167 <a href="/" class="logo">
168 gluecron
169 </a>
3ef4c9dClaude170 <div class="nav-search">
001af43Claude171 <form method="get" action="/search">
3ef4c9dClaude172 <input
173 type="search"
174 name="q"
175 placeholder="Search (press /)"
176 aria-label="Search"
177 />
178 </form>
179 </div>
06d5ffeClaude180 <div class="nav-right">
f764c07Claude181 {/* Block N3 — site-admin platform-deploy status pill. Hidden
182 by default; revealed client-side once /admin/deploys/latest.json
183 responds 200 (non-admins get 401/403 and the pill stays
184 hidden). Subscribes to the `platform:deploys` SSE topic
185 for live updates. See `deployPillScript` below. */}
186 {user && (
187 <a
188 id="deploy-pill"
189 href="/admin/deploys"
190 class="nav-deploy-pill"
191 style="display:none"
192 aria-label="Platform deploy status"
193 title="Platform deploy status"
194 >
195 <span class="deploy-pill-dot" />
196 <span class="deploy-pill-text">Deploys</span>
197 </a>
198 )}
6fc53bdClaude199 <a
200 href="/theme/toggle"
201 class="nav-link nav-theme"
202 title="Toggle theme"
203 aria-label="Toggle theme"
204 >
205 <span class="theme-icon-dark">{"\u263E"}</span>
206 <span class="theme-icon-light">{"\u2600"}</span>
207 </a>
c81ab7aClaude208 <a href="/explore" class="nav-link">
209 Explore
210 </a>
06d5ffeClaude211 {user ? (
212 <>
f1ab587Claude213 <a href="/dashboard" class="nav-link" style="font-weight: 600">
214 Dashboard
215 </a>
a6ff0f2Claude216 <a href="/pulls" class="nav-link">
217 Pulls
218 </a>
e9aa4d8Claude219 <a href="/issues" class="nav-link">
220 Issues
221 </a>
222 <a href="/activity" class="nav-link">
223 Activity
224 </a>
56801e1Claude225 <a href="/standups" class="nav-link">
226 Standups
227 </a>
45f3b73Claude228 <a href="/voice" class="nav-link" style="display:inline-flex;align-items:center;gap:5px">
229 <svg
230 width="13"
231 height="13"
232 viewBox="0 0 24 24"
233 fill="none"
234 stroke="currentColor"
235 stroke-width="2.2"
236 stroke-linecap="round"
237 stroke-linejoin="round"
238 aria-hidden="true"
239 >
240 <rect x="9" y="2" width="6" height="13" rx="3" />
241 <path d="M19 11v1a7 7 0 0 1-14 0v-1" />
242 <line x1="12" y1="19" x2="12" y2="23" />
243 <line x1="8" y1="23" x2="16" y2="23" />
244 </svg>
245 Voice
246 </a>
e9aa4d8Claude247 <a href="/inbox" class="nav-link" style="position:relative">
248 Inbox
249 {notificationCount && notificationCount > 0 ? (
250 <span
251 aria-label={`${notificationCount} unread`}
252 style="display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 5px;margin-left:6px;font-size:10.5px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;color:#fff;background:linear-gradient(135deg,#8c6dff 0%,#36c5d6 100%);border-radius:9999px;box-shadow:0 0 8px rgba(140,109,255,0.45)"
253 >
254 {notificationCount > 99 ? "99+" : notificationCount}
255 </span>
256 ) : null}
257 </a>
bdbd0deClaude258 <a href="/import" class="nav-link">
259 Import
260 </a>
23d0abfClaude261 <a href="/refactors" class="nav-link">
262 Refactors
263 </a>
06d5ffeClaude264 <a href="/new" class="btn btn-sm btn-primary">
265 + New
266 </a>
267 <a href={`/${user.username}`} class="nav-user">
268 {user.displayName || user.username}
269 </a>
270 <a href="/settings" class="nav-link">
271 Settings
272 </a>
273 <a href="/logout" class="nav-link">
274 Sign out
275 </a>
276 </>
277 ) : (
278 <>
279 <a href="/login" class="nav-link">
280 Sign in
281 </a>
282 <a href="/register" class="btn btn-sm btn-primary">
283 Register
284 </a>
285 </>
286 )}
287 </div>
fc1817aClaude288 </nav>
289 </header>
45e31d0Claude290 <main id="main-content">{children}</main>
cf9178bTest User291 {/* Global toast host — populated by the toastScript below from
292 ?success= / ?error= / ?toast= query params. Replaces the
293 per-page banner pattern with one polished slide-in. */}
294 <div
295 id="toast-host"
296 aria-live="polite"
297 aria-atomic="true"
298 style="position:fixed;top:calc(var(--header-h) + 12px);right:16px;z-index:var(--z-toast,10000);display:flex;flex-direction:column;gap:8px;pointer-events:none"
299 />
fc1817aClaude300 <footer>
958d26aClaude301 <div class="footer-inner">
302 <div class="footer-brand">
303 <a href="/" class="logo">gluecron</a>
304 <p class="footer-tag">
305 AI-native code intelligence. Self-hosted git, automated CI,
306 push-time gates. Software that ships itself.
307 </p>
308 </div>
309 <div class="footer-links">
310 <div class="footer-col">
311 <div class="footer-col-title">Product</div>
b0148e9Claude312 <a href="/features">Features</a>
313 <a href="/pricing">Pricing</a>
958d26aClaude314 <a href="/explore">Explore</a>
315 <a href="/marketplace">Marketplace</a>
316 </div>
317 <div class="footer-col">
318 <div class="footer-col-title">Platform</div>
b0148e9Claude319 <a href="/help">Quickstart</a>
958d26aClaude320 <a href="/status">Status</a>
321 <a href="/api/graphql">GraphQL</a>
322 <a href="/mcp">MCP server</a>
323 </div>
324 <div class="footer-col">
b0148e9Claude325 <div class="footer-col-title">Company</div>
326 <a href="/about">About</a>
958d26aClaude327 <a href="/terms">Terms</a>
328 <a href="/privacy">Privacy</a>
329 <a href="/acceptable-use">Acceptable use</a>
330 </div>
331 </div>
332 </div>
333 <div class="footer-bottom">
334 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude335 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
336 <span class="footer-build-dot" aria-hidden="true" />
337 {build.sha} · {build.branch}
338 </span>
36b4cbdClaude339 </div>
c63b860Claude340 {siteBannerText ? (
341 <div
342 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
343 role="status"
344 aria-live="polite"
345 >
346 {siteBannerText}
347 </div>
348 ) : null}
fc1817aClaude349 </footer>
05cdb85Claude350 {/* Live update poller — checks /api/version every 15s, prompts
351 reload when the running sha changes. Pure progressive-
352 enhancement; degrades to nothing if JS is off. */}
353 <div
354 id="version-banner"
355 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"
356 >
357 <span style="display:inline-flex;align-items:center;gap:8px">
358 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
359 <span>New version available</span>
360 </span>
361 <button
362 type="button"
363 id="version-banner-reload"
364 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"
365 >
366 Reload
367 </button>
368 </div>
fa880f2Claude369 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude370 {/* Block N3 — site-admin deploy status pill (script-only). The pill
371 container is rendered above for authed users; this script bootstraps
372 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
373 and the pill stays display:none — zero leak. */}
374 {user && (
375 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
376 )}
699e5c7Claude377 {/* Block I4 — Command palette shell (hidden by default) */}
378 <div
379 id="cmdk-backdrop"
380 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
381 />
382 <div
383 id="cmdk-panel"
384 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"
385 >
386 <input
387 id="cmdk-input"
388 type="text"
389 placeholder="Type a command..."
390 aria-label="Command palette"
dc26881CC LABS App391 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"
699e5c7Claude392 />
393 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
394 </div>
fa880f2Claude395 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude396 {/* PWA-kill script: actively unregisters any service worker
397 previously installed under gluecron.com. Recovers any browser
398 still trapped in the SW reload loop from the legacy registrations. */}
399 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User400 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude401 <script dangerouslySetInnerHTML={{ __html: navScript }} />
fc1817aClaude402 </body>
403 </html>
404 );
405};
406
05cdb85Claude407// Live version poller. Checks /api/version every 15s; if the sha differs
408// from the one we booted with, reveal the floating 'New version' pill so
409// the user can reload onto the new code without manually refreshing.
410const versionPollerScript = `
411 (function(){
412 var loadedSha = null;
413 var banner, btn;
414 function poll(){
415 fetch('/api/version', { cache: 'no-store' })
416 .then(function(r){ return r.ok ? r.json() : null; })
417 .then(function(j){
418 if (!j || !j.sha) return;
419 if (loadedSha === null) { loadedSha = j.sha; return; }
420 if (j.sha !== loadedSha && banner) {
421 banner.style.display = 'inline-flex';
422 }
423 })
424 .catch(function(){});
425 }
426 function init(){
427 banner = document.getElementById('version-banner');
428 btn = document.getElementById('version-banner-reload');
429 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
430 poll();
431 setInterval(poll, 15000);
432 }
433 if (document.readyState === 'loading') {
434 document.addEventListener('DOMContentLoaded', init);
435 } else {
436 init();
437 }
438 })();
439`;
440
f764c07Claude441// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
442// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
443// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
444// display:none — there's no leakage of admin-only data to other users.
445//
446// Pill states (CSS classes on the container drive colour):
447// .deploy-pill-success 🟢 "Deployed 12s ago"
448// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
449// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
450// .deploy-pill-empty ⚪ "No deploys yet"
451//
452// Relative-time auto-refreshes every 15s without re-fetching.
453export const deployPillScript = `
454 (function(){
455 var pill, dot, text;
456 var state = { latest: null, asOf: null };
457
458 function classifyAge(ms){
459 if (ms < 0) return 'just now';
460 var s = Math.floor(ms / 1000);
461 if (s < 5) return 'just now';
462 if (s < 60) return s + 's ago';
463 var m = Math.floor(s / 60);
464 if (m < 60) return m + 'm ago';
465 var h = Math.floor(m / 60);
466 if (h < 24) return h + 'h ago';
467 var d = Math.floor(h / 24);
468 return d + 'd ago';
469 }
470 function elapsed(ms){
471 if (ms < 0) ms = 0;
472 var s = Math.floor(ms / 1000);
473 if (s < 60) return s + 's';
474 var m = Math.floor(s / 60);
475 var rem = s - m * 60;
476 return m + 'm ' + rem + 's';
477 }
478
479 function render(){
480 if (!pill || !text || !dot) return;
481 var d = state.latest;
81201ccTest User482 // When there's no deploy event yet, keep the pill HIDDEN. Showing
483 // "No deploys yet" was visible noise on every admin page load and
484 // flashed during reconnect cycles — admins don't need a placeholder.
485 // The pill reveals itself the first time a real deploy fires.
f764c07Claude486 if (!d) {
81201ccTest User487 pill.style.display = 'none';
f764c07Claude488 return;
489 }
490 pill.style.display = 'inline-flex';
491 var now = Date.now();
492 if (d.status === 'in_progress') {
493 pill.className = 'nav-deploy-pill deploy-pill-progress';
494 var started = Date.parse(d.started_at) || now;
495 text.textContent = 'Deploying… ' + elapsed(now - started);
496 } else if (d.status === 'succeeded') {
497 pill.className = 'nav-deploy-pill deploy-pill-success';
498 var ref = Date.parse(d.finished_at || d.started_at) || now;
499 text.textContent = 'Deployed ' + classifyAge(now - ref);
500 } else if (d.status === 'failed') {
501 pill.className = 'nav-deploy-pill deploy-pill-failed';
502 var refF = Date.parse(d.finished_at || d.started_at) || now;
503 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
504 } else {
505 pill.className = 'nav-deploy-pill';
506 text.textContent = d.status;
507 }
508 }
509
510 function fetchLatest(){
511 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
512 .then(function(r){ if (!r.ok) return null; return r.json(); })
513 .then(function(j){
514 if (!j || j.ok !== true) return;
515 state.latest = j.latest;
516 state.asOf = j.asOf;
517 render();
518 subscribe();
519 })
520 .catch(function(){});
521 }
522
523 var subscribed = false;
524 function subscribe(){
525 if (subscribed) return;
526 if (typeof EventSource === 'undefined') return;
527 subscribed = true;
528 var es;
bf19c50Test User529 // Exponential backoff with cap. Previously a tight 1500ms reconnect
530 // produced visible looping in the nav whenever the proxy timed out
531 // or the connection blipped — the bottom-of-page deploy pill
532 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
533 // successful message receipt.
534 var delay = 2000;
535 var DELAY_MAX = 60000;
536 function bump(){
537 delay = Math.min(delay * 2, DELAY_MAX);
538 }
539 function resetDelay(){
540 delay = 2000;
541 }
f764c07Claude542 function connect(){
543 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User544 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude545 es.onmessage = function(m){
bf19c50Test User546 resetDelay();
f764c07Claude547 try {
548 var d = JSON.parse(m.data);
549 if (d && d.run_id) {
550 if (!state.latest || state.latest.run_id === d.run_id ||
551 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
552 state.latest = d;
553 render();
554 }
555 }
556 } catch(e){}
557 };
558 es.onerror = function(){
559 try { es.close(); } catch(e){}
bf19c50Test User560 bump();
f764c07Claude561 setTimeout(connect, delay);
562 };
563 }
564 connect();
565 }
566
567 function init(){
568 pill = document.getElementById('deploy-pill');
569 if (!pill) return;
570 dot = pill.querySelector('.deploy-pill-dot');
571 text = pill.querySelector('.deploy-pill-text');
572 fetchLatest();
573 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
574 // without a fresh fetch.
575 setInterval(render, 15000);
576 }
577 if (document.readyState === 'loading') {
578 document.addEventListener('DOMContentLoaded', init);
579 } else {
580 init();
581 }
582 })();
583`;
584
6fc53bdClaude585// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User586// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
587// is honoured for users who explicitly opted in.
6fc53bdClaude588const themeInitScript = `
589 (function(){
590 try {
591 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User592 var t = m ? decodeURIComponent(m[1]) : 'light';
593 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude594 document.documentElement.setAttribute('data-theme', t);
595 } catch(_){}
596 })();
597`;
598
eae38d1Claude599// Block G1 — register service worker for offline / install support.
600// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App601//
cf9178bTest User602// Global toast notifications — reads ?success=, ?error=, ?toast= from the
603// URL on page load and surfaces a polished slide-in toast instead of the
604// per-page banner divs that crowded the layout. Toasts auto-dismiss after
605// 4.5s; query params are scrubbed from the URL via history.replaceState
606// so a subsequent Refresh doesn't re-fire the same toast.
607//
608// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
609// must be URI-encoded (callers already do this via encodeURIComponent
610// in c.redirect()).
611const toastScript = `
612 (function(){
613 function showToast(kind, message){
614 if (!message) return;
615 var host = document.getElementById('toast-host');
616 if (!host) return;
617 var el = document.createElement('div');
618 el.className = 'gx-toast gx-toast--' + kind;
619 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
620 var icon = document.createElement('span');
621 icon.className = 'gx-toast__icon';
622 icon.textContent = kind === 'success' ? '\\u2713'
623 : kind === 'error' ? '\\u00D7'
624 : kind === 'warn' ? '!'
625 : 'i';
626 el.appendChild(icon);
627 var text = document.createElement('span');
628 text.className = 'gx-toast__text';
629 text.textContent = message;
630 el.appendChild(text);
631 var close = document.createElement('button');
632 close.type = 'button';
633 close.className = 'gx-toast__close';
634 close.setAttribute('aria-label', 'Dismiss notification');
635 close.textContent = '\\u00D7';
636 close.addEventListener('click', function(){ dismiss(); });
637 el.appendChild(close);
638 host.appendChild(el);
639 // Force a reflow then add the visible class so the slide-in transitions.
640 void el.offsetWidth;
641 el.classList.add('gx-toast--in');
642 var timer = setTimeout(dismiss, 4500);
643 function dismiss(){
644 clearTimeout(timer);
645 el.classList.remove('gx-toast--in');
646 el.classList.add('gx-toast--out');
647 setTimeout(function(){
648 if (el.parentNode) el.parentNode.removeChild(el);
649 }, 220);
650 }
651 }
652 try {
653 var url = new URL(window.location.href);
654 var hits = 0;
655 var s = url.searchParams.get('success');
656 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
657 var e = url.searchParams.get('error');
658 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
659 var t = url.searchParams.get('toast');
660 if (t) {
661 var ix = t.indexOf(':');
662 var kind = ix > 0 ? t.slice(0, ix) : 'info';
663 var msg = ix > 0 ? t.slice(ix + 1) : t;
664 showToast(kind, msg);
665 url.searchParams.delete('toast');
666 hits++;
667 }
668 if (hits > 0 && window.history && window.history.replaceState) {
669 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
670 }
671 } catch(_) {}
672 })();
673`;
674
44fe49bClaude675// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
676// and pwaInstallBannerScript. Those two scripts registered /sw.js and
677// /sw-push.js at the same scope, causing a reload loop that made the
678// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
679// uncllickable). Per the SW spec, only one SW can control a scope; two
680// different script URLs at the same scope keep replacing each other.
6345c3eTest User681//
44fe49bClaude682// PWA is gone for good. A git host has no use for service workers,
683// install-as-app, or push notifications via SW. This script actively
684// unregisters every previously installed SW on the gluecron.com origin
685// so any browser still trapped in the loop recovers on the very next
686// page load — without needing the user to clear site data or open
687// DevTools. Idempotent and safe to keep running forever; once all
688// browsers have been cleaned, it's a no-op.
689const pwaKillSwitchScript = `
534f04aClaude690(function(){
691 try {
44fe49bClaude692 if (!('serviceWorker' in navigator)) return;
693 if (!navigator.serviceWorker.getRegistrations) return;
694 navigator.serviceWorker.getRegistrations().then(function(regs){
695 if (!regs || regs.length === 0) return;
696 regs.forEach(function(reg){
697 try { reg.unregister(); } catch(_){}
698 });
699 }).catch(function(){});
700 // Also drop any caches the old SWs left behind so the user gets
701 // truly fresh HTML on every page load. Restricted to gluecron-*
702 // namespaced caches so we don't trample anything a future opt-in
703 // feature might create under a different name.
704 if ('caches' in self) {
705 caches.keys().then(function(keys){
706 keys.forEach(function(k){
707 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
708 try { caches.delete(k); } catch(_){}
d7ba05dClaude709 }
710 });
711 }).catch(function(){});
534f04aClaude712 }
713 } catch(_) {}
714})();
715`;
716
3ef4c9dClaude717const navScript = `
718 (function(){
719 var chord = null;
720 var chordTimer = null;
721 function isTyping(t){
722 t = t || {};
723 var tag = (t.tagName || '').toLowerCase();
724 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
725 }
71cd5ecClaude726
727 // ---------- Block I4 — Command palette ----------
728 var COMMANDS = [
729 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
730 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
731 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
732 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
733 { label: 'Create new repository', href: '/new', kw: 'add create' },
734 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
735 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
736 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
737 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
738 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
739 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
740 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
741 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
742 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
743 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
744 { label: 'Gists', href: '/gists', kw: 'snippets' },
745 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
746 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
747 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
748 ];
749
750 function fuzzyMatch(item, q){
751 if (!q) return true;
752 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
753 q = q.toLowerCase();
754 var qi = 0;
755 for (var i = 0; i < hay.length && qi < q.length; i++) {
756 if (hay[i] === q[qi]) qi++;
757 }
758 return qi === q.length;
759 }
760
761 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
762
763 function render(){
764 if (!list) return;
765 var html = '';
766 for (var i = 0; i < filtered.length; i++) {
767 var item = filtered[i];
768 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
769 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]770 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App771 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude772 '<div>' + item.label + '</div>' +
773 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
774 '</div>';
775 }
776 if (filtered.length === 0) {
dc26881CC LABS App777 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude778 }
779 list.innerHTML = html;
780 }
781
782 function openPalette(){
783 backdrop = document.getElementById('cmdk-backdrop');
784 panel = document.getElementById('cmdk-panel');
785 input = document.getElementById('cmdk-input');
786 list = document.getElementById('cmdk-list');
787 if (!backdrop || !panel) return;
788 backdrop.style.display = 'block';
789 panel.style.display = 'block';
790 input.value = '';
791 selected = 0;
792 filtered = COMMANDS.slice();
793 render();
794 input.focus();
795 }
796 function closePalette(){
797 if (backdrop) backdrop.style.display = 'none';
798 if (panel) panel.style.display = 'none';
799 }
800 function go(href){ closePalette(); window.location.href = href; }
801
802 document.addEventListener('click', function(e){
803 var t = e.target;
804 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
805 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]806 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude807 });
808
809 document.addEventListener('input', function(e){
810 if (e.target && e.target.id === 'cmdk-input') {
811 var q = e.target.value;
812 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
813 selected = 0;
814 render();
815 }
816 });
817
3ef4c9dClaude818 document.addEventListener('keydown', function(e){
71cd5ecClaude819 // Palette-scoped keys take priority when open
820 if (panel && panel.style.display === 'block') {
821 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
822 if (e.key === 'ArrowDown') {
823 e.preventDefault();
824 selected = Math.min(filtered.length - 1, selected + 1);
825 render();
826 return;
827 }
828 if (e.key === 'ArrowUp') {
829 e.preventDefault();
830 selected = Math.max(0, selected - 1);
831 render();
832 return;
833 }
834 if (e.key === 'Enter') {
835 e.preventDefault();
836 var item = filtered[selected];
837 if (item) go(item.href);
838 return;
839 }
840 return;
841 }
842
3ef4c9dClaude843 if (isTyping(e.target)) return;
844 // Single key shortcuts
845 if (e.key === '/') {
846 var el = document.querySelector('.nav-search input');
847 if (el) { e.preventDefault(); el.focus(); return; }
848 }
849 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude850 e.preventDefault();
851 openPalette();
852 return;
3ef4c9dClaude853 }
854 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
855 e.preventDefault(); window.location.href = '/shortcuts'; return;
856 }
857 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
858 e.preventDefault(); window.location.href = '/new'; return;
859 }
860 // "g" chord
861 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
862 chord = 'g';
863 clearTimeout(chordTimer);
864 chordTimer = setTimeout(function(){ chord = null; }, 1200);
865 return;
866 }
867 if (chord === 'g') {
868 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
869 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
870 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
871 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
872 chord = null;
873 }
874 });
875 })();
876`;
877
fc1817aClaude878const css = `
2ce1d0bClaude879 /* ================================================================
958d26aClaude880 * Gluecron design system — 2026.05 "Editorial-Technical"
881 * Slate-noir base · refined violet signature · hairline geometry ·
882 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
883 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude884 * ============================================================== */
6fc53bdClaude885 :root, :root[data-theme='dark'] {
958d26aClaude886 /* Surfaces — slate, not black. More depth, less crush. */
887 --bg: #08090f;
888 --bg-secondary: #0c0d14;
889 --bg-tertiary: #11131c;
890 --bg-elevated: #0f111a;
891 --bg-surface: #161826;
892 --bg-hover: rgba(255,255,255,0.04);
893 --bg-active: rgba(255,255,255,0.08);
894 --bg-inset: rgba(0,0,0,0.30);
895
896 /* Borders — three weights, used deliberately */
897 --border: rgba(255,255,255,0.06);
898 --border-subtle: rgba(255,255,255,0.035);
899 --border-strong: rgba(255,255,255,0.13);
900 --border-focus: rgba(140,109,255,0.55);
901
902 /* Text */
903 --text: #ededf2;
904 --text-strong: #f7f7fb;
905 --text-muted: #8b8c9c;
906 --text-faint: #555665;
907 --text-link: #b69dff;
908
909 /* Accent — refined violet (less candy), warm amber as secondary signal */
910 --accent: #8c6dff;
911 --accent-2: #36c5d6;
912 --accent-warm: #ffb45e;
913 --accent-hover: #a48bff;
914 --accent-pressed:#7559e8;
915 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
916 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
917 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
918 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
919
920 /* Semantic */
921 --green: #34d399;
922 --red: #f87171;
923 --yellow: #fbbf24;
924 --amber: #fbbf24;
925 --blue: #60a5fa;
926
3a5755eClaude927 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
928 display (headlines), JetBrains Mono for code. All three loaded from
929 Google Fonts with display:swap so we never block first paint. System
930 fallbacks remain in place — if the CDN is unreachable the site still
931 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
932 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
933 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
934 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude935 --mono-feat: 'calt', 'liga', 'ss01';
936
937 /* Radius — sharper than before */
938 --r-sm: 5px;
939 --r: 7px;
940 --r-md: 9px;
941 --r-lg: 12px;
942 --r-xl: 16px;
943 --r-2xl: 22px;
944 --r-full: 9999px;
945 --radius: 7px;
946
947 /* Type scale — bigger display sizes for editorial feel */
948 --t-xs: 11px;
949 --t-sm: 13px;
950 --t-base: 14px;
951 --t-md: 16px;
952 --t-lg: 20px;
953 --t-xl: 28px;
954 --t-2xl: 40px;
955 --t-3xl: 56px;
956 --t-display: 72px;
957 --t-display-lg:96px;
958
959 /* Spacing — 4px base */
2ce1d0bClaude960 --s-0: 0;
958d26aClaude961 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
962 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
963 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
964 --s-20:80px; --s-24:96px; --s-32:128px;
965
966 /* Elevation — softer + more layered */
967 --elev-0: 0 0 0 1px var(--border);
968 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
969 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
970 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
971 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
972 --ring: 0 0 0 3px rgba(140,109,255,0.28);
973 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
974 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
975
976 /* Motion */
977 --ease: cubic-bezier(0.16, 1, 0.3, 1);
978 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
979 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
980 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
981 --t-fast: 120ms;
982 --t-base: 200ms;
983 --t-slow: 360ms;
984 --t-slower:560ms;
985
986 --header-h: 60px;
c63b860Claude987
988 /* Block O3 — visual coherence: named token aliases (additive). */
989 --space-1: var(--s-1);
990 --space-2: var(--s-2);
991 --space-3: var(--s-3);
992 --space-4: var(--s-4);
993 --space-5: var(--s-5);
994 --space-6: var(--s-6);
995 --space-8: var(--s-8);
996 --space-10: var(--s-10);
997 --space-12: var(--s-12);
998 --space-16: var(--s-16);
999 --space-20: var(--s-20);
1000 --space-24: var(--s-24);
1001 --radius-sm: var(--r-sm);
1002 --radius-md: var(--r-md);
1003 --radius-lg: var(--r-lg);
1004 --radius-xl: var(--r-xl);
1005 --radius-full: var(--r-full);
1006 --font-size-xs: var(--t-xs);
1007 --font-size-sm: var(--t-sm);
1008 --font-size-base: var(--t-base);
1009 --font-size-md: var(--t-md);
1010 --font-size-lg: var(--t-lg);
1011 --font-size-xl: var(--t-xl);
1012 --font-size-2xl: var(--t-2xl);
1013 --font-size-3xl: var(--t-3xl);
1014 --font-size-hero: var(--t-display);
1015 --leading-tight: 1.2;
1016 --leading-snug: 1.35;
1017 --leading-normal: 1.5;
1018 --leading-relaxed: 1.6;
1019 --leading-loose: 1.7;
1020 --z-base: 1;
1021 --z-nav: 10;
1022 --z-sticky: 50;
1023 --z-overlay: 100;
1024 --z-modal: 1000;
1025 --z-toast: 10000;
fc1817aClaude1026 }
1027
6fc53bdClaude1028 :root[data-theme='light'] {
958d26aClaude1029 --bg: #fbfbfc;
4c47454Claude1030 --bg-secondary: #ffffff;
958d26aClaude1031 --bg-tertiary: #f3f3f6;
1032 --bg-elevated: #ffffff;
1033 --bg-surface: #f6f6f9;
1034 --bg-hover: rgba(0,0,0,0.035);
1035 --bg-active: rgba(0,0,0,0.07);
1036 --bg-inset: rgba(0,0,0,0.04);
1037
1038 --border: rgba(15,16,28,0.08);
1039 --border-subtle: rgba(15,16,28,0.04);
1040 --border-strong: rgba(15,16,28,0.16);
1041
1042 --text: #0e1020;
1043 --text-strong: #050617;
1044 --text-muted: #5a5b70;
1045 --text-faint: #8a8b9e;
1046 --text-link: #6d4dff;
1047
1048 --accent: #6d4dff;
1049 --accent-2: #0891b2;
1050 --accent-hover: #5a3df0;
1051 --accent-pressed:#4a30d6;
1052 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1053
1054 --green: #059669;
1055 --red: #dc2626;
4c47454Claude1056 --yellow: #d97706;
958d26aClaude1057
1058 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1059 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1060 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1061 }
1062
1063 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1064 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1065 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1066 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1067 :root[data-theme='light'] .theme-icon-light { display: none; }
1068
fc1817aClaude1069 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1070 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1071
958d26aClaude1072 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1073
1074 body {
1075 font-family: var(--font-sans);
1076 background: var(--bg);
1077 color: var(--text);
cf9178bTest User1078 font-size: 15px;
2ce1d0bClaude1079 line-height: 1.55;
958d26aClaude1080 letter-spacing: -0.011em;
fc1817aClaude1081 min-height: 100vh;
1082 display: flex;
1083 flex-direction: column;
958d26aClaude1084 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1085 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1086 and disables automatic synthesis of bold/italic which can produce
1087 muddier rendering on certain weights. */
1088 -webkit-font-smoothing: antialiased;
1089 -moz-osx-font-smoothing: grayscale;
1090 font-synthesis: none;
1091 }
1092 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1093 line-height inversely with size so display text doesn't feel airy. */
1094 h1, h2, h3, h4, h5, h6 {
1095 font-family: var(--font-display);
1096 color: var(--text-strong);
1097 letter-spacing: -0.022em;
1098 line-height: 1.18;
1099 font-weight: 650;
1100 margin-top: 0;
1101 }
1102 h1 { font-size: 28px; letter-spacing: -0.028em; }
1103 h2 { font-size: 22px; }
1104 h3 { font-size: 18px; letter-spacing: -0.018em; }
1105 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1106 /* Link refinement — underline only on hover/focus, never by default
1107 on internal nav. Prevents the "blue underline soup" look. */
1108 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1109 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1110 a:focus-visible {
1111 outline: none;
1112 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1113 border-radius: 3px;
fc1817aClaude1114 }
1115
958d26aClaude1116 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1117 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1118 body::before {
1119 content: '';
1120 position: fixed;
1121 inset: 0;
1122 pointer-events: none;
958d26aClaude1123 z-index: -2;
2ce1d0bClaude1124 background:
958d26aClaude1125 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1126 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1127 }
1128 body::after {
1129 content: '';
1130 position: fixed;
1131 inset: 0;
1132 pointer-events: none;
1133 z-index: -1;
1134 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1135 background-size: 28px 28px;
1136 background-position: 0 0;
1137 opacity: 0.55;
1138 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1139 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1140 }
1141 :root[data-theme='light'] body::before { opacity: 0.55; }
1142 :root[data-theme='light'] body::after {
1143 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1144 opacity: 0.4;
fc1817aClaude1145 }
2ce1d0bClaude1146
1147 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1148 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1149
958d26aClaude1150 /* Heading scale — confident, editorial, tight tracking */
1151 h1, h2, h3, h4, h5, h6 {
1152 font-family: var(--font-display);
2ce1d0bClaude1153 font-weight: 600;
958d26aClaude1154 letter-spacing: -0.022em;
1155 line-height: 1.18;
1156 color: var(--text-strong);
1157 }
1158 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1159 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1160 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1161 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1162 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1163
1164 /* Editorial display heading utility — used by landing + marketing pages */
1165 .display {
1166 font-family: var(--font-display);
1167 font-size: clamp(40px, 7.5vw, 96px);
1168 line-height: 0.98;
1169 letter-spacing: -0.04em;
1170 font-weight: 600;
1171 color: var(--text-strong);
2ce1d0bClaude1172 }
fc1817aClaude1173
958d26aClaude1174 /* Eyebrow — uppercase mono label that sits above section headings */
1175 .eyebrow {
1176 display: inline-flex;
1177 align-items: center;
1178 gap: 8px;
1179 font-family: var(--font-mono);
1180 font-size: 11px;
1181 font-weight: 500;
1182 letter-spacing: 0.14em;
1183 text-transform: uppercase;
1184 color: var(--accent);
1185 margin-bottom: var(--s-3);
1186 }
1187 .eyebrow::before {
1188 content: '';
1189 width: 18px;
1190 height: 1px;
1191 background: currentColor;
1192 opacity: 0.6;
1193 }
1194
1195 /* Section header — paired eyebrow + title + lede */
1196 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1197 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1198 .section-header h2 {
1199 font-size: clamp(28px, 4vw, 44px);
1200 line-height: 1.05;
1201 letter-spacing: -0.028em;
1202 margin-bottom: var(--s-3);
1203 }
1204 .section-header p {
1205 color: var(--text-muted);
1206 font-size: var(--t-md);
1207 line-height: 1.6;
1208 max-width: 580px;
1209 margin: 0 auto;
1210 }
1211 .section-header.left p { margin-left: 0; }
fc1817aClaude1212
958d26aClaude1213 code, kbd, samp {
2ce1d0bClaude1214 font-family: var(--font-mono);
958d26aClaude1215 font-feature-settings: var(--mono-feat);
1216 }
1217 code {
1218 font-size: 0.9em;
2ce1d0bClaude1219 background: var(--bg-tertiary);
958d26aClaude1220 border: 1px solid var(--border-subtle);
2ce1d0bClaude1221 padding: 1px 6px;
1222 border-radius: var(--r-sm);
1223 color: var(--text);
1224 }
958d26aClaude1225 kbd, .kbd {
1226 display: inline-flex;
1227 align-items: center;
1228 padding: 1px 6px;
1229 font-family: var(--font-mono);
1230 font-size: 11px;
1231 background: var(--bg-elevated);
1232 border: 1px solid var(--border);
1233 border-bottom-width: 2px;
1234 border-radius: 4px;
1235 color: var(--text);
1236 line-height: 1.5;
1237 vertical-align: middle;
1238 }
2ce1d0bClaude1239
958d26aClaude1240 /* Mono utility for technical chrome (paths, IDs, dates) */
1241 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1242 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1243
1244 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1245 .prelaunch-banner {
958d26aClaude1246 position: relative;
2ce1d0bClaude1247 background:
958d26aClaude1248 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1249 var(--bg);
958d26aClaude1250 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1251 color: var(--yellow);
958d26aClaude1252 padding: 7px 24px;
1253 font-family: var(--font-mono);
1254 font-size: 11px;
4a52a98Claude1255 font-weight: 500;
1256 text-align: center;
2ce1d0bClaude1257 line-height: 1.5;
958d26aClaude1258 letter-spacing: 0.04em;
1259 text-transform: uppercase;
1260 }
1261 .prelaunch-banner::before {
1262 content: '◆';
1263 margin-right: 8px;
1264 font-size: 9px;
1265 opacity: 0.7;
1266 vertical-align: 1px;
4a52a98Claude1267 }
1268
cd4f63bTest User1269 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1270 visitors don't miss the "save your work" CTA, but slim enough to
1271 not feel like a modal. */
1272 .playground-banner {
1273 position: relative;
1274 display: flex;
1275 align-items: center;
1276 justify-content: center;
1277 gap: 8px;
1278 background:
1279 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1280 var(--bg);
1281 border-bottom: 1px solid rgba(251,191,36,0.45);
1282 color: var(--yellow, #fbbf24);
1283 padding: 8px 40px 8px 24px;
1284 font-size: 13px;
1285 font-weight: 500;
1286 text-align: center;
1287 line-height: 1.4;
1288 }
1289 .playground-banner-icon { font-size: 14px; }
1290 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1291 .playground-banner-countdown { font-weight: 600; }
1292 .playground-banner-cta {
1293 margin-left: 4px;
1294 color: var(--yellow, #fbbf24);
1295 text-decoration: underline;
1296 font-weight: 600;
1297 }
1298 .playground-banner-cta:hover { opacity: 0.85; }
1299 .playground-banner-dismiss {
1300 position: absolute;
1301 top: 50%;
1302 right: 12px;
1303 transform: translateY(-50%);
1304 background: transparent;
1305 border: none;
1306 color: var(--text-muted, #8b949e);
1307 font-size: 18px;
1308 line-height: 1;
1309 cursor: pointer;
1310 padding: 0 4px;
1311 }
1312 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1313
958d26aClaude1314 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1315 header {
2ce1d0bClaude1316 position: sticky;
1317 top: 0;
1318 z-index: 100;
fc1817aClaude1319 border-bottom: 1px solid var(--border);
2ce1d0bClaude1320 padding: 0 24px;
1321 height: var(--header-h);
958d26aClaude1322 background: rgba(8,9,15,0.72);
1323 backdrop-filter: saturate(180%) blur(18px);
1324 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1325 }
958d26aClaude1326 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1327
06d5ffeClaude1328 header nav {
1329 display: flex;
1330 align-items: center;
958d26aClaude1331 gap: 18px;
1332 max-width: 1240px;
06d5ffeClaude1333 margin: 0 auto;
2ce1d0bClaude1334 height: 100%;
1335 }
1336 .logo {
958d26aClaude1337 font-family: var(--font-display);
1338 font-size: 16px;
2ce1d0bClaude1339 font-weight: 700;
958d26aClaude1340 letter-spacing: -0.025em;
1341 color: var(--text-strong);
2ce1d0bClaude1342 display: inline-flex;
1343 align-items: center;
958d26aClaude1344 gap: 9px;
1345 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1346 }
2ce1d0bClaude1347 .logo::before {
1348 content: '';
958d26aClaude1349 width: 20px; height: 20px;
1350 border-radius: 6px;
2ce1d0bClaude1351 background: var(--accent-gradient);
958d26aClaude1352 box-shadow:
1353 inset 0 1px 0 rgba(255,255,255,0.25),
1354 0 0 0 1px rgba(140,109,255,0.45),
1355 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1356 flex-shrink: 0;
958d26aClaude1357 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1358 }
1359 .logo:hover { text-decoration: none; color: var(--text-strong); }
1360 .logo:hover::before {
1361 transform: rotate(8deg) scale(1.05);
1362 box-shadow:
1363 inset 0 1px 0 rgba(255,255,255,0.30),
1364 0 0 0 1px rgba(140,109,255,0.55),
1365 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1366 }
fc1817aClaude1367
2ce1d0bClaude1368 .nav-search {
1369 flex: 1;
958d26aClaude1370 max-width: 360px;
1371 margin: 0 4px 0 8px;
1372 position: relative;
2ce1d0bClaude1373 }
1374 .nav-search input {
1375 width: 100%;
958d26aClaude1376 padding: 7px 12px 7px 32px;
2ce1d0bClaude1377 background: var(--bg-tertiary);
1378 border: 1px solid var(--border);
1379 border-radius: var(--r-sm);
1380 color: var(--text);
1381 font-family: var(--font-sans);
1382 font-size: var(--t-sm);
958d26aClaude1383 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1384 }
1385 .nav-search::before {
1386 content: '';
1387 position: absolute;
1388 left: 11px; top: 50%;
1389 transform: translateY(-50%);
1390 width: 12px; height: 12px;
1391 border: 1.5px solid var(--text-faint);
1392 border-radius: 50%;
1393 pointer-events: none;
1394 }
1395 .nav-search::after {
1396 content: '';
1397 position: absolute;
1398 left: 19px; top: calc(50% + 4px);
1399 width: 5px; height: 1.5px;
1400 background: var(--text-faint);
1401 transform: rotate(45deg);
1402 pointer-events: none;
2ce1d0bClaude1403 }
1404 .nav-search input::placeholder { color: var(--text-faint); }
1405 .nav-search input:focus {
1406 outline: none;
1407 background: var(--bg-secondary);
958d26aClaude1408 border-color: var(--border-focus);
1409 box-shadow: var(--ring);
2ce1d0bClaude1410 }
06d5ffeClaude1411
958d26aClaude1412 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1413
1414 /* Block N3 — site-admin deploy status pill */
1415 .nav-deploy-pill {
1416 display: inline-flex;
1417 align-items: center;
1418 gap: 6px;
1419 padding: 4px 10px;
1420 margin: 0 6px 0 0;
1421 border-radius: 9999px;
1422 font-size: 11px;
1423 font-weight: 600;
1424 line-height: 1;
1425 color: var(--text-strong);
1426 background: var(--bg-elevated);
1427 border: 1px solid var(--border);
1428 text-decoration: none;
1429 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1430 }
1431 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1432 .nav-deploy-pill .deploy-pill-dot {
1433 display: inline-block;
1434 width: 8px; height: 8px;
1435 border-radius: 50%;
1436 background: #6b7280;
1437 }
1438 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1439 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1440 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1441 .deploy-pill-progress .deploy-pill-dot {
1442 background: #fbbf24;
1443 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1444 animation: deployPillPulse 1.2s ease-in-out infinite;
1445 }
1446 @keyframes deployPillPulse {
1447 0%, 100% { opacity: 1; transform: scale(1); }
1448 50% { opacity: 0.45; transform: scale(0.8); }
1449 }
1450 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1451
2ce1d0bClaude1452 .nav-link {
958d26aClaude1453 position: relative;
2ce1d0bClaude1454 color: var(--text-muted);
1455 font-size: var(--t-sm);
1456 font-weight: 500;
958d26aClaude1457 padding: 7px 11px;
2ce1d0bClaude1458 border-radius: var(--r-sm);
958d26aClaude1459 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1460 }
1461 .nav-link:hover {
958d26aClaude1462 color: var(--text-strong);
2ce1d0bClaude1463 background: var(--bg-hover);
1464 text-decoration: none;
1465 }
958d26aClaude1466 .nav-link.active { color: var(--text-strong); }
1467 .nav-link.active::after {
1468 content: '';
1469 position: absolute;
1470 left: 11px; right: 11px;
1471 bottom: -1px;
1472 height: 2px;
1473 background: var(--accent-gradient);
1474 border-radius: 2px;
1475 }
2ce1d0bClaude1476 .nav-user {
958d26aClaude1477 color: var(--text-strong);
2ce1d0bClaude1478 font-weight: 600;
1479 font-size: var(--t-sm);
1480 padding: 6px 10px;
1481 border-radius: var(--r-sm);
958d26aClaude1482 margin-left: 6px;
2ce1d0bClaude1483 transition: background var(--t-fast) var(--ease);
1484 }
958d26aClaude1485 .nav-user::before {
1486 content: '';
1487 display: inline-block;
1488 width: 8px; height: 8px;
1489 background: var(--green);
1490 border-radius: 50%;
1491 margin-right: 7px;
1492 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1493 vertical-align: 1px;
1494 }
2ce1d0bClaude1495 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1496
2ce1d0bClaude1497 main {
958d26aClaude1498 max-width: 1240px;
2ce1d0bClaude1499 margin: 0 auto;
958d26aClaude1500 padding: 36px 24px 80px;
2ce1d0bClaude1501 flex: 1;
1502 width: 100%;
ed6e438Claude1503 /* 2026 polish — subtle entrance animation on every page load.
1504 Content fades up 4px over 360ms, giving the site that "alive"
1505 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1506 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1507 }
1508 @keyframes gxMainEnter {
1509 from { opacity: 0; transform: translateY(4px); }
1510 to { opacity: 1; transform: translateY(0); }
1511 }
1512 @media (prefers-reduced-motion: reduce) {
1513 main { animation: none; }
1514 }
1515 /* 2026 polish — accent focus ring across all focusable elements.
1516 The default browser ring is utilitarian; this is the same width
1517 but tinted to the brand accent so keyboard navigation feels
1518 intentional, not jarring. :focus-visible only — mouse users
1519 never see it. */
1520 :focus-visible {
1521 outline: none;
1522 }
1523 a:focus-visible,
1524 button:focus-visible,
1525 input:focus-visible,
1526 select:focus-visible,
1527 textarea:focus-visible,
1528 [tabindex]:focus-visible {
1529 outline: 2px solid rgba(140, 109, 255, 0.55);
1530 outline-offset: 2px;
1531 border-radius: 4px;
2ce1d0bClaude1532 }
fc1817aClaude1533
958d26aClaude1534 /* Editorial footer: link grid + tagline row */
fc1817aClaude1535 footer {
1536 border-top: 1px solid var(--border);
958d26aClaude1537 padding: 56px 24px 40px;
fc1817aClaude1538 color: var(--text-muted);
958d26aClaude1539 font-size: var(--t-sm);
1540 background:
1541 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1542 var(--bg);
1543 }
1544 footer .footer-inner {
1545 max-width: 1240px;
1546 margin: 0 auto;
1547 display: grid;
1548 grid-template-columns: 1fr auto;
1549 gap: 48px;
1550 align-items: start;
1551 }
1552 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1553 footer .footer-tag {
1554 color: var(--text-muted);
1555 font-size: var(--t-sm);
1556 max-width: 320px;
1557 line-height: 1.55;
1558 }
1559 footer .footer-links {
1560 display: grid;
1561 grid-template-columns: repeat(3, minmax(120px, auto));
1562 gap: 0 56px;
1563 }
1564 footer .footer-col-title {
1565 font-family: var(--font-mono);
1566 font-size: 11px;
1567 text-transform: uppercase;
1568 letter-spacing: 0.14em;
1569 color: var(--text-faint);
1570 margin-bottom: var(--s-3);
1571 }
1572 footer .footer-col a {
1573 display: block;
1574 color: var(--text-muted);
1575 font-size: var(--t-sm);
1576 padding: 5px 0;
1577 transition: color var(--t-fast) var(--ease);
1578 }
1579 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1580 footer .footer-bottom {
1581 max-width: 1240px;
1582 margin: 40px auto 0;
1583 padding-top: 24px;
1584 border-top: 1px solid var(--border-subtle);
1585 display: flex;
1586 justify-content: space-between;
1587 align-items: center;
2ce1d0bClaude1588 color: var(--text-faint);
1589 font-size: var(--t-xs);
958d26aClaude1590 font-family: var(--font-mono);
1591 letter-spacing: 0.02em;
1592 }
1593 footer .footer-bottom a { color: var(--text-faint); }
1594 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1595 footer .footer-build {
1596 display: inline-flex;
1597 align-items: center;
1598 gap: 6px;
1599 color: var(--text-faint);
1600 font-family: var(--font-mono);
1601 font-size: 11px;
1602 cursor: help;
1603 }
1604 footer .footer-build-dot {
1605 width: 6px; height: 6px;
1606 border-radius: 50%;
1607 background: var(--green);
1608 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1609 animation: footer-build-pulse 2.4s ease-in-out infinite;
1610 }
1611 @keyframes footer-build-pulse {
1612 0%, 100% { opacity: 0.6; }
1613 50% { opacity: 1; }
1614 }
958d26aClaude1615 @media (max-width: 768px) {
1616 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1617 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1618 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1619 }
1620
2ce1d0bClaude1621 /* ============================================================ */
1622 /* Buttons */
1623 /* ============================================================ */
dc26881CC LABS App1624 /* ============================================================ */
1625 /* Buttons — Block U2 senior polish pass. */
1626 /* Rules: */
1627 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1628 /* · active presses back down to 0 (80ms — faster on press) */
1629 /* · focus-visible uses a soft box-shadow ring (no outline) */
1630 /* · primary gradient shifts position on hover for a slow */
1631 /* 600ms shimmer */
1632 /* · disabled never lifts and never animates */
1633 /* ============================================================ */
06d5ffeClaude1634 .btn {
1635 display: inline-flex;
1636 align-items: center;
2ce1d0bClaude1637 justify-content: center;
958d26aClaude1638 gap: 7px;
2ce1d0bClaude1639 padding: 7px 14px;
1640 border-radius: var(--r-sm);
958d26aClaude1641 font-family: var(--font-sans);
2ce1d0bClaude1642 font-size: var(--t-sm);
06d5ffeClaude1643 font-weight: 500;
1644 border: 1px solid var(--border);
2ce1d0bClaude1645 background: var(--bg-elevated);
06d5ffeClaude1646 color: var(--text);
1647 cursor: pointer;
1648 text-decoration: none;
958d26aClaude1649 line-height: 1.25;
1650 letter-spacing: -0.008em;
dc26881CC LABS App1651 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1652 Listed once on the base rule so :active can override only the
1653 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1654 transition:
dc26881CC LABS App1655 background 180ms ease,
1656 border-color 180ms ease,
1657 transform 180ms ease,
1658 box-shadow 180ms ease,
1659 color 180ms ease;
2ce1d0bClaude1660 user-select: none;
1661 white-space: nowrap;
958d26aClaude1662 position: relative;
06d5ffeClaude1663 }
2ce1d0bClaude1664 .btn:hover {
1665 background: var(--bg-surface);
1666 border-color: var(--border-strong);
958d26aClaude1667 color: var(--text-strong);
2ce1d0bClaude1668 text-decoration: none;
dc26881CC LABS App1669 /* U2 — universal hover lift + soft accent drop shadow. */
1670 transform: translateY(-1px);
1671 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1672 }
1673 .btn:active {
1674 transform: translateY(0);
1675 transition-duration: 80ms;
1676 }
1677 /* U2 — soft modern focus ring via box-shadow, not outline. */
1678 .btn:focus-visible {
1679 outline: none;
1680 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1681 }
1682
1683 .btn-primary {
1684 background: var(--accent-gradient);
dc26881CC LABS App1685 background-size: 200% 100%;
1686 background-position: 0% 50%;
2ce1d0bClaude1687 border-color: transparent;
1688 color: #fff;
1689 font-weight: 600;
958d26aClaude1690 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1691 box-shadow:
958d26aClaude1692 inset 0 1px 0 rgba(255,255,255,0.22),
1693 inset 0 -1px 0 rgba(0,0,0,0.10),
1694 0 1px 2px rgba(0,0,0,0.40),
1695 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1696 /* U2 — slower 600ms transition on background-position so the
1697 primary CTA shimmers when the cursor lands. */
1698 transition:
1699 background-position 600ms ease,
1700 transform 180ms ease,
1701 box-shadow 180ms ease,
1702 color 180ms ease;
06d5ffeClaude1703 }
958d26aClaude1704 .btn-primary::before {
1705 content: '';
1706 position: absolute;
1707 inset: 0;
1708 border-radius: inherit;
1709 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1710 opacity: 0;
1711 transition: opacity var(--t-fast) var(--ease);
1712 pointer-events: none;
2ce1d0bClaude1713 }
1714 .btn-primary:hover {
958d26aClaude1715 color: #fff;
2ce1d0bClaude1716 background: var(--accent-gradient);
dc26881CC LABS App1717 background-size: 200% 100%;
1718 background-position: 100% 50%;
958d26aClaude1719 border-color: transparent;
dc26881CC LABS App1720 transform: translateY(-1px);
2ce1d0bClaude1721 box-shadow:
958d26aClaude1722 inset 0 1px 0 rgba(255,255,255,0.30),
1723 inset 0 -1px 0 rgba(0,0,0,0.10),
1724 0 6px 18px -4px rgba(140,109,255,0.45),
1725 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1726 }
958d26aClaude1727 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App1728 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
1729 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
1730 .btn-primary:focus-visible {
1731 box-shadow:
1732 inset 0 1px 0 rgba(255,255,255,0.22),
1733 0 0 0 3px rgba(140,109,255,0.35);
1734 }
2ce1d0bClaude1735
1736 .btn-danger {
1737 background: transparent;
958d26aClaude1738 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude1739 color: var(--red);
1740 }
1741 .btn-danger:hover {
958d26aClaude1742 background: rgba(248,113,113,0.08);
2ce1d0bClaude1743 border-color: var(--red);
958d26aClaude1744 color: var(--red);
dc26881CC LABS App1745 transform: translateY(-1px);
1746 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude1747 }
dc26881CC LABS App1748 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude1749
1750 .btn-ghost {
1751 background: transparent;
1752 border-color: transparent;
1753 color: var(--text-muted);
1754 }
1755 .btn-ghost:hover {
1756 background: var(--bg-hover);
958d26aClaude1757 color: var(--text-strong);
2ce1d0bClaude1758 border-color: var(--border);
dc26881CC LABS App1759 transform: translateY(-1px);
1760 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude1761 }
1762
958d26aClaude1763 .btn-secondary {
1764 background: var(--bg-elevated);
1765 border-color: var(--border-strong);
1766 color: var(--text-strong);
1767 }
1768 .btn-secondary:hover {
1769 background: var(--bg-surface);
1770 border-color: var(--border-strong);
dc26881CC LABS App1771 transform: translateY(-1px);
1772 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude1773 }
1774
1775 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
1776 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
1777 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
1778 .btn-block { width: 100%; }
2ce1d0bClaude1779
dc26881CC LABS App1780 /* U2 — disabled never lifts, never shimmers, never glows. */
1781 .btn:disabled,
1782 .btn[aria-disabled='true'],
1783 .btn:disabled:hover,
1784 .btn[aria-disabled='true']:hover {
1785 opacity: 0.5;
2ce1d0bClaude1786 cursor: not-allowed;
1787 pointer-events: none;
dc26881CC LABS App1788 transform: none;
1789 box-shadow: none;
1790 }
1791 @media (prefers-reduced-motion: reduce) {
1792 .btn,
1793 .btn:hover,
1794 .btn:active,
1795 .btn-primary,
1796 .btn-primary:hover {
1797 transform: none;
1798 transition: background-color 80ms linear, color 80ms linear;
1799 }
2ce1d0bClaude1800 }
1801
1802 /* ============================================================ */
1803 /* Forms */
1804 /* ============================================================ */
1805 .form-group { margin-bottom: 20px; }
1806 .form-group label {
1807 display: block;
1808 font-size: var(--t-sm);
1809 font-weight: 500;
1810 margin-bottom: 6px;
1811 color: var(--text);
1812 letter-spacing: -0.005em;
1813 }
1814 .form-group input,
1815 .form-group textarea,
1816 .form-group select,
1817 input[type='text'], input[type='email'], input[type='password'],
1818 input[type='url'], input[type='search'], input[type='number'],
1819 textarea, select {
06d5ffeClaude1820 width: 100%;
2ce1d0bClaude1821 padding: 9px 12px;
1822 background: var(--bg-secondary);
06d5ffeClaude1823 border: 1px solid var(--border);
2ce1d0bClaude1824 border-radius: var(--r-sm);
06d5ffeClaude1825 color: var(--text);
2ce1d0bClaude1826 font-size: var(--t-sm);
06d5ffeClaude1827 font-family: var(--font-sans);
2ce1d0bClaude1828 transition:
1829 border-color var(--t-fast) var(--ease),
1830 background var(--t-fast) var(--ease),
1831 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude1832 }
2ce1d0bClaude1833 .form-group input::placeholder, textarea::placeholder, input::placeholder {
1834 color: var(--text-faint);
06d5ffeClaude1835 }
2ce1d0bClaude1836 .form-group input:hover, textarea:hover, select:hover,
1837 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
1838 border-color: var(--border-strong);
1839 }
1840 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
1841 input:focus, textarea:focus, select:focus {
06d5ffeClaude1842 outline: none;
2ce1d0bClaude1843 background: var(--bg);
1844 border-color: var(--border-focus);
1845 box-shadow: var(--ring);
06d5ffeClaude1846 }
2ce1d0bClaude1847 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude1848 .input-disabled { opacity: 0.5; cursor: not-allowed; }
1849
2ce1d0bClaude1850 /* ============================================================ */
1851 /* Auth (register / login / verify) */
1852 /* ============================================================ */
1853 .auth-container {
98f45b4Claude1854 /* 2026 polish — wider, more generous, with a subtle accent-glow
1855 border and gradient top-edge so it reads as a premium product
1856 gateway, not a stock form. The 480px width feels intentional
1857 (not cramped, not endless). */
1858 max-width: 480px;
1859 margin: 72px auto;
1860 padding: 40px 40px 36px;
2ce1d0bClaude1861 background: var(--bg-elevated);
1862 border: 1px solid var(--border);
98f45b4Claude1863 border-radius: 16px;
1864 box-shadow:
1865 var(--elev-2),
1866 0 24px 64px -16px rgba(140, 109, 255, 0.12);
1867 position: relative;
1868 overflow: hidden;
1869 }
1870 .auth-container::before {
1871 /* Hairline gradient accent on the top edge — signals 'AI-native'
1872 without shouting. Pointer-events disabled so it never interferes
1873 with form interactions. */
1874 content: '';
1875 position: absolute;
1876 top: 0;
1877 left: 0;
1878 right: 0;
1879 height: 2px;
1880 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
1881 opacity: 0.7;
1882 pointer-events: none;
2ce1d0bClaude1883 }
1884 .auth-container h2 {
98f45b4Claude1885 margin: 0 0 8px;
1886 font-size: 28px;
1887 font-weight: 700;
1888 font-family: var(--font-display);
1889 letter-spacing: -0.025em;
1890 color: var(--text-strong);
1891 line-height: 1.15;
1892 }
1893 .auth-container .auth-subtitle {
1894 color: var(--text-muted);
1895 font-size: 14.5px;
1896 line-height: 1.5;
1897 margin: 0 0 24px;
2ce1d0bClaude1898 }
1899 .auth-container > p {
1900 color: var(--text-muted);
1901 font-size: var(--t-sm);
1902 margin-bottom: 24px;
1903 }
98f45b4Claude1904 .auth-container .btn-primary {
1905 width: 100%;
1906 padding: 12px 16px;
1907 font-size: 15px;
1908 font-weight: 600;
1909 margin-top: 4px;
1910 }
582cdacClaude1911
1912 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
1913 with a brand-coloured logo on the left and a label centred-trailing.
1914 Hover lifts 1px with a subtle shadow — matches the rest of the
1915 button system but reads as a brand-affiliated action, not a brand-
1916 coloured primary CTA. */
1917 .auth-container .oauth-btn {
1918 display: flex;
1919 align-items: center;
1920 justify-content: center;
1921 gap: 10px;
1922 width: 100%;
1923 padding: 11px 16px;
1924 background: var(--bg-surface, var(--bg-elevated));
1925 border: 1px solid var(--border);
1926 border-radius: var(--r-md, 8px);
1927 color: var(--text-strong);
1928 font-family: var(--font-sans);
1929 font-size: 14.5px;
1930 font-weight: 500;
1931 text-decoration: none;
1932 transition:
1933 transform var(--t-base, 180ms) var(--ease, ease),
1934 box-shadow var(--t-base, 180ms) var(--ease, ease),
1935 background var(--t-fast, 120ms) var(--ease, ease),
1936 border-color var(--t-fast, 120ms) var(--ease, ease);
1937 }
1938 .auth-container .oauth-btn:hover {
1939 transform: translateY(-1px);
1940 background: var(--bg-hover);
1941 border-color: var(--text-muted);
1942 color: var(--text-strong);
1943 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
1944 text-decoration: none;
1945 }
1946 .auth-container .oauth-btn:focus-visible {
1947 outline: 2px solid rgba(140, 109, 255, 0.55);
1948 outline-offset: 2px;
1949 }
1950 .auth-container .oauth-btn .oauth-icon {
1951 flex-shrink: 0;
1952 }
1953 /* GitHub icon adopts the text colour so it reads in both themes. */
1954 .auth-container .oauth-github .oauth-icon {
1955 color: var(--text-strong);
1956 }
1957 /* Google logo uses the official 4-colour treatment via inline SVG fill
1958 attributes — nothing to override here. */
1959 /* "or" divider between the password form and provider buttons */
1960 .auth-container .auth-divider {
1961 display: flex;
1962 align-items: center;
1963 gap: 12px;
1964 margin: 20px 0 12px;
1965 color: var(--text-faint);
1966 font-size: 12px;
1967 letter-spacing: 0.08em;
1968 text-transform: uppercase;
1969 }
1970 .auth-container .auth-divider::before,
1971 .auth-container .auth-divider::after {
1972 content: '';
1973 flex: 1;
1974 height: 1px;
1975 background: var(--border);
1976 }
06d5ffeClaude1977 .auth-error {
958d26aClaude1978 background: rgba(248,113,113,0.08);
1979 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude1980 color: var(--red);
2ce1d0bClaude1981 padding: 10px 14px;
1982 border-radius: var(--r-sm);
06d5ffeClaude1983 margin-bottom: 16px;
2ce1d0bClaude1984 font-size: var(--t-sm);
06d5ffeClaude1985 }
1986 .auth-success {
958d26aClaude1987 background: rgba(52,211,153,0.08);
1988 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude1989 color: var(--green);
2ce1d0bClaude1990 padding: 10px 14px;
1991 border-radius: var(--r-sm);
06d5ffeClaude1992 margin-bottom: 16px;
2ce1d0bClaude1993 font-size: var(--t-sm);
1994 }
1995 .auth-switch {
1996 margin-top: 20px;
1997 font-size: var(--t-sm);
1998 color: var(--text-muted);
1999 text-align: center;
2000 }
2001 .banner {
2002 background: var(--accent-gradient-faint);
958d26aClaude2003 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2004 color: var(--text);
2005 padding: 10px 14px;
2006 border-radius: var(--r-sm);
2007 font-size: var(--t-sm);
06d5ffeClaude2008 }
2009
2ce1d0bClaude2010 /* ============================================================ */
2011 /* Settings */
2012 /* ============================================================ */
2013 .settings-container { max-width: 720px; }
2014 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2015 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2016 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2017 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2018 .ssh-keys-list { margin-bottom: 24px; }
2019 .ssh-key-item {
2020 display: flex;
2021 justify-content: space-between;
2022 align-items: center;
2ce1d0bClaude2023 padding: 14px 16px;
06d5ffeClaude2024 border: 1px solid var(--border);
2ce1d0bClaude2025 border-radius: var(--r-md);
06d5ffeClaude2026 margin-bottom: 8px;
2ce1d0bClaude2027 background: var(--bg-elevated);
2028 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2029 }
2ce1d0bClaude2030 .ssh-key-item:hover { border-color: var(--border-strong); }
2031 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2032 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2033
2ce1d0bClaude2034 /* ============================================================ */
2035 /* Repo header + nav */
2036 /* ============================================================ */
fc1817aClaude2037 .repo-header {
2038 display: flex;
2039 align-items: center;
debcf27Claude2040 gap: 12px;
2041 margin-bottom: 22px;
2042 }
2043 .repo-header-title {
2044 display: flex;
2045 align-items: center;
2046 gap: 10px;
2047 font-family: var(--font-display);
2048 font-size: 24px;
2049 letter-spacing: -0.025em;
2050 flex-wrap: wrap;
2051 }
2052 .repo-header .owner {
2053 color: var(--text-muted);
2054 font-weight: 500;
2055 transition: color var(--t-fast) var(--ease);
2056 }
2057 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2058 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2059 .repo-header .name {
2060 color: var(--text-strong);
2061 font-weight: 700;
2062 letter-spacing: -0.028em;
fc1817aClaude2063 }
2ce1d0bClaude2064 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2065 .repo-header-fork {
2066 font-family: var(--font-mono);
2067 font-size: 11px;
2068 color: var(--text-muted);
2069 margin-top: 4px;
2070 letter-spacing: 0.01em;
2071 }
2072 .repo-header-fork a { color: var(--text-muted); }
2073 .repo-header-fork a:hover { color: var(--accent); }
2074 .repo-header-pill {
2075 display: inline-flex;
2076 align-items: center;
2077 padding: 2px 10px;
2078 border-radius: var(--r-full);
2079 font-family: var(--font-mono);
2080 font-size: 10px;
2081 font-weight: 600;
2082 letter-spacing: 0.12em;
2083 text-transform: uppercase;
2084 line-height: 1.6;
2085 vertical-align: 4px;
2086 }
2087 .repo-header-pill-archived {
2088 background: rgba(251,191,36,0.10);
2089 color: var(--yellow);
2090 border: 1px solid rgba(251,191,36,0.30);
2091 }
2092 .repo-header-pill-template {
2093 background: var(--accent-gradient-faint);
2094 color: var(--accent);
2095 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2096 }
06d5ffeClaude2097 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2098
2099 .repo-nav {
2100 display: flex;
debcf27Claude2101 gap: 1px;
fc1817aClaude2102 border-bottom: 1px solid var(--border);
debcf27Claude2103 margin-bottom: 28px;
2ce1d0bClaude2104 overflow-x: auto;
2105 scrollbar-width: thin;
fc1817aClaude2106 }
2ce1d0bClaude2107 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2108 .repo-nav a {
debcf27Claude2109 position: relative;
2110 padding: 11px 14px;
fc1817aClaude2111 color: var(--text-muted);
2112 border-bottom: 2px solid transparent;
2ce1d0bClaude2113 font-size: var(--t-sm);
2114 font-weight: 500;
2115 margin-bottom: -1px;
debcf27Claude2116 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2117 white-space: nowrap;
2118 }
debcf27Claude2119 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2120 .repo-nav a.active {
debcf27Claude2121 color: var(--text-strong);
2122 font-weight: 600;
2123 }
2124 .repo-nav a.active::after {
2125 content: '';
2126 position: absolute;
2127 left: 14px;
2128 right: 14px;
2129 bottom: -1px;
2130 height: 2px;
2131 background: var(--accent-gradient);
2132 border-radius: 2px;
2133 }
2134 /* AI links in the right-side cluster — sparkle accent */
2135 .repo-nav-ai {
2136 color: var(--accent) !important;
2137 font-weight: 500;
2138 }
2139 .repo-nav-ai:hover {
2140 color: var(--accent-hover) !important;
2141 background: var(--accent-gradient-faint) !important;
2142 }
2143 .repo-nav-ai.active {
2144 color: var(--accent-hover) !important;
2ce1d0bClaude2145 font-weight: 600;
fc1817aClaude2146 }
2147
2ce1d0bClaude2148 .breadcrumb {
2149 display: flex;
debcf27Claude2150 gap: 6px;
2ce1d0bClaude2151 align-items: center;
debcf27Claude2152 margin-bottom: 18px;
2ce1d0bClaude2153 color: var(--text-muted);
2154 font-size: var(--t-sm);
2155 font-family: var(--font-mono);
debcf27Claude2156 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2157 }
2158 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2159 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2160 .breadcrumb strong {
2161 color: var(--text-strong);
2162 font-weight: 600;
fc1817aClaude2163 }
2164
debcf27Claude2165 /* Page header — eyebrow + title + optional actions row.
2166 Use on dashboard, settings, admin, any "section landing" page. */
2167 .page-header {
2168 display: flex;
2169 align-items: flex-end;
2170 justify-content: space-between;
2171 gap: 16px;
2172 margin-bottom: 28px;
2173 padding-bottom: 20px;
2174 border-bottom: 1px solid var(--border-subtle);
2175 flex-wrap: wrap;
2176 }
2177 .page-header-text { flex: 1; min-width: 280px; }
2178 .page-header .eyebrow { margin-bottom: var(--s-2); }
2179 .page-header h1 {
2180 font-family: var(--font-display);
2181 font-size: clamp(24px, 3vw, 36px);
2182 line-height: 1.1;
2183 letter-spacing: -0.028em;
2184 margin-bottom: 6px;
2185 }
2186 .page-header p {
2187 color: var(--text-muted);
2188 font-size: var(--t-sm);
2189 line-height: 1.55;
2190 max-width: 640px;
2191 }
2192 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2193
2ce1d0bClaude2194 /* ============================================================ */
2195 /* File browser table */
2196 /* ============================================================ */
2197 .file-table {
2198 width: 100%;
2199 border: 1px solid var(--border);
2200 border-radius: var(--r-md);
2201 overflow: hidden;
2202 background: var(--bg-elevated);
debcf27Claude2203 border-collapse: collapse;
2ce1d0bClaude2204 }
debcf27Claude2205 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2206 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2207 .file-table td {
2208 padding: 9px 16px;
2209 font-size: var(--t-sm);
2210 font-family: var(--font-mono);
2211 font-feature-settings: var(--mono-feat);
2212 }
2ce1d0bClaude2213 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2214 .file-icon {
2215 width: 22px;
2216 color: var(--text-faint);
2217 font-size: 13px;
2218 text-align: center;
2219 }
2220 .file-name a {
2221 color: var(--text);
2222 font-weight: 500;
2223 transition: color var(--t-fast) var(--ease);
2224 }
2225 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2226
2ce1d0bClaude2227 /* ============================================================ */
2228 /* Blob view */
2229 /* ============================================================ */
fc1817aClaude2230 .blob-view {
2231 border: 1px solid var(--border);
2ce1d0bClaude2232 border-radius: var(--r-md);
fc1817aClaude2233 overflow: hidden;
2ce1d0bClaude2234 background: var(--bg-elevated);
fc1817aClaude2235 }
2236 .blob-header {
2237 background: var(--bg-secondary);
2ce1d0bClaude2238 padding: 10px 16px;
fc1817aClaude2239 border-bottom: 1px solid var(--border);
2ce1d0bClaude2240 font-size: var(--t-sm);
fc1817aClaude2241 color: var(--text-muted);
06d5ffeClaude2242 display: flex;
2243 justify-content: space-between;
2244 align-items: center;
fc1817aClaude2245 }
2246 .blob-code {
2247 overflow-x: auto;
2248 font-family: var(--font-mono);
2ce1d0bClaude2249 font-size: var(--t-sm);
2250 line-height: 1.65;
fc1817aClaude2251 }
2252 .blob-code table { width: 100%; border-collapse: collapse; }
2253 .blob-code .line-num {
2254 width: 1%;
2ce1d0bClaude2255 min-width: 56px;
2256 padding: 0 14px;
fc1817aClaude2257 text-align: right;
2ce1d0bClaude2258 color: var(--text-faint);
fc1817aClaude2259 user-select: none;
2260 white-space: nowrap;
2261 border-right: 1px solid var(--border);
2262 }
2ce1d0bClaude2263 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2264 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2265
2ce1d0bClaude2266 /* ============================================================ */
2267 /* Commits + diffs */
2268 /* ============================================================ */
2269 .commit-list {
2270 border: 1px solid var(--border);
2271 border-radius: var(--r-md);
2272 overflow: hidden;
2273 background: var(--bg-elevated);
2274 }
fc1817aClaude2275 .commit-item {
2276 display: flex;
2277 justify-content: space-between;
2278 align-items: center;
debcf27Claude2279 padding: 14px 18px;
2280 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2281 transition: background var(--t-fast) var(--ease);
fc1817aClaude2282 }
2283 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2284 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2285 .commit-message {
2286 font-size: var(--t-sm);
2287 font-weight: 500;
2288 line-height: 1.45;
2289 color: var(--text-strong);
2290 letter-spacing: -0.005em;
2291 }
2292 .commit-meta {
2293 font-family: var(--font-mono);
2294 font-size: 11px;
2295 color: var(--text-muted);
2296 margin-top: 5px;
2297 letter-spacing: 0.01em;
2298 }
fc1817aClaude2299 .commit-sha {
2300 font-family: var(--font-mono);
debcf27Claude2301 font-feature-settings: var(--mono-feat);
2302 font-size: 11px;
2303 padding: 4px 9px;
fc1817aClaude2304 background: var(--bg-tertiary);
2305 border: 1px solid var(--border);
2ce1d0bClaude2306 border-radius: var(--r-sm);
debcf27Claude2307 color: var(--accent);
2308 font-weight: 600;
2309 letter-spacing: 0.02em;
2ce1d0bClaude2310 transition: all var(--t-fast) var(--ease);
fc1817aClaude2311 }
debcf27Claude2312 .commit-sha:hover {
2313 border-color: rgba(140,109,255,0.40);
2314 background: var(--accent-gradient-faint);
2315 color: var(--accent-hover);
2316 text-decoration: none;
fc1817aClaude2317 }
2318
2319 .diff-view { margin-top: 16px; }
2320 .diff-file {
2321 border: 1px solid var(--border);
2ce1d0bClaude2322 border-radius: var(--r-md);
fc1817aClaude2323 margin-bottom: 16px;
2324 overflow: hidden;
2ce1d0bClaude2325 background: var(--bg-elevated);
fc1817aClaude2326 }
2327 .diff-file-header {
2328 background: var(--bg-secondary);
2ce1d0bClaude2329 padding: 10px 16px;
fc1817aClaude2330 border-bottom: 1px solid var(--border);
2331 font-family: var(--font-mono);
2ce1d0bClaude2332 font-size: var(--t-sm);
2333 font-weight: 500;
fc1817aClaude2334 }
2335 .diff-content {
2336 overflow-x: auto;
2337 font-family: var(--font-mono);
2ce1d0bClaude2338 font-size: var(--t-sm);
2339 line-height: 1.65;
fc1817aClaude2340 }
958d26aClaude2341 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2342 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2343 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2344 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2345
2346 .stat-add { color: var(--green); font-weight: 600; }
2347 .stat-del { color: var(--red); font-weight: 600; }
2348
2ce1d0bClaude2349 /* ============================================================ */
2350 /* Empty state */
2351 /* ============================================================ */
fc1817aClaude2352 .empty-state {
2353 text-align: center;
958d26aClaude2354 padding: 96px 24px;
fc1817aClaude2355 color: var(--text-muted);
2ce1d0bClaude2356 border: 1px dashed var(--border);
2357 border-radius: var(--r-lg);
958d26aClaude2358 background:
2359 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2360 var(--bg-elevated);
2361 position: relative;
2362 overflow: hidden;
2363 }
2364 .empty-state::before {
2365 content: '';
2366 position: absolute;
2367 inset: 0;
2368 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2369 background-size: 24px 24px;
2370 opacity: 0.5;
2371 pointer-events: none;
2372 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2373 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2374 }
2375 :root[data-theme='light'] .empty-state::before {
2376 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2377 }
958d26aClaude2378 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2379 .empty-state h2 {
958d26aClaude2380 font-size: var(--t-xl);
2ce1d0bClaude2381 margin-bottom: 8px;
958d26aClaude2382 color: var(--text-strong);
2383 letter-spacing: -0.022em;
2ce1d0bClaude2384 }
958d26aClaude2385 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2386 .empty-state pre {
2387 text-align: left;
2388 display: inline-block;
2389 background: var(--bg-secondary);
958d26aClaude2390 padding: 18px 24px;
2391 border-radius: var(--r-md);
fc1817aClaude2392 border: 1px solid var(--border);
2393 font-family: var(--font-mono);
958d26aClaude2394 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2395 font-size: var(--t-sm);
958d26aClaude2396 margin-top: 24px;
fc1817aClaude2397 line-height: 1.8;
2ce1d0bClaude2398 color: var(--text);
958d26aClaude2399 box-shadow: var(--elev-1);
fc1817aClaude2400 }
2401
2ce1d0bClaude2402 /* ============================================================ */
2403 /* Badges */
2404 /* ============================================================ */
fc1817aClaude2405 .badge {
2ce1d0bClaude2406 display: inline-flex;
2407 align-items: center;
2408 gap: 4px;
2409 padding: 2px 9px;
2410 border-radius: var(--r-full);
2411 font-size: var(--t-xs);
fc1817aClaude2412 font-weight: 500;
2413 background: var(--bg-tertiary);
2414 border: 1px solid var(--border);
2415 color: var(--text-muted);
2ce1d0bClaude2416 line-height: 1.5;
fc1817aClaude2417 }
2418
2ce1d0bClaude2419 /* ============================================================ */
2420 /* Branch dropdown */
2421 /* ============================================================ */
fc1817aClaude2422 .branch-selector {
2423 display: inline-flex;
2424 align-items: center;
2ce1d0bClaude2425 gap: 6px;
2426 padding: 6px 12px;
2427 background: var(--bg-elevated);
fc1817aClaude2428 border: 1px solid var(--border);
2ce1d0bClaude2429 border-radius: var(--r-sm);
2430 font-size: var(--t-sm);
fc1817aClaude2431 color: var(--text);
2432 margin-bottom: 12px;
2ce1d0bClaude2433 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2434 }
2ce1d0bClaude2435 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2436
06d5ffeClaude2437 .branch-dropdown {
2438 position: relative;
2439 display: inline-block;
2440 margin-bottom: 12px;
2441 }
2442 .branch-dropdown-content {
2443 display: none;
2444 position: absolute;
2ce1d0bClaude2445 top: calc(100% + 4px);
06d5ffeClaude2446 left: 0;
2447 z-index: 10;
2ce1d0bClaude2448 min-width: 220px;
2449 background: var(--bg-elevated);
2450 border: 1px solid var(--border-strong);
2451 border-radius: var(--r-md);
2452 overflow: hidden;
2453 box-shadow: var(--elev-3);
06d5ffeClaude2454 }
2455 .branch-dropdown:hover .branch-dropdown-content,
2456 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2457 .branch-dropdown-content a {
2458 display: block;
2ce1d0bClaude2459 padding: 9px 14px;
2460 font-size: var(--t-sm);
06d5ffeClaude2461 color: var(--text);
2462 border-bottom: 1px solid var(--border);
2ce1d0bClaude2463 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2464 }
2465 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2466 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2467 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2468
2ce1d0bClaude2469 /* ============================================================ */
2470 /* Card grid */
2471 /* ============================================================ */
2472 .card-grid {
2473 display: grid;
2474 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2475 gap: 16px;
2476 }
fc1817aClaude2477 .card {
2478 border: 1px solid var(--border);
2ce1d0bClaude2479 border-radius: var(--r-md);
958d26aClaude2480 padding: 20px;
2ce1d0bClaude2481 background: var(--bg-elevated);
2482 transition:
958d26aClaude2483 border-color var(--t-base) var(--ease),
2484 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2485 box-shadow var(--t-base) var(--ease);
2486 position: relative;
2487 overflow: hidden;
958d26aClaude2488 isolation: isolate;
2489 }
2490 .card::before {
2491 content: '';
2492 position: absolute;
2493 inset: 0;
2494 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2495 opacity: 0;
2496 transition: opacity var(--t-base) var(--ease);
2497 pointer-events: none;
2498 z-index: -1;
2ce1d0bClaude2499 }
2500 .card:hover {
2501 border-color: var(--border-strong);
2502 box-shadow: var(--elev-2);
958d26aClaude2503 transform: translateY(-2px);
2ce1d0bClaude2504 }
958d26aClaude2505 .card:hover::before { opacity: 1; }
2506 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2507 .card h3 a { color: var(--text); font-weight: 600; }
2508 .card h3 a:hover { color: var(--text-link); }
2509 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2510 .card-meta {
2511 display: flex;
2512 gap: 14px;
2513 margin-top: 14px;
2514 padding-top: 14px;
2515 border-top: 1px solid var(--border);
2516 font-size: var(--t-xs);
2517 color: var(--text-muted);
2518 }
2519 .card-meta span { display: flex; align-items: center; gap: 5px; }
2520
2521 /* ============================================================ */
2522 /* Stat card / box */
2523 /* ============================================================ */
2524 .stat-card {
2525 background: var(--bg-elevated);
2526 border: 1px solid var(--border);
2527 border-radius: var(--r-md);
fc1817aClaude2528 padding: 16px;
2ce1d0bClaude2529 transition: border-color var(--t-fast) var(--ease);
2530 }
2531 .stat-card:hover { border-color: var(--border-strong); }
2532 .stat-label {
2533 font-size: var(--t-xs);
2534 color: var(--text-muted);
2535 text-transform: uppercase;
2536 letter-spacing: 0.06em;
2537 font-weight: 500;
2538 }
2539 .stat-value {
2540 font-size: var(--t-xl);
2541 font-weight: 700;
2542 margin-top: 4px;
2543 letter-spacing: -0.025em;
2544 color: var(--text);
2545 font-feature-settings: 'tnum';
fc1817aClaude2546 }
06d5ffeClaude2547
2ce1d0bClaude2548 /* ============================================================ */
2549 /* Star button */
2550 /* ============================================================ */
06d5ffeClaude2551 .star-btn {
2552 display: inline-flex;
2553 align-items: center;
2554 gap: 6px;
2ce1d0bClaude2555 padding: 5px 12px;
2556 background: var(--bg-elevated);
06d5ffeClaude2557 border: 1px solid var(--border);
2ce1d0bClaude2558 border-radius: var(--r-sm);
06d5ffeClaude2559 color: var(--text);
2ce1d0bClaude2560 font-size: var(--t-sm);
2561 font-weight: 500;
06d5ffeClaude2562 cursor: pointer;
2ce1d0bClaude2563 transition: all var(--t-fast) var(--ease);
2564 }
2565 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2566 .star-btn.starred {
2567 color: var(--yellow);
958d26aClaude2568 border-color: rgba(251,191,36,0.4);
2569 background: rgba(251,191,36,0.08);
06d5ffeClaude2570 }
2571
2ce1d0bClaude2572 /* ============================================================ */
2573 /* User profile */
2574 /* ============================================================ */
06d5ffeClaude2575 .user-profile {
2576 display: flex;
2577 gap: 32px;
2578 margin-bottom: 32px;
2ce1d0bClaude2579 padding: 24px;
2580 background: var(--bg-elevated);
2581 border: 1px solid var(--border);
2582 border-radius: var(--r-lg);
06d5ffeClaude2583 }
2584 .user-avatar {
2585 width: 96px;
2586 height: 96px;
2ce1d0bClaude2587 border-radius: var(--r-full);
2588 background: var(--accent-gradient-soft);
2589 border: 1px solid var(--border-strong);
06d5ffeClaude2590 display: flex;
2591 align-items: center;
2592 justify-content: center;
2ce1d0bClaude2593 font-size: 36px;
2594 font-weight: 600;
2595 color: var(--text);
06d5ffeClaude2596 flex-shrink: 0;
2ce1d0bClaude2597 letter-spacing: -0.02em;
06d5ffeClaude2598 }
2ce1d0bClaude2599 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2600 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2601 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2602
2ce1d0bClaude2603 /* ============================================================ */
2604 /* New repo form */
2605 /* ============================================================ */
2606 .new-repo-form { max-width: 640px; }
2607 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2608 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2609 .visibility-option {
2610 flex: 1;
2ce1d0bClaude2611 padding: 16px;
06d5ffeClaude2612 border: 1px solid var(--border);
2ce1d0bClaude2613 border-radius: var(--r-md);
2614 background: var(--bg-elevated);
06d5ffeClaude2615 cursor: pointer;
2ce1d0bClaude2616 text-align: left;
2617 transition: all var(--t-fast) var(--ease);
2618 }
2619 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2620 .visibility-option:has(input:checked) {
2621 border-color: var(--accent);
2622 background: var(--accent-gradient-faint);
2623 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2624 }
2625 .visibility-option input { display: none; }
2ce1d0bClaude2626 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2627 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2628
2ce1d0bClaude2629 /* ============================================================ */
2630 /* Issues */
2631 /* ============================================================ */
2632 .issue-tabs { display: flex; gap: 4px; }
2633 .issue-tabs a {
2634 color: var(--text-muted);
2635 font-size: var(--t-sm);
2636 font-weight: 500;
2637 padding: 6px 12px;
2638 border-radius: var(--r-sm);
2639 transition: all var(--t-fast) var(--ease);
2640 }
2641 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2642 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2643
2ce1d0bClaude2644 .issue-list {
2645 border: 1px solid var(--border);
2646 border-radius: var(--r-md);
2647 overflow: hidden;
2648 background: var(--bg-elevated);
2649 }
79136bbClaude2650 .issue-item {
2651 display: flex;
2ce1d0bClaude2652 gap: 14px;
79136bbClaude2653 align-items: flex-start;
2ce1d0bClaude2654 padding: 14px 16px;
79136bbClaude2655 border-bottom: 1px solid var(--border);
2ce1d0bClaude2656 transition: background var(--t-fast) var(--ease);
79136bbClaude2657 }
2658 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2659 .issue-item:hover { background: var(--bg-hover); }
2660 .issue-state-icon {
2661 font-size: 14px;
2662 padding-top: 2px;
2663 width: 18px;
2664 height: 18px;
2665 display: inline-flex;
2666 align-items: center;
2667 justify-content: center;
2668 border-radius: var(--r-full);
2669 flex-shrink: 0;
2670 }
79136bbClaude2671 .state-open { color: var(--green); }
958d26aClaude2672 .state-closed { color: #b69dff; }
2ce1d0bClaude2673 .issue-title {
debcf27Claude2674 font-family: var(--font-display);
2675 font-size: var(--t-md);
2ce1d0bClaude2676 font-weight: 600;
debcf27Claude2677 line-height: 1.35;
2678 letter-spacing: -0.012em;
2679 }
2680 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2681 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2682 .issue-meta {
2683 font-family: var(--font-mono);
2684 font-size: 11px;
2685 color: var(--text-muted);
2686 margin-top: 5px;
2687 letter-spacing: 0.01em;
2ce1d0bClaude2688 }
79136bbClaude2689
2690 .issue-badge {
2691 display: inline-flex;
2692 align-items: center;
2ce1d0bClaude2693 gap: 6px;
79136bbClaude2694 padding: 4px 12px;
2ce1d0bClaude2695 border-radius: var(--r-full);
2696 font-size: var(--t-sm);
79136bbClaude2697 font-weight: 500;
2ce1d0bClaude2698 line-height: 1.4;
79136bbClaude2699 }
958d26aClaude2700 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
2701 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
2702 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude2703 .state-merged { color: var(--accent); }
958d26aClaude2704 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude2705
2ce1d0bClaude2706 .issue-detail { max-width: 920px; }
79136bbClaude2707 .issue-comment-box {
2708 border: 1px solid var(--border);
2ce1d0bClaude2709 border-radius: var(--r-md);
79136bbClaude2710 margin-bottom: 16px;
2711 overflow: hidden;
2ce1d0bClaude2712 background: var(--bg-elevated);
79136bbClaude2713 }
2714 .comment-header {
2715 background: var(--bg-secondary);
2ce1d0bClaude2716 padding: 10px 16px;
79136bbClaude2717 border-bottom: 1px solid var(--border);
2ce1d0bClaude2718 font-size: var(--t-sm);
79136bbClaude2719 color: var(--text-muted);
2720 }
2721
2ce1d0bClaude2722 /* ============================================================ */
2723 /* Panel — flexible container used across many pages */
2724 /* ============================================================ */
2725 .panel {
2726 background: var(--bg-elevated);
2727 border: 1px solid var(--border);
2728 border-radius: var(--r-md);
2729 overflow: hidden;
2730 }
2731 .panel-item {
2732 display: flex;
2733 align-items: center;
2734 gap: 12px;
2735 padding: 12px 16px;
79136bbClaude2736 border-bottom: 1px solid var(--border);
2ce1d0bClaude2737 transition: background var(--t-fast) var(--ease);
2738 }
2739 .panel-item:last-child { border-bottom: none; }
2740 .panel-item:hover { background: var(--bg-hover); }
2741 .panel-empty {
2742 padding: 24px;
2743 text-align: center;
79136bbClaude2744 color: var(--text-muted);
2ce1d0bClaude2745 font-size: var(--t-sm);
79136bbClaude2746 }
2747
2ce1d0bClaude2748 /* ============================================================ */
2749 /* Search */
2750 /* ============================================================ */
79136bbClaude2751 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude2752
2ce1d0bClaude2753 /* ============================================================ */
2754 /* Timeline */
2755 /* ============================================================ */
2756 .timeline { position: relative; padding-left: 28px; }
16b325cClaude2757 .timeline::before {
2758 content: '';
2759 position: absolute;
2760 left: 4px;
2761 top: 8px;
2762 bottom: 8px;
2763 width: 2px;
2ce1d0bClaude2764 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude2765 }
2ce1d0bClaude2766 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude2767 .timeline-dot {
2768 position: absolute;
2ce1d0bClaude2769 left: -28px;
2770 top: 8px;
2771 width: 12px;
2772 height: 12px;
2773 border-radius: var(--r-full);
2774 background: var(--accent-gradient);
16b325cClaude2775 border: 2px solid var(--bg);
2ce1d0bClaude2776 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude2777 }
2778 .timeline-content {
2ce1d0bClaude2779 background: var(--bg-elevated);
16b325cClaude2780 border: 1px solid var(--border);
2ce1d0bClaude2781 border-radius: var(--r-md);
2782 padding: 14px 16px;
16b325cClaude2783 }
f1ab587Claude2784
2ce1d0bClaude2785 /* ============================================================ */
2786 /* Toggle switch */
2787 /* ============================================================ */
f1ab587Claude2788 .toggle-switch {
2789 position: relative;
2790 display: inline-block;
2ce1d0bClaude2791 width: 40px;
2792 height: 22px;
f1ab587Claude2793 flex-shrink: 0;
2794 margin-left: 16px;
2795 }
2796 .toggle-switch input { opacity: 0; width: 0; height: 0; }
2797 .toggle-slider {
2798 position: absolute;
2799 cursor: pointer;
2800 top: 0; left: 0; right: 0; bottom: 0;
2801 background: var(--bg-tertiary);
2802 border: 1px solid var(--border);
2ce1d0bClaude2803 border-radius: var(--r-full);
2804 transition: all var(--t-base) var(--ease);
f1ab587Claude2805 }
2806 .toggle-slider::before {
2807 content: '';
2808 position: absolute;
2ce1d0bClaude2809 height: 16px;
2810 width: 16px;
f1ab587Claude2811 left: 2px;
2812 bottom: 2px;
2813 background: var(--text-muted);
2ce1d0bClaude2814 border-radius: var(--r-full);
2815 transition: all var(--t-base) var(--ease);
f1ab587Claude2816 }
2817 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude2818 background: var(--accent-gradient);
2819 border-color: transparent;
958d26aClaude2820 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude2821 }
2822 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude2823 transform: translateX(18px);
f1ab587Claude2824 background: #fff;
2825 }
ef8d378Claude2826
2827 /* ============================================================
2828 * 2026 polish layer (purely additive — no layout changes).
2829 * Improves typography rendering, focus states, hover affordances,
2830 * and adds the gradient brand cue to primary buttons. Anything
2831 * that could alter dimensions stays in the rules above.
2832 * ============================================================ */
2833 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
2834 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
2835 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
2836
2837 h1, h2, h3, h4 { letter-spacing: -0.018em; }
2838 h1 { letter-spacing: -0.025em; }
2839
2840 /* Smoother colour transitions everywhere links live */
2841 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
2842
2843 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
2844 .btn {
2845 transition:
2846 background 120ms cubic-bezier(0.16,1,0.3,1),
2847 border-color 120ms cubic-bezier(0.16,1,0.3,1),
2848 transform 120ms cubic-bezier(0.16,1,0.3,1),
2849 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
2850 }
2851 .btn:active { transform: translateY(0.5px); }
2852 .btn:focus-visible {
2853 outline: none;
2854 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
2855 }
2856 .btn-primary {
2857 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2858 border-color: transparent;
2859 box-shadow:
2860 inset 0 1px 0 rgba(255,255,255,0.15),
2861 0 1px 2px rgba(168,85,247,0.25);
2862 }
2863 .btn-primary:hover {
2864 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
2865 filter: none;
2866 box-shadow:
2867 inset 0 1px 0 rgba(255,255,255,0.20),
2868 0 4px 12px rgba(168,85,247,0.30);
2869 }
2870
2871 /* Inputs: cleaner focus ring + hover */
2872 .form-group input:hover,
2873 .form-group textarea:hover,
2874 .form-group select:hover {
2875 border-color: rgba(255,255,255,0.14);
2876 }
2877 .form-group input:focus,
2878 .form-group textarea:focus,
2879 .form-group select:focus {
2880 border-color: rgba(168,85,247,0.55);
2881 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
2882 }
2883 :root[data-theme='light'] .form-group input:hover,
2884 :root[data-theme='light'] .form-group textarea:hover,
2885 :root[data-theme='light'] .form-group select:hover {
2886 border-color: rgba(0,0,0,0.18);
2887 }
2888
2889 /* Cards: subtle hover lift */
2890 .card {
2891 transition:
2892 border-color 160ms cubic-bezier(0.16,1,0.3,1),
2893 transform 160ms cubic-bezier(0.16,1,0.3,1),
2894 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
2895 }
2896 .card:hover {
2897 border-color: rgba(255,255,255,0.18);
2898 transform: translateY(-1px);
2899 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
2900 }
2901 :root[data-theme='light'] .card:hover {
2902 border-color: rgba(0,0,0,0.18);
2903 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
2904 }
2905
2906 /* Issue / commit / panel rows: smoother hover */
2907 .issue-item, .commit-item {
2908 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
2909 }
2910 .repo-nav a {
2911 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
2912 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
2913 }
2914 .nav-link {
2915 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
2916 }
2917
2918 /* Auth card: subtle elevation so register/login feel premium */
2919 .auth-container {
2920 background: var(--bg-secondary);
2921 border: 1px solid var(--border);
2922 border-radius: var(--r-lg, 12px);
2923 padding: 32px;
2924 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
2925 }
2926 :root[data-theme='light'] .auth-container {
2927 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
2928 }
2929 .auth-container h2 { letter-spacing: -0.025em; }
2930
2931 /* Empty state: dashed border, generous padding */
2932 .empty-state {
2933 border: 1px dashed var(--border);
2934 border-radius: var(--r-lg, 12px);
2935 background: var(--bg);
2936 }
2937
2938 /* Badges + commit-sha: smoother transition */
2939 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
2940
2941 /* Gradient text utility — matches landing's accent treatment */
2942 .gradient-text {
2943 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2944 -webkit-background-clip: text;
2945 background-clip: text;
2946 -webkit-text-fill-color: transparent;
2947 }
2948
2949 /* Custom scrollbars (subtle, themed) */
2950 ::-webkit-scrollbar { width: 10px; height: 10px; }
2951 ::-webkit-scrollbar-track { background: transparent; }
2952 ::-webkit-scrollbar-thumb {
2953 background: rgba(255,255,255,0.06);
2954 border: 2px solid var(--bg);
2955 border-radius: 9999px;
2956 }
2957 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
2958 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
2959 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
2960
2961 /* Honour reduced-motion preference */
2962 @media (prefers-reduced-motion: reduce) {
2963 *, *::before, *::after {
2964 animation-duration: 0.01ms !important;
2965 animation-iteration-count: 1 !important;
2966 transition-duration: 0.01ms !important;
2967 }
2968 }
c63b860Claude2969
2970 /* Block O3 — visual coherence additive rules. */
2971 .card.card-p-none { padding: 0; }
2972 .card.card-p-sm { padding: var(--space-3); }
2973 .card.card-p-md { padding: var(--space-4); }
2974 .card.card-p-lg { padding: var(--space-6); }
2975 .card.card-elevated { box-shadow: var(--elev-2); }
2976 .card.card-gradient {
2977 background:
2978 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
2979 var(--bg-elevated);
2980 }
2981 .card.card-gradient::before { opacity: 1; }
2982 .notice {
2983 padding: var(--space-3) var(--space-4);
2984 border-radius: var(--radius-md);
2985 border: 1px solid var(--border);
2986 background: var(--bg-elevated);
2987 color: var(--text);
2988 font-size: var(--font-size-sm);
2989 margin-bottom: var(--space-6);
2990 line-height: var(--leading-normal);
2991 }
2992 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
2993 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
2994 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
2995 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
2996 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
2997 .email-preview {
2998 padding: var(--space-5);
2999 background: #fff;
3000 color: #111;
3001 border-radius: var(--radius-md);
3002 }
3003 .code-block {
3004 margin: var(--space-2) 0 0;
3005 padding: var(--space-3);
3006 background: var(--bg-tertiary);
3007 border: 1px solid var(--border-subtle);
3008 border-radius: var(--radius-sm);
3009 font-family: var(--font-mono);
3010 font-size: var(--font-size-xs);
3011 line-height: var(--leading-normal);
3012 overflow-x: auto;
3013 }
3014 .status-pill-operational {
3015 display: inline-flex;
3016 align-items: center;
3017 padding: var(--space-1) var(--space-3);
3018 border-radius: var(--radius-full);
3019 font-size: var(--font-size-xs);
3020 font-weight: 600;
3021 background: rgba(52,211,153,0.15);
3022 color: var(--green);
3023 }
3024 .api-tag {
3025 display: inline-flex;
3026 align-items: center;
3027 font-size: var(--font-size-xs);
3028 padding: 2px var(--space-2);
3029 border-radius: var(--radius-sm);
3030 font-family: var(--font-mono);
3031 }
3032 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3033 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3034 .stat-number {
3035 font-size: var(--font-size-xl);
3036 font-weight: 700;
3037 color: var(--text-strong);
3038 line-height: var(--leading-tight);
3039 }
3040 .stat-number-accent { color: var(--accent); }
3041 .stat-number-blue { color: var(--blue); }
3042 .stat-number-purple { color: var(--text-link); }
3043 footer .footer-tag-sub {
3044 margin-top: var(--space-2);
3045 font-size: var(--font-size-xs);
3046 color: var(--text-faint);
3047 line-height: var(--leading-normal);
3048 }
3049 footer .footer-version-pill {
3050 display: inline-flex;
3051 align-items: center;
3052 gap: var(--space-2);
3053 padding: var(--space-1) var(--space-3);
3054 border-radius: var(--radius-full);
3055 border: 1px solid var(--border);
3056 background: var(--bg-elevated);
3057 color: var(--text-faint);
3058 font-family: var(--font-mono);
3059 font-size: var(--font-size-xs);
3060 cursor: help;
3061 }
3062 footer .footer-banner {
3063 max-width: 1240px;
3064 margin: var(--space-6) auto 0;
3065 padding: var(--space-3) var(--space-4);
3066 border-radius: var(--radius-md);
3067 border: 1px solid var(--border);
3068 background: var(--bg-elevated);
3069 color: var(--text);
3070 font-family: var(--font-mono);
3071 font-size: var(--font-size-xs);
3072 letter-spacing: 0.04em;
3073 text-transform: uppercase;
3074 text-align: center;
3075 }
3076 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3077 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3078 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3079
cf9178bTest User3080 /* ============================================================ */
3081 /* Global toast notifications. */
3082 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3083 /* ============================================================ */
3084 .gx-toast {
3085 pointer-events: auto;
3086 display: inline-flex;
3087 align-items: flex-start;
3088 gap: 10px;
3089 min-width: 280px;
3090 max-width: min(440px, calc(100vw - 32px));
3091 padding: 12px 14px 12px 12px;
3092 background: var(--bg-elevated);
3093 border: 1px solid var(--border);
3094 border-radius: 10px;
3095 box-shadow:
3096 0 12px 36px -10px rgba(15,16,28,0.18),
3097 0 2px 6px rgba(15,16,28,0.04),
3098 0 0 0 1px rgba(15,16,28,0.02);
3099 color: var(--text);
3100 font-size: 13.5px;
3101 line-height: 1.45;
3102 opacity: 0;
3103 transform: translateX(16px);
3104 transition:
3105 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3106 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3107 }
3108 .gx-toast--in { opacity: 1; transform: translateX(0); }
3109 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3110 .gx-toast__icon {
3111 flex-shrink: 0;
3112 width: 20px; height: 20px;
3113 border-radius: 50%;
3114 display: inline-flex;
3115 align-items: center;
3116 justify-content: center;
3117 font-size: 12px;
3118 font-weight: 700;
3119 line-height: 1;
3120 margin-top: 1px;
3121 }
3122 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3123 .gx-toast__close {
3124 flex-shrink: 0;
3125 width: 22px; height: 22px;
3126 border: 0;
3127 background: transparent;
3128 color: var(--text-muted);
3129 font-size: 18px;
3130 line-height: 1;
3131 cursor: pointer;
3132 border-radius: 4px;
3133 padding: 0;
3134 margin: -2px -2px 0 0;
3135 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3136 }
3137 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3138 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3139 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3140 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3141 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3142 @media (prefers-reduced-motion: reduce) {
3143 .gx-toast { transition: opacity 60ms linear; transform: none; }
3144 .gx-toast--in, .gx-toast--out { transform: none; }
3145 }
3146
dc26881CC LABS App3147 /* ============================================================ */
3148 /* Block U4 — cross-document view transitions. */
3149 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3150 /* every same-origin navigation. Older browsers ignore these */
3151 /* rules entirely — no JS shim, no breakage. */
3152 /* prefers-reduced-motion disables the animation honourably. */
3153 /* ============================================================ */
3154 @view-transition {
3155 navigation: auto;
3156 }
3157 ::view-transition-old(root),
3158 ::view-transition-new(root) {
3159 animation-duration: 200ms;
3160 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3161 }
3162 ::view-transition-old(root) {
3163 animation-name: vt-fade-out;
3164 }
3165 ::view-transition-new(root) {
3166 animation-name: vt-fade-in;
3167 }
3168 @keyframes vt-fade-out {
3169 to { opacity: 0; }
3170 }
3171 @keyframes vt-fade-in {
3172 from { opacity: 0; }
3173 }
3174 @media (prefers-reduced-motion: reduce) {
3175 ::view-transition-old(root),
3176 ::view-transition-new(root) {
3177 animation-duration: 0s;
3178 }
3179 }
3180 /* The transition system picks up its root subject from this rule. */
3181 body {
3182 view-transition-name: root;
3183 }
fc1817aClaude3184`;