Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history

layout.tsx

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

layout.tsxBlame3181 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>
06d5ffeClaude261 <a href="/new" class="btn btn-sm btn-primary">
262 + New
263 </a>
264 <a href={`/${user.username}`} class="nav-user">
265 {user.displayName || user.username}
266 </a>
267 <a href="/settings" class="nav-link">
268 Settings
269 </a>
270 <a href="/logout" class="nav-link">
271 Sign out
272 </a>
273 </>
274 ) : (
275 <>
276 <a href="/login" class="nav-link">
277 Sign in
278 </a>
279 <a href="/register" class="btn btn-sm btn-primary">
280 Register
281 </a>
282 </>
283 )}
284 </div>
fc1817aClaude285 </nav>
286 </header>
45e31d0Claude287 <main id="main-content">{children}</main>
cf9178bTest User288 {/* Global toast host — populated by the toastScript below from
289 ?success= / ?error= / ?toast= query params. Replaces the
290 per-page banner pattern with one polished slide-in. */}
291 <div
292 id="toast-host"
293 aria-live="polite"
294 aria-atomic="true"
295 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"
296 />
fc1817aClaude297 <footer>
958d26aClaude298 <div class="footer-inner">
299 <div class="footer-brand">
300 <a href="/" class="logo">gluecron</a>
301 <p class="footer-tag">
302 AI-native code intelligence. Self-hosted git, automated CI,
303 push-time gates. Software that ships itself.
304 </p>
305 </div>
306 <div class="footer-links">
307 <div class="footer-col">
308 <div class="footer-col-title">Product</div>
b0148e9Claude309 <a href="/features">Features</a>
310 <a href="/pricing">Pricing</a>
958d26aClaude311 <a href="/explore">Explore</a>
312 <a href="/marketplace">Marketplace</a>
313 </div>
314 <div class="footer-col">
315 <div class="footer-col-title">Platform</div>
b0148e9Claude316 <a href="/help">Quickstart</a>
958d26aClaude317 <a href="/status">Status</a>
318 <a href="/api/graphql">GraphQL</a>
319 <a href="/mcp">MCP server</a>
320 </div>
321 <div class="footer-col">
b0148e9Claude322 <div class="footer-col-title">Company</div>
323 <a href="/about">About</a>
958d26aClaude324 <a href="/terms">Terms</a>
325 <a href="/privacy">Privacy</a>
326 <a href="/acceptable-use">Acceptable use</a>
327 </div>
328 </div>
329 </div>
330 <div class="footer-bottom">
331 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude332 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
333 <span class="footer-build-dot" aria-hidden="true" />
334 {build.sha} · {build.branch}
335 </span>
36b4cbdClaude336 </div>
c63b860Claude337 {siteBannerText ? (
338 <div
339 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
340 role="status"
341 aria-live="polite"
342 >
343 {siteBannerText}
344 </div>
345 ) : null}
fc1817aClaude346 </footer>
05cdb85Claude347 {/* Live update poller — checks /api/version every 15s, prompts
348 reload when the running sha changes. Pure progressive-
349 enhancement; degrades to nothing if JS is off. */}
350 <div
351 id="version-banner"
352 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"
353 >
354 <span style="display:inline-flex;align-items:center;gap:8px">
355 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
356 <span>New version available</span>
357 </span>
358 <button
359 type="button"
360 id="version-banner-reload"
361 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"
362 >
363 Reload
364 </button>
365 </div>
fa880f2Claude366 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude367 {/* Block N3 — site-admin deploy status pill (script-only). The pill
368 container is rendered above for authed users; this script bootstraps
369 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
370 and the pill stays display:none — zero leak. */}
371 {user && (
372 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
373 )}
699e5c7Claude374 {/* Block I4 — Command palette shell (hidden by default) */}
375 <div
376 id="cmdk-backdrop"
377 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
378 />
379 <div
380 id="cmdk-panel"
381 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"
382 >
383 <input
384 id="cmdk-input"
385 type="text"
386 placeholder="Type a command..."
387 aria-label="Command palette"
dc26881CC LABS App388 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"
699e5c7Claude389 />
390 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
391 </div>
fa880f2Claude392 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude393 {/* PWA-kill script: actively unregisters any service worker
394 previously installed under gluecron.com. Recovers any browser
395 still trapped in the SW reload loop from the legacy registrations. */}
396 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User397 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude398 <script dangerouslySetInnerHTML={{ __html: navScript }} />
fc1817aClaude399 </body>
400 </html>
401 );
402};
403
05cdb85Claude404// Live version poller. Checks /api/version every 15s; if the sha differs
405// from the one we booted with, reveal the floating 'New version' pill so
406// the user can reload onto the new code without manually refreshing.
407const versionPollerScript = `
408 (function(){
409 var loadedSha = null;
410 var banner, btn;
411 function poll(){
412 fetch('/api/version', { cache: 'no-store' })
413 .then(function(r){ return r.ok ? r.json() : null; })
414 .then(function(j){
415 if (!j || !j.sha) return;
416 if (loadedSha === null) { loadedSha = j.sha; return; }
417 if (j.sha !== loadedSha && banner) {
418 banner.style.display = 'inline-flex';
419 }
420 })
421 .catch(function(){});
422 }
423 function init(){
424 banner = document.getElementById('version-banner');
425 btn = document.getElementById('version-banner-reload');
426 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
427 poll();
428 setInterval(poll, 15000);
429 }
430 if (document.readyState === 'loading') {
431 document.addEventListener('DOMContentLoaded', init);
432 } else {
433 init();
434 }
435 })();
436`;
437
f764c07Claude438// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
439// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
440// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
441// display:none — there's no leakage of admin-only data to other users.
442//
443// Pill states (CSS classes on the container drive colour):
444// .deploy-pill-success 🟢 "Deployed 12s ago"
445// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
446// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
447// .deploy-pill-empty ⚪ "No deploys yet"
448//
449// Relative-time auto-refreshes every 15s without re-fetching.
450export const deployPillScript = `
451 (function(){
452 var pill, dot, text;
453 var state = { latest: null, asOf: null };
454
455 function classifyAge(ms){
456 if (ms < 0) return 'just now';
457 var s = Math.floor(ms / 1000);
458 if (s < 5) return 'just now';
459 if (s < 60) return s + 's ago';
460 var m = Math.floor(s / 60);
461 if (m < 60) return m + 'm ago';
462 var h = Math.floor(m / 60);
463 if (h < 24) return h + 'h ago';
464 var d = Math.floor(h / 24);
465 return d + 'd ago';
466 }
467 function elapsed(ms){
468 if (ms < 0) ms = 0;
469 var s = Math.floor(ms / 1000);
470 if (s < 60) return s + 's';
471 var m = Math.floor(s / 60);
472 var rem = s - m * 60;
473 return m + 'm ' + rem + 's';
474 }
475
476 function render(){
477 if (!pill || !text || !dot) return;
478 var d = state.latest;
81201ccTest User479 // When there's no deploy event yet, keep the pill HIDDEN. Showing
480 // "No deploys yet" was visible noise on every admin page load and
481 // flashed during reconnect cycles — admins don't need a placeholder.
482 // The pill reveals itself the first time a real deploy fires.
f764c07Claude483 if (!d) {
81201ccTest User484 pill.style.display = 'none';
f764c07Claude485 return;
486 }
487 pill.style.display = 'inline-flex';
488 var now = Date.now();
489 if (d.status === 'in_progress') {
490 pill.className = 'nav-deploy-pill deploy-pill-progress';
491 var started = Date.parse(d.started_at) || now;
492 text.textContent = 'Deploying… ' + elapsed(now - started);
493 } else if (d.status === 'succeeded') {
494 pill.className = 'nav-deploy-pill deploy-pill-success';
495 var ref = Date.parse(d.finished_at || d.started_at) || now;
496 text.textContent = 'Deployed ' + classifyAge(now - ref);
497 } else if (d.status === 'failed') {
498 pill.className = 'nav-deploy-pill deploy-pill-failed';
499 var refF = Date.parse(d.finished_at || d.started_at) || now;
500 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
501 } else {
502 pill.className = 'nav-deploy-pill';
503 text.textContent = d.status;
504 }
505 }
506
507 function fetchLatest(){
508 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
509 .then(function(r){ if (!r.ok) return null; return r.json(); })
510 .then(function(j){
511 if (!j || j.ok !== true) return;
512 state.latest = j.latest;
513 state.asOf = j.asOf;
514 render();
515 subscribe();
516 })
517 .catch(function(){});
518 }
519
520 var subscribed = false;
521 function subscribe(){
522 if (subscribed) return;
523 if (typeof EventSource === 'undefined') return;
524 subscribed = true;
525 var es;
bf19c50Test User526 // Exponential backoff with cap. Previously a tight 1500ms reconnect
527 // produced visible looping in the nav whenever the proxy timed out
528 // or the connection blipped — the bottom-of-page deploy pill
529 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
530 // successful message receipt.
531 var delay = 2000;
532 var DELAY_MAX = 60000;
533 function bump(){
534 delay = Math.min(delay * 2, DELAY_MAX);
535 }
536 function resetDelay(){
537 delay = 2000;
538 }
f764c07Claude539 function connect(){
540 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User541 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude542 es.onmessage = function(m){
bf19c50Test User543 resetDelay();
f764c07Claude544 try {
545 var d = JSON.parse(m.data);
546 if (d && d.run_id) {
547 if (!state.latest || state.latest.run_id === d.run_id ||
548 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
549 state.latest = d;
550 render();
551 }
552 }
553 } catch(e){}
554 };
555 es.onerror = function(){
556 try { es.close(); } catch(e){}
bf19c50Test User557 bump();
f764c07Claude558 setTimeout(connect, delay);
559 };
560 }
561 connect();
562 }
563
564 function init(){
565 pill = document.getElementById('deploy-pill');
566 if (!pill) return;
567 dot = pill.querySelector('.deploy-pill-dot');
568 text = pill.querySelector('.deploy-pill-text');
569 fetchLatest();
570 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
571 // without a fresh fetch.
572 setInterval(render, 15000);
573 }
574 if (document.readyState === 'loading') {
575 document.addEventListener('DOMContentLoaded', init);
576 } else {
577 init();
578 }
579 })();
580`;
581
6fc53bdClaude582// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User583// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
584// is honoured for users who explicitly opted in.
6fc53bdClaude585const themeInitScript = `
586 (function(){
587 try {
588 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User589 var t = m ? decodeURIComponent(m[1]) : 'light';
590 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude591 document.documentElement.setAttribute('data-theme', t);
592 } catch(_){}
593 })();
594`;
595
eae38d1Claude596// Block G1 — register service worker for offline / install support.
597// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App598//
cf9178bTest User599// Global toast notifications — reads ?success=, ?error=, ?toast= from the
600// URL on page load and surfaces a polished slide-in toast instead of the
601// per-page banner divs that crowded the layout. Toasts auto-dismiss after
602// 4.5s; query params are scrubbed from the URL via history.replaceState
603// so a subsequent Refresh doesn't re-fire the same toast.
604//
605// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
606// must be URI-encoded (callers already do this via encodeURIComponent
607// in c.redirect()).
608const toastScript = `
609 (function(){
610 function showToast(kind, message){
611 if (!message) return;
612 var host = document.getElementById('toast-host');
613 if (!host) return;
614 var el = document.createElement('div');
615 el.className = 'gx-toast gx-toast--' + kind;
616 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
617 var icon = document.createElement('span');
618 icon.className = 'gx-toast__icon';
619 icon.textContent = kind === 'success' ? '\\u2713'
620 : kind === 'error' ? '\\u00D7'
621 : kind === 'warn' ? '!'
622 : 'i';
623 el.appendChild(icon);
624 var text = document.createElement('span');
625 text.className = 'gx-toast__text';
626 text.textContent = message;
627 el.appendChild(text);
628 var close = document.createElement('button');
629 close.type = 'button';
630 close.className = 'gx-toast__close';
631 close.setAttribute('aria-label', 'Dismiss notification');
632 close.textContent = '\\u00D7';
633 close.addEventListener('click', function(){ dismiss(); });
634 el.appendChild(close);
635 host.appendChild(el);
636 // Force a reflow then add the visible class so the slide-in transitions.
637 void el.offsetWidth;
638 el.classList.add('gx-toast--in');
639 var timer = setTimeout(dismiss, 4500);
640 function dismiss(){
641 clearTimeout(timer);
642 el.classList.remove('gx-toast--in');
643 el.classList.add('gx-toast--out');
644 setTimeout(function(){
645 if (el.parentNode) el.parentNode.removeChild(el);
646 }, 220);
647 }
648 }
649 try {
650 var url = new URL(window.location.href);
651 var hits = 0;
652 var s = url.searchParams.get('success');
653 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
654 var e = url.searchParams.get('error');
655 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
656 var t = url.searchParams.get('toast');
657 if (t) {
658 var ix = t.indexOf(':');
659 var kind = ix > 0 ? t.slice(0, ix) : 'info';
660 var msg = ix > 0 ? t.slice(ix + 1) : t;
661 showToast(kind, msg);
662 url.searchParams.delete('toast');
663 hits++;
664 }
665 if (hits > 0 && window.history && window.history.replaceState) {
666 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
667 }
668 } catch(_) {}
669 })();
670`;
671
44fe49bClaude672// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
673// and pwaInstallBannerScript. Those two scripts registered /sw.js and
674// /sw-push.js at the same scope, causing a reload loop that made the
675// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
676// uncllickable). Per the SW spec, only one SW can control a scope; two
677// different script URLs at the same scope keep replacing each other.
6345c3eTest User678//
44fe49bClaude679// PWA is gone for good. A git host has no use for service workers,
680// install-as-app, or push notifications via SW. This script actively
681// unregisters every previously installed SW on the gluecron.com origin
682// so any browser still trapped in the loop recovers on the very next
683// page load — without needing the user to clear site data or open
684// DevTools. Idempotent and safe to keep running forever; once all
685// browsers have been cleaned, it's a no-op.
686const pwaKillSwitchScript = `
534f04aClaude687(function(){
688 try {
44fe49bClaude689 if (!('serviceWorker' in navigator)) return;
690 if (!navigator.serviceWorker.getRegistrations) return;
691 navigator.serviceWorker.getRegistrations().then(function(regs){
692 if (!regs || regs.length === 0) return;
693 regs.forEach(function(reg){
694 try { reg.unregister(); } catch(_){}
695 });
696 }).catch(function(){});
697 // Also drop any caches the old SWs left behind so the user gets
698 // truly fresh HTML on every page load. Restricted to gluecron-*
699 // namespaced caches so we don't trample anything a future opt-in
700 // feature might create under a different name.
701 if ('caches' in self) {
702 caches.keys().then(function(keys){
703 keys.forEach(function(k){
704 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
705 try { caches.delete(k); } catch(_){}
d7ba05dClaude706 }
707 });
708 }).catch(function(){});
534f04aClaude709 }
710 } catch(_) {}
711})();
712`;
713
3ef4c9dClaude714const navScript = `
715 (function(){
716 var chord = null;
717 var chordTimer = null;
718 function isTyping(t){
719 t = t || {};
720 var tag = (t.tagName || '').toLowerCase();
721 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
722 }
71cd5ecClaude723
724 // ---------- Block I4 — Command palette ----------
725 var COMMANDS = [
726 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
727 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
728 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
729 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
730 { label: 'Create new repository', href: '/new', kw: 'add create' },
731 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
732 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
733 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
734 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
735 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
736 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
737 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
738 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
739 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
740 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
741 { label: 'Gists', href: '/gists', kw: 'snippets' },
742 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
743 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
744 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
745 ];
746
747 function fuzzyMatch(item, q){
748 if (!q) return true;
749 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
750 q = q.toLowerCase();
751 var qi = 0;
752 for (var i = 0; i < hay.length && qi < q.length; i++) {
753 if (hay[i] === q[qi]) qi++;
754 }
755 return qi === q.length;
756 }
757
758 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
759
760 function render(){
761 if (!list) return;
762 var html = '';
763 for (var i = 0; i < filtered.length; i++) {
764 var item = filtered[i];
765 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
766 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]767 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App768 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude769 '<div>' + item.label + '</div>' +
770 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
771 '</div>';
772 }
773 if (filtered.length === 0) {
dc26881CC LABS App774 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude775 }
776 list.innerHTML = html;
777 }
778
779 function openPalette(){
780 backdrop = document.getElementById('cmdk-backdrop');
781 panel = document.getElementById('cmdk-panel');
782 input = document.getElementById('cmdk-input');
783 list = document.getElementById('cmdk-list');
784 if (!backdrop || !panel) return;
785 backdrop.style.display = 'block';
786 panel.style.display = 'block';
787 input.value = '';
788 selected = 0;
789 filtered = COMMANDS.slice();
790 render();
791 input.focus();
792 }
793 function closePalette(){
794 if (backdrop) backdrop.style.display = 'none';
795 if (panel) panel.style.display = 'none';
796 }
797 function go(href){ closePalette(); window.location.href = href; }
798
799 document.addEventListener('click', function(e){
800 var t = e.target;
801 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
802 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]803 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude804 });
805
806 document.addEventListener('input', function(e){
807 if (e.target && e.target.id === 'cmdk-input') {
808 var q = e.target.value;
809 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
810 selected = 0;
811 render();
812 }
813 });
814
3ef4c9dClaude815 document.addEventListener('keydown', function(e){
71cd5ecClaude816 // Palette-scoped keys take priority when open
817 if (panel && panel.style.display === 'block') {
818 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
819 if (e.key === 'ArrowDown') {
820 e.preventDefault();
821 selected = Math.min(filtered.length - 1, selected + 1);
822 render();
823 return;
824 }
825 if (e.key === 'ArrowUp') {
826 e.preventDefault();
827 selected = Math.max(0, selected - 1);
828 render();
829 return;
830 }
831 if (e.key === 'Enter') {
832 e.preventDefault();
833 var item = filtered[selected];
834 if (item) go(item.href);
835 return;
836 }
837 return;
838 }
839
3ef4c9dClaude840 if (isTyping(e.target)) return;
841 // Single key shortcuts
842 if (e.key === '/') {
843 var el = document.querySelector('.nav-search input');
844 if (el) { e.preventDefault(); el.focus(); return; }
845 }
846 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude847 e.preventDefault();
848 openPalette();
849 return;
3ef4c9dClaude850 }
851 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
852 e.preventDefault(); window.location.href = '/shortcuts'; return;
853 }
854 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
855 e.preventDefault(); window.location.href = '/new'; return;
856 }
857 // "g" chord
858 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
859 chord = 'g';
860 clearTimeout(chordTimer);
861 chordTimer = setTimeout(function(){ chord = null; }, 1200);
862 return;
863 }
864 if (chord === 'g') {
865 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
866 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
867 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
868 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
869 chord = null;
870 }
871 });
872 })();
873`;
874
fc1817aClaude875const css = `
2ce1d0bClaude876 /* ================================================================
958d26aClaude877 * Gluecron design system — 2026.05 "Editorial-Technical"
878 * Slate-noir base · refined violet signature · hairline geometry ·
879 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
880 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude881 * ============================================================== */
6fc53bdClaude882 :root, :root[data-theme='dark'] {
958d26aClaude883 /* Surfaces — slate, not black. More depth, less crush. */
884 --bg: #08090f;
885 --bg-secondary: #0c0d14;
886 --bg-tertiary: #11131c;
887 --bg-elevated: #0f111a;
888 --bg-surface: #161826;
889 --bg-hover: rgba(255,255,255,0.04);
890 --bg-active: rgba(255,255,255,0.08);
891 --bg-inset: rgba(0,0,0,0.30);
892
893 /* Borders — three weights, used deliberately */
894 --border: rgba(255,255,255,0.06);
895 --border-subtle: rgba(255,255,255,0.035);
896 --border-strong: rgba(255,255,255,0.13);
897 --border-focus: rgba(140,109,255,0.55);
898
899 /* Text */
900 --text: #ededf2;
901 --text-strong: #f7f7fb;
902 --text-muted: #8b8c9c;
903 --text-faint: #555665;
904 --text-link: #b69dff;
905
906 /* Accent — refined violet (less candy), warm amber as secondary signal */
907 --accent: #8c6dff;
908 --accent-2: #36c5d6;
909 --accent-warm: #ffb45e;
910 --accent-hover: #a48bff;
911 --accent-pressed:#7559e8;
912 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
913 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
914 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
915 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
916
917 /* Semantic */
918 --green: #34d399;
919 --red: #f87171;
920 --yellow: #fbbf24;
921 --amber: #fbbf24;
922 --blue: #60a5fa;
923
3a5755eClaude924 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
925 display (headlines), JetBrains Mono for code. All three loaded from
926 Google Fonts with display:swap so we never block first paint. System
927 fallbacks remain in place — if the CDN is unreachable the site still
928 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
929 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
930 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
931 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude932 --mono-feat: 'calt', 'liga', 'ss01';
933
934 /* Radius — sharper than before */
935 --r-sm: 5px;
936 --r: 7px;
937 --r-md: 9px;
938 --r-lg: 12px;
939 --r-xl: 16px;
940 --r-2xl: 22px;
941 --r-full: 9999px;
942 --radius: 7px;
943
944 /* Type scale — bigger display sizes for editorial feel */
945 --t-xs: 11px;
946 --t-sm: 13px;
947 --t-base: 14px;
948 --t-md: 16px;
949 --t-lg: 20px;
950 --t-xl: 28px;
951 --t-2xl: 40px;
952 --t-3xl: 56px;
953 --t-display: 72px;
954 --t-display-lg:96px;
955
956 /* Spacing — 4px base */
2ce1d0bClaude957 --s-0: 0;
958d26aClaude958 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
959 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
960 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
961 --s-20:80px; --s-24:96px; --s-32:128px;
962
963 /* Elevation — softer + more layered */
964 --elev-0: 0 0 0 1px var(--border);
965 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
966 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
967 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
968 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
969 --ring: 0 0 0 3px rgba(140,109,255,0.28);
970 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
971 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
972
973 /* Motion */
974 --ease: cubic-bezier(0.16, 1, 0.3, 1);
975 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
976 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
977 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
978 --t-fast: 120ms;
979 --t-base: 200ms;
980 --t-slow: 360ms;
981 --t-slower:560ms;
982
983 --header-h: 60px;
c63b860Claude984
985 /* Block O3 — visual coherence: named token aliases (additive). */
986 --space-1: var(--s-1);
987 --space-2: var(--s-2);
988 --space-3: var(--s-3);
989 --space-4: var(--s-4);
990 --space-5: var(--s-5);
991 --space-6: var(--s-6);
992 --space-8: var(--s-8);
993 --space-10: var(--s-10);
994 --space-12: var(--s-12);
995 --space-16: var(--s-16);
996 --space-20: var(--s-20);
997 --space-24: var(--s-24);
998 --radius-sm: var(--r-sm);
999 --radius-md: var(--r-md);
1000 --radius-lg: var(--r-lg);
1001 --radius-xl: var(--r-xl);
1002 --radius-full: var(--r-full);
1003 --font-size-xs: var(--t-xs);
1004 --font-size-sm: var(--t-sm);
1005 --font-size-base: var(--t-base);
1006 --font-size-md: var(--t-md);
1007 --font-size-lg: var(--t-lg);
1008 --font-size-xl: var(--t-xl);
1009 --font-size-2xl: var(--t-2xl);
1010 --font-size-3xl: var(--t-3xl);
1011 --font-size-hero: var(--t-display);
1012 --leading-tight: 1.2;
1013 --leading-snug: 1.35;
1014 --leading-normal: 1.5;
1015 --leading-relaxed: 1.6;
1016 --leading-loose: 1.7;
1017 --z-base: 1;
1018 --z-nav: 10;
1019 --z-sticky: 50;
1020 --z-overlay: 100;
1021 --z-modal: 1000;
1022 --z-toast: 10000;
fc1817aClaude1023 }
1024
6fc53bdClaude1025 :root[data-theme='light'] {
958d26aClaude1026 --bg: #fbfbfc;
4c47454Claude1027 --bg-secondary: #ffffff;
958d26aClaude1028 --bg-tertiary: #f3f3f6;
1029 --bg-elevated: #ffffff;
1030 --bg-surface: #f6f6f9;
1031 --bg-hover: rgba(0,0,0,0.035);
1032 --bg-active: rgba(0,0,0,0.07);
1033 --bg-inset: rgba(0,0,0,0.04);
1034
1035 --border: rgba(15,16,28,0.08);
1036 --border-subtle: rgba(15,16,28,0.04);
1037 --border-strong: rgba(15,16,28,0.16);
1038
1039 --text: #0e1020;
1040 --text-strong: #050617;
1041 --text-muted: #5a5b70;
1042 --text-faint: #8a8b9e;
1043 --text-link: #6d4dff;
1044
1045 --accent: #6d4dff;
1046 --accent-2: #0891b2;
1047 --accent-hover: #5a3df0;
1048 --accent-pressed:#4a30d6;
1049 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1050
1051 --green: #059669;
1052 --red: #dc2626;
4c47454Claude1053 --yellow: #d97706;
958d26aClaude1054
1055 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1056 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1057 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1058 }
1059
1060 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1061 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1062 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1063 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1064 :root[data-theme='light'] .theme-icon-light { display: none; }
1065
fc1817aClaude1066 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1067 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1068
958d26aClaude1069 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1070
1071 body {
1072 font-family: var(--font-sans);
1073 background: var(--bg);
1074 color: var(--text);
cf9178bTest User1075 font-size: 15px;
2ce1d0bClaude1076 line-height: 1.55;
958d26aClaude1077 letter-spacing: -0.011em;
fc1817aClaude1078 min-height: 100vh;
1079 display: flex;
1080 flex-direction: column;
958d26aClaude1081 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1082 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1083 and disables automatic synthesis of bold/italic which can produce
1084 muddier rendering on certain weights. */
1085 -webkit-font-smoothing: antialiased;
1086 -moz-osx-font-smoothing: grayscale;
1087 font-synthesis: none;
1088 }
1089 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1090 line-height inversely with size so display text doesn't feel airy. */
1091 h1, h2, h3, h4, h5, h6 {
1092 font-family: var(--font-display);
1093 color: var(--text-strong);
1094 letter-spacing: -0.022em;
1095 line-height: 1.18;
1096 font-weight: 650;
1097 margin-top: 0;
1098 }
1099 h1 { font-size: 28px; letter-spacing: -0.028em; }
1100 h2 { font-size: 22px; }
1101 h3 { font-size: 18px; letter-spacing: -0.018em; }
1102 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1103 /* Link refinement — underline only on hover/focus, never by default
1104 on internal nav. Prevents the "blue underline soup" look. */
1105 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1106 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1107 a:focus-visible {
1108 outline: none;
1109 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1110 border-radius: 3px;
fc1817aClaude1111 }
1112
958d26aClaude1113 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1114 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1115 body::before {
1116 content: '';
1117 position: fixed;
1118 inset: 0;
1119 pointer-events: none;
958d26aClaude1120 z-index: -2;
2ce1d0bClaude1121 background:
958d26aClaude1122 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1123 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1124 }
1125 body::after {
1126 content: '';
1127 position: fixed;
1128 inset: 0;
1129 pointer-events: none;
1130 z-index: -1;
1131 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1132 background-size: 28px 28px;
1133 background-position: 0 0;
1134 opacity: 0.55;
1135 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1136 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1137 }
1138 :root[data-theme='light'] body::before { opacity: 0.55; }
1139 :root[data-theme='light'] body::after {
1140 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1141 opacity: 0.4;
fc1817aClaude1142 }
2ce1d0bClaude1143
1144 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1145 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1146
958d26aClaude1147 /* Heading scale — confident, editorial, tight tracking */
1148 h1, h2, h3, h4, h5, h6 {
1149 font-family: var(--font-display);
2ce1d0bClaude1150 font-weight: 600;
958d26aClaude1151 letter-spacing: -0.022em;
1152 line-height: 1.18;
1153 color: var(--text-strong);
1154 }
1155 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1156 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1157 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1158 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1159 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1160
1161 /* Editorial display heading utility — used by landing + marketing pages */
1162 .display {
1163 font-family: var(--font-display);
1164 font-size: clamp(40px, 7.5vw, 96px);
1165 line-height: 0.98;
1166 letter-spacing: -0.04em;
1167 font-weight: 600;
1168 color: var(--text-strong);
2ce1d0bClaude1169 }
fc1817aClaude1170
958d26aClaude1171 /* Eyebrow — uppercase mono label that sits above section headings */
1172 .eyebrow {
1173 display: inline-flex;
1174 align-items: center;
1175 gap: 8px;
1176 font-family: var(--font-mono);
1177 font-size: 11px;
1178 font-weight: 500;
1179 letter-spacing: 0.14em;
1180 text-transform: uppercase;
1181 color: var(--accent);
1182 margin-bottom: var(--s-3);
1183 }
1184 .eyebrow::before {
1185 content: '';
1186 width: 18px;
1187 height: 1px;
1188 background: currentColor;
1189 opacity: 0.6;
1190 }
1191
1192 /* Section header — paired eyebrow + title + lede */
1193 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1194 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1195 .section-header h2 {
1196 font-size: clamp(28px, 4vw, 44px);
1197 line-height: 1.05;
1198 letter-spacing: -0.028em;
1199 margin-bottom: var(--s-3);
1200 }
1201 .section-header p {
1202 color: var(--text-muted);
1203 font-size: var(--t-md);
1204 line-height: 1.6;
1205 max-width: 580px;
1206 margin: 0 auto;
1207 }
1208 .section-header.left p { margin-left: 0; }
fc1817aClaude1209
958d26aClaude1210 code, kbd, samp {
2ce1d0bClaude1211 font-family: var(--font-mono);
958d26aClaude1212 font-feature-settings: var(--mono-feat);
1213 }
1214 code {
1215 font-size: 0.9em;
2ce1d0bClaude1216 background: var(--bg-tertiary);
958d26aClaude1217 border: 1px solid var(--border-subtle);
2ce1d0bClaude1218 padding: 1px 6px;
1219 border-radius: var(--r-sm);
1220 color: var(--text);
1221 }
958d26aClaude1222 kbd, .kbd {
1223 display: inline-flex;
1224 align-items: center;
1225 padding: 1px 6px;
1226 font-family: var(--font-mono);
1227 font-size: 11px;
1228 background: var(--bg-elevated);
1229 border: 1px solid var(--border);
1230 border-bottom-width: 2px;
1231 border-radius: 4px;
1232 color: var(--text);
1233 line-height: 1.5;
1234 vertical-align: middle;
1235 }
2ce1d0bClaude1236
958d26aClaude1237 /* Mono utility for technical chrome (paths, IDs, dates) */
1238 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1239 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1240
1241 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1242 .prelaunch-banner {
958d26aClaude1243 position: relative;
2ce1d0bClaude1244 background:
958d26aClaude1245 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1246 var(--bg);
958d26aClaude1247 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1248 color: var(--yellow);
958d26aClaude1249 padding: 7px 24px;
1250 font-family: var(--font-mono);
1251 font-size: 11px;
4a52a98Claude1252 font-weight: 500;
1253 text-align: center;
2ce1d0bClaude1254 line-height: 1.5;
958d26aClaude1255 letter-spacing: 0.04em;
1256 text-transform: uppercase;
1257 }
1258 .prelaunch-banner::before {
1259 content: '◆';
1260 margin-right: 8px;
1261 font-size: 9px;
1262 opacity: 0.7;
1263 vertical-align: 1px;
4a52a98Claude1264 }
1265
cd4f63bTest User1266 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1267 visitors don't miss the "save your work" CTA, but slim enough to
1268 not feel like a modal. */
1269 .playground-banner {
1270 position: relative;
1271 display: flex;
1272 align-items: center;
1273 justify-content: center;
1274 gap: 8px;
1275 background:
1276 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1277 var(--bg);
1278 border-bottom: 1px solid rgba(251,191,36,0.45);
1279 color: var(--yellow, #fbbf24);
1280 padding: 8px 40px 8px 24px;
1281 font-size: 13px;
1282 font-weight: 500;
1283 text-align: center;
1284 line-height: 1.4;
1285 }
1286 .playground-banner-icon { font-size: 14px; }
1287 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1288 .playground-banner-countdown { font-weight: 600; }
1289 .playground-banner-cta {
1290 margin-left: 4px;
1291 color: var(--yellow, #fbbf24);
1292 text-decoration: underline;
1293 font-weight: 600;
1294 }
1295 .playground-banner-cta:hover { opacity: 0.85; }
1296 .playground-banner-dismiss {
1297 position: absolute;
1298 top: 50%;
1299 right: 12px;
1300 transform: translateY(-50%);
1301 background: transparent;
1302 border: none;
1303 color: var(--text-muted, #8b949e);
1304 font-size: 18px;
1305 line-height: 1;
1306 cursor: pointer;
1307 padding: 0 4px;
1308 }
1309 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1310
958d26aClaude1311 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1312 header {
2ce1d0bClaude1313 position: sticky;
1314 top: 0;
1315 z-index: 100;
fc1817aClaude1316 border-bottom: 1px solid var(--border);
2ce1d0bClaude1317 padding: 0 24px;
1318 height: var(--header-h);
958d26aClaude1319 background: rgba(8,9,15,0.72);
1320 backdrop-filter: saturate(180%) blur(18px);
1321 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1322 }
958d26aClaude1323 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1324
06d5ffeClaude1325 header nav {
1326 display: flex;
1327 align-items: center;
958d26aClaude1328 gap: 18px;
1329 max-width: 1240px;
06d5ffeClaude1330 margin: 0 auto;
2ce1d0bClaude1331 height: 100%;
1332 }
1333 .logo {
958d26aClaude1334 font-family: var(--font-display);
1335 font-size: 16px;
2ce1d0bClaude1336 font-weight: 700;
958d26aClaude1337 letter-spacing: -0.025em;
1338 color: var(--text-strong);
2ce1d0bClaude1339 display: inline-flex;
1340 align-items: center;
958d26aClaude1341 gap: 9px;
1342 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1343 }
2ce1d0bClaude1344 .logo::before {
1345 content: '';
958d26aClaude1346 width: 20px; height: 20px;
1347 border-radius: 6px;
2ce1d0bClaude1348 background: var(--accent-gradient);
958d26aClaude1349 box-shadow:
1350 inset 0 1px 0 rgba(255,255,255,0.25),
1351 0 0 0 1px rgba(140,109,255,0.45),
1352 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1353 flex-shrink: 0;
958d26aClaude1354 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1355 }
1356 .logo:hover { text-decoration: none; color: var(--text-strong); }
1357 .logo:hover::before {
1358 transform: rotate(8deg) scale(1.05);
1359 box-shadow:
1360 inset 0 1px 0 rgba(255,255,255,0.30),
1361 0 0 0 1px rgba(140,109,255,0.55),
1362 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1363 }
fc1817aClaude1364
2ce1d0bClaude1365 .nav-search {
1366 flex: 1;
958d26aClaude1367 max-width: 360px;
1368 margin: 0 4px 0 8px;
1369 position: relative;
2ce1d0bClaude1370 }
1371 .nav-search input {
1372 width: 100%;
958d26aClaude1373 padding: 7px 12px 7px 32px;
2ce1d0bClaude1374 background: var(--bg-tertiary);
1375 border: 1px solid var(--border);
1376 border-radius: var(--r-sm);
1377 color: var(--text);
1378 font-family: var(--font-sans);
1379 font-size: var(--t-sm);
958d26aClaude1380 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1381 }
1382 .nav-search::before {
1383 content: '';
1384 position: absolute;
1385 left: 11px; top: 50%;
1386 transform: translateY(-50%);
1387 width: 12px; height: 12px;
1388 border: 1.5px solid var(--text-faint);
1389 border-radius: 50%;
1390 pointer-events: none;
1391 }
1392 .nav-search::after {
1393 content: '';
1394 position: absolute;
1395 left: 19px; top: calc(50% + 4px);
1396 width: 5px; height: 1.5px;
1397 background: var(--text-faint);
1398 transform: rotate(45deg);
1399 pointer-events: none;
2ce1d0bClaude1400 }
1401 .nav-search input::placeholder { color: var(--text-faint); }
1402 .nav-search input:focus {
1403 outline: none;
1404 background: var(--bg-secondary);
958d26aClaude1405 border-color: var(--border-focus);
1406 box-shadow: var(--ring);
2ce1d0bClaude1407 }
06d5ffeClaude1408
958d26aClaude1409 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1410
1411 /* Block N3 — site-admin deploy status pill */
1412 .nav-deploy-pill {
1413 display: inline-flex;
1414 align-items: center;
1415 gap: 6px;
1416 padding: 4px 10px;
1417 margin: 0 6px 0 0;
1418 border-radius: 9999px;
1419 font-size: 11px;
1420 font-weight: 600;
1421 line-height: 1;
1422 color: var(--text-strong);
1423 background: var(--bg-elevated);
1424 border: 1px solid var(--border);
1425 text-decoration: none;
1426 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1427 }
1428 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1429 .nav-deploy-pill .deploy-pill-dot {
1430 display: inline-block;
1431 width: 8px; height: 8px;
1432 border-radius: 50%;
1433 background: #6b7280;
1434 }
1435 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1436 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1437 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1438 .deploy-pill-progress .deploy-pill-dot {
1439 background: #fbbf24;
1440 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1441 animation: deployPillPulse 1.2s ease-in-out infinite;
1442 }
1443 @keyframes deployPillPulse {
1444 0%, 100% { opacity: 1; transform: scale(1); }
1445 50% { opacity: 0.45; transform: scale(0.8); }
1446 }
1447 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1448
2ce1d0bClaude1449 .nav-link {
958d26aClaude1450 position: relative;
2ce1d0bClaude1451 color: var(--text-muted);
1452 font-size: var(--t-sm);
1453 font-weight: 500;
958d26aClaude1454 padding: 7px 11px;
2ce1d0bClaude1455 border-radius: var(--r-sm);
958d26aClaude1456 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1457 }
1458 .nav-link:hover {
958d26aClaude1459 color: var(--text-strong);
2ce1d0bClaude1460 background: var(--bg-hover);
1461 text-decoration: none;
1462 }
958d26aClaude1463 .nav-link.active { color: var(--text-strong); }
1464 .nav-link.active::after {
1465 content: '';
1466 position: absolute;
1467 left: 11px; right: 11px;
1468 bottom: -1px;
1469 height: 2px;
1470 background: var(--accent-gradient);
1471 border-radius: 2px;
1472 }
2ce1d0bClaude1473 .nav-user {
958d26aClaude1474 color: var(--text-strong);
2ce1d0bClaude1475 font-weight: 600;
1476 font-size: var(--t-sm);
1477 padding: 6px 10px;
1478 border-radius: var(--r-sm);
958d26aClaude1479 margin-left: 6px;
2ce1d0bClaude1480 transition: background var(--t-fast) var(--ease);
1481 }
958d26aClaude1482 .nav-user::before {
1483 content: '';
1484 display: inline-block;
1485 width: 8px; height: 8px;
1486 background: var(--green);
1487 border-radius: 50%;
1488 margin-right: 7px;
1489 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1490 vertical-align: 1px;
1491 }
2ce1d0bClaude1492 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1493
2ce1d0bClaude1494 main {
958d26aClaude1495 max-width: 1240px;
2ce1d0bClaude1496 margin: 0 auto;
958d26aClaude1497 padding: 36px 24px 80px;
2ce1d0bClaude1498 flex: 1;
1499 width: 100%;
ed6e438Claude1500 /* 2026 polish — subtle entrance animation on every page load.
1501 Content fades up 4px over 360ms, giving the site that "alive"
1502 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1503 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1504 }
1505 @keyframes gxMainEnter {
1506 from { opacity: 0; transform: translateY(4px); }
1507 to { opacity: 1; transform: translateY(0); }
1508 }
1509 @media (prefers-reduced-motion: reduce) {
1510 main { animation: none; }
1511 }
1512 /* 2026 polish — accent focus ring across all focusable elements.
1513 The default browser ring is utilitarian; this is the same width
1514 but tinted to the brand accent so keyboard navigation feels
1515 intentional, not jarring. :focus-visible only — mouse users
1516 never see it. */
1517 :focus-visible {
1518 outline: none;
1519 }
1520 a:focus-visible,
1521 button:focus-visible,
1522 input:focus-visible,
1523 select:focus-visible,
1524 textarea:focus-visible,
1525 [tabindex]:focus-visible {
1526 outline: 2px solid rgba(140, 109, 255, 0.55);
1527 outline-offset: 2px;
1528 border-radius: 4px;
2ce1d0bClaude1529 }
fc1817aClaude1530
958d26aClaude1531 /* Editorial footer: link grid + tagline row */
fc1817aClaude1532 footer {
1533 border-top: 1px solid var(--border);
958d26aClaude1534 padding: 56px 24px 40px;
fc1817aClaude1535 color: var(--text-muted);
958d26aClaude1536 font-size: var(--t-sm);
1537 background:
1538 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1539 var(--bg);
1540 }
1541 footer .footer-inner {
1542 max-width: 1240px;
1543 margin: 0 auto;
1544 display: grid;
1545 grid-template-columns: 1fr auto;
1546 gap: 48px;
1547 align-items: start;
1548 }
1549 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1550 footer .footer-tag {
1551 color: var(--text-muted);
1552 font-size: var(--t-sm);
1553 max-width: 320px;
1554 line-height: 1.55;
1555 }
1556 footer .footer-links {
1557 display: grid;
1558 grid-template-columns: repeat(3, minmax(120px, auto));
1559 gap: 0 56px;
1560 }
1561 footer .footer-col-title {
1562 font-family: var(--font-mono);
1563 font-size: 11px;
1564 text-transform: uppercase;
1565 letter-spacing: 0.14em;
1566 color: var(--text-faint);
1567 margin-bottom: var(--s-3);
1568 }
1569 footer .footer-col a {
1570 display: block;
1571 color: var(--text-muted);
1572 font-size: var(--t-sm);
1573 padding: 5px 0;
1574 transition: color var(--t-fast) var(--ease);
1575 }
1576 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1577 footer .footer-bottom {
1578 max-width: 1240px;
1579 margin: 40px auto 0;
1580 padding-top: 24px;
1581 border-top: 1px solid var(--border-subtle);
1582 display: flex;
1583 justify-content: space-between;
1584 align-items: center;
2ce1d0bClaude1585 color: var(--text-faint);
1586 font-size: var(--t-xs);
958d26aClaude1587 font-family: var(--font-mono);
1588 letter-spacing: 0.02em;
1589 }
1590 footer .footer-bottom a { color: var(--text-faint); }
1591 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1592 footer .footer-build {
1593 display: inline-flex;
1594 align-items: center;
1595 gap: 6px;
1596 color: var(--text-faint);
1597 font-family: var(--font-mono);
1598 font-size: 11px;
1599 cursor: help;
1600 }
1601 footer .footer-build-dot {
1602 width: 6px; height: 6px;
1603 border-radius: 50%;
1604 background: var(--green);
1605 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1606 animation: footer-build-pulse 2.4s ease-in-out infinite;
1607 }
1608 @keyframes footer-build-pulse {
1609 0%, 100% { opacity: 0.6; }
1610 50% { opacity: 1; }
1611 }
958d26aClaude1612 @media (max-width: 768px) {
1613 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1614 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1615 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1616 }
1617
2ce1d0bClaude1618 /* ============================================================ */
1619 /* Buttons */
1620 /* ============================================================ */
dc26881CC LABS App1621 /* ============================================================ */
1622 /* Buttons — Block U2 senior polish pass. */
1623 /* Rules: */
1624 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1625 /* · active presses back down to 0 (80ms — faster on press) */
1626 /* · focus-visible uses a soft box-shadow ring (no outline) */
1627 /* · primary gradient shifts position on hover for a slow */
1628 /* 600ms shimmer */
1629 /* · disabled never lifts and never animates */
1630 /* ============================================================ */
06d5ffeClaude1631 .btn {
1632 display: inline-flex;
1633 align-items: center;
2ce1d0bClaude1634 justify-content: center;
958d26aClaude1635 gap: 7px;
2ce1d0bClaude1636 padding: 7px 14px;
1637 border-radius: var(--r-sm);
958d26aClaude1638 font-family: var(--font-sans);
2ce1d0bClaude1639 font-size: var(--t-sm);
06d5ffeClaude1640 font-weight: 500;
1641 border: 1px solid var(--border);
2ce1d0bClaude1642 background: var(--bg-elevated);
06d5ffeClaude1643 color: var(--text);
1644 cursor: pointer;
1645 text-decoration: none;
958d26aClaude1646 line-height: 1.25;
1647 letter-spacing: -0.008em;
dc26881CC LABS App1648 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1649 Listed once on the base rule so :active can override only the
1650 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1651 transition:
dc26881CC LABS App1652 background 180ms ease,
1653 border-color 180ms ease,
1654 transform 180ms ease,
1655 box-shadow 180ms ease,
1656 color 180ms ease;
2ce1d0bClaude1657 user-select: none;
1658 white-space: nowrap;
958d26aClaude1659 position: relative;
06d5ffeClaude1660 }
2ce1d0bClaude1661 .btn:hover {
1662 background: var(--bg-surface);
1663 border-color: var(--border-strong);
958d26aClaude1664 color: var(--text-strong);
2ce1d0bClaude1665 text-decoration: none;
dc26881CC LABS App1666 /* U2 — universal hover lift + soft accent drop shadow. */
1667 transform: translateY(-1px);
1668 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1669 }
1670 .btn:active {
1671 transform: translateY(0);
1672 transition-duration: 80ms;
1673 }
1674 /* U2 — soft modern focus ring via box-shadow, not outline. */
1675 .btn:focus-visible {
1676 outline: none;
1677 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1678 }
1679
1680 .btn-primary {
1681 background: var(--accent-gradient);
dc26881CC LABS App1682 background-size: 200% 100%;
1683 background-position: 0% 50%;
2ce1d0bClaude1684 border-color: transparent;
1685 color: #fff;
1686 font-weight: 600;
958d26aClaude1687 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1688 box-shadow:
958d26aClaude1689 inset 0 1px 0 rgba(255,255,255,0.22),
1690 inset 0 -1px 0 rgba(0,0,0,0.10),
1691 0 1px 2px rgba(0,0,0,0.40),
1692 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1693 /* U2 — slower 600ms transition on background-position so the
1694 primary CTA shimmers when the cursor lands. */
1695 transition:
1696 background-position 600ms ease,
1697 transform 180ms ease,
1698 box-shadow 180ms ease,
1699 color 180ms ease;
06d5ffeClaude1700 }
958d26aClaude1701 .btn-primary::before {
1702 content: '';
1703 position: absolute;
1704 inset: 0;
1705 border-radius: inherit;
1706 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1707 opacity: 0;
1708 transition: opacity var(--t-fast) var(--ease);
1709 pointer-events: none;
2ce1d0bClaude1710 }
1711 .btn-primary:hover {
958d26aClaude1712 color: #fff;
2ce1d0bClaude1713 background: var(--accent-gradient);
dc26881CC LABS App1714 background-size: 200% 100%;
1715 background-position: 100% 50%;
958d26aClaude1716 border-color: transparent;
dc26881CC LABS App1717 transform: translateY(-1px);
2ce1d0bClaude1718 box-shadow:
958d26aClaude1719 inset 0 1px 0 rgba(255,255,255,0.30),
1720 inset 0 -1px 0 rgba(0,0,0,0.10),
1721 0 6px 18px -4px rgba(140,109,255,0.45),
1722 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1723 }
958d26aClaude1724 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App1725 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
1726 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
1727 .btn-primary:focus-visible {
1728 box-shadow:
1729 inset 0 1px 0 rgba(255,255,255,0.22),
1730 0 0 0 3px rgba(140,109,255,0.35);
1731 }
2ce1d0bClaude1732
1733 .btn-danger {
1734 background: transparent;
958d26aClaude1735 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude1736 color: var(--red);
1737 }
1738 .btn-danger:hover {
958d26aClaude1739 background: rgba(248,113,113,0.08);
2ce1d0bClaude1740 border-color: var(--red);
958d26aClaude1741 color: var(--red);
dc26881CC LABS App1742 transform: translateY(-1px);
1743 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude1744 }
dc26881CC LABS App1745 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude1746
1747 .btn-ghost {
1748 background: transparent;
1749 border-color: transparent;
1750 color: var(--text-muted);
1751 }
1752 .btn-ghost:hover {
1753 background: var(--bg-hover);
958d26aClaude1754 color: var(--text-strong);
2ce1d0bClaude1755 border-color: var(--border);
dc26881CC LABS App1756 transform: translateY(-1px);
1757 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude1758 }
1759
958d26aClaude1760 .btn-secondary {
1761 background: var(--bg-elevated);
1762 border-color: var(--border-strong);
1763 color: var(--text-strong);
1764 }
1765 .btn-secondary:hover {
1766 background: var(--bg-surface);
1767 border-color: var(--border-strong);
dc26881CC LABS App1768 transform: translateY(-1px);
1769 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude1770 }
1771
1772 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
1773 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
1774 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
1775 .btn-block { width: 100%; }
2ce1d0bClaude1776
dc26881CC LABS App1777 /* U2 — disabled never lifts, never shimmers, never glows. */
1778 .btn:disabled,
1779 .btn[aria-disabled='true'],
1780 .btn:disabled:hover,
1781 .btn[aria-disabled='true']:hover {
1782 opacity: 0.5;
2ce1d0bClaude1783 cursor: not-allowed;
1784 pointer-events: none;
dc26881CC LABS App1785 transform: none;
1786 box-shadow: none;
1787 }
1788 @media (prefers-reduced-motion: reduce) {
1789 .btn,
1790 .btn:hover,
1791 .btn:active,
1792 .btn-primary,
1793 .btn-primary:hover {
1794 transform: none;
1795 transition: background-color 80ms linear, color 80ms linear;
1796 }
2ce1d0bClaude1797 }
1798
1799 /* ============================================================ */
1800 /* Forms */
1801 /* ============================================================ */
1802 .form-group { margin-bottom: 20px; }
1803 .form-group label {
1804 display: block;
1805 font-size: var(--t-sm);
1806 font-weight: 500;
1807 margin-bottom: 6px;
1808 color: var(--text);
1809 letter-spacing: -0.005em;
1810 }
1811 .form-group input,
1812 .form-group textarea,
1813 .form-group select,
1814 input[type='text'], input[type='email'], input[type='password'],
1815 input[type='url'], input[type='search'], input[type='number'],
1816 textarea, select {
06d5ffeClaude1817 width: 100%;
2ce1d0bClaude1818 padding: 9px 12px;
1819 background: var(--bg-secondary);
06d5ffeClaude1820 border: 1px solid var(--border);
2ce1d0bClaude1821 border-radius: var(--r-sm);
06d5ffeClaude1822 color: var(--text);
2ce1d0bClaude1823 font-size: var(--t-sm);
06d5ffeClaude1824 font-family: var(--font-sans);
2ce1d0bClaude1825 transition:
1826 border-color var(--t-fast) var(--ease),
1827 background var(--t-fast) var(--ease),
1828 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude1829 }
2ce1d0bClaude1830 .form-group input::placeholder, textarea::placeholder, input::placeholder {
1831 color: var(--text-faint);
06d5ffeClaude1832 }
2ce1d0bClaude1833 .form-group input:hover, textarea:hover, select:hover,
1834 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
1835 border-color: var(--border-strong);
1836 }
1837 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
1838 input:focus, textarea:focus, select:focus {
06d5ffeClaude1839 outline: none;
2ce1d0bClaude1840 background: var(--bg);
1841 border-color: var(--border-focus);
1842 box-shadow: var(--ring);
06d5ffeClaude1843 }
2ce1d0bClaude1844 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude1845 .input-disabled { opacity: 0.5; cursor: not-allowed; }
1846
2ce1d0bClaude1847 /* ============================================================ */
1848 /* Auth (register / login / verify) */
1849 /* ============================================================ */
1850 .auth-container {
98f45b4Claude1851 /* 2026 polish — wider, more generous, with a subtle accent-glow
1852 border and gradient top-edge so it reads as a premium product
1853 gateway, not a stock form. The 480px width feels intentional
1854 (not cramped, not endless). */
1855 max-width: 480px;
1856 margin: 72px auto;
1857 padding: 40px 40px 36px;
2ce1d0bClaude1858 background: var(--bg-elevated);
1859 border: 1px solid var(--border);
98f45b4Claude1860 border-radius: 16px;
1861 box-shadow:
1862 var(--elev-2),
1863 0 24px 64px -16px rgba(140, 109, 255, 0.12);
1864 position: relative;
1865 overflow: hidden;
1866 }
1867 .auth-container::before {
1868 /* Hairline gradient accent on the top edge — signals 'AI-native'
1869 without shouting. Pointer-events disabled so it never interferes
1870 with form interactions. */
1871 content: '';
1872 position: absolute;
1873 top: 0;
1874 left: 0;
1875 right: 0;
1876 height: 2px;
1877 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
1878 opacity: 0.7;
1879 pointer-events: none;
2ce1d0bClaude1880 }
1881 .auth-container h2 {
98f45b4Claude1882 margin: 0 0 8px;
1883 font-size: 28px;
1884 font-weight: 700;
1885 font-family: var(--font-display);
1886 letter-spacing: -0.025em;
1887 color: var(--text-strong);
1888 line-height: 1.15;
1889 }
1890 .auth-container .auth-subtitle {
1891 color: var(--text-muted);
1892 font-size: 14.5px;
1893 line-height: 1.5;
1894 margin: 0 0 24px;
2ce1d0bClaude1895 }
1896 .auth-container > p {
1897 color: var(--text-muted);
1898 font-size: var(--t-sm);
1899 margin-bottom: 24px;
1900 }
98f45b4Claude1901 .auth-container .btn-primary {
1902 width: 100%;
1903 padding: 12px 16px;
1904 font-size: 15px;
1905 font-weight: 600;
1906 margin-top: 4px;
1907 }
582cdacClaude1908
1909 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
1910 with a brand-coloured logo on the left and a label centred-trailing.
1911 Hover lifts 1px with a subtle shadow — matches the rest of the
1912 button system but reads as a brand-affiliated action, not a brand-
1913 coloured primary CTA. */
1914 .auth-container .oauth-btn {
1915 display: flex;
1916 align-items: center;
1917 justify-content: center;
1918 gap: 10px;
1919 width: 100%;
1920 padding: 11px 16px;
1921 background: var(--bg-surface, var(--bg-elevated));
1922 border: 1px solid var(--border);
1923 border-radius: var(--r-md, 8px);
1924 color: var(--text-strong);
1925 font-family: var(--font-sans);
1926 font-size: 14.5px;
1927 font-weight: 500;
1928 text-decoration: none;
1929 transition:
1930 transform var(--t-base, 180ms) var(--ease, ease),
1931 box-shadow var(--t-base, 180ms) var(--ease, ease),
1932 background var(--t-fast, 120ms) var(--ease, ease),
1933 border-color var(--t-fast, 120ms) var(--ease, ease);
1934 }
1935 .auth-container .oauth-btn:hover {
1936 transform: translateY(-1px);
1937 background: var(--bg-hover);
1938 border-color: var(--text-muted);
1939 color: var(--text-strong);
1940 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
1941 text-decoration: none;
1942 }
1943 .auth-container .oauth-btn:focus-visible {
1944 outline: 2px solid rgba(140, 109, 255, 0.55);
1945 outline-offset: 2px;
1946 }
1947 .auth-container .oauth-btn .oauth-icon {
1948 flex-shrink: 0;
1949 }
1950 /* GitHub icon adopts the text colour so it reads in both themes. */
1951 .auth-container .oauth-github .oauth-icon {
1952 color: var(--text-strong);
1953 }
1954 /* Google logo uses the official 4-colour treatment via inline SVG fill
1955 attributes — nothing to override here. */
1956 /* "or" divider between the password form and provider buttons */
1957 .auth-container .auth-divider {
1958 display: flex;
1959 align-items: center;
1960 gap: 12px;
1961 margin: 20px 0 12px;
1962 color: var(--text-faint);
1963 font-size: 12px;
1964 letter-spacing: 0.08em;
1965 text-transform: uppercase;
1966 }
1967 .auth-container .auth-divider::before,
1968 .auth-container .auth-divider::after {
1969 content: '';
1970 flex: 1;
1971 height: 1px;
1972 background: var(--border);
1973 }
06d5ffeClaude1974 .auth-error {
958d26aClaude1975 background: rgba(248,113,113,0.08);
1976 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude1977 color: var(--red);
2ce1d0bClaude1978 padding: 10px 14px;
1979 border-radius: var(--r-sm);
06d5ffeClaude1980 margin-bottom: 16px;
2ce1d0bClaude1981 font-size: var(--t-sm);
06d5ffeClaude1982 }
1983 .auth-success {
958d26aClaude1984 background: rgba(52,211,153,0.08);
1985 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude1986 color: var(--green);
2ce1d0bClaude1987 padding: 10px 14px;
1988 border-radius: var(--r-sm);
06d5ffeClaude1989 margin-bottom: 16px;
2ce1d0bClaude1990 font-size: var(--t-sm);
1991 }
1992 .auth-switch {
1993 margin-top: 20px;
1994 font-size: var(--t-sm);
1995 color: var(--text-muted);
1996 text-align: center;
1997 }
1998 .banner {
1999 background: var(--accent-gradient-faint);
958d26aClaude2000 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2001 color: var(--text);
2002 padding: 10px 14px;
2003 border-radius: var(--r-sm);
2004 font-size: var(--t-sm);
06d5ffeClaude2005 }
2006
2ce1d0bClaude2007 /* ============================================================ */
2008 /* Settings */
2009 /* ============================================================ */
2010 .settings-container { max-width: 720px; }
2011 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2012 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2013 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2014 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2015 .ssh-keys-list { margin-bottom: 24px; }
2016 .ssh-key-item {
2017 display: flex;
2018 justify-content: space-between;
2019 align-items: center;
2ce1d0bClaude2020 padding: 14px 16px;
06d5ffeClaude2021 border: 1px solid var(--border);
2ce1d0bClaude2022 border-radius: var(--r-md);
06d5ffeClaude2023 margin-bottom: 8px;
2ce1d0bClaude2024 background: var(--bg-elevated);
2025 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2026 }
2ce1d0bClaude2027 .ssh-key-item:hover { border-color: var(--border-strong); }
2028 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2029 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2030
2ce1d0bClaude2031 /* ============================================================ */
2032 /* Repo header + nav */
2033 /* ============================================================ */
fc1817aClaude2034 .repo-header {
2035 display: flex;
2036 align-items: center;
debcf27Claude2037 gap: 12px;
2038 margin-bottom: 22px;
2039 }
2040 .repo-header-title {
2041 display: flex;
2042 align-items: center;
2043 gap: 10px;
2044 font-family: var(--font-display);
2045 font-size: 24px;
2046 letter-spacing: -0.025em;
2047 flex-wrap: wrap;
2048 }
2049 .repo-header .owner {
2050 color: var(--text-muted);
2051 font-weight: 500;
2052 transition: color var(--t-fast) var(--ease);
2053 }
2054 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2055 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2056 .repo-header .name {
2057 color: var(--text-strong);
2058 font-weight: 700;
2059 letter-spacing: -0.028em;
fc1817aClaude2060 }
2ce1d0bClaude2061 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2062 .repo-header-fork {
2063 font-family: var(--font-mono);
2064 font-size: 11px;
2065 color: var(--text-muted);
2066 margin-top: 4px;
2067 letter-spacing: 0.01em;
2068 }
2069 .repo-header-fork a { color: var(--text-muted); }
2070 .repo-header-fork a:hover { color: var(--accent); }
2071 .repo-header-pill {
2072 display: inline-flex;
2073 align-items: center;
2074 padding: 2px 10px;
2075 border-radius: var(--r-full);
2076 font-family: var(--font-mono);
2077 font-size: 10px;
2078 font-weight: 600;
2079 letter-spacing: 0.12em;
2080 text-transform: uppercase;
2081 line-height: 1.6;
2082 vertical-align: 4px;
2083 }
2084 .repo-header-pill-archived {
2085 background: rgba(251,191,36,0.10);
2086 color: var(--yellow);
2087 border: 1px solid rgba(251,191,36,0.30);
2088 }
2089 .repo-header-pill-template {
2090 background: var(--accent-gradient-faint);
2091 color: var(--accent);
2092 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2093 }
06d5ffeClaude2094 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2095
2096 .repo-nav {
2097 display: flex;
debcf27Claude2098 gap: 1px;
fc1817aClaude2099 border-bottom: 1px solid var(--border);
debcf27Claude2100 margin-bottom: 28px;
2ce1d0bClaude2101 overflow-x: auto;
2102 scrollbar-width: thin;
fc1817aClaude2103 }
2ce1d0bClaude2104 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2105 .repo-nav a {
debcf27Claude2106 position: relative;
2107 padding: 11px 14px;
fc1817aClaude2108 color: var(--text-muted);
2109 border-bottom: 2px solid transparent;
2ce1d0bClaude2110 font-size: var(--t-sm);
2111 font-weight: 500;
2112 margin-bottom: -1px;
debcf27Claude2113 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2114 white-space: nowrap;
2115 }
debcf27Claude2116 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2117 .repo-nav a.active {
debcf27Claude2118 color: var(--text-strong);
2119 font-weight: 600;
2120 }
2121 .repo-nav a.active::after {
2122 content: '';
2123 position: absolute;
2124 left: 14px;
2125 right: 14px;
2126 bottom: -1px;
2127 height: 2px;
2128 background: var(--accent-gradient);
2129 border-radius: 2px;
2130 }
2131 /* AI links in the right-side cluster — sparkle accent */
2132 .repo-nav-ai {
2133 color: var(--accent) !important;
2134 font-weight: 500;
2135 }
2136 .repo-nav-ai:hover {
2137 color: var(--accent-hover) !important;
2138 background: var(--accent-gradient-faint) !important;
2139 }
2140 .repo-nav-ai.active {
2141 color: var(--accent-hover) !important;
2ce1d0bClaude2142 font-weight: 600;
fc1817aClaude2143 }
2144
2ce1d0bClaude2145 .breadcrumb {
2146 display: flex;
debcf27Claude2147 gap: 6px;
2ce1d0bClaude2148 align-items: center;
debcf27Claude2149 margin-bottom: 18px;
2ce1d0bClaude2150 color: var(--text-muted);
2151 font-size: var(--t-sm);
2152 font-family: var(--font-mono);
debcf27Claude2153 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2154 }
2155 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2156 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2157 .breadcrumb strong {
2158 color: var(--text-strong);
2159 font-weight: 600;
fc1817aClaude2160 }
2161
debcf27Claude2162 /* Page header — eyebrow + title + optional actions row.
2163 Use on dashboard, settings, admin, any "section landing" page. */
2164 .page-header {
2165 display: flex;
2166 align-items: flex-end;
2167 justify-content: space-between;
2168 gap: 16px;
2169 margin-bottom: 28px;
2170 padding-bottom: 20px;
2171 border-bottom: 1px solid var(--border-subtle);
2172 flex-wrap: wrap;
2173 }
2174 .page-header-text { flex: 1; min-width: 280px; }
2175 .page-header .eyebrow { margin-bottom: var(--s-2); }
2176 .page-header h1 {
2177 font-family: var(--font-display);
2178 font-size: clamp(24px, 3vw, 36px);
2179 line-height: 1.1;
2180 letter-spacing: -0.028em;
2181 margin-bottom: 6px;
2182 }
2183 .page-header p {
2184 color: var(--text-muted);
2185 font-size: var(--t-sm);
2186 line-height: 1.55;
2187 max-width: 640px;
2188 }
2189 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2190
2ce1d0bClaude2191 /* ============================================================ */
2192 /* File browser table */
2193 /* ============================================================ */
2194 .file-table {
2195 width: 100%;
2196 border: 1px solid var(--border);
2197 border-radius: var(--r-md);
2198 overflow: hidden;
2199 background: var(--bg-elevated);
debcf27Claude2200 border-collapse: collapse;
2ce1d0bClaude2201 }
debcf27Claude2202 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2203 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2204 .file-table td {
2205 padding: 9px 16px;
2206 font-size: var(--t-sm);
2207 font-family: var(--font-mono);
2208 font-feature-settings: var(--mono-feat);
2209 }
2ce1d0bClaude2210 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2211 .file-icon {
2212 width: 22px;
2213 color: var(--text-faint);
2214 font-size: 13px;
2215 text-align: center;
2216 }
2217 .file-name a {
2218 color: var(--text);
2219 font-weight: 500;
2220 transition: color var(--t-fast) var(--ease);
2221 }
2222 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2223
2ce1d0bClaude2224 /* ============================================================ */
2225 /* Blob view */
2226 /* ============================================================ */
fc1817aClaude2227 .blob-view {
2228 border: 1px solid var(--border);
2ce1d0bClaude2229 border-radius: var(--r-md);
fc1817aClaude2230 overflow: hidden;
2ce1d0bClaude2231 background: var(--bg-elevated);
fc1817aClaude2232 }
2233 .blob-header {
2234 background: var(--bg-secondary);
2ce1d0bClaude2235 padding: 10px 16px;
fc1817aClaude2236 border-bottom: 1px solid var(--border);
2ce1d0bClaude2237 font-size: var(--t-sm);
fc1817aClaude2238 color: var(--text-muted);
06d5ffeClaude2239 display: flex;
2240 justify-content: space-between;
2241 align-items: center;
fc1817aClaude2242 }
2243 .blob-code {
2244 overflow-x: auto;
2245 font-family: var(--font-mono);
2ce1d0bClaude2246 font-size: var(--t-sm);
2247 line-height: 1.65;
fc1817aClaude2248 }
2249 .blob-code table { width: 100%; border-collapse: collapse; }
2250 .blob-code .line-num {
2251 width: 1%;
2ce1d0bClaude2252 min-width: 56px;
2253 padding: 0 14px;
fc1817aClaude2254 text-align: right;
2ce1d0bClaude2255 color: var(--text-faint);
fc1817aClaude2256 user-select: none;
2257 white-space: nowrap;
2258 border-right: 1px solid var(--border);
2259 }
2ce1d0bClaude2260 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2261 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2262
2ce1d0bClaude2263 /* ============================================================ */
2264 /* Commits + diffs */
2265 /* ============================================================ */
2266 .commit-list {
2267 border: 1px solid var(--border);
2268 border-radius: var(--r-md);
2269 overflow: hidden;
2270 background: var(--bg-elevated);
2271 }
fc1817aClaude2272 .commit-item {
2273 display: flex;
2274 justify-content: space-between;
2275 align-items: center;
debcf27Claude2276 padding: 14px 18px;
2277 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2278 transition: background var(--t-fast) var(--ease);
fc1817aClaude2279 }
2280 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2281 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2282 .commit-message {
2283 font-size: var(--t-sm);
2284 font-weight: 500;
2285 line-height: 1.45;
2286 color: var(--text-strong);
2287 letter-spacing: -0.005em;
2288 }
2289 .commit-meta {
2290 font-family: var(--font-mono);
2291 font-size: 11px;
2292 color: var(--text-muted);
2293 margin-top: 5px;
2294 letter-spacing: 0.01em;
2295 }
fc1817aClaude2296 .commit-sha {
2297 font-family: var(--font-mono);
debcf27Claude2298 font-feature-settings: var(--mono-feat);
2299 font-size: 11px;
2300 padding: 4px 9px;
fc1817aClaude2301 background: var(--bg-tertiary);
2302 border: 1px solid var(--border);
2ce1d0bClaude2303 border-radius: var(--r-sm);
debcf27Claude2304 color: var(--accent);
2305 font-weight: 600;
2306 letter-spacing: 0.02em;
2ce1d0bClaude2307 transition: all var(--t-fast) var(--ease);
fc1817aClaude2308 }
debcf27Claude2309 .commit-sha:hover {
2310 border-color: rgba(140,109,255,0.40);
2311 background: var(--accent-gradient-faint);
2312 color: var(--accent-hover);
2313 text-decoration: none;
fc1817aClaude2314 }
2315
2316 .diff-view { margin-top: 16px; }
2317 .diff-file {
2318 border: 1px solid var(--border);
2ce1d0bClaude2319 border-radius: var(--r-md);
fc1817aClaude2320 margin-bottom: 16px;
2321 overflow: hidden;
2ce1d0bClaude2322 background: var(--bg-elevated);
fc1817aClaude2323 }
2324 .diff-file-header {
2325 background: var(--bg-secondary);
2ce1d0bClaude2326 padding: 10px 16px;
fc1817aClaude2327 border-bottom: 1px solid var(--border);
2328 font-family: var(--font-mono);
2ce1d0bClaude2329 font-size: var(--t-sm);
2330 font-weight: 500;
fc1817aClaude2331 }
2332 .diff-content {
2333 overflow-x: auto;
2334 font-family: var(--font-mono);
2ce1d0bClaude2335 font-size: var(--t-sm);
2336 line-height: 1.65;
fc1817aClaude2337 }
958d26aClaude2338 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2339 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2340 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2341 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2342
2343 .stat-add { color: var(--green); font-weight: 600; }
2344 .stat-del { color: var(--red); font-weight: 600; }
2345
2ce1d0bClaude2346 /* ============================================================ */
2347 /* Empty state */
2348 /* ============================================================ */
fc1817aClaude2349 .empty-state {
2350 text-align: center;
958d26aClaude2351 padding: 96px 24px;
fc1817aClaude2352 color: var(--text-muted);
2ce1d0bClaude2353 border: 1px dashed var(--border);
2354 border-radius: var(--r-lg);
958d26aClaude2355 background:
2356 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2357 var(--bg-elevated);
2358 position: relative;
2359 overflow: hidden;
2360 }
2361 .empty-state::before {
2362 content: '';
2363 position: absolute;
2364 inset: 0;
2365 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2366 background-size: 24px 24px;
2367 opacity: 0.5;
2368 pointer-events: none;
2369 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2370 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2371 }
2372 :root[data-theme='light'] .empty-state::before {
2373 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2374 }
958d26aClaude2375 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2376 .empty-state h2 {
958d26aClaude2377 font-size: var(--t-xl);
2ce1d0bClaude2378 margin-bottom: 8px;
958d26aClaude2379 color: var(--text-strong);
2380 letter-spacing: -0.022em;
2ce1d0bClaude2381 }
958d26aClaude2382 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2383 .empty-state pre {
2384 text-align: left;
2385 display: inline-block;
2386 background: var(--bg-secondary);
958d26aClaude2387 padding: 18px 24px;
2388 border-radius: var(--r-md);
fc1817aClaude2389 border: 1px solid var(--border);
2390 font-family: var(--font-mono);
958d26aClaude2391 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2392 font-size: var(--t-sm);
958d26aClaude2393 margin-top: 24px;
fc1817aClaude2394 line-height: 1.8;
2ce1d0bClaude2395 color: var(--text);
958d26aClaude2396 box-shadow: var(--elev-1);
fc1817aClaude2397 }
2398
2ce1d0bClaude2399 /* ============================================================ */
2400 /* Badges */
2401 /* ============================================================ */
fc1817aClaude2402 .badge {
2ce1d0bClaude2403 display: inline-flex;
2404 align-items: center;
2405 gap: 4px;
2406 padding: 2px 9px;
2407 border-radius: var(--r-full);
2408 font-size: var(--t-xs);
fc1817aClaude2409 font-weight: 500;
2410 background: var(--bg-tertiary);
2411 border: 1px solid var(--border);
2412 color: var(--text-muted);
2ce1d0bClaude2413 line-height: 1.5;
fc1817aClaude2414 }
2415
2ce1d0bClaude2416 /* ============================================================ */
2417 /* Branch dropdown */
2418 /* ============================================================ */
fc1817aClaude2419 .branch-selector {
2420 display: inline-flex;
2421 align-items: center;
2ce1d0bClaude2422 gap: 6px;
2423 padding: 6px 12px;
2424 background: var(--bg-elevated);
fc1817aClaude2425 border: 1px solid var(--border);
2ce1d0bClaude2426 border-radius: var(--r-sm);
2427 font-size: var(--t-sm);
fc1817aClaude2428 color: var(--text);
2429 margin-bottom: 12px;
2ce1d0bClaude2430 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2431 }
2ce1d0bClaude2432 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2433
06d5ffeClaude2434 .branch-dropdown {
2435 position: relative;
2436 display: inline-block;
2437 margin-bottom: 12px;
2438 }
2439 .branch-dropdown-content {
2440 display: none;
2441 position: absolute;
2ce1d0bClaude2442 top: calc(100% + 4px);
06d5ffeClaude2443 left: 0;
2444 z-index: 10;
2ce1d0bClaude2445 min-width: 220px;
2446 background: var(--bg-elevated);
2447 border: 1px solid var(--border-strong);
2448 border-radius: var(--r-md);
2449 overflow: hidden;
2450 box-shadow: var(--elev-3);
06d5ffeClaude2451 }
2452 .branch-dropdown:hover .branch-dropdown-content,
2453 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2454 .branch-dropdown-content a {
2455 display: block;
2ce1d0bClaude2456 padding: 9px 14px;
2457 font-size: var(--t-sm);
06d5ffeClaude2458 color: var(--text);
2459 border-bottom: 1px solid var(--border);
2ce1d0bClaude2460 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2461 }
2462 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2463 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2464 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2465
2ce1d0bClaude2466 /* ============================================================ */
2467 /* Card grid */
2468 /* ============================================================ */
2469 .card-grid {
2470 display: grid;
2471 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2472 gap: 16px;
2473 }
fc1817aClaude2474 .card {
2475 border: 1px solid var(--border);
2ce1d0bClaude2476 border-radius: var(--r-md);
958d26aClaude2477 padding: 20px;
2ce1d0bClaude2478 background: var(--bg-elevated);
2479 transition:
958d26aClaude2480 border-color var(--t-base) var(--ease),
2481 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2482 box-shadow var(--t-base) var(--ease);
2483 position: relative;
2484 overflow: hidden;
958d26aClaude2485 isolation: isolate;
2486 }
2487 .card::before {
2488 content: '';
2489 position: absolute;
2490 inset: 0;
2491 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2492 opacity: 0;
2493 transition: opacity var(--t-base) var(--ease);
2494 pointer-events: none;
2495 z-index: -1;
2ce1d0bClaude2496 }
2497 .card:hover {
2498 border-color: var(--border-strong);
2499 box-shadow: var(--elev-2);
958d26aClaude2500 transform: translateY(-2px);
2ce1d0bClaude2501 }
958d26aClaude2502 .card:hover::before { opacity: 1; }
2503 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2504 .card h3 a { color: var(--text); font-weight: 600; }
2505 .card h3 a:hover { color: var(--text-link); }
2506 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2507 .card-meta {
2508 display: flex;
2509 gap: 14px;
2510 margin-top: 14px;
2511 padding-top: 14px;
2512 border-top: 1px solid var(--border);
2513 font-size: var(--t-xs);
2514 color: var(--text-muted);
2515 }
2516 .card-meta span { display: flex; align-items: center; gap: 5px; }
2517
2518 /* ============================================================ */
2519 /* Stat card / box */
2520 /* ============================================================ */
2521 .stat-card {
2522 background: var(--bg-elevated);
2523 border: 1px solid var(--border);
2524 border-radius: var(--r-md);
fc1817aClaude2525 padding: 16px;
2ce1d0bClaude2526 transition: border-color var(--t-fast) var(--ease);
2527 }
2528 .stat-card:hover { border-color: var(--border-strong); }
2529 .stat-label {
2530 font-size: var(--t-xs);
2531 color: var(--text-muted);
2532 text-transform: uppercase;
2533 letter-spacing: 0.06em;
2534 font-weight: 500;
2535 }
2536 .stat-value {
2537 font-size: var(--t-xl);
2538 font-weight: 700;
2539 margin-top: 4px;
2540 letter-spacing: -0.025em;
2541 color: var(--text);
2542 font-feature-settings: 'tnum';
fc1817aClaude2543 }
06d5ffeClaude2544
2ce1d0bClaude2545 /* ============================================================ */
2546 /* Star button */
2547 /* ============================================================ */
06d5ffeClaude2548 .star-btn {
2549 display: inline-flex;
2550 align-items: center;
2551 gap: 6px;
2ce1d0bClaude2552 padding: 5px 12px;
2553 background: var(--bg-elevated);
06d5ffeClaude2554 border: 1px solid var(--border);
2ce1d0bClaude2555 border-radius: var(--r-sm);
06d5ffeClaude2556 color: var(--text);
2ce1d0bClaude2557 font-size: var(--t-sm);
2558 font-weight: 500;
06d5ffeClaude2559 cursor: pointer;
2ce1d0bClaude2560 transition: all var(--t-fast) var(--ease);
2561 }
2562 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2563 .star-btn.starred {
2564 color: var(--yellow);
958d26aClaude2565 border-color: rgba(251,191,36,0.4);
2566 background: rgba(251,191,36,0.08);
06d5ffeClaude2567 }
2568
2ce1d0bClaude2569 /* ============================================================ */
2570 /* User profile */
2571 /* ============================================================ */
06d5ffeClaude2572 .user-profile {
2573 display: flex;
2574 gap: 32px;
2575 margin-bottom: 32px;
2ce1d0bClaude2576 padding: 24px;
2577 background: var(--bg-elevated);
2578 border: 1px solid var(--border);
2579 border-radius: var(--r-lg);
06d5ffeClaude2580 }
2581 .user-avatar {
2582 width: 96px;
2583 height: 96px;
2ce1d0bClaude2584 border-radius: var(--r-full);
2585 background: var(--accent-gradient-soft);
2586 border: 1px solid var(--border-strong);
06d5ffeClaude2587 display: flex;
2588 align-items: center;
2589 justify-content: center;
2ce1d0bClaude2590 font-size: 36px;
2591 font-weight: 600;
2592 color: var(--text);
06d5ffeClaude2593 flex-shrink: 0;
2ce1d0bClaude2594 letter-spacing: -0.02em;
06d5ffeClaude2595 }
2ce1d0bClaude2596 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2597 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2598 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2599
2ce1d0bClaude2600 /* ============================================================ */
2601 /* New repo form */
2602 /* ============================================================ */
2603 .new-repo-form { max-width: 640px; }
2604 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2605 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2606 .visibility-option {
2607 flex: 1;
2ce1d0bClaude2608 padding: 16px;
06d5ffeClaude2609 border: 1px solid var(--border);
2ce1d0bClaude2610 border-radius: var(--r-md);
2611 background: var(--bg-elevated);
06d5ffeClaude2612 cursor: pointer;
2ce1d0bClaude2613 text-align: left;
2614 transition: all var(--t-fast) var(--ease);
2615 }
2616 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2617 .visibility-option:has(input:checked) {
2618 border-color: var(--accent);
2619 background: var(--accent-gradient-faint);
2620 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2621 }
2622 .visibility-option input { display: none; }
2ce1d0bClaude2623 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2624 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2625
2ce1d0bClaude2626 /* ============================================================ */
2627 /* Issues */
2628 /* ============================================================ */
2629 .issue-tabs { display: flex; gap: 4px; }
2630 .issue-tabs a {
2631 color: var(--text-muted);
2632 font-size: var(--t-sm);
2633 font-weight: 500;
2634 padding: 6px 12px;
2635 border-radius: var(--r-sm);
2636 transition: all var(--t-fast) var(--ease);
2637 }
2638 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2639 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2640
2ce1d0bClaude2641 .issue-list {
2642 border: 1px solid var(--border);
2643 border-radius: var(--r-md);
2644 overflow: hidden;
2645 background: var(--bg-elevated);
2646 }
79136bbClaude2647 .issue-item {
2648 display: flex;
2ce1d0bClaude2649 gap: 14px;
79136bbClaude2650 align-items: flex-start;
2ce1d0bClaude2651 padding: 14px 16px;
79136bbClaude2652 border-bottom: 1px solid var(--border);
2ce1d0bClaude2653 transition: background var(--t-fast) var(--ease);
79136bbClaude2654 }
2655 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2656 .issue-item:hover { background: var(--bg-hover); }
2657 .issue-state-icon {
2658 font-size: 14px;
2659 padding-top: 2px;
2660 width: 18px;
2661 height: 18px;
2662 display: inline-flex;
2663 align-items: center;
2664 justify-content: center;
2665 border-radius: var(--r-full);
2666 flex-shrink: 0;
2667 }
79136bbClaude2668 .state-open { color: var(--green); }
958d26aClaude2669 .state-closed { color: #b69dff; }
2ce1d0bClaude2670 .issue-title {
debcf27Claude2671 font-family: var(--font-display);
2672 font-size: var(--t-md);
2ce1d0bClaude2673 font-weight: 600;
debcf27Claude2674 line-height: 1.35;
2675 letter-spacing: -0.012em;
2676 }
2677 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2678 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2679 .issue-meta {
2680 font-family: var(--font-mono);
2681 font-size: 11px;
2682 color: var(--text-muted);
2683 margin-top: 5px;
2684 letter-spacing: 0.01em;
2ce1d0bClaude2685 }
79136bbClaude2686
2687 .issue-badge {
2688 display: inline-flex;
2689 align-items: center;
2ce1d0bClaude2690 gap: 6px;
79136bbClaude2691 padding: 4px 12px;
2ce1d0bClaude2692 border-radius: var(--r-full);
2693 font-size: var(--t-sm);
79136bbClaude2694 font-weight: 500;
2ce1d0bClaude2695 line-height: 1.4;
79136bbClaude2696 }
958d26aClaude2697 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
2698 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
2699 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude2700 .state-merged { color: var(--accent); }
958d26aClaude2701 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude2702
2ce1d0bClaude2703 .issue-detail { max-width: 920px; }
79136bbClaude2704 .issue-comment-box {
2705 border: 1px solid var(--border);
2ce1d0bClaude2706 border-radius: var(--r-md);
79136bbClaude2707 margin-bottom: 16px;
2708 overflow: hidden;
2ce1d0bClaude2709 background: var(--bg-elevated);
79136bbClaude2710 }
2711 .comment-header {
2712 background: var(--bg-secondary);
2ce1d0bClaude2713 padding: 10px 16px;
79136bbClaude2714 border-bottom: 1px solid var(--border);
2ce1d0bClaude2715 font-size: var(--t-sm);
79136bbClaude2716 color: var(--text-muted);
2717 }
2718
2ce1d0bClaude2719 /* ============================================================ */
2720 /* Panel — flexible container used across many pages */
2721 /* ============================================================ */
2722 .panel {
2723 background: var(--bg-elevated);
2724 border: 1px solid var(--border);
2725 border-radius: var(--r-md);
2726 overflow: hidden;
2727 }
2728 .panel-item {
2729 display: flex;
2730 align-items: center;
2731 gap: 12px;
2732 padding: 12px 16px;
79136bbClaude2733 border-bottom: 1px solid var(--border);
2ce1d0bClaude2734 transition: background var(--t-fast) var(--ease);
2735 }
2736 .panel-item:last-child { border-bottom: none; }
2737 .panel-item:hover { background: var(--bg-hover); }
2738 .panel-empty {
2739 padding: 24px;
2740 text-align: center;
79136bbClaude2741 color: var(--text-muted);
2ce1d0bClaude2742 font-size: var(--t-sm);
79136bbClaude2743 }
2744
2ce1d0bClaude2745 /* ============================================================ */
2746 /* Search */
2747 /* ============================================================ */
79136bbClaude2748 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude2749
2ce1d0bClaude2750 /* ============================================================ */
2751 /* Timeline */
2752 /* ============================================================ */
2753 .timeline { position: relative; padding-left: 28px; }
16b325cClaude2754 .timeline::before {
2755 content: '';
2756 position: absolute;
2757 left: 4px;
2758 top: 8px;
2759 bottom: 8px;
2760 width: 2px;
2ce1d0bClaude2761 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude2762 }
2ce1d0bClaude2763 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude2764 .timeline-dot {
2765 position: absolute;
2ce1d0bClaude2766 left: -28px;
2767 top: 8px;
2768 width: 12px;
2769 height: 12px;
2770 border-radius: var(--r-full);
2771 background: var(--accent-gradient);
16b325cClaude2772 border: 2px solid var(--bg);
2ce1d0bClaude2773 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude2774 }
2775 .timeline-content {
2ce1d0bClaude2776 background: var(--bg-elevated);
16b325cClaude2777 border: 1px solid var(--border);
2ce1d0bClaude2778 border-radius: var(--r-md);
2779 padding: 14px 16px;
16b325cClaude2780 }
f1ab587Claude2781
2ce1d0bClaude2782 /* ============================================================ */
2783 /* Toggle switch */
2784 /* ============================================================ */
f1ab587Claude2785 .toggle-switch {
2786 position: relative;
2787 display: inline-block;
2ce1d0bClaude2788 width: 40px;
2789 height: 22px;
f1ab587Claude2790 flex-shrink: 0;
2791 margin-left: 16px;
2792 }
2793 .toggle-switch input { opacity: 0; width: 0; height: 0; }
2794 .toggle-slider {
2795 position: absolute;
2796 cursor: pointer;
2797 top: 0; left: 0; right: 0; bottom: 0;
2798 background: var(--bg-tertiary);
2799 border: 1px solid var(--border);
2ce1d0bClaude2800 border-radius: var(--r-full);
2801 transition: all var(--t-base) var(--ease);
f1ab587Claude2802 }
2803 .toggle-slider::before {
2804 content: '';
2805 position: absolute;
2ce1d0bClaude2806 height: 16px;
2807 width: 16px;
f1ab587Claude2808 left: 2px;
2809 bottom: 2px;
2810 background: var(--text-muted);
2ce1d0bClaude2811 border-radius: var(--r-full);
2812 transition: all var(--t-base) var(--ease);
f1ab587Claude2813 }
2814 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude2815 background: var(--accent-gradient);
2816 border-color: transparent;
958d26aClaude2817 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude2818 }
2819 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude2820 transform: translateX(18px);
f1ab587Claude2821 background: #fff;
2822 }
ef8d378Claude2823
2824 /* ============================================================
2825 * 2026 polish layer (purely additive — no layout changes).
2826 * Improves typography rendering, focus states, hover affordances,
2827 * and adds the gradient brand cue to primary buttons. Anything
2828 * that could alter dimensions stays in the rules above.
2829 * ============================================================ */
2830 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
2831 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
2832 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
2833
2834 h1, h2, h3, h4 { letter-spacing: -0.018em; }
2835 h1 { letter-spacing: -0.025em; }
2836
2837 /* Smoother colour transitions everywhere links live */
2838 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
2839
2840 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
2841 .btn {
2842 transition:
2843 background 120ms cubic-bezier(0.16,1,0.3,1),
2844 border-color 120ms cubic-bezier(0.16,1,0.3,1),
2845 transform 120ms cubic-bezier(0.16,1,0.3,1),
2846 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
2847 }
2848 .btn:active { transform: translateY(0.5px); }
2849 .btn:focus-visible {
2850 outline: none;
2851 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
2852 }
2853 .btn-primary {
2854 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2855 border-color: transparent;
2856 box-shadow:
2857 inset 0 1px 0 rgba(255,255,255,0.15),
2858 0 1px 2px rgba(168,85,247,0.25);
2859 }
2860 .btn-primary:hover {
2861 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
2862 filter: none;
2863 box-shadow:
2864 inset 0 1px 0 rgba(255,255,255,0.20),
2865 0 4px 12px rgba(168,85,247,0.30);
2866 }
2867
2868 /* Inputs: cleaner focus ring + hover */
2869 .form-group input:hover,
2870 .form-group textarea:hover,
2871 .form-group select:hover {
2872 border-color: rgba(255,255,255,0.14);
2873 }
2874 .form-group input:focus,
2875 .form-group textarea:focus,
2876 .form-group select:focus {
2877 border-color: rgba(168,85,247,0.55);
2878 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
2879 }
2880 :root[data-theme='light'] .form-group input:hover,
2881 :root[data-theme='light'] .form-group textarea:hover,
2882 :root[data-theme='light'] .form-group select:hover {
2883 border-color: rgba(0,0,0,0.18);
2884 }
2885
2886 /* Cards: subtle hover lift */
2887 .card {
2888 transition:
2889 border-color 160ms cubic-bezier(0.16,1,0.3,1),
2890 transform 160ms cubic-bezier(0.16,1,0.3,1),
2891 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
2892 }
2893 .card:hover {
2894 border-color: rgba(255,255,255,0.18);
2895 transform: translateY(-1px);
2896 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
2897 }
2898 :root[data-theme='light'] .card:hover {
2899 border-color: rgba(0,0,0,0.18);
2900 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
2901 }
2902
2903 /* Issue / commit / panel rows: smoother hover */
2904 .issue-item, .commit-item {
2905 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
2906 }
2907 .repo-nav a {
2908 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
2909 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
2910 }
2911 .nav-link {
2912 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
2913 }
2914
2915 /* Auth card: subtle elevation so register/login feel premium */
2916 .auth-container {
2917 background: var(--bg-secondary);
2918 border: 1px solid var(--border);
2919 border-radius: var(--r-lg, 12px);
2920 padding: 32px;
2921 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
2922 }
2923 :root[data-theme='light'] .auth-container {
2924 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
2925 }
2926 .auth-container h2 { letter-spacing: -0.025em; }
2927
2928 /* Empty state: dashed border, generous padding */
2929 .empty-state {
2930 border: 1px dashed var(--border);
2931 border-radius: var(--r-lg, 12px);
2932 background: var(--bg);
2933 }
2934
2935 /* Badges + commit-sha: smoother transition */
2936 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
2937
2938 /* Gradient text utility — matches landing's accent treatment */
2939 .gradient-text {
2940 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2941 -webkit-background-clip: text;
2942 background-clip: text;
2943 -webkit-text-fill-color: transparent;
2944 }
2945
2946 /* Custom scrollbars (subtle, themed) */
2947 ::-webkit-scrollbar { width: 10px; height: 10px; }
2948 ::-webkit-scrollbar-track { background: transparent; }
2949 ::-webkit-scrollbar-thumb {
2950 background: rgba(255,255,255,0.06);
2951 border: 2px solid var(--bg);
2952 border-radius: 9999px;
2953 }
2954 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
2955 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
2956 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
2957
2958 /* Honour reduced-motion preference */
2959 @media (prefers-reduced-motion: reduce) {
2960 *, *::before, *::after {
2961 animation-duration: 0.01ms !important;
2962 animation-iteration-count: 1 !important;
2963 transition-duration: 0.01ms !important;
2964 }
2965 }
c63b860Claude2966
2967 /* Block O3 — visual coherence additive rules. */
2968 .card.card-p-none { padding: 0; }
2969 .card.card-p-sm { padding: var(--space-3); }
2970 .card.card-p-md { padding: var(--space-4); }
2971 .card.card-p-lg { padding: var(--space-6); }
2972 .card.card-elevated { box-shadow: var(--elev-2); }
2973 .card.card-gradient {
2974 background:
2975 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
2976 var(--bg-elevated);
2977 }
2978 .card.card-gradient::before { opacity: 1; }
2979 .notice {
2980 padding: var(--space-3) var(--space-4);
2981 border-radius: var(--radius-md);
2982 border: 1px solid var(--border);
2983 background: var(--bg-elevated);
2984 color: var(--text);
2985 font-size: var(--font-size-sm);
2986 margin-bottom: var(--space-6);
2987 line-height: var(--leading-normal);
2988 }
2989 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
2990 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
2991 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
2992 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
2993 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
2994 .email-preview {
2995 padding: var(--space-5);
2996 background: #fff;
2997 color: #111;
2998 border-radius: var(--radius-md);
2999 }
3000 .code-block {
3001 margin: var(--space-2) 0 0;
3002 padding: var(--space-3);
3003 background: var(--bg-tertiary);
3004 border: 1px solid var(--border-subtle);
3005 border-radius: var(--radius-sm);
3006 font-family: var(--font-mono);
3007 font-size: var(--font-size-xs);
3008 line-height: var(--leading-normal);
3009 overflow-x: auto;
3010 }
3011 .status-pill-operational {
3012 display: inline-flex;
3013 align-items: center;
3014 padding: var(--space-1) var(--space-3);
3015 border-radius: var(--radius-full);
3016 font-size: var(--font-size-xs);
3017 font-weight: 600;
3018 background: rgba(52,211,153,0.15);
3019 color: var(--green);
3020 }
3021 .api-tag {
3022 display: inline-flex;
3023 align-items: center;
3024 font-size: var(--font-size-xs);
3025 padding: 2px var(--space-2);
3026 border-radius: var(--radius-sm);
3027 font-family: var(--font-mono);
3028 }
3029 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3030 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3031 .stat-number {
3032 font-size: var(--font-size-xl);
3033 font-weight: 700;
3034 color: var(--text-strong);
3035 line-height: var(--leading-tight);
3036 }
3037 .stat-number-accent { color: var(--accent); }
3038 .stat-number-blue { color: var(--blue); }
3039 .stat-number-purple { color: var(--text-link); }
3040 footer .footer-tag-sub {
3041 margin-top: var(--space-2);
3042 font-size: var(--font-size-xs);
3043 color: var(--text-faint);
3044 line-height: var(--leading-normal);
3045 }
3046 footer .footer-version-pill {
3047 display: inline-flex;
3048 align-items: center;
3049 gap: var(--space-2);
3050 padding: var(--space-1) var(--space-3);
3051 border-radius: var(--radius-full);
3052 border: 1px solid var(--border);
3053 background: var(--bg-elevated);
3054 color: var(--text-faint);
3055 font-family: var(--font-mono);
3056 font-size: var(--font-size-xs);
3057 cursor: help;
3058 }
3059 footer .footer-banner {
3060 max-width: 1240px;
3061 margin: var(--space-6) auto 0;
3062 padding: var(--space-3) var(--space-4);
3063 border-radius: var(--radius-md);
3064 border: 1px solid var(--border);
3065 background: var(--bg-elevated);
3066 color: var(--text);
3067 font-family: var(--font-mono);
3068 font-size: var(--font-size-xs);
3069 letter-spacing: 0.04em;
3070 text-transform: uppercase;
3071 text-align: center;
3072 }
3073 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3074 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3075 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3076
cf9178bTest User3077 /* ============================================================ */
3078 /* Global toast notifications. */
3079 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3080 /* ============================================================ */
3081 .gx-toast {
3082 pointer-events: auto;
3083 display: inline-flex;
3084 align-items: flex-start;
3085 gap: 10px;
3086 min-width: 280px;
3087 max-width: min(440px, calc(100vw - 32px));
3088 padding: 12px 14px 12px 12px;
3089 background: var(--bg-elevated);
3090 border: 1px solid var(--border);
3091 border-radius: 10px;
3092 box-shadow:
3093 0 12px 36px -10px rgba(15,16,28,0.18),
3094 0 2px 6px rgba(15,16,28,0.04),
3095 0 0 0 1px rgba(15,16,28,0.02);
3096 color: var(--text);
3097 font-size: 13.5px;
3098 line-height: 1.45;
3099 opacity: 0;
3100 transform: translateX(16px);
3101 transition:
3102 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3103 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3104 }
3105 .gx-toast--in { opacity: 1; transform: translateX(0); }
3106 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3107 .gx-toast__icon {
3108 flex-shrink: 0;
3109 width: 20px; height: 20px;
3110 border-radius: 50%;
3111 display: inline-flex;
3112 align-items: center;
3113 justify-content: center;
3114 font-size: 12px;
3115 font-weight: 700;
3116 line-height: 1;
3117 margin-top: 1px;
3118 }
3119 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3120 .gx-toast__close {
3121 flex-shrink: 0;
3122 width: 22px; height: 22px;
3123 border: 0;
3124 background: transparent;
3125 color: var(--text-muted);
3126 font-size: 18px;
3127 line-height: 1;
3128 cursor: pointer;
3129 border-radius: 4px;
3130 padding: 0;
3131 margin: -2px -2px 0 0;
3132 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3133 }
3134 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3135 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3136 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3137 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3138 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3139 @media (prefers-reduced-motion: reduce) {
3140 .gx-toast { transition: opacity 60ms linear; transform: none; }
3141 .gx-toast--in, .gx-toast--out { transform: none; }
3142 }
3143
dc26881CC LABS App3144 /* ============================================================ */
3145 /* Block U4 — cross-document view transitions. */
3146 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3147 /* every same-origin navigation. Older browsers ignore these */
3148 /* rules entirely — no JS shim, no breakage. */
3149 /* prefers-reduced-motion disables the animation honourably. */
3150 /* ============================================================ */
3151 @view-transition {
3152 navigation: auto;
3153 }
3154 ::view-transition-old(root),
3155 ::view-transition-new(root) {
3156 animation-duration: 200ms;
3157 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3158 }
3159 ::view-transition-old(root) {
3160 animation-name: vt-fade-out;
3161 }
3162 ::view-transition-new(root) {
3163 animation-name: vt-fade-in;
3164 }
3165 @keyframes vt-fade-out {
3166 to { opacity: 0; }
3167 }
3168 @keyframes vt-fade-in {
3169 from { opacity: 0; }
3170 }
3171 @media (prefers-reduced-motion: reduce) {
3172 ::view-transition-old(root),
3173 ::view-transition-new(root) {
3174 animation-duration: 0s;
3175 }
3176 }
3177 /* The transition system picks up its root subject from this rule. */
3178 body {
3179 view-transition-name: root;
3180 }
fc1817aClaude3181`;