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.tsxBlame3485 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
8c790e0Claude2350 /* Push Watch discoverability — live/recent indicator in the repo header */
2351 @keyframes pushWatchPulse {
2352 0%, 100% { opacity: 1; }
2353 50% { opacity: 0.3; }
2354 }
2355 .repo-header-live-badge {
2356 display: inline-flex;
2357 align-items: center;
2358 gap: 5px;
2359 padding: 2px 9px;
2360 border-radius: 999px;
2361 font-size: 12px;
2362 font-weight: 600;
2363 letter-spacing: 0.02em;
2364 text-decoration: none !important;
2365 vertical-align: 3px;
2366 transition: filter 140ms ease, opacity 140ms ease;
2367 }
2368 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2369 .repo-header-live-badge--live {
2370 background: rgba(218, 54, 51, 0.12);
2371 color: #f97171;
2372 border: 1px solid rgba(218, 54, 51, 0.35);
2373 }
2374 .repo-header-live-badge--live .repo-header-live-dot {
2375 animation: pushWatchPulse 1.2s ease-in-out infinite;
2376 display: inline-block;
2377 }
2378 .repo-header-live-badge--recent {
2379 background: rgba(140, 109, 255, 0.08);
2380 color: var(--text-muted);
2381 border: 1px solid rgba(140, 109, 255, 0.22);
2382 }
2383 .repo-header-live-badge--recent:hover { color: var(--accent); }
2384 @media (prefers-reduced-motion: reduce) {
2385 .repo-header-live-badge--live .repo-header-live-dot { animation: none; }
2386 }
2387
fc1817aClaude2388 .repo-nav {
2389 display: flex;
debcf27Claude2390 gap: 1px;
fc1817aClaude2391 border-bottom: 1px solid var(--border);
debcf27Claude2392 margin-bottom: 28px;
2ce1d0bClaude2393 overflow-x: auto;
2394 scrollbar-width: thin;
fc1817aClaude2395 }
2ce1d0bClaude2396 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2397 .repo-nav a {
debcf27Claude2398 position: relative;
2399 padding: 11px 14px;
fc1817aClaude2400 color: var(--text-muted);
2401 border-bottom: 2px solid transparent;
2ce1d0bClaude2402 font-size: var(--t-sm);
2403 font-weight: 500;
2404 margin-bottom: -1px;
debcf27Claude2405 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2406 white-space: nowrap;
2407 }
debcf27Claude2408 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2409 .repo-nav a.active {
debcf27Claude2410 color: var(--text-strong);
2411 font-weight: 600;
2412 }
2413 .repo-nav a.active::after {
2414 content: '';
2415 position: absolute;
2416 left: 14px;
2417 right: 14px;
2418 bottom: -1px;
2419 height: 2px;
2420 background: var(--accent-gradient);
2421 border-radius: 2px;
2422 }
2423 /* AI links in the right-side cluster — sparkle accent */
2424 .repo-nav-ai {
2425 color: var(--accent) !important;
2426 font-weight: 500;
2427 }
2428 .repo-nav-ai:hover {
2429 color: var(--accent-hover) !important;
2430 background: var(--accent-gradient-faint) !important;
2431 }
2432 .repo-nav-ai.active {
2433 color: var(--accent-hover) !important;
2ce1d0bClaude2434 font-weight: 600;
fc1817aClaude2435 }
2436
2ce1d0bClaude2437 .breadcrumb {
2438 display: flex;
debcf27Claude2439 gap: 6px;
2ce1d0bClaude2440 align-items: center;
debcf27Claude2441 margin-bottom: 18px;
2ce1d0bClaude2442 color: var(--text-muted);
2443 font-size: var(--t-sm);
2444 font-family: var(--font-mono);
debcf27Claude2445 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2446 }
2447 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2448 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2449 .breadcrumb strong {
2450 color: var(--text-strong);
2451 font-weight: 600;
fc1817aClaude2452 }
2453
debcf27Claude2454 /* Page header — eyebrow + title + optional actions row.
2455 Use on dashboard, settings, admin, any "section landing" page. */
2456 .page-header {
2457 display: flex;
2458 align-items: flex-end;
2459 justify-content: space-between;
2460 gap: 16px;
2461 margin-bottom: 28px;
2462 padding-bottom: 20px;
2463 border-bottom: 1px solid var(--border-subtle);
2464 flex-wrap: wrap;
2465 }
2466 .page-header-text { flex: 1; min-width: 280px; }
2467 .page-header .eyebrow { margin-bottom: var(--s-2); }
2468 .page-header h1 {
2469 font-family: var(--font-display);
2470 font-size: clamp(24px, 3vw, 36px);
2471 line-height: 1.1;
2472 letter-spacing: -0.028em;
2473 margin-bottom: 6px;
2474 }
2475 .page-header p {
2476 color: var(--text-muted);
2477 font-size: var(--t-sm);
2478 line-height: 1.55;
2479 max-width: 640px;
2480 }
2481 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2482
2ce1d0bClaude2483 /* ============================================================ */
2484 /* File browser table */
2485 /* ============================================================ */
2486 .file-table {
2487 width: 100%;
2488 border: 1px solid var(--border);
2489 border-radius: var(--r-md);
2490 overflow: hidden;
2491 background: var(--bg-elevated);
debcf27Claude2492 border-collapse: collapse;
2ce1d0bClaude2493 }
debcf27Claude2494 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2495 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2496 .file-table td {
2497 padding: 9px 16px;
2498 font-size: var(--t-sm);
2499 font-family: var(--font-mono);
2500 font-feature-settings: var(--mono-feat);
2501 }
2ce1d0bClaude2502 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2503 .file-icon {
2504 width: 22px;
2505 color: var(--text-faint);
2506 font-size: 13px;
2507 text-align: center;
2508 }
2509 .file-name a {
2510 color: var(--text);
2511 font-weight: 500;
2512 transition: color var(--t-fast) var(--ease);
2513 }
2514 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2515
2ce1d0bClaude2516 /* ============================================================ */
2517 /* Blob view */
2518 /* ============================================================ */
fc1817aClaude2519 .blob-view {
2520 border: 1px solid var(--border);
2ce1d0bClaude2521 border-radius: var(--r-md);
fc1817aClaude2522 overflow: hidden;
2ce1d0bClaude2523 background: var(--bg-elevated);
fc1817aClaude2524 }
2525 .blob-header {
2526 background: var(--bg-secondary);
2ce1d0bClaude2527 padding: 10px 16px;
fc1817aClaude2528 border-bottom: 1px solid var(--border);
2ce1d0bClaude2529 font-size: var(--t-sm);
fc1817aClaude2530 color: var(--text-muted);
06d5ffeClaude2531 display: flex;
2532 justify-content: space-between;
2533 align-items: center;
fc1817aClaude2534 }
2535 .blob-code {
2536 overflow-x: auto;
2537 font-family: var(--font-mono);
2ce1d0bClaude2538 font-size: var(--t-sm);
2539 line-height: 1.65;
fc1817aClaude2540 }
2541 .blob-code table { width: 100%; border-collapse: collapse; }
2542 .blob-code .line-num {
2543 width: 1%;
2ce1d0bClaude2544 min-width: 56px;
2545 padding: 0 14px;
fc1817aClaude2546 text-align: right;
2ce1d0bClaude2547 color: var(--text-faint);
fc1817aClaude2548 user-select: none;
2549 white-space: nowrap;
2550 border-right: 1px solid var(--border);
2551 }
2ce1d0bClaude2552 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2553 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2554
2ce1d0bClaude2555 /* ============================================================ */
2556 /* Commits + diffs */
2557 /* ============================================================ */
2558 .commit-list {
2559 border: 1px solid var(--border);
2560 border-radius: var(--r-md);
2561 overflow: hidden;
2562 background: var(--bg-elevated);
2563 }
fc1817aClaude2564 .commit-item {
2565 display: flex;
2566 justify-content: space-between;
2567 align-items: center;
debcf27Claude2568 padding: 14px 18px;
2569 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2570 transition: background var(--t-fast) var(--ease);
fc1817aClaude2571 }
2572 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2573 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2574 .commit-message {
2575 font-size: var(--t-sm);
2576 font-weight: 500;
2577 line-height: 1.45;
2578 color: var(--text-strong);
2579 letter-spacing: -0.005em;
2580 }
2581 .commit-meta {
2582 font-family: var(--font-mono);
2583 font-size: 11px;
2584 color: var(--text-muted);
2585 margin-top: 5px;
2586 letter-spacing: 0.01em;
2587 }
fc1817aClaude2588 .commit-sha {
2589 font-family: var(--font-mono);
debcf27Claude2590 font-feature-settings: var(--mono-feat);
2591 font-size: 11px;
2592 padding: 4px 9px;
fc1817aClaude2593 background: var(--bg-tertiary);
2594 border: 1px solid var(--border);
2ce1d0bClaude2595 border-radius: var(--r-sm);
debcf27Claude2596 color: var(--accent);
2597 font-weight: 600;
2598 letter-spacing: 0.02em;
2ce1d0bClaude2599 transition: all var(--t-fast) var(--ease);
fc1817aClaude2600 }
debcf27Claude2601 .commit-sha:hover {
2602 border-color: rgba(140,109,255,0.40);
2603 background: var(--accent-gradient-faint);
2604 color: var(--accent-hover);
2605 text-decoration: none;
fc1817aClaude2606 }
2607
2608 .diff-view { margin-top: 16px; }
2609 .diff-file {
2610 border: 1px solid var(--border);
2ce1d0bClaude2611 border-radius: var(--r-md);
fc1817aClaude2612 margin-bottom: 16px;
2613 overflow: hidden;
2ce1d0bClaude2614 background: var(--bg-elevated);
fc1817aClaude2615 }
2616 .diff-file-header {
2617 background: var(--bg-secondary);
2ce1d0bClaude2618 padding: 10px 16px;
fc1817aClaude2619 border-bottom: 1px solid var(--border);
2620 font-family: var(--font-mono);
2ce1d0bClaude2621 font-size: var(--t-sm);
2622 font-weight: 500;
fc1817aClaude2623 }
2624 .diff-content {
2625 overflow-x: auto;
2626 font-family: var(--font-mono);
2ce1d0bClaude2627 font-size: var(--t-sm);
2628 line-height: 1.65;
fc1817aClaude2629 }
958d26aClaude2630 .diff-content .line-add { background: rgba(52,211,153,0.10); color: var(--green); }
2631 .diff-content .line-del { background: rgba(248,113,113,0.08); color: var(--red); }
2632 .diff-content .line-hunk { background: rgba(140,109,255,0.06); color: var(--text-link); }
2ce1d0bClaude2633 .diff-content .line { padding: 0 16px; white-space: pre; display: block; }
fc1817aClaude2634
2635 .stat-add { color: var(--green); font-weight: 600; }
2636 .stat-del { color: var(--red); font-weight: 600; }
2637
2ce1d0bClaude2638 /* ============================================================ */
2639 /* Empty state */
2640 /* ============================================================ */
fc1817aClaude2641 .empty-state {
2642 text-align: center;
958d26aClaude2643 padding: 96px 24px;
fc1817aClaude2644 color: var(--text-muted);
2ce1d0bClaude2645 border: 1px dashed var(--border);
2646 border-radius: var(--r-lg);
958d26aClaude2647 background:
2648 radial-gradient(60% 60% at 50% 0%, rgba(140,109,255,0.05), transparent 70%),
2649 var(--bg-elevated);
2650 position: relative;
2651 overflow: hidden;
2652 }
2653 .empty-state::before {
2654 content: '';
2655 position: absolute;
2656 inset: 0;
2657 background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
2658 background-size: 24px 24px;
2659 opacity: 0.5;
2660 pointer-events: none;
2661 mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2662 -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
2663 }
2664 :root[data-theme='light'] .empty-state::before {
2665 background-image: radial-gradient(rgba(15,16,28,0.08) 1px, transparent 1px);
fc1817aClaude2666 }
958d26aClaude2667 .empty-state > * { position: relative; z-index: 1; }
2ce1d0bClaude2668 .empty-state h2 {
958d26aClaude2669 font-size: var(--t-xl);
2ce1d0bClaude2670 margin-bottom: 8px;
958d26aClaude2671 color: var(--text-strong);
2672 letter-spacing: -0.022em;
2ce1d0bClaude2673 }
958d26aClaude2674 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2675 .empty-state pre {
2676 text-align: left;
2677 display: inline-block;
2678 background: var(--bg-secondary);
958d26aClaude2679 padding: 18px 24px;
2680 border-radius: var(--r-md);
fc1817aClaude2681 border: 1px solid var(--border);
2682 font-family: var(--font-mono);
958d26aClaude2683 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2684 font-size: var(--t-sm);
958d26aClaude2685 margin-top: 24px;
fc1817aClaude2686 line-height: 1.8;
2ce1d0bClaude2687 color: var(--text);
958d26aClaude2688 box-shadow: var(--elev-1);
fc1817aClaude2689 }
2690
2ce1d0bClaude2691 /* ============================================================ */
2692 /* Badges */
2693 /* ============================================================ */
fc1817aClaude2694 .badge {
2ce1d0bClaude2695 display: inline-flex;
2696 align-items: center;
2697 gap: 4px;
2698 padding: 2px 9px;
2699 border-radius: var(--r-full);
2700 font-size: var(--t-xs);
fc1817aClaude2701 font-weight: 500;
2702 background: var(--bg-tertiary);
2703 border: 1px solid var(--border);
2704 color: var(--text-muted);
2ce1d0bClaude2705 line-height: 1.5;
fc1817aClaude2706 }
2707
2ce1d0bClaude2708 /* ============================================================ */
2709 /* Branch dropdown */
2710 /* ============================================================ */
fc1817aClaude2711 .branch-selector {
2712 display: inline-flex;
2713 align-items: center;
2ce1d0bClaude2714 gap: 6px;
2715 padding: 6px 12px;
2716 background: var(--bg-elevated);
fc1817aClaude2717 border: 1px solid var(--border);
2ce1d0bClaude2718 border-radius: var(--r-sm);
2719 font-size: var(--t-sm);
fc1817aClaude2720 color: var(--text);
2721 margin-bottom: 12px;
2ce1d0bClaude2722 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2723 }
2ce1d0bClaude2724 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2725
06d5ffeClaude2726 .branch-dropdown {
2727 position: relative;
2728 display: inline-block;
2729 margin-bottom: 12px;
2730 }
2731 .branch-dropdown-content {
2732 display: none;
2733 position: absolute;
2ce1d0bClaude2734 top: calc(100% + 4px);
06d5ffeClaude2735 left: 0;
2736 z-index: 10;
2ce1d0bClaude2737 min-width: 220px;
2738 background: var(--bg-elevated);
2739 border: 1px solid var(--border-strong);
2740 border-radius: var(--r-md);
2741 overflow: hidden;
2742 box-shadow: var(--elev-3);
06d5ffeClaude2743 }
2744 .branch-dropdown:hover .branch-dropdown-content,
2745 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2746 .branch-dropdown-content a {
2747 display: block;
2ce1d0bClaude2748 padding: 9px 14px;
2749 font-size: var(--t-sm);
06d5ffeClaude2750 color: var(--text);
2751 border-bottom: 1px solid var(--border);
2ce1d0bClaude2752 transition: background var(--t-fast) var(--ease);
06d5ffeClaude2753 }
2754 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude2755 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
2756 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude2757
2ce1d0bClaude2758 /* ============================================================ */
2759 /* Card grid */
2760 /* ============================================================ */
2761 .card-grid {
2762 display: grid;
2763 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
2764 gap: 16px;
2765 }
fc1817aClaude2766 .card {
2767 border: 1px solid var(--border);
2ce1d0bClaude2768 border-radius: var(--r-md);
958d26aClaude2769 padding: 20px;
2ce1d0bClaude2770 background: var(--bg-elevated);
2771 transition:
958d26aClaude2772 border-color var(--t-base) var(--ease),
2773 transform var(--t-base) var(--ease-out-quart),
2ce1d0bClaude2774 box-shadow var(--t-base) var(--ease);
2775 position: relative;
2776 overflow: hidden;
958d26aClaude2777 isolation: isolate;
2778 }
2779 .card::before {
2780 content: '';
2781 position: absolute;
2782 inset: 0;
2783 background: linear-gradient(135deg, rgba(140,109,255,0.06), transparent 50%);
2784 opacity: 0;
2785 transition: opacity var(--t-base) var(--ease);
2786 pointer-events: none;
2787 z-index: -1;
2ce1d0bClaude2788 }
2789 .card:hover {
2790 border-color: var(--border-strong);
2791 box-shadow: var(--elev-2);
958d26aClaude2792 transform: translateY(-2px);
2ce1d0bClaude2793 }
958d26aClaude2794 .card:hover::before { opacity: 1; }
2795 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude2796 .card h3 a { color: var(--text); font-weight: 600; }
2797 .card h3 a:hover { color: var(--text-link); }
2798 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
2799 .card-meta {
2800 display: flex;
2801 gap: 14px;
2802 margin-top: 14px;
2803 padding-top: 14px;
2804 border-top: 1px solid var(--border);
2805 font-size: var(--t-xs);
2806 color: var(--text-muted);
2807 }
2808 .card-meta span { display: flex; align-items: center; gap: 5px; }
2809
2810 /* ============================================================ */
2811 /* Stat card / box */
2812 /* ============================================================ */
2813 .stat-card {
2814 background: var(--bg-elevated);
2815 border: 1px solid var(--border);
2816 border-radius: var(--r-md);
fc1817aClaude2817 padding: 16px;
2ce1d0bClaude2818 transition: border-color var(--t-fast) var(--ease);
2819 }
2820 .stat-card:hover { border-color: var(--border-strong); }
2821 .stat-label {
2822 font-size: var(--t-xs);
2823 color: var(--text-muted);
2824 text-transform: uppercase;
2825 letter-spacing: 0.06em;
2826 font-weight: 500;
2827 }
2828 .stat-value {
2829 font-size: var(--t-xl);
2830 font-weight: 700;
2831 margin-top: 4px;
2832 letter-spacing: -0.025em;
2833 color: var(--text);
2834 font-feature-settings: 'tnum';
fc1817aClaude2835 }
06d5ffeClaude2836
2ce1d0bClaude2837 /* ============================================================ */
2838 /* Star button */
2839 /* ============================================================ */
06d5ffeClaude2840 .star-btn {
2841 display: inline-flex;
2842 align-items: center;
2843 gap: 6px;
2ce1d0bClaude2844 padding: 5px 12px;
2845 background: var(--bg-elevated);
06d5ffeClaude2846 border: 1px solid var(--border);
2ce1d0bClaude2847 border-radius: var(--r-sm);
06d5ffeClaude2848 color: var(--text);
2ce1d0bClaude2849 font-size: var(--t-sm);
2850 font-weight: 500;
06d5ffeClaude2851 cursor: pointer;
2ce1d0bClaude2852 transition: all var(--t-fast) var(--ease);
2853 }
2854 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
2855 .star-btn.starred {
2856 color: var(--yellow);
958d26aClaude2857 border-color: rgba(251,191,36,0.4);
2858 background: rgba(251,191,36,0.08);
06d5ffeClaude2859 }
2860
2ce1d0bClaude2861 /* ============================================================ */
2862 /* User profile */
2863 /* ============================================================ */
06d5ffeClaude2864 .user-profile {
2865 display: flex;
2866 gap: 32px;
2867 margin-bottom: 32px;
2ce1d0bClaude2868 padding: 24px;
2869 background: var(--bg-elevated);
2870 border: 1px solid var(--border);
2871 border-radius: var(--r-lg);
06d5ffeClaude2872 }
2873 .user-avatar {
2874 width: 96px;
2875 height: 96px;
2ce1d0bClaude2876 border-radius: var(--r-full);
2877 background: var(--accent-gradient-soft);
2878 border: 1px solid var(--border-strong);
06d5ffeClaude2879 display: flex;
2880 align-items: center;
2881 justify-content: center;
2ce1d0bClaude2882 font-size: 36px;
2883 font-weight: 600;
2884 color: var(--text);
06d5ffeClaude2885 flex-shrink: 0;
2ce1d0bClaude2886 letter-spacing: -0.02em;
06d5ffeClaude2887 }
2ce1d0bClaude2888 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
2889 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
2890 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude2891
2ce1d0bClaude2892 /* ============================================================ */
2893 /* New repo form */
2894 /* ============================================================ */
2895 .new-repo-form { max-width: 640px; }
2896 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
2897 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude2898 .visibility-option {
2899 flex: 1;
2ce1d0bClaude2900 padding: 16px;
06d5ffeClaude2901 border: 1px solid var(--border);
2ce1d0bClaude2902 border-radius: var(--r-md);
2903 background: var(--bg-elevated);
06d5ffeClaude2904 cursor: pointer;
2ce1d0bClaude2905 text-align: left;
2906 transition: all var(--t-fast) var(--ease);
2907 }
2908 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
2909 .visibility-option:has(input:checked) {
2910 border-color: var(--accent);
2911 background: var(--accent-gradient-faint);
2912 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude2913 }
2914 .visibility-option input { display: none; }
2ce1d0bClaude2915 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
2916 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude2917
2ce1d0bClaude2918 /* ============================================================ */
2919 /* Issues */
2920 /* ============================================================ */
2921 .issue-tabs { display: flex; gap: 4px; }
2922 .issue-tabs a {
2923 color: var(--text-muted);
2924 font-size: var(--t-sm);
2925 font-weight: 500;
2926 padding: 6px 12px;
2927 border-radius: var(--r-sm);
2928 transition: all var(--t-fast) var(--ease);
2929 }
2930 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2931 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude2932
2ce1d0bClaude2933 .issue-list {
2934 border: 1px solid var(--border);
2935 border-radius: var(--r-md);
2936 overflow: hidden;
2937 background: var(--bg-elevated);
2938 }
79136bbClaude2939 .issue-item {
2940 display: flex;
2ce1d0bClaude2941 gap: 14px;
79136bbClaude2942 align-items: flex-start;
2ce1d0bClaude2943 padding: 14px 16px;
79136bbClaude2944 border-bottom: 1px solid var(--border);
2ce1d0bClaude2945 transition: background var(--t-fast) var(--ease);
79136bbClaude2946 }
2947 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude2948 .issue-item:hover { background: var(--bg-hover); }
2949 .issue-state-icon {
2950 font-size: 14px;
2951 padding-top: 2px;
2952 width: 18px;
2953 height: 18px;
2954 display: inline-flex;
2955 align-items: center;
2956 justify-content: center;
2957 border-radius: var(--r-full);
2958 flex-shrink: 0;
2959 }
79136bbClaude2960 .state-open { color: var(--green); }
958d26aClaude2961 .state-closed { color: #b69dff; }
2ce1d0bClaude2962 .issue-title {
debcf27Claude2963 font-family: var(--font-display);
2964 font-size: var(--t-md);
2ce1d0bClaude2965 font-weight: 600;
debcf27Claude2966 line-height: 1.35;
2967 letter-spacing: -0.012em;
2968 }
2969 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
2970 .issue-title a:hover { color: var(--accent); text-decoration: none; }
2971 .issue-meta {
2972 font-family: var(--font-mono);
2973 font-size: 11px;
2974 color: var(--text-muted);
2975 margin-top: 5px;
2976 letter-spacing: 0.01em;
2ce1d0bClaude2977 }
79136bbClaude2978
2979 .issue-badge {
2980 display: inline-flex;
2981 align-items: center;
2ce1d0bClaude2982 gap: 6px;
79136bbClaude2983 padding: 4px 12px;
2ce1d0bClaude2984 border-radius: var(--r-full);
2985 font-size: var(--t-sm);
79136bbClaude2986 font-weight: 500;
2ce1d0bClaude2987 line-height: 1.4;
79136bbClaude2988 }
958d26aClaude2989 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
2990 .badge-closed { background: rgba(182,157,255,0.10); color: #b69dff; border: 1px solid rgba(182,157,255,0.35); }
2991 .badge-merged { background: rgba(140,109,255,0.10); color: var(--accent); border: 1px solid rgba(140,109,255,0.35); }
2ce1d0bClaude2992 .state-merged { color: var(--accent); }
958d26aClaude2993 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(140,109,255,0.3); }
79136bbClaude2994
2ce1d0bClaude2995 .issue-detail { max-width: 920px; }
79136bbClaude2996 .issue-comment-box {
2997 border: 1px solid var(--border);
2ce1d0bClaude2998 border-radius: var(--r-md);
79136bbClaude2999 margin-bottom: 16px;
3000 overflow: hidden;
2ce1d0bClaude3001 background: var(--bg-elevated);
79136bbClaude3002 }
3003 .comment-header {
3004 background: var(--bg-secondary);
2ce1d0bClaude3005 padding: 10px 16px;
79136bbClaude3006 border-bottom: 1px solid var(--border);
2ce1d0bClaude3007 font-size: var(--t-sm);
79136bbClaude3008 color: var(--text-muted);
3009 }
3010
2ce1d0bClaude3011 /* ============================================================ */
3012 /* Panel — flexible container used across many pages */
3013 /* ============================================================ */
3014 .panel {
3015 background: var(--bg-elevated);
3016 border: 1px solid var(--border);
3017 border-radius: var(--r-md);
3018 overflow: hidden;
3019 }
3020 .panel-item {
3021 display: flex;
3022 align-items: center;
3023 gap: 12px;
3024 padding: 12px 16px;
79136bbClaude3025 border-bottom: 1px solid var(--border);
2ce1d0bClaude3026 transition: background var(--t-fast) var(--ease);
3027 }
3028 .panel-item:last-child { border-bottom: none; }
3029 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3030
3031 /* ─── j/k keyboard list navigation ─── */
3032 .is-kbd-focus {
3033 outline: 2px solid rgba(140,109,255,0.6) !important;
3034 outline-offset: -2px;
3035 background: rgba(140,109,255,0.06) !important;
3036 border-radius: 4px;
3037 }
3038 .is-kbd-selected {
3039 outline: 2px solid rgba(52,211,153,0.6) !important;
3040 background: rgba(52,211,153,0.06) !important;
3041 }
2ce1d0bClaude3042 .panel-empty {
3043 padding: 24px;
3044 text-align: center;
79136bbClaude3045 color: var(--text-muted);
2ce1d0bClaude3046 font-size: var(--t-sm);
79136bbClaude3047 }
3048
2ce1d0bClaude3049 /* ============================================================ */
3050 /* Search */
3051 /* ============================================================ */
79136bbClaude3052 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3053
2ce1d0bClaude3054 /* ============================================================ */
3055 /* Timeline */
3056 /* ============================================================ */
3057 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3058 .timeline::before {
3059 content: '';
3060 position: absolute;
3061 left: 4px;
3062 top: 8px;
3063 bottom: 8px;
3064 width: 2px;
2ce1d0bClaude3065 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3066 }
2ce1d0bClaude3067 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3068 .timeline-dot {
3069 position: absolute;
2ce1d0bClaude3070 left: -28px;
3071 top: 8px;
3072 width: 12px;
3073 height: 12px;
3074 border-radius: var(--r-full);
3075 background: var(--accent-gradient);
16b325cClaude3076 border: 2px solid var(--bg);
2ce1d0bClaude3077 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3078 }
3079 .timeline-content {
2ce1d0bClaude3080 background: var(--bg-elevated);
16b325cClaude3081 border: 1px solid var(--border);
2ce1d0bClaude3082 border-radius: var(--r-md);
3083 padding: 14px 16px;
16b325cClaude3084 }
f1ab587Claude3085
2ce1d0bClaude3086 /* ============================================================ */
3087 /* Toggle switch */
3088 /* ============================================================ */
f1ab587Claude3089 .toggle-switch {
3090 position: relative;
3091 display: inline-block;
2ce1d0bClaude3092 width: 40px;
3093 height: 22px;
f1ab587Claude3094 flex-shrink: 0;
3095 margin-left: 16px;
3096 }
3097 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3098 .toggle-slider {
3099 position: absolute;
3100 cursor: pointer;
3101 top: 0; left: 0; right: 0; bottom: 0;
3102 background: var(--bg-tertiary);
3103 border: 1px solid var(--border);
2ce1d0bClaude3104 border-radius: var(--r-full);
3105 transition: all var(--t-base) var(--ease);
f1ab587Claude3106 }
3107 .toggle-slider::before {
3108 content: '';
3109 position: absolute;
2ce1d0bClaude3110 height: 16px;
3111 width: 16px;
f1ab587Claude3112 left: 2px;
3113 bottom: 2px;
3114 background: var(--text-muted);
2ce1d0bClaude3115 border-radius: var(--r-full);
3116 transition: all var(--t-base) var(--ease);
f1ab587Claude3117 }
3118 .toggle-switch input:checked + .toggle-slider {
2ce1d0bClaude3119 background: var(--accent-gradient);
3120 border-color: transparent;
958d26aClaude3121 box-shadow: 0 0 0 1px rgba(140,109,255,0.4);
f1ab587Claude3122 }
3123 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3124 transform: translateX(18px);
f1ab587Claude3125 background: #fff;
3126 }
ef8d378Claude3127
3128 /* ============================================================
3129 * 2026 polish layer (purely additive — no layout changes).
3130 * Improves typography rendering, focus states, hover affordances,
3131 * and adds the gradient brand cue to primary buttons. Anything
3132 * that could alter dimensions stays in the rules above.
3133 * ============================================================ */
3134 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3135 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
3136 *::selection { background: rgba(168,85,247,0.35); color: var(--text); }
3137
3138 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3139 h1 { letter-spacing: -0.025em; }
3140
3141 /* Smoother colour transitions everywhere links live */
3142 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3143
3144 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3145 .btn {
3146 transition:
3147 background 120ms cubic-bezier(0.16,1,0.3,1),
3148 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3149 transform 120ms cubic-bezier(0.16,1,0.3,1),
3150 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3151 }
3152 .btn:active { transform: translateY(0.5px); }
3153 .btn:focus-visible {
3154 outline: none;
3155 box-shadow: 0 0 0 3px rgba(168,85,247,0.30);
3156 }
3157 .btn-primary {
3158 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3159 border-color: transparent;
3160 box-shadow:
3161 inset 0 1px 0 rgba(255,255,255,0.15),
3162 0 1px 2px rgba(168,85,247,0.25);
3163 }
3164 .btn-primary:hover {
3165 background: linear-gradient(135deg, #b766f8 0%, #22cce0 100%);
3166 filter: none;
3167 box-shadow:
3168 inset 0 1px 0 rgba(255,255,255,0.20),
3169 0 4px 12px rgba(168,85,247,0.30);
3170 }
3171
3172 /* Inputs: cleaner focus ring + hover */
3173 .form-group input:hover,
3174 .form-group textarea:hover,
3175 .form-group select:hover {
3176 border-color: rgba(255,255,255,0.14);
3177 }
3178 .form-group input:focus,
3179 .form-group textarea:focus,
3180 .form-group select:focus {
3181 border-color: rgba(168,85,247,0.55);
3182 box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
3183 }
3184 :root[data-theme='light'] .form-group input:hover,
3185 :root[data-theme='light'] .form-group textarea:hover,
3186 :root[data-theme='light'] .form-group select:hover {
3187 border-color: rgba(0,0,0,0.18);
3188 }
3189
3190 /* Cards: subtle hover lift */
3191 .card {
3192 transition:
3193 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3194 transform 160ms cubic-bezier(0.16,1,0.3,1),
3195 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
3196 }
3197 .card:hover {
3198 border-color: rgba(255,255,255,0.18);
3199 transform: translateY(-1px);
3200 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
3201 }
3202 :root[data-theme='light'] .card:hover {
3203 border-color: rgba(0,0,0,0.18);
3204 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3205 }
3206
3207 /* Issue / commit / panel rows: smoother hover */
3208 .issue-item, .commit-item {
3209 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3210 }
3211 .repo-nav a {
3212 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3213 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3214 }
3215 .nav-link {
3216 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3217 }
3218
3219 /* Auth card: subtle elevation so register/login feel premium */
3220 .auth-container {
3221 background: var(--bg-secondary);
3222 border: 1px solid var(--border);
3223 border-radius: var(--r-lg, 12px);
3224 padding: 32px;
3225 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
3226 }
3227 :root[data-theme='light'] .auth-container {
3228 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3229 }
3230 .auth-container h2 { letter-spacing: -0.025em; }
3231
3232 /* Empty state: dashed border, generous padding */
3233 .empty-state {
3234 border: 1px dashed var(--border);
3235 border-radius: var(--r-lg, 12px);
3236 background: var(--bg);
3237 }
3238
3239 /* Badges + commit-sha: smoother transition */
3240 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3241
3242 /* Gradient text utility — matches landing's accent treatment */
3243 .gradient-text {
3244 background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
3245 -webkit-background-clip: text;
3246 background-clip: text;
3247 -webkit-text-fill-color: transparent;
3248 }
3249
3250 /* Custom scrollbars (subtle, themed) */
3251 ::-webkit-scrollbar { width: 10px; height: 10px; }
3252 ::-webkit-scrollbar-track { background: transparent; }
3253 ::-webkit-scrollbar-thumb {
3254 background: rgba(255,255,255,0.06);
3255 border: 2px solid var(--bg);
3256 border-radius: 9999px;
3257 }
3258 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3259 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3260 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3261
3262 /* Honour reduced-motion preference */
3263 @media (prefers-reduced-motion: reduce) {
3264 *, *::before, *::after {
3265 animation-duration: 0.01ms !important;
3266 animation-iteration-count: 1 !important;
3267 transition-duration: 0.01ms !important;
3268 }
3269 }
c63b860Claude3270
3271 /* Block O3 — visual coherence additive rules. */
3272 .card.card-p-none { padding: 0; }
3273 .card.card-p-sm { padding: var(--space-3); }
3274 .card.card-p-md { padding: var(--space-4); }
3275 .card.card-p-lg { padding: var(--space-6); }
3276 .card.card-elevated { box-shadow: var(--elev-2); }
3277 .card.card-gradient {
3278 background:
3279 linear-gradient(135deg, rgba(140,109,255,0.05), transparent 60%),
3280 var(--bg-elevated);
3281 }
3282 .card.card-gradient::before { opacity: 1; }
3283 .notice {
3284 padding: var(--space-3) var(--space-4);
3285 border-radius: var(--radius-md);
3286 border: 1px solid var(--border);
3287 background: var(--bg-elevated);
3288 color: var(--text);
3289 font-size: var(--font-size-sm);
3290 margin-bottom: var(--space-6);
3291 line-height: var(--leading-normal);
3292 }
3293 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3294 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3295 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3296 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
3297 .notice-accent { border-color: var(--accent); background: rgba(140,109,255,0.10); color: var(--text); }
3298 .email-preview {
3299 padding: var(--space-5);
3300 background: #fff;
3301 color: #111;
3302 border-radius: var(--radius-md);
3303 }
3304 .code-block {
3305 margin: var(--space-2) 0 0;
3306 padding: var(--space-3);
3307 background: var(--bg-tertiary);
3308 border: 1px solid var(--border-subtle);
3309 border-radius: var(--radius-sm);
3310 font-family: var(--font-mono);
3311 font-size: var(--font-size-xs);
3312 line-height: var(--leading-normal);
3313 overflow-x: auto;
3314 }
3315 .status-pill-operational {
3316 display: inline-flex;
3317 align-items: center;
3318 padding: var(--space-1) var(--space-3);
3319 border-radius: var(--radius-full);
3320 font-size: var(--font-size-xs);
3321 font-weight: 600;
3322 background: rgba(52,211,153,0.15);
3323 color: var(--green);
3324 }
3325 .api-tag {
3326 display: inline-flex;
3327 align-items: center;
3328 font-size: var(--font-size-xs);
3329 padding: 2px var(--space-2);
3330 border-radius: var(--radius-sm);
3331 font-family: var(--font-mono);
3332 }
3333 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3334 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3335 .stat-number {
3336 font-size: var(--font-size-xl);
3337 font-weight: 700;
3338 color: var(--text-strong);
3339 line-height: var(--leading-tight);
3340 }
3341 .stat-number-accent { color: var(--accent); }
3342 .stat-number-blue { color: var(--blue); }
3343 .stat-number-purple { color: var(--text-link); }
3344 footer .footer-tag-sub {
3345 margin-top: var(--space-2);
3346 font-size: var(--font-size-xs);
3347 color: var(--text-faint);
3348 line-height: var(--leading-normal);
3349 }
3350 footer .footer-version-pill {
3351 display: inline-flex;
3352 align-items: center;
3353 gap: var(--space-2);
3354 padding: var(--space-1) var(--space-3);
3355 border-radius: var(--radius-full);
3356 border: 1px solid var(--border);
3357 background: var(--bg-elevated);
3358 color: var(--text-faint);
3359 font-family: var(--font-mono);
3360 font-size: var(--font-size-xs);
3361 cursor: help;
3362 }
3363 footer .footer-banner {
3364 max-width: 1240px;
3365 margin: var(--space-6) auto 0;
3366 padding: var(--space-3) var(--space-4);
3367 border-radius: var(--radius-md);
3368 border: 1px solid var(--border);
3369 background: var(--bg-elevated);
3370 color: var(--text);
3371 font-family: var(--font-mono);
3372 font-size: var(--font-size-xs);
3373 letter-spacing: 0.04em;
3374 text-transform: uppercase;
3375 text-align: center;
3376 }
3377 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3378 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3379 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3380
cf9178bTest User3381 /* ============================================================ */
3382 /* Global toast notifications. */
3383 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3384 /* ============================================================ */
3385 .gx-toast {
3386 pointer-events: auto;
3387 display: inline-flex;
3388 align-items: flex-start;
3389 gap: 10px;
3390 min-width: 280px;
3391 max-width: min(440px, calc(100vw - 32px));
3392 padding: 12px 14px 12px 12px;
3393 background: var(--bg-elevated);
3394 border: 1px solid var(--border);
3395 border-radius: 10px;
3396 box-shadow:
3397 0 12px 36px -10px rgba(15,16,28,0.18),
3398 0 2px 6px rgba(15,16,28,0.04),
3399 0 0 0 1px rgba(15,16,28,0.02);
3400 color: var(--text);
3401 font-size: 13.5px;
3402 line-height: 1.45;
3403 opacity: 0;
3404 transform: translateX(16px);
3405 transition:
3406 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3407 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3408 }
3409 .gx-toast--in { opacity: 1; transform: translateX(0); }
3410 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3411 .gx-toast__icon {
3412 flex-shrink: 0;
3413 width: 20px; height: 20px;
3414 border-radius: 50%;
3415 display: inline-flex;
3416 align-items: center;
3417 justify-content: center;
3418 font-size: 12px;
3419 font-weight: 700;
3420 line-height: 1;
3421 margin-top: 1px;
3422 }
3423 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3424 .gx-toast__close {
3425 flex-shrink: 0;
3426 width: 22px; height: 22px;
3427 border: 0;
3428 background: transparent;
3429 color: var(--text-muted);
3430 font-size: 18px;
3431 line-height: 1;
3432 cursor: pointer;
3433 border-radius: 4px;
3434 padding: 0;
3435 margin: -2px -2px 0 0;
3436 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3437 }
3438 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3439 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3440 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3441 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
3442 .gx-toast--info .gx-toast__icon { background: rgba(109,77,255,0.14); color: var(--accent); }
3443 @media (prefers-reduced-motion: reduce) {
3444 .gx-toast { transition: opacity 60ms linear; transform: none; }
3445 .gx-toast--in, .gx-toast--out { transform: none; }
3446 }
3447
dc26881CC LABS App3448 /* ============================================================ */
3449 /* Block U4 — cross-document view transitions. */
3450 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3451 /* every same-origin navigation. Older browsers ignore these */
3452 /* rules entirely — no JS shim, no breakage. */
3453 /* prefers-reduced-motion disables the animation honourably. */
3454 /* ============================================================ */
3455 @view-transition {
3456 navigation: auto;
3457 }
3458 ::view-transition-old(root),
3459 ::view-transition-new(root) {
3460 animation-duration: 200ms;
3461 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3462 }
3463 ::view-transition-old(root) {
3464 animation-name: vt-fade-out;
3465 }
3466 ::view-transition-new(root) {
3467 animation-name: vt-fade-in;
3468 }
3469 @keyframes vt-fade-out {
3470 to { opacity: 0; }
3471 }
3472 @keyframes vt-fade-in {
3473 from { opacity: 0; }
3474 }
3475 @media (prefers-reduced-motion: reduce) {
3476 ::view-transition-old(root),
3477 ::view-transition-new(root) {
3478 animation-duration: 0s;
3479 }
3480 }
3481 /* The transition system picks up its root subject from this rule. */
3482 body {
3483 view-transition-name: root;
3484 }
fc1817aClaude3485`;