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

layout.tsx

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

layout.tsxBlame3081 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" />
61 <link rel="manifest" href="/manifest.webmanifest" />
62 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude63 <title>{renderedTitle}</title>
64 {description && <meta name="description" content={description} />}
65 {(ogTitle || fullTitle || title) && (
66 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
67 )}
68 {(ogDescription || description) && (
69 <meta
70 property="og:description"
71 content={ogDescription ?? description ?? ""}
72 />
73 )}
74 {ogType && <meta property="og:type" content={ogType} />}
75 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude76 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
77 <style dangerouslySetInnerHTML={{ __html: css }} />
78 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude79 </head>
80 <body>
4a52a98Claude81 <div class="prelaunch-banner" role="status" aria-live="polite">
82 Pre-launch &mdash; Gluecron is in final validation. Public signups
83 and git hosting for non-owner users open after launch review.
84 </div>
cd4f63bTest User85 {/* Block Q3 — Playground banner. Renders only when the active
86 user is a playground account with a future expiry; the small
87 inline script counts down once per minute. Strip is dismissible
88 per-page-load (re-appears on next nav) — gentle, not noisy. */}
89 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
90 <div
91 class="playground-banner"
92 role="status"
93 aria-live="polite"
94 data-playground-expires={
95 ((user as any).playgroundExpiresAt instanceof Date
96 ? (user as any).playgroundExpiresAt.toISOString()
97 : String((user as any).playgroundExpiresAt))
98 }
99 >
100 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
101 <span class="playground-banner-text">
102 Playground account &mdash;{" "}
103 <span class="playground-banner-countdown">expires soon</span>.{" "}
104 <a href="/play/claim" class="playground-banner-cta">
105 Save your work &rarr;
106 </a>
107 </span>
108 <button
109 type="button"
110 class="playground-banner-dismiss"
111 aria-label="Dismiss"
112 data-playground-dismiss="1"
113 >
114 {"×"}
115 </button>
116 <script
117 dangerouslySetInnerHTML={{
118 __html: /* js */ `
119 (function () {
120 var el = document.currentScript && document.currentScript.parentElement;
121 if (!el) return;
122 var iso = el.getAttribute('data-playground-expires');
123 if (!iso) return;
124 var target = Date.parse(iso);
125 if (isNaN(target)) return;
126 var out = el.querySelector('.playground-banner-countdown');
127 function render() {
128 var ms = target - Date.now();
129 if (!out) return;
130 if (ms <= 0) { out.textContent = 'expired'; return; }
131 var mins = Math.floor(ms / 60000);
132 var hrs = Math.floor(mins / 60);
133 if (hrs > 1) out.textContent = hrs + ' hours left';
134 else if (hrs === 1) out.textContent = '1 hour left';
135 else if (mins > 1) out.textContent = mins + ' minutes left';
136 else out.textContent = 'less than a minute left';
137 }
138 render();
139 setInterval(render, 60000);
140 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
141 if (dismiss) {
142 dismiss.addEventListener('click', function () {
143 el.style.display = 'none';
144 });
145 }
146 })();
147 `,
148 }}
149 />
150 </div>
151 )}
fc1817aClaude152 <header>
153 <nav>
154 <a href="/" class="logo">
155 gluecron
156 </a>
3ef4c9dClaude157 <div class="nav-search">
001af43Claude158 <form method="get" action="/search">
3ef4c9dClaude159 <input
160 type="search"
161 name="q"
162 placeholder="Search (press /)"
163 aria-label="Search"
164 />
165 </form>
166 </div>
06d5ffeClaude167 <div class="nav-right">
f764c07Claude168 {/* Block N3 — site-admin platform-deploy status pill. Hidden
169 by default; revealed client-side once /admin/deploys/latest.json
170 responds 200 (non-admins get 401/403 and the pill stays
171 hidden). Subscribes to the `platform:deploys` SSE topic
172 for live updates. See `deployPillScript` below. */}
173 {user && (
174 <a
175 id="deploy-pill"
176 href="/admin/deploys"
177 class="nav-deploy-pill"
178 style="display:none"
179 aria-label="Platform deploy status"
180 title="Platform deploy status"
181 >
182 <span class="deploy-pill-dot" />
183 <span class="deploy-pill-text">Deploys</span>
184 </a>
185 )}
6fc53bdClaude186 <a
187 href="/theme/toggle"
188 class="nav-link nav-theme"
189 title="Toggle theme"
190 aria-label="Toggle theme"
191 >
192 <span class="theme-icon-dark">{"\u263E"}</span>
193 <span class="theme-icon-light">{"\u2600"}</span>
194 </a>
c81ab7aClaude195 <a href="/explore" class="nav-link">
196 Explore
197 </a>
06d5ffeClaude198 {user ? (
199 <>
f1ab587Claude200 <a href="/dashboard" class="nav-link" style="font-weight: 600">
201 Dashboard
202 </a>
bdbd0deClaude203 <a href="/import" class="nav-link">
204 Import
205 </a>
06d5ffeClaude206 <a href="/new" class="btn btn-sm btn-primary">
207 + New
208 </a>
209 <a href={`/${user.username}`} class="nav-user">
210 {user.displayName || user.username}
211 </a>
212 <a href="/settings" class="nav-link">
213 Settings
214 </a>
215 <a href="/logout" class="nav-link">
216 Sign out
217 </a>
218 </>
219 ) : (
220 <>
221 <a href="/login" class="nav-link">
222 Sign in
223 </a>
224 <a href="/register" class="btn btn-sm btn-primary">
225 Register
226 </a>
227 </>
228 )}
229 </div>
fc1817aClaude230 </nav>
231 </header>
45e31d0Claude232 <main id="main-content">{children}</main>
cf9178bTest User233 {/* Global toast host — populated by the toastScript below from
234 ?success= / ?error= / ?toast= query params. Replaces the
235 per-page banner pattern with one polished slide-in. */}
236 <div
237 id="toast-host"
238 aria-live="polite"
239 aria-atomic="true"
240 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"
241 />
fc1817aClaude242 <footer>
958d26aClaude243 <div class="footer-inner">
244 <div class="footer-brand">
245 <a href="/" class="logo">gluecron</a>
246 <p class="footer-tag">
247 AI-native code intelligence. Self-hosted git, automated CI,
248 push-time gates. Software that ships itself.
249 </p>
250 </div>
251 <div class="footer-links">
252 <div class="footer-col">
253 <div class="footer-col-title">Product</div>
b0148e9Claude254 <a href="/features">Features</a>
255 <a href="/pricing">Pricing</a>
958d26aClaude256 <a href="/explore">Explore</a>
257 <a href="/marketplace">Marketplace</a>
258 </div>
259 <div class="footer-col">
260 <div class="footer-col-title">Platform</div>
b0148e9Claude261 <a href="/help">Quickstart</a>
958d26aClaude262 <a href="/status">Status</a>
263 <a href="/api/graphql">GraphQL</a>
264 <a href="/mcp">MCP server</a>
265 </div>
266 <div class="footer-col">
b0148e9Claude267 <div class="footer-col-title">Company</div>
268 <a href="/about">About</a>
958d26aClaude269 <a href="/terms">Terms</a>
270 <a href="/privacy">Privacy</a>
271 <a href="/acceptable-use">Acceptable use</a>
272 </div>
273 </div>
274 </div>
275 <div class="footer-bottom">
276 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude277 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
278 <span class="footer-build-dot" aria-hidden="true" />
279 {build.sha} · {build.branch}
280 </span>
36b4cbdClaude281 </div>
c63b860Claude282 {siteBannerText ? (
283 <div
284 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
285 role="status"
286 aria-live="polite"
287 >
288 {siteBannerText}
289 </div>
290 ) : null}
fc1817aClaude291 </footer>
05cdb85Claude292 {/* Live update poller — checks /api/version every 15s, prompts
293 reload when the running sha changes. Pure progressive-
294 enhancement; degrades to nothing if JS is off. */}
295 <div
296 id="version-banner"
297 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"
298 >
299 <span style="display:inline-flex;align-items:center;gap:8px">
300 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
301 <span>New version available</span>
302 </span>
303 <button
304 type="button"
305 id="version-banner-reload"
306 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"
307 >
308 Reload
309 </button>
310 </div>
fa880f2Claude311 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude312 {/* Block N3 — site-admin deploy status pill (script-only). The pill
313 container is rendered above for authed users; this script bootstraps
314 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
315 and the pill stays display:none — zero leak. */}
316 {user && (
317 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
318 )}
699e5c7Claude319 {/* Block I4 — Command palette shell (hidden by default) */}
320 <div
321 id="cmdk-backdrop"
322 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
323 />
324 <div
325 id="cmdk-panel"
326 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"
327 >
328 <input
329 id="cmdk-input"
330 type="text"
331 placeholder="Type a command..."
332 aria-label="Command palette"
dc26881CC LABS App333 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"
699e5c7Claude334 />
335 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
336 </div>
fa880f2Claude337 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
338 <script dangerouslySetInnerHTML={{ __html: pwaRegisterScript }} />
cf9178bTest User339 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
534f04aClaude340 {/* Block M2 — smart install banner + push-SW bootstrap. Authed
341 users only; the banner respects a 3+ visits + 14-day cooldown
342 heuristic. The push SW is registered on the same gate so we
343 don't ask anonymous visitors to opt into anything. */}
344 {user && (
345 <script
346 dangerouslySetInnerHTML={{ __html: pwaInstallBannerScript }}
347 />
348 )}
fa880f2Claude349 <script dangerouslySetInnerHTML={{ __html: navScript }} />
fc1817aClaude350 </body>
351 </html>
352 );
353};
354
05cdb85Claude355// Live version poller. Checks /api/version every 15s; if the sha differs
356// from the one we booted with, reveal the floating 'New version' pill so
357// the user can reload onto the new code without manually refreshing.
358const versionPollerScript = `
359 (function(){
360 var loadedSha = null;
361 var banner, btn;
362 function poll(){
363 fetch('/api/version', { cache: 'no-store' })
364 .then(function(r){ return r.ok ? r.json() : null; })
365 .then(function(j){
366 if (!j || !j.sha) return;
367 if (loadedSha === null) { loadedSha = j.sha; return; }
368 if (j.sha !== loadedSha && banner) {
369 banner.style.display = 'inline-flex';
370 }
371 })
372 .catch(function(){});
373 }
374 function init(){
375 banner = document.getElementById('version-banner');
376 btn = document.getElementById('version-banner-reload');
377 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
378 poll();
379 setInterval(poll, 15000);
380 }
381 if (document.readyState === 'loading') {
382 document.addEventListener('DOMContentLoaded', init);
383 } else {
384 init();
385 }
386 })();
387`;
388
f764c07Claude389// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
390// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
391// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
392// display:none — there's no leakage of admin-only data to other users.
393//
394// Pill states (CSS classes on the container drive colour):
395// .deploy-pill-success 🟢 "Deployed 12s ago"
396// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
397// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
398// .deploy-pill-empty ⚪ "No deploys yet"
399//
400// Relative-time auto-refreshes every 15s without re-fetching.
401export const deployPillScript = `
402 (function(){
403 var pill, dot, text;
404 var state = { latest: null, asOf: null };
405
406 function classifyAge(ms){
407 if (ms < 0) return 'just now';
408 var s = Math.floor(ms / 1000);
409 if (s < 5) return 'just now';
410 if (s < 60) return s + 's ago';
411 var m = Math.floor(s / 60);
412 if (m < 60) return m + 'm ago';
413 var h = Math.floor(m / 60);
414 if (h < 24) return h + 'h ago';
415 var d = Math.floor(h / 24);
416 return d + 'd ago';
417 }
418 function elapsed(ms){
419 if (ms < 0) ms = 0;
420 var s = Math.floor(ms / 1000);
421 if (s < 60) return s + 's';
422 var m = Math.floor(s / 60);
423 var rem = s - m * 60;
424 return m + 'm ' + rem + 's';
425 }
426
427 function render(){
428 if (!pill || !text || !dot) return;
429 var d = state.latest;
81201ccTest User430 // When there's no deploy event yet, keep the pill HIDDEN. Showing
431 // "No deploys yet" was visible noise on every admin page load and
432 // flashed during reconnect cycles — admins don't need a placeholder.
433 // The pill reveals itself the first time a real deploy fires.
f764c07Claude434 if (!d) {
81201ccTest User435 pill.style.display = 'none';
f764c07Claude436 return;
437 }
438 pill.style.display = 'inline-flex';
439 var now = Date.now();
440 if (d.status === 'in_progress') {
441 pill.className = 'nav-deploy-pill deploy-pill-progress';
442 var started = Date.parse(d.started_at) || now;
443 text.textContent = 'Deploying… ' + elapsed(now - started);
444 } else if (d.status === 'succeeded') {
445 pill.className = 'nav-deploy-pill deploy-pill-success';
446 var ref = Date.parse(d.finished_at || d.started_at) || now;
447 text.textContent = 'Deployed ' + classifyAge(now - ref);
448 } else if (d.status === 'failed') {
449 pill.className = 'nav-deploy-pill deploy-pill-failed';
450 var refF = Date.parse(d.finished_at || d.started_at) || now;
451 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
452 } else {
453 pill.className = 'nav-deploy-pill';
454 text.textContent = d.status;
455 }
456 }
457
458 function fetchLatest(){
459 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
460 .then(function(r){ if (!r.ok) return null; return r.json(); })
461 .then(function(j){
462 if (!j || j.ok !== true) return;
463 state.latest = j.latest;
464 state.asOf = j.asOf;
465 render();
466 subscribe();
467 })
468 .catch(function(){});
469 }
470
471 var subscribed = false;
472 function subscribe(){
473 if (subscribed) return;
474 if (typeof EventSource === 'undefined') return;
475 subscribed = true;
476 var es;
bf19c50Test User477 // Exponential backoff with cap. Previously a tight 1500ms reconnect
478 // produced visible looping in the nav whenever the proxy timed out
479 // or the connection blipped — the bottom-of-page deploy pill
480 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
481 // successful message receipt.
482 var delay = 2000;
483 var DELAY_MAX = 60000;
484 function bump(){
485 delay = Math.min(delay * 2, DELAY_MAX);
486 }
487 function resetDelay(){
488 delay = 2000;
489 }
f764c07Claude490 function connect(){
491 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User492 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude493 es.onmessage = function(m){
bf19c50Test User494 resetDelay();
f764c07Claude495 try {
496 var d = JSON.parse(m.data);
497 if (d && d.run_id) {
498 if (!state.latest || state.latest.run_id === d.run_id ||
499 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
500 state.latest = d;
501 render();
502 }
503 }
504 } catch(e){}
505 };
506 es.onerror = function(){
507 try { es.close(); } catch(e){}
bf19c50Test User508 bump();
f764c07Claude509 setTimeout(connect, delay);
510 };
511 }
512 connect();
513 }
514
515 function init(){
516 pill = document.getElementById('deploy-pill');
517 if (!pill) return;
518 dot = pill.querySelector('.deploy-pill-dot');
519 text = pill.querySelector('.deploy-pill-text');
520 fetchLatest();
521 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
522 // without a fresh fetch.
523 setInterval(render, 15000);
524 }
525 if (document.readyState === 'loading') {
526 document.addEventListener('DOMContentLoaded', init);
527 } else {
528 init();
529 }
530 })();
531`;
532
6fc53bdClaude533// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User534// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
535// is honoured for users who explicitly opted in.
6fc53bdClaude536const themeInitScript = `
537 (function(){
538 try {
539 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User540 var t = m ? decodeURIComponent(m[1]) : 'light';
541 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude542 document.documentElement.setAttribute('data-theme', t);
543 } catch(_){}
544 })();
545`;
546
eae38d1Claude547// Block G1 — register service worker for offline / install support.
548// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App549//
cf9178bTest User550// Global toast notifications — reads ?success=, ?error=, ?toast= from the
551// URL on page load and surfaces a polished slide-in toast instead of the
552// per-page banner divs that crowded the layout. Toasts auto-dismiss after
553// 4.5s; query params are scrubbed from the URL via history.replaceState
554// so a subsequent Refresh doesn't re-fire the same toast.
555//
556// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
557// must be URI-encoded (callers already do this via encodeURIComponent
558// in c.redirect()).
559const toastScript = `
560 (function(){
561 function showToast(kind, message){
562 if (!message) return;
563 var host = document.getElementById('toast-host');
564 if (!host) return;
565 var el = document.createElement('div');
566 el.className = 'gx-toast gx-toast--' + kind;
567 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
568 var icon = document.createElement('span');
569 icon.className = 'gx-toast__icon';
570 icon.textContent = kind === 'success' ? '\\u2713'
571 : kind === 'error' ? '\\u00D7'
572 : kind === 'warn' ? '!'
573 : 'i';
574 el.appendChild(icon);
575 var text = document.createElement('span');
576 text.className = 'gx-toast__text';
577 text.textContent = message;
578 el.appendChild(text);
579 var close = document.createElement('button');
580 close.type = 'button';
581 close.className = 'gx-toast__close';
582 close.setAttribute('aria-label', 'Dismiss notification');
583 close.textContent = '\\u00D7';
584 close.addEventListener('click', function(){ dismiss(); });
585 el.appendChild(close);
586 host.appendChild(el);
587 // Force a reflow then add the visible class so the slide-in transitions.
588 void el.offsetWidth;
589 el.classList.add('gx-toast--in');
590 var timer = setTimeout(dismiss, 4500);
591 function dismiss(){
592 clearTimeout(timer);
593 el.classList.remove('gx-toast--in');
594 el.classList.add('gx-toast--out');
595 setTimeout(function(){
596 if (el.parentNode) el.parentNode.removeChild(el);
597 }, 220);
598 }
599 }
600 try {
601 var url = new URL(window.location.href);
602 var hits = 0;
603 var s = url.searchParams.get('success');
604 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
605 var e = url.searchParams.get('error');
606 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
607 var t = url.searchParams.get('toast');
608 if (t) {
609 var ix = t.indexOf(':');
610 var kind = ix > 0 ? t.slice(0, ix) : 'info';
611 var msg = ix > 0 ? t.slice(ix + 1) : t;
612 showToast(kind, msg);
613 url.searchParams.delete('toast');
614 hits++;
615 }
616 if (hits > 0 && window.history && window.history.replaceState) {
617 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
618 }
619 } catch(_) {}
620 })();
621`;
622
6345c3eTest User623// Block S2 extension — when an UPDATED SW activates we force a single
b1be050CC LABS App624// reload so the user picks up the fresh HTML immediately instead of
6345c3eTest User625// being stuck on the previous deploy's cached page.
626//
627// Critical: snapshot \`navigator.serviceWorker.controller\` BEFORE
628// registration. The SW's activate handler calls clients.claim() which
629// sets the controller during first install — so checking the controller
630// at statechange-time was always truthy and produced an infinite reload
631// loop on every first visit (incognito tab, fresh browser, etc).
632//
633// New guard: only reload if there was a previously-controlling SW at
634// page load. First-install path stays a single page render.
eae38d1Claude635const pwaRegisterScript = `
636 if ('serviceWorker' in navigator) {
6345c3eTest User637 var hadControllerAtLoad = !!navigator.serviceWorker.controller;
eae38d1Claude638 window.addEventListener('load', function(){
b1be050CC LABS App639 navigator.serviceWorker.register('/sw.js').then(function(reg){
640 var reloaded = false;
641 reg.addEventListener('updatefound', function(){
642 var newSW = reg.installing;
643 if (!newSW) return;
644 newSW.addEventListener('statechange', function(){
6345c3eTest User645 if (
646 newSW.state === 'activated' &&
647 hadControllerAtLoad &&
648 !reloaded
649 ) {
b1be050CC LABS App650 reloaded = true;
651 window.location.reload();
652 }
653 });
654 });
655 }).catch(function(){});
eae38d1Claude656 });
657 }
658`;
659
534f04aClaude660// Block M2 — smart install banner (authed users only). Three heuristics:
661// 1. user is authenticated (gated server-side via the `{user &&}` JSX)
662// 2. visit counter (localStorage) ≥ 3
663// 3. dismissed-cooldown < 14 days ago
d7ba05dClaude664//
665// AA-LOOP FIX (2026-05-16): this script previously also registered
666// `/sw-push.js` at scope `/`. Combined with `pwaRegisterScript` registering
667// `/sw.js` at the same scope, every page load alternated which SW
668// controlled the scope. `pwaRegisterScript`'s `updatefound → reload` hook
669// then fired on every subsequent load — infinite reload loop on the admin
670// dashboard (input wiped, deploy pill flashing). Per the SW spec, only one
671// SW can be active per scope; registering two different script URLs at the
672// same scope makes each replace the other.
673//
674// Fix: stop registering `/sw-push.js` from the banner script entirely, and
675// proactively unregister any existing `/sw-push.js` SW so users already
676// caught in the loop recover on next refresh. Push notifications opted in
677// via /settings still register the SW from settings.tsx when (and only
678// when) the user clicks Subscribe.
534f04aClaude679const pwaInstallBannerScript = `
680(function(){
681 try {
682 var DISMISS_KEY = 'gc:pwa-banner-dismissed-at';
683 var VISITS_KEY = 'gc:pwa-visit-count';
684 var DISMISS_MS = 14 * 24 * 60 * 60 * 1000;
685 var visits = parseInt(localStorage.getItem(VISITS_KEY) || '0', 10) || 0;
686 visits++;
687 try { localStorage.setItem(VISITS_KEY, String(visits)); } catch(_){}
d7ba05dClaude688 // Recover stuck tabs: if a previous build registered /sw-push.js at
689 // scope '/', it is still fighting /sw.js for that scope. Unregister
690 // only the /sw-push.js registration; leave /sw.js intact.
691 if ('serviceWorker' in navigator && navigator.serviceWorker.getRegistrations) {
692 navigator.serviceWorker.getRegistrations().then(function(regs){
693 regs.forEach(function(reg){
694 var url = (reg.active && reg.active.scriptURL) || '';
695 if (url.indexOf('/sw-push.js') !== -1) {
696 try { reg.unregister(); } catch(_){}
697 }
698 });
699 }).catch(function(){});
534f04aClaude700 }
701 var deferredPrompt = null;
702 window.addEventListener('beforeinstallprompt', function(e){
703 e.preventDefault();
704 deferredPrompt = e;
705 maybeShow();
706 });
707 function maybeShow(){
708 if (!deferredPrompt) return;
709 if (visits < 3) return;
710 var dismissedAt = parseInt(localStorage.getItem(DISMISS_KEY) || '0', 10) || 0;
711 if (dismissedAt && (Date.now() - dismissedAt) < DISMISS_MS) return;
712 if (document.getElementById('gc-install-banner')) return;
713 var bar = document.createElement('div');
714 bar.id = 'gc-install-banner';
715 bar.setAttribute('role', 'dialog');
716 bar.setAttribute('aria-label', 'Install Gluecron');
717 bar.style.cssText = 'position:fixed;left:12px;right:12px;bottom:12px;z-index:9997;'
718 + 'background:var(--bg-elevated,#161b22);color:var(--text,#c9d1d9);'
719 + 'border:1px solid var(--border,#30363d);border-radius:8px;padding:12px 14px;'
720 + 'display:flex;gap:10px;align-items:center;justify-content:space-between;'
721 + 'box-shadow:0 8px 24px rgba(0,0,0,0.45);font-size:13px;line-height:1.3;'
722 + 'max-width:560px;margin:0 auto';
723 bar.innerHTML = '<span style="flex:1">'
724 + '<strong>Install Gluecron</strong> to keep working when offline + get push notifications.'
725 + '</span>'
726 + '<button type="button" id="gc-install-go" style="background:#238636;color:#fff;'
727 + 'border:0;border-radius:6px;padding:6px 12px;font-size:12px;cursor:pointer;'
728 + 'font-family:inherit">Install</button>'
729 + '<button type="button" id="gc-install-no" style="background:transparent;color:inherit;'
730 + 'border:1px solid var(--border,#30363d);border-radius:6px;padding:6px 12px;'
731 + 'font-size:12px;cursor:pointer;font-family:inherit">Not now</button>';
732 document.body.appendChild(bar);
733 var go = bar.querySelector('#gc-install-go');
734 var no = bar.querySelector('#gc-install-no');
735 if (go) go.addEventListener('click', function(){
736 try { deferredPrompt.prompt(); } catch(_){}
737 bar.parentNode && bar.parentNode.removeChild(bar);
738 deferredPrompt = null;
739 });
740 if (no) no.addEventListener('click', function(){
741 try { localStorage.setItem(DISMISS_KEY, String(Date.now())); } catch(_){}
742 bar.parentNode && bar.parentNode.removeChild(bar);
743 });
744 }
745 } catch(_) {}
746})();
747`;
748
3ef4c9dClaude749const navScript = `
750 (function(){
751 var chord = null;
752 var chordTimer = null;
753 function isTyping(t){
754 t = t || {};
755 var tag = (t.tagName || '').toLowerCase();
756 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
757 }
71cd5ecClaude758
759 // ---------- Block I4 — Command palette ----------
760 var COMMANDS = [
761 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
762 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
763 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
764 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
765 { label: 'Create new repository', href: '/new', kw: 'add create' },
766 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
767 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
768 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
769 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
770 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
771 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
772 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
773 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
774 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
775 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
776 { label: 'Gists', href: '/gists', kw: 'snippets' },
777 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
778 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
779 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
780 ];
781
782 function fuzzyMatch(item, q){
783 if (!q) return true;
784 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
785 q = q.toLowerCase();
786 var qi = 0;
787 for (var i = 0; i < hay.length && qi < q.length; i++) {
788 if (hay[i] === q[qi]) qi++;
789 }
790 return qi === q.length;
791 }
792
793 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
794
795 function render(){
796 if (!list) return;
797 var html = '';
798 for (var i = 0; i < filtered.length; i++) {
799 var item = filtered[i];
800 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
801 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]802 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App803 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude804 '<div>' + item.label + '</div>' +
805 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
806 '</div>';
807 }
808 if (filtered.length === 0) {
dc26881CC LABS App809 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude810 }
811 list.innerHTML = html;
812 }
813
814 function openPalette(){
815 backdrop = document.getElementById('cmdk-backdrop');
816 panel = document.getElementById('cmdk-panel');
817 input = document.getElementById('cmdk-input');
818 list = document.getElementById('cmdk-list');
819 if (!backdrop || !panel) return;
820 backdrop.style.display = 'block';
821 panel.style.display = 'block';
822 input.value = '';
823 selected = 0;
824 filtered = COMMANDS.slice();
825 render();
826 input.focus();
827 }
828 function closePalette(){
829 if (backdrop) backdrop.style.display = 'none';
830 if (panel) panel.style.display = 'none';
831 }
832 function go(href){ closePalette(); window.location.href = href; }
833
834 document.addEventListener('click', function(e){
835 var t = e.target;
836 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
837 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]838 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude839 });
840
841 document.addEventListener('input', function(e){
842 if (e.target && e.target.id === 'cmdk-input') {
843 var q = e.target.value;
844 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
845 selected = 0;
846 render();
847 }
848 });
849
3ef4c9dClaude850 document.addEventListener('keydown', function(e){
71cd5ecClaude851 // Palette-scoped keys take priority when open
852 if (panel && panel.style.display === 'block') {
853 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
854 if (e.key === 'ArrowDown') {
855 e.preventDefault();
856 selected = Math.min(filtered.length - 1, selected + 1);
857 render();
858 return;
859 }
860 if (e.key === 'ArrowUp') {
861 e.preventDefault();
862 selected = Math.max(0, selected - 1);
863 render();
864 return;
865 }
866 if (e.key === 'Enter') {
867 e.preventDefault();
868 var item = filtered[selected];
869 if (item) go(item.href);
870 return;
871 }
872 return;
873 }
874
3ef4c9dClaude875 if (isTyping(e.target)) return;
876 // Single key shortcuts
877 if (e.key === '/') {
878 var el = document.querySelector('.nav-search input');
879 if (el) { e.preventDefault(); el.focus(); return; }
880 }
881 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude882 e.preventDefault();
883 openPalette();
884 return;
3ef4c9dClaude885 }
886 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
887 e.preventDefault(); window.location.href = '/shortcuts'; return;
888 }
889 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
890 e.preventDefault(); window.location.href = '/new'; return;
891 }
892 // "g" chord
893 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
894 chord = 'g';
895 clearTimeout(chordTimer);
896 chordTimer = setTimeout(function(){ chord = null; }, 1200);
897 return;
898 }
899 if (chord === 'g') {
900 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
901 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
902 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
903 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
904 chord = null;
905 }
906 });
907 })();
908`;
909
fc1817aClaude910const css = `
2ce1d0bClaude911 /* ================================================================
958d26aClaude912 * Gluecron design system — 2026.05 "Editorial-Technical"
913 * Slate-noir base · refined violet signature · hairline geometry ·
914 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
915 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude916 * ============================================================== */
6fc53bdClaude917 :root, :root[data-theme='dark'] {
958d26aClaude918 /* Surfaces — slate, not black. More depth, less crush. */
919 --bg: #08090f;
920 --bg-secondary: #0c0d14;
921 --bg-tertiary: #11131c;
922 --bg-elevated: #0f111a;
923 --bg-surface: #161826;
924 --bg-hover: rgba(255,255,255,0.04);
925 --bg-active: rgba(255,255,255,0.08);
926 --bg-inset: rgba(0,0,0,0.30);
927
928 /* Borders — three weights, used deliberately */
929 --border: rgba(255,255,255,0.06);
930 --border-subtle: rgba(255,255,255,0.035);
931 --border-strong: rgba(255,255,255,0.13);
932 --border-focus: rgba(140,109,255,0.55);
933
934 /* Text */
935 --text: #ededf2;
936 --text-strong: #f7f7fb;
937 --text-muted: #8b8c9c;
938 --text-faint: #555665;
939 --text-link: #b69dff;
940
941 /* Accent — refined violet (less candy), warm amber as secondary signal */
942 --accent: #8c6dff;
943 --accent-2: #36c5d6;
944 --accent-warm: #ffb45e;
945 --accent-hover: #a48bff;
946 --accent-pressed:#7559e8;
947 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
948 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
949 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
950 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
951
952 /* Semantic */
953 --green: #34d399;
954 --red: #f87171;
955 --yellow: #fbbf24;
956 --amber: #fbbf24;
957 --blue: #60a5fa;
958
fb71554Claude959 /* Type — system fonts FIRST so we never depend on Google Fonts loading.
960 Segoe UI (Win), -apple-system / SF (Mac), Roboto (Android), Inter as
961 optional upgrade if the user already has it. NEVER falls back to serif. */
962 --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
963 --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, 'Inter', sans-serif;
964 --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, 'Inter Tight', 'Inter', sans-serif;
958d26aClaude965 --mono-feat: 'calt', 'liga', 'ss01';
966
967 /* Radius — sharper than before */
968 --r-sm: 5px;
969 --r: 7px;
970 --r-md: 9px;
971 --r-lg: 12px;
972 --r-xl: 16px;
973 --r-2xl: 22px;
974 --r-full: 9999px;
975 --radius: 7px;
976
977 /* Type scale — bigger display sizes for editorial feel */
978 --t-xs: 11px;
979 --t-sm: 13px;
980 --t-base: 14px;
981 --t-md: 16px;
982 --t-lg: 20px;
983 --t-xl: 28px;
984 --t-2xl: 40px;
985 --t-3xl: 56px;
986 --t-display: 72px;
987 --t-display-lg:96px;
988
989 /* Spacing — 4px base */
2ce1d0bClaude990 --s-0: 0;
958d26aClaude991 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
992 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
993 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
994 --s-20:80px; --s-24:96px; --s-32:128px;
995
996 /* Elevation — softer + more layered */
997 --elev-0: 0 0 0 1px var(--border);
998 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
999 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1000 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1001 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1002 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1003 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1004 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1005
1006 /* Motion */
1007 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1008 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1009 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1010 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1011 --t-fast: 120ms;
1012 --t-base: 200ms;
1013 --t-slow: 360ms;
1014 --t-slower:560ms;
1015
1016 --header-h: 60px;
c63b860Claude1017
1018 /* Block O3 — visual coherence: named token aliases (additive). */
1019 --space-1: var(--s-1);
1020 --space-2: var(--s-2);
1021 --space-3: var(--s-3);
1022 --space-4: var(--s-4);
1023 --space-5: var(--s-5);
1024 --space-6: var(--s-6);
1025 --space-8: var(--s-8);
1026 --space-10: var(--s-10);
1027 --space-12: var(--s-12);
1028 --space-16: var(--s-16);
1029 --space-20: var(--s-20);
1030 --space-24: var(--s-24);
1031 --radius-sm: var(--r-sm);
1032 --radius-md: var(--r-md);
1033 --radius-lg: var(--r-lg);
1034 --radius-xl: var(--r-xl);
1035 --radius-full: var(--r-full);
1036 --font-size-xs: var(--t-xs);
1037 --font-size-sm: var(--t-sm);
1038 --font-size-base: var(--t-base);
1039 --font-size-md: var(--t-md);
1040 --font-size-lg: var(--t-lg);
1041 --font-size-xl: var(--t-xl);
1042 --font-size-2xl: var(--t-2xl);
1043 --font-size-3xl: var(--t-3xl);
1044 --font-size-hero: var(--t-display);
1045 --leading-tight: 1.2;
1046 --leading-snug: 1.35;
1047 --leading-normal: 1.5;
1048 --leading-relaxed: 1.6;
1049 --leading-loose: 1.7;
1050 --z-base: 1;
1051 --z-nav: 10;
1052 --z-sticky: 50;
1053 --z-overlay: 100;
1054 --z-modal: 1000;
1055 --z-toast: 10000;
fc1817aClaude1056 }
1057
6fc53bdClaude1058 :root[data-theme='light'] {
958d26aClaude1059 --bg: #fbfbfc;
4c47454Claude1060 --bg-secondary: #ffffff;
958d26aClaude1061 --bg-tertiary: #f3f3f6;
1062 --bg-elevated: #ffffff;
1063 --bg-surface: #f6f6f9;
1064 --bg-hover: rgba(0,0,0,0.035);
1065 --bg-active: rgba(0,0,0,0.07);
1066 --bg-inset: rgba(0,0,0,0.04);
1067
1068 --border: rgba(15,16,28,0.08);
1069 --border-subtle: rgba(15,16,28,0.04);
1070 --border-strong: rgba(15,16,28,0.16);
1071
1072 --text: #0e1020;
1073 --text-strong: #050617;
1074 --text-muted: #5a5b70;
1075 --text-faint: #8a8b9e;
1076 --text-link: #6d4dff;
1077
1078 --accent: #6d4dff;
1079 --accent-2: #0891b2;
1080 --accent-hover: #5a3df0;
1081 --accent-pressed:#4a30d6;
1082 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1083
1084 --green: #059669;
1085 --red: #dc2626;
4c47454Claude1086 --yellow: #d97706;
958d26aClaude1087
1088 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1089 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1090 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1091 }
1092
1093 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1094 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1095 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1096 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1097 :root[data-theme='light'] .theme-icon-light { display: none; }
1098
fc1817aClaude1099 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1100 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1101
958d26aClaude1102 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1103
1104 body {
1105 font-family: var(--font-sans);
1106 background: var(--bg);
1107 color: var(--text);
cf9178bTest User1108 font-size: 15px;
2ce1d0bClaude1109 line-height: 1.55;
958d26aClaude1110 letter-spacing: -0.011em;
fc1817aClaude1111 min-height: 100vh;
1112 display: flex;
1113 flex-direction: column;
958d26aClaude1114 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1115 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1116 and disables automatic synthesis of bold/italic which can produce
1117 muddier rendering on certain weights. */
1118 -webkit-font-smoothing: antialiased;
1119 -moz-osx-font-smoothing: grayscale;
1120 font-synthesis: none;
1121 }
1122 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1123 line-height inversely with size so display text doesn't feel airy. */
1124 h1, h2, h3, h4, h5, h6 {
1125 font-family: var(--font-display);
1126 color: var(--text-strong);
1127 letter-spacing: -0.022em;
1128 line-height: 1.18;
1129 font-weight: 650;
1130 margin-top: 0;
1131 }
1132 h1 { font-size: 28px; letter-spacing: -0.028em; }
1133 h2 { font-size: 22px; }
1134 h3 { font-size: 18px; letter-spacing: -0.018em; }
1135 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1136 /* Link refinement — underline only on hover/focus, never by default
1137 on internal nav. Prevents the "blue underline soup" look. */
1138 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1139 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1140 a:focus-visible {
1141 outline: none;
1142 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1143 border-radius: 3px;
fc1817aClaude1144 }
1145
958d26aClaude1146 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1147 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1148 body::before {
1149 content: '';
1150 position: fixed;
1151 inset: 0;
1152 pointer-events: none;
958d26aClaude1153 z-index: -2;
2ce1d0bClaude1154 background:
958d26aClaude1155 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1156 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1157 }
1158 body::after {
1159 content: '';
1160 position: fixed;
1161 inset: 0;
1162 pointer-events: none;
1163 z-index: -1;
1164 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1165 background-size: 28px 28px;
1166 background-position: 0 0;
1167 opacity: 0.55;
1168 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1169 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1170 }
1171 :root[data-theme='light'] body::before { opacity: 0.55; }
1172 :root[data-theme='light'] body::after {
1173 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1174 opacity: 0.4;
fc1817aClaude1175 }
2ce1d0bClaude1176
1177 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1178 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1179
958d26aClaude1180 /* Heading scale — confident, editorial, tight tracking */
1181 h1, h2, h3, h4, h5, h6 {
1182 font-family: var(--font-display);
2ce1d0bClaude1183 font-weight: 600;
958d26aClaude1184 letter-spacing: -0.022em;
1185 line-height: 1.18;
1186 color: var(--text-strong);
1187 }
1188 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1189 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1190 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1191 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1192 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1193
1194 /* Editorial display heading utility — used by landing + marketing pages */
1195 .display {
1196 font-family: var(--font-display);
1197 font-size: clamp(40px, 7.5vw, 96px);
1198 line-height: 0.98;
1199 letter-spacing: -0.04em;
1200 font-weight: 600;
1201 color: var(--text-strong);
2ce1d0bClaude1202 }
fc1817aClaude1203
958d26aClaude1204 /* Eyebrow — uppercase mono label that sits above section headings */
1205 .eyebrow {
1206 display: inline-flex;
1207 align-items: center;
1208 gap: 8px;
1209 font-family: var(--font-mono);
1210 font-size: 11px;
1211 font-weight: 500;
1212 letter-spacing: 0.14em;
1213 text-transform: uppercase;
1214 color: var(--accent);
1215 margin-bottom: var(--s-3);
1216 }
1217 .eyebrow::before {
1218 content: '';
1219 width: 18px;
1220 height: 1px;
1221 background: currentColor;
1222 opacity: 0.6;
1223 }
1224
1225 /* Section header — paired eyebrow + title + lede */
1226 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1227 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1228 .section-header h2 {
1229 font-size: clamp(28px, 4vw, 44px);
1230 line-height: 1.05;
1231 letter-spacing: -0.028em;
1232 margin-bottom: var(--s-3);
1233 }
1234 .section-header p {
1235 color: var(--text-muted);
1236 font-size: var(--t-md);
1237 line-height: 1.6;
1238 max-width: 580px;
1239 margin: 0 auto;
1240 }
1241 .section-header.left p { margin-left: 0; }
fc1817aClaude1242
958d26aClaude1243 code, kbd, samp {
2ce1d0bClaude1244 font-family: var(--font-mono);
958d26aClaude1245 font-feature-settings: var(--mono-feat);
1246 }
1247 code {
1248 font-size: 0.9em;
2ce1d0bClaude1249 background: var(--bg-tertiary);
958d26aClaude1250 border: 1px solid var(--border-subtle);
2ce1d0bClaude1251 padding: 1px 6px;
1252 border-radius: var(--r-sm);
1253 color: var(--text);
1254 }
958d26aClaude1255 kbd, .kbd {
1256 display: inline-flex;
1257 align-items: center;
1258 padding: 1px 6px;
1259 font-family: var(--font-mono);
1260 font-size: 11px;
1261 background: var(--bg-elevated);
1262 border: 1px solid var(--border);
1263 border-bottom-width: 2px;
1264 border-radius: 4px;
1265 color: var(--text);
1266 line-height: 1.5;
1267 vertical-align: middle;
1268 }
2ce1d0bClaude1269
958d26aClaude1270 /* Mono utility for technical chrome (paths, IDs, dates) */
1271 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1272 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1273
1274 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1275 .prelaunch-banner {
958d26aClaude1276 position: relative;
2ce1d0bClaude1277 background:
958d26aClaude1278 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1279 var(--bg);
958d26aClaude1280 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1281 color: var(--yellow);
958d26aClaude1282 padding: 7px 24px;
1283 font-family: var(--font-mono);
1284 font-size: 11px;
4a52a98Claude1285 font-weight: 500;
1286 text-align: center;
2ce1d0bClaude1287 line-height: 1.5;
958d26aClaude1288 letter-spacing: 0.04em;
1289 text-transform: uppercase;
1290 }
1291 .prelaunch-banner::before {
1292 content: '◆';
1293 margin-right: 8px;
1294 font-size: 9px;
1295 opacity: 0.7;
1296 vertical-align: 1px;
4a52a98Claude1297 }
1298
cd4f63bTest User1299 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1300 visitors don't miss the "save your work" CTA, but slim enough to
1301 not feel like a modal. */
1302 .playground-banner {
1303 position: relative;
1304 display: flex;
1305 align-items: center;
1306 justify-content: center;
1307 gap: 8px;
1308 background:
1309 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1310 var(--bg);
1311 border-bottom: 1px solid rgba(251,191,36,0.45);
1312 color: var(--yellow, #fbbf24);
1313 padding: 8px 40px 8px 24px;
1314 font-size: 13px;
1315 font-weight: 500;
1316 text-align: center;
1317 line-height: 1.4;
1318 }
1319 .playground-banner-icon { font-size: 14px; }
1320 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1321 .playground-banner-countdown { font-weight: 600; }
1322 .playground-banner-cta {
1323 margin-left: 4px;
1324 color: var(--yellow, #fbbf24);
1325 text-decoration: underline;
1326 font-weight: 600;
1327 }
1328 .playground-banner-cta:hover { opacity: 0.85; }
1329 .playground-banner-dismiss {
1330 position: absolute;
1331 top: 50%;
1332 right: 12px;
1333 transform: translateY(-50%);
1334 background: transparent;
1335 border: none;
1336 color: var(--text-muted, #8b949e);
1337 font-size: 18px;
1338 line-height: 1;
1339 cursor: pointer;
1340 padding: 0 4px;
1341 }
1342 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1343
958d26aClaude1344 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1345 header {
2ce1d0bClaude1346 position: sticky;
1347 top: 0;
1348 z-index: 100;
fc1817aClaude1349 border-bottom: 1px solid var(--border);
2ce1d0bClaude1350 padding: 0 24px;
1351 height: var(--header-h);
958d26aClaude1352 background: rgba(8,9,15,0.72);
1353 backdrop-filter: saturate(180%) blur(18px);
1354 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1355 }
958d26aClaude1356 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1357
06d5ffeClaude1358 header nav {
1359 display: flex;
1360 align-items: center;
958d26aClaude1361 gap: 18px;
1362 max-width: 1240px;
06d5ffeClaude1363 margin: 0 auto;
2ce1d0bClaude1364 height: 100%;
1365 }
1366 .logo {
958d26aClaude1367 font-family: var(--font-display);
1368 font-size: 16px;
2ce1d0bClaude1369 font-weight: 700;
958d26aClaude1370 letter-spacing: -0.025em;
1371 color: var(--text-strong);
2ce1d0bClaude1372 display: inline-flex;
1373 align-items: center;
958d26aClaude1374 gap: 9px;
1375 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1376 }
2ce1d0bClaude1377 .logo::before {
1378 content: '';
958d26aClaude1379 width: 20px; height: 20px;
1380 border-radius: 6px;
2ce1d0bClaude1381 background: var(--accent-gradient);
958d26aClaude1382 box-shadow:
1383 inset 0 1px 0 rgba(255,255,255,0.25),
1384 0 0 0 1px rgba(140,109,255,0.45),
1385 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1386 flex-shrink: 0;
958d26aClaude1387 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1388 }
1389 .logo:hover { text-decoration: none; color: var(--text-strong); }
1390 .logo:hover::before {
1391 transform: rotate(8deg) scale(1.05);
1392 box-shadow:
1393 inset 0 1px 0 rgba(255,255,255,0.30),
1394 0 0 0 1px rgba(140,109,255,0.55),
1395 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1396 }
fc1817aClaude1397
2ce1d0bClaude1398 .nav-search {
1399 flex: 1;
958d26aClaude1400 max-width: 360px;
1401 margin: 0 4px 0 8px;
1402 position: relative;
2ce1d0bClaude1403 }
1404 .nav-search input {
1405 width: 100%;
958d26aClaude1406 padding: 7px 12px 7px 32px;
2ce1d0bClaude1407 background: var(--bg-tertiary);
1408 border: 1px solid var(--border);
1409 border-radius: var(--r-sm);
1410 color: var(--text);
1411 font-family: var(--font-sans);
1412 font-size: var(--t-sm);
958d26aClaude1413 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1414 }
1415 .nav-search::before {
1416 content: '';
1417 position: absolute;
1418 left: 11px; top: 50%;
1419 transform: translateY(-50%);
1420 width: 12px; height: 12px;
1421 border: 1.5px solid var(--text-faint);
1422 border-radius: 50%;
1423 pointer-events: none;
1424 }
1425 .nav-search::after {
1426 content: '';
1427 position: absolute;
1428 left: 19px; top: calc(50% + 4px);
1429 width: 5px; height: 1.5px;
1430 background: var(--text-faint);
1431 transform: rotate(45deg);
1432 pointer-events: none;
2ce1d0bClaude1433 }
1434 .nav-search input::placeholder { color: var(--text-faint); }
1435 .nav-search input:focus {
1436 outline: none;
1437 background: var(--bg-secondary);
958d26aClaude1438 border-color: var(--border-focus);
1439 box-shadow: var(--ring);
2ce1d0bClaude1440 }
06d5ffeClaude1441
958d26aClaude1442 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1443
1444 /* Block N3 — site-admin deploy status pill */
1445 .nav-deploy-pill {
1446 display: inline-flex;
1447 align-items: center;
1448 gap: 6px;
1449 padding: 4px 10px;
1450 margin: 0 6px 0 0;
1451 border-radius: 9999px;
1452 font-size: 11px;
1453 font-weight: 600;
1454 line-height: 1;
1455 color: var(--text-strong);
1456 background: var(--bg-elevated);
1457 border: 1px solid var(--border);
1458 text-decoration: none;
1459 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1460 }
1461 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1462 .nav-deploy-pill .deploy-pill-dot {
1463 display: inline-block;
1464 width: 8px; height: 8px;
1465 border-radius: 50%;
1466 background: #6b7280;
1467 }
1468 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1469 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1470 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1471 .deploy-pill-progress .deploy-pill-dot {
1472 background: #fbbf24;
1473 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1474 animation: deployPillPulse 1.2s ease-in-out infinite;
1475 }
1476 @keyframes deployPillPulse {
1477 0%, 100% { opacity: 1; transform: scale(1); }
1478 50% { opacity: 0.45; transform: scale(0.8); }
1479 }
1480 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1481
2ce1d0bClaude1482 .nav-link {
958d26aClaude1483 position: relative;
2ce1d0bClaude1484 color: var(--text-muted);
1485 font-size: var(--t-sm);
1486 font-weight: 500;
958d26aClaude1487 padding: 7px 11px;
2ce1d0bClaude1488 border-radius: var(--r-sm);
958d26aClaude1489 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1490 }
1491 .nav-link:hover {
958d26aClaude1492 color: var(--text-strong);
2ce1d0bClaude1493 background: var(--bg-hover);
1494 text-decoration: none;
1495 }
958d26aClaude1496 .nav-link.active { color: var(--text-strong); }
1497 .nav-link.active::after {
1498 content: '';
1499 position: absolute;
1500 left: 11px; right: 11px;
1501 bottom: -1px;
1502 height: 2px;
1503 background: var(--accent-gradient);
1504 border-radius: 2px;
1505 }
2ce1d0bClaude1506 .nav-user {
958d26aClaude1507 color: var(--text-strong);
2ce1d0bClaude1508 font-weight: 600;
1509 font-size: var(--t-sm);
1510 padding: 6px 10px;
1511 border-radius: var(--r-sm);
958d26aClaude1512 margin-left: 6px;
2ce1d0bClaude1513 transition: background var(--t-fast) var(--ease);
1514 }
958d26aClaude1515 .nav-user::before {
1516 content: '';
1517 display: inline-block;
1518 width: 8px; height: 8px;
1519 background: var(--green);
1520 border-radius: 50%;
1521 margin-right: 7px;
1522 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1523 vertical-align: 1px;
1524 }
2ce1d0bClaude1525 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1526
2ce1d0bClaude1527 main {
958d26aClaude1528 max-width: 1240px;
2ce1d0bClaude1529 margin: 0 auto;
958d26aClaude1530 padding: 36px 24px 80px;
2ce1d0bClaude1531 flex: 1;
1532 width: 100%;
1533 }
fc1817aClaude1534
958d26aClaude1535 /* Editorial footer: link grid + tagline row */
fc1817aClaude1536 footer {
1537 border-top: 1px solid var(--border);
958d26aClaude1538 padding: 56px 24px 40px;
fc1817aClaude1539 color: var(--text-muted);
958d26aClaude1540 font-size: var(--t-sm);
1541 background:
1542 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1543 var(--bg);
1544 }
1545 footer .footer-inner {
1546 max-width: 1240px;
1547 margin: 0 auto;
1548 display: grid;
1549 grid-template-columns: 1fr auto;
1550 gap: 48px;
1551 align-items: start;
1552 }
1553 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1554 footer .footer-tag {
1555 color: var(--text-muted);
1556 font-size: var(--t-sm);
1557 max-width: 320px;
1558 line-height: 1.55;
1559 }
1560 footer .footer-links {
1561 display: grid;
1562 grid-template-columns: repeat(3, minmax(120px, auto));
1563 gap: 0 56px;
1564 }
1565 footer .footer-col-title {
1566 font-family: var(--font-mono);
1567 font-size: 11px;
1568 text-transform: uppercase;
1569 letter-spacing: 0.14em;
1570 color: var(--text-faint);
1571 margin-bottom: var(--s-3);
1572 }
1573 footer .footer-col a {
1574 display: block;
1575 color: var(--text-muted);
1576 font-size: var(--t-sm);
1577 padding: 5px 0;
1578 transition: color var(--t-fast) var(--ease);
1579 }
1580 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1581 footer .footer-bottom {
1582 max-width: 1240px;
1583 margin: 40px auto 0;
1584 padding-top: 24px;
1585 border-top: 1px solid var(--border-subtle);
1586 display: flex;
1587 justify-content: space-between;
1588 align-items: center;
2ce1d0bClaude1589 color: var(--text-faint);
1590 font-size: var(--t-xs);
958d26aClaude1591 font-family: var(--font-mono);
1592 letter-spacing: 0.02em;
1593 }
1594 footer .footer-bottom a { color: var(--text-faint); }
1595 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1596 footer .footer-build {
1597 display: inline-flex;
1598 align-items: center;
1599 gap: 6px;
1600 color: var(--text-faint);
1601 font-family: var(--font-mono);
1602 font-size: 11px;
1603 cursor: help;
1604 }
1605 footer .footer-build-dot {
1606 width: 6px; height: 6px;
1607 border-radius: 50%;
1608 background: var(--green);
1609 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1610 animation: footer-build-pulse 2.4s ease-in-out infinite;
1611 }
1612 @keyframes footer-build-pulse {
1613 0%, 100% { opacity: 0.6; }
1614 50% { opacity: 1; }
1615 }
958d26aClaude1616 @media (max-width: 768px) {
1617 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1618 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1619 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1620 }
1621
2ce1d0bClaude1622 /* ============================================================ */
1623 /* Buttons */
1624 /* ============================================================ */
dc26881CC LABS App1625 /* ============================================================ */
1626 /* Buttons — Block U2 senior polish pass. */
1627 /* Rules: */
1628 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1629 /* · active presses back down to 0 (80ms — faster on press) */
1630 /* · focus-visible uses a soft box-shadow ring (no outline) */
1631 /* · primary gradient shifts position on hover for a slow */
1632 /* 600ms shimmer */
1633 /* · disabled never lifts and never animates */
1634 /* ============================================================ */
06d5ffeClaude1635 .btn {
1636 display: inline-flex;
1637 align-items: center;
2ce1d0bClaude1638 justify-content: center;
958d26aClaude1639 gap: 7px;
2ce1d0bClaude1640 padding: 7px 14px;
1641 border-radius: var(--r-sm);
958d26aClaude1642 font-family: var(--font-sans);
2ce1d0bClaude1643 font-size: var(--t-sm);
06d5ffeClaude1644 font-weight: 500;
1645 border: 1px solid var(--border);
2ce1d0bClaude1646 background: var(--bg-elevated);
06d5ffeClaude1647 color: var(--text);
1648 cursor: pointer;
1649 text-decoration: none;
958d26aClaude1650 line-height: 1.25;
1651 letter-spacing: -0.008em;
dc26881CC LABS App1652 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1653 Listed once on the base rule so :active can override only the
1654 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1655 transition:
dc26881CC LABS App1656 background 180ms ease,
1657 border-color 180ms ease,
1658 transform 180ms ease,
1659 box-shadow 180ms ease,
1660 color 180ms ease;
2ce1d0bClaude1661 user-select: none;
1662 white-space: nowrap;
958d26aClaude1663 position: relative;
06d5ffeClaude1664 }
2ce1d0bClaude1665 .btn:hover {
1666 background: var(--bg-surface);
1667 border-color: var(--border-strong);
958d26aClaude1668 color: var(--text-strong);
2ce1d0bClaude1669 text-decoration: none;
dc26881CC LABS App1670 /* U2 — universal hover lift + soft accent drop shadow. */
1671 transform: translateY(-1px);
1672 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1673 }
1674 .btn:active {
1675 transform: translateY(0);
1676 transition-duration: 80ms;
1677 }
1678 /* U2 — soft modern focus ring via box-shadow, not outline. */
1679 .btn:focus-visible {
1680 outline: none;
1681 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1682 }
1683
1684 .btn-primary {
1685 background: var(--accent-gradient);
dc26881CC LABS App1686 background-size: 200% 100%;
1687 background-position: 0% 50%;
2ce1d0bClaude1688 border-color: transparent;
1689 color: #fff;
1690 font-weight: 600;
958d26aClaude1691 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1692 box-shadow:
958d26aClaude1693 inset 0 1px 0 rgba(255,255,255,0.22),
1694 inset 0 -1px 0 rgba(0,0,0,0.10),
1695 0 1px 2px rgba(0,0,0,0.40),
1696 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1697 /* U2 — slower 600ms transition on background-position so the
1698 primary CTA shimmers when the cursor lands. */
1699 transition:
1700 background-position 600ms ease,
1701 transform 180ms ease,
1702 box-shadow 180ms ease,
1703 color 180ms ease;
06d5ffeClaude1704 }
958d26aClaude1705 .btn-primary::before {
1706 content: '';
1707 position: absolute;
1708 inset: 0;
1709 border-radius: inherit;
1710 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1711 opacity: 0;
1712 transition: opacity var(--t-fast) var(--ease);
1713 pointer-events: none;
2ce1d0bClaude1714 }
1715 .btn-primary:hover {
958d26aClaude1716 color: #fff;
2ce1d0bClaude1717 background: var(--accent-gradient);
dc26881CC LABS App1718 background-size: 200% 100%;
1719 background-position: 100% 50%;
958d26aClaude1720 border-color: transparent;
dc26881CC LABS App1721 transform: translateY(-1px);
2ce1d0bClaude1722 box-shadow:
958d26aClaude1723 inset 0 1px 0 rgba(255,255,255,0.30),
1724 inset 0 -1px 0 rgba(0,0,0,0.10),
1725 0 6px 18px -4px rgba(140,109,255,0.45),
1726 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1727 }
958d26aClaude1728 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App1729 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
1730 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
1731 .btn-primary:focus-visible {
1732 box-shadow:
1733 inset 0 1px 0 rgba(255,255,255,0.22),
1734 0 0 0 3px rgba(140,109,255,0.35);
1735 }
2ce1d0bClaude1736
1737 .btn-danger {
1738 background: transparent;
958d26aClaude1739 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude1740 color: var(--red);
1741 }
1742 .btn-danger:hover {
958d26aClaude1743 background: rgba(248,113,113,0.08);
2ce1d0bClaude1744 border-color: var(--red);
958d26aClaude1745 color: var(--red);
dc26881CC LABS App1746 transform: translateY(-1px);
1747 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude1748 }
dc26881CC LABS App1749 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude1750
1751 .btn-ghost {
1752 background: transparent;
1753 border-color: transparent;
1754 color: var(--text-muted);
1755 }
1756 .btn-ghost:hover {
1757 background: var(--bg-hover);
958d26aClaude1758 color: var(--text-strong);
2ce1d0bClaude1759 border-color: var(--border);
dc26881CC LABS App1760 transform: translateY(-1px);
1761 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude1762 }
1763
958d26aClaude1764 .btn-secondary {
1765 background: var(--bg-elevated);
1766 border-color: var(--border-strong);
1767 color: var(--text-strong);
1768 }
1769 .btn-secondary:hover {
1770 background: var(--bg-surface);
1771 border-color: var(--border-strong);
dc26881CC LABS App1772 transform: translateY(-1px);
1773 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude1774 }
1775
1776 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
1777 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
1778 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
1779 .btn-block { width: 100%; }
2ce1d0bClaude1780
dc26881CC LABS App1781 /* U2 — disabled never lifts, never shimmers, never glows. */
1782 .btn:disabled,
1783 .btn[aria-disabled='true'],
1784 .btn:disabled:hover,
1785 .btn[aria-disabled='true']:hover {
1786 opacity: 0.5;
2ce1d0bClaude1787 cursor: not-allowed;
1788 pointer-events: none;
dc26881CC LABS App1789 transform: none;
1790 box-shadow: none;
1791 }
1792 @media (prefers-reduced-motion: reduce) {
1793 .btn,
1794 .btn:hover,
1795 .btn:active,
1796 .btn-primary,
1797 .btn-primary:hover {
1798 transform: none;
1799 transition: background-color 80ms linear, color 80ms linear;
1800 }
2ce1d0bClaude1801 }
1802
1803 /* ============================================================ */
1804 /* Forms */
1805 /* ============================================================ */
1806 .form-group { margin-bottom: 20px; }
1807 .form-group label {
1808 display: block;
1809 font-size: var(--t-sm);
1810 font-weight: 500;
1811 margin-bottom: 6px;
1812 color: var(--text);
1813 letter-spacing: -0.005em;
1814 }
1815 .form-group input,
1816 .form-group textarea,
1817 .form-group select,
1818 input[type='text'], input[type='email'], input[type='password'],
1819 input[type='url'], input[type='search'], input[type='number'],
1820 textarea, select {
06d5ffeClaude1821 width: 100%;
2ce1d0bClaude1822 padding: 9px 12px;
1823 background: var(--bg-secondary);
06d5ffeClaude1824 border: 1px solid var(--border);
2ce1d0bClaude1825 border-radius: var(--r-sm);
06d5ffeClaude1826 color: var(--text);
2ce1d0bClaude1827 font-size: var(--t-sm);
06d5ffeClaude1828 font-family: var(--font-sans);
2ce1d0bClaude1829 transition:
1830 border-color var(--t-fast) var(--ease),
1831 background var(--t-fast) var(--ease),
1832 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude1833 }
2ce1d0bClaude1834 .form-group input::placeholder, textarea::placeholder, input::placeholder {
1835 color: var(--text-faint);
06d5ffeClaude1836 }
2ce1d0bClaude1837 .form-group input:hover, textarea:hover, select:hover,
1838 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
1839 border-color: var(--border-strong);
1840 }
1841 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
1842 input:focus, textarea:focus, select:focus {
06d5ffeClaude1843 outline: none;
2ce1d0bClaude1844 background: var(--bg);
1845 border-color: var(--border-focus);
1846 box-shadow: var(--ring);
06d5ffeClaude1847 }
2ce1d0bClaude1848 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude1849 .input-disabled { opacity: 0.5; cursor: not-allowed; }
1850
2ce1d0bClaude1851 /* ============================================================ */
1852 /* Auth (register / login / verify) */
1853 /* ============================================================ */
1854 .auth-container {
1855 max-width: 420px;
1856 margin: 64px auto;
1857 padding: 32px;
1858 background: var(--bg-elevated);
1859 border: 1px solid var(--border);
1860 border-radius: var(--r-lg);
1861 box-shadow: var(--elev-2);
1862 }
1863 .auth-container h2 {
1864 margin-bottom: 6px;
1865 font-size: var(--t-lg);
1866 letter-spacing: -0.02em;
1867 }
1868 .auth-container > p {
1869 color: var(--text-muted);
1870 font-size: var(--t-sm);
1871 margin-bottom: 24px;
1872 }
1873 .auth-container .btn-primary { width: 100%; padding: 10px 16px; }
06d5ffeClaude1874 .auth-error {
958d26aClaude1875 background: rgba(248,113,113,0.08);
1876 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude1877 color: var(--red);
2ce1d0bClaude1878 padding: 10px 14px;
1879 border-radius: var(--r-sm);
06d5ffeClaude1880 margin-bottom: 16px;
2ce1d0bClaude1881 font-size: var(--t-sm);
06d5ffeClaude1882 }
1883 .auth-success {
958d26aClaude1884 background: rgba(52,211,153,0.08);
1885 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude1886 color: var(--green);
2ce1d0bClaude1887 padding: 10px 14px;
1888 border-radius: var(--r-sm);
06d5ffeClaude1889 margin-bottom: 16px;
2ce1d0bClaude1890 font-size: var(--t-sm);
1891 }
1892 .auth-switch {
1893 margin-top: 20px;
1894 font-size: var(--t-sm);
1895 color: var(--text-muted);
1896 text-align: center;
1897 }
1898 .banner {
1899 background: var(--accent-gradient-faint);
958d26aClaude1900 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude1901 color: var(--text);
1902 padding: 10px 14px;
1903 border-radius: var(--r-sm);
1904 font-size: var(--t-sm);
06d5ffeClaude1905 }
1906
2ce1d0bClaude1907 /* ============================================================ */
1908 /* Settings */
1909 /* ============================================================ */
1910 .settings-container { max-width: 720px; }
1911 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
1912 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
1913 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
1914 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude1915 .ssh-keys-list { margin-bottom: 24px; }
1916 .ssh-key-item {
1917 display: flex;
1918 justify-content: space-between;
1919 align-items: center;
2ce1d0bClaude1920 padding: 14px 16px;
06d5ffeClaude1921 border: 1px solid var(--border);
2ce1d0bClaude1922 border-radius: var(--r-md);
06d5ffeClaude1923 margin-bottom: 8px;
2ce1d0bClaude1924 background: var(--bg-elevated);
1925 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude1926 }
2ce1d0bClaude1927 .ssh-key-item:hover { border-color: var(--border-strong); }
1928 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
1929 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude1930
2ce1d0bClaude1931 /* ============================================================ */
1932 /* Repo header + nav */
1933 /* ============================================================ */
fc1817aClaude1934 .repo-header {
1935 display: flex;
1936 align-items: center;
debcf27Claude1937 gap: 12px;
1938 margin-bottom: 22px;
1939 }
1940 .repo-header-title {
1941 display: flex;
1942 align-items: center;
1943 gap: 10px;
1944 font-family: var(--font-display);
1945 font-size: 24px;
1946 letter-spacing: -0.025em;
1947 flex-wrap: wrap;
1948 }
1949 .repo-header .owner {
1950 color: var(--text-muted);
1951 font-weight: 500;
1952 transition: color var(--t-fast) var(--ease);
1953 }
1954 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
1955 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
1956 .repo-header .name {
1957 color: var(--text-strong);
1958 font-weight: 700;
1959 letter-spacing: -0.028em;
fc1817aClaude1960 }
2ce1d0bClaude1961 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude1962 .repo-header-fork {
1963 font-family: var(--font-mono);
1964 font-size: 11px;
1965 color: var(--text-muted);
1966 margin-top: 4px;
1967 letter-spacing: 0.01em;
1968 }
1969 .repo-header-fork a { color: var(--text-muted); }
1970 .repo-header-fork a:hover { color: var(--accent); }
1971 .repo-header-pill {
1972 display: inline-flex;
1973 align-items: center;
1974 padding: 2px 10px;
1975 border-radius: var(--r-full);
1976 font-family: var(--font-mono);
1977 font-size: 10px;
1978 font-weight: 600;
1979 letter-spacing: 0.12em;
1980 text-transform: uppercase;
1981 line-height: 1.6;
1982 vertical-align: 4px;
1983 }
1984 .repo-header-pill-archived {
1985 background: rgba(251,191,36,0.10);
1986 color: var(--yellow);
1987 border: 1px solid rgba(251,191,36,0.30);
1988 }
1989 .repo-header-pill-template {
1990 background: var(--accent-gradient-faint);
1991 color: var(--accent);
1992 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude1993 }
06d5ffeClaude1994 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude1995
1996 .repo-nav {
1997 display: flex;
debcf27Claude1998 gap: 1px;
fc1817aClaude1999 border-bottom: 1px solid var(--border);
debcf27Claude2000 margin-bottom: 28px;
2ce1d0bClaude2001 overflow-x: auto;
2002 scrollbar-width: thin;
fc1817aClaude2003 }
2ce1d0bClaude2004 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2005 .repo-nav a {
debcf27Claude2006 position: relative;
2007 padding: 11px 14px;
fc1817aClaude2008 color: var(--text-muted);
2009 border-bottom: 2px solid transparent;
2ce1d0bClaude2010 font-size: var(--t-sm);
2011 font-weight: 500;
2012 margin-bottom: -1px;
debcf27Claude2013 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2014 white-space: nowrap;
2015 }
debcf27Claude2016 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2017 .repo-nav a.active {
debcf27Claude2018 color: var(--text-strong);
2019 font-weight: 600;
2020 }
2021 .repo-nav a.active::after {
2022 content: '';
2023 position: absolute;
2024 left: 14px;
2025 right: 14px;
2026 bottom: -1px;
2027 height: 2px;
2028 background: var(--accent-gradient);
2029 border-radius: 2px;
2030 }
2031 /* AI links in the right-side cluster — sparkle accent */
2032 .repo-nav-ai {
2033 color: var(--accent) !important;
2034 font-weight: 500;
2035 }
2036 .repo-nav-ai:hover {
2037 color: var(--accent-hover) !important;
2038 background: var(--accent-gradient-faint) !important;
2039 }
2040 .repo-nav-ai.active {
2041 color: var(--accent-hover) !important;
2ce1d0bClaude2042 font-weight: 600;
fc1817aClaude2043 }
2044
2ce1d0bClaude2045 .breadcrumb {
2046 display: flex;
debcf27Claude2047 gap: 6px;
2ce1d0bClaude2048 align-items: center;
debcf27Claude2049 margin-bottom: 18px;
2ce1d0bClaude2050 color: var(--text-muted);
2051 font-size: var(--t-sm);
2052 font-family: var(--font-mono);
debcf27Claude2053 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2054 }
2055 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2056 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2057 .breadcrumb strong {
2058 color: var(--text-strong);
2059 font-weight: 600;
fc1817aClaude2060 }
2061
debcf27Claude2062 /* Page header — eyebrow + title + optional actions row.
2063 Use on dashboard, settings, admin, any "section landing" page. */
2064 .page-header {
2065 display: flex;
2066 align-items: flex-end;
2067 justify-content: space-between;
2068 gap: 16px;
2069 margin-bottom: 28px;
2070 padding-bottom: 20px;
2071 border-bottom: 1px solid var(--border-subtle);
2072 flex-wrap: wrap;
2073 }
2074 .page-header-text { flex: 1; min-width: 280px; }
2075 .page-header .eyebrow { margin-bottom: var(--s-2); }
2076 .page-header h1 {
2077 font-family: var(--font-display);
2078 font-size: clamp(24px, 3vw, 36px);
2079 line-height: 1.1;
2080 letter-spacing: -0.028em;
2081 margin-bottom: 6px;
2082 }
2083 .page-header p {
2084 color: var(--text-muted);
2085 font-size: var(--t-sm);
2086 line-height: 1.55;
2087 max-width: 640px;
2088 }
2089 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2090
2ce1d0bClaude2091 /* ============================================================ */
2092 /* File browser table */
2093 /* ============================================================ */
2094 .file-table {
2095 width: 100%;
2096 border: 1px solid var(--border);
2097 border-radius: var(--r-md);
2098 overflow: hidden;
2099 background: var(--bg-elevated);
debcf27Claude2100 border-collapse: collapse;
2ce1d0bClaude2101 }
debcf27Claude2102 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2103 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2104 .file-table td {
2105 padding: 9px 16px;
2106 font-size: var(--t-sm);
2107 font-family: var(--font-mono);
2108 font-feature-settings: var(--mono-feat);
2109 }
2ce1d0bClaude2110 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2111 .file-icon {
2112 width: 22px;
2113 color: var(--text-faint);
2114 font-size: 13px;
2115 text-align: center;
2116 }
2117 .file-name a {
2118 color: var(--text);
2119 font-weight: 500;
2120 transition: color var(--t-fast) var(--ease);
2121 }
2122 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2123
2ce1d0bClaude2124 /* ============================================================ */
2125 /* Blob view */
2126 /* ============================================================ */
fc1817aClaude2127 .blob-view {
2128 border: 1px solid var(--border);
2ce1d0bClaude2129 border-radius: var(--r-md);
fc1817aClaude2130 overflow: hidden;
2ce1d0bClaude2131 background: var(--bg-elevated);
fc1817aClaude2132 }
2133 .blob-header {
2134 background: var(--bg-secondary);
2ce1d0bClaude2135 padding: 10px 16px;
fc1817aClaude2136 border-bottom: 1px solid var(--border);
2ce1d0bClaude2137 font-size: var(--t-sm);
fc1817aClaude2138 color: var(--text-muted);
06d5ffeClaude2139 display: flex;
2140 justify-content: space-between;
2141 align-items: center;
fc1817aClaude2142 }
2143 .blob-code {
2144 overflow-x: auto;
2145 font-family: var(--font-mono);
2ce1d0bClaude2146 font-size: var(--t-sm);
2147 line-height: 1.65;
fc1817aClaude2148 }
2149 .blob-code table { width: 100%; border-collapse: collapse; }
2150 .blob-code .line-num {
2151 width: 1%;
2ce1d0bClaude2152 min-width: 56px;
2153 padding: 0 14px;
fc1817aClaude2154 text-align: right;
2ce1d0bClaude2155 color: var(--text-faint);
fc1817aClaude2156 user-select: none;
2157 white-space: nowrap;
2158 border-right: 1px solid var(--border);
2159 }
2ce1d0bClaude2160 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2161 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2162
2ce1d0bClaude2163 /* ============================================================ */
2164 /* Commits + diffs */
2165 /* ============================================================ */
2166 .commit-list {
2167 border: 1px solid var(--border);
2168 border-radius: var(--r-md);
2169 overflow: hidden;
2170 background: var(--bg-elevated);
2171 }
fc1817aClaude2172 .commit-item {
2173 display: flex;
2174 justify-content: space-between;
2175 align-items: center;
debcf27Claude2176 padding: 14px 18px;
2177 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2178 transition: background var(--t-fast) var(--ease);
fc1817aClaude2179 }
2180 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2181 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2182 .commit-message {
2183 font-size: var(--t-sm);
2184 font-weight: 500;
2185 line-height: 1.45;
2186 color: var(--text-strong);
2187 letter-spacing: -0.005em;
2188 }
2189 .commit-meta {
2190 font-family: var(--font-mono);
2191 font-size: 11px;
2192 color: var(--text-muted);
2193 margin-top: 5px;
2194 letter-spacing: 0.01em;
2195 }
fc1817aClaude2196 .commit-sha {
2197 font-family: var(--font-mono);
debcf27Claude2198 font-feature-settings: var(--mono-feat);
2199 font-size: 11px;
2200 padding: 4px 9px;
fc1817aClaude2201 background: var(--bg-tertiary);
2202 border: 1px solid var(--border);
2ce1d0bClaude2203 border-radius: var(--r-sm);
debcf27Claude2204 color: var(--accent);
2205 font-weight: 600;
2206 letter-spacing: 0.02em;
2ce1d0bClaude2207 transition: all var(--t-fast) var(--ease);
fc1817aClaude2208 }
debcf27Claude2209 .commit-sha:hover {
2210 border-color: rgba(140,109,255,0.40);
2211 background: var(--accent-gradient-faint);
2212 color: var(--accent-hover);
2213 text-decoration: none;
fc1817aClaude2214 }
2215
2216 .diff-view { margin-top: 16px; }
2217 .diff-file {
2218 border: 1px solid var(--border);
2ce1d0bClaude2219 border-radius: var(--r-md);
fc1817aClaude2220 margin-bottom: 16px;
2221 overflow: hidden;
2ce1d0bClaude2222 background: var(--bg-elevated);
fc1817aClaude2223 }
2224 .diff-file-header {
2225 background: var(--bg-secondary);
2ce1d0bClaude2226 padding: 10px 16px;
fc1817aClaude2227 border-bottom: 1px solid var(--border);
2228 font-family: var(--font-mono);
2ce1d0bClaude2229 font-size: var(--t-sm);
2230 font-weight: 500;
fc1817aClaude2231 }
2232 .diff-content {
2233 overflow-x: auto;
2234 font-family: var(--font-mono);
2ce1d0bClaude2235 font-size: var(--t-sm);
2236 line-height: 1.65;
fc1817aClaude2237 }
958d26aClaude2238 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2239 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2240 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2241 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2242
2243 .stat-add { color: var(--green); font-weight: 600; }
2244 .stat-del { color: var(--red); font-weight: 600; }
2245
2ce1d0bClaude2246 /* ============================================================ */
2247 /* Empty state */
2248 /* ============================================================ */
fc1817aClaude2249 .empty-state {
2250 text-align: center;
958d26aClaude2251 padding: 96px 24px;
fc1817aClaude2252 color: var(--text-muted);
2ce1d0bClaude2253 border: 1px dashed var(--border);
2254 border-radius: var(--r-lg);
958d26aClaude2255 background:
2256 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2257 var(--bg-elevated);
2258 position: relative;
2259 overflow: hidden;
2260 }
2261 .empty-state::before {
2262 content: '';
2263 position: absolute;
2264 inset: 0;
2265 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2266 background-size: 24px 24px;
2267 opacity: 0.5;
2268 pointer-events: none;
2269 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2270 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2271 }
2272 :root[data-theme='light'] .empty-state::before {
2273 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2274 }
958d26aClaude2275 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2276 .empty-state h2 {
958d26aClaude2277 font-size: var(--t-xl);
2ce1d0bClaude2278 margin-bottom: 8px;
958d26aClaude2279 color: var(--text-strong);
2280 letter-spacing: -0.022em;
2ce1d0bClaude2281 }
958d26aClaude2282 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2283 .empty-state pre {
2284 text-align: left;
2285 display: inline-block;
2286 background: var(--bg-secondary);
958d26aClaude2287 padding: 18px 24px;
2288 border-radius: var(--r-md);
fc1817aClaude2289 border: 1px solid var(--border);
2290 font-family: var(--font-mono);
958d26aClaude2291 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2292 font-size: var(--t-sm);
958d26aClaude2293 margin-top: 24px;
fc1817aClaude2294 line-height: 1.8;
2ce1d0bClaude2295 color: var(--text);
958d26aClaude2296 box-shadow: var(--elev-1);
fc1817aClaude2297 }
2298
2ce1d0bClaude2299 /* ============================================================ */
2300 /* Badges */
2301 /* ============================================================ */
fc1817aClaude2302 .badge {
2ce1d0bClaude2303 display: inline-flex;
2304 align-items: center;
2305 gap: 4px;
2306 padding: 2px 9px;
2307 border-radius: var(--r-full);
2308 font-size: var(--t-xs);
fc1817aClaude2309 font-weight: 500;
2310 background: var(--bg-tertiary);
2311 border: 1px solid var(--border);
2312 color: var(--text-muted);
2ce1d0bClaude2313 line-height: 1.5;
fc1817aClaude2314 }
2315
2ce1d0bClaude2316 /* ============================================================ */
2317 /* Branch dropdown */
2318 /* ============================================================ */
fc1817aClaude2319 .branch-selector {
2320 display: inline-flex;
2321 align-items: center;
2ce1d0bClaude2322 gap: 6px;
2323 padding: 6px 12px;
2324 background: var(--bg-elevated);
fc1817aClaude2325 border: 1px solid var(--border);
2ce1d0bClaude2326 border-radius: var(--r-sm);
2327 font-size: var(--t-sm);
fc1817aClaude2328 color: var(--text);
2329 margin-bottom: 12px;
2ce1d0bClaude2330 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2331 }
2ce1d0bClaude2332 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2333
06d5ffeClaude2334 .branch-dropdown {
2335 position: relative;
2336 display: inline-block;
2337 margin-bottom: 12px;
2338 }
2339 .branch-dropdown-content {
2340 display: none;
2341 position: absolute;
2ce1d0bClaude2342 top: calc(100% + 4px);
06d5ffeClaude2343 left: 0;
2344 z-index: 10;
2ce1d0bClaude2345 min-width: 220px;
2346 background: var(--bg-elevated);
2347 border: 1px solid var(--border-strong);
2348 border-radius: var(--r-md);
2349 overflow: hidden;
2350 box-shadow: var(--elev-3);
06d5ffeClaude2351 }
2352 .branch-dropdown:hover .branch-dropdown-content,
2353 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2354 .branch-dropdown-content a {
2355 display: block;
2ce1d0bClaude2356 padding: 9px 14px;
2357 font-size: var(--t-sm);
06d5ffeClaude2358 color: var(--text);
2359 border-bottom: 1px solid var(--border);
2ce1d0bClaude2360 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2361 }
2362 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2363 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2364 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2365
2ce1d0bClaude2366 /* ============================================================ */
2367 /* Card grid */
2368 /* ============================================================ */
2369 .card-grid {
2370 display: grid;
2371 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2372 gap: 16px;
2373 }
fc1817aClaude2374 .card {
2375 border: 1px solid var(--border);
2ce1d0bClaude2376 border-radius: var(--r-md);
958d26aClaude2377 padding: 20px;
2ce1d0bClaude2378 background: var(--bg-elevated);
2379 transition:
958d26aClaude2380 border-color var(--t-base) var(--ease),
2381 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2382 box-shadow var(--t-base) var(--ease);
2383 position: relative;
2384 overflow: hidden;
958d26aClaude2385 isolation: isolate;
2386 }
2387 .card::before {
2388 content: '';
2389 position: absolute;
2390 inset: 0;
2391 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2392 opacity: 0;
2393 transition: opacity var(--t-base) var(--ease);
2394 pointer-events: none;
2395 z-index: -1;
2ce1d0bClaude2396 }
2397 .card:hover {
2398 border-color: var(--border-strong);
2399 box-shadow: var(--elev-2);
958d26aClaude2400 transform: translateY(-2px);
2ce1d0bClaude2401 }
958d26aClaude2402 .card:hover::before { opacity: 1; }
2403 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2404 .card h3 a { color: var(--text); font-weight: 600; }
2405 .card h3 a:hover { color: var(--text-link); }
2406 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2407 .card-meta {
2408 display: flex;
2409 gap: 14px;
2410 margin-top: 14px;
2411 padding-top: 14px;
2412 border-top: 1px solid var(--border);
2413 font-size: var(--t-xs);
2414 color: var(--text-muted);
2415 }
2416 .card-meta span { display: flex; align-items: center; gap: 5px; }
2417
2418 /* ============================================================ */
2419 /* Stat card / box */
2420 /* ============================================================ */
2421 .stat-card {
2422 background: var(--bg-elevated);
2423 border: 1px solid var(--border);
2424 border-radius: var(--r-md);
fc1817aClaude2425 padding: 16px;
2ce1d0bClaude2426 transition: border-color var(--t-fast) var(--ease);
2427 }
2428 .stat-card:hover { border-color: var(--border-strong); }
2429 .stat-label {
2430 font-size: var(--t-xs);
2431 color: var(--text-muted);
2432 text-transform: uppercase;
2433 letter-spacing: 0.06em;
2434 font-weight: 500;
2435 }
2436 .stat-value {
2437 font-size: var(--t-xl);
2438 font-weight: 700;
2439 margin-top: 4px;
2440 letter-spacing: -0.025em;
2441 color: var(--text);
2442 font-feature-settings: 'tnum';
fc1817aClaude2443 }
06d5ffeClaude2444
2ce1d0bClaude2445 /* ============================================================ */
2446 /* Star button */
2447 /* ============================================================ */
06d5ffeClaude2448 .star-btn {
2449 display: inline-flex;
2450 align-items: center;
2451 gap: 6px;
2ce1d0bClaude2452 padding: 5px 12px;
2453 background: var(--bg-elevated);
06d5ffeClaude2454 border: 1px solid var(--border);
2ce1d0bClaude2455 border-radius: var(--r-sm);
06d5ffeClaude2456 color: var(--text);
2ce1d0bClaude2457 font-size: var(--t-sm);
2458 font-weight: 500;
06d5ffeClaude2459 cursor: pointer;
2ce1d0bClaude2460 transition: all var(--t-fast) var(--ease);
2461 }
2462 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2463 .star-btn.starred {
2464 color: var(--yellow);
958d26aClaude2465 border-color: rgba(251,191,36,0.4);
2466 background: rgba(251,191,36,0.08);
06d5ffeClaude2467 }
2468
2ce1d0bClaude2469 /* ============================================================ */
2470 /* User profile */
2471 /* ============================================================ */
06d5ffeClaude2472 .user-profile {
2473 display: flex;
2474 gap: 32px;
2475 margin-bottom: 32px;
2ce1d0bClaude2476 padding: 24px;
2477 background: var(--bg-elevated);
2478 border: 1px solid var(--border);
2479 border-radius: var(--r-lg);
06d5ffeClaude2480 }
2481 .user-avatar {
2482 width: 96px;
2483 height: 96px;
2ce1d0bClaude2484 border-radius: var(--r-full);
2485 background: var(--accent-gradient-soft);
2486 border: 1px solid var(--border-strong);
06d5ffeClaude2487 display: flex;
2488 align-items: center;
2489 justify-content: center;
2ce1d0bClaude2490 font-size: 36px;
2491 font-weight: 600;
2492 color: var(--text);
06d5ffeClaude2493 flex-shrink: 0;
2ce1d0bClaude2494 letter-spacing: -0.02em;
06d5ffeClaude2495 }
2ce1d0bClaude2496 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2497 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2498 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2499
2ce1d0bClaude2500 /* ============================================================ */
2501 /* New repo form */
2502 /* ============================================================ */
2503 .new-repo-form { max-width: 640px; }
2504 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2505 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2506 .visibility-option {
2507 flex: 1;
2ce1d0bClaude2508 padding: 16px;
06d5ffeClaude2509 border: 1px solid var(--border);
2ce1d0bClaude2510 border-radius: var(--r-md);
2511 background: var(--bg-elevated);
06d5ffeClaude2512 cursor: pointer;
2ce1d0bClaude2513 text-align: left;
2514 transition: all var(--t-fast) var(--ease);
2515 }
2516 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2517 .visibility-option:has(input:checked) {
2518 border-color: var(--accent);
2519 background: var(--accent-gradient-faint);
2520 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2521 }
2522 .visibility-option input { display: none; }
2ce1d0bClaude2523 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2524 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2525
2ce1d0bClaude2526 /* ============================================================ */
2527 /* Issues */
2528 /* ============================================================ */
2529 .issue-tabs { display: flex; gap: 4px; }
2530 .issue-tabs a {
2531 color: var(--text-muted);
2532 font-size: var(--t-sm);
2533 font-weight: 500;
2534 padding: 6px 12px;
2535 border-radius: var(--r-sm);
2536 transition: all var(--t-fast) var(--ease);
2537 }
2538 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2539 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2540
2ce1d0bClaude2541 .issue-list {
2542 border: 1px solid var(--border);
2543 border-radius: var(--r-md);
2544 overflow: hidden;
2545 background: var(--bg-elevated);
2546 }
79136bbClaude2547 .issue-item {
2548 display: flex;
2ce1d0bClaude2549 gap: 14px;
79136bbClaude2550 align-items: flex-start;
2ce1d0bClaude2551 padding: 14px 16px;
79136bbClaude2552 border-bottom: 1px solid var(--border);
2ce1d0bClaude2553 transition: background var(--t-fast) var(--ease);
79136bbClaude2554 }
2555 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2556 .issue-item:hover { background: var(--bg-hover); }
2557 .issue-state-icon {
2558 font-size: 14px;
2559 padding-top: 2px;
2560 width: 18px;
2561 height: 18px;
2562 display: inline-flex;
2563 align-items: center;
2564 justify-content: center;
2565 border-radius: var(--r-full);
2566 flex-shrink: 0;
2567 }
79136bbClaude2568 .state-open { color: var(--green); }
958d26aClaude2569 .state-closed { color: #b69dff; }
2ce1d0bClaude2570 .issue-title {
debcf27Claude2571 font-family: var(--font-display);
2572 font-size: var(--t-md);
2ce1d0bClaude2573 font-weight: 600;
debcf27Claude2574 line-height: 1.35;
2575 letter-spacing: -0.012em;
2576 }
2577 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2578 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2579 .issue-meta {
2580 font-family: var(--font-mono);
2581 font-size: 11px;
2582 color: var(--text-muted);
2583 margin-top: 5px;
2584 letter-spacing: 0.01em;
2ce1d0bClaude2585 }
79136bbClaude2586
2587 .issue-badge {
2588 display: inline-flex;
2589 align-items: center;
2ce1d0bClaude2590 gap: 6px;
79136bbClaude2591 padding: 4px 12px;
2ce1d0bClaude2592 border-radius: var(--r-full);
2593 font-size: var(--t-sm);
79136bbClaude2594 font-weight: 500;
2ce1d0bClaude2595 line-height: 1.4;
79136bbClaude2596 }
958d26aClaude2597 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
2598 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
2599 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude2600 .state-merged { color: var(--accent); }
958d26aClaude2601 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude2602
2ce1d0bClaude2603 .issue-detail { max-width: 920px; }
79136bbClaude2604 .issue-comment-box {
2605 border: 1px solid var(--border);
2ce1d0bClaude2606 border-radius: var(--r-md);
79136bbClaude2607 margin-bottom: 16px;
2608 overflow: hidden;
2ce1d0bClaude2609 background: var(--bg-elevated);
79136bbClaude2610 }
2611 .comment-header {
2612 background: var(--bg-secondary);
2ce1d0bClaude2613 padding: 10px 16px;
79136bbClaude2614 border-bottom: 1px solid var(--border);
2ce1d0bClaude2615 font-size: var(--t-sm);
79136bbClaude2616 color: var(--text-muted);
2617 }
2618
2ce1d0bClaude2619 /* ============================================================ */
2620 /* Panel — flexible container used across many pages */
2621 /* ============================================================ */
2622 .panel {
2623 background: var(--bg-elevated);
2624 border: 1px solid var(--border);
2625 border-radius: var(--r-md);
2626 overflow: hidden;
2627 }
2628 .panel-item {
2629 display: flex;
2630 align-items: center;
2631 gap: 12px;
2632 padding: 12px 16px;
79136bbClaude2633 border-bottom: 1px solid var(--border);
2ce1d0bClaude2634 transition: background var(--t-fast) var(--ease);
2635 }
2636 .panel-item:last-child { border-bottom: none; }
2637 .panel-item:hover { background: var(--bg-hover); }
2638 .panel-empty {
2639 padding: 24px;
2640 text-align: center;
79136bbClaude2641 color: var(--text-muted);
2ce1d0bClaude2642 font-size: var(--t-sm);
79136bbClaude2643 }
2644
2ce1d0bClaude2645 /* ============================================================ */
2646 /* Search */
2647 /* ============================================================ */
79136bbClaude2648 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude2649
2ce1d0bClaude2650 /* ============================================================ */
2651 /* Timeline */
2652 /* ============================================================ */
2653 .timeline { position: relative; padding-left: 28px; }
16b325cClaude2654 .timeline::before {
2655 content: '';
2656 position: absolute;
2657 left: 4px;
2658 top: 8px;
2659 bottom: 8px;
2660 width: 2px;
2ce1d0bClaude2661 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude2662 }
2ce1d0bClaude2663 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude2664 .timeline-dot {
2665 position: absolute;
2ce1d0bClaude2666 left: -28px;
2667 top: 8px;
2668 width: 12px;
2669 height: 12px;
2670 border-radius: var(--r-full);
2671 background: var(--accent-gradient);
16b325cClaude2672 border: 2px solid var(--bg);
2ce1d0bClaude2673 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude2674 }
2675 .timeline-content {
2ce1d0bClaude2676 background: var(--bg-elevated);
16b325cClaude2677 border: 1px solid var(--border);
2ce1d0bClaude2678 border-radius: var(--r-md);
2679 padding: 14px 16px;
16b325cClaude2680 }
f1ab587Claude2681
2ce1d0bClaude2682 /* ============================================================ */
2683 /* Toggle switch */
2684 /* ============================================================ */
f1ab587Claude2685 .toggle-switch {
2686 position: relative;
2687 display: inline-block;
2ce1d0bClaude2688 width: 40px;
2689 height: 22px;
f1ab587Claude2690 flex-shrink: 0;
2691 margin-left: 16px;
2692 }
2693 .toggle-switch input { opacity: 0; width: 0; height: 0; }
2694 .toggle-slider {
2695 position: absolute;
2696 cursor: pointer;
2697 top: 0; left: 0; right: 0; bottom: 0;
2698 background: var(--bg-tertiary);
2699 border: 1px solid var(--border);
2ce1d0bClaude2700 border-radius: var(--r-full);
2701 transition: all var(--t-base) var(--ease);
f1ab587Claude2702 }
2703 .toggle-slider::before {
2704 content: '';
2705 position: absolute;
2ce1d0bClaude2706 height: 16px;
2707 width: 16px;
f1ab587Claude2708 left: 2px;
2709 bottom: 2px;
2710 background: var(--text-muted);
2ce1d0bClaude2711 border-radius: var(--r-full);
2712 transition: all var(--t-base) var(--ease);
f1ab587Claude2713 }
2714 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude2715 background: var(--accent-gradient);
2716 border-color: transparent;
958d26aClaude2717 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude2718 }
2719 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude2720 transform: translateX(18px);
f1ab587Claude2721 background: #fff;
2722 }
ef8d378Claude2723
2724 /* ============================================================
2725 * 2026 polish layer (purely additive — no layout changes).
2726 * Improves typography rendering, focus states, hover affordances,
2727 * and adds the gradient brand cue to primary buttons. Anything
2728 * that could alter dimensions stays in the rules above.
2729 * ============================================================ */
2730 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
2731 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
2732 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
2733
2734 h1, h2, h3, h4 { letter-spacing: -0.018em; }
2735 h1 { letter-spacing: -0.025em; }
2736
2737 /* Smoother colour transitions everywhere links live */
2738 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
2739
2740 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
2741 .btn {
2742 transition:
2743 background 120ms cubic-bezier(0.16,1,0.3,1),
2744 border-color 120ms cubic-bezier(0.16,1,0.3,1),
2745 transform 120ms cubic-bezier(0.16,1,0.3,1),
2746 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
2747 }
2748 .btn:active { transform: translateY(0.5px); }
2749 .btn:focus-visible {
2750 outline: none;
2751 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
2752 }
2753 .btn-primary {
2754 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2755 border-color: transparent;
2756 box-shadow:
2757 inset 0 1px 0 rgba(255,255,255,0.15),
2758 0 1px 2px rgba(168,85,247,0.25);
2759 }
2760 .btn-primary:hover {
2761 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
2762 filter: none;
2763 box-shadow:
2764 inset 0 1px 0 rgba(255,255,255,0.20),
2765 0 4px 12px rgba(168,85,247,0.30);
2766 }
2767
2768 /* Inputs: cleaner focus ring + hover */
2769 .form-group input:hover,
2770 .form-group textarea:hover,
2771 .form-group select:hover {
2772 border-color: rgba(255,255,255,0.14);
2773 }
2774 .form-group input:focus,
2775 .form-group textarea:focus,
2776 .form-group select:focus {
2777 border-color: rgba(168,85,247,0.55);
2778 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
2779 }
2780 :root[data-theme='light'] .form-group input:hover,
2781 :root[data-theme='light'] .form-group textarea:hover,
2782 :root[data-theme='light'] .form-group select:hover {
2783 border-color: rgba(0,0,0,0.18);
2784 }
2785
2786 /* Cards: subtle hover lift */
2787 .card {
2788 transition:
2789 border-color 160ms cubic-bezier(0.16,1,0.3,1),
2790 transform 160ms cubic-bezier(0.16,1,0.3,1),
2791 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
2792 }
2793 .card:hover {
2794 border-color: rgba(255,255,255,0.18);
2795 transform: translateY(-1px);
2796 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
2797 }
2798 :root[data-theme='light'] .card:hover {
2799 border-color: rgba(0,0,0,0.18);
2800 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
2801 }
2802
2803 /* Issue / commit / panel rows: smoother hover */
2804 .issue-item, .commit-item {
2805 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
2806 }
2807 .repo-nav a {
2808 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
2809 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
2810 }
2811 .nav-link {
2812 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
2813 }
2814
2815 /* Auth card: subtle elevation so register/login feel premium */
2816 .auth-container {
2817 background: var(--bg-secondary);
2818 border: 1px solid var(--border);
2819 border-radius: var(--r-lg, 12px);
2820 padding: 32px;
2821 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
2822 }
2823 :root[data-theme='light'] .auth-container {
2824 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
2825 }
2826 .auth-container h2 { letter-spacing: -0.025em; }
2827
2828 /* Empty state: dashed border, generous padding */
2829 .empty-state {
2830 border: 1px dashed var(--border);
2831 border-radius: var(--r-lg, 12px);
2832 background: var(--bg);
2833 }
2834
2835 /* Badges + commit-sha: smoother transition */
2836 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
2837
2838 /* Gradient text utility — matches landing's accent treatment */
2839 .gradient-text {
2840 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2841 -webkit-background-clip: text;
2842 background-clip: text;
2843 -webkit-text-fill-color: transparent;
2844 }
2845
2846 /* Custom scrollbars (subtle, themed) */
2847 ::-webkit-scrollbar { width: 10px; height: 10px; }
2848 ::-webkit-scrollbar-track { background: transparent; }
2849 ::-webkit-scrollbar-thumb {
2850 background: rgba(255,255,255,0.06);
2851 border: 2px solid var(--bg);
2852 border-radius: 9999px;
2853 }
2854 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
2855 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
2856 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
2857
2858 /* Honour reduced-motion preference */
2859 @media (prefers-reduced-motion: reduce) {
2860 *, *::before, *::after {
2861 animation-duration: 0.01ms !important;
2862 animation-iteration-count: 1 !important;
2863 transition-duration: 0.01ms !important;
2864 }
2865 }
c63b860Claude2866
2867 /* Block O3 — visual coherence additive rules. */
2868 .card.card-p-none { padding: 0; }
2869 .card.card-p-sm { padding: var(--space-3); }
2870 .card.card-p-md { padding: var(--space-4); }
2871 .card.card-p-lg { padding: var(--space-6); }
2872 .card.card-elevated { box-shadow: var(--elev-2); }
2873 .card.card-gradient {
2874 background:
2875 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
2876 var(--bg-elevated);
2877 }
2878 .card.card-gradient::before { opacity: 1; }
2879 .notice {
2880 padding: var(--space-3) var(--space-4);
2881 border-radius: var(--radius-md);
2882 border: 1px solid var(--border);
2883 background: var(--bg-elevated);
2884 color: var(--text);
2885 font-size: var(--font-size-sm);
2886 margin-bottom: var(--space-6);
2887 line-height: var(--leading-normal);
2888 }
2889 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
2890 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
2891 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
2892 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
2893 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
2894 .email-preview {
2895 padding: var(--space-5);
2896 background: #fff;
2897 color: #111;
2898 border-radius: var(--radius-md);
2899 }
2900 .code-block {
2901 margin: var(--space-2) 0 0;
2902 padding: var(--space-3);
2903 background: var(--bg-tertiary);
2904 border: 1px solid var(--border-subtle);
2905 border-radius: var(--radius-sm);
2906 font-family: var(--font-mono);
2907 font-size: var(--font-size-xs);
2908 line-height: var(--leading-normal);
2909 overflow-x: auto;
2910 }
2911 .status-pill-operational {
2912 display: inline-flex;
2913 align-items: center;
2914 padding: var(--space-1) var(--space-3);
2915 border-radius: var(--radius-full);
2916 font-size: var(--font-size-xs);
2917 font-weight: 600;
2918 background: rgba(52,211,153,0.15);
2919 color: var(--green);
2920 }
2921 .api-tag {
2922 display: inline-flex;
2923 align-items: center;
2924 font-size: var(--font-size-xs);
2925 padding: 2px var(--space-2);
2926 border-radius: var(--radius-sm);
2927 font-family: var(--font-mono);
2928 }
2929 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
2930 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
2931 .stat-number {
2932 font-size: var(--font-size-xl);
2933 font-weight: 700;
2934 color: var(--text-strong);
2935 line-height: var(--leading-tight);
2936 }
2937 .stat-number-accent { color: var(--accent); }
2938 .stat-number-blue { color: var(--blue); }
2939 .stat-number-purple { color: var(--text-link); }
2940 footer .footer-tag-sub {
2941 margin-top: var(--space-2);
2942 font-size: var(--font-size-xs);
2943 color: var(--text-faint);
2944 line-height: var(--leading-normal);
2945 }
2946 footer .footer-version-pill {
2947 display: inline-flex;
2948 align-items: center;
2949 gap: var(--space-2);
2950 padding: var(--space-1) var(--space-3);
2951 border-radius: var(--radius-full);
2952 border: 1px solid var(--border);
2953 background: var(--bg-elevated);
2954 color: var(--text-faint);
2955 font-family: var(--font-mono);
2956 font-size: var(--font-size-xs);
2957 cursor: help;
2958 }
2959 footer .footer-banner {
2960 max-width: 1240px;
2961 margin: var(--space-6) auto 0;
2962 padding: var(--space-3) var(--space-4);
2963 border-radius: var(--radius-md);
2964 border: 1px solid var(--border);
2965 background: var(--bg-elevated);
2966 color: var(--text);
2967 font-family: var(--font-mono);
2968 font-size: var(--font-size-xs);
2969 letter-spacing: 0.04em;
2970 text-transform: uppercase;
2971 text-align: center;
2972 }
2973 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
2974 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
2975 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App2976
cf9178bTest User2977 /* ============================================================ */
2978 /* Global toast notifications. */
2979 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
2980 /* ============================================================ */
2981 .gx-toast {
2982 pointer-events: auto;
2983 display: inline-flex;
2984 align-items: flex-start;
2985 gap: 10px;
2986 min-width: 280px;
2987 max-width: min(440px, calc(100vw - 32px));
2988 padding: 12px 14px 12px 12px;
2989 background: var(--bg-elevated);
2990 border: 1px solid var(--border);
2991 border-radius: 10px;
2992 box-shadow:
2993 0 12px 36px -10px rgba(15,16,28,0.18),
2994 0 2px 6px rgba(15,16,28,0.04),
2995 0 0 0 1px rgba(15,16,28,0.02);
2996 color: var(--text);
2997 font-size: 13.5px;
2998 line-height: 1.45;
2999 opacity: 0;
3000 transform: translateX(16px);
3001 transition:
3002 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3003 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3004 }
3005 .gx-toast--in { opacity: 1; transform: translateX(0); }
3006 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3007 .gx-toast__icon {
3008 flex-shrink: 0;
3009 width: 20px; height: 20px;
3010 border-radius: 50%;
3011 display: inline-flex;
3012 align-items: center;
3013 justify-content: center;
3014 font-size: 12px;
3015 font-weight: 700;
3016 line-height: 1;
3017 margin-top: 1px;
3018 }
3019 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3020 .gx-toast__close {
3021 flex-shrink: 0;
3022 width: 22px; height: 22px;
3023 border: 0;
3024 background: transparent;
3025 color: var(--text-muted);
3026 font-size: 18px;
3027 line-height: 1;
3028 cursor: pointer;
3029 border-radius: 4px;
3030 padding: 0;
3031 margin: -2px -2px 0 0;
3032 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3033 }
3034 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3035 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3036 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3037 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3038 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3039 @media (prefers-reduced-motion: reduce) {
3040 .gx-toast { transition: opacity 60ms linear; transform: none; }
3041 .gx-toast--in, .gx-toast--out { transform: none; }
3042 }
3043
dc26881CC LABS App3044 /* ============================================================ */
3045 /* Block U4 — cross-document view transitions. */
3046 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3047 /* every same-origin navigation. Older browsers ignore these */
3048 /* rules entirely — no JS shim, no breakage. */
3049 /* prefers-reduced-motion disables the animation honourably. */
3050 /* ============================================================ */
3051 @view-transition {
3052 navigation: auto;
3053 }
3054 ::view-transition-old(root),
3055 ::view-transition-new(root) {
3056 animation-duration: 200ms;
3057 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3058 }
3059 ::view-transition-old(root) {
3060 animation-name: vt-fade-out;
3061 }
3062 ::view-transition-new(root) {
3063 animation-name: vt-fade-in;
3064 }
3065 @keyframes vt-fade-out {
3066 to { opacity: 0; }
3067 }
3068 @keyframes vt-fade-in {
3069 from { opacity: 0; }
3070 }
3071 @media (prefers-reduced-motion: reduce) {
3072 ::view-transition-old(root),
3073 ::view-transition-new(root) {
3074 animation-duration: 0s;
3075 }
3076 }
3077 /* The transition system picks up its root subject from this rule. */
3078 body {
3079 view-transition-name: root;
3080 }
fc1817aClaude3081`;