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.tsxBlame3447 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">
f5b9ef5Claude181 {/* Block N3 — site-admin platform-deploy status pill */}
f764c07Claude182 {user && (
183 <a
184 id="deploy-pill"
185 href="/admin/deploys"
186 class="nav-deploy-pill"
187 style="display:none"
188 aria-label="Platform deploy status"
189 title="Platform deploy status"
190 >
191 <span class="deploy-pill-dot" />
192 <span class="deploy-pill-text">Deploys</span>
193 </a>
194 )}
f5b9ef5Claude195 <a href="/explore" class="nav-link">Explore</a>
06d5ffeClaude196 {user ? (
197 <>
f5b9ef5Claude198 {/* AI dropdown */}
c6018a5Claude199 <div class="nav-ai-dropdown" data-nav-ai>
200 <button
201 type="button"
202 class="nav-link nav-ai-trigger"
203 aria-haspopup="true"
204 aria-expanded="false"
205 data-nav-ai-trigger
206 >
207 <span style="display:inline-flex;align-items:center;gap:5px">
f5b9ef5Claude208 <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
c6018a5Claude209 <path d="M12 2l2.39 5.95L20 9l-4.5 3.9L17 19l-5-3.2L7 19l1.5-6.1L4 9l5.61-1.05L12 2z" />
210 </svg>
211 AI
f5b9ef5Claude212 <span aria-hidden="true" style="font-size:9px;opacity:0.7">{String.fromCharCode(9660)}</span>
c6018a5Claude213 </span>
214 </button>
215 <div class="nav-ai-menu" role="menu" data-nav-ai-menu>
216 <a href="/standups" role="menuitem" class="nav-ai-item">
217 <span class="nav-ai-item-label">Standups</span>
218 <span class="nav-ai-item-sub">Daily AI brief</span>
219 </a>
220 <a href="/voice" role="menuitem" class="nav-ai-item">
221 <span class="nav-ai-item-label">Voice</span>
222 <span class="nav-ai-item-sub">Talk to ship a PR</span>
223 </a>
224 <a href="/refactors" role="menuitem" class="nav-ai-item">
225 <span class="nav-ai-item-label">Refactors</span>
226 <span class="nav-ai-item-sub">Multi-repo agent</span>
227 </a>
228 <a href="/specs" role="menuitem" class="nav-ai-item">
229 <span class="nav-ai-item-label">Specs</span>
230 <span class="nav-ai-item-sub">Spec-to-PR loop</span>
231 </a>
232 <a href="/ask" role="menuitem" class="nav-ai-item">
233 <span class="nav-ai-item-label">Ask AI</span>
234 <span class="nav-ai-item-sub">Cross-repo chat</span>
235 </a>
236 </div>
237 </div>
f5b9ef5Claude238 {/* Inbox bell with unread badge */}
239 <a
240 href="/inbox"
241 class="nav-inbox-btn"
242 aria-label={notificationCount && notificationCount > 0 ? `Inbox — ${notificationCount} unread` : "Inbox"}
243 title="Inbox"
244 >
245 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
246 <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
247 <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
248 </svg>
249 {notificationCount && notificationCount > 0 ? (
250 <span class="nav-inbox-badge" aria-hidden="true">
251 {notificationCount > 99 ? "99+" : notificationCount}
252 </span>
253 ) : null}
06d5ffeClaude254 </a>
f5b9ef5Claude255 <a href="/new" class="btn btn-sm btn-primary">+ New</a>
256 {/* User dropdown — consolidates profile + secondary nav */}
257 <div class="nav-user-dropdown" data-nav-user>
258 <button
259 type="button"
260 class="nav-user-trigger"
261 aria-haspopup="true"
262 aria-expanded="false"
263 data-nav-user-trigger
264 >
265 <span class="nav-user-avatar" aria-hidden="true">
266 {(user.displayName || user.username).charAt(0).toUpperCase()}
267 </span>
268 <span class="nav-user-name">{user.displayName || user.username}</span>
269 <span class="nav-user-caret" aria-hidden="true">{"▾"}</span>
270 </button>
271 <div class="nav-user-menu" role="menu" data-nav-user-menu>
272 <div class="nav-user-menu-header">
273 <span class="nav-user-menu-name">{user.displayName || user.username}</span>
274 <span class="nav-user-menu-handle">@{user.username}</span>
275 </div>
276 <div class="nav-user-menu-sep" />
277 <a href="/dashboard" role="menuitem" class="nav-user-item">Dashboard</a>
278 <a href="/pulls" role="menuitem" class="nav-user-item">Pull requests</a>
279 <a href="/issues" role="menuitem" class="nav-user-item">Issues</a>
280 <a href="/activity" role="menuitem" class="nav-user-item">Activity</a>
281 <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a>
282 <div class="nav-user-menu-sep" />
283 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
284 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
285 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
286 <div class="nav-user-menu-sep" />
287 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
288 <span class="theme-icon-dark">{"☾"} Light mode</span>
289 <span class="theme-icon-light">{"☀"} Dark mode</span>
290 </a>
291 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
292 </div>
293 </div>
06d5ffeClaude294 </>
295 ) : (
296 <>
f5b9ef5Claude297 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
298 <span class="theme-icon-dark">{"☾"}</span>
299 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude300 </a>
f5b9ef5Claude301 <a href="/login" class="nav-link">Sign in</a>
302 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude303 </>
304 )}
305 </div>
fc1817aClaude306 </nav>
307 </header>
45e31d0Claude308 <main id="main-content">{children}</main>
cf9178bTest User309 {/* Global toast host — populated by the toastScript below from
310 ?success= / ?error= / ?toast= query params. Replaces the
311 per-page banner pattern with one polished slide-in. */}
312 <div
313 id="toast-host"
314 aria-live="polite"
315 aria-atomic="true"
316 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"
317 />
fc1817aClaude318 <footer>
958d26aClaude319 <div class="footer-inner">
320 <div class="footer-brand">
321 <a href="/" class="logo">gluecron</a>
322 <p class="footer-tag">
323 AI-native code intelligence. Self-hosted git, automated CI,
324 push-time gates. Software that ships itself.
325 </p>
326 </div>
327 <div class="footer-links">
328 <div class="footer-col">
329 <div class="footer-col-title">Product</div>
b0148e9Claude330 <a href="/features">Features</a>
331 <a href="/pricing">Pricing</a>
958d26aClaude332 <a href="/explore">Explore</a>
333 <a href="/marketplace">Marketplace</a>
334 </div>
335 <div class="footer-col">
336 <div class="footer-col-title">Platform</div>
b0148e9Claude337 <a href="/help">Quickstart</a>
958d26aClaude338 <a href="/status">Status</a>
339 <a href="/api/graphql">GraphQL</a>
340 <a href="/mcp">MCP server</a>
341 </div>
342 <div class="footer-col">
b0148e9Claude343 <div class="footer-col-title">Company</div>
344 <a href="/about">About</a>
958d26aClaude345 <a href="/terms">Terms</a>
346 <a href="/privacy">Privacy</a>
347 <a href="/acceptable-use">Acceptable use</a>
348 </div>
349 </div>
350 </div>
351 <div class="footer-bottom">
352 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude353 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
354 <span class="footer-build-dot" aria-hidden="true" />
355 {build.sha} · {build.branch}
356 </span>
36b4cbdClaude357 </div>
c63b860Claude358 {siteBannerText ? (
359 <div
360 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
361 role="status"
362 aria-live="polite"
363 >
364 {siteBannerText}
365 </div>
366 ) : null}
fc1817aClaude367 </footer>
05cdb85Claude368 {/* Live update poller — checks /api/version every 15s, prompts
369 reload when the running sha changes. Pure progressive-
370 enhancement; degrades to nothing if JS is off. */}
371 <div
372 id="version-banner"
373 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"
374 >
375 <span style="display:inline-flex;align-items:center;gap:8px">
376 <span style="width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.6)" />
377 <span>New version available</span>
378 </span>
379 <button
380 type="button"
381 id="version-banner-reload"
382 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"
383 >
384 Reload
385 </button>
386 </div>
fa880f2Claude387 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude388 {/* Block N3 — site-admin deploy status pill (script-only). The pill
389 container is rendered above for authed users; this script bootstraps
390 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
391 and the pill stays display:none — zero leak. */}
392 {user && (
393 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
394 )}
699e5c7Claude395 {/* Block I4 — Command palette shell (hidden by default) */}
396 <div
397 id="cmdk-backdrop"
398 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
399 />
400 <div
401 id="cmdk-panel"
402 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"
403 >
404 <input
405 id="cmdk-input"
406 type="text"
407 placeholder="Type a command..."
408 aria-label="Command palette"
dc26881CC LABS App409 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"
699e5c7Claude410 />
411 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
412 </div>
fa880f2Claude413 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude414 {/* PWA-kill script: actively unregisters any service worker
415 previously installed under gluecron.com. Recovers any browser
416 still trapped in the SW reload loop from the legacy registrations. */}
417 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User418 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude419 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude420 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
fc1817aClaude421 </body>
422 </html>
423 );
424};
425
05cdb85Claude426// Live version poller. Checks /api/version every 15s; if the sha differs
427// from the one we booted with, reveal the floating 'New version' pill so
428// the user can reload onto the new code without manually refreshing.
429const versionPollerScript = `
430 (function(){
431 var loadedSha = null;
432 var banner, btn;
433 function poll(){
434 fetch('/api/version', { cache: 'no-store' })
435 .then(function(r){ return r.ok ? r.json() : null; })
436 .then(function(j){
437 if (!j || !j.sha) return;
438 if (loadedSha === null) { loadedSha = j.sha; return; }
439 if (j.sha !== loadedSha && banner) {
440 banner.style.display = 'inline-flex';
441 }
442 })
443 .catch(function(){});
444 }
445 function init(){
446 banner = document.getElementById('version-banner');
447 btn = document.getElementById('version-banner-reload');
448 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
449 poll();
450 setInterval(poll, 15000);
451 }
452 if (document.readyState === 'loading') {
453 document.addEventListener('DOMContentLoaded', init);
454 } else {
455 init();
456 }
457 })();
458`;
459
f764c07Claude460// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
461// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
462// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
463// display:none — there's no leakage of admin-only data to other users.
464//
465// Pill states (CSS classes on the container drive colour):
466// .deploy-pill-success 🟢 "Deployed 12s ago"
467// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
468// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
469// .deploy-pill-empty ⚪ "No deploys yet"
470//
471// Relative-time auto-refreshes every 15s without re-fetching.
472export const deployPillScript = `
473 (function(){
474 var pill, dot, text;
475 var state = { latest: null, asOf: null };
476
477 function classifyAge(ms){
478 if (ms < 0) return 'just now';
479 var s = Math.floor(ms / 1000);
480 if (s < 5) return 'just now';
481 if (s < 60) return s + 's ago';
482 var m = Math.floor(s / 60);
483 if (m < 60) return m + 'm ago';
484 var h = Math.floor(m / 60);
485 if (h < 24) return h + 'h ago';
486 var d = Math.floor(h / 24);
487 return d + 'd ago';
488 }
489 function elapsed(ms){
490 if (ms < 0) ms = 0;
491 var s = Math.floor(ms / 1000);
492 if (s < 60) return s + 's';
493 var m = Math.floor(s / 60);
494 var rem = s - m * 60;
495 return m + 'm ' + rem + 's';
496 }
497
498 function render(){
499 if (!pill || !text || !dot) return;
500 var d = state.latest;
81201ccTest User501 // When there's no deploy event yet, keep the pill HIDDEN. Showing
502 // "No deploys yet" was visible noise on every admin page load and
503 // flashed during reconnect cycles — admins don't need a placeholder.
504 // The pill reveals itself the first time a real deploy fires.
f764c07Claude505 if (!d) {
81201ccTest User506 pill.style.display = 'none';
f764c07Claude507 return;
508 }
509 pill.style.display = 'inline-flex';
510 var now = Date.now();
511 if (d.status === 'in_progress') {
512 pill.className = 'nav-deploy-pill deploy-pill-progress';
513 var started = Date.parse(d.started_at) || now;
514 text.textContent = 'Deploying… ' + elapsed(now - started);
515 } else if (d.status === 'succeeded') {
516 pill.className = 'nav-deploy-pill deploy-pill-success';
517 var ref = Date.parse(d.finished_at || d.started_at) || now;
518 text.textContent = 'Deployed ' + classifyAge(now - ref);
519 } else if (d.status === 'failed') {
520 pill.className = 'nav-deploy-pill deploy-pill-failed';
521 var refF = Date.parse(d.finished_at || d.started_at) || now;
522 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
523 } else {
524 pill.className = 'nav-deploy-pill';
525 text.textContent = d.status;
526 }
527 }
528
529 function fetchLatest(){
530 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
531 .then(function(r){ if (!r.ok) return null; return r.json(); })
532 .then(function(j){
533 if (!j || j.ok !== true) return;
534 state.latest = j.latest;
535 state.asOf = j.asOf;
536 render();
537 subscribe();
538 })
539 .catch(function(){});
540 }
541
542 var subscribed = false;
543 function subscribe(){
544 if (subscribed) return;
545 if (typeof EventSource === 'undefined') return;
546 subscribed = true;
547 var es;
bf19c50Test User548 // Exponential backoff with cap. Previously a tight 1500ms reconnect
549 // produced visible looping in the nav whenever the proxy timed out
550 // or the connection blipped — the bottom-of-page deploy pill
551 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
552 // successful message receipt.
553 var delay = 2000;
554 var DELAY_MAX = 60000;
555 function bump(){
556 delay = Math.min(delay * 2, DELAY_MAX);
557 }
558 function resetDelay(){
559 delay = 2000;
560 }
f764c07Claude561 function connect(){
562 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User563 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude564 es.onmessage = function(m){
bf19c50Test User565 resetDelay();
f764c07Claude566 try {
567 var d = JSON.parse(m.data);
568 if (d && d.run_id) {
569 if (!state.latest || state.latest.run_id === d.run_id ||
570 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
571 state.latest = d;
572 render();
573 }
574 }
575 } catch(e){}
576 };
577 es.onerror = function(){
578 try { es.close(); } catch(e){}
bf19c50Test User579 bump();
f764c07Claude580 setTimeout(connect, delay);
581 };
582 }
583 connect();
584 }
585
586 function init(){
587 pill = document.getElementById('deploy-pill');
588 if (!pill) return;
589 dot = pill.querySelector('.deploy-pill-dot');
590 text = pill.querySelector('.deploy-pill-text');
591 fetchLatest();
592 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
593 // without a fresh fetch.
594 setInterval(render, 15000);
595 }
596 if (document.readyState === 'loading') {
597 document.addEventListener('DOMContentLoaded', init);
598 } else {
599 init();
600 }
601 })();
602`;
603
6fc53bdClaude604// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User605// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
606// is honoured for users who explicitly opted in.
6fc53bdClaude607const themeInitScript = `
608 (function(){
609 try {
610 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User611 var t = m ? decodeURIComponent(m[1]) : 'light';
612 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude613 document.documentElement.setAttribute('data-theme', t);
614 } catch(_){}
615 })();
616`;
617
eae38d1Claude618// Block G1 — register service worker for offline / install support.
619// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App620//
cf9178bTest User621// Global toast notifications — reads ?success=, ?error=, ?toast= from the
622// URL on page load and surfaces a polished slide-in toast instead of the
623// per-page banner divs that crowded the layout. Toasts auto-dismiss after
624// 4.5s; query params are scrubbed from the URL via history.replaceState
625// so a subsequent Refresh doesn't re-fire the same toast.
626//
627// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
628// must be URI-encoded (callers already do this via encodeURIComponent
629// in c.redirect()).
630const toastScript = `
631 (function(){
632 function showToast(kind, message){
633 if (!message) return;
634 var host = document.getElementById('toast-host');
635 if (!host) return;
636 var el = document.createElement('div');
637 el.className = 'gx-toast gx-toast--' + kind;
638 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
639 var icon = document.createElement('span');
640 icon.className = 'gx-toast__icon';
641 icon.textContent = kind === 'success' ? '\\u2713'
642 : kind === 'error' ? '\\u00D7'
643 : kind === 'warn' ? '!'
644 : 'i';
645 el.appendChild(icon);
646 var text = document.createElement('span');
647 text.className = 'gx-toast__text';
648 text.textContent = message;
649 el.appendChild(text);
650 var close = document.createElement('button');
651 close.type = 'button';
652 close.className = 'gx-toast__close';
653 close.setAttribute('aria-label', 'Dismiss notification');
654 close.textContent = '\\u00D7';
655 close.addEventListener('click', function(){ dismiss(); });
656 el.appendChild(close);
657 host.appendChild(el);
658 // Force a reflow then add the visible class so the slide-in transitions.
659 void el.offsetWidth;
660 el.classList.add('gx-toast--in');
661 var timer = setTimeout(dismiss, 4500);
662 function dismiss(){
663 clearTimeout(timer);
664 el.classList.remove('gx-toast--in');
665 el.classList.add('gx-toast--out');
666 setTimeout(function(){
667 if (el.parentNode) el.parentNode.removeChild(el);
668 }, 220);
669 }
670 }
671 try {
672 var url = new URL(window.location.href);
673 var hits = 0;
674 var s = url.searchParams.get('success');
675 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
676 var e = url.searchParams.get('error');
677 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
678 var t = url.searchParams.get('toast');
679 if (t) {
680 var ix = t.indexOf(':');
681 var kind = ix > 0 ? t.slice(0, ix) : 'info';
682 var msg = ix > 0 ? t.slice(ix + 1) : t;
683 showToast(kind, msg);
684 url.searchParams.delete('toast');
685 hits++;
686 }
687 if (hits > 0 && window.history && window.history.replaceState) {
688 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
689 }
690 } catch(_) {}
691 })();
692`;
693
44fe49bClaude694// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
695// and pwaInstallBannerScript. Those two scripts registered /sw.js and
696// /sw-push.js at the same scope, causing a reload loop that made the
697// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
698// uncllickable). Per the SW spec, only one SW can control a scope; two
699// different script URLs at the same scope keep replacing each other.
6345c3eTest User700//
44fe49bClaude701// PWA is gone for good. A git host has no use for service workers,
702// install-as-app, or push notifications via SW. This script actively
703// unregisters every previously installed SW on the gluecron.com origin
704// so any browser still trapped in the loop recovers on the very next
705// page load — without needing the user to clear site data or open
706// DevTools. Idempotent and safe to keep running forever; once all
707// browsers have been cleaned, it's a no-op.
708const pwaKillSwitchScript = `
534f04aClaude709(function(){
710 try {
44fe49bClaude711 if (!('serviceWorker' in navigator)) return;
712 if (!navigator.serviceWorker.getRegistrations) return;
713 navigator.serviceWorker.getRegistrations().then(function(regs){
714 if (!regs || regs.length === 0) return;
715 regs.forEach(function(reg){
716 try { reg.unregister(); } catch(_){}
717 });
718 }).catch(function(){});
719 // Also drop any caches the old SWs left behind so the user gets
720 // truly fresh HTML on every page load. Restricted to gluecron-*
721 // namespaced caches so we don't trample anything a future opt-in
722 // feature might create under a different name.
723 if ('caches' in self) {
724 caches.keys().then(function(keys){
725 keys.forEach(function(k){
726 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
727 try { caches.delete(k); } catch(_){}
d7ba05dClaude728 }
729 });
730 }).catch(function(){});
534f04aClaude731 }
732 } catch(_) {}
733})();
734`;
735
3ef4c9dClaude736const navScript = `
737 (function(){
738 var chord = null;
739 var chordTimer = null;
740 function isTyping(t){
741 t = t || {};
742 var tag = (t.tagName || '').toLowerCase();
743 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
744 }
71cd5ecClaude745
746 // ---------- Block I4 — Command palette ----------
747 var COMMANDS = [
748 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
749 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
750 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
751 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
752 { label: 'Create new repository', href: '/new', kw: 'add create' },
753 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
754 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
755 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
756 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
757 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
758 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
759 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
760 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
761 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude762 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude763 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
764 { label: 'Gists', href: '/gists', kw: 'snippets' },
765 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
766 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
767 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
768 ];
769
770 function fuzzyMatch(item, q){
771 if (!q) return true;
772 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
773 q = q.toLowerCase();
774 var qi = 0;
775 for (var i = 0; i < hay.length && qi < q.length; i++) {
776 if (hay[i] === q[qi]) qi++;
777 }
778 return qi === q.length;
779 }
780
781 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
782
783 function render(){
784 if (!list) return;
785 var html = '';
786 for (var i = 0; i < filtered.length; i++) {
787 var item = filtered[i];
788 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
789 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]790 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App791 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude792 '<div>' + item.label + '</div>' +
793 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
794 '</div>';
795 }
796 if (filtered.length === 0) {
dc26881CC LABS App797 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude798 }
799 list.innerHTML = html;
800 }
801
802 function openPalette(){
803 backdrop = document.getElementById('cmdk-backdrop');
804 panel = document.getElementById('cmdk-panel');
805 input = document.getElementById('cmdk-input');
806 list = document.getElementById('cmdk-list');
807 if (!backdrop || !panel) return;
808 backdrop.style.display = 'block';
809 panel.style.display = 'block';
810 input.value = '';
811 selected = 0;
812 filtered = COMMANDS.slice();
813 render();
814 input.focus();
815 }
816 function closePalette(){
817 if (backdrop) backdrop.style.display = 'none';
818 if (panel) panel.style.display = 'none';
819 }
820 function go(href){ closePalette(); window.location.href = href; }
821
822 document.addEventListener('click', function(e){
823 var t = e.target;
824 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
825 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]826 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude827 });
828
829 document.addEventListener('input', function(e){
830 if (e.target && e.target.id === 'cmdk-input') {
831 var q = e.target.value;
832 filtered = COMMANDS.filter(function(c){ return fuzzyMatch(c, q); });
833 selected = 0;
834 render();
835 }
836 });
837
3ef4c9dClaude838 document.addEventListener('keydown', function(e){
71cd5ecClaude839 // Palette-scoped keys take priority when open
840 if (panel && panel.style.display === 'block') {
841 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
842 if (e.key === 'ArrowDown') {
843 e.preventDefault();
844 selected = Math.min(filtered.length - 1, selected + 1);
845 render();
846 return;
847 }
848 if (e.key === 'ArrowUp') {
849 e.preventDefault();
850 selected = Math.max(0, selected - 1);
851 render();
852 return;
853 }
854 if (e.key === 'Enter') {
855 e.preventDefault();
856 var item = filtered[selected];
857 if (item) go(item.href);
858 return;
859 }
860 return;
861 }
862
3ef4c9dClaude863 if (isTyping(e.target)) return;
864 // Single key shortcuts
865 if (e.key === '/') {
866 var el = document.querySelector('.nav-search input');
867 if (el) { e.preventDefault(); el.focus(); return; }
868 }
869 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude870 e.preventDefault();
871 openPalette();
872 return;
3ef4c9dClaude873 }
874 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
875 e.preventDefault(); window.location.href = '/shortcuts'; return;
876 }
877 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
878 e.preventDefault(); window.location.href = '/new'; return;
879 }
880 // "g" chord
881 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
882 chord = 'g';
883 clearTimeout(chordTimer);
884 chordTimer = setTimeout(function(){ chord = null; }, 1200);
885 return;
886 }
887 if (chord === 'g') {
888 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
889 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
890 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
891 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
892 chord = null;
893 }
5882af3Claude894 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
895 if (e.key === 'j' || e.key === 'k') {
896 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
897 var items = Array.from(document.querySelectorAll(selectors));
898 if (items.length === 0) return;
899 e.preventDefault();
900 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
901 var next = e.key === 'j' ? (cur < 0 ? 0 : Math.min(items.length - 1, cur + 1)) : (cur < 0 ? items.length - 1 : Math.max(0, cur - 1));
902 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
903 items[next].classList.add('is-kbd-focus');
904 items[next].scrollIntoView({ block: 'nearest' });
905 return;
906 }
907 if (e.key === 'Enter') {
908 var focused = document.querySelector('.is-kbd-focus');
909 if (focused) {
910 e.preventDefault();
911 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
912 if (link && link.href) { window.location.href = link.href; }
913 return;
914 }
915 }
916 if (e.key === 'x') {
917 // 'x' selects/deselects focused item (future: bulk actions)
918 var sel = document.querySelector('.is-kbd-focus');
919 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
920 }
3ef4c9dClaude921 });
922 })();
923`;
924
c6018a5Claude925// AI dropdown — keyboard- and click-accessible menu in the top nav.
926// CSS handles the hover-open behaviour for pointer users; this script
927// adds click-to-toggle for touch, Escape-to-close, and outside-click-
928// to-close. Lives in its own IIFE so it never interferes with navScript.
929const navAiDropdownScript = `
930 (function(){
f5b9ef5Claude931 function makeDropdown(rootSel, triggerSel, menuSel) {
932 var open = false;
933 var root = document.querySelector(rootSel);
934 if (!root) return;
935 var trigger = root.querySelector(triggerSel);
936 var menu = root.querySelector(menuSel);
937 if (!trigger || !menu) return;
938 function setOpen(next){
939 open = !!next;
940 root.classList.toggle('is-open', open);
941 menu.classList.toggle('is-open', open);
942 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
943 }
944 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
945 document.addEventListener('click', function(e){
946 if (!open) return;
947 if (root.contains(e.target)) return;
948 setOpen(false);
949 });
950 document.addEventListener('keydown', function(e){
951 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
952 });
c6018a5Claude953 }
f5b9ef5Claude954 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
955 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude956 })();
957`;
958
fc1817aClaude959const css = `
2ce1d0bClaude960 /* ================================================================
958d26aClaude961 * Gluecron design system — 2026.05 "Editorial-Technical"
962 * Slate-noir base · refined violet signature · hairline geometry ·
963 * mono-as-feature · cinematic motion · Inter Tight + JetBrains Mono.
964 * All class names preserved for back-compat across 50+ route views.
2ce1d0bClaude965 * ============================================================== */
6fc53bdClaude966 :root, :root[data-theme='dark'] {
958d26aClaude967 /* Surfaces — slate, not black. More depth, less crush. */
968 --bg: #08090f;
969 --bg-secondary: #0c0d14;
970 --bg-tertiary: #11131c;
971 --bg-elevated: #0f111a;
972 --bg-surface: #161826;
973 --bg-hover: rgba(255,255,255,0.04);
974 --bg-active: rgba(255,255,255,0.08);
975 --bg-inset: rgba(0,0,0,0.30);
976
977 /* Borders — three weights, used deliberately */
978 --border: rgba(255,255,255,0.06);
979 --border-subtle: rgba(255,255,255,0.035);
980 --border-strong: rgba(255,255,255,0.13);
981 --border-focus: rgba(140,109,255,0.55);
982
983 /* Text */
984 --text: #ededf2;
985 --text-strong: #f7f7fb;
986 --text-muted: #8b8c9c;
987 --text-faint: #555665;
988 --text-link: #b69dff;
989
990 /* Accent — refined violet (less candy), warm amber as secondary signal */
991 --accent: #8c6dff;
992 --accent-2: #36c5d6;
993 --accent-warm: #ffb45e;
994 --accent-hover: #a48bff;
995 --accent-pressed:#7559e8;
996 --accent-gradient: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
997 --accent-gradient-soft: linear-gradient(135deg, rgba(140,109,255,0.18) 0%, rgba(54,197,214,0.18) 100%);
998 --accent-gradient-faint: linear-gradient(135deg, rgba(140,109,255,0.07) 0%, rgba(54,197,214,0.07) 100%);
999 --accent-glow: 0 0 24px rgba(140,109,255,0.28);
1000
1001 /* Semantic */
1002 --green: #34d399;
1003 --red: #f87171;
1004 --yellow: #fbbf24;
1005 --amber: #fbbf24;
1006 --blue: #60a5fa;
1007
3a5755eClaude1008 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1009 display (headlines), JetBrains Mono for code. All three loaded from
1010 Google Fonts with display:swap so we never block first paint. System
1011 fallbacks remain in place — if the CDN is unreachable the site still
1012 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1013 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1014 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1015 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1016 --mono-feat: 'calt', 'liga', 'ss01';
1017
1018 /* Radius — sharper than before */
1019 --r-sm: 5px;
1020 --r: 7px;
1021 --r-md: 9px;
1022 --r-lg: 12px;
1023 --r-xl: 16px;
1024 --r-2xl: 22px;
1025 --r-full: 9999px;
1026 --radius: 7px;
1027
1028 /* Type scale — bigger display sizes for editorial feel */
1029 --t-xs: 11px;
1030 --t-sm: 13px;
1031 --t-base: 14px;
1032 --t-md: 16px;
1033 --t-lg: 20px;
1034 --t-xl: 28px;
1035 --t-2xl: 40px;
1036 --t-3xl: 56px;
1037 --t-display: 72px;
1038 --t-display-lg:96px;
1039
1040 /* Spacing — 4px base */
2ce1d0bClaude1041 --s-0: 0;
958d26aClaude1042 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1043 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1044 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1045 --s-20:80px; --s-24:96px; --s-32:128px;
1046
1047 /* Elevation — softer + more layered */
1048 --elev-0: 0 0 0 1px var(--border);
1049 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1050 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1051 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
1052 --elev-glow: 0 0 0 1px rgba(140,109,255,0.40), 0 0 32px -4px rgba(140,109,255,0.30);
1053 --ring: 0 0 0 3px rgba(140,109,255,0.28);
1054 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1055 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1056
1057 /* Motion */
1058 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1059 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1060 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1061 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1062 --t-fast: 120ms;
1063 --t-base: 200ms;
1064 --t-slow: 360ms;
1065 --t-slower:560ms;
1066
1067 --header-h: 60px;
c63b860Claude1068
1069 /* Block O3 — visual coherence: named token aliases (additive). */
1070 --space-1: var(--s-1);
1071 --space-2: var(--s-2);
1072 --space-3: var(--s-3);
1073 --space-4: var(--s-4);
1074 --space-5: var(--s-5);
1075 --space-6: var(--s-6);
1076 --space-8: var(--s-8);
1077 --space-10: var(--s-10);
1078 --space-12: var(--s-12);
1079 --space-16: var(--s-16);
1080 --space-20: var(--s-20);
1081 --space-24: var(--s-24);
1082 --radius-sm: var(--r-sm);
1083 --radius-md: var(--r-md);
1084 --radius-lg: var(--r-lg);
1085 --radius-xl: var(--r-xl);
1086 --radius-full: var(--r-full);
1087 --font-size-xs: var(--t-xs);
1088 --font-size-sm: var(--t-sm);
1089 --font-size-base: var(--t-base);
1090 --font-size-md: var(--t-md);
1091 --font-size-lg: var(--t-lg);
1092 --font-size-xl: var(--t-xl);
1093 --font-size-2xl: var(--t-2xl);
1094 --font-size-3xl: var(--t-3xl);
1095 --font-size-hero: var(--t-display);
1096 --leading-tight: 1.2;
1097 --leading-snug: 1.35;
1098 --leading-normal: 1.5;
1099 --leading-relaxed: 1.6;
1100 --leading-loose: 1.7;
1101 --z-base: 1;
1102 --z-nav: 10;
1103 --z-sticky: 50;
1104 --z-overlay: 100;
1105 --z-modal: 1000;
1106 --z-toast: 10000;
fc1817aClaude1107 }
1108
6fc53bdClaude1109 :root[data-theme='light'] {
958d26aClaude1110 --bg: #fbfbfc;
4c47454Claude1111 --bg-secondary: #ffffff;
958d26aClaude1112 --bg-tertiary: #f3f3f6;
1113 --bg-elevated: #ffffff;
1114 --bg-surface: #f6f6f9;
1115 --bg-hover: rgba(0,0,0,0.035);
1116 --bg-active: rgba(0,0,0,0.07);
1117 --bg-inset: rgba(0,0,0,0.04);
1118
1119 --border: rgba(15,16,28,0.08);
1120 --border-subtle: rgba(15,16,28,0.04);
1121 --border-strong: rgba(15,16,28,0.16);
1122
1123 --text: #0e1020;
1124 --text-strong: #050617;
1125 --text-muted: #5a5b70;
1126 --text-faint: #8a8b9e;
1127 --text-link: #6d4dff;
1128
1129 --accent: #6d4dff;
1130 --accent-2: #0891b2;
1131 --accent-hover: #5a3df0;
1132 --accent-pressed:#4a30d6;
1133 --accent-glow: 0 0 24px rgba(109,77,255,0.18);
1134
1135 --green: #059669;
1136 --red: #dc2626;
4c47454Claude1137 --yellow: #d97706;
958d26aClaude1138
1139 --elev-1: 0 1px 2px rgba(15,16,28,0.06), 0 0 0 1px var(--border);
1140 --elev-2: 0 8px 24px -10px rgba(15,16,28,0.10), 0 0 0 1px var(--border);
1141 --elev-3: 0 20px 48px -16px rgba(15,16,28,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1142 }
1143
1144 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1145 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1146 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1147 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1148 :root[data-theme='light'] .theme-icon-light { display: none; }
1149
fc1817aClaude1150 * { margin: 0; padding: 0; box-sizing: border-box; }
958d26aClaude1151 *::selection { background: rgba(140,109,255,0.32); color: var(--text-strong); }
2ce1d0bClaude1152
958d26aClaude1153 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1154
1155 body {
1156 font-family: var(--font-sans);
1157 background: var(--bg);
1158 color: var(--text);
cf9178bTest User1159 font-size: 15px;
2ce1d0bClaude1160 line-height: 1.55;
958d26aClaude1161 letter-spacing: -0.011em;
fc1817aClaude1162 min-height: 100vh;
1163 display: flex;
1164 flex-direction: column;
958d26aClaude1165 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1166 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1167 and disables automatic synthesis of bold/italic which can produce
1168 muddier rendering on certain weights. */
1169 -webkit-font-smoothing: antialiased;
1170 -moz-osx-font-smoothing: grayscale;
1171 font-synthesis: none;
1172 }
1173 /* Tighten heading rhythm — the body is 15/1.55, headings step down
1174 line-height inversely with size so display text doesn't feel airy. */
1175 h1, h2, h3, h4, h5, h6 {
1176 font-family: var(--font-display);
1177 color: var(--text-strong);
1178 letter-spacing: -0.022em;
1179 line-height: 1.18;
1180 font-weight: 650;
1181 margin-top: 0;
1182 }
1183 h1 { font-size: 28px; letter-spacing: -0.028em; }
1184 h2 { font-size: 22px; }
1185 h3 { font-size: 18px; letter-spacing: -0.018em; }
1186 h4 { font-size: 15.5px; letter-spacing: -0.012em; font-weight: 600; }
1187 /* Link refinement — underline only on hover/focus, never by default
1188 on internal nav. Prevents the "blue underline soup" look. */
1189 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1190 a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
1191 a:focus-visible {
1192 outline: none;
1193 box-shadow: 0 0 0 3px rgba(109,77,255,0.32);
1194 border-radius: 3px;
fc1817aClaude1195 }
1196
958d26aClaude1197 /* Whole-page atmosphere: very subtle gradient + dot-grid layered behind everything.
1198 Keeps every page feeling like part of the same product without competing with hero art. */
2ce1d0bClaude1199 body::before {
1200 content: '';
1201 position: fixed;
1202 inset: 0;
1203 pointer-events: none;
958d26aClaude1204 z-index: -2;
2ce1d0bClaude1205 background:
958d26aClaude1206 radial-gradient(70% 55% at 85% -20%, rgba(140,109,255,0.07), transparent 65%),
1207 radial-gradient(55% 45% at -10% 115%, rgba(54,197,214,0.05), transparent 65%);
1208 }
1209 body::after {
1210 content: '';
1211 position: fixed;
1212 inset: 0;
1213 pointer-events: none;
1214 z-index: -1;
1215 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
1216 background-size: 28px 28px;
1217 background-position: 0 0;
1218 opacity: 0.55;
1219 mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1220 -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
1221 }
1222 :root[data-theme='light'] body::before { opacity: 0.55; }
1223 :root[data-theme='light'] body::after {
1224 background-image: radial-gradient(rgba(15,16,28,0.06) 1px, transparent 1px);
1225 opacity: 0.4;
fc1817aClaude1226 }
2ce1d0bClaude1227
1228 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
1229 a:hover { color: var(--accent-hover); text-decoration: none; }
fc1817aClaude1230
958d26aClaude1231 /* Heading scale — confident, editorial, tight tracking */
1232 h1, h2, h3, h4, h5, h6 {
1233 font-family: var(--font-display);
2ce1d0bClaude1234 font-weight: 600;
958d26aClaude1235 letter-spacing: -0.022em;
1236 line-height: 1.18;
1237 color: var(--text-strong);
1238 }
1239 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1240 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1241 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1242 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1243 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1244
1245 /* Editorial display heading utility — used by landing + marketing pages */
1246 .display {
1247 font-family: var(--font-display);
1248 font-size: clamp(40px, 7.5vw, 96px);
1249 line-height: 0.98;
1250 letter-spacing: -0.04em;
1251 font-weight: 600;
1252 color: var(--text-strong);
2ce1d0bClaude1253 }
fc1817aClaude1254
958d26aClaude1255 /* Eyebrow — uppercase mono label that sits above section headings */
1256 .eyebrow {
1257 display: inline-flex;
1258 align-items: center;
1259 gap: 8px;
1260 font-family: var(--font-mono);
1261 font-size: 11px;
1262 font-weight: 500;
1263 letter-spacing: 0.14em;
1264 text-transform: uppercase;
1265 color: var(--accent);
1266 margin-bottom: var(--s-3);
1267 }
1268 .eyebrow::before {
1269 content: '';
1270 width: 18px;
1271 height: 1px;
1272 background: currentColor;
1273 opacity: 0.6;
1274 }
1275
1276 /* Section header — paired eyebrow + title + lede */
1277 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1278 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1279 .section-header h2 {
1280 font-size: clamp(28px, 4vw, 44px);
1281 line-height: 1.05;
1282 letter-spacing: -0.028em;
1283 margin-bottom: var(--s-3);
1284 }
1285 .section-header p {
1286 color: var(--text-muted);
1287 font-size: var(--t-md);
1288 line-height: 1.6;
1289 max-width: 580px;
1290 margin: 0 auto;
1291 }
1292 .section-header.left p { margin-left: 0; }
fc1817aClaude1293
958d26aClaude1294 code, kbd, samp {
2ce1d0bClaude1295 font-family: var(--font-mono);
958d26aClaude1296 font-feature-settings: var(--mono-feat);
1297 }
1298 code {
1299 font-size: 0.9em;
2ce1d0bClaude1300 background: var(--bg-tertiary);
958d26aClaude1301 border: 1px solid var(--border-subtle);
2ce1d0bClaude1302 padding: 1px 6px;
1303 border-radius: var(--r-sm);
1304 color: var(--text);
1305 }
958d26aClaude1306 kbd, .kbd {
1307 display: inline-flex;
1308 align-items: center;
1309 padding: 1px 6px;
1310 font-family: var(--font-mono);
1311 font-size: 11px;
1312 background: var(--bg-elevated);
1313 border: 1px solid var(--border);
1314 border-bottom-width: 2px;
1315 border-radius: 4px;
1316 color: var(--text);
1317 line-height: 1.5;
1318 vertical-align: middle;
1319 }
2ce1d0bClaude1320
958d26aClaude1321 /* Mono utility for technical chrome (paths, IDs, dates) */
1322 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1323 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1324
1325 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1326 .prelaunch-banner {
958d26aClaude1327 position: relative;
2ce1d0bClaude1328 background:
958d26aClaude1329 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1330 var(--bg);
958d26aClaude1331 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1332 color: var(--yellow);
958d26aClaude1333 padding: 7px 24px;
1334 font-family: var(--font-mono);
1335 font-size: 11px;
4a52a98Claude1336 font-weight: 500;
1337 text-align: center;
2ce1d0bClaude1338 line-height: 1.5;
958d26aClaude1339 letter-spacing: 0.04em;
1340 text-transform: uppercase;
1341 }
1342 .prelaunch-banner::before {
1343 content: '◆';
1344 margin-right: 8px;
1345 font-size: 9px;
1346 opacity: 0.7;
1347 vertical-align: 1px;
4a52a98Claude1348 }
1349
cd4f63bTest User1350 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1351 visitors don't miss the "save your work" CTA, but slim enough to
1352 not feel like a modal. */
1353 .playground-banner {
1354 position: relative;
1355 display: flex;
1356 align-items: center;
1357 justify-content: center;
1358 gap: 8px;
1359 background:
1360 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1361 var(--bg);
1362 border-bottom: 1px solid rgba(251,191,36,0.45);
1363 color: var(--yellow, #fbbf24);
1364 padding: 8px 40px 8px 24px;
1365 font-size: 13px;
1366 font-weight: 500;
1367 text-align: center;
1368 line-height: 1.4;
1369 }
1370 .playground-banner-icon { font-size: 14px; }
1371 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1372 .playground-banner-countdown { font-weight: 600; }
1373 .playground-banner-cta {
1374 margin-left: 4px;
1375 color: var(--yellow, #fbbf24);
1376 text-decoration: underline;
1377 font-weight: 600;
1378 }
1379 .playground-banner-cta:hover { opacity: 0.85; }
1380 .playground-banner-dismiss {
1381 position: absolute;
1382 top: 50%;
1383 right: 12px;
1384 transform: translateY(-50%);
1385 background: transparent;
1386 border: none;
1387 color: var(--text-muted, #8b949e);
1388 font-size: 18px;
1389 line-height: 1;
1390 cursor: pointer;
1391 padding: 0 4px;
1392 }
1393 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1394
958d26aClaude1395 /* Header — sticky, blurred, hairline border, taller for breathing room */
fc1817aClaude1396 header {
2ce1d0bClaude1397 position: sticky;
1398 top: 0;
1399 z-index: 100;
fc1817aClaude1400 border-bottom: 1px solid var(--border);
2ce1d0bClaude1401 padding: 0 24px;
1402 height: var(--header-h);
958d26aClaude1403 background: rgba(8,9,15,0.72);
1404 backdrop-filter: saturate(180%) blur(18px);
1405 -webkit-backdrop-filter: saturate(180%) blur(18px);
fc1817aClaude1406 }
958d26aClaude1407 :root[data-theme='light'] header { background: rgba(251,251,252,0.78); }
fc1817aClaude1408
06d5ffeClaude1409 header nav {
1410 display: flex;
1411 align-items: center;
958d26aClaude1412 gap: 18px;
eed4684Claude1413 max-width: 1920px;
06d5ffeClaude1414 margin: 0 auto;
2ce1d0bClaude1415 height: 100%;
1416 }
1417 .logo {
958d26aClaude1418 font-family: var(--font-display);
1419 font-size: 16px;
2ce1d0bClaude1420 font-weight: 700;
958d26aClaude1421 letter-spacing: -0.025em;
1422 color: var(--text-strong);
2ce1d0bClaude1423 display: inline-flex;
1424 align-items: center;
958d26aClaude1425 gap: 9px;
1426 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1427 }
2ce1d0bClaude1428 .logo::before {
1429 content: '';
958d26aClaude1430 width: 20px; height: 20px;
1431 border-radius: 6px;
2ce1d0bClaude1432 background: var(--accent-gradient);
958d26aClaude1433 box-shadow:
1434 inset 0 1px 0 rgba(255,255,255,0.25),
1435 0 0 0 1px rgba(140,109,255,0.45),
1436 0 0 20px rgba(140,109,255,0.30);
2ce1d0bClaude1437 flex-shrink: 0;
958d26aClaude1438 transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
1439 }
1440 .logo:hover { text-decoration: none; color: var(--text-strong); }
1441 .logo:hover::before {
1442 transform: rotate(8deg) scale(1.05);
1443 box-shadow:
1444 inset 0 1px 0 rgba(255,255,255,0.30),
1445 0 0 0 1px rgba(140,109,255,0.55),
1446 0 0 28px rgba(140,109,255,0.45);
06d5ffeClaude1447 }
fc1817aClaude1448
2ce1d0bClaude1449 .nav-search {
1450 flex: 1;
958d26aClaude1451 max-width: 360px;
1452 margin: 0 4px 0 8px;
1453 position: relative;
2ce1d0bClaude1454 }
1455 .nav-search input {
1456 width: 100%;
958d26aClaude1457 padding: 7px 12px 7px 32px;
2ce1d0bClaude1458 background: var(--bg-tertiary);
1459 border: 1px solid var(--border);
1460 border-radius: var(--r-sm);
1461 color: var(--text);
1462 font-family: var(--font-sans);
1463 font-size: var(--t-sm);
958d26aClaude1464 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1465 }
1466 .nav-search::before {
1467 content: '';
1468 position: absolute;
1469 left: 11px; top: 50%;
1470 transform: translateY(-50%);
1471 width: 12px; height: 12px;
1472 border: 1.5px solid var(--text-faint);
1473 border-radius: 50%;
1474 pointer-events: none;
1475 }
1476 .nav-search::after {
1477 content: '';
1478 position: absolute;
1479 left: 19px; top: calc(50% + 4px);
1480 width: 5px; height: 1.5px;
1481 background: var(--text-faint);
1482 transform: rotate(45deg);
1483 pointer-events: none;
2ce1d0bClaude1484 }
1485 .nav-search input::placeholder { color: var(--text-faint); }
1486 .nav-search input:focus {
1487 outline: none;
1488 background: var(--bg-secondary);
958d26aClaude1489 border-color: var(--border-focus);
1490 box-shadow: var(--ring);
2ce1d0bClaude1491 }
06d5ffeClaude1492
958d26aClaude1493 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1494
1495 /* Block N3 — site-admin deploy status pill */
1496 .nav-deploy-pill {
1497 display: inline-flex;
1498 align-items: center;
1499 gap: 6px;
1500 padding: 4px 10px;
1501 margin: 0 6px 0 0;
1502 border-radius: 9999px;
1503 font-size: 11px;
1504 font-weight: 600;
1505 line-height: 1;
1506 color: var(--text-strong);
1507 background: var(--bg-elevated);
1508 border: 1px solid var(--border);
1509 text-decoration: none;
1510 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1511 }
1512 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1513 .nav-deploy-pill .deploy-pill-dot {
1514 display: inline-block;
1515 width: 8px; height: 8px;
1516 border-radius: 50%;
1517 background: #6b7280;
1518 }
1519 .deploy-pill-success .deploy-pill-dot { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.45); }
1520 .deploy-pill-failed .deploy-pill-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
1521 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1522 .deploy-pill-progress .deploy-pill-dot {
1523 background: #fbbf24;
1524 box-shadow: 0 0 6px rgba(251,191,36,0.55);
1525 animation: deployPillPulse 1.2s ease-in-out infinite;
1526 }
1527 @keyframes deployPillPulse {
1528 0%, 100% { opacity: 1; transform: scale(1); }
1529 50% { opacity: 0.45; transform: scale(0.8); }
1530 }
1531 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1532
c6018a5Claude1533 /* ── AI dropdown (nav consolidation) ── */
1534 .nav-ai-dropdown {
1535 position: relative;
1536 display: inline-flex;
1537 align-items: center;
1538 }
1539 .nav-ai-trigger {
1540 background: transparent;
1541 border: 0;
1542 font: inherit;
1543 cursor: pointer;
1544 color: var(--text-muted);
1545 font-size: var(--t-sm);
1546 font-weight: 500;
1547 padding: 7px 11px;
1548 border-radius: var(--r-sm);
1549 line-height: 1.2;
1550 }
1551 .nav-ai-trigger:hover {
1552 color: var(--text-strong);
1553 background: var(--bg-hover);
1554 }
1555 .nav-ai-menu {
1556 position: absolute;
1557 top: calc(100% + 6px);
1558 right: 0;
1559 min-width: 220px;
1560 background: var(--bg-secondary);
1561 border: 1px solid var(--border-strong);
1562 border-radius: 10px;
1563 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(140,109,255,0.10);
1564 padding: 6px;
1565 display: none;
1566 z-index: var(--z-overlay, 100);
1567 }
1568 .nav-ai-dropdown:hover .nav-ai-menu,
1569 .nav-ai-dropdown.is-open .nav-ai-menu,
1570 .nav-ai-dropdown:focus-within .nav-ai-menu {
1571 display: block;
1572 }
1573 .nav-ai-item {
1574 display: flex;
1575 flex-direction: column;
1576 gap: 1px;
1577 padding: 8px 10px;
1578 border-radius: 6px;
1579 color: var(--text);
1580 text-decoration: none;
1581 transition: background var(--t-fast) var(--ease);
1582 }
1583 .nav-ai-item:hover {
1584 background: var(--bg-hover);
1585 text-decoration: none;
1586 color: var(--text-strong);
1587 }
1588 .nav-ai-item-label {
1589 font-size: var(--t-sm);
1590 font-weight: 600;
1591 color: var(--text-strong);
1592 }
1593 .nav-ai-item-sub {
1594 font-size: 11.5px;
1595 color: var(--text-muted);
1596 }
1597
2ce1d0bClaude1598 .nav-link {
958d26aClaude1599 position: relative;
2ce1d0bClaude1600 color: var(--text-muted);
1601 font-size: var(--t-sm);
1602 font-weight: 500;
958d26aClaude1603 padding: 7px 11px;
2ce1d0bClaude1604 border-radius: var(--r-sm);
958d26aClaude1605 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1606 }
1607 .nav-link:hover {
958d26aClaude1608 color: var(--text-strong);
2ce1d0bClaude1609 background: var(--bg-hover);
1610 text-decoration: none;
1611 }
958d26aClaude1612 .nav-link.active { color: var(--text-strong); }
1613 .nav-link.active::after {
1614 content: '';
1615 position: absolute;
1616 left: 11px; right: 11px;
1617 bottom: -1px;
1618 height: 2px;
1619 background: var(--accent-gradient);
1620 border-radius: 2px;
1621 }
2ce1d0bClaude1622 .nav-user {
958d26aClaude1623 color: var(--text-strong);
2ce1d0bClaude1624 font-weight: 600;
1625 font-size: var(--t-sm);
1626 padding: 6px 10px;
1627 border-radius: var(--r-sm);
958d26aClaude1628 margin-left: 6px;
2ce1d0bClaude1629 transition: background var(--t-fast) var(--ease);
1630 }
958d26aClaude1631 .nav-user::before {
1632 content: '';
1633 display: inline-block;
1634 width: 8px; height: 8px;
1635 background: var(--green);
1636 border-radius: 50%;
1637 margin-right: 7px;
1638 box-shadow: 0 0 8px rgba(52,211,153,0.5);
1639 vertical-align: 1px;
1640 }
2ce1d0bClaude1641 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1642
f5b9ef5Claude1643 /* ── Inbox bell button ── */
1644 .nav-inbox-btn {
1645 position: relative;
1646 display: inline-flex;
1647 align-items: center;
1648 justify-content: center;
1649 width: 34px;
1650 height: 34px;
1651 border-radius: var(--r-sm);
1652 color: var(--text-muted);
1653 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1654 flex-shrink: 0;
1655 }
1656 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1657 .nav-inbox-badge {
1658 position: absolute;
1659 top: 3px; right: 3px;
1660 min-width: 15px; height: 15px;
1661 padding: 0 4px;
1662 font-size: 9.5px;
1663 font-weight: 700;
1664 line-height: 15px;
1665 color: #fff;
1666 background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
1667 border-radius: 9999px;
1668 text-align: center;
1669 box-shadow: 0 0 6px rgba(140,109,255,0.45);
1670 font-variant-numeric: tabular-nums;
1671 }
1672
1673 /* ── User dropdown ── */
1674 .nav-user-dropdown { position: relative; }
1675 .nav-user-trigger {
1676 display: inline-flex;
1677 align-items: center;
1678 gap: 7px;
1679 padding: 5px 9px 5px 5px;
1680 border-radius: var(--r-sm);
1681 border: 1px solid transparent;
1682 background: transparent;
1683 color: var(--text);
1684 font-family: var(--font-sans);
1685 font-size: var(--t-sm);
1686 font-weight: 500;
1687 cursor: pointer;
1688 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1689 }
1690 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1691 .nav-user-avatar {
1692 width: 24px; height: 24px;
1693 border-radius: 50%;
1694 background: var(--accent-gradient);
1695 color: #fff;
1696 font-size: 11px;
1697 font-weight: 700;
1698 display: inline-flex;
1699 align-items: center;
1700 justify-content: center;
1701 flex-shrink: 0;
1702 box-shadow: 0 0 0 2px var(--border);
1703 }
1704 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1705 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1706 .nav-user-menu {
1707 display: none;
1708 position: absolute;
1709 top: calc(100% + 6px);
1710 right: 0;
1711 min-width: 220px;
1712 background: var(--bg-elevated);
1713 border: 1px solid var(--border-strong);
1714 border-radius: var(--r-lg);
1715 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1716 padding: 6px;
1717 z-index: 200;
1718 animation: navMenuIn 140ms var(--ease) both;
1719 }
1720 .nav-user-menu.is-open { display: block; }
1721 .nav-user-menu-header {
1722 padding: 8px 10px 10px;
1723 display: flex;
1724 flex-direction: column;
1725 gap: 2px;
1726 }
1727 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1728 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1729 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1730 .nav-user-item {
1731 display: block;
1732 padding: 7px 10px;
1733 border-radius: 6px;
1734 font-size: var(--t-sm);
1735 color: var(--text);
1736 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1737 white-space: nowrap;
1738 }
1739 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1740 .nav-user-item--danger { color: var(--red); }
1741 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1742
1743 @keyframes navMenuIn {
1744 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1745 to { opacity: 1; transform: translateY(0) scale(1); }
1746 }
1747
2ce1d0bClaude1748 main {
eed4684Claude1749 max-width: 1920px;
2ce1d0bClaude1750 margin: 0 auto;
958d26aClaude1751 padding: 36px 24px 80px;
2ce1d0bClaude1752 flex: 1;
1753 width: 100%;
ed6e438Claude1754 /* 2026 polish — subtle entrance animation on every page load.
1755 Content fades up 4px over 360ms, giving the site that "alive"
1756 quality that 2026 SaaS expects. Honors prefers-reduced-motion. */
1757 animation: gxMainEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
1758 }
1759 @keyframes gxMainEnter {
1760 from { opacity: 0; transform: translateY(4px); }
1761 to { opacity: 1; transform: translateY(0); }
1762 }
1763 @media (prefers-reduced-motion: reduce) {
1764 main { animation: none; }
1765 }
1766 /* 2026 polish — accent focus ring across all focusable elements.
1767 The default browser ring is utilitarian; this is the same width
1768 but tinted to the brand accent so keyboard navigation feels
1769 intentional, not jarring. :focus-visible only — mouse users
1770 never see it. */
1771 :focus-visible {
1772 outline: none;
1773 }
1774 a:focus-visible,
1775 button:focus-visible,
1776 input:focus-visible,
1777 select:focus-visible,
1778 textarea:focus-visible,
1779 [tabindex]:focus-visible {
1780 outline: 2px solid rgba(140, 109, 255, 0.55);
1781 outline-offset: 2px;
1782 border-radius: 4px;
2ce1d0bClaude1783 }
fc1817aClaude1784
958d26aClaude1785 /* Editorial footer: link grid + tagline row */
fc1817aClaude1786 footer {
1787 border-top: 1px solid var(--border);
958d26aClaude1788 padding: 56px 24px 40px;
fc1817aClaude1789 color: var(--text-muted);
958d26aClaude1790 font-size: var(--t-sm);
1791 background:
1792 linear-gradient(180deg, transparent 0%, rgba(140,109,255,0.025) 100%),
1793 var(--bg);
1794 }
1795 footer .footer-inner {
eed4684Claude1796 max-width: 1920px;
958d26aClaude1797 margin: 0 auto;
1798 display: grid;
1799 grid-template-columns: 1fr auto;
1800 gap: 48px;
1801 align-items: start;
1802 }
1803 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1804 footer .footer-tag {
1805 color: var(--text-muted);
1806 font-size: var(--t-sm);
1807 max-width: 320px;
1808 line-height: 1.55;
1809 }
1810 footer .footer-links {
1811 display: grid;
1812 grid-template-columns: repeat(3, minmax(120px, auto));
1813 gap: 0 56px;
1814 }
1815 footer .footer-col-title {
1816 font-family: var(--font-mono);
1817 font-size: 11px;
1818 text-transform: uppercase;
1819 letter-spacing: 0.14em;
1820 color: var(--text-faint);
1821 margin-bottom: var(--s-3);
1822 }
1823 footer .footer-col a {
1824 display: block;
1825 color: var(--text-muted);
1826 font-size: var(--t-sm);
1827 padding: 5px 0;
1828 transition: color var(--t-fast) var(--ease);
1829 }
1830 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1831 footer .footer-bottom {
eed4684Claude1832 max-width: 1920px;
958d26aClaude1833 margin: 40px auto 0;
1834 padding-top: 24px;
1835 border-top: 1px solid var(--border-subtle);
1836 display: flex;
1837 justify-content: space-between;
1838 align-items: center;
2ce1d0bClaude1839 color: var(--text-faint);
1840 font-size: var(--t-xs);
958d26aClaude1841 font-family: var(--font-mono);
1842 letter-spacing: 0.02em;
1843 }
1844 footer .footer-bottom a { color: var(--text-faint); }
1845 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1846 footer .footer-build {
1847 display: inline-flex;
1848 align-items: center;
1849 gap: 6px;
1850 color: var(--text-faint);
1851 font-family: var(--font-mono);
1852 font-size: 11px;
1853 cursor: help;
1854 }
1855 footer .footer-build-dot {
1856 width: 6px; height: 6px;
1857 border-radius: 50%;
1858 background: var(--green);
1859 box-shadow: 0 0 6px rgba(52,211,153,0.55);
1860 animation: footer-build-pulse 2.4s ease-in-out infinite;
1861 }
1862 @keyframes footer-build-pulse {
1863 0%, 100% { opacity: 0.6; }
1864 50% { opacity: 1; }
1865 }
958d26aClaude1866 @media (max-width: 768px) {
1867 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1868 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1869 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1870 }
1871
2ce1d0bClaude1872 /* ============================================================ */
1873 /* Buttons */
1874 /* ============================================================ */
dc26881CC LABS App1875 /* ============================================================ */
1876 /* Buttons — Block U2 senior polish pass. */
1877 /* Rules: */
1878 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1879 /* · active presses back down to 0 (80ms — faster on press) */
1880 /* · focus-visible uses a soft box-shadow ring (no outline) */
1881 /* · primary gradient shifts position on hover for a slow */
1882 /* 600ms shimmer */
1883 /* · disabled never lifts and never animates */
1884 /* ============================================================ */
06d5ffeClaude1885 .btn {
1886 display: inline-flex;
1887 align-items: center;
2ce1d0bClaude1888 justify-content: center;
958d26aClaude1889 gap: 7px;
2ce1d0bClaude1890 padding: 7px 14px;
1891 border-radius: var(--r-sm);
958d26aClaude1892 font-family: var(--font-sans);
2ce1d0bClaude1893 font-size: var(--t-sm);
06d5ffeClaude1894 font-weight: 500;
1895 border: 1px solid var(--border);
2ce1d0bClaude1896 background: var(--bg-elevated);
06d5ffeClaude1897 color: var(--text);
1898 cursor: pointer;
1899 text-decoration: none;
958d26aClaude1900 line-height: 1.25;
1901 letter-spacing: -0.008em;
dc26881CC LABS App1902 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
1903 Listed once on the base rule so :active can override only the
1904 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude1905 transition:
dc26881CC LABS App1906 background 180ms ease,
1907 border-color 180ms ease,
1908 transform 180ms ease,
1909 box-shadow 180ms ease,
1910 color 180ms ease;
2ce1d0bClaude1911 user-select: none;
1912 white-space: nowrap;
958d26aClaude1913 position: relative;
06d5ffeClaude1914 }
2ce1d0bClaude1915 .btn:hover {
1916 background: var(--bg-surface);
1917 border-color: var(--border-strong);
958d26aClaude1918 color: var(--text-strong);
2ce1d0bClaude1919 text-decoration: none;
dc26881CC LABS App1920 /* U2 — universal hover lift + soft accent drop shadow. */
1921 transform: translateY(-1px);
1922 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
1923 }
1924 .btn:active {
1925 transform: translateY(0);
1926 transition-duration: 80ms;
1927 }
1928 /* U2 — soft modern focus ring via box-shadow, not outline. */
1929 .btn:focus-visible {
1930 outline: none;
1931 box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.35);
2ce1d0bClaude1932 }
1933
1934 .btn-primary {
1935 background: var(--accent-gradient);
dc26881CC LABS App1936 background-size: 200% 100%;
1937 background-position: 0% 50%;
2ce1d0bClaude1938 border-color: transparent;
1939 color: #fff;
1940 font-weight: 600;
958d26aClaude1941 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude1942 box-shadow:
958d26aClaude1943 inset 0 1px 0 rgba(255,255,255,0.22),
1944 inset 0 -1px 0 rgba(0,0,0,0.10),
1945 0 1px 2px rgba(0,0,0,0.40),
1946 0 0 0 1px rgba(140,109,255,0.30);
dc26881CC LABS App1947 /* U2 — slower 600ms transition on background-position so the
1948 primary CTA shimmers when the cursor lands. */
1949 transition:
1950 background-position 600ms ease,
1951 transform 180ms ease,
1952 box-shadow 180ms ease,
1953 color 180ms ease;
06d5ffeClaude1954 }
958d26aClaude1955 .btn-primary::before {
1956 content: '';
1957 position: absolute;
1958 inset: 0;
1959 border-radius: inherit;
1960 background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 60%);
1961 opacity: 0;
1962 transition: opacity var(--t-fast) var(--ease);
1963 pointer-events: none;
2ce1d0bClaude1964 }
1965 .btn-primary:hover {
958d26aClaude1966 color: #fff;
2ce1d0bClaude1967 background: var(--accent-gradient);
dc26881CC LABS App1968 background-size: 200% 100%;
1969 background-position: 100% 50%;
958d26aClaude1970 border-color: transparent;
dc26881CC LABS App1971 transform: translateY(-1px);
2ce1d0bClaude1972 box-shadow:
958d26aClaude1973 inset 0 1px 0 rgba(255,255,255,0.30),
1974 inset 0 -1px 0 rgba(0,0,0,0.10),
1975 0 6px 18px -4px rgba(140,109,255,0.45),
1976 0 0 0 1px rgba(140,109,255,0.45);
2ce1d0bClaude1977 }
958d26aClaude1978 .btn-primary:hover::before { opacity: 1; }
dc26881CC LABS App1979 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
1980 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
1981 .btn-primary:focus-visible {
1982 box-shadow:
1983 inset 0 1px 0 rgba(255,255,255,0.22),
1984 0 0 0 3px rgba(140,109,255,0.35);
1985 }
2ce1d0bClaude1986
1987 .btn-danger {
1988 background: transparent;
958d26aClaude1989 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude1990 color: var(--red);
1991 }
1992 .btn-danger:hover {
958d26aClaude1993 background: rgba(248,113,113,0.08);
2ce1d0bClaude1994 border-color: var(--red);
958d26aClaude1995 color: var(--red);
dc26881CC LABS App1996 transform: translateY(-1px);
1997 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude1998 }
dc26881CC LABS App1999 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2000
2001 .btn-ghost {
2002 background: transparent;
2003 border-color: transparent;
2004 color: var(--text-muted);
2005 }
2006 .btn-ghost:hover {
2007 background: var(--bg-hover);
958d26aClaude2008 color: var(--text-strong);
2ce1d0bClaude2009 border-color: var(--border);
dc26881CC LABS App2010 transform: translateY(-1px);
2011 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2012 }
2013
958d26aClaude2014 .btn-secondary {
2015 background: var(--bg-elevated);
2016 border-color: var(--border-strong);
2017 color: var(--text-strong);
2018 }
2019 .btn-secondary:hover {
2020 background: var(--bg-surface);
2021 border-color: var(--border-strong);
dc26881CC LABS App2022 transform: translateY(-1px);
2023 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2024 }
2025
2026 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2027 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2028 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2029 .btn-block { width: 100%; }
2ce1d0bClaude2030
dc26881CC LABS App2031 /* U2 — disabled never lifts, never shimmers, never glows. */
2032 .btn:disabled,
2033 .btn[aria-disabled='true'],
2034 .btn:disabled:hover,
2035 .btn[aria-disabled='true']:hover {
2036 opacity: 0.5;
2ce1d0bClaude2037 cursor: not-allowed;
2038 pointer-events: none;
dc26881CC LABS App2039 transform: none;
2040 box-shadow: none;
2041 }
2042 @media (prefers-reduced-motion: reduce) {
2043 .btn,
2044 .btn:hover,
2045 .btn:active,
2046 .btn-primary,
2047 .btn-primary:hover {
2048 transform: none;
2049 transition: background-color 80ms linear, color 80ms linear;
2050 }
2ce1d0bClaude2051 }
2052
2053 /* ============================================================ */
2054 /* Forms */
2055 /* ============================================================ */
2056 .form-group { margin-bottom: 20px; }
2057 .form-group label {
2058 display: block;
2059 font-size: var(--t-sm);
2060 font-weight: 500;
2061 margin-bottom: 6px;
2062 color: var(--text);
2063 letter-spacing: -0.005em;
2064 }
2065 .form-group input,
2066 .form-group textarea,
2067 .form-group select,
2068 input[type='text'], input[type='email'], input[type='password'],
2069 input[type='url'], input[type='search'], input[type='number'],
2070 textarea, select {
06d5ffeClaude2071 width: 100%;
2ce1d0bClaude2072 padding: 9px 12px;
2073 background: var(--bg-secondary);
06d5ffeClaude2074 border: 1px solid var(--border);
2ce1d0bClaude2075 border-radius: var(--r-sm);
06d5ffeClaude2076 color: var(--text);
2ce1d0bClaude2077 font-size: var(--t-sm);
06d5ffeClaude2078 font-family: var(--font-sans);
2ce1d0bClaude2079 transition:
2080 border-color var(--t-fast) var(--ease),
2081 background var(--t-fast) var(--ease),
2082 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2083 }
2ce1d0bClaude2084 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2085 color: var(--text-faint);
06d5ffeClaude2086 }
2ce1d0bClaude2087 .form-group input:hover, textarea:hover, select:hover,
2088 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2089 border-color: var(--border-strong);
2090 }
2091 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2092 input:focus, textarea:focus, select:focus {
06d5ffeClaude2093 outline: none;
2ce1d0bClaude2094 background: var(--bg);
2095 border-color: var(--border-focus);
2096 box-shadow: var(--ring);
06d5ffeClaude2097 }
2ce1d0bClaude2098 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2099 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2100
2ce1d0bClaude2101 /* ============================================================ */
2102 /* Auth (register / login / verify) */
2103 /* ============================================================ */
2104 .auth-container {
98f45b4Claude2105 /* 2026 polish — wider, more generous, with a subtle accent-glow
2106 border and gradient top-edge so it reads as a premium product
2107 gateway, not a stock form. The 480px width feels intentional
2108 (not cramped, not endless). */
2109 max-width: 480px;
2110 margin: 72px auto;
2111 padding: 40px 40px 36px;
2ce1d0bClaude2112 background: var(--bg-elevated);
2113 border: 1px solid var(--border);
98f45b4Claude2114 border-radius: 16px;
2115 box-shadow:
2116 var(--elev-2),
2117 0 24px 64px -16px rgba(140, 109, 255, 0.12);
2118 position: relative;
2119 overflow: hidden;
2120 }
2121 .auth-container::before {
2122 /* Hairline gradient accent on the top edge — signals 'AI-native'
2123 without shouting. Pointer-events disabled so it never interferes
2124 with form interactions. */
2125 content: '';
2126 position: absolute;
2127 top: 0;
2128 left: 0;
2129 right: 0;
2130 height: 2px;
2131 background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
2132 opacity: 0.7;
2133 pointer-events: none;
2ce1d0bClaude2134 }
2135 .auth-container h2 {
98f45b4Claude2136 margin: 0 0 8px;
2137 font-size: 28px;
2138 font-weight: 700;
2139 font-family: var(--font-display);
2140 letter-spacing: -0.025em;
2141 color: var(--text-strong);
2142 line-height: 1.15;
2143 }
2144 .auth-container .auth-subtitle {
2145 color: var(--text-muted);
2146 font-size: 14.5px;
2147 line-height: 1.5;
2148 margin: 0 0 24px;
2ce1d0bClaude2149 }
2150 .auth-container > p {
2151 color: var(--text-muted);
2152 font-size: var(--t-sm);
2153 margin-bottom: 24px;
2154 }
98f45b4Claude2155 .auth-container .btn-primary {
2156 width: 100%;
2157 padding: 12px 16px;
2158 font-size: 15px;
2159 font-weight: 600;
2160 margin-top: 4px;
2161 }
582cdacClaude2162
2163 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2164 with a brand-coloured logo on the left and a label centred-trailing.
2165 Hover lifts 1px with a subtle shadow — matches the rest of the
2166 button system but reads as a brand-affiliated action, not a brand-
2167 coloured primary CTA. */
2168 .auth-container .oauth-btn {
2169 display: flex;
2170 align-items: center;
2171 justify-content: center;
2172 gap: 10px;
2173 width: 100%;
2174 padding: 11px 16px;
2175 background: var(--bg-surface, var(--bg-elevated));
2176 border: 1px solid var(--border);
2177 border-radius: var(--r-md, 8px);
2178 color: var(--text-strong);
2179 font-family: var(--font-sans);
2180 font-size: 14.5px;
2181 font-weight: 500;
2182 text-decoration: none;
2183 transition:
2184 transform var(--t-base, 180ms) var(--ease, ease),
2185 box-shadow var(--t-base, 180ms) var(--ease, ease),
2186 background var(--t-fast, 120ms) var(--ease, ease),
2187 border-color var(--t-fast, 120ms) var(--ease, ease);
2188 }
2189 .auth-container .oauth-btn:hover {
2190 transform: translateY(-1px);
2191 background: var(--bg-hover);
2192 border-color: var(--text-muted);
2193 color: var(--text-strong);
2194 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2195 text-decoration: none;
2196 }
2197 .auth-container .oauth-btn:focus-visible {
2198 outline: 2px solid rgba(140, 109, 255, 0.55);
2199 outline-offset: 2px;
2200 }
2201 .auth-container .oauth-btn .oauth-icon {
2202 flex-shrink: 0;
2203 }
2204 /* GitHub icon adopts the text colour so it reads in both themes. */
2205 .auth-container .oauth-github .oauth-icon {
2206 color: var(--text-strong);
2207 }
2208 /* Google logo uses the official 4-colour treatment via inline SVG fill
2209 attributes — nothing to override here. */
2210 /* "or" divider between the password form and provider buttons */
2211 .auth-container .auth-divider {
2212 display: flex;
2213 align-items: center;
2214 gap: 12px;
2215 margin: 20px 0 12px;
2216 color: var(--text-faint);
2217 font-size: 12px;
2218 letter-spacing: 0.08em;
2219 text-transform: uppercase;
2220 }
2221 .auth-container .auth-divider::before,
2222 .auth-container .auth-divider::after {
2223 content: '';
2224 flex: 1;
2225 height: 1px;
2226 background: var(--border);
2227 }
06d5ffeClaude2228 .auth-error {
958d26aClaude2229 background: rgba(248,113,113,0.08);
2230 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2231 color: var(--red);
2ce1d0bClaude2232 padding: 10px 14px;
2233 border-radius: var(--r-sm);
06d5ffeClaude2234 margin-bottom: 16px;
2ce1d0bClaude2235 font-size: var(--t-sm);
06d5ffeClaude2236 }
2237 .auth-success {
958d26aClaude2238 background: rgba(52,211,153,0.08);
2239 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2240 color: var(--green);
2ce1d0bClaude2241 padding: 10px 14px;
2242 border-radius: var(--r-sm);
06d5ffeClaude2243 margin-bottom: 16px;
2ce1d0bClaude2244 font-size: var(--t-sm);
2245 }
2246 .auth-switch {
2247 margin-top: 20px;
2248 font-size: var(--t-sm);
2249 color: var(--text-muted);
2250 text-align: center;
2251 }
2252 .banner {
2253 background: var(--accent-gradient-faint);
958d26aClaude2254 border: 1px solid rgba(140,109,255,0.35);
2ce1d0bClaude2255 color: var(--text);
2256 padding: 10px 14px;
2257 border-radius: var(--r-sm);
2258 font-size: var(--t-sm);
06d5ffeClaude2259 }
2260
2ce1d0bClaude2261 /* ============================================================ */
2262 /* Settings */
2263 /* ============================================================ */
2264 .settings-container { max-width: 720px; }
2265 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2266 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2267 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2268 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2269 .ssh-keys-list { margin-bottom: 24px; }
2270 .ssh-key-item {
2271 display: flex;
2272 justify-content: space-between;
2273 align-items: center;
2ce1d0bClaude2274 padding: 14px 16px;
06d5ffeClaude2275 border: 1px solid var(--border);
2ce1d0bClaude2276 border-radius: var(--r-md);
06d5ffeClaude2277 margin-bottom: 8px;
2ce1d0bClaude2278 background: var(--bg-elevated);
2279 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2280 }
2ce1d0bClaude2281 .ssh-key-item:hover { border-color: var(--border-strong); }
2282 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2283 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2284
2ce1d0bClaude2285 /* ============================================================ */
2286 /* Repo header + nav */
2287 /* ============================================================ */
fc1817aClaude2288 .repo-header {
2289 display: flex;
2290 align-items: center;
debcf27Claude2291 gap: 12px;
2292 margin-bottom: 22px;
2293 }
2294 .repo-header-title {
2295 display: flex;
2296 align-items: center;
2297 gap: 10px;
2298 font-family: var(--font-display);
2299 font-size: 24px;
2300 letter-spacing: -0.025em;
2301 flex-wrap: wrap;
2302 }
2303 .repo-header .owner {
2304 color: var(--text-muted);
2305 font-weight: 500;
2306 transition: color var(--t-fast) var(--ease);
2307 }
2308 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2309 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2310 .repo-header .name {
2311 color: var(--text-strong);
2312 font-weight: 700;
2313 letter-spacing: -0.028em;
fc1817aClaude2314 }
2ce1d0bClaude2315 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2316 .repo-header-fork {
2317 font-family: var(--font-mono);
2318 font-size: 11px;
2319 color: var(--text-muted);
2320 margin-top: 4px;
2321 letter-spacing: 0.01em;
2322 }
2323 .repo-header-fork a { color: var(--text-muted); }
2324 .repo-header-fork a:hover { color: var(--accent); }
2325 .repo-header-pill {
2326 display: inline-flex;
2327 align-items: center;
2328 padding: 2px 10px;
2329 border-radius: var(--r-full);
2330 font-family: var(--font-mono);
2331 font-size: 10px;
2332 font-weight: 600;
2333 letter-spacing: 0.12em;
2334 text-transform: uppercase;
2335 line-height: 1.6;
2336 vertical-align: 4px;
2337 }
2338 .repo-header-pill-archived {
2339 background: rgba(251,191,36,0.10);
2340 color: var(--yellow);
2341 border: 1px solid rgba(251,191,36,0.30);
2342 }
2343 .repo-header-pill-template {
2344 background: var(--accent-gradient-faint);
2345 color: var(--accent);
2346 border: 1px solid rgba(140,109,255,0.30);
fc1817aClaude2347 }
06d5ffeClaude2348 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2349
2350 .repo-nav {
2351 display: flex;
debcf27Claude2352 gap: 1px;
fc1817aClaude2353 border-bottom: 1px solid var(--border);
debcf27Claude2354 margin-bottom: 28px;
2ce1d0bClaude2355 overflow-x: auto;
2356 scrollbar-width: thin;
fc1817aClaude2357 }
2ce1d0bClaude2358 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2359 .repo-nav a {
debcf27Claude2360 position: relative;
2361 padding: 11px 14px;
fc1817aClaude2362 color: var(--text-muted);
2363 border-bottom: 2px solid transparent;
2ce1d0bClaude2364 font-size: var(--t-sm);
2365 font-weight: 500;
2366 margin-bottom: -1px;
debcf27Claude2367 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2368 white-space: nowrap;
2369 }
debcf27Claude2370 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2371 .repo-nav a.active {
debcf27Claude2372 color: var(--text-strong);
2373 font-weight: 600;
2374 }
2375 .repo-nav a.active::after {
2376 content: '';
2377 position: absolute;
2378 left: 14px;
2379 right: 14px;
2380 bottom: -1px;
2381 height: 2px;
2382 background: var(--accent-gradient);
2383 border-radius: 2px;
2384 }
2385 /* AI links in the right-side cluster — sparkle accent */
2386 .repo-nav-ai {
2387 color: var(--accent) !important;
2388 font-weight: 500;
2389 }
2390 .repo-nav-ai:hover {
2391 color: var(--accent-hover) !important;
2392 background: var(--accent-gradient-faint) !important;
2393 }
2394 .repo-nav-ai.active {
2395 color: var(--accent-hover) !important;
2ce1d0bClaude2396 font-weight: 600;
fc1817aClaude2397 }
2398
2ce1d0bClaude2399 .breadcrumb {
2400 display: flex;
debcf27Claude2401 gap: 6px;
2ce1d0bClaude2402 align-items: center;
debcf27Claude2403 margin-bottom: 18px;
2ce1d0bClaude2404 color: var(--text-muted);
2405 font-size: var(--t-sm);
2406 font-family: var(--font-mono);
debcf27Claude2407 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2408 }
2409 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2410 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2411 .breadcrumb strong {
2412 color: var(--text-strong);
2413 font-weight: 600;
fc1817aClaude2414 }
2415
debcf27Claude2416 /* Page header — eyebrow + title + optional actions row.
2417 Use on dashboard, settings, admin, any "section landing" page. */
2418 .page-header {
2419 display: flex;
2420 align-items: flex-end;
2421 justify-content: space-between;
2422 gap: 16px;
2423 margin-bottom: 28px;
2424 padding-bottom: 20px;
2425 border-bottom: 1px solid var(--border-subtle);
2426 flex-wrap: wrap;
2427 }
2428 .page-header-text { flex: 1; min-width: 280px; }
2429 .page-header .eyebrow { margin-bottom: var(--s-2); }
2430 .page-header h1 {
2431 font-family: var(--font-display);
2432 font-size: clamp(24px, 3vw, 36px);
2433 line-height: 1.1;
2434 letter-spacing: -0.028em;
2435 margin-bottom: 6px;
2436 }
2437 .page-header p {
2438 color: var(--text-muted);
2439 font-size: var(--t-sm);
2440 line-height: 1.55;
2441 max-width: 640px;
2442 }
2443 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2444
2ce1d0bClaude2445 /* ============================================================ */
2446 /* File browser table */
2447 /* ============================================================ */
2448 .file-table {
2449 width: 100%;
2450 border: 1px solid var(--border);
2451 border-radius: var(--r-md);
2452 overflow: hidden;
2453 background: var(--bg-elevated);
debcf27Claude2454 border-collapse: collapse;
2ce1d0bClaude2455 }
debcf27Claude2456 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2457 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2458 .file-table td {
2459 padding: 9px 16px;
2460 font-size: var(--t-sm);
2461 font-family: var(--font-mono);
2462 font-feature-settings: var(--mono-feat);
2463 }
2ce1d0bClaude2464 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2465 .file-icon {
2466 width: 22px;
2467 color: var(--text-faint);
2468 font-size: 13px;
2469 text-align: center;
2470 }
2471 .file-name a {
2472 color: var(--text);
2473 font-weight: 500;
2474 transition: color var(--t-fast) var(--ease);
2475 }
2476 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2477
2ce1d0bClaude2478 /* ============================================================ */
2479 /* Blob view */
2480 /* ============================================================ */
fc1817aClaude2481 .blob-view {
2482 border: 1px solid var(--border);
2ce1d0bClaude2483 border-radius: var(--r-md);
fc1817aClaude2484 overflow: hidden;
2ce1d0bClaude2485 background: var(--bg-elevated);
fc1817aClaude2486 }
2487 .blob-header {
2488 background: var(--bg-secondary);
2ce1d0bClaude2489 padding: 10px 16px;
fc1817aClaude2490 border-bottom: 1px solid var(--border);
2ce1d0bClaude2491 font-size: var(--t-sm);
fc1817aClaude2492 color: var(--text-muted);
06d5ffeClaude2493 display: flex;
2494 justify-content: space-between;
2495 align-items: center;
fc1817aClaude2496 }
2497 .blob-code {
2498 overflow-x: auto;
2499 font-family: var(--font-mono);
2ce1d0bClaude2500 font-size: var(--t-sm);
2501 line-height: 1.65;
fc1817aClaude2502 }
2503 .blob-code table { width: 100%; border-collapse: collapse; }
2504 .blob-code .line-num {
2505 width: 1%;
2ce1d0bClaude2506 min-width: 56px;
2507 padding: 0 14px;
fc1817aClaude2508 text-align: right;
2ce1d0bClaude2509 color: var(--text-faint);
fc1817aClaude2510 user-select: none;
2511 white-space: nowrap;
2512 border-right: 1px solid var(--border);
2513 }
2ce1d0bClaude2514 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2515 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2516
2ce1d0bClaude2517 /* ============================================================ */
2518 /* Commits + diffs */
2519 /* ============================================================ */
2520 .commit-list {
2521 border: 1px solid var(--border);
2522 border-radius: var(--r-md);
2523 overflow: hidden;
2524 background: var(--bg-elevated);
2525 }
fc1817aClaude2526 .commit-item {
2527 display: flex;
2528 justify-content: space-between;
2529 align-items: center;
debcf27Claude2530 padding: 14px 18px;
2531 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2532 transition: background var(--t-fast) var(--ease);
fc1817aClaude2533 }
2534 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2535 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2536 .commit-message {
2537 font-size: var(--t-sm);
2538 font-weight: 500;
2539 line-height: 1.45;
2540 color: var(--text-strong);
2541 letter-spacing: -0.005em;
2542 }
2543 .commit-meta {
2544 font-family: var(--font-mono);
2545 font-size: 11px;
2546 color: var(--text-muted);
2547 margin-top: 5px;
2548 letter-spacing: 0.01em;
2549 }
fc1817aClaude2550 .commit-sha {
2551 font-family: var(--font-mono);
debcf27Claude2552 font-feature-settings: var(--mono-feat);
2553 font-size: 11px;
2554 padding: 4px 9px;
fc1817aClaude2555 background: var(--bg-tertiary);
2556 border: 1px solid var(--border);
2ce1d0bClaude2557 border-radius: var(--r-sm);
debcf27Claude2558 color: var(--accent);
2559 font-weight: 600;
2560 letter-spacing: 0.02em;
2ce1d0bClaude2561 transition: all var(--t-fast) var(--ease);
fc1817aClaude2562 }
debcf27Claude2563 .commit-sha:hover {
2564 border-color: rgba(140,109,255,0.40);
2565 background: var(--accent-gradient-faint);
2566 color: var(--accent-hover);
2567 text-decoration: none;
fc1817aClaude2568 }
2569
2570 .diff-view { margin-top: 16px; }
2571 .diff-file {
2572 border: 1px solid var(--border);
2ce1d0bClaude2573 border-radius: var(--r-md);
fc1817aClaude2574 margin-bottom: 16px;
2575 overflow: hidden;
2ce1d0bClaude2576 background: var(--bg-elevated);
fc1817aClaude2577 }
2578 .diff-file-header {
2579 background: var(--bg-secondary);
2ce1d0bClaude2580 padding: 10px 16px;
fc1817aClaude2581 border-bottom: 1px solid var(--border);
2582 font-family: var(--font-mono);
2ce1d0bClaude2583 font-size: var(--t-sm);
2584 font-weight: 500;
fc1817aClaude2585 }
2586 .diff-content {
2587 overflow-x: auto;
2588 font-family: var(--font-mono);
2ce1d0bClaude2589 font-size: var(--t-sm);
2590 line-height: 1.65;
fc1817aClaude2591 }
958d26aClaude2592 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2593 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2594 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2595 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2596
2597 .stat-add { color: var(--green); font-weight: 600; }
2598 .stat-del { color: var(--red); font-weight: 600; }
2599
2ce1d0bClaude2600 /* ============================================================ */
2601 /* Empty state */
2602 /* ============================================================ */
fc1817aClaude2603 .empty-state {
2604 text-align: center;
958d26aClaude2605 padding: 96px 24px;
fc1817aClaude2606 color: var(--text-muted);
2ce1d0bClaude2607 border: 1px dashed var(--border);
2608 border-radius: var(--r-lg);
958d26aClaude2609 background:
2610 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2611 var(--bg-elevated);
2612 position: relative;
2613 overflow: hidden;
2614 }
2615 .empty-state::before {
2616 content: '';
2617 position: absolute;
2618 inset: 0;
2619 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2620 background-size: 24px 24px;
2621 opacity: 0.5;
2622 pointer-events: none;
2623 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2624 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2625 }
2626 :root[data-theme='light'] .empty-state::before {
2627 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2628 }
958d26aClaude2629 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2630 .empty-state h2 {
958d26aClaude2631 font-size: var(--t-xl);
2ce1d0bClaude2632 margin-bottom: 8px;
958d26aClaude2633 color: var(--text-strong);
2634 letter-spacing: -0.022em;
2ce1d0bClaude2635 }
958d26aClaude2636 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2637 .empty-state pre {
2638 text-align: left;
2639 display: inline-block;
2640 background: var(--bg-secondary);
958d26aClaude2641 padding: 18px 24px;
2642 border-radius: var(--r-md);
fc1817aClaude2643 border: 1px solid var(--border);
2644 font-family: var(--font-mono);
958d26aClaude2645 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2646 font-size: var(--t-sm);
958d26aClaude2647 margin-top: 24px;
fc1817aClaude2648 line-height: 1.8;
2ce1d0bClaude2649 color: var(--text);
958d26aClaude2650 box-shadow: var(--elev-1);
fc1817aClaude2651 }
2652
2ce1d0bClaude2653 /* ============================================================ */
2654 /* Badges */
2655 /* ============================================================ */
fc1817aClaude2656 .badge {
2ce1d0bClaude2657 display: inline-flex;
2658 align-items: center;
2659 gap: 4px;
2660 padding: 2px 9px;
2661 border-radius: var(--r-full);
2662 font-size: var(--t-xs);
fc1817aClaude2663 font-weight: 500;
2664 background: var(--bg-tertiary);
2665 border: 1px solid var(--border);
2666 color: var(--text-muted);
2ce1d0bClaude2667 line-height: 1.5;
fc1817aClaude2668 }
2669
2ce1d0bClaude2670 /* ============================================================ */
2671 /* Branch dropdown */
2672 /* ============================================================ */
fc1817aClaude2673 .branch-selector {
2674 display: inline-flex;
2675 align-items: center;
2ce1d0bClaude2676 gap: 6px;
2677 padding: 6px 12px;
2678 background: var(--bg-elevated);
fc1817aClaude2679 border: 1px solid var(--border);
2ce1d0bClaude2680 border-radius: var(--r-sm);
2681 font-size: var(--t-sm);
fc1817aClaude2682 color: var(--text);
2683 margin-bottom: 12px;
2ce1d0bClaude2684 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2685 }
2ce1d0bClaude2686 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2687
06d5ffeClaude2688 .branch-dropdown {
2689 position: relative;
2690 display: inline-block;
2691 margin-bottom: 12px;
2692 }
2693 .branch-dropdown-content {
2694 display: none;
2695 position: absolute;
2ce1d0bClaude2696 top: calc(100% + 4px);
06d5ffeClaude2697 left: 0;
2698 z-index: 10;
2ce1d0bClaude2699 min-width: 220px;
2700 background: var(--bg-elevated);
2701 border: 1px solid var(--border-strong);
2702 border-radius: var(--r-md);
2703 overflow: hidden;
2704 box-shadow: var(--elev-3);
06d5ffeClaude2705 }
2706 .branch-dropdown:hover .branch-dropdown-content,
2707 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2708 .branch-dropdown-content a {
2709 display: block;
2ce1d0bClaude2710 padding: 9px 14px;
2711 font-size: var(--t-sm);
06d5ffeClaude2712 color: var(--text);
2713 border-bottom: 1px solid var(--border);
2ce1d0bClaude2714 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2715 }
2716 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2717 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2718 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2719
2ce1d0bClaude2720 /* ============================================================ */
2721 /* Card grid */
2722 /* ============================================================ */
2723 .card-grid {
2724 display: grid;
2725 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2726 gap: 16px;
2727 }
fc1817aClaude2728 .card {
2729 border: 1px solid var(--border);
2ce1d0bClaude2730 border-radius: var(--r-md);
958d26aClaude2731 padding: 20px;
2ce1d0bClaude2732 background: var(--bg-elevated);
2733 transition:
958d26aClaude2734 border-color var(--t-base) var(--ease),
2735 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2736 box-shadow var(--t-base) var(--ease);
2737 position: relative;
2738 overflow: hidden;
958d26aClaude2739 isolation: isolate;
2740 }
2741 .card::before {
2742 content: '';
2743 position: absolute;
2744 inset: 0;
2745 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2746 opacity: 0;
2747 transition: opacity var(--t-base) var(--ease);
2748 pointer-events: none;
2749 z-index: -1;
2ce1d0bClaude2750 }
2751 .card:hover {
2752 border-color: var(--border-strong);
2753 box-shadow: var(--elev-2);
958d26aClaude2754 transform: translateY(-2px);
2ce1d0bClaude2755 }
958d26aClaude2756 .card:hover::before { opacity: 1; }
2757 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2758 .card h3 a { color: var(--text); font-weight: 600; }
2759 .card h3 a:hover { color: var(--text-link); }
2760 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2761 .card-meta {
2762 display: flex;
2763 gap: 14px;
2764 margin-top: 14px;
2765 padding-top: 14px;
2766 border-top: 1px solid var(--border);
2767 font-size: var(--t-xs);
2768 color: var(--text-muted);
2769 }
2770 .card-meta span { display: flex; align-items: center; gap: 5px; }
2771
2772 /* ============================================================ */
2773 /* Stat card / box */
2774 /* ============================================================ */
2775 .stat-card {
2776 background: var(--bg-elevated);
2777 border: 1px solid var(--border);
2778 border-radius: var(--r-md);
fc1817aClaude2779 padding: 16px;
2ce1d0bClaude2780 transition: border-color var(--t-fast) var(--ease);
2781 }
2782 .stat-card:hover { border-color: var(--border-strong); }
2783 .stat-label {
2784 font-size: var(--t-xs);
2785 color: var(--text-muted);
2786 text-transform: uppercase;
2787 letter-spacing: 0.06em;
2788 font-weight: 500;
2789 }
2790 .stat-value {
2791 font-size: var(--t-xl);
2792 font-weight: 700;
2793 margin-top: 4px;
2794 letter-spacing: -0.025em;
2795 color: var(--text);
2796 font-feature-settings: 'tnum';
fc1817aClaude2797 }
06d5ffeClaude2798
2ce1d0bClaude2799 /* ============================================================ */
2800 /* Star button */
2801 /* ============================================================ */
06d5ffeClaude2802 .star-btn {
2803 display: inline-flex;
2804 align-items: center;
2805 gap: 6px;
2ce1d0bClaude2806 padding: 5px 12px;
2807 background: var(--bg-elevated);
06d5ffeClaude2808 border: 1px solid var(--border);
2ce1d0bClaude2809 border-radius: var(--r-sm);
06d5ffeClaude2810 color: var(--text);
2ce1d0bClaude2811 font-size: var(--t-sm);
2812 font-weight: 500;
06d5ffeClaude2813 cursor: pointer;
2ce1d0bClaude2814 transition: all var(--t-fast) var(--ease);
2815 }
2816 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2817 .star-btn.starred {
2818 color: var(--yellow);
958d26aClaude2819 border-color: rgba(251,191,36,0.4);
2820 background: rgba(251,191,36,0.08);
06d5ffeClaude2821 }
2822
2ce1d0bClaude2823 /* ============================================================ */
2824 /* User profile */
2825 /* ============================================================ */
06d5ffeClaude2826 .user-profile {
2827 display: flex;
2828 gap: 32px;
2829 margin-bottom: 32px;
2ce1d0bClaude2830 padding: 24px;
2831 background: var(--bg-elevated);
2832 border: 1px solid var(--border);
2833 border-radius: var(--r-lg);
06d5ffeClaude2834 }
2835 .user-avatar {
2836 width: 96px;
2837 height: 96px;
2ce1d0bClaude2838 border-radius: var(--r-full);
2839 background: var(--accent-gradient-soft);
2840 border: 1px solid var(--border-strong);
06d5ffeClaude2841 display: flex;
2842 align-items: center;
2843 justify-content: center;
2ce1d0bClaude2844 font-size: 36px;
2845 font-weight: 600;
2846 color: var(--text);
06d5ffeClaude2847 flex-shrink: 0;
2ce1d0bClaude2848 letter-spacing: -0.02em;
06d5ffeClaude2849 }
2ce1d0bClaude2850 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2851 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2852 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2853
2ce1d0bClaude2854 /* ============================================================ */
2855 /* New repo form */
2856 /* ============================================================ */
2857 .new-repo-form { max-width: 640px; }
2858 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2859 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2860 .visibility-option {
2861 flex: 1;
2ce1d0bClaude2862 padding: 16px;
06d5ffeClaude2863 border: 1px solid var(--border);
2ce1d0bClaude2864 border-radius: var(--r-md);
2865 background: var(--bg-elevated);
06d5ffeClaude2866 cursor: pointer;
2ce1d0bClaude2867 text-align: left;
2868 transition: all var(--t-fast) var(--ease);
2869 }
2870 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2871 .visibility-option:has(input:checked) {
2872 border-color: var(--accent);
2873 background: var(--accent-gradient-faint);
2874 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2875 }
2876 .visibility-option input { display: none; }
2ce1d0bClaude2877 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2878 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2879
2ce1d0bClaude2880 /* ============================================================ */
2881 /* Issues */
2882 /* ============================================================ */
2883 .issue-tabs { display: flex; gap: 4px; }
2884 .issue-tabs a {
2885 color: var(--text-muted);
2886 font-size: var(--t-sm);
2887 font-weight: 500;
2888 padding: 6px 12px;
2889 border-radius: var(--r-sm);
2890 transition: all var(--t-fast) var(--ease);
2891 }
2892 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2893 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2894
2ce1d0bClaude2895 .issue-list {
2896 border: 1px solid var(--border);
2897 border-radius: var(--r-md);
2898 overflow: hidden;
2899 background: var(--bg-elevated);
2900 }
79136bbClaude2901 .issue-item {
2902 display: flex;
2ce1d0bClaude2903 gap: 14px;
79136bbClaude2904 align-items: flex-start;
2ce1d0bClaude2905 padding: 14px 16px;
79136bbClaude2906 border-bottom: 1px solid var(--border);
2ce1d0bClaude2907 transition: background var(--t-fast) var(--ease);
79136bbClaude2908 }
2909 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2910 .issue-item:hover { background: var(--bg-hover); }
2911 .issue-state-icon {
2912 font-size: 14px;
2913 padding-top: 2px;
2914 width: 18px;
2915 height: 18px;
2916 display: inline-flex;
2917 align-items: center;
2918 justify-content: center;
2919 border-radius: var(--r-full);
2920 flex-shrink: 0;
2921 }
79136bbClaude2922 .state-open { color: var(--green); }
958d26aClaude2923 .state-closed { color: #b69dff; }
2ce1d0bClaude2924 .issue-title {
debcf27Claude2925 font-family: var(--font-display);
2926 font-size: var(--t-md);
2ce1d0bClaude2927 font-weight: 600;
debcf27Claude2928 line-height: 1.35;
2929 letter-spacing: -0.012em;
2930 }
2931 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2932 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2933 .issue-meta {
2934 font-family: var(--font-mono);
2935 font-size: 11px;
2936 color: var(--text-muted);
2937 margin-top: 5px;
2938 letter-spacing: 0.01em;
2ce1d0bClaude2939 }
79136bbClaude2940
2941 .issue-badge {
2942 display: inline-flex;
2943 align-items: center;
2ce1d0bClaude2944 gap: 6px;
79136bbClaude2945 padding: 4px 12px;
2ce1d0bClaude2946 border-radius: var(--r-full);
2947 font-size: var(--t-sm);
79136bbClaude2948 font-weight: 500;
2ce1d0bClaude2949 line-height: 1.4;
79136bbClaude2950 }
958d26aClaude2951 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
2952 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
2953 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude2954 .state-merged { color: var(--accent); }
958d26aClaude2955 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude2956
2ce1d0bClaude2957 .issue-detail { max-width: 920px; }
79136bbClaude2958 .issue-comment-box {
2959 border: 1px solid var(--border);
2ce1d0bClaude2960 border-radius: var(--r-md);
79136bbClaude2961 margin-bottom: 16px;
2962 overflow: hidden;
2ce1d0bClaude2963 background: var(--bg-elevated);
79136bbClaude2964 }
2965 .comment-header {
2966 background: var(--bg-secondary);
2ce1d0bClaude2967 padding: 10px 16px;
79136bbClaude2968 border-bottom: 1px solid var(--border);
2ce1d0bClaude2969 font-size: var(--t-sm);
79136bbClaude2970 color: var(--text-muted);
2971 }
2972
2ce1d0bClaude2973 /* ============================================================ */
2974 /* Panel — flexible container used across many pages */
2975 /* ============================================================ */
2976 .panel {
2977 background: var(--bg-elevated);
2978 border: 1px solid var(--border);
2979 border-radius: var(--r-md);
2980 overflow: hidden;
2981 }
2982 .panel-item {
2983 display: flex;
2984 align-items: center;
2985 gap: 12px;
2986 padding: 12px 16px;
79136bbClaude2987 border-bottom: 1px solid var(--border);
2ce1d0bClaude2988 transition: background var(--t-fast) var(--ease);
2989 }
2990 .panel-item:last-child { border-bottom: none; }
2991 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude2992
2993 /* ─── j/k keyboard list navigation ─── */
2994 .is-kbd-focus {
2995 outline: 2px solid rgba(140,109,255,0.6) !important;
2996 outline-offset: -2px;
2997 background: rgba(140,109,255,0.06) !important;
2998 border-radius: 4px;
2999 }
3000 .is-kbd-selected {
3001 outline: 2px solid rgba(52,211,153,0.6) !important;
3002 background: rgba(52,211,153,0.06) !important;
3003 }
2ce1d0bClaude3004 .panel-empty {
3005 padding: 24px;
3006 text-align: center;
79136bbClaude3007 color: var(--text-muted);
2ce1d0bClaude3008 font-size: var(--t-sm);
79136bbClaude3009 }
3010
2ce1d0bClaude3011 /* ============================================================ */
3012 /* Search */
3013 /* ============================================================ */
79136bbClaude3014 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3015
2ce1d0bClaude3016 /* ============================================================ */
3017 /* Timeline */
3018 /* ============================================================ */
3019 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3020 .timeline::before {
3021 content: '';
3022 position: absolute;
3023 left: 4px;
3024 top: 8px;
3025 bottom: 8px;
3026 width: 2px;
2ce1d0bClaude3027 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3028 }
2ce1d0bClaude3029 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3030 .timeline-dot {
3031 position: absolute;
2ce1d0bClaude3032 left: -28px;
3033 top: 8px;
3034 width: 12px;
3035 height: 12px;
3036 border-radius: var(--r-full);
3037 background: var(--accent-gradient);
16b325cClaude3038 border: 2px solid var(--bg);
2ce1d0bClaude3039 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3040 }
3041 .timeline-content {
2ce1d0bClaude3042 background: var(--bg-elevated);
16b325cClaude3043 border: 1px solid var(--border);
2ce1d0bClaude3044 border-radius: var(--r-md);
3045 padding: 14px 16px;
16b325cClaude3046 }
f1ab587Claude3047
2ce1d0bClaude3048 /* ============================================================ */
3049 /* Toggle switch */
3050 /* ============================================================ */
f1ab587Claude3051 .toggle-switch {
3052 position: relative;
3053 display: inline-block;
2ce1d0bClaude3054 width: 40px;
3055 height: 22px;
f1ab587Claude3056 flex-shrink: 0;
3057 margin-left: 16px;
3058 }
3059 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3060 .toggle-slider {
3061 position: absolute;
3062 cursor: pointer;
3063 top: 0; left: 0; right: 0; bottom: 0;
3064 background: var(--bg-tertiary);
3065 border: 1px solid var(--border);
2ce1d0bClaude3066 border-radius: var(--r-full);
3067 transition: all var(--t-base) var(--ease);
f1ab587Claude3068 }
3069 .toggle-slider::before {
3070 content: '';
3071 position: absolute;
2ce1d0bClaude3072 height: 16px;
3073 width: 16px;
f1ab587Claude3074 left: 2px;
3075 bottom: 2px;
3076 background: var(--text-muted);
2ce1d0bClaude3077 border-radius: var(--r-full);
3078 transition: all var(--t-base) var(--ease);
f1ab587Claude3079 }
3080 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3081 background: var(--accent-gradient);
3082 border-color: transparent;
958d26aClaude3083 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3084 }
3085 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3086 transform: translateX(18px);
f1ab587Claude3087 background: #fff;
3088 }
ef8d378Claude3089
3090 /* ============================================================
3091 * 2026 polish layer (purely additive — no layout changes).
3092 * Improves typography rendering, focus states, hover affordances,
3093 * and adds the gradient brand cue to primary buttons. Anything
3094 * that could alter dimensions stays in the rules above.
3095 * ============================================================ */
3096 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3097 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3098 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3099
3100 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3101 h1 { letter-spacing: -0.025em; }
3102
3103 /* Smoother colour transitions everywhere links live */
3104 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3105
3106 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3107 .btn {
3108 transition:
3109 background 120ms cubic-bezier(0.16,1,0.3,1),
3110 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3111 transform 120ms cubic-bezier(0.16,1,0.3,1),
3112 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3113 }
3114 .btn:active { transform: translateY(0.5px); }
3115 .btn:focus-visible {
3116 outline: none;
3117 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3118 }
3119 .btn-primary {
3120 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3121 border-color: transparent;
3122 box-shadow:
3123 inset 0 1px 0 rgba(255,255,255,0.15),
3124 0 1px 2px rgba(168,85,247,0.25);
3125 }
3126 .btn-primary:hover {
3127 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3128 filter: none;
3129 box-shadow:
3130 inset 0 1px 0 rgba(255,255,255,0.20),
3131 0 4px 12px rgba(168,85,247,0.30);
3132 }
3133
3134 /* Inputs: cleaner focus ring + hover */
3135 .form-group input:hover,
3136 .form-group textarea:hover,
3137 .form-group select:hover {
3138 border-color: rgba(255,255,255,0.14);
3139 }
3140 .form-group input:focus,
3141 .form-group textarea:focus,
3142 .form-group select:focus {
3143 border-color: rgba(168,85,247,0.55);
3144 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3145 }
3146 :root[data-theme='light'] .form-group input:hover,
3147 :root[data-theme='light'] .form-group textarea:hover,
3148 :root[data-theme='light'] .form-group select:hover {
3149 border-color: rgba(0,0,0,0.18);
3150 }
3151
3152 /* Cards: subtle hover lift */
3153 .card {
3154 transition:
3155 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3156 transform 160ms cubic-bezier(0.16,1,0.3,1),
3157 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3158 }
3159 .card:hover {
3160 border-color: rgba(255,255,255,0.18);
3161 transform: translateY(-1px);
3162 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3163 }
3164 :root[data-theme='light'] .card:hover {
3165 border-color: rgba(0,0,0,0.18);
3166 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3167 }
3168
3169 /* Issue / commit / panel rows: smoother hover */
3170 .issue-item, .commit-item {
3171 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3172 }
3173 .repo-nav a {
3174 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3175 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3176 }
3177 .nav-link {
3178 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3179 }
3180
3181 /* Auth card: subtle elevation so register/login feel premium */
3182 .auth-container {
3183 background: var(--bg-secondary);
3184 border: 1px solid var(--border);
3185 border-radius: var(--r-lg, 12px);
3186 padding: 32px;
3187 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3188 }
3189 :root[data-theme='light'] .auth-container {
3190 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3191 }
3192 .auth-container h2 { letter-spacing: -0.025em; }
3193
3194 /* Empty state: dashed border, generous padding */
3195 .empty-state {
3196 border: 1px dashed var(--border);
3197 border-radius: var(--r-lg, 12px);
3198 background: var(--bg);
3199 }
3200
3201 /* Badges + commit-sha: smoother transition */
3202 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3203
3204 /* Gradient text utility — matches landing's accent treatment */
3205 .gradient-text {
3206 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3207 -webkit-background-clip: text;
3208 background-clip: text;
3209 -webkit-text-fill-color: transparent;
3210 }
3211
3212 /* Custom scrollbars (subtle, themed) */
3213 ::-webkit-scrollbar { width: 10px; height: 10px; }
3214 ::-webkit-scrollbar-track { background: transparent; }
3215 ::-webkit-scrollbar-thumb {
3216 background: rgba(255,255,255,0.06);
3217 border: 2px solid var(--bg);
3218 border-radius: 9999px;
3219 }
3220 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3221 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3222 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3223
3224 /* Honour reduced-motion preference */
3225 @media (prefers-reduced-motion: reduce) {
3226 *, *::before, *::after {
3227 animation-duration: 0.01ms !important;
3228 animation-iteration-count: 1 !important;
3229 transition-duration: 0.01ms !important;
3230 }
3231 }
c63b860Claude3232
3233 /* Block O3 — visual coherence additive rules. */
3234 .card.card-p-none { padding: 0; }
3235 .card.card-p-sm { padding: var(--space-3); }
3236 .card.card-p-md { padding: var(--space-4); }
3237 .card.card-p-lg { padding: var(--space-6); }
3238 .card.card-elevated { box-shadow: var(--elev-2); }
3239 .card.card-gradient {
3240 background:
3241 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3242 var(--bg-elevated);
3243 }
3244 .card.card-gradient::before { opacity: 1; }
3245 .notice {
3246 padding: var(--space-3) var(--space-4);
3247 border-radius: var(--radius-md);
3248 border: 1px solid var(--border);
3249 background: var(--bg-elevated);
3250 color: var(--text);
3251 font-size: var(--font-size-sm);
3252 margin-bottom: var(--space-6);
3253 line-height: var(--leading-normal);
3254 }
3255 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3256 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3257 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3258 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3259 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3260 .email-preview {
3261 padding: var(--space-5);
3262 background: #fff;
3263 color: #111;
3264 border-radius: var(--radius-md);
3265 }
3266 .code-block {
3267 margin: var(--space-2) 0 0;
3268 padding: var(--space-3);
3269 background: var(--bg-tertiary);
3270 border: 1px solid var(--border-subtle);
3271 border-radius: var(--radius-sm);
3272 font-family: var(--font-mono);
3273 font-size: var(--font-size-xs);
3274 line-height: var(--leading-normal);
3275 overflow-x: auto;
3276 }
3277 .status-pill-operational {
3278 display: inline-flex;
3279 align-items: center;
3280 padding: var(--space-1) var(--space-3);
3281 border-radius: var(--radius-full);
3282 font-size: var(--font-size-xs);
3283 font-weight: 600;
3284 background: rgba(52,211,153,0.15);
3285 color: var(--green);
3286 }
3287 .api-tag {
3288 display: inline-flex;
3289 align-items: center;
3290 font-size: var(--font-size-xs);
3291 padding: 2px var(--space-2);
3292 border-radius: var(--radius-sm);
3293 font-family: var(--font-mono);
3294 }
3295 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3296 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3297 .stat-number {
3298 font-size: var(--font-size-xl);
3299 font-weight: 700;
3300 color: var(--text-strong);
3301 line-height: var(--leading-tight);
3302 }
3303 .stat-number-accent { color: var(--accent); }
3304 .stat-number-blue { color: var(--blue); }
3305 .stat-number-purple { color: var(--text-link); }
3306 footer .footer-tag-sub {
3307 margin-top: var(--space-2);
3308 font-size: var(--font-size-xs);
3309 color: var(--text-faint);
3310 line-height: var(--leading-normal);
3311 }
3312 footer .footer-version-pill {
3313 display: inline-flex;
3314 align-items: center;
3315 gap: var(--space-2);
3316 padding: var(--space-1) var(--space-3);
3317 border-radius: var(--radius-full);
3318 border: 1px solid var(--border);
3319 background: var(--bg-elevated);
3320 color: var(--text-faint);
3321 font-family: var(--font-mono);
3322 font-size: var(--font-size-xs);
3323 cursor: help;
3324 }
3325 footer .footer-banner {
3326 max-width: 1240px;
3327 margin: var(--space-6) auto 0;
3328 padding: var(--space-3) var(--space-4);
3329 border-radius: var(--radius-md);
3330 border: 1px solid var(--border);
3331 background: var(--bg-elevated);
3332 color: var(--text);
3333 font-family: var(--font-mono);
3334 font-size: var(--font-size-xs);
3335 letter-spacing: 0.04em;
3336 text-transform: uppercase;
3337 text-align: center;
3338 }
3339 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3340 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3341 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3342
cf9178bTest User3343 /* ============================================================ */
3344 /* Global toast notifications. */
3345 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3346 /* ============================================================ */
3347 .gx-toast {
3348 pointer-events: auto;
3349 display: inline-flex;
3350 align-items: flex-start;
3351 gap: 10px;
3352 min-width: 280px;
3353 max-width: min(440px, calc(100vw - 32px));
3354 padding: 12px 14px 12px 12px;
3355 background: var(--bg-elevated);
3356 border: 1px solid var(--border);
3357 border-radius: 10px;
3358 box-shadow:
3359 0 12px 36px -10px rgba(15,16,28,0.18),
3360 0 2px 6px rgba(15,16,28,0.04),
3361 0 0 0 1px rgba(15,16,28,0.02);
3362 color: var(--text);
3363 font-size: 13.5px;
3364 line-height: 1.45;
3365 opacity: 0;
3366 transform: translateX(16px);
3367 transition:
3368 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3369 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3370 }
3371 .gx-toast--in { opacity: 1; transform: translateX(0); }
3372 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3373 .gx-toast__icon {
3374 flex-shrink: 0;
3375 width: 20px; height: 20px;
3376 border-radius: 50%;
3377 display: inline-flex;
3378 align-items: center;
3379 justify-content: center;
3380 font-size: 12px;
3381 font-weight: 700;
3382 line-height: 1;
3383 margin-top: 1px;
3384 }
3385 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3386 .gx-toast__close {
3387 flex-shrink: 0;
3388 width: 22px; height: 22px;
3389 border: 0;
3390 background: transparent;
3391 color: var(--text-muted);
3392 font-size: 18px;
3393 line-height: 1;
3394 cursor: pointer;
3395 border-radius: 4px;
3396 padding: 0;
3397 margin: -2px -2px 0 0;
3398 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3399 }
3400 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3401 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3402 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3403 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3404 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3405 @media (prefers-reduced-motion: reduce) {
3406 .gx-toast { transition: opacity 60ms linear; transform: none; }
3407 .gx-toast--in, .gx-toast--out { transform: none; }
3408 }
3409
dc26881CC LABS App3410 /* ============================================================ */
3411 /* Block U4 — cross-document view transitions. */
3412 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3413 /* every same-origin navigation. Older browsers ignore these */
3414 /* rules entirely — no JS shim, no breakage. */
3415 /* prefers-reduced-motion disables the animation honourably. */
3416 /* ============================================================ */
3417 @view-transition {
3418 navigation: auto;
3419 }
3420 ::view-transition-old(root),
3421 ::view-transition-new(root) {
3422 animation-duration: 200ms;
3423 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3424 }
3425 ::view-transition-old(root) {
3426 animation-name: vt-fade-out;
3427 }
3428 ::view-transition-new(root) {
3429 animation-name: vt-fade-in;
3430 }
3431 @keyframes vt-fade-out {
3432 to { opacity: 0; }
3433 }
3434 @keyframes vt-fade-in {
3435 from { opacity: 0; }
3436 }
3437 @media (prefers-reduced-motion: reduce) {
3438 ::view-transition-old(root),
3439 ::view-transition-new(root) {
3440 animation-duration: 0s;
3441 }
3442 }
3443 /* The transition system picks up its root subject from this rule. */
3444 body {
3445 view-transition-name: root;
3446 }
fc1817aClaude3447`;