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.tsxBlame3142 lines · 4 contributors
fc1817aClaude1import type { FC, PropsWithChildren } from "hono/jsx";
06d5ffeClaude2import type { User } from "../db/schema";
3import { hljsThemeCss } from "../lib/highlight";
45e31d0Claude4import { clientJs } from "./client-js";
05cdb85Claude5import { getBuildInfo } from "../lib/build-info";
fc1817aClaude6
06d5ffeClaude7export const Layout: FC<
3ef4c9dClaude8 PropsWithChildren<{
9 title?: string;
10 user?: User | null;
11 notificationCount?: number;
6fc53bdClaude12 theme?: "dark" | "light";
5f2e749Claude13 // Block L10 — additive SEO + Open Graph fields. All optional;
14 // omission preserves the prior render exactly (regression-safe).
15 fullTitle?: string;
16 description?: string;
17 ogTitle?: string;
18 ogDescription?: string;
19 ogType?: string;
20 twitterCard?: "summary" | "summary_large_image";
c63b860Claude21 // Block O3 — site-wide footer banner stripe. When non-empty,
22 // renders below the footer-bottom row; wired from
23 // admin.system_flags.site_banner_text.
24 siteBannerText?: string;
25 siteBannerLevel?: "info" | "warn" | "error";
3ef4c9dClaude26 }>
5f2e749Claude27> = ({
28 children,
29 title,
30 user,
31 notificationCount,
32 theme,
33 fullTitle,
34 description,
35 ogTitle,
36 ogDescription,
37 ogType,
38 twitterCard,
c63b860Claude39 siteBannerText,
40 siteBannerLevel,
5f2e749Claude41}) => {
81201ccTest User42 // Default to "light" — feedback from operators was the dark default
43 // felt too gamer-ish and not what senior platform engineers expect from
44 // a tool they'd evaluate alongside Vercel / Linear / Stripe. Users who
45 // explicitly want dark can flip via the theme toggle (cookie persists).
46 const initialTheme = theme === "dark" ? "dark" : "light";
05cdb85Claude47 const build = getBuildInfo();
5f2e749Claude48 // L10 — when `fullTitle` is provided, use it verbatim (no " — gluecron"
49 // suffix); otherwise fall back to the existing `title` + suffix behaviour.
50 const renderedTitle = fullTitle
51 ? fullTitle
52 : title
53 ? `${title} — gluecron`
54 : "gluecron";
fc1817aClaude55 return (
6fc53bdClaude56 <html lang="en" data-theme={initialTheme}>
fc1817aClaude57 <head>
58 <meta charset="UTF-8" />
59 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
eae38d1Claude60 <meta name="theme-color" content="#0d1117" />
3a5755eClaude61 {/* 2026 polish — load Inter + Inter Tight + JetBrains Mono for
62 crisp modern typography. `preconnect` keeps the handshake
63 cost off the critical path; `display=swap` means we never
64 block first paint waiting on fonts. */}
65 <link rel="preconnect" href="https://fonts.googleapis.com" />
66 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
67 <link
68 rel="stylesheet"
69 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"
70 />
44fe49bClaude71 {/* PWA removed 2026-05-16 — repeated reload-loop bugs (admin
72 dashboard, deploy pill, admin-screen flash). A git host has
73 no use for service workers or install-as-app. Manifest link
74 and SW registrations are gone permanently. */}
eae38d1Claude75 <link rel="icon" type="image/svg+xml" href="/icon.svg" />
5f2e749Claude76 <title>{renderedTitle}</title>
77 {description && <meta name="description" content={description} />}
78 {(ogTitle || fullTitle || title) && (
79 <meta property="og:title" content={ogTitle ?? fullTitle ?? renderedTitle} />
80 )}
81 {(ogDescription || description) && (
82 <meta
83 property="og:description"
84 content={ogDescription ?? description ?? ""}
85 />
86 )}
87 {ogType && <meta property="og:type" content={ogType} />}
88 {twitterCard && <meta name="twitter:card" content={twitterCard} />}
fa880f2Claude89 <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
90 <style dangerouslySetInnerHTML={{ __html: css }} />
91 <style dangerouslySetInnerHTML={{ __html: hljsThemeCss }} />
fc1817aClaude92 </head>
93 <body>
4a52a98Claude94 <div class="prelaunch-banner" role="status" aria-live="polite">
95 Pre-launch &mdash; Gluecron is in final validation. Public signups
96 and git hosting for non-owner users open after launch review.
97 </div>
cd4f63bTest User98 {/* Block Q3 — Playground banner. Renders only when the active
99 user is a playground account with a future expiry; the small
100 inline script counts down once per minute. Strip is dismissible
101 per-page-load (re-appears on next nav) — gentle, not noisy. */}
102 {user && (user as any).isPlayground && (user as any).playgroundExpiresAt && (
103 <div
104 class="playground-banner"
105 role="status"
106 aria-live="polite"
107 data-playground-expires={
108 ((user as any).playgroundExpiresAt instanceof Date
109 ? (user as any).playgroundExpiresAt.toISOString()
110 : String((user as any).playgroundExpiresAt))
111 }
112 >
113 <span class="playground-banner-icon" aria-hidden="true">{"\u{1F3AE}"}</span>
114 <span class="playground-banner-text">
115 Playground account &mdash;{" "}
116 <span class="playground-banner-countdown">expires soon</span>.{" "}
117 <a href="/play/claim" class="playground-banner-cta">
118 Save your work &rarr;
119 </a>
120 </span>
121 <button
122 type="button"
123 class="playground-banner-dismiss"
124 aria-label="Dismiss"
125 data-playground-dismiss="1"
126 >
127 {"×"}
128 </button>
129 <script
130 dangerouslySetInnerHTML={{
131 __html: /* js */ `
132 (function () {
133 var el = document.currentScript && document.currentScript.parentElement;
134 if (!el) return;
135 var iso = el.getAttribute('data-playground-expires');
136 if (!iso) return;
137 var target = Date.parse(iso);
138 if (isNaN(target)) return;
139 var out = el.querySelector('.playground-banner-countdown');
140 function render() {
141 var ms = target - Date.now();
142 if (!out) return;
143 if (ms <= 0) { out.textContent = 'expired'; return; }
144 var mins = Math.floor(ms / 60000);
145 var hrs = Math.floor(mins / 60);
146 if (hrs > 1) out.textContent = hrs + ' hours left';
147 else if (hrs === 1) out.textContent = '1 hour left';
148 else if (mins > 1) out.textContent = mins + ' minutes left';
149 else out.textContent = 'less than a minute left';
150 }
151 render();
152 setInterval(render, 60000);
153 var dismiss = el.querySelector('[data-playground-dismiss="1"]');
154 if (dismiss) {
155 dismiss.addEventListener('click', function () {
156 el.style.display = 'none';
157 });
158 }
159 })();
160 `,
161 }}
162 />
163 </div>
164 )}
fc1817aClaude165 <header>
166 <nav>
167 <a href="/" class="logo">
168 gluecron
169 </a>
3ef4c9dClaude170 <div class="nav-search">
001af43Claude171 <form method="get" action="/search">
3ef4c9dClaude172 <input
173 type="search"
174 name="q"
175 placeholder="Search (press /)"
176 aria-label="Search"
177 />
178 </form>
179 </div>
06d5ffeClaude180 <div class="nav-right">
f764c07Claude181 {/* Block N3 — site-admin platform-deploy status pill. Hidden
182 by default; revealed client-side once /admin/deploys/latest.json
183 responds 200 (non-admins get 401/403 and the pill stays
184 hidden). Subscribes to the `platform:deploys` SSE topic
185 for live updates. See `deployPillScript` below. */}
186 {user && (
187 <a
188 id="deploy-pill"
189 href="/admin/deploys"
190 class="nav-deploy-pill"
191 style="display:none"
192 aria-label="Platform deploy status"
193 title="Platform deploy status"
194 >
195 <span class="deploy-pill-dot" />
196 <span class="deploy-pill-text">Deploys</span>
197 </a>
198 )}
6fc53bdClaude199 <a
200 href="/theme/toggle"
201 class="nav-link nav-theme"
202 title="Toggle theme"
203 aria-label="Toggle theme"
204 >
205 <span class="theme-icon-dark">{"\u263E"}</span>
206 <span class="theme-icon-light">{"\u2600"}</span>
207 </a>
c81ab7aClaude208 <a href="/explore" class="nav-link">
209 Explore
210 </a>
06d5ffeClaude211 {user ? (
212 <>
f1ab587Claude213 <a href="/dashboard" class="nav-link" style="font-weight: 600">
214 Dashboard
215 </a>
a6ff0f2Claude216 <a href="/pulls" class="nav-link">
217 Pulls
218 </a>
bdbd0deClaude219 <a href="/import" class="nav-link">
220 Import
221 </a>
06d5ffeClaude222 <a href="/new" class="btn btn-sm btn-primary">
223 + New
224 </a>
225 <a href={`/${user.username}`} class="nav-user">
226 {user.displayName || user.username}
227 </a>
228 <a href="/settings" class="nav-link">
229 Settings
230 </a>
231 <a href="/logout" class="nav-link">
232 Sign out
233 </a>
234 </>
235 ) : (
236 <>
237 <a href="/login" class="nav-link">
238 Sign in
239 </a>
240 <a href="/register" class="btn btn-sm btn-primary">
241 Register
242 </a>
243 </>
244 )}
245 </div>
fc1817aClaude246 </nav>
247 </header>
45e31d0Claude248 <main id="main-content">{children}</main>
cf9178bTest User249 {/* Global toast host — populated by the toastScript below from
250 ?success= / ?error= / ?toast= query params. Replaces the
251 per-page banner pattern with one polished slide-in. */}
252 <div
253 id="toast-host"
254 aria-live="polite"
255 aria-atomic="true"
256 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"
257 />
fc1817aClaude258 <footer>
958d26aClaude259 <div class="footer-inner">
260 <div class="footer-brand">
261 <a href="/" class="logo">gluecron</a>
262 <p class="footer-tag">
263 AI-native code intelligence. Self-hosted git, automated CI,
264 push-time gates. Software that ships itself.
265 </p>
266 </div>
267 <div class="footer-links">
268 <div class="footer-col">
269 <div class="footer-col-title">Product</div>
b0148e9Claude270 <a href="/features">Features</a>
271 <a href="/pricing">Pricing</a>
958d26aClaude272 <a href="/explore">Explore</a>
273 <a href="/marketplace">Marketplace</a>
274 </div>
275 <div class="footer-col">
276 <div class="footer-col-title">Platform</div>
b0148e9Claude277 <a href="/help">Quickstart</a>
958d26aClaude278 <a href="/status">Status</a>
279 <a href="/api/graphql">GraphQL</a>
280 <a href="/mcp">MCP server</a>
281 </div>
282 <div class="footer-col">
b0148e9Claude283 <div class="footer-col-title">Company</div>
284 <a href="/about">About</a>
958d26aClaude285 <a href="/terms">Terms</a>
286 <a href="/privacy">Privacy</a>
287 <a href="/acceptable-use">Acceptable use</a>
288 </div>
289 </div>
290 </div>
291 <div class="footer-bottom">
292 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude293 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
294 <span class="footer-build-dot" aria-hidden="true" />
295 {build.sha} · {build.branch}
296 </span>
36b4cbdClaude297 </div>
c63b860Claude298 {siteBannerText ? (
299 <div
300 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
301 role="status"
302 aria-live="polite"
303 >
304 {siteBannerText}
305 </div>
306 ) : null}
fc1817aClaude307 </footer>
05cdb85Claude308 {/* Live update poller — checks /api/version every 15s, prompts
309 reload when the running sha changes. Pure progressive-
310 enhancement; degrades to nothing if JS is off. */}
311 <div
312 id="version-banner"
313 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"
314 >
315 <span style="display:inline-flex;align-items:center;gap:8px">
316 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
317 <span>New version available</span>
318 </span>
319 <button
320 type="button"
321 id="version-banner-reload"
322 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"
323 >
324 Reload
325 </button>
326 </div>
fa880f2Claude327 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude328 {/* Block N3 — site-admin deploy status pill (script-only). The pill
329 container is rendered above for authed users; this script bootstraps
330 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
331 and the pill stays display:none — zero leak. */}
332 {user && (
333 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
334 )}
699e5c7Claude335 {/* Block I4 — Command palette shell (hidden by default) */}
336 <div
337 id="cmdk-backdrop"
338 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
339 />
340 <div
341 id="cmdk-panel"
342 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"
343 >
344 <input
345 id="cmdk-input"
346 type="text"
347 placeholder="Type a command..."
348 aria-label="Command palette"
dc26881CC LABS App349 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"
699e5c7Claude350 />
351 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
352 </div>
fa880f2Claude353 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude354 {/* PWA-kill script: actively unregisters any service worker
355 previously installed under gluecron.com. Recovers any browser
356 still trapped in the SW reload loop from the legacy registrations. */}
357 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User358 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude359 <script dangerouslySetInnerHTML={{ __html: navScript }} />
fc1817aClaude360 </body>
361 </html>
362 );
363};
364
05cdb85Claude365// Live version poller. Checks /api/version every 15s; if the sha differs
366// from the one we booted with, reveal the floating 'New version' pill so
367// the user can reload onto the new code without manually refreshing.
368const versionPollerScript = `
369 (function(){
370 var loadedSha = null;
371 var banner, btn;
372 function poll(){
373 fetch('/api/version', { cache: 'no-store' })
374 .then(function(r){ return r.ok ? r.json() : null; })
375 .then(function(j){
376 if (!j || !j.sha) return;
377 if (loadedSha === null) { loadedSha = j.sha; return; }
378 if (j.sha !== loadedSha && banner) {
379 banner.style.display = 'inline-flex';
380 }
381 })
382 .catch(function(){});
383 }
384 function init(){
385 banner = document.getElementById('version-banner');
386 btn = document.getElementById('version-banner-reload');
387 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
388 poll();
389 setInterval(poll, 15000);
390 }
391 if (document.readyState === 'loading') {
392 document.addEventListener('DOMContentLoaded', init);
393 } else {
394 init();
395 }
396 })();
397`;
398
f764c07Claude399// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
400// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
401// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
402// display:none — there's no leakage of admin-only data to other users.
403//
404// Pill states (CSS classes on the container drive colour):
405// .deploy-pill-success 🟢 "Deployed 12s ago"
406// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
407// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
408// .deploy-pill-empty ⚪ "No deploys yet"
409//
410// Relative-time auto-refreshes every 15s without re-fetching.
411export const deployPillScript = `
412 (function(){
413 var pill, dot, text;
414 var state = { latest: null, asOf: null };
415
416 function classifyAge(ms){
417 if (ms < 0) return 'just now';
418 var s = Math.floor(ms / 1000);
419 if (s < 5) return 'just now';
420 if (s < 60) return s + 's ago';
421 var m = Math.floor(s / 60);
422 if (m < 60) return m + 'm ago';
423 var h = Math.floor(m / 60);
424 if (h < 24) return h + 'h ago';
425 var d = Math.floor(h / 24);
426 return d + 'd ago';
427 }
428 function elapsed(ms){
429 if (ms < 0) ms = 0;
430 var s = Math.floor(ms / 1000);
431 if (s < 60) return s + 's';
432 var m = Math.floor(s / 60);
433 var rem = s - m * 60;
434 return m + 'm ' + rem + 's';
435 }
436
437 function render(){
438 if (!pill || !text || !dot) return;
439 var d = state.latest;
81201ccTest User440 // When there's no deploy event yet, keep the pill HIDDEN. Showing
441 // "No deploys yet" was visible noise on every admin page load and
442 // flashed during reconnect cycles — admins don't need a placeholder.
443 // The pill reveals itself the first time a real deploy fires.
f764c07Claude444 if (!d) {
81201ccTest User445 pill.style.display = 'none';
f764c07Claude446 return;
447 }
448 pill.style.display = 'inline-flex';
449 var now = Date.now();
450 if (d.status === 'in_progress') {
451 pill.className = 'nav-deploy-pill deploy-pill-progress';
452 var started = Date.parse(d.started_at) || now;
453 text.textContent = 'Deploying… ' + elapsed(now - started);
454 } else if (d.status === 'succeeded') {
455 pill.className = 'nav-deploy-pill deploy-pill-success';
456 var ref = Date.parse(d.finished_at || d.started_at) || now;
457 text.textContent = 'Deployed ' + classifyAge(now - ref);
458 } else if (d.status === 'failed') {
459 pill.className = 'nav-deploy-pill deploy-pill-failed';
460 var refF = Date.parse(d.finished_at || d.started_at) || now;
461 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
462 } else {
463 pill.className = 'nav-deploy-pill';
464 text.textContent = d.status;
465 }
466 }
467
468 function fetchLatest(){
469 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
470 .then(function(r){ if (!r.ok) return null; return r.json(); })
471 .then(function(j){
472 if (!j || j.ok !== true) return;
473 state.latest = j.latest;
474 state.asOf = j.asOf;
475 render();
476 subscribe();
477 })
478 .catch(function(){});
479 }
480
481 var subscribed = false;
482 function subscribe(){
483 if (subscribed) return;
484 if (typeof EventSource === 'undefined') return;
485 subscribed = true;
486 var es;
bf19c50Test User487 // Exponential backoff with cap. Previously a tight 1500ms reconnect
488 // produced visible looping in the nav whenever the proxy timed out
489 // or the connection blipped — the bottom-of-page deploy pill
490 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
491 // successful message receipt.
492 var delay = 2000;
493 var DELAY_MAX = 60000;
494 function bump(){
495 delay = Math.min(delay * 2, DELAY_MAX);
496 }
497 function resetDelay(){
498 delay = 2000;
499 }
f764c07Claude500 function connect(){
501 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User502 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude503 es.onmessage = function(m){
bf19c50Test User504 resetDelay();
f764c07Claude505 try {
506 var d = JSON.parse(m.data);
507 if (d && d.run_id) {
508 if (!state.latest || state.latest.run_id === d.run_id ||
509 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
510 state.latest = d;
511 render();
512 }
513 }
514 } catch(e){}
515 };
516 es.onerror = function(){
517 try { es.close(); } catch(e){}
bf19c50Test User518 bump();
f764c07Claude519 setTimeout(connect, delay);
520 };
521 }
522 connect();
523 }
524
525 function init(){
526 pill = document.getElementById('deploy-pill');
527 if (!pill) return;
528 dot = pill.querySelector('.deploy-pill-dot');
529 text = pill.querySelector('.deploy-pill-text');
530 fetchLatest();
531 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
532 // without a fresh fetch.
533 setInterval(render, 15000);
534 }
535 if (document.readyState === 'loading') {
536 document.addEventListener('DOMContentLoaded', init);
537 } else {
538 init();
539 }
540 })();
541`;
542
6fc53bdClaude543// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User544// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
545// is honoured for users who explicitly opted in.
6fc53bdClaude546const themeInitScript = `
547 (function(){
548 try {
549 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User550 var t = m ? decodeURIComponent(m[1]) : 'light';
551 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude552 document.documentElement.setAttribute('data-theme', t);
553 } catch(_){}
554 })();
555`;
556
eae38d1Claude557// Block G1 — register service worker for offline / install support.
558// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App559//
cf9178bTest User560// Global toast notifications — reads ?success=, ?error=, ?toast= from the
561// URL on page load and surfaces a polished slide-in toast instead of the
562// per-page banner divs that crowded the layout. Toasts auto-dismiss after
563// 4.5s; query params are scrubbed from the URL via history.replaceState
564// so a subsequent Refresh doesn't re-fire the same toast.
565//
566// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
567// must be URI-encoded (callers already do this via encodeURIComponent
568// in c.redirect()).
569const toastScript = `
570 (function(){
571 function showToast(kind, message){
572 if (!message) return;
573 var host = document.getElementById('toast-host');
574 if (!host) return;
575 var el = document.createElement('div');
576 el.className = 'gx-toast gx-toast--' + kind;
577 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
578 var icon = document.createElement('span');
579 icon.className = 'gx-toast__icon';
580 icon.textContent = kind === 'success' ? '\\u2713'
581 : kind === 'error' ? '\\u00D7'
582 : kind === 'warn' ? '!'
583 : 'i';
584 el.appendChild(icon);
585 var text = document.createElement('span');
586 text.className = 'gx-toast__text';
587 text.textContent = message;
588 el.appendChild(text);
589 var close = document.createElement('button');
590 close.type = 'button';
591 close.className = 'gx-toast__close';
592 close.setAttribute('aria-label', 'Dismiss notification');
593 close.textContent = '\\u00D7';
594 close.addEventListener('click', function(){ dismiss(); });
595 el.appendChild(close);
596 host.appendChild(el);
597 // Force a reflow then add the visible class so the slide-in transitions.
598 void el.offsetWidth;
599 el.classList.add('gx-toast--in');
600 var timer = setTimeout(dismiss, 4500);
601 function dismiss(){
602 clearTimeout(timer);
603 el.classList.remove('gx-toast--in');
604 el.classList.add('gx-toast--out');
605 setTimeout(function(){
606 if (el.parentNode) el.parentNode.removeChild(el);
607 }, 220);
608 }
609 }
610 try {
611 var url = new URL(window.location.href);
612 var hits = 0;
613 var s = url.searchParams.get('success');
614 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
615 var e = url.searchParams.get('error');
616 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
617 var t = url.searchParams.get('toast');
618 if (t) {
619 var ix = t.indexOf(':');
620 var kind = ix > 0 ? t.slice(0, ix) : 'info';
621 var msg = ix > 0 ? t.slice(ix + 1) : t;
622 showToast(kind, msg);
623 url.searchParams.delete('toast');
624 hits++;
625 }
626 if (hits > 0 && window.history && window.history.replaceState) {
627 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
628 }
629 } catch(_) {}
630 })();
631`;
632
44fe49bClaude633// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
634// and pwaInstallBannerScript. Those two scripts registered /sw.js and
635// /sw-push.js at the same scope, causing a reload loop that made the
636// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
637// uncllickable). Per the SW spec, only one SW can control a scope; two
638// different script URLs at the same scope keep replacing each other.
6345c3eTest User639//
44fe49bClaude640// PWA is gone for good. A git host has no use for service workers,
641// install-as-app, or push notifications via SW. This script actively
642// unregisters every previously installed SW on the gluecron.com origin
643// so any browser still trapped in the loop recovers on the very next
644// page load — without needing the user to clear site data or open
645// DevTools. Idempotent and safe to keep running forever; once all
646// browsers have been cleaned, it's a no-op.
647const pwaKillSwitchScript = `
534f04aClaude648(function(){
649 try {
44fe49bClaude650 if (!('serviceWorker' in navigator)) return;
651 if (!navigator.serviceWorker.getRegistrations) return;
652 navigator.serviceWorker.getRegistrations().then(function(regs){
653 if (!regs || regs.length === 0) return;
654 regs.forEach(function(reg){
655 try { reg.unregister(); } catch(_){}
656 });
657 }).catch(function(){});
658 // Also drop any caches the old SWs left behind so the user gets
659 // truly fresh HTML on every page load. Restricted to gluecron-*
660 // namespaced caches so we don't trample anything a future opt-in
661 // feature might create under a different name.
662 if ('caches' in self) {
663 caches.keys().then(function(keys){
664 keys.forEach(function(k){
665 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
666 try { caches.delete(k); } catch(_){}
d7ba05dClaude667 }
668 });
669 }).catch(function(){});
534f04aClaude670 }
671 } catch(_) {}
672})();
673`;
674
3ef4c9dClaude675const navScript = `
676 (function(){
677 var chord = null;
678 var chordTimer = null;
679 function isTyping(t){
680 t = t || {};
681 var tag = (t.tagName || '').toLowerCase();
682 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
683 }
71cd5ecClaude684
685 // ---------- Block I4 — Command palette ----------
686 var COMMANDS = [
687 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
688 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
689 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
690 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
691 { label: 'Create new repository', href: '/new', kw: 'add create' },
692 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
693 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
694 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
695 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
696 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
697 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
698 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
699 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
700 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
701 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
702 { label: 'Gists', href: '/gists', kw: 'snippets' },
703 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
704 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
705 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
706 ];
707
708 function fuzzyMatch(item, q){
709 if (!q) return true;
710 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
711 q = q.toLowerCase();
712 var qi = 0;
713 for (var i = 0; i < hay.length && qi < q.length; i++) {
714 if (hay[i] === q[qi]) qi++;
715 }
716 return qi === q.length;
717 }
718
719 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
720
721 function render(){
722 if (!list) return;
723 var html = '';
724 for (var i = 0; i < filtered.length; i++) {
725 var item = filtered[i];
726 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
727 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]728 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App729 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude730 '<div>' + item.label + '</div>' +
731 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
732 '</div>';
733 }
734 if (filtered.length === 0) {
dc26881CC LABS App735 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude736 }
737 list.innerHTML = html;
738 }
739
740 function openPalette(){
741 backdrop = document.getElementById('cmdk-backdrop');
742 panel = document.getElementById('cmdk-panel');
743 input = document.getElementById('cmdk-input');
744 list = document.getElementById('cmdk-list');
745 if (!backdrop || !panel) return;
746 backdrop.style.display = 'block';
747 panel.style.display = 'block';
748 input.value = '';
749 selected = 0;
750 filtered = COMMANDS.slice();
751 render();
752 input.focus();
753 }
754 function closePalette(){
755 if (backdrop) backdrop.style.display = 'none';
756 if (panel) panel.style.display = 'none';
757 }
758 function go(href){ closePalette(); window.location.href = href; }
759
760 document.addEventListener('click', function(e){
761 var t = e.target;
762 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
763 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]764 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude765 });
766
767 document.addEventListener('input', function(e){
768 if (e.target && e.target.id === 'cmdk-input') {
769 var q = e.target.value;
770 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
771 selected = 0;
772 render();
773 }
774 });
775
3ef4c9dClaude776 document.addEventListener('keydown', function(e){
71cd5ecClaude777 // Palette-scoped keys take priority when open
778 if (panel && panel.style.display === 'block') {
779 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
780 if (e.key === 'ArrowDown') {
781 e.preventDefault();
782 selected = Math.min(filtered.length - 1, selected + 1);
783 render();
784 return;
785 }
786 if (e.key === 'ArrowUp') {
787 e.preventDefault();
788 selected = Math.max(0, selected - 1);
789 render();
790 return;
791 }
792 if (e.key === 'Enter') {
793 e.preventDefault();
794 var item = filtered[selected];
795 if (item) go(item.href);
796 return;
797 }
798 return;
799 }
800
3ef4c9dClaude801 if (isTyping(e.target)) return;
802 // Single key shortcuts
803 if (e.key === '/') {
804 var el = document.querySelector('.nav-search input');
805 if (el) { e.preventDefault(); el.focus(); return; }
806 }
807 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude808 e.preventDefault();
809 openPalette();
810 return;
3ef4c9dClaude811 }
812 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
813 e.preventDefault(); window.location.href = '/shortcuts'; return;
814 }
815 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
816 e.preventDefault(); window.location.href = '/new'; return;
817 }
818 // "g" chord
819 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
820 chord = 'g';
821 clearTimeout(chordTimer);
822 chordTimer = setTimeout(function(){ chord = null; }, 1200);
823 return;
824 }
825 if (chord === 'g') {
826 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
827 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
828 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
829 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
830 chord = null;
831 }
832 });
833 })();
834`;
835
fc1817aClaude836const css = `
2ce1d0bClaude837 /* ================================================================
958d26aClaude838 * Gluecron design system — 2026.05 "Editorial-Technical"
839 * Slate-noir base · refined violet signature · hairline geometry ·
840 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
841 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude842 * ============================================================== */
6fc53bdClaude843 :root, :root[data-theme='dark'] {
958d26aClaude844 /* Surfaces — slate, not black. More depth, less crush. */
845 --bg: #08090f;
846 --bg-secondary: #0c0d14;
847 --bg-tertiary: #11131c;
848 --bg-elevated: #0f111a;
849 --bg-surface: #161826;
850 --bg-hover: rgba(255,255,255,0.04);
851 --bg-active: rgba(255,255,255,0.08);
852 --bg-inset: rgba(0,0,0,0.30);
853
854 /* Borders — three weights, used deliberately */
855 --border: rgba(255,255,255,0.06);
856 --border-subtle: rgba(255,255,255,0.035);
857 --border-strong: rgba(255,255,255,0.13);
858 --border-focus: rgba(140,109,255,0.55);
859
860 /* Text */
861 --text: #ededf2;
862 --text-strong: #f7f7fb;
863 --text-muted: #8b8c9c;
864 --text-faint: #555665;
865 --text-link: #b69dff;
866
867 /* Accent — refined violet (less candy), warm amber as secondary signal */
868 --accent: #8c6dff;
869 --accent-2: #36c5d6;
870 --accent-warm: #ffb45e;
871 --accent-hover: #a48bff;
872 --accent-pressed:#7559e8;
873 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
874 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
875 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
876 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
877
878 /* Semantic */
879 --green: #34d399;
880 --red: #f87171;
881 --yellow: #fbbf24;
882 --amber: #fbbf24;
883 --blue: #60a5fa;
884
3a5755eClaude885 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
886 display (headlines), JetBrains Mono for code. All three loaded from
887 Google Fonts with display:swap so we never block first paint. System
888 fallbacks remain in place — if the CDN is unreachable the site still
889 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
890 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
891 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
892 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude893 --mono-feat: 'calt', 'liga', 'ss01';
894
895 /* Radius — sharper than before */
896 --r-sm: 5px;
897 --r: 7px;
898 --r-md: 9px;
899 --r-lg: 12px;
900 --r-xl: 16px;
901 --r-2xl: 22px;
902 --r-full: 9999px;
903 --radius: 7px;
904
905 /* Type scale — bigger display sizes for editorial feel */
906 --t-xs: 11px;
907 --t-sm: 13px;
908 --t-base: 14px;
909 --t-md: 16px;
910 --t-lg: 20px;
911 --t-xl: 28px;
912 --t-2xl: 40px;
913 --t-3xl: 56px;
914 --t-display: 72px;
915 --t-display-lg:96px;
916
917 /* Spacing — 4px base */
2ce1d0bClaude918 --s-0: 0;
958d26aClaude919 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
920 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
921 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
922 --s-20:80px; --s-24:96px; --s-32:128px;
923
924 /* Elevation — softer + more layered */
925 --elev-0: 0 0 0 1px var(--border);
926 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
927 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
928 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
929 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
930 --ring: 0 0 0 3px rgba(140,109,255,0.28);
931 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
932 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
933
934 /* Motion */
935 --ease: cubic-bezier(0.16, 1, 0.3, 1);
936 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
937 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
938 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
939 --t-fast: 120ms;
940 --t-base: 200ms;
941 --t-slow: 360ms;
942 --t-slower:560ms;
943
944 --header-h: 60px;
c63b860Claude945
946 /* Block O3 — visual coherence: named token aliases (additive). */
947 --space-1: var(--s-1);
948 --space-2: var(--s-2);
949 --space-3: var(--s-3);
950 --space-4: var(--s-4);
951 --space-5: var(--s-5);
952 --space-6: var(--s-6);
953 --space-8: var(--s-8);
954 --space-10: var(--s-10);
955 --space-12: var(--s-12);
956 --space-16: var(--s-16);
957 --space-20: var(--s-20);
958 --space-24: var(--s-24);
959 --radius-sm: var(--r-sm);
960 --radius-md: var(--r-md);
961 --radius-lg: var(--r-lg);
962 --radius-xl: var(--r-xl);
963 --radius-full: var(--r-full);
964 --font-size-xs: var(--t-xs);
965 --font-size-sm: var(--t-sm);
966 --font-size-base: var(--t-base);
967 --font-size-md: var(--t-md);
968 --font-size-lg: var(--t-lg);
969 --font-size-xl: var(--t-xl);
970 --font-size-2xl: var(--t-2xl);
971 --font-size-3xl: var(--t-3xl);
972 --font-size-hero: var(--t-display);
973 --leading-tight: 1.2;
974 --leading-snug: 1.35;
975 --leading-normal: 1.5;
976 --leading-relaxed: 1.6;
977 --leading-loose: 1.7;
978 --z-base: 1;
979 --z-nav: 10;
980 --z-sticky: 50;
981 --z-overlay: 100;
982 --z-modal: 1000;
983 --z-toast: 10000;
fc1817aClaude984 }
985
6fc53bdClaude986 :root[data-theme='light'] {
958d26aClaude987 --bg: #fbfbfc;
4c47454Claude988 --bg-secondary: #ffffff;
958d26aClaude989 --bg-tertiary: #f3f3f6;
990 --bg-elevated: #ffffff;
991 --bg-surface: #f6f6f9;
992 --bg-hover: rgba(0,0,0,0.035);
993 --bg-active: rgba(0,0,0,0.07);
994 --bg-inset: rgba(0,0,0,0.04);
995
996 --border: rgba(15,16,28,0.08);
997 --border-subtle: rgba(15,16,28,0.04);
998 --border-strong: rgba(15,16,28,0.16);
999
1000 --text: #0e1020;
1001 --text-strong: #050617;
1002 --text-muted: #5a5b70;
1003 --text-faint: #8a8b9e;
1004 --text-link: #6d4dff;
1005
1006 --accent: #6d4dff;
1007 --accent-2: #0891b2;
1008 --accent-hover: #5a3df0;
1009 --accent-pressed:#4a30d6;
1010 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1011
1012 --green: #059669;
1013 --red: #dc2626;
4c47454Claude1014 --yellow: #d97706;
958d26aClaude1015
1016 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1017 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1018 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1019 }
1020
1021 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1022 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1023 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1024 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1025 :root[data-theme='light'] .theme-icon-light { display: none; }
1026
fc1817aClaude1027 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1028 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1029
958d26aClaude1030 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1031
1032 body {
1033 font-family: var(--font-sans);
1034 background: var(--bg);
1035 color: var(--text);
cf9178bTest User1036 font-size: 15px;
2ce1d0bClaude1037 line-height: 1.55;
958d26aClaude1038 letter-spacing: -0.011em;
fc1817aClaude1039 min-height: 100vh;
1040 display: flex;
1041 flex-direction: column;
958d26aClaude1042 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1043 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1044 and disables automatic synthesis of bold/italic which can produce
1045 muddier rendering on certain weights. */
1046 -webkit-font-smoothing: antialiased;
1047 -moz-osx-font-smoothing: grayscale;
1048 font-synthesis: none;
1049 }
1050 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1051 line-height inversely with size so display text doesn't feel airy. */
1052 h1, h2, h3, h4, h5, h6 {
1053 font-family: var(--font-display);
1054 color: var(--text-strong);
1055 letter-spacing: -0.022em;
1056 line-height: 1.18;
1057 font-weight: 650;
1058 margin-top: 0;
1059 }
1060 h1 { font-size: 28px; letter-spacing: -0.028em; }
1061 h2 { font-size: 22px; }
1062 h3 { font-size: 18px; letter-spacing: -0.018em; }
1063 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1064 /* Link refinement — underline only on hover/focus, never by default
1065 on internal nav. Prevents the "blue underline soup" look. */
1066 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1067 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1068 a:focus-visible {
1069 outline: none;
1070 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1071 border-radius: 3px;
fc1817aClaude1072 }
1073
958d26aClaude1074 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1075 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1076 body::before {
1077 content: '';
1078 position: fixed;
1079 inset: 0;
1080 pointer-events: none;
958d26aClaude1081 z-index: -2;
2ce1d0bClaude1082 background:
958d26aClaude1083 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1084 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1085 }
1086 body::after {
1087 content: '';
1088 position: fixed;
1089 inset: 0;
1090 pointer-events: none;
1091 z-index: -1;
1092 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1093 background-size: 28px 28px;
1094 background-position: 0 0;
1095 opacity: 0.55;
1096 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1097 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1098 }
1099 :root[data-theme='light'] body::before { opacity: 0.55; }
1100 :root[data-theme='light'] body::after {
1101 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1102 opacity: 0.4;
fc1817aClaude1103 }
2ce1d0bClaude1104
1105 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1106 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1107
958d26aClaude1108 /* Heading scale — confident, editorial, tight tracking */
1109 h1, h2, h3, h4, h5, h6 {
1110 font-family: var(--font-display);
2ce1d0bClaude1111 font-weight: 600;
958d26aClaude1112 letter-spacing: -0.022em;
1113 line-height: 1.18;
1114 color: var(--text-strong);
1115 }
1116 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1117 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1118 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1119 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1120 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1121
1122 /* Editorial display heading utility — used by landing + marketing pages */
1123 .display {
1124 font-family: var(--font-display);
1125 font-size: clamp(40px, 7.5vw, 96px);
1126 line-height: 0.98;
1127 letter-spacing: -0.04em;
1128 font-weight: 600;
1129 color: var(--text-strong);
2ce1d0bClaude1130 }
fc1817aClaude1131
958d26aClaude1132 /* Eyebrow — uppercase mono label that sits above section headings */
1133 .eyebrow {
1134 display: inline-flex;
1135 align-items: center;
1136 gap: 8px;
1137 font-family: var(--font-mono);
1138 font-size: 11px;
1139 font-weight: 500;
1140 letter-spacing: 0.14em;
1141 text-transform: uppercase;
1142 color: var(--accent);
1143 margin-bottom: var(--s-3);
1144 }
1145 .eyebrow::before {
1146 content: '';
1147 width: 18px;
1148 height: 1px;
1149 background: currentColor;
1150 opacity: 0.6;
1151 }
1152
1153 /* Section header — paired eyebrow + title + lede */
1154 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1155 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1156 .section-header h2 {
1157 font-size: clamp(28px, 4vw, 44px);
1158 line-height: 1.05;
1159 letter-spacing: -0.028em;
1160 margin-bottom: var(--s-3);
1161 }
1162 .section-header p {
1163 color: var(--text-muted);
1164 font-size: var(--t-md);
1165 line-height: 1.6;
1166 max-width: 580px;
1167 margin: 0 auto;
1168 }
1169 .section-header.left p { margin-left: 0; }
fc1817aClaude1170
958d26aClaude1171 code, kbd, samp {
2ce1d0bClaude1172 font-family: var(--font-mono);
958d26aClaude1173 font-feature-settings: var(--mono-feat);
1174 }
1175 code {
1176 font-size: 0.9em;
2ce1d0bClaude1177 background: var(--bg-tertiary);
958d26aClaude1178 border: 1px solid var(--border-subtle);
2ce1d0bClaude1179 padding: 1px 6px;
1180 border-radius: var(--r-sm);
1181 color: var(--text);
1182 }
958d26aClaude1183 kbd, .kbd {
1184 display: inline-flex;
1185 align-items: center;
1186 padding: 1px 6px;
1187 font-family: var(--font-mono);
1188 font-size: 11px;
1189 background: var(--bg-elevated);
1190 border: 1px solid var(--border);
1191 border-bottom-width: 2px;
1192 border-radius: 4px;
1193 color: var(--text);
1194 line-height: 1.5;
1195 vertical-align: middle;
1196 }
2ce1d0bClaude1197
958d26aClaude1198 /* Mono utility for technical chrome (paths, IDs, dates) */
1199 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1200 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1201
1202 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1203 .prelaunch-banner {
958d26aClaude1204 position: relative;
2ce1d0bClaude1205 background:
958d26aClaude1206 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1207 var(--bg);
958d26aClaude1208 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1209 color: var(--yellow);
958d26aClaude1210 padding: 7px 24px;
1211 font-family: var(--font-mono);
1212 font-size: 11px;
4a52a98Claude1213 font-weight: 500;
1214 text-align: center;
2ce1d0bClaude1215 line-height: 1.5;
958d26aClaude1216 letter-spacing: 0.04em;
1217 text-transform: uppercase;
1218 }
1219 .prelaunch-banner::before {
1220 content: '◆';
1221 margin-right: 8px;
1222 font-size: 9px;
1223 opacity: 0.7;
1224 vertical-align: 1px;
4a52a98Claude1225 }
1226
cd4f63bTest User1227 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1228 visitors don't miss the "save your work" CTA, but slim enough to
1229 not feel like a modal. */
1230 .playground-banner {
1231 position: relative;
1232 display: flex;
1233 align-items: center;
1234 justify-content: center;
1235 gap: 8px;
1236 background:
1237 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1238 var(--bg);
1239 border-bottom: 1px solid rgba(251,191,36,0.45);
1240 color: var(--yellow, #fbbf24);
1241 padding: 8px 40px 8px 24px;
1242 font-size: 13px;
1243 font-weight: 500;
1244 text-align: center;
1245 line-height: 1.4;
1246 }
1247 .playground-banner-icon { font-size: 14px; }
1248 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1249 .playground-banner-countdown { font-weight: 600; }
1250 .playground-banner-cta {
1251 margin-left: 4px;
1252 color: var(--yellow, #fbbf24);
1253 text-decoration: underline;
1254 font-weight: 600;
1255 }
1256 .playground-banner-cta:hover { opacity: 0.85; }
1257 .playground-banner-dismiss {
1258 position: absolute;
1259 top: 50%;
1260 right: 12px;
1261 transform: translateY(-50%);
1262 background: transparent;
1263 border: none;
1264 color: var(--text-muted, #8b949e);
1265 font-size: 18px;
1266 line-height: 1;
1267 cursor: pointer;
1268 padding: 0 4px;
1269 }
1270 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1271
958d26aClaude1272 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1273 header {
2ce1d0bClaude1274 position: sticky;
1275 top: 0;
1276 z-index: 100;
fc1817aClaude1277 border-bottom: 1px solid var(--border);
2ce1d0bClaude1278 padding: 0 24px;
1279 height: var(--header-h);
958d26aClaude1280 background: rgba(8,9,15,0.72);
1281 backdrop-filter: saturate(180%) blur(18px);
1282 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1283 }
958d26aClaude1284 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1285
06d5ffeClaude1286 header nav {
1287 display: flex;
1288 align-items: center;
958d26aClaude1289 gap: 18px;
1290 max-width: 1240px;
06d5ffeClaude1291 margin: 0 auto;
2ce1d0bClaude1292 height: 100%;
1293 }
1294 .logo {
958d26aClaude1295 font-family: var(--font-display);
1296 font-size: 16px;
2ce1d0bClaude1297 font-weight: 700;
958d26aClaude1298 letter-spacing: -0.025em;
1299 color: var(--text-strong);
2ce1d0bClaude1300 display: inline-flex;
1301 align-items: center;
958d26aClaude1302 gap: 9px;
1303 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1304 }
2ce1d0bClaude1305 .logo::before {
1306 content: '';
958d26aClaude1307 width: 20px; height: 20px;
1308 border-radius: 6px;
2ce1d0bClaude1309 background: var(--accent-gradient);
958d26aClaude1310 box-shadow:
1311 inset 0 1px 0 rgba(255,255,255,0.25),
1312 0 0 0 1px rgba(140,109,255,0.45),
1313 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1314 flex-shrink: 0;
958d26aClaude1315 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1316 }
1317 .logo:hover { text-decoration: none; color: var(--text-strong); }
1318 .logo:hover::before {
1319 transform: rotate(8deg) scale(1.05);
1320 box-shadow:
1321 inset 0 1px 0 rgba(255,255,255,0.30),
1322 0 0 0 1px rgba(140,109,255,0.55),
1323 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1324 }
fc1817aClaude1325
2ce1d0bClaude1326 .nav-search {
1327 flex: 1;
958d26aClaude1328 max-width: 360px;
1329 margin: 0 4px 0 8px;
1330 position: relative;
2ce1d0bClaude1331 }
1332 .nav-search input {
1333 width: 100%;
958d26aClaude1334 padding: 7px 12px 7px 32px;
2ce1d0bClaude1335 background: var(--bg-tertiary);
1336 border: 1px solid var(--border);
1337 border-radius: var(--r-sm);
1338 color: var(--text);
1339 font-family: var(--font-sans);
1340 font-size: var(--t-sm);
958d26aClaude1341 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1342 }
1343 .nav-search::before {
1344 content: '';
1345 position: absolute;
1346 left: 11px; top: 50%;
1347 transform: translateY(-50%);
1348 width: 12px; height: 12px;
1349 border: 1.5px solid var(--text-faint);
1350 border-radius: 50%;
1351 pointer-events: none;
1352 }
1353 .nav-search::after {
1354 content: '';
1355 position: absolute;
1356 left: 19px; top: calc(50% + 4px);
1357 width: 5px; height: 1.5px;
1358 background: var(--text-faint);
1359 transform: rotate(45deg);
1360 pointer-events: none;
2ce1d0bClaude1361 }
1362 .nav-search input::placeholder { color: var(--text-faint); }
1363 .nav-search input:focus {
1364 outline: none;
1365 background: var(--bg-secondary);
958d26aClaude1366 border-color: var(--border-focus);
1367 box-shadow: var(--ring);
2ce1d0bClaude1368 }
06d5ffeClaude1369
958d26aClaude1370 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1371
1372 /* Block N3 — site-admin deploy status pill */
1373 .nav-deploy-pill {
1374 display: inline-flex;
1375 align-items: center;
1376 gap: 6px;
1377 padding: 4px 10px;
1378 margin: 0 6px 0 0;
1379 border-radius: 9999px;
1380 font-size: 11px;
1381 font-weight: 600;
1382 line-height: 1;
1383 color: var(--text-strong);
1384 background: var(--bg-elevated);
1385 border: 1px solid var(--border);
1386 text-decoration: none;
1387 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1388 }
1389 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1390 .nav-deploy-pill .deploy-pill-dot {
1391 display: inline-block;
1392 width: 8px; height: 8px;
1393 border-radius: 50%;
1394 background: #6b7280;
1395 }
1396 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1397 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1398 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1399 .deploy-pill-progress .deploy-pill-dot {
1400 background: #fbbf24;
1401 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1402 animation: deployPillPulse 1.2s ease-in-out infinite;
1403 }
1404 @keyframes deployPillPulse {
1405 0%, 100% { opacity: 1; transform: scale(1); }
1406 50% { opacity: 0.45; transform: scale(0.8); }
1407 }
1408 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1409
2ce1d0bClaude1410 .nav-link {
958d26aClaude1411 position: relative;
2ce1d0bClaude1412 color: var(--text-muted);
1413 font-size: var(--t-sm);
1414 font-weight: 500;
958d26aClaude1415 padding: 7px 11px;
2ce1d0bClaude1416 border-radius: var(--r-sm);
958d26aClaude1417 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1418 }
1419 .nav-link:hover {
958d26aClaude1420 color: var(--text-strong);
2ce1d0bClaude1421 background: var(--bg-hover);
1422 text-decoration: none;
1423 }
958d26aClaude1424 .nav-link.active { color: var(--text-strong); }
1425 .nav-link.active::after {
1426 content: '';
1427 position: absolute;
1428 left: 11px; right: 11px;
1429 bottom: -1px;
1430 height: 2px;
1431 background: var(--accent-gradient);
1432 border-radius: 2px;
1433 }
2ce1d0bClaude1434 .nav-user {
958d26aClaude1435 color: var(--text-strong);
2ce1d0bClaude1436 font-weight: 600;
1437 font-size: var(--t-sm);
1438 padding: 6px 10px;
1439 border-radius: var(--r-sm);
958d26aClaude1440 margin-left: 6px;
2ce1d0bClaude1441 transition: background var(--t-fast) var(--ease);
1442 }
958d26aClaude1443 .nav-user::before {
1444 content: '';
1445 display: inline-block;
1446 width: 8px; height: 8px;
1447 background: var(--green);
1448 border-radius: 50%;
1449 margin-right: 7px;
1450 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1451 vertical-align: 1px;
1452 }
2ce1d0bClaude1453 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1454
2ce1d0bClaude1455 main {
958d26aClaude1456 max-width: 1240px;
2ce1d0bClaude1457 margin: 0 auto;
958d26aClaude1458 padding: 36px 24px 80px;
2ce1d0bClaude1459 flex: 1;
1460 width: 100%;
ed6e438Claude1461 /* 2026 polish — subtle entrance animation on every page load.
1462 Content fades up 4px over 360ms, giving the site that "alive"
1463 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1464 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1465 }
1466 @keyframes gxMainEnter {
1467 from { opacity: 0; transform: translateY(4px); }
1468 to { opacity: 1; transform: translateY(0); }
1469 }
1470 @media (prefers-reduced-motion: reduce) {
1471 main { animation: none; }
1472 }
1473 /* 2026 polish — accent focus ring across all focusable elements.
1474 The default browser ring is utilitarian; this is the same width
1475 but tinted to the brand accent so keyboard navigation feels
1476 intentional, not jarring. :focus-visible only — mouse users
1477 never see it. */
1478 :focus-visible {
1479 outline: none;
1480 }
1481 a:focus-visible,
1482 button:focus-visible,
1483 input:focus-visible,
1484 select:focus-visible,
1485 textarea:focus-visible,
1486 [tabindex]:focus-visible {
1487 outline: 2px solid rgba(140, 109, 255, 0.55);
1488 outline-offset: 2px;
1489 border-radius: 4px;
2ce1d0bClaude1490 }
fc1817aClaude1491
958d26aClaude1492 /* Editorial footer: link grid + tagline row */
fc1817aClaude1493 footer {
1494 border-top: 1px solid var(--border);
958d26aClaude1495 padding: 56px 24px 40px;
fc1817aClaude1496 color: var(--text-muted);
958d26aClaude1497 font-size: var(--t-sm);
1498 background:
1499 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1500 var(--bg);
1501 }
1502 footer .footer-inner {
1503 max-width: 1240px;
1504 margin: 0 auto;
1505 display: grid;
1506 grid-template-columns: 1fr auto;
1507 gap: 48px;
1508 align-items: start;
1509 }
1510 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1511 footer .footer-tag {
1512 color: var(--text-muted);
1513 font-size: var(--t-sm);
1514 max-width: 320px;
1515 line-height: 1.55;
1516 }
1517 footer .footer-links {
1518 display: grid;
1519 grid-template-columns: repeat(3, minmax(120px, auto));
1520 gap: 0 56px;
1521 }
1522 footer .footer-col-title {
1523 font-family: var(--font-mono);
1524 font-size: 11px;
1525 text-transform: uppercase;
1526 letter-spacing: 0.14em;
1527 color: var(--text-faint);
1528 margin-bottom: var(--s-3);
1529 }
1530 footer .footer-col a {
1531 display: block;
1532 color: var(--text-muted);
1533 font-size: var(--t-sm);
1534 padding: 5px 0;
1535 transition: color var(--t-fast) var(--ease);
1536 }
1537 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1538 footer .footer-bottom {
1539 max-width: 1240px;
1540 margin: 40px auto 0;
1541 padding-top: 24px;
1542 border-top: 1px solid var(--border-subtle);
1543 display: flex;
1544 justify-content: space-between;
1545 align-items: center;
2ce1d0bClaude1546 color: var(--text-faint);
1547 font-size: var(--t-xs);
958d26aClaude1548 font-family: var(--font-mono);
1549 letter-spacing: 0.02em;
1550 }
1551 footer .footer-bottom a { color: var(--text-faint); }
1552 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1553 footer .footer-build {
1554 display: inline-flex;
1555 align-items: center;
1556 gap: 6px;
1557 color: var(--text-faint);
1558 font-family: var(--font-mono);
1559 font-size: 11px;
1560 cursor: help;
1561 }
1562 footer .footer-build-dot {
1563 width: 6px; height: 6px;
1564 border-radius: 50%;
1565 background: var(--green);
1566 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1567 animation: footer-build-pulse 2.4s ease-in-out infinite;
1568 }
1569 @keyframes footer-build-pulse {
1570 0%, 100% { opacity: 0.6; }
1571 50% { opacity: 1; }
1572 }
958d26aClaude1573 @media (max-width: 768px) {
1574 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1575 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1576 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1577 }
1578
2ce1d0bClaude1579 /* ============================================================ */
1580 /* Buttons */
1581 /* ============================================================ */
dc26881CC LABS App1582 /* ============================================================ */
1583 /* Buttons — Block U2 senior polish pass. */
1584 /* Rules: */
1585 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1586 /* · active presses back down to 0 (80ms — faster on press) */
1587 /* · focus-visible uses a soft box-shadow ring (no outline) */
1588 /* · primary gradient shifts position on hover for a slow */
1589 /* 600ms shimmer */
1590 /* · disabled never lifts and never animates */
1591 /* ============================================================ */
06d5ffeClaude1592 .btn {
1593 display: inline-flex;
1594 align-items: center;
2ce1d0bClaude1595 justify-content: center;
958d26aClaude1596 gap: 7px;
2ce1d0bClaude1597 padding: 7px 14px;
1598 border-radius: var(--r-sm);
958d26aClaude1599 font-family: var(--font-sans);
2ce1d0bClaude1600 font-size: var(--t-sm);
06d5ffeClaude1601 font-weight: 500;
1602 border: 1px solid var(--border);
2ce1d0bClaude1603 background: var(--bg-elevated);
06d5ffeClaude1604 color: var(--text);
1605 cursor: pointer;
1606 text-decoration: none;
958d26aClaude1607 line-height: 1.25;
1608 letter-spacing: -0.008em;
dc26881CC LABS App1609 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1610 Listed once on the base rule so :active can override only the
1611 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1612 transition:
dc26881CC LABS App1613 background 180ms ease,
1614 border-color 180ms ease,
1615 transform 180ms ease,
1616 box-shadow 180ms ease,
1617 color 180ms ease;
2ce1d0bClaude1618 user-select: none;
1619 white-space: nowrap;
958d26aClaude1620 position: relative;
06d5ffeClaude1621 }
2ce1d0bClaude1622 .btn:hover {
1623 background: var(--bg-surface);
1624 border-color: var(--border-strong);
958d26aClaude1625 color: var(--text-strong);
2ce1d0bClaude1626 text-decoration: none;
dc26881CC LABS App1627 /* U2 — universal hover lift + soft accent drop shadow. */
1628 transform: translateY(-1px);
1629 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1630 }
1631 .btn:active {
1632 transform: translateY(0);
1633 transition-duration: 80ms;
1634 }
1635 /* U2 — soft modern focus ring via box-shadow, not outline. */
1636 .btn:focus-visible {
1637 outline: none;
1638 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1639 }
1640
1641 .btn-primary {
1642 background: var(--accent-gradient);
dc26881CC LABS App1643 background-size: 200% 100%;
1644 background-position: 0% 50%;
2ce1d0bClaude1645 border-color: transparent;
1646 color: #fff;
1647 font-weight: 600;
958d26aClaude1648 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1649 box-shadow:
958d26aClaude1650 inset 0 1px 0 rgba(255,255,255,0.22),
1651 inset 0 -1px 0 rgba(0,0,0,0.10),
1652 0 1px 2px rgba(0,0,0,0.40),
1653 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1654 /* U2 — slower 600ms transition on background-position so the
1655 primary CTA shimmers when the cursor lands. */
1656 transition:
1657 background-position 600ms ease,
1658 transform 180ms ease,
1659 box-shadow 180ms ease,
1660 color 180ms ease;
06d5ffeClaude1661 }
958d26aClaude1662 .btn-primary::before {
1663 content: '';
1664 position: absolute;
1665 inset: 0;
1666 border-radius: inherit;
1667 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1668 opacity: 0;
1669 transition: opacity var(--t-fast) var(--ease);
1670 pointer-events: none;
2ce1d0bClaude1671 }
1672 .btn-primary:hover {
958d26aClaude1673 color: #fff;
2ce1d0bClaude1674 background: var(--accent-gradient);
dc26881CC LABS App1675 background-size: 200% 100%;
1676 background-position: 100% 50%;
958d26aClaude1677 border-color: transparent;
dc26881CC LABS App1678 transform: translateY(-1px);
2ce1d0bClaude1679 box-shadow:
958d26aClaude1680 inset 0 1px 0 rgba(255,255,255,0.30),
1681 inset 0 -1px 0 rgba(0,0,0,0.10),
1682 0 6px 18px -4px rgba(140,109,255,0.45),
1683 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1684 }
958d26aClaude1685 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App1686 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
1687 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
1688 .btn-primary:focus-visible {
1689 box-shadow:
1690 inset 0 1px 0 rgba(255,255,255,0.22),
1691 0 0 0 3px rgba(140,109,255,0.35);
1692 }
2ce1d0bClaude1693
1694 .btn-danger {
1695 background: transparent;
958d26aClaude1696 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude1697 color: var(--red);
1698 }
1699 .btn-danger:hover {
958d26aClaude1700 background: rgba(248,113,113,0.08);
2ce1d0bClaude1701 border-color: var(--red);
958d26aClaude1702 color: var(--red);
dc26881CC LABS App1703 transform: translateY(-1px);
1704 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude1705 }
dc26881CC LABS App1706 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude1707
1708 .btn-ghost {
1709 background: transparent;
1710 border-color: transparent;
1711 color: var(--text-muted);
1712 }
1713 .btn-ghost:hover {
1714 background: var(--bg-hover);
958d26aClaude1715 color: var(--text-strong);
2ce1d0bClaude1716 border-color: var(--border);
dc26881CC LABS App1717 transform: translateY(-1px);
1718 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude1719 }
1720
958d26aClaude1721 .btn-secondary {
1722 background: var(--bg-elevated);
1723 border-color: var(--border-strong);
1724 color: var(--text-strong);
1725 }
1726 .btn-secondary:hover {
1727 background: var(--bg-surface);
1728 border-color: var(--border-strong);
dc26881CC LABS App1729 transform: translateY(-1px);
1730 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude1731 }
1732
1733 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
1734 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
1735 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
1736 .btn-block { width: 100%; }
2ce1d0bClaude1737
dc26881CC LABS App1738 /* U2 — disabled never lifts, never shimmers, never glows. */
1739 .btn:disabled,
1740 .btn[aria-disabled='true'],
1741 .btn:disabled:hover,
1742 .btn[aria-disabled='true']:hover {
1743 opacity: 0.5;
2ce1d0bClaude1744 cursor: not-allowed;
1745 pointer-events: none;
dc26881CC LABS App1746 transform: none;
1747 box-shadow: none;
1748 }
1749 @media (prefers-reduced-motion: reduce) {
1750 .btn,
1751 .btn:hover,
1752 .btn:active,
1753 .btn-primary,
1754 .btn-primary:hover {
1755 transform: none;
1756 transition: background-color 80ms linear, color 80ms linear;
1757 }
2ce1d0bClaude1758 }
1759
1760 /* ============================================================ */
1761 /* Forms */
1762 /* ============================================================ */
1763 .form-group { margin-bottom: 20px; }
1764 .form-group label {
1765 display: block;
1766 font-size: var(--t-sm);
1767 font-weight: 500;
1768 margin-bottom: 6px;
1769 color: var(--text);
1770 letter-spacing: -0.005em;
1771 }
1772 .form-group input,
1773 .form-group textarea,
1774 .form-group select,
1775 input[type='text'], input[type='email'], input[type='password'],
1776 input[type='url'], input[type='search'], input[type='number'],
1777 textarea, select {
06d5ffeClaude1778 width: 100%;
2ce1d0bClaude1779 padding: 9px 12px;
1780 background: var(--bg-secondary);
06d5ffeClaude1781 border: 1px solid var(--border);
2ce1d0bClaude1782 border-radius: var(--r-sm);
06d5ffeClaude1783 color: var(--text);
2ce1d0bClaude1784 font-size: var(--t-sm);
06d5ffeClaude1785 font-family: var(--font-sans);
2ce1d0bClaude1786 transition:
1787 border-color var(--t-fast) var(--ease),
1788 background var(--t-fast) var(--ease),
1789 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude1790 }
2ce1d0bClaude1791 .form-group input::placeholder, textarea::placeholder, input::placeholder {
1792 color: var(--text-faint);
06d5ffeClaude1793 }
2ce1d0bClaude1794 .form-group input:hover, textarea:hover, select:hover,
1795 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
1796 border-color: var(--border-strong);
1797 }
1798 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
1799 input:focus, textarea:focus, select:focus {
06d5ffeClaude1800 outline: none;
2ce1d0bClaude1801 background: var(--bg);
1802 border-color: var(--border-focus);
1803 box-shadow: var(--ring);
06d5ffeClaude1804 }
2ce1d0bClaude1805 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude1806 .input-disabled { opacity: 0.5; cursor: not-allowed; }
1807
2ce1d0bClaude1808 /* ============================================================ */
1809 /* Auth (register / login / verify) */
1810 /* ============================================================ */
1811 .auth-container {
98f45b4Claude1812 /* 2026 polish — wider, more generous, with a subtle accent-glow
1813 border and gradient top-edge so it reads as a premium product
1814 gateway, not a stock form. The 480px width feels intentional
1815 (not cramped, not endless). */
1816 max-width: 480px;
1817 margin: 72px auto;
1818 padding: 40px 40px 36px;
2ce1d0bClaude1819 background: var(--bg-elevated);
1820 border: 1px solid var(--border);
98f45b4Claude1821 border-radius: 16px;
1822 box-shadow:
1823 var(--elev-2),
1824 0 24px 64px -16px rgba(140, 109, 255, 0.12);
1825 position: relative;
1826 overflow: hidden;
1827 }
1828 .auth-container::before {
1829 /* Hairline gradient accent on the top edge — signals 'AI-native'
1830 without shouting. Pointer-events disabled so it never interferes
1831 with form interactions. */
1832 content: '';
1833 position: absolute;
1834 top: 0;
1835 left: 0;
1836 right: 0;
1837 height: 2px;
1838 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
1839 opacity: 0.7;
1840 pointer-events: none;
2ce1d0bClaude1841 }
1842 .auth-container h2 {
98f45b4Claude1843 margin: 0 0 8px;
1844 font-size: 28px;
1845 font-weight: 700;
1846 font-family: var(--font-display);
1847 letter-spacing: -0.025em;
1848 color: var(--text-strong);
1849 line-height: 1.15;
1850 }
1851 .auth-container .auth-subtitle {
1852 color: var(--text-muted);
1853 font-size: 14.5px;
1854 line-height: 1.5;
1855 margin: 0 0 24px;
2ce1d0bClaude1856 }
1857 .auth-container > p {
1858 color: var(--text-muted);
1859 font-size: var(--t-sm);
1860 margin-bottom: 24px;
1861 }
98f45b4Claude1862 .auth-container .btn-primary {
1863 width: 100%;
1864 padding: 12px 16px;
1865 font-size: 15px;
1866 font-weight: 600;
1867 margin-top: 4px;
1868 }
582cdacClaude1869
1870 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
1871 with a brand-coloured logo on the left and a label centred-trailing.
1872 Hover lifts 1px with a subtle shadow — matches the rest of the
1873 button system but reads as a brand-affiliated action, not a brand-
1874 coloured primary CTA. */
1875 .auth-container .oauth-btn {
1876 display: flex;
1877 align-items: center;
1878 justify-content: center;
1879 gap: 10px;
1880 width: 100%;
1881 padding: 11px 16px;
1882 background: var(--bg-surface, var(--bg-elevated));
1883 border: 1px solid var(--border);
1884 border-radius: var(--r-md, 8px);
1885 color: var(--text-strong);
1886 font-family: var(--font-sans);
1887 font-size: 14.5px;
1888 font-weight: 500;
1889 text-decoration: none;
1890 transition:
1891 transform var(--t-base, 180ms) var(--ease, ease),
1892 box-shadow var(--t-base, 180ms) var(--ease, ease),
1893 background var(--t-fast, 120ms) var(--ease, ease),
1894 border-color var(--t-fast, 120ms) var(--ease, ease);
1895 }
1896 .auth-container .oauth-btn:hover {
1897 transform: translateY(-1px);
1898 background: var(--bg-hover);
1899 border-color: var(--text-muted);
1900 color: var(--text-strong);
1901 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
1902 text-decoration: none;
1903 }
1904 .auth-container .oauth-btn:focus-visible {
1905 outline: 2px solid rgba(140, 109, 255, 0.55);
1906 outline-offset: 2px;
1907 }
1908 .auth-container .oauth-btn .oauth-icon {
1909 flex-shrink: 0;
1910 }
1911 /* GitHub icon adopts the text colour so it reads in both themes. */
1912 .auth-container .oauth-github .oauth-icon {
1913 color: var(--text-strong);
1914 }
1915 /* Google logo uses the official 4-colour treatment via inline SVG fill
1916 attributes — nothing to override here. */
1917 /* "or" divider between the password form and provider buttons */
1918 .auth-container .auth-divider {
1919 display: flex;
1920 align-items: center;
1921 gap: 12px;
1922 margin: 20px 0 12px;
1923 color: var(--text-faint);
1924 font-size: 12px;
1925 letter-spacing: 0.08em;
1926 text-transform: uppercase;
1927 }
1928 .auth-container .auth-divider::before,
1929 .auth-container .auth-divider::after {
1930 content: '';
1931 flex: 1;
1932 height: 1px;
1933 background: var(--border);
1934 }
06d5ffeClaude1935 .auth-error {
958d26aClaude1936 background: rgba(248,113,113,0.08);
1937 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude1938 color: var(--red);
2ce1d0bClaude1939 padding: 10px 14px;
1940 border-radius: var(--r-sm);
06d5ffeClaude1941 margin-bottom: 16px;
2ce1d0bClaude1942 font-size: var(--t-sm);
06d5ffeClaude1943 }
1944 .auth-success {
958d26aClaude1945 background: rgba(52,211,153,0.08);
1946 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude1947 color: var(--green);
2ce1d0bClaude1948 padding: 10px 14px;
1949 border-radius: var(--r-sm);
06d5ffeClaude1950 margin-bottom: 16px;
2ce1d0bClaude1951 font-size: var(--t-sm);
1952 }
1953 .auth-switch {
1954 margin-top: 20px;
1955 font-size: var(--t-sm);
1956 color: var(--text-muted);
1957 text-align: center;
1958 }
1959 .banner {
1960 background: var(--accent-gradient-faint);
958d26aClaude1961 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude1962 color: var(--text);
1963 padding: 10px 14px;
1964 border-radius: var(--r-sm);
1965 font-size: var(--t-sm);
06d5ffeClaude1966 }
1967
2ce1d0bClaude1968 /* ============================================================ */
1969 /* Settings */
1970 /* ============================================================ */
1971 .settings-container { max-width: 720px; }
1972 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
1973 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
1974 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
1975 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude1976 .ssh-keys-list { margin-bottom: 24px; }
1977 .ssh-key-item {
1978 display: flex;
1979 justify-content: space-between;
1980 align-items: center;
2ce1d0bClaude1981 padding: 14px 16px;
06d5ffeClaude1982 border: 1px solid var(--border);
2ce1d0bClaude1983 border-radius: var(--r-md);
06d5ffeClaude1984 margin-bottom: 8px;
2ce1d0bClaude1985 background: var(--bg-elevated);
1986 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude1987 }
2ce1d0bClaude1988 .ssh-key-item:hover { border-color: var(--border-strong); }
1989 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
1990 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude1991
2ce1d0bClaude1992 /* ============================================================ */
1993 /* Repo header + nav */
1994 /* ============================================================ */
fc1817aClaude1995 .repo-header {
1996 display: flex;
1997 align-items: center;
debcf27Claude1998 gap: 12px;
1999 margin-bottom: 22px;
2000 }
2001 .repo-header-title {
2002 display: flex;
2003 align-items: center;
2004 gap: 10px;
2005 font-family: var(--font-display);
2006 font-size: 24px;
2007 letter-spacing: -0.025em;
2008 flex-wrap: wrap;
2009 }
2010 .repo-header .owner {
2011 color: var(--text-muted);
2012 font-weight: 500;
2013 transition: color var(--t-fast) var(--ease);
2014 }
2015 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2016 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2017 .repo-header .name {
2018 color: var(--text-strong);
2019 font-weight: 700;
2020 letter-spacing: -0.028em;
fc1817aClaude2021 }
2ce1d0bClaude2022 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2023 .repo-header-fork {
2024 font-family: var(--font-mono);
2025 font-size: 11px;
2026 color: var(--text-muted);
2027 margin-top: 4px;
2028 letter-spacing: 0.01em;
2029 }
2030 .repo-header-fork a { color: var(--text-muted); }
2031 .repo-header-fork a:hover { color: var(--accent); }
2032 .repo-header-pill {
2033 display: inline-flex;
2034 align-items: center;
2035 padding: 2px 10px;
2036 border-radius: var(--r-full);
2037 font-family: var(--font-mono);
2038 font-size: 10px;
2039 font-weight: 600;
2040 letter-spacing: 0.12em;
2041 text-transform: uppercase;
2042 line-height: 1.6;
2043 vertical-align: 4px;
2044 }
2045 .repo-header-pill-archived {
2046 background: rgba(251,191,36,0.10);
2047 color: var(--yellow);
2048 border: 1px solid rgba(251,191,36,0.30);
2049 }
2050 .repo-header-pill-template {
2051 background: var(--accent-gradient-faint);
2052 color: var(--accent);
2053 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2054 }
06d5ffeClaude2055 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2056
2057 .repo-nav {
2058 display: flex;
debcf27Claude2059 gap: 1px;
fc1817aClaude2060 border-bottom: 1px solid var(--border);
debcf27Claude2061 margin-bottom: 28px;
2ce1d0bClaude2062 overflow-x: auto;
2063 scrollbar-width: thin;
fc1817aClaude2064 }
2ce1d0bClaude2065 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2066 .repo-nav a {
debcf27Claude2067 position: relative;
2068 padding: 11px 14px;
fc1817aClaude2069 color: var(--text-muted);
2070 border-bottom: 2px solid transparent;
2ce1d0bClaude2071 font-size: var(--t-sm);
2072 font-weight: 500;
2073 margin-bottom: -1px;
debcf27Claude2074 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2075 white-space: nowrap;
2076 }
debcf27Claude2077 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2078 .repo-nav a.active {
debcf27Claude2079 color: var(--text-strong);
2080 font-weight: 600;
2081 }
2082 .repo-nav a.active::after {
2083 content: '';
2084 position: absolute;
2085 left: 14px;
2086 right: 14px;
2087 bottom: -1px;
2088 height: 2px;
2089 background: var(--accent-gradient);
2090 border-radius: 2px;
2091 }
2092 /* AI links in the right-side cluster — sparkle accent */
2093 .repo-nav-ai {
2094 color: var(--accent) !important;
2095 font-weight: 500;
2096 }
2097 .repo-nav-ai:hover {
2098 color: var(--accent-hover) !important;
2099 background: var(--accent-gradient-faint) !important;
2100 }
2101 .repo-nav-ai.active {
2102 color: var(--accent-hover) !important;
2ce1d0bClaude2103 font-weight: 600;
fc1817aClaude2104 }
2105
2ce1d0bClaude2106 .breadcrumb {
2107 display: flex;
debcf27Claude2108 gap: 6px;
2ce1d0bClaude2109 align-items: center;
debcf27Claude2110 margin-bottom: 18px;
2ce1d0bClaude2111 color: var(--text-muted);
2112 font-size: var(--t-sm);
2113 font-family: var(--font-mono);
debcf27Claude2114 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2115 }
2116 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2117 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2118 .breadcrumb strong {
2119 color: var(--text-strong);
2120 font-weight: 600;
fc1817aClaude2121 }
2122
debcf27Claude2123 /* Page header — eyebrow + title + optional actions row.
2124 Use on dashboard, settings, admin, any "section landing" page. */
2125 .page-header {
2126 display: flex;
2127 align-items: flex-end;
2128 justify-content: space-between;
2129 gap: 16px;
2130 margin-bottom: 28px;
2131 padding-bottom: 20px;
2132 border-bottom: 1px solid var(--border-subtle);
2133 flex-wrap: wrap;
2134 }
2135 .page-header-text { flex: 1; min-width: 280px; }
2136 .page-header .eyebrow { margin-bottom: var(--s-2); }
2137 .page-header h1 {
2138 font-family: var(--font-display);
2139 font-size: clamp(24px, 3vw, 36px);
2140 line-height: 1.1;
2141 letter-spacing: -0.028em;
2142 margin-bottom: 6px;
2143 }
2144 .page-header p {
2145 color: var(--text-muted);
2146 font-size: var(--t-sm);
2147 line-height: 1.55;
2148 max-width: 640px;
2149 }
2150 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2151
2ce1d0bClaude2152 /* ============================================================ */
2153 /* File browser table */
2154 /* ============================================================ */
2155 .file-table {
2156 width: 100%;
2157 border: 1px solid var(--border);
2158 border-radius: var(--r-md);
2159 overflow: hidden;
2160 background: var(--bg-elevated);
debcf27Claude2161 border-collapse: collapse;
2ce1d0bClaude2162 }
debcf27Claude2163 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2164 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2165 .file-table td {
2166 padding: 9px 16px;
2167 font-size: var(--t-sm);
2168 font-family: var(--font-mono);
2169 font-feature-settings: var(--mono-feat);
2170 }
2ce1d0bClaude2171 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2172 .file-icon {
2173 width: 22px;
2174 color: var(--text-faint);
2175 font-size: 13px;
2176 text-align: center;
2177 }
2178 .file-name a {
2179 color: var(--text);
2180 font-weight: 500;
2181 transition: color var(--t-fast) var(--ease);
2182 }
2183 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2184
2ce1d0bClaude2185 /* ============================================================ */
2186 /* Blob view */
2187 /* ============================================================ */
fc1817aClaude2188 .blob-view {
2189 border: 1px solid var(--border);
2ce1d0bClaude2190 border-radius: var(--r-md);
fc1817aClaude2191 overflow: hidden;
2ce1d0bClaude2192 background: var(--bg-elevated);
fc1817aClaude2193 }
2194 .blob-header {
2195 background: var(--bg-secondary);
2ce1d0bClaude2196 padding: 10px 16px;
fc1817aClaude2197 border-bottom: 1px solid var(--border);
2ce1d0bClaude2198 font-size: var(--t-sm);
fc1817aClaude2199 color: var(--text-muted);
06d5ffeClaude2200 display: flex;
2201 justify-content: space-between;
2202 align-items: center;
fc1817aClaude2203 }
2204 .blob-code {
2205 overflow-x: auto;
2206 font-family: var(--font-mono);
2ce1d0bClaude2207 font-size: var(--t-sm);
2208 line-height: 1.65;
fc1817aClaude2209 }
2210 .blob-code table { width: 100%; border-collapse: collapse; }
2211 .blob-code .line-num {
2212 width: 1%;
2ce1d0bClaude2213 min-width: 56px;
2214 padding: 0 14px;
fc1817aClaude2215 text-align: right;
2ce1d0bClaude2216 color: var(--text-faint);
fc1817aClaude2217 user-select: none;
2218 white-space: nowrap;
2219 border-right: 1px solid var(--border);
2220 }
2ce1d0bClaude2221 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2222 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2223
2ce1d0bClaude2224 /* ============================================================ */
2225 /* Commits + diffs */
2226 /* ============================================================ */
2227 .commit-list {
2228 border: 1px solid var(--border);
2229 border-radius: var(--r-md);
2230 overflow: hidden;
2231 background: var(--bg-elevated);
2232 }
fc1817aClaude2233 .commit-item {
2234 display: flex;
2235 justify-content: space-between;
2236 align-items: center;
debcf27Claude2237 padding: 14px 18px;
2238 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2239 transition: background var(--t-fast) var(--ease);
fc1817aClaude2240 }
2241 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2242 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2243 .commit-message {
2244 font-size: var(--t-sm);
2245 font-weight: 500;
2246 line-height: 1.45;
2247 color: var(--text-strong);
2248 letter-spacing: -0.005em;
2249 }
2250 .commit-meta {
2251 font-family: var(--font-mono);
2252 font-size: 11px;
2253 color: var(--text-muted);
2254 margin-top: 5px;
2255 letter-spacing: 0.01em;
2256 }
fc1817aClaude2257 .commit-sha {
2258 font-family: var(--font-mono);
debcf27Claude2259 font-feature-settings: var(--mono-feat);
2260 font-size: 11px;
2261 padding: 4px 9px;
fc1817aClaude2262 background: var(--bg-tertiary);
2263 border: 1px solid var(--border);
2ce1d0bClaude2264 border-radius: var(--r-sm);
debcf27Claude2265 color: var(--accent);
2266 font-weight: 600;
2267 letter-spacing: 0.02em;
2ce1d0bClaude2268 transition: all var(--t-fast) var(--ease);
fc1817aClaude2269 }
debcf27Claude2270 .commit-sha:hover {
2271 border-color: rgba(140,109,255,0.40);
2272 background: var(--accent-gradient-faint);
2273 color: var(--accent-hover);
2274 text-decoration: none;
fc1817aClaude2275 }
2276
2277 .diff-view { margin-top: 16px; }
2278 .diff-file {
2279 border: 1px solid var(--border);
2ce1d0bClaude2280 border-radius: var(--r-md);
fc1817aClaude2281 margin-bottom: 16px;
2282 overflow: hidden;
2ce1d0bClaude2283 background: var(--bg-elevated);
fc1817aClaude2284 }
2285 .diff-file-header {
2286 background: var(--bg-secondary);
2ce1d0bClaude2287 padding: 10px 16px;
fc1817aClaude2288 border-bottom: 1px solid var(--border);
2289 font-family: var(--font-mono);
2ce1d0bClaude2290 font-size: var(--t-sm);
2291 font-weight: 500;
fc1817aClaude2292 }
2293 .diff-content {
2294 overflow-x: auto;
2295 font-family: var(--font-mono);
2ce1d0bClaude2296 font-size: var(--t-sm);
2297 line-height: 1.65;
fc1817aClaude2298 }
958d26aClaude2299 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2300 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2301 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2302 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2303
2304 .stat-add { color: var(--green); font-weight: 600; }
2305 .stat-del { color: var(--red); font-weight: 600; }
2306
2ce1d0bClaude2307 /* ============================================================ */
2308 /* Empty state */
2309 /* ============================================================ */
fc1817aClaude2310 .empty-state {
2311 text-align: center;
958d26aClaude2312 padding: 96px 24px;
fc1817aClaude2313 color: var(--text-muted);
2ce1d0bClaude2314 border: 1px dashed var(--border);
2315 border-radius: var(--r-lg);
958d26aClaude2316 background:
2317 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2318 var(--bg-elevated);
2319 position: relative;
2320 overflow: hidden;
2321 }
2322 .empty-state::before {
2323 content: '';
2324 position: absolute;
2325 inset: 0;
2326 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2327 background-size: 24px 24px;
2328 opacity: 0.5;
2329 pointer-events: none;
2330 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2331 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2332 }
2333 :root[data-theme='light'] .empty-state::before {
2334 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2335 }
958d26aClaude2336 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2337 .empty-state h2 {
958d26aClaude2338 font-size: var(--t-xl);
2ce1d0bClaude2339 margin-bottom: 8px;
958d26aClaude2340 color: var(--text-strong);
2341 letter-spacing: -0.022em;
2ce1d0bClaude2342 }
958d26aClaude2343 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2344 .empty-state pre {
2345 text-align: left;
2346 display: inline-block;
2347 background: var(--bg-secondary);
958d26aClaude2348 padding: 18px 24px;
2349 border-radius: var(--r-md);
fc1817aClaude2350 border: 1px solid var(--border);
2351 font-family: var(--font-mono);
958d26aClaude2352 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2353 font-size: var(--t-sm);
958d26aClaude2354 margin-top: 24px;
fc1817aClaude2355 line-height: 1.8;
2ce1d0bClaude2356 color: var(--text);
958d26aClaude2357 box-shadow: var(--elev-1);
fc1817aClaude2358 }
2359
2ce1d0bClaude2360 /* ============================================================ */
2361 /* Badges */
2362 /* ============================================================ */
fc1817aClaude2363 .badge {
2ce1d0bClaude2364 display: inline-flex;
2365 align-items: center;
2366 gap: 4px;
2367 padding: 2px 9px;
2368 border-radius: var(--r-full);
2369 font-size: var(--t-xs);
fc1817aClaude2370 font-weight: 500;
2371 background: var(--bg-tertiary);
2372 border: 1px solid var(--border);
2373 color: var(--text-muted);
2ce1d0bClaude2374 line-height: 1.5;
fc1817aClaude2375 }
2376
2ce1d0bClaude2377 /* ============================================================ */
2378 /* Branch dropdown */
2379 /* ============================================================ */
fc1817aClaude2380 .branch-selector {
2381 display: inline-flex;
2382 align-items: center;
2ce1d0bClaude2383 gap: 6px;
2384 padding: 6px 12px;
2385 background: var(--bg-elevated);
fc1817aClaude2386 border: 1px solid var(--border);
2ce1d0bClaude2387 border-radius: var(--r-sm);
2388 font-size: var(--t-sm);
fc1817aClaude2389 color: var(--text);
2390 margin-bottom: 12px;
2ce1d0bClaude2391 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2392 }
2ce1d0bClaude2393 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2394
06d5ffeClaude2395 .branch-dropdown {
2396 position: relative;
2397 display: inline-block;
2398 margin-bottom: 12px;
2399 }
2400 .branch-dropdown-content {
2401 display: none;
2402 position: absolute;
2ce1d0bClaude2403 top: calc(100% + 4px);
06d5ffeClaude2404 left: 0;
2405 z-index: 10;
2ce1d0bClaude2406 min-width: 220px;
2407 background: var(--bg-elevated);
2408 border: 1px solid var(--border-strong);
2409 border-radius: var(--r-md);
2410 overflow: hidden;
2411 box-shadow: var(--elev-3);
06d5ffeClaude2412 }
2413 .branch-dropdown:hover .branch-dropdown-content,
2414 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2415 .branch-dropdown-content a {
2416 display: block;
2ce1d0bClaude2417 padding: 9px 14px;
2418 font-size: var(--t-sm);
06d5ffeClaude2419 color: var(--text);
2420 border-bottom: 1px solid var(--border);
2ce1d0bClaude2421 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2422 }
2423 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2424 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2425 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2426
2ce1d0bClaude2427 /* ============================================================ */
2428 /* Card grid */
2429 /* ============================================================ */
2430 .card-grid {
2431 display: grid;
2432 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2433 gap: 16px;
2434 }
fc1817aClaude2435 .card {
2436 border: 1px solid var(--border);
2ce1d0bClaude2437 border-radius: var(--r-md);
958d26aClaude2438 padding: 20px;
2ce1d0bClaude2439 background: var(--bg-elevated);
2440 transition:
958d26aClaude2441 border-color var(--t-base) var(--ease),
2442 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2443 box-shadow var(--t-base) var(--ease);
2444 position: relative;
2445 overflow: hidden;
958d26aClaude2446 isolation: isolate;
2447 }
2448 .card::before {
2449 content: '';
2450 position: absolute;
2451 inset: 0;
2452 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2453 opacity: 0;
2454 transition: opacity var(--t-base) var(--ease);
2455 pointer-events: none;
2456 z-index: -1;
2ce1d0bClaude2457 }
2458 .card:hover {
2459 border-color: var(--border-strong);
2460 box-shadow: var(--elev-2);
958d26aClaude2461 transform: translateY(-2px);
2ce1d0bClaude2462 }
958d26aClaude2463 .card:hover::before { opacity: 1; }
2464 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2465 .card h3 a { color: var(--text); font-weight: 600; }
2466 .card h3 a:hover { color: var(--text-link); }
2467 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2468 .card-meta {
2469 display: flex;
2470 gap: 14px;
2471 margin-top: 14px;
2472 padding-top: 14px;
2473 border-top: 1px solid var(--border);
2474 font-size: var(--t-xs);
2475 color: var(--text-muted);
2476 }
2477 .card-meta span { display: flex; align-items: center; gap: 5px; }
2478
2479 /* ============================================================ */
2480 /* Stat card / box */
2481 /* ============================================================ */
2482 .stat-card {
2483 background: var(--bg-elevated);
2484 border: 1px solid var(--border);
2485 border-radius: var(--r-md);
fc1817aClaude2486 padding: 16px;
2ce1d0bClaude2487 transition: border-color var(--t-fast) var(--ease);
2488 }
2489 .stat-card:hover { border-color: var(--border-strong); }
2490 .stat-label {
2491 font-size: var(--t-xs);
2492 color: var(--text-muted);
2493 text-transform: uppercase;
2494 letter-spacing: 0.06em;
2495 font-weight: 500;
2496 }
2497 .stat-value {
2498 font-size: var(--t-xl);
2499 font-weight: 700;
2500 margin-top: 4px;
2501 letter-spacing: -0.025em;
2502 color: var(--text);
2503 font-feature-settings: 'tnum';
fc1817aClaude2504 }
06d5ffeClaude2505
2ce1d0bClaude2506 /* ============================================================ */
2507 /* Star button */
2508 /* ============================================================ */
06d5ffeClaude2509 .star-btn {
2510 display: inline-flex;
2511 align-items: center;
2512 gap: 6px;
2ce1d0bClaude2513 padding: 5px 12px;
2514 background: var(--bg-elevated);
06d5ffeClaude2515 border: 1px solid var(--border);
2ce1d0bClaude2516 border-radius: var(--r-sm);
06d5ffeClaude2517 color: var(--text);
2ce1d0bClaude2518 font-size: var(--t-sm);
2519 font-weight: 500;
06d5ffeClaude2520 cursor: pointer;
2ce1d0bClaude2521 transition: all var(--t-fast) var(--ease);
2522 }
2523 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2524 .star-btn.starred {
2525 color: var(--yellow);
958d26aClaude2526 border-color: rgba(251,191,36,0.4);
2527 background: rgba(251,191,36,0.08);
06d5ffeClaude2528 }
2529
2ce1d0bClaude2530 /* ============================================================ */
2531 /* User profile */
2532 /* ============================================================ */
06d5ffeClaude2533 .user-profile {
2534 display: flex;
2535 gap: 32px;
2536 margin-bottom: 32px;
2ce1d0bClaude2537 padding: 24px;
2538 background: var(--bg-elevated);
2539 border: 1px solid var(--border);
2540 border-radius: var(--r-lg);
06d5ffeClaude2541 }
2542 .user-avatar {
2543 width: 96px;
2544 height: 96px;
2ce1d0bClaude2545 border-radius: var(--r-full);
2546 background: var(--accent-gradient-soft);
2547 border: 1px solid var(--border-strong);
06d5ffeClaude2548 display: flex;
2549 align-items: center;
2550 justify-content: center;
2ce1d0bClaude2551 font-size: 36px;
2552 font-weight: 600;
2553 color: var(--text);
06d5ffeClaude2554 flex-shrink: 0;
2ce1d0bClaude2555 letter-spacing: -0.02em;
06d5ffeClaude2556 }
2ce1d0bClaude2557 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2558 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2559 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2560
2ce1d0bClaude2561 /* ============================================================ */
2562 /* New repo form */
2563 /* ============================================================ */
2564 .new-repo-form { max-width: 640px; }
2565 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2566 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2567 .visibility-option {
2568 flex: 1;
2ce1d0bClaude2569 padding: 16px;
06d5ffeClaude2570 border: 1px solid var(--border);
2ce1d0bClaude2571 border-radius: var(--r-md);
2572 background: var(--bg-elevated);
06d5ffeClaude2573 cursor: pointer;
2ce1d0bClaude2574 text-align: left;
2575 transition: all var(--t-fast) var(--ease);
2576 }
2577 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2578 .visibility-option:has(input:checked) {
2579 border-color: var(--accent);
2580 background: var(--accent-gradient-faint);
2581 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2582 }
2583 .visibility-option input { display: none; }
2ce1d0bClaude2584 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2585 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2586
2ce1d0bClaude2587 /* ============================================================ */
2588 /* Issues */
2589 /* ============================================================ */
2590 .issue-tabs { display: flex; gap: 4px; }
2591 .issue-tabs a {
2592 color: var(--text-muted);
2593 font-size: var(--t-sm);
2594 font-weight: 500;
2595 padding: 6px 12px;
2596 border-radius: var(--r-sm);
2597 transition: all var(--t-fast) var(--ease);
2598 }
2599 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2600 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2601
2ce1d0bClaude2602 .issue-list {
2603 border: 1px solid var(--border);
2604 border-radius: var(--r-md);
2605 overflow: hidden;
2606 background: var(--bg-elevated);
2607 }
79136bbClaude2608 .issue-item {
2609 display: flex;
2ce1d0bClaude2610 gap: 14px;
79136bbClaude2611 align-items: flex-start;
2ce1d0bClaude2612 padding: 14px 16px;
79136bbClaude2613 border-bottom: 1px solid var(--border);
2ce1d0bClaude2614 transition: background var(--t-fast) var(--ease);
79136bbClaude2615 }
2616 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2617 .issue-item:hover { background: var(--bg-hover); }
2618 .issue-state-icon {
2619 font-size: 14px;
2620 padding-top: 2px;
2621 width: 18px;
2622 height: 18px;
2623 display: inline-flex;
2624 align-items: center;
2625 justify-content: center;
2626 border-radius: var(--r-full);
2627 flex-shrink: 0;
2628 }
79136bbClaude2629 .state-open { color: var(--green); }
958d26aClaude2630 .state-closed { color: #b69dff; }
2ce1d0bClaude2631 .issue-title {
debcf27Claude2632 font-family: var(--font-display);
2633 font-size: var(--t-md);
2ce1d0bClaude2634 font-weight: 600;
debcf27Claude2635 line-height: 1.35;
2636 letter-spacing: -0.012em;
2637 }
2638 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2639 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2640 .issue-meta {
2641 font-family: var(--font-mono);
2642 font-size: 11px;
2643 color: var(--text-muted);
2644 margin-top: 5px;
2645 letter-spacing: 0.01em;
2ce1d0bClaude2646 }
79136bbClaude2647
2648 .issue-badge {
2649 display: inline-flex;
2650 align-items: center;
2ce1d0bClaude2651 gap: 6px;
79136bbClaude2652 padding: 4px 12px;
2ce1d0bClaude2653 border-radius: var(--r-full);
2654 font-size: var(--t-sm);
79136bbClaude2655 font-weight: 500;
2ce1d0bClaude2656 line-height: 1.4;
79136bbClaude2657 }
958d26aClaude2658 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
2659 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
2660 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude2661 .state-merged { color: var(--accent); }
958d26aClaude2662 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude2663
2ce1d0bClaude2664 .issue-detail { max-width: 920px; }
79136bbClaude2665 .issue-comment-box {
2666 border: 1px solid var(--border);
2ce1d0bClaude2667 border-radius: var(--r-md);
79136bbClaude2668 margin-bottom: 16px;
2669 overflow: hidden;
2ce1d0bClaude2670 background: var(--bg-elevated);
79136bbClaude2671 }
2672 .comment-header {
2673 background: var(--bg-secondary);
2ce1d0bClaude2674 padding: 10px 16px;
79136bbClaude2675 border-bottom: 1px solid var(--border);
2ce1d0bClaude2676 font-size: var(--t-sm);
79136bbClaude2677 color: var(--text-muted);
2678 }
2679
2ce1d0bClaude2680 /* ============================================================ */
2681 /* Panel — flexible container used across many pages */
2682 /* ============================================================ */
2683 .panel {
2684 background: var(--bg-elevated);
2685 border: 1px solid var(--border);
2686 border-radius: var(--r-md);
2687 overflow: hidden;
2688 }
2689 .panel-item {
2690 display: flex;
2691 align-items: center;
2692 gap: 12px;
2693 padding: 12px 16px;
79136bbClaude2694 border-bottom: 1px solid var(--border);
2ce1d0bClaude2695 transition: background var(--t-fast) var(--ease);
2696 }
2697 .panel-item:last-child { border-bottom: none; }
2698 .panel-item:hover { background: var(--bg-hover); }
2699 .panel-empty {
2700 padding: 24px;
2701 text-align: center;
79136bbClaude2702 color: var(--text-muted);
2ce1d0bClaude2703 font-size: var(--t-sm);
79136bbClaude2704 }
2705
2ce1d0bClaude2706 /* ============================================================ */
2707 /* Search */
2708 /* ============================================================ */
79136bbClaude2709 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude2710
2ce1d0bClaude2711 /* ============================================================ */
2712 /* Timeline */
2713 /* ============================================================ */
2714 .timeline { position: relative; padding-left: 28px; }
16b325cClaude2715 .timeline::before {
2716 content: '';
2717 position: absolute;
2718 left: 4px;
2719 top: 8px;
2720 bottom: 8px;
2721 width: 2px;
2ce1d0bClaude2722 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude2723 }
2ce1d0bClaude2724 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude2725 .timeline-dot {
2726 position: absolute;
2ce1d0bClaude2727 left: -28px;
2728 top: 8px;
2729 width: 12px;
2730 height: 12px;
2731 border-radius: var(--r-full);
2732 background: var(--accent-gradient);
16b325cClaude2733 border: 2px solid var(--bg);
2ce1d0bClaude2734 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude2735 }
2736 .timeline-content {
2ce1d0bClaude2737 background: var(--bg-elevated);
16b325cClaude2738 border: 1px solid var(--border);
2ce1d0bClaude2739 border-radius: var(--r-md);
2740 padding: 14px 16px;
16b325cClaude2741 }
f1ab587Claude2742
2ce1d0bClaude2743 /* ============================================================ */
2744 /* Toggle switch */
2745 /* ============================================================ */
f1ab587Claude2746 .toggle-switch {
2747 position: relative;
2748 display: inline-block;
2ce1d0bClaude2749 width: 40px;
2750 height: 22px;
f1ab587Claude2751 flex-shrink: 0;
2752 margin-left: 16px;
2753 }
2754 .toggle-switch input { opacity: 0; width: 0; height: 0; }
2755 .toggle-slider {
2756 position: absolute;
2757 cursor: pointer;
2758 top: 0; left: 0; right: 0; bottom: 0;
2759 background: var(--bg-tertiary);
2760 border: 1px solid var(--border);
2ce1d0bClaude2761 border-radius: var(--r-full);
2762 transition: all var(--t-base) var(--ease);
f1ab587Claude2763 }
2764 .toggle-slider::before {
2765 content: '';
2766 position: absolute;
2ce1d0bClaude2767 height: 16px;
2768 width: 16px;
f1ab587Claude2769 left: 2px;
2770 bottom: 2px;
2771 background: var(--text-muted);
2ce1d0bClaude2772 border-radius: var(--r-full);
2773 transition: all var(--t-base) var(--ease);
f1ab587Claude2774 }
2775 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude2776 background: var(--accent-gradient);
2777 border-color: transparent;
958d26aClaude2778 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude2779 }
2780 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude2781 transform: translateX(18px);
f1ab587Claude2782 background: #fff;
2783 }
ef8d378Claude2784
2785 /* ============================================================
2786 * 2026 polish layer (purely additive — no layout changes).
2787 * Improves typography rendering, focus states, hover affordances,
2788 * and adds the gradient brand cue to primary buttons. Anything
2789 * that could alter dimensions stays in the rules above.
2790 * ============================================================ */
2791 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
2792 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
2793 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
2794
2795 h1, h2, h3, h4 { letter-spacing: -0.018em; }
2796 h1 { letter-spacing: -0.025em; }
2797
2798 /* Smoother colour transitions everywhere links live */
2799 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
2800
2801 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
2802 .btn {
2803 transition:
2804 background 120ms cubic-bezier(0.16,1,0.3,1),
2805 border-color 120ms cubic-bezier(0.16,1,0.3,1),
2806 transform 120ms cubic-bezier(0.16,1,0.3,1),
2807 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
2808 }
2809 .btn:active { transform: translateY(0.5px); }
2810 .btn:focus-visible {
2811 outline: none;
2812 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
2813 }
2814 .btn-primary {
2815 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2816 border-color: transparent;
2817 box-shadow:
2818 inset 0 1px 0 rgba(255,255,255,0.15),
2819 0 1px 2px rgba(168,85,247,0.25);
2820 }
2821 .btn-primary:hover {
2822 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
2823 filter: none;
2824 box-shadow:
2825 inset 0 1px 0 rgba(255,255,255,0.20),
2826 0 4px 12px rgba(168,85,247,0.30);
2827 }
2828
2829 /* Inputs: cleaner focus ring + hover */
2830 .form-group input:hover,
2831 .form-group textarea:hover,
2832 .form-group select:hover {
2833 border-color: rgba(255,255,255,0.14);
2834 }
2835 .form-group input:focus,
2836 .form-group textarea:focus,
2837 .form-group select:focus {
2838 border-color: rgba(168,85,247,0.55);
2839 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
2840 }
2841 :root[data-theme='light'] .form-group input:hover,
2842 :root[data-theme='light'] .form-group textarea:hover,
2843 :root[data-theme='light'] .form-group select:hover {
2844 border-color: rgba(0,0,0,0.18);
2845 }
2846
2847 /* Cards: subtle hover lift */
2848 .card {
2849 transition:
2850 border-color 160ms cubic-bezier(0.16,1,0.3,1),
2851 transform 160ms cubic-bezier(0.16,1,0.3,1),
2852 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
2853 }
2854 .card:hover {
2855 border-color: rgba(255,255,255,0.18);
2856 transform: translateY(-1px);
2857 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
2858 }
2859 :root[data-theme='light'] .card:hover {
2860 border-color: rgba(0,0,0,0.18);
2861 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
2862 }
2863
2864 /* Issue / commit / panel rows: smoother hover */
2865 .issue-item, .commit-item {
2866 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
2867 }
2868 .repo-nav a {
2869 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
2870 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
2871 }
2872 .nav-link {
2873 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
2874 }
2875
2876 /* Auth card: subtle elevation so register/login feel premium */
2877 .auth-container {
2878 background: var(--bg-secondary);
2879 border: 1px solid var(--border);
2880 border-radius: var(--r-lg, 12px);
2881 padding: 32px;
2882 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
2883 }
2884 :root[data-theme='light'] .auth-container {
2885 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
2886 }
2887 .auth-container h2 { letter-spacing: -0.025em; }
2888
2889 /* Empty state: dashed border, generous padding */
2890 .empty-state {
2891 border: 1px dashed var(--border);
2892 border-radius: var(--r-lg, 12px);
2893 background: var(--bg);
2894 }
2895
2896 /* Badges + commit-sha: smoother transition */
2897 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
2898
2899 /* Gradient text utility — matches landing's accent treatment */
2900 .gradient-text {
2901 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
2902 -webkit-background-clip: text;
2903 background-clip: text;
2904 -webkit-text-fill-color: transparent;
2905 }
2906
2907 /* Custom scrollbars (subtle, themed) */
2908 ::-webkit-scrollbar { width: 10px; height: 10px; }
2909 ::-webkit-scrollbar-track { background: transparent; }
2910 ::-webkit-scrollbar-thumb {
2911 background: rgba(255,255,255,0.06);
2912 border: 2px solid var(--bg);
2913 border-radius: 9999px;
2914 }
2915 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
2916 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
2917 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
2918
2919 /* Honour reduced-motion preference */
2920 @media (prefers-reduced-motion: reduce) {
2921 *, *::before, *::after {
2922 animation-duration: 0.01ms !important;
2923 animation-iteration-count: 1 !important;
2924 transition-duration: 0.01ms !important;
2925 }
2926 }
c63b860Claude2927
2928 /* Block O3 — visual coherence additive rules. */
2929 .card.card-p-none { padding: 0; }
2930 .card.card-p-sm { padding: var(--space-3); }
2931 .card.card-p-md { padding: var(--space-4); }
2932 .card.card-p-lg { padding: var(--space-6); }
2933 .card.card-elevated { box-shadow: var(--elev-2); }
2934 .card.card-gradient {
2935 background:
2936 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
2937 var(--bg-elevated);
2938 }
2939 .card.card-gradient::before { opacity: 1; }
2940 .notice {
2941 padding: var(--space-3) var(--space-4);
2942 border-radius: var(--radius-md);
2943 border: 1px solid var(--border);
2944 background: var(--bg-elevated);
2945 color: var(--text);
2946 font-size: var(--font-size-sm);
2947 margin-bottom: var(--space-6);
2948 line-height: var(--leading-normal);
2949 }
2950 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
2951 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
2952 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
2953 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
2954 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
2955 .email-preview {
2956 padding: var(--space-5);
2957 background: #fff;
2958 color: #111;
2959 border-radius: var(--radius-md);
2960 }
2961 .code-block {
2962 margin: var(--space-2) 0 0;
2963 padding: var(--space-3);
2964 background: var(--bg-tertiary);
2965 border: 1px solid var(--border-subtle);
2966 border-radius: var(--radius-sm);
2967 font-family: var(--font-mono);
2968 font-size: var(--font-size-xs);
2969 line-height: var(--leading-normal);
2970 overflow-x: auto;
2971 }
2972 .status-pill-operational {
2973 display: inline-flex;
2974 align-items: center;
2975 padding: var(--space-1) var(--space-3);
2976 border-radius: var(--radius-full);
2977 font-size: var(--font-size-xs);
2978 font-weight: 600;
2979 background: rgba(52,211,153,0.15);
2980 color: var(--green);
2981 }
2982 .api-tag {
2983 display: inline-flex;
2984 align-items: center;
2985 font-size: var(--font-size-xs);
2986 padding: 2px var(--space-2);
2987 border-radius: var(--radius-sm);
2988 font-family: var(--font-mono);
2989 }
2990 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
2991 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
2992 .stat-number {
2993 font-size: var(--font-size-xl);
2994 font-weight: 700;
2995 color: var(--text-strong);
2996 line-height: var(--leading-tight);
2997 }
2998 .stat-number-accent { color: var(--accent); }
2999 .stat-number-blue { color: var(--blue); }
3000 .stat-number-purple { color: var(--text-link); }
3001 footer .footer-tag-sub {
3002 margin-top: var(--space-2);
3003 font-size: var(--font-size-xs);
3004 color: var(--text-faint);
3005 line-height: var(--leading-normal);
3006 }
3007 footer .footer-version-pill {
3008 display: inline-flex;
3009 align-items: center;
3010 gap: var(--space-2);
3011 padding: var(--space-1) var(--space-3);
3012 border-radius: var(--radius-full);
3013 border: 1px solid var(--border);
3014 background: var(--bg-elevated);
3015 color: var(--text-faint);
3016 font-family: var(--font-mono);
3017 font-size: var(--font-size-xs);
3018 cursor: help;
3019 }
3020 footer .footer-banner {
3021 max-width: 1240px;
3022 margin: var(--space-6) auto 0;
3023 padding: var(--space-3) var(--space-4);
3024 border-radius: var(--radius-md);
3025 border: 1px solid var(--border);
3026 background: var(--bg-elevated);
3027 color: var(--text);
3028 font-family: var(--font-mono);
3029 font-size: var(--font-size-xs);
3030 letter-spacing: 0.04em;
3031 text-transform: uppercase;
3032 text-align: center;
3033 }
3034 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3035 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3036 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3037
cf9178bTest User3038 /* ============================================================ */
3039 /* Global toast notifications. */
3040 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3041 /* ============================================================ */
3042 .gx-toast {
3043 pointer-events: auto;
3044 display: inline-flex;
3045 align-items: flex-start;
3046 gap: 10px;
3047 min-width: 280px;
3048 max-width: min(440px, calc(100vw - 32px));
3049 padding: 12px 14px 12px 12px;
3050 background: var(--bg-elevated);
3051 border: 1px solid var(--border);
3052 border-radius: 10px;
3053 box-shadow:
3054 0 12px 36px -10px rgba(15,16,28,0.18),
3055 0 2px 6px rgba(15,16,28,0.04),
3056 0 0 0 1px rgba(15,16,28,0.02);
3057 color: var(--text);
3058 font-size: 13.5px;
3059 line-height: 1.45;
3060 opacity: 0;
3061 transform: translateX(16px);
3062 transition:
3063 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3064 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3065 }
3066 .gx-toast--in { opacity: 1; transform: translateX(0); }
3067 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3068 .gx-toast__icon {
3069 flex-shrink: 0;
3070 width: 20px; height: 20px;
3071 border-radius: 50%;
3072 display: inline-flex;
3073 align-items: center;
3074 justify-content: center;
3075 font-size: 12px;
3076 font-weight: 700;
3077 line-height: 1;
3078 margin-top: 1px;
3079 }
3080 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3081 .gx-toast__close {
3082 flex-shrink: 0;
3083 width: 22px; height: 22px;
3084 border: 0;
3085 background: transparent;
3086 color: var(--text-muted);
3087 font-size: 18px;
3088 line-height: 1;
3089 cursor: pointer;
3090 border-radius: 4px;
3091 padding: 0;
3092 margin: -2px -2px 0 0;
3093 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3094 }
3095 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3096 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3097 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3098 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3099 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3100 @media (prefers-reduced-motion: reduce) {
3101 .gx-toast { transition: opacity 60ms linear; transform: none; }
3102 .gx-toast--in, .gx-toast--out { transform: none; }
3103 }
3104
dc26881CC LABS App3105 /* ============================================================ */
3106 /* Block U4 — cross-document view transitions. */
3107 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3108 /* every same-origin navigation. Older browsers ignore these */
3109 /* rules entirely — no JS shim, no breakage. */
3110 /* prefers-reduced-motion disables the animation honourably. */
3111 /* ============================================================ */
3112 @view-transition {
3113 navigation: auto;
3114 }
3115 ::view-transition-old(root),
3116 ::view-transition-new(root) {
3117 animation-duration: 200ms;
3118 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3119 }
3120 ::view-transition-old(root) {
3121 animation-name: vt-fade-out;
3122 }
3123 ::view-transition-new(root) {
3124 animation-name: vt-fade-in;
3125 }
3126 @keyframes vt-fade-out {
3127 to { opacity: 0; }
3128 }
3129 @keyframes vt-fade-in {
3130 from { opacity: 0; }
3131 }
3132 @media (prefers-reduced-motion: reduce) {
3133 ::view-transition-old(root),
3134 ::view-transition-new(root) {
3135 animation-duration: 0s;
3136 }
3137 }
3138 /* The transition system picks up its root subject from this rule. */
3139 body {
3140 view-transition-name: root;
3141 }
fc1817aClaude3142`;