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.tsxBlame3698 lines · 6 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" />
2fd463bccanty labs60 <meta name="theme-color" content={initialTheme === "dark" ? "#0d1117" : "#fcfcfd"} />
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 )}
41a1450Claude165 <header class="site-header">
fc1817aClaude166 <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>
cc34156Claude238 {/* Smart morning digest link */}
239 <a href="/digest" class="nav-link" title="Morning Digest" aria-label="Morning Digest">
240 {"☀"}
241 </a>
f5b9ef5Claude242 {/* Inbox bell with unread badge */}
243 <a
244 href="/inbox"
245 class="nav-inbox-btn"
246 aria-label={notificationCount && notificationCount > 0 ? `Inbox — ${notificationCount} unread` : "Inbox"}
247 title="Inbox"
248 >
249 <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">
250 <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
251 <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
252 </svg>
253 {notificationCount && notificationCount > 0 ? (
254 <span class="nav-inbox-badge" aria-hidden="true">
255 {notificationCount > 99 ? "99+" : notificationCount}
256 </span>
257 ) : null}
06d5ffeClaude258 </a>
f5b9ef5Claude259 <a href="/new" class="btn btn-sm btn-primary">+ New</a>
260 {/* User dropdown — consolidates profile + secondary nav */}
261 <div class="nav-user-dropdown" data-nav-user>
262 <button
263 type="button"
264 class="nav-user-trigger"
265 aria-haspopup="true"
266 aria-expanded="false"
267 data-nav-user-trigger
268 >
269 <span class="nav-user-avatar" aria-hidden="true">
270 {(user.displayName || user.username).charAt(0).toUpperCase()}
271 </span>
272 <span class="nav-user-name">{user.displayName || user.username}</span>
273 <span class="nav-user-caret" aria-hidden="true">{"▾"}</span>
274 </button>
275 <div class="nav-user-menu" role="menu" data-nav-user-menu>
276 <div class="nav-user-menu-header">
277 <span class="nav-user-menu-name">{user.displayName || user.username}</span>
278 <span class="nav-user-menu-handle">@{user.username}</span>
279 </div>
280 <div class="nav-user-menu-sep" />
281 <a href="/dashboard" role="menuitem" class="nav-user-item">Dashboard</a>
282 <a href="/pulls" role="menuitem" class="nav-user-item">Pull requests</a>
283 <a href="/issues" role="menuitem" class="nav-user-item">Issues</a>
284 <a href="/activity" role="menuitem" class="nav-user-item">Activity</a>
8286942Claude285 <a href="/insights" role="menuitem" class="nav-user-item">Insights</a>
f5b9ef5Claude286 <a href="/import" role="menuitem" class="nav-user-item">Import from GitHub</a>
bb2dea9Claude287 <a href="/import/actions" role="menuitem" class="nav-user-item">Actions importer</a>
f5b9ef5Claude288 <div class="nav-user-menu-sep" />
289 <a href={`/${user.username}`} role="menuitem" class="nav-user-item">Your profile</a>
290 <a href="/settings" role="menuitem" class="nav-user-item">Settings</a>
291 <a href="/settings/tokens" role="menuitem" class="nav-user-item">Access tokens</a>
f4a1547ccantynz-alt292 {/* Site admins get a direct entry into the admin shell.
293 Gated on the same `isAdmin` signal the admin
294 middleware uses (user.isAdmin === true); non-admins
295 never see the link. */}
296 {(user as any).isAdmin === true && (
297 <>
298 <div class="nav-user-menu-sep" />
299 <a href="/admin" role="menuitem" class="nav-user-item">Admin</a>
300 </>
301 )}
f5b9ef5Claude302 <div class="nav-user-menu-sep" />
303 <a href="/theme/toggle" class="nav-user-item" role="menuitem">
304 <span class="theme-icon-dark">{"☾"} Light mode</span>
305 <span class="theme-icon-light">{"☀"} Dark mode</span>
306 </a>
307 <a href="/logout" role="menuitem" class="nav-user-item nav-user-item--danger">Sign out</a>
308 </div>
309 </div>
06d5ffeClaude310 </>
311 ) : (
312 <>
f5b9ef5Claude313 <a href="/theme/toggle" class="nav-link nav-theme" title="Toggle theme" aria-label="Toggle theme">
314 <span class="theme-icon-dark">{"☾"}</span>
315 <span class="theme-icon-light">{"☀"}</span>
06d5ffeClaude316 </a>
adf5e18Claude317 <a href="/import" class="nav-link nav-migrate" title="Migrate your GitHub repos to Gluecron">
318 Migrate from GitHub
319 </a>
f5b9ef5Claude320 <a href="/login" class="nav-link">Sign in</a>
321 <a href="/register" class="btn btn-sm btn-primary">Register</a>
06d5ffeClaude322 </>
323 )}
324 </div>
fc1817aClaude325 </nav>
326 </header>
45e31d0Claude327 <main id="main-content">{children}</main>
cf9178bTest User328 {/* Global toast host — populated by the toastScript below from
329 ?success= / ?error= / ?toast= query params. Replaces the
330 per-page banner pattern with one polished slide-in. */}
331 <div
332 id="toast-host"
333 aria-live="polite"
334 aria-atomic="true"
335 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"
336 />
fc1817aClaude337 <footer>
958d26aClaude338 <div class="footer-inner">
339 <div class="footer-brand">
340 <a href="/" class="logo">gluecron</a>
341 <p class="footer-tag">
8cfb00eClaude342 Git hosting with automated CI and AI code review.
958d26aClaude343 </p>
344 </div>
345 <div class="footer-links">
346 <div class="footer-col">
347 <div class="footer-col-title">Product</div>
b0148e9Claude348 <a href="/features">Features</a>
349 <a href="/pricing">Pricing</a>
9f29b65Claude350 <a href="/enterprise">Enterprise</a>
e1fc7dbClaude351 <a href="/changelog">Changelog</a>
958d26aClaude352 <a href="/explore">Explore</a>
353 <a href="/marketplace">Marketplace</a>
adf5e18Claude354 <a href="/developer-program">Developer Program</a>
958d26aClaude355 </div>
356 <div class="footer-col">
357 <div class="footer-col-title">Platform</div>
e0e4219Claude358 <a href="/docs">Docs</a>
b0148e9Claude359 <a href="/help">Quickstart</a>
958d26aClaude360 <a href="/status">Status</a>
361 <a href="/api/graphql">GraphQL</a>
362 <a href="/mcp">MCP server</a>
363 </div>
364 <div class="footer-col">
b0148e9Claude365 <div class="footer-col-title">Company</div>
366 <a href="/about">About</a>
3122762Claude367 <a href="/blog">Blog</a>
958d26aClaude368 <a href="/terms">Terms</a>
369 <a href="/privacy">Privacy</a>
370 <a href="/acceptable-use">Acceptable use</a>
371 </div>
372 </div>
373 </div>
374 <div class="footer-bottom">
375 <span>&copy; {new Date().getFullYear()} gluecron</span>
05cdb85Claude376 <span class="footer-build" title={`commit ${build.shaFull}\nbuilt ${build.builtAt}`}>
377 <span class="footer-build-dot" aria-hidden="true" />
378 {build.sha} · {build.branch}
379 </span>
36b4cbdClaude380 </div>
c63b860Claude381 {siteBannerText ? (
382 <div
383 class={`footer-banner footer-banner-${siteBannerLevel || "info"}`}
384 role="status"
385 aria-live="polite"
386 >
387 {siteBannerText}
388 </div>
389 ) : null}
fc1817aClaude390 </footer>
05cdb85Claude391 {/* Live update poller — checks /api/version every 15s, prompts
392 reload when the running sha changes. Pure progressive-
393 enhancement; degrades to nothing if JS is off. */}
394 <div
395 id="version-banner"
479dcd9Claude396 style="display:none;position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:9999;background:var(--bg-elevated);border:1px solid rgba(91,110,232,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);font-family:var(--font-sans);align-items:center;gap:10px"
05cdb85Claude397 >
398 <span style="display:inline-flex;align-items:center;gap:8px">
479dcd9Claude399 <span style="width:8px;height:8px;border-radius:50%;background:#34d399" />
05cdb85Claude400 <span>New version available</span>
401 </span>
402 <button
403 type="button"
404 id="version-banner-reload"
479dcd9Claude405 style="background:var(--accent);color:#fff;border:0;border-radius:9999px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit"
05cdb85Claude406 >
407 Reload
408 </button>
409 </div>
fa880f2Claude410 <script dangerouslySetInnerHTML={{ __html: versionPollerScript }} />
f764c07Claude411 {/* Block N3 — site-admin deploy status pill (script-only). The pill
412 container is rendered above for authed users; this script bootstraps
413 it by fetching /admin/deploys/latest.json. Non-admins get 401/403
414 and the pill stays display:none — zero leak. */}
415 {user && (
416 <script dangerouslySetInnerHTML={{ __html: deployPillScript }} />
417 )}
699e5c7Claude418 {/* Block I4 — Command palette shell (hidden by default) */}
419 <div
420 id="cmdk-backdrop"
421 style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9998"
422 />
423 <div
424 id="cmdk-panel"
425 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"
426 >
427 <input
428 id="cmdk-input"
429 type="text"
430 placeholder="Type a command..."
431 aria-label="Command palette"
dc26881CC LABS App432 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"
699e5c7Claude433 />
434 <div id="cmdk-list" style="max-height:60vh;overflow-y:auto" />
435 </div>
fa880f2Claude436 <script dangerouslySetInnerHTML={{ __html: clientJs }} />
44fe49bClaude437 {/* PWA-kill script: actively unregisters any service worker
438 previously installed under gluecron.com. Recovers any browser
439 still trapped in the SW reload loop from the legacy registrations. */}
440 <script dangerouslySetInnerHTML={{ __html: pwaKillSwitchScript }} />
cf9178bTest User441 <script dangerouslySetInnerHTML={{ __html: toastScript }} />
fa880f2Claude442 <script dangerouslySetInnerHTML={{ __html: navScript }} />
c6018a5Claude443 <script dangerouslySetInnerHTML={{ __html: navAiDropdownScript }} />
b7ecb14Claude444 {/* Bell badge poller — only rendered for authenticated users.
445 Polls /api/notifications/count every 60 s and updates the badge
446 on the inbox bell icon. Falls back gracefully if the endpoint is
447 unavailable or the user signs out mid-session. */}
448 {user && (
449 <script dangerouslySetInnerHTML={{ __html: bellPollerScript }} />
450 )}
fc1817aClaude451 </body>
452 </html>
453 );
454};
455
05cdb85Claude456// Live version poller. Checks /api/version every 15s; if the sha differs
457// from the one we booted with, reveal the floating 'New version' pill so
458// the user can reload onto the new code without manually refreshing.
459const versionPollerScript = `
460 (function(){
461 var loadedSha = null;
462 var banner, btn;
463 function poll(){
464 fetch('/api/version', { cache: 'no-store' })
465 .then(function(r){ return r.ok ? r.json() : null; })
466 .then(function(j){
467 if (!j || !j.sha) return;
468 if (loadedSha === null) { loadedSha = j.sha; return; }
469 if (j.sha !== loadedSha && banner) {
470 banner.style.display = 'inline-flex';
471 }
472 })
473 .catch(function(){});
474 }
475 function init(){
476 banner = document.getElementById('version-banner');
477 btn = document.getElementById('version-banner-reload');
478 if (btn) btn.addEventListener('click', function(){ window.location.reload(); });
479 poll();
480 setInterval(poll, 15000);
481 }
482 if (document.readyState === 'loading') {
483 document.addEventListener('DOMContentLoaded', init);
484 } else {
485 init();
486 }
487 })();
488`;
489
f764c07Claude490// Block N3 — site-admin deploy status pill. Fetches /admin/deploys/latest.json;
491// if 200, reveals the pill in the nav and subscribes to the `platform:deploys`
492// SSE topic for live status updates. Non-admins get 401/403 and the pill stays
493// display:none — there's no leakage of admin-only data to other users.
494//
495// Pill states (CSS classes on the container drive colour):
496// .deploy-pill-success 🟢 "Deployed 12s ago"
497// .deploy-pill-progress 🟡 "Deploying… 14s" (pulsing dot)
498// .deploy-pill-failed 🔴 "Deploy failed 1m ago"
499// .deploy-pill-empty ⚪ "No deploys yet"
500//
501// Relative-time auto-refreshes every 15s without re-fetching.
502export const deployPillScript = `
503 (function(){
504 var pill, dot, text;
505 var state = { latest: null, asOf: null };
506
507 function classifyAge(ms){
508 if (ms < 0) return 'just now';
509 var s = Math.floor(ms / 1000);
510 if (s < 5) return 'just now';
511 if (s < 60) return s + 's ago';
512 var m = Math.floor(s / 60);
513 if (m < 60) return m + 'm ago';
514 var h = Math.floor(m / 60);
515 if (h < 24) return h + 'h ago';
516 var d = Math.floor(h / 24);
517 return d + 'd ago';
518 }
519 function elapsed(ms){
520 if (ms < 0) ms = 0;
521 var s = Math.floor(ms / 1000);
522 if (s < 60) return s + 's';
523 var m = Math.floor(s / 60);
524 var rem = s - m * 60;
525 return m + 'm ' + rem + 's';
526 }
527
528 function render(){
529 if (!pill || !text || !dot) return;
530 var d = state.latest;
81201ccTest User531 // When there's no deploy event yet, keep the pill HIDDEN. Showing
532 // "No deploys yet" was visible noise on every admin page load and
533 // flashed during reconnect cycles — admins don't need a placeholder.
534 // The pill reveals itself the first time a real deploy fires.
f764c07Claude535 if (!d) {
81201ccTest User536 pill.style.display = 'none';
f764c07Claude537 return;
538 }
539 pill.style.display = 'inline-flex';
540 var now = Date.now();
541 if (d.status === 'in_progress') {
542 pill.className = 'nav-deploy-pill deploy-pill-progress';
543 var started = Date.parse(d.started_at) || now;
544 text.textContent = 'Deploying… ' + elapsed(now - started);
545 } else if (d.status === 'succeeded') {
546 pill.className = 'nav-deploy-pill deploy-pill-success';
547 var ref = Date.parse(d.finished_at || d.started_at) || now;
548 text.textContent = 'Deployed ' + classifyAge(now - ref);
549 } else if (d.status === 'failed') {
550 pill.className = 'nav-deploy-pill deploy-pill-failed';
551 var refF = Date.parse(d.finished_at || d.started_at) || now;
552 text.textContent = 'Deploy failed ' + classifyAge(now - refF);
553 } else {
554 pill.className = 'nav-deploy-pill';
555 text.textContent = d.status;
556 }
557 }
558
559 function fetchLatest(){
560 fetch('/admin/deploys/latest.json', { cache: 'no-store', credentials: 'same-origin' })
561 .then(function(r){ if (!r.ok) return null; return r.json(); })
562 .then(function(j){
563 if (!j || j.ok !== true) return;
564 state.latest = j.latest;
565 state.asOf = j.asOf;
566 render();
567 subscribe();
568 })
569 .catch(function(){});
570 }
571
572 var subscribed = false;
573 function subscribe(){
574 if (subscribed) return;
575 if (typeof EventSource === 'undefined') return;
576 subscribed = true;
577 var es;
bf19c50Test User578 // Exponential backoff with cap. Previously a tight 1500ms reconnect
579 // produced visible looping in the nav whenever the proxy timed out
580 // or the connection blipped — the bottom-of-page deploy pill
581 // re-rendered the placeholder every 1.5s. Cap at 60s and reset on
582 // successful message receipt.
583 var delay = 2000;
584 var DELAY_MAX = 60000;
585 function bump(){
586 delay = Math.min(delay * 2, DELAY_MAX);
587 }
588 function resetDelay(){
589 delay = 2000;
590 }
f764c07Claude591 function connect(){
592 try { es = new EventSource('/live-events/platform:deploys'); }
bf19c50Test User593 catch(e){ bump(); setTimeout(connect, delay); return; }
f764c07Claude594 es.onmessage = function(m){
bf19c50Test User595 resetDelay();
f764c07Claude596 try {
597 var d = JSON.parse(m.data);
598 if (d && d.run_id) {
599 if (!state.latest || state.latest.run_id === d.run_id ||
600 Date.parse(d.started_at) >= Date.parse(state.latest.started_at)) {
601 state.latest = d;
602 render();
603 }
604 }
605 } catch(e){}
606 };
607 es.onerror = function(){
608 try { es.close(); } catch(e){}
bf19c50Test User609 bump();
f764c07Claude610 setTimeout(connect, delay);
611 };
612 }
613 connect();
614 }
615
616 function init(){
617 pill = document.getElementById('deploy-pill');
618 if (!pill) return;
619 dot = pill.querySelector('.deploy-pill-dot');
620 text = pill.querySelector('.deploy-pill-text');
621 fetchLatest();
622 // Refresh relative-time labels every 15s so "12s ago" → "27s ago"
623 // without a fresh fetch.
624 setInterval(render, 15000);
625 }
626 if (document.readyState === 'loading') {
627 document.addEventListener('DOMContentLoaded', init);
628 } else {
629 init();
630 }
631 })();
632`;
633
6fc53bdClaude634// Runs before paint — reads the theme cookie and flips data-theme so there's
81201ccTest User635// no light-to-dark flash on load. SSR default is "light"; cookie-set "dark"
636// is honoured for users who explicitly opted in.
6fc53bdClaude637const themeInitScript = `
638 (function(){
639 try {
640 var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
81201ccTest User641 var t = m ? decodeURIComponent(m[1]) : 'light';
642 if (t !== 'light' && t !== 'dark') t = 'light';
6fc53bdClaude643 document.documentElement.setAttribute('data-theme', t);
644 } catch(_){}
645 })();
646`;
647
eae38d1Claude648// Block G1 — register service worker for offline / install support.
649// Kept inline (and tiny) so we don't block first paint.
b1be050CC LABS App650//
cf9178bTest User651// Global toast notifications — reads ?success=, ?error=, ?toast= from the
652// URL on page load and surfaces a polished slide-in toast instead of the
653// per-page banner divs that crowded the layout. Toasts auto-dismiss after
654// 4.5s; query params are scrubbed from the URL via history.replaceState
655// so a subsequent Refresh doesn't re-fire the same toast.
656//
657// Variants: ?success=…, ?error=…, ?toast=info:…, ?toast=warn:… All values
658// must be URI-encoded (callers already do this via encodeURIComponent
659// in c.redirect()).
660const toastScript = `
661 (function(){
662 function showToast(kind, message){
663 if (!message) return;
664 var host = document.getElementById('toast-host');
665 if (!host) return;
666 var el = document.createElement('div');
667 el.className = 'gx-toast gx-toast--' + kind;
668 el.setAttribute('role', kind === 'error' ? 'alert' : 'status');
669 var icon = document.createElement('span');
670 icon.className = 'gx-toast__icon';
671 icon.textContent = kind === 'success' ? '\\u2713'
672 : kind === 'error' ? '\\u00D7'
673 : kind === 'warn' ? '!'
674 : 'i';
675 el.appendChild(icon);
676 var text = document.createElement('span');
677 text.className = 'gx-toast__text';
678 text.textContent = message;
679 el.appendChild(text);
680 var close = document.createElement('button');
681 close.type = 'button';
682 close.className = 'gx-toast__close';
683 close.setAttribute('aria-label', 'Dismiss notification');
684 close.textContent = '\\u00D7';
685 close.addEventListener('click', function(){ dismiss(); });
686 el.appendChild(close);
687 host.appendChild(el);
688 // Force a reflow then add the visible class so the slide-in transitions.
689 void el.offsetWidth;
690 el.classList.add('gx-toast--in');
691 var timer = setTimeout(dismiss, 4500);
692 function dismiss(){
693 clearTimeout(timer);
694 el.classList.remove('gx-toast--in');
695 el.classList.add('gx-toast--out');
696 setTimeout(function(){
697 if (el.parentNode) el.parentNode.removeChild(el);
698 }, 220);
699 }
700 }
701 try {
702 var url = new URL(window.location.href);
703 var hits = 0;
704 var s = url.searchParams.get('success');
705 if (s) { showToast('success', s); url.searchParams.delete('success'); hits++; }
706 var e = url.searchParams.get('error');
707 if (e) { showToast('error', e); url.searchParams.delete('error'); hits++; }
708 var t = url.searchParams.get('toast');
709 if (t) {
710 var ix = t.indexOf(':');
711 var kind = ix > 0 ? t.slice(0, ix) : 'info';
712 var msg = ix > 0 ? t.slice(ix + 1) : t;
713 showToast(kind, msg);
714 url.searchParams.delete('toast');
715 hits++;
716 }
717 if (hits > 0 && window.history && window.history.replaceState) {
718 window.history.replaceState({}, '', url.pathname + (url.searchParams.toString() ? '?' + url.searchParams.toString() : '') + url.hash);
719 }
720 } catch(_) {}
721 })();
722`;
723
44fe49bClaude724// PWA kill-switch (2026-05-16) — replaces the previous pwaRegisterScript
725// and pwaInstallBannerScript. Those two scripts registered /sw.js and
726// /sw-push.js at the same scope, causing a reload loop that made the
727// admin dashboard unusable (deploy pill flashing, typing wiped, buttons
728// uncllickable). Per the SW spec, only one SW can control a scope; two
729// different script URLs at the same scope keep replacing each other.
6345c3eTest User730//
44fe49bClaude731// PWA is gone for good. A git host has no use for service workers,
732// install-as-app, or push notifications via SW. This script actively
733// unregisters every previously installed SW on the gluecron.com origin
734// so any browser still trapped in the loop recovers on the very next
735// page load — without needing the user to clear site data or open
736// DevTools. Idempotent and safe to keep running forever; once all
737// browsers have been cleaned, it's a no-op.
738const pwaKillSwitchScript = `
534f04aClaude739(function(){
740 try {
44fe49bClaude741 if (!('serviceWorker' in navigator)) return;
742 if (!navigator.serviceWorker.getRegistrations) return;
743 navigator.serviceWorker.getRegistrations().then(function(regs){
744 if (!regs || regs.length === 0) return;
745 regs.forEach(function(reg){
746 try { reg.unregister(); } catch(_){}
747 });
748 }).catch(function(){});
749 // Also drop any caches the old SWs left behind so the user gets
750 // truly fresh HTML on every page load. Restricted to gluecron-*
751 // namespaced caches so we don't trample anything a future opt-in
752 // feature might create under a different name.
753 if ('caches' in self) {
754 caches.keys().then(function(keys){
755 keys.forEach(function(k){
756 if (typeof k === 'string' && k.indexOf('gluecron') === 0) {
757 try { caches.delete(k); } catch(_){}
d7ba05dClaude758 }
759 });
760 }).catch(function(){});
534f04aClaude761 }
762 } catch(_) {}
763})();
764`;
765
3ef4c9dClaude766const navScript = `
767 (function(){
768 var chord = null;
769 var chordTimer = null;
770 function isTyping(t){
771 t = t || {};
772 var tag = (t.tagName || '').toLowerCase();
773 return tag === 'input' || tag === 'textarea' || t.isContentEditable;
774 }
71cd5ecClaude775
776 // ---------- Block I4 — Command palette ----------
777 var COMMANDS = [
778 { label: 'Go to Dashboard', href: '/dashboard', kw: 'home' },
779 { label: 'Go to Explore', href: '/explore', kw: 'browse discover' },
780 { label: 'Go to Notifications', href: '/notifications', kw: 'inbox' },
781 { label: 'Go to Ask AI', href: '/ask', kw: 'chat assistant' },
782 { label: 'Create new repository', href: '/new', kw: 'add create' },
783 { label: 'Marketplace', href: '/marketplace', kw: 'apps store' },
784 { label: 'Installed apps', href: '/settings/apps', kw: 'my apps' },
785 { label: 'Register new app', href: '/developer/apps-new', kw: 'developer create' },
786 { label: 'Keyboard shortcuts', href: '/shortcuts', kw: 'help keys' },
787 { label: 'Settings (profile)', href: '/settings', kw: 'account' },
788 { label: '2FA settings', href: '/settings/2fa', kw: 'two factor security' },
789 { label: 'Passkeys settings', href: '/settings/passkeys', kw: 'webauthn' },
790 { label: 'Personal access tokens', href: '/settings/tokens', kw: 'pat api' },
791 { label: 'Billing + quotas', href: '/settings/billing', kw: 'plans money' },
8809b87Claude792 { label: 'AI usage + cost', href: '/billing/usage', kw: 'spend tokens anthropic budget' },
71cd5ecClaude793 { label: 'Audit log (personal)', href: '/settings/audit', kw: 'history' },
794 { label: 'Gists', href: '/gists', kw: 'snippets' },
795 { label: 'GraphQL explorer', href: '/api/graphql', kw: 'api query' },
796 { label: 'Admin dashboard', href: '/admin', kw: 'superuser' },
797 { label: 'Toggle theme', href: '/theme/toggle', kw: 'dark light mode' }
798 ];
799
800 function fuzzyMatch(item, q){
801 if (!q) return true;
802 var hay = (item.label + ' ' + (item.kw||'') + ' ' + item.href).toLowerCase();
803 q = q.toLowerCase();
804 var qi = 0;
805 for (var i = 0; i < hay.length && qi < q.length; i++) {
806 if (hay[i] === q[qi]) qi++;
807 }
808 return qi === q.length;
809 }
810
811 var backdrop, panel, input, list, selected = 0, filtered = COMMANDS.slice();
812
813 function render(){
814 if (!list) return;
815 var html = '';
816 for (var i = 0; i < filtered.length; i++) {
817 var item = filtered[i];
818 var cls = i === selected ? 'cmdk-item cmdk-active' : 'cmdk-item';
819 var bg = i === selected ? 'background:var(--bg);' : '';
ea52715copilot-swe-agent[bot]820 html += '<div class="' + cls + '" data-idx="' + i + '" data-url="' + item.href + '"' +
dc26881CC LABS App821 ' style="padding:var(--space-2) var(--space-4);cursor:pointer;border-bottom:1px solid var(--border);' + bg + '">' +
71cd5ecClaude822 '<div>' + item.label + '</div>' +
823 '<div style="font-size:11px;color:var(--text-muted)">' + item.href + '</div>' +
824 '</div>';
825 }
826 if (filtered.length === 0) {
dc26881CC LABS App827 html = '<div style="padding:var(--space-4);color:var(--text-muted);text-align:center">No matches.</div>';
71cd5ecClaude828 }
829 list.innerHTML = html;
830 }
831
641aa42Claude832 function getAllCommands(){
833 // Merge global COMMANDS with repo-context commands injected by repo pages.
834 var extra = (window.__CMDK_REPO_COMMANDS && Array.isArray(window.__CMDK_REPO_COMMANDS))
835 ? window.__CMDK_REPO_COMMANDS : [];
836 return COMMANDS.concat(extra);
837 }
838
71cd5ecClaude839 function openPalette(){
840 backdrop = document.getElementById('cmdk-backdrop');
841 panel = document.getElementById('cmdk-panel');
842 input = document.getElementById('cmdk-input');
843 list = document.getElementById('cmdk-list');
844 if (!backdrop || !panel) return;
845 backdrop.style.display = 'block';
846 panel.style.display = 'block';
847 input.value = '';
848 selected = 0;
641aa42Claude849 filtered = getAllCommands();
71cd5ecClaude850 render();
851 input.focus();
852 }
853 function closePalette(){
854 if (backdrop) backdrop.style.display = 'none';
855 if (panel) panel.style.display = 'none';
856 }
857 function go(href){ closePalette(); window.location.href = href; }
858
859 document.addEventListener('click', function(e){
860 var t = e.target;
861 if (t && t.id === 'cmdk-backdrop') { closePalette(); return; }
862 var item = t && t.closest && t.closest('.cmdk-item');
ea52715copilot-swe-agent[bot]863 if (item) { go(item.getAttribute('data-url')); }
71cd5ecClaude864 });
865
866 document.addEventListener('input', function(e){
867 if (e.target && e.target.id === 'cmdk-input') {
868 var q = e.target.value;
641aa42Claude869 filtered = getAllCommands().filter(function(c){ return fuzzyMatch(c, q); });
71cd5ecClaude870 selected = 0;
871 render();
872 }
873 });
874
3ef4c9dClaude875 document.addEventListener('keydown', function(e){
71cd5ecClaude876 // Palette-scoped keys take priority when open
877 if (panel && panel.style.display === 'block') {
878 if (e.key === 'Escape') { e.preventDefault(); closePalette(); return; }
879 if (e.key === 'ArrowDown') {
880 e.preventDefault();
881 selected = Math.min(filtered.length - 1, selected + 1);
882 render();
883 return;
884 }
885 if (e.key === 'ArrowUp') {
886 e.preventDefault();
887 selected = Math.max(0, selected - 1);
888 render();
889 return;
890 }
891 if (e.key === 'Enter') {
892 e.preventDefault();
893 var item = filtered[selected];
894 if (item) go(item.href);
895 return;
896 }
897 return;
898 }
899
3ef4c9dClaude900 if (isTyping(e.target)) return;
901 // Single key shortcuts
902 if (e.key === '/') {
903 var el = document.querySelector('.nav-search input');
904 if (el) { e.preventDefault(); el.focus(); return; }
905 }
906 if ((e.metaKey||e.ctrlKey) && e.key.toLowerCase() === 'k') {
71cd5ecClaude907 e.preventDefault();
908 openPalette();
909 return;
3ef4c9dClaude910 }
911 if (e.key === '?' && !e.ctrlKey && !e.metaKey) {
912 e.preventDefault(); window.location.href = '/shortcuts'; return;
913 }
914 if (e.key === 'n' && !e.ctrlKey && !e.metaKey) {
641aa42Claude915 // Start 'n' chord — wait 1.2s for next key (i → issue, p → PR).
916 // If no second key arrives, navigate to /new (create repo).
917 chord = 'n';
918 clearTimeout(chordTimer);
919 chordTimer = setTimeout(function(){
920 if (chord === 'n') { window.location.href = '/new'; }
921 chord = null;
922 }, 1200);
923 return;
3ef4c9dClaude924 }
925 // "g" chord
926 if (e.key === 'g' && !e.ctrlKey && !e.metaKey) {
927 chord = 'g';
928 clearTimeout(chordTimer);
929 chordTimer = setTimeout(function(){ chord = null; }, 1200);
930 return;
931 }
932 if (chord === 'g') {
933 if (e.key === 'd') { e.preventDefault(); window.location.href = '/dashboard'; }
934 else if (e.key === 'n') { e.preventDefault(); window.location.href = '/notifications'; }
935 else if (e.key === 'e') { e.preventDefault(); window.location.href = '/explore'; }
936 else if (e.key === 'a') { e.preventDefault(); window.location.href = '/ask'; }
937 chord = null;
938 }
641aa42Claude939 // "n" chord — new issue / new PR (repo-context-aware)
940 if (chord === 'n') {
941 var repoCtx = window.__CMDK_REPO_COMMANDS;
942 var newIssuePath = repoCtx && repoCtx.length ? repoCtx[0].href.replace('/issues/new', '/issues/new') : null;
943 // Find the "new issue" and "new PR" hrefs from repo context commands
944 var issueCmd = repoCtx && repoCtx.find(function(c){ return c.href && c.href.indexOf('/issues/new') !== -1; });
945 var prCmd = repoCtx && repoCtx.find(function(c){ return c.href && c.href.indexOf('/pulls/new') !== -1; });
946 if (e.key === 'i' && issueCmd) {
947 e.preventDefault(); clearTimeout(chordTimer); chord = null;
948 window.location.href = issueCmd.href; return;
949 }
950 if (e.key === 'p' && prCmd) {
951 e.preventDefault(); clearTimeout(chordTimer); chord = null;
952 window.location.href = prCmd.href; return;
953 }
954 }
5882af3Claude955 // j/k list navigation — move through .prs-row, .issue-row, .notif-item rows
956 if (e.key === 'j' || e.key === 'k') {
957 var selectors = '.prs-row, .issue-row, .issue-list-item, .notif-item, .repo-item, .exp-repo-card, .disc-row';
958 var items = Array.from(document.querySelectorAll(selectors));
959 if (items.length === 0) return;
960 e.preventDefault();
961 var cur = items.findIndex(function(el){ return el.classList.contains('is-kbd-focus'); });
962 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));
963 items.forEach(function(el){ el.classList.remove('is-kbd-focus'); });
964 items[next].classList.add('is-kbd-focus');
965 items[next].scrollIntoView({ block: 'nearest' });
966 return;
967 }
968 if (e.key === 'Enter') {
969 var focused = document.querySelector('.is-kbd-focus');
970 if (focused) {
971 e.preventDefault();
972 var link = focused.tagName === 'A' ? focused : focused.querySelector('a');
973 if (link && link.href) { window.location.href = link.href; }
974 return;
975 }
976 }
977 if (e.key === 'x') {
978 // 'x' selects/deselects focused item (future: bulk actions)
979 var sel = document.querySelector('.is-kbd-focus');
980 if (sel) { e.preventDefault(); sel.classList.toggle('is-kbd-selected'); return; }
981 }
3ef4c9dClaude982 });
983 })();
984`;
985
b7ecb14Claude986// Bell poller — updates the inbox badge count every 60 s via /api/notifications/count.
987// Only injected when a user is logged in (checked in the JSX above). Uses the
988// `.nav-inbox-badge` element that the server renders inside `.nav-inbox-btn`.
989// If the badge element is absent (user not logged in, DOM mismatch) it exits
990// cleanly without error.
991export const bellPollerScript = `
992(function() {
993 var badge = document.querySelector('.nav-inbox-btn .nav-inbox-badge');
994 var btn = document.querySelector('.nav-inbox-btn');
995 function updateBadge(n) {
996 if (!btn) return;
997 if (n > 0) {
998 var label = n > 99 ? '99+' : String(n);
999 if (!badge) {
1000 badge = document.createElement('span');
1001 badge.className = 'nav-inbox-badge';
1002 badge.setAttribute('aria-hidden', 'true');
1003 btn.appendChild(badge);
1004 }
1005 badge.textContent = label;
1006 badge.style.display = '';
1007 btn.setAttribute('aria-label', 'Inbox — ' + n + ' unread');
1008 } else {
1009 if (badge) badge.style.display = 'none';
1010 btn.setAttribute('aria-label', 'Inbox');
1011 }
1012 }
1013 function poll() {
1014 fetch('/api/notifications/count', { credentials: 'same-origin', cache: 'no-store' })
1015 .then(function(r) { return r.ok ? r.json() : null; })
1016 .then(function(d) {
1017 if (!d) return;
1018 var n = typeof d.unread === 'number' ? d.unread : (typeof d.count === 'number' ? d.count : 0);
1019 updateBadge(n);
1020 })
1021 .catch(function() {});
1022 }
1023 if (document.readyState === 'loading') {
1024 document.addEventListener('DOMContentLoaded', function() { poll(); setInterval(poll, 60000); });
1025 } else {
1026 poll();
1027 setInterval(poll, 60000);
1028 }
1029})();
1030`;
1031
c6018a5Claude1032// AI dropdown — keyboard- and click-accessible menu in the top nav.
1033// CSS handles the hover-open behaviour for pointer users; this script
1034// adds click-to-toggle for touch, Escape-to-close, and outside-click-
1035// to-close. Lives in its own IIFE so it never interferes with navScript.
1036const navAiDropdownScript = `
1037 (function(){
f5b9ef5Claude1038 function makeDropdown(rootSel, triggerSel, menuSel) {
1039 var open = false;
1040 var root = document.querySelector(rootSel);
1041 if (!root) return;
1042 var trigger = root.querySelector(triggerSel);
1043 var menu = root.querySelector(menuSel);
1044 if (!trigger || !menu) return;
1045 function setOpen(next){
1046 open = !!next;
1047 root.classList.toggle('is-open', open);
1048 menu.classList.toggle('is-open', open);
1049 trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
1050 }
1051 trigger.addEventListener('click', function(e){ e.preventDefault(); setOpen(!open); });
1052 document.addEventListener('click', function(e){
1053 if (!open) return;
1054 if (root.contains(e.target)) return;
1055 setOpen(false);
1056 });
1057 document.addEventListener('keydown', function(e){
1058 if (open && e.key === 'Escape') { e.preventDefault(); setOpen(false); trigger.focus(); }
1059 });
c6018a5Claude1060 }
f5b9ef5Claude1061 makeDropdown('[data-nav-ai]', '[data-nav-ai-trigger]', '[data-nav-ai-menu]');
1062 makeDropdown('[data-nav-user]', '[data-nav-user-trigger]', '[data-nav-user-menu]');
c6018a5Claude1063 })();
1064`;
1065
fc1817aClaude1066const css = `
2ce1d0bClaude1067 /* ================================================================
479dcd9Claude1068 * Gluecron design system — 2026.06 "Calm Infrastructure"
1069 * Slate base · single calm indigo accent · hairline geometry ·
1070 * mono-as-feature · restrained motion · Inter Tight + JetBrains Mono.
1071 * Visual language targets trustworthy developer infrastructure
1072 * (GitHub / Linear / Stripe), not neon sci-fi. All class names and
1073 * token names preserved for back-compat across 50+ route views —
1074 * legacy tokens (e.g. --accent-glow, --accent-gradient) remain
1075 * defined as calm aliases so scattered users keep working.
2ce1d0bClaude1076 * ============================================================== */
6fc53bdClaude1077 :root, :root[data-theme='dark'] {
ba23fe2Claude1078 /* Surfaces — GitHub-calibrated slate. Readable, warm, never black-void. */
1079 --bg: #0d1117;
1080 --bg-secondary: #161b22;
1081 --bg-tertiary: #1c2128;
1082 --bg-elevated: #161b22;
1083 --bg-surface: #21262d;
1084 --bg-hover: rgba(255,255,255,0.05);
1085 --bg-active: rgba(255,255,255,0.09);
1086 --bg-inset: rgba(0,0,0,0.25);
958d26aClaude1087
1088 /* Borders — three weights, used deliberately */
1089 --border: rgba(255,255,255,0.06);
1090 --border-subtle: rgba(255,255,255,0.035);
1091 --border-strong: rgba(255,255,255,0.13);
479dcd9Claude1092 --border-focus: rgba(91,110,232,0.55);
958d26aClaude1093
1094 /* Text */
1095 --text: #ededf2;
1096 --text-strong: #f7f7fb;
1097 --text-muted: #8b8c9c;
1098 --text-faint: #555665;
479dcd9Claude1099 --text-link: #9aa8ef;
1100
1101 /* Accent — single calm indigo. --accent-2 is a desaturated
1102 slate-teal kept only for the rare secondary signal; the old
1103 electric cyan pairing is gone. Gradient tokens survive as
1104 near-flat two-stops so existing gradient consumers render as
1105 a quiet single hue. --accent-glow is now a faint 1px ring. */
1106 --accent: #5b6ee8;
1107 --accent-2: #5f8fa0;
1108 --accent-warm: #d9a662;
1109 --accent-hover: #7585ee;
1110 --accent-pressed:#4a5ad1;
1111 --accent-gradient: linear-gradient(135deg, #5b6ee8 0%, #5365dd 100%);
1112 --accent-gradient-soft: linear-gradient(135deg, rgba(91,110,232,0.14) 0%, rgba(83,101,221,0.14) 100%);
1113 --accent-gradient-faint: linear-gradient(135deg, rgba(91,110,232,0.06) 0%, rgba(83,101,221,0.06) 100%);
1114 --accent-glow: 0 0 0 1px rgba(91,110,232,0.22);
958d26aClaude1115
1116 /* Semantic */
1117 --green: #34d399;
1118 --red: #f87171;
1119 --yellow: #fbbf24;
1120 --amber: #fbbf24;
1121 --blue: #60a5fa;
1122
3a5755eClaude1123 /* Type — 2026 polish pass. Inter is the primary sans, Inter Tight for
1124 display (headlines), JetBrains Mono for code. All three loaded from
1125 Google Fonts with display:swap so we never block first paint. System
1126 fallbacks remain in place — if the CDN is unreachable the site still
1127 renders cleanly with Segoe UI (Win) / SF (Mac) / Roboto (Android). */
1128 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Cascadia Mono', Menlo, Consolas, 'Courier New', monospace;
1129 --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
1130 --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
958d26aClaude1131 --mono-feat: 'calt', 'liga', 'ss01';
1132
1133 /* Radius — sharper than before */
1134 --r-sm: 5px;
1135 --r: 7px;
1136 --r-md: 9px;
1137 --r-lg: 12px;
1138 --r-xl: 16px;
1139 --r-2xl: 22px;
1140 --r-full: 9999px;
1141 --radius: 7px;
1142
1143 /* Type scale — bigger display sizes for editorial feel */
1144 --t-xs: 11px;
1145 --t-sm: 13px;
1146 --t-base: 14px;
1147 --t-md: 16px;
1148 --t-lg: 20px;
1149 --t-xl: 28px;
1150 --t-2xl: 40px;
1151 --t-3xl: 56px;
1152 --t-display: 72px;
1153 --t-display-lg:96px;
1154
1155 /* Spacing — 4px base */
2ce1d0bClaude1156 --s-0: 0;
958d26aClaude1157 --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
1158 --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
1159 --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
1160 --s-20:80px; --s-24:96px; --s-32:128px;
1161
1162 /* Elevation — softer + more layered */
1163 --elev-0: 0 0 0 1px var(--border);
1164 --elev-1: 0 1px 2px rgba(0,0,0,0.50), 0 0 0 1px var(--border);
1165 --elev-2: 0 8px 24px -8px rgba(0,0,0,0.60), 0 0 0 1px var(--border);
1166 --elev-3: 0 20px 48px -12px rgba(0,0,0,0.70), 0 0 0 1px var(--border-strong);
479dcd9Claude1167 --elev-glow: 0 0 0 1px rgba(91,110,232,0.32);
1168 --ring: 0 0 0 3px rgba(91,110,232,0.28);
958d26aClaude1169 --ring-warn: 0 0 0 3px rgba(251,191,36,0.28);
1170 --ring-err: 0 0 0 3px rgba(248,113,113,0.28);
1171
1172 /* Motion */
1173 --ease: cubic-bezier(0.16, 1, 0.3, 1);
1174 --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
1175 --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
1176 --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
1177 --t-fast: 120ms;
e589f77ccantynz-alt1178 --dur-base: 200ms;
958d26aClaude1179 --t-slow: 360ms;
1180 --t-slower:560ms;
1181
1182 --header-h: 60px;
c63b860Claude1183
1184 /* Block O3 — visual coherence: named token aliases (additive). */
1185 --space-1: var(--s-1);
1186 --space-2: var(--s-2);
1187 --space-3: var(--s-3);
1188 --space-4: var(--s-4);
1189 --space-5: var(--s-5);
1190 --space-6: var(--s-6);
1191 --space-8: var(--s-8);
1192 --space-10: var(--s-10);
1193 --space-12: var(--s-12);
1194 --space-16: var(--s-16);
1195 --space-20: var(--s-20);
1196 --space-24: var(--s-24);
1197 --radius-sm: var(--r-sm);
1198 --radius-md: var(--r-md);
1199 --radius-lg: var(--r-lg);
1200 --radius-xl: var(--r-xl);
1201 --radius-full: var(--r-full);
1202 --font-size-xs: var(--t-xs);
1203 --font-size-sm: var(--t-sm);
1204 --font-size-base: var(--t-base);
1205 --font-size-md: var(--t-md);
1206 --font-size-lg: var(--t-lg);
1207 --font-size-xl: var(--t-xl);
1208 --font-size-2xl: var(--t-2xl);
1209 --font-size-3xl: var(--t-3xl);
1210 --font-size-hero: var(--t-display);
1211 --leading-tight: 1.2;
1212 --leading-snug: 1.35;
1213 --leading-normal: 1.5;
1214 --leading-relaxed: 1.6;
1215 --leading-loose: 1.7;
1216 --z-base: 1;
1217 --z-nav: 10;
1218 --z-sticky: 50;
1219 --z-overlay: 100;
1220 --z-modal: 1000;
1221 --z-toast: 10000;
fc1817aClaude1222 }
1223
6fc53bdClaude1224 :root[data-theme='light'] {
2fd463bccanty labs1225 /* Quiet Intelligence palette — calm editorial light, calibrated
1226 alongside Linear / Vercel / Stripe. page #fcfcfd, ink #16181d,
1227 single indigo accent #4353c9 reserved for links/active states;
1228 primary actions are ink, not indigo (see .btn-primary override). */
1229 --bg: #fcfcfd;
4c47454Claude1230 --bg-secondary: #ffffff;
958d26aClaude1231 --bg-tertiary: #f3f3f6;
1232 --bg-elevated: #ffffff;
1233 --bg-surface: #f6f6f9;
1234 --bg-hover: rgba(0,0,0,0.035);
1235 --bg-active: rgba(0,0,0,0.07);
1236 --bg-inset: rgba(0,0,0,0.04);
1237
2fd463bccanty labs1238 --border: rgba(22,24,29,0.08);
1239 --border-subtle: rgba(22,24,29,0.04);
1240 --border-strong: rgba(22,24,29,0.16);
958d26aClaude1241
2fd463bccanty labs1242 --text: #16181d;
1243 --text-strong: #0f1116;
1244 --text-muted: #565863;
1245 --text-faint: #868894;
479dcd9Claude1246 --text-link: #4353c9;
958d26aClaude1247
479dcd9Claude1248 --accent: #4353c9;
1249 --accent-2: #41707e;
1250 --accent-hover: #3848b6;
1251 --accent-pressed:#2e3c9d;
1252 --accent-glow: 0 0 0 1px rgba(67,83,201,0.15);
1253 --border-focus: rgba(67,83,201,0.50);
1254 --ring: 0 0 0 3px rgba(67,83,201,0.20);
958d26aClaude1255
2fd463bccanty labs1256 --green: #1e7f5c;
1257 --red: #c0362c;
1258 --yellow: #b45309;
958d26aClaude1259
2fd463bccanty labs1260 --elev-1: 0 1px 2px rgba(22,24,29,0.06), 0 0 0 1px var(--border);
1261 --elev-2: 0 8px 24px -10px rgba(22,24,29,0.10), 0 0 0 1px var(--border);
1262 --elev-3: 0 20px 48px -16px rgba(22,24,29,0.14), 0 0 0 1px var(--border-strong);
6fc53bdClaude1263 }
1264
1265 /* Theme toggle — show the icon for the *opposite* theme so users see what they'll switch to. */
958d26aClaude1266 .nav-theme { display: inline-flex; align-items: center; font-size: 15px; line-height: 1; opacity: 0.85; }
1267 .nav-theme:hover { opacity: 1; }
6fc53bdClaude1268 :root[data-theme='dark'] .theme-icon-dark { display: none; }
1269 :root[data-theme='light'] .theme-icon-light { display: none; }
1270
fc1817aClaude1271 * { margin: 0; padding: 0; box-sizing: border-box; }
479dcd9Claude1272 *::selection { background: rgba(91,110,232,0.32); color: var(--text-strong); }
2ce1d0bClaude1273
958d26aClaude1274 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
fc1817aClaude1275
1276 body {
1277 font-family: var(--font-sans);
1278 background: var(--bg);
1279 color: var(--text);
cf9178bTest User1280 font-size: 15px;
2ce1d0bClaude1281 line-height: 1.55;
958d26aClaude1282 letter-spacing: -0.011em;
fc1817aClaude1283 min-height: 100vh;
1284 display: flex;
1285 flex-direction: column;
958d26aClaude1286 font-feature-settings: 'cv11', 'ss01', 'ss03', 'calt';
cf9178bTest User1287 /* Subtle: prefers grayscale font smoothing on macOS for thin text,
1288 and disables automatic synthesis of bold/italic which can produce
1289 muddier rendering on certain weights. */
1290 -webkit-font-smoothing: antialiased;
1291 -moz-osx-font-smoothing: grayscale;
1292 font-synthesis: none;
1293 }
e589f77ccantynz-alt1294 /* Heading scale — confident, editorial, tight tracking. Single
1295 source of truth (token-based); the older hardcoded-px block that
1296 preceded this was fully overridden (dead) and has been folded in
1297 here, carrying over only its unique margin-top: 0. */
cf9178bTest User1298 h1, h2, h3, h4, h5, h6 {
1299 font-family: var(--font-display);
e589f77ccantynz-alt1300 font-weight: 600;
cf9178bTest User1301 letter-spacing: -0.022em;
1302 line-height: 1.18;
e589f77ccantynz-alt1303 color: var(--text-strong);
cf9178bTest User1304 margin-top: 0;
1305 }
e589f77ccantynz-alt1306 h1 { font-size: var(--t-xl); letter-spacing: -0.028em; }
1307 h2 { font-size: var(--t-lg); letter-spacing: -0.022em; }
1308 h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; }
1309 h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
1310 h5, h6 { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.005em; }
1311
1312 /* Link refinement — single collapsed rule. The earlier duplicate
1313 a{}/a:hover (underline on hover) was overridden by the later
1314 a:hover (no underline), which wins and is kept here. */
cf9178bTest User1315 a { color: var(--text-link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
e589f77ccantynz-alt1316 a:hover { color: var(--accent-hover); text-decoration: none; }
cf9178bTest User1317 a:focus-visible {
1318 outline: none;
479dcd9Claude1319 box-shadow: 0 0 0 3px rgba(91,110,232,0.32);
cf9178bTest User1320 border-radius: 3px;
fc1817aClaude1321 }
1322
ba23fe2Claude1323 /* No full-page atmosphere overlay — clean backgrounds signal trustworthy
1324 infrastructure. Effects live on pages that earn them (landing hero only). */
2ce1d0bClaude1325
958d26aClaude1326 /* Editorial display heading utility — used by landing + marketing pages */
1327 .display {
1328 font-family: var(--font-display);
1329 font-size: clamp(40px, 7.5vw, 96px);
1330 line-height: 0.98;
1331 letter-spacing: -0.04em;
1332 font-weight: 600;
1333 color: var(--text-strong);
2ce1d0bClaude1334 }
fc1817aClaude1335
958d26aClaude1336 /* Eyebrow — uppercase mono label that sits above section headings */
1337 .eyebrow {
1338 display: inline-flex;
1339 align-items: center;
1340 gap: 8px;
1341 font-family: var(--font-mono);
1342 font-size: 11px;
1343 font-weight: 500;
1344 letter-spacing: 0.14em;
1345 text-transform: uppercase;
1346 color: var(--accent);
1347 margin-bottom: var(--s-3);
1348 }
1349 .eyebrow::before {
1350 content: '';
1351 width: 18px;
1352 height: 1px;
1353 background: currentColor;
1354 opacity: 0.6;
1355 }
1356
1357 /* Section header — paired eyebrow + title + lede */
1358 .section-header { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
1359 .section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
1360 .section-header h2 {
1361 font-size: clamp(28px, 4vw, 44px);
1362 line-height: 1.05;
1363 letter-spacing: -0.028em;
1364 margin-bottom: var(--s-3);
1365 }
1366 .section-header p {
1367 color: var(--text-muted);
1368 font-size: var(--t-md);
1369 line-height: 1.6;
1370 max-width: 580px;
1371 margin: 0 auto;
1372 }
1373 .section-header.left p { margin-left: 0; }
fc1817aClaude1374
958d26aClaude1375 code, kbd, samp {
2ce1d0bClaude1376 font-family: var(--font-mono);
958d26aClaude1377 font-feature-settings: var(--mono-feat);
1378 }
1379 code {
1380 font-size: 0.9em;
2ce1d0bClaude1381 background: var(--bg-tertiary);
958d26aClaude1382 border: 1px solid var(--border-subtle);
2ce1d0bClaude1383 padding: 1px 6px;
1384 border-radius: var(--r-sm);
1385 color: var(--text);
1386 }
958d26aClaude1387 kbd, .kbd {
1388 display: inline-flex;
1389 align-items: center;
1390 padding: 1px 6px;
1391 font-family: var(--font-mono);
1392 font-size: 11px;
1393 background: var(--bg-elevated);
1394 border: 1px solid var(--border);
1395 border-bottom-width: 2px;
1396 border-radius: 4px;
1397 color: var(--text);
1398 line-height: 1.5;
1399 vertical-align: middle;
1400 }
2ce1d0bClaude1401
958d26aClaude1402 /* Mono utility for technical chrome (paths, IDs, dates) */
1403 .mono { font-family: var(--font-mono); font-feature-settings: var(--mono-feat); font-size: 0.96em; }
1404 .meta-mono { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-muted); letter-spacing: 0; }
1405
1406 /* Pre-launch banner — slim, refined, mono caption */
4a52a98Claude1407 .prelaunch-banner {
958d26aClaude1408 position: relative;
2ce1d0bClaude1409 background:
958d26aClaude1410 linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.03)),
2ce1d0bClaude1411 var(--bg);
958d26aClaude1412 border-bottom: 1px solid rgba(251,191,36,0.28);
4a52a98Claude1413 color: var(--yellow);
958d26aClaude1414 padding: 7px 24px;
1415 font-family: var(--font-mono);
1416 font-size: 11px;
4a52a98Claude1417 font-weight: 500;
1418 text-align: center;
2ce1d0bClaude1419 line-height: 1.5;
958d26aClaude1420 letter-spacing: 0.04em;
1421 text-transform: uppercase;
1422 }
1423 .prelaunch-banner::before {
1424 content: '◆';
1425 margin-right: 8px;
1426 font-size: 9px;
1427 opacity: 0.7;
1428 vertical-align: 1px;
4a52a98Claude1429 }
1430
cd4f63bTest User1431 /* Block Q3 — Playground banner. Brighter than the prelaunch strip so
1432 visitors don't miss the "save your work" CTA, but slim enough to
1433 not feel like a modal. */
1434 .playground-banner {
1435 position: relative;
1436 display: flex;
1437 align-items: center;
1438 justify-content: center;
1439 gap: 8px;
1440 background:
1441 linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.06)),
1442 var(--bg);
1443 border-bottom: 1px solid rgba(251,191,36,0.45);
1444 color: var(--yellow, #fbbf24);
1445 padding: 8px 40px 8px 24px;
1446 font-size: 13px;
1447 font-weight: 500;
1448 text-align: center;
1449 line-height: 1.4;
1450 }
1451 .playground-banner-icon { font-size: 14px; }
1452 .playground-banner-text { color: var(--text-strong, #e6edf3); }
1453 .playground-banner-countdown { font-weight: 600; }
1454 .playground-banner-cta {
1455 margin-left: 4px;
1456 color: var(--yellow, #fbbf24);
1457 text-decoration: underline;
1458 font-weight: 600;
1459 }
1460 .playground-banner-cta:hover { opacity: 0.85; }
1461 .playground-banner-dismiss {
1462 position: absolute;
1463 top: 50%;
1464 right: 12px;
1465 transform: translateY(-50%);
1466 background: transparent;
1467 border: none;
1468 color: var(--text-muted, #8b949e);
1469 font-size: 18px;
1470 line-height: 1;
1471 cursor: pointer;
1472 padding: 0 4px;
1473 }
1474 .playground-banner-dismiss:hover { color: var(--text-strong, #e6edf3); }
1475
41a1450Claude1476 /* Site nav header — sticky, blurred, hairline border. Scoped to
1477 .site-header: pages use semantic <header> elements for section/hero
1478 headings, and a bare element selector here turns every one of them
1479 into a 64px sticky bar (the /pricing hero-overlap bug). */
1480 .site-header {
2ce1d0bClaude1481 position: sticky;
1482 top: 0;
1483 z-index: 100;
fc1817aClaude1484 border-bottom: 1px solid var(--border);
2ce1d0bClaude1485 padding: 0 24px;
1486 height: var(--header-h);
ba23fe2Claude1487 background: rgba(13,17,23,0.80);
1488 backdrop-filter: saturate(160%) blur(16px);
1489 -webkit-backdrop-filter: saturate(160%) blur(16px);
fc1817aClaude1490 }
ba23fe2Claude1491 :root[data-theme='light'] .site-header { background: rgba(251,251,252,0.85); }
fc1817aClaude1492
41a1450Claude1493 .site-header nav {
06d5ffeClaude1494 display: flex;
1495 align-items: center;
958d26aClaude1496 gap: 18px;
eed4684Claude1497 max-width: 1920px;
06d5ffeClaude1498 margin: 0 auto;
2ce1d0bClaude1499 height: 100%;
1500 }
1501 .logo {
958d26aClaude1502 font-family: var(--font-display);
1503 font-size: 16px;
2ce1d0bClaude1504 font-weight: 700;
958d26aClaude1505 letter-spacing: -0.025em;
1506 color: var(--text-strong);
2ce1d0bClaude1507 display: inline-flex;
1508 align-items: center;
958d26aClaude1509 gap: 9px;
1510 transition: opacity var(--t-fast) var(--ease);
06d5ffeClaude1511 }
2ce1d0bClaude1512 .logo::before {
1513 content: '';
958d26aClaude1514 width: 20px; height: 20px;
1515 border-radius: 6px;
64aa989Claude1516 background: var(--accent);
1517 box-shadow: none;
2ce1d0bClaude1518 flex-shrink: 0;
e589f77ccantynz-alt1519 transition: box-shadow var(--dur-base) var(--ease);
958d26aClaude1520 }
1521 .logo:hover { text-decoration: none; color: var(--text-strong); }
1522 .logo:hover::before {
64aa989Claude1523 box-shadow: none;
06d5ffeClaude1524 }
fc1817aClaude1525
2ce1d0bClaude1526 .nav-search {
1527 flex: 1;
958d26aClaude1528 max-width: 360px;
1529 margin: 0 4px 0 8px;
1530 position: relative;
2ce1d0bClaude1531 }
1532 .nav-search input {
1533 width: 100%;
958d26aClaude1534 padding: 7px 12px 7px 32px;
2ce1d0bClaude1535 background: var(--bg-tertiary);
1536 border: 1px solid var(--border);
1537 border-radius: var(--r-sm);
1538 color: var(--text);
1539 font-family: var(--font-sans);
1540 font-size: var(--t-sm);
958d26aClaude1541 transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
1542 }
1543 .nav-search::before {
1544 content: '';
1545 position: absolute;
1546 left: 11px; top: 50%;
1547 transform: translateY(-50%);
1548 width: 12px; height: 12px;
1549 border: 1.5px solid var(--text-faint);
1550 border-radius: 50%;
1551 pointer-events: none;
1552 }
1553 .nav-search::after {
1554 content: '';
1555 position: absolute;
1556 left: 19px; top: calc(50% + 4px);
1557 width: 5px; height: 1.5px;
1558 background: var(--text-faint);
1559 transform: rotate(45deg);
1560 pointer-events: none;
2ce1d0bClaude1561 }
1562 .nav-search input::placeholder { color: var(--text-faint); }
1563 .nav-search input:focus {
1564 outline: none;
1565 background: var(--bg-secondary);
958d26aClaude1566 border-color: var(--border-focus);
1567 box-shadow: var(--ring);
2ce1d0bClaude1568 }
06d5ffeClaude1569
958d26aClaude1570 .nav-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
f764c07Claude1571
1572 /* Block N3 — site-admin deploy status pill */
1573 .nav-deploy-pill {
1574 display: inline-flex;
1575 align-items: center;
1576 gap: 6px;
1577 padding: 4px 10px;
1578 margin: 0 6px 0 0;
1579 border-radius: 9999px;
1580 font-size: 11px;
1581 font-weight: 600;
1582 line-height: 1;
1583 color: var(--text-strong);
1584 background: var(--bg-elevated);
1585 border: 1px solid var(--border);
1586 text-decoration: none;
1587 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1588 }
1589 .nav-deploy-pill:hover { background: var(--bg-hover); text-decoration: none; }
1590 .nav-deploy-pill .deploy-pill-dot {
1591 display: inline-block;
1592 width: 8px; height: 8px;
1593 border-radius: 50%;
1594 background: #6b7280;
1595 }
479dcd9Claude1596 .deploy-pill-success .deploy-pill-dot { background: #34d399; }
1597 .deploy-pill-failed .deploy-pill-dot { background: #f87171; }
f764c07Claude1598 .deploy-pill-failed { border-color: rgba(248,113,113,0.4); }
1599 .deploy-pill-progress .deploy-pill-dot {
1600 background: #fbbf24;
1601 animation: deployPillPulse 1.2s ease-in-out infinite;
1602 }
1603 @keyframes deployPillPulse {
1604 0%, 100% { opacity: 1; transform: scale(1); }
1605 50% { opacity: 0.45; transform: scale(0.8); }
1606 }
1607 .deploy-pill-empty .deploy-pill-dot { background: #9ca3af; }
1608
c6018a5Claude1609 /* ── AI dropdown (nav consolidation) ── */
1610 .nav-ai-dropdown {
1611 position: relative;
1612 display: inline-flex;
1613 align-items: center;
1614 }
1615 .nav-ai-trigger {
1616 background: transparent;
1617 border: 0;
1618 font: inherit;
1619 cursor: pointer;
1620 color: var(--text-muted);
1621 font-size: var(--t-sm);
1622 font-weight: 500;
1623 padding: 7px 11px;
1624 border-radius: var(--r-sm);
1625 line-height: 1.2;
1626 }
1627 .nav-ai-trigger:hover {
1628 color: var(--text-strong);
1629 background: var(--bg-hover);
1630 }
1631 .nav-ai-menu {
1632 position: absolute;
1633 top: calc(100% + 6px);
1634 right: 0;
1635 min-width: 220px;
1636 background: var(--bg-secondary);
1637 border: 1px solid var(--border-strong);
1638 border-radius: 10px;
479dcd9Claude1639 box-shadow: 0 12px 32px rgba(0,0,0,0.40), 0 0 0 1px rgba(91,110,232,0.10);
c6018a5Claude1640 padding: 6px;
1641 display: none;
1642 z-index: var(--z-overlay, 100);
1643 }
1644 .nav-ai-dropdown:hover .nav-ai-menu,
1645 .nav-ai-dropdown.is-open .nav-ai-menu,
1646 .nav-ai-dropdown:focus-within .nav-ai-menu {
1647 display: block;
1648 }
1649 .nav-ai-item {
1650 display: flex;
1651 flex-direction: column;
1652 gap: 1px;
1653 padding: 8px 10px;
1654 border-radius: 6px;
1655 color: var(--text);
1656 text-decoration: none;
1657 transition: background var(--t-fast) var(--ease);
1658 }
1659 .nav-ai-item:hover {
1660 background: var(--bg-hover);
1661 text-decoration: none;
1662 color: var(--text-strong);
1663 }
1664 .nav-ai-item-label {
1665 font-size: var(--t-sm);
1666 font-weight: 600;
1667 color: var(--text-strong);
1668 }
1669 .nav-ai-item-sub {
1670 font-size: 11.5px;
1671 color: var(--text-muted);
1672 }
1673
2ce1d0bClaude1674 .nav-link {
958d26aClaude1675 position: relative;
2ce1d0bClaude1676 color: var(--text-muted);
1677 font-size: var(--t-sm);
1678 font-weight: 500;
958d26aClaude1679 padding: 7px 11px;
2ce1d0bClaude1680 border-radius: var(--r-sm);
958d26aClaude1681 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude1682 }
1683 .nav-link:hover {
958d26aClaude1684 color: var(--text-strong);
2ce1d0bClaude1685 background: var(--bg-hover);
1686 text-decoration: none;
1687 }
958d26aClaude1688 .nav-link.active { color: var(--text-strong); }
1689 .nav-link.active::after {
1690 content: '';
1691 position: absolute;
1692 left: 11px; right: 11px;
1693 bottom: -1px;
1694 height: 2px;
64aa989Claude1695 background: var(--accent);
958d26aClaude1696 border-radius: 2px;
1697 }
adf5e18Claude1698 /* "Migrate from GitHub" nav link — logged-out only, slightly accented
1699 so it reads as an action affordance rather than a passive link. */
1700 .nav-migrate {
1701 color: var(--accent);
1702 font-weight: 600;
479dcd9Claude1703 border: 1px solid rgba(91,110,232,0.22);
1704 background: rgba(91,110,232,0.07);
adf5e18Claude1705 }
1706 .nav-migrate:hover {
1707 color: var(--accent-hover);
479dcd9Claude1708 background: rgba(91,110,232,0.13);
1709 border-color: rgba(91,110,232,0.40);
adf5e18Claude1710 }
1711 @media (max-width: 780px) { .nav-migrate { display: none; } }
1712
2c61840Claude1713 /* ── Mobile nav ──────────────────────────��──────────────────── */
1714 @media (max-width: 640px) {
1715 .site-header nav { gap: 10px; padding: 0 var(--space-3); }
1716 .nav-search { display: none; }
1717 .nav-right { gap: 4px; }
1718 .nav-link { display: none; }
1719 .nav-ai-dropdown { display: none; }
1720 .nav-deploy-pill .deploy-pill-text { display: none; }
1721 .nav-inbox-btn .nav-inbox-badge { font-size: 9px; min-width: 14px; height: 14px; }
1722 }
1723
2ce1d0bClaude1724 .nav-user {
958d26aClaude1725 color: var(--text-strong);
2ce1d0bClaude1726 font-weight: 600;
1727 font-size: var(--t-sm);
1728 padding: 6px 10px;
1729 border-radius: var(--r-sm);
958d26aClaude1730 margin-left: 6px;
2ce1d0bClaude1731 transition: background var(--t-fast) var(--ease);
1732 }
958d26aClaude1733 .nav-user::before {
1734 content: '';
1735 display: inline-block;
1736 width: 8px; height: 8px;
1737 background: var(--green);
1738 border-radius: 50%;
1739 margin-right: 7px;
1740 vertical-align: 1px;
1741 }
2ce1d0bClaude1742 .nav-user:hover { background: var(--bg-hover); text-decoration: none; }
fc1817aClaude1743
f5b9ef5Claude1744 /* ── Inbox bell button ── */
1745 .nav-inbox-btn {
1746 position: relative;
1747 display: inline-flex;
1748 align-items: center;
1749 justify-content: center;
1750 width: 34px;
1751 height: 34px;
1752 border-radius: var(--r-sm);
1753 color: var(--text-muted);
1754 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
1755 flex-shrink: 0;
1756 }
1757 .nav-inbox-btn:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
1758 .nav-inbox-badge {
1759 position: absolute;
1760 top: 3px; right: 3px;
1761 min-width: 15px; height: 15px;
1762 padding: 0 4px;
1763 font-size: 9.5px;
1764 font-weight: 700;
1765 line-height: 15px;
1766 color: #fff;
479dcd9Claude1767 background: var(--accent);
f5b9ef5Claude1768 border-radius: 9999px;
1769 text-align: center;
1770 font-variant-numeric: tabular-nums;
1771 }
1772
1773 /* ── User dropdown ── */
1774 .nav-user-dropdown { position: relative; }
1775 .nav-user-trigger {
1776 display: inline-flex;
1777 align-items: center;
1778 gap: 7px;
1779 padding: 5px 9px 5px 5px;
1780 border-radius: var(--r-sm);
1781 border: 1px solid transparent;
1782 background: transparent;
1783 color: var(--text);
1784 font-family: var(--font-sans);
1785 font-size: var(--t-sm);
1786 font-weight: 500;
1787 cursor: pointer;
1788 transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
1789 }
1790 .nav-user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }
1791 .nav-user-avatar {
1792 width: 24px; height: 24px;
1793 border-radius: 50%;
64aa989Claude1794 background: var(--accent);
f5b9ef5Claude1795 color: #fff;
1796 font-size: 11px;
1797 font-weight: 700;
1798 display: inline-flex;
1799 align-items: center;
1800 justify-content: center;
1801 flex-shrink: 0;
1802 box-shadow: 0 0 0 2px var(--border);
1803 }
1804 .nav-user-name { font-weight: 500; font-size: var(--t-sm); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1805 .nav-user-caret { font-size: 8px; opacity: 0.5; }
1806 .nav-user-menu {
1807 display: none;
1808 position: absolute;
1809 top: calc(100% + 6px);
1810 right: 0;
1811 min-width: 220px;
1812 background: var(--bg-elevated);
1813 border: 1px solid var(--border-strong);
1814 border-radius: var(--r-lg);
1815 box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--border);
1816 padding: 6px;
1817 z-index: 200;
1818 animation: navMenuIn 140ms var(--ease) both;
1819 }
1820 .nav-user-menu.is-open { display: block; }
1821 .nav-user-menu-header {
1822 padding: 8px 10px 10px;
1823 display: flex;
1824 flex-direction: column;
1825 gap: 2px;
1826 }
1827 .nav-user-menu-name { font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); }
1828 .nav-user-menu-handle { font-size: var(--t-xs); color: var(--text-muted); }
1829 .nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px -6px; }
1830 .nav-user-item {
1831 display: block;
1832 padding: 7px 10px;
1833 border-radius: 6px;
1834 font-size: var(--t-sm);
1835 color: var(--text);
1836 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
1837 white-space: nowrap;
1838 }
1839 .nav-user-item:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
1840 .nav-user-item--danger { color: var(--red); }
1841 .nav-user-item--danger:hover { background: rgba(248,113,113,0.08); color: var(--red); }
1842
1843 @keyframes navMenuIn {
1844 from { opacity: 0; transform: translateY(-4px) scale(0.97); }
1845 to { opacity: 1; transform: translateY(0) scale(1); }
1846 }
1847
2ce1d0bClaude1848 main {
eed4684Claude1849 max-width: 1920px;
2ce1d0bClaude1850 margin: 0 auto;
958d26aClaude1851 padding: 36px 24px 80px;
2ce1d0bClaude1852 flex: 1;
1853 width: 100%;
2c61840Claude1854 box-sizing: border-box;
479dcd9Claude1855 /* Subtle entrance fade on page load — kept short (180ms) so it
1856 reads as responsiveness, not theatre. Honors reduced-motion. */
1857 animation: gxMainEnter 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
ed6e438Claude1858 }
1859 @keyframes gxMainEnter {
479dcd9Claude1860 from { opacity: 0; transform: translateY(3px); }
ed6e438Claude1861 to { opacity: 1; transform: translateY(0); }
1862 }
1863 @media (prefers-reduced-motion: reduce) {
1864 main { animation: none; }
1865 }
1866 /* 2026 polish — accent focus ring across all focusable elements.
1867 The default browser ring is utilitarian; this is the same width
1868 but tinted to the brand accent so keyboard navigation feels
1869 intentional, not jarring. :focus-visible only — mouse users
1870 never see it. */
1871 :focus-visible {
1872 outline: none;
1873 }
1874 a:focus-visible,
1875 button:focus-visible,
1876 input:focus-visible,
1877 select:focus-visible,
1878 textarea:focus-visible,
1879 [tabindex]:focus-visible {
479dcd9Claude1880 outline: 2px solid rgba(91, 110, 232, 0.55);
ed6e438Claude1881 outline-offset: 2px;
1882 border-radius: 4px;
2ce1d0bClaude1883 }
fc1817aClaude1884
958d26aClaude1885 /* Editorial footer: link grid + tagline row */
fc1817aClaude1886 footer {
1887 border-top: 1px solid var(--border);
958d26aClaude1888 padding: 56px 24px 40px;
fc1817aClaude1889 color: var(--text-muted);
958d26aClaude1890 font-size: var(--t-sm);
ba23fe2Claude1891 background: var(--bg);
958d26aClaude1892 }
1893 footer .footer-inner {
eed4684Claude1894 max-width: 1920px;
958d26aClaude1895 margin: 0 auto;
1896 display: grid;
1897 grid-template-columns: 1fr auto;
1898 gap: 48px;
1899 align-items: start;
1900 }
1901 footer .footer-brand .logo { margin-bottom: var(--s-3); }
1902 footer .footer-tag {
1903 color: var(--text-muted);
1904 font-size: var(--t-sm);
1905 max-width: 320px;
1906 line-height: 1.55;
1907 }
1908 footer .footer-links {
1909 display: grid;
1910 grid-template-columns: repeat(3, minmax(120px, auto));
1911 gap: 0 56px;
1912 }
1913 footer .footer-col-title {
1914 font-family: var(--font-mono);
1915 font-size: 11px;
1916 text-transform: uppercase;
1917 letter-spacing: 0.14em;
1918 color: var(--text-faint);
1919 margin-bottom: var(--s-3);
1920 }
1921 footer .footer-col a {
1922 display: block;
1923 color: var(--text-muted);
1924 font-size: var(--t-sm);
1925 padding: 5px 0;
1926 transition: color var(--t-fast) var(--ease);
1927 }
1928 footer .footer-col a:hover { color: var(--text-strong); text-decoration: none; }
1929 footer .footer-bottom {
eed4684Claude1930 max-width: 1920px;
958d26aClaude1931 margin: 40px auto 0;
1932 padding-top: 24px;
1933 border-top: 1px solid var(--border-subtle);
1934 display: flex;
1935 justify-content: space-between;
1936 align-items: center;
2ce1d0bClaude1937 color: var(--text-faint);
1938 font-size: var(--t-xs);
958d26aClaude1939 font-family: var(--font-mono);
1940 letter-spacing: 0.02em;
1941 }
1942 footer .footer-bottom a { color: var(--text-faint); }
1943 footer .footer-bottom a:hover { color: var(--text-muted); text-decoration: none; }
05cdb85Claude1944 footer .footer-build {
1945 display: inline-flex;
1946 align-items: center;
1947 gap: 6px;
1948 color: var(--text-faint);
1949 font-family: var(--font-mono);
1950 font-size: 11px;
1951 cursor: help;
1952 }
1953 footer .footer-build-dot {
1954 width: 6px; height: 6px;
1955 border-radius: 50%;
1956 background: var(--green);
479dcd9Claude1957 opacity: 0.9;
05cdb85Claude1958 }
958d26aClaude1959 @media (max-width: 768px) {
2c61840Claude1960 main { padding: 20px 14px 60px; }
958d26aClaude1961 footer .footer-inner { grid-template-columns: 1fr; gap: 32px; }
1962 footer .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
1963 footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
fc1817aClaude1964 }
2c61840Claude1965 @media (max-width: 480px) {
1966 main { padding: 14px 10px 48px; }
1967 }
fc1817aClaude1968
2ce1d0bClaude1969 /* ============================================================ */
1970 /* Buttons */
1971 /* ============================================================ */
dc26881CC LABS App1972 /* ============================================================ */
1973 /* Buttons — Block U2 senior polish pass. */
1974 /* Rules: */
1975 /* · hover lifts every .btn by 1px + soft drop shadow (180ms) */
1976 /* · active presses back down to 0 (80ms — faster on press) */
1977 /* · focus-visible uses a soft box-shadow ring (no outline) */
1978 /* · primary gradient shifts position on hover for a slow */
1979 /* 600ms shimmer */
1980 /* · disabled never lifts and never animates */
1981 /* ============================================================ */
06d5ffeClaude1982 .btn {
1983 display: inline-flex;
1984 align-items: center;
2ce1d0bClaude1985 justify-content: center;
958d26aClaude1986 gap: 7px;
2ce1d0bClaude1987 padding: 7px 14px;
1988 border-radius: var(--r-sm);
958d26aClaude1989 font-family: var(--font-sans);
2ce1d0bClaude1990 font-size: var(--t-sm);
06d5ffeClaude1991 font-weight: 500;
1992 border: 1px solid var(--border);
2ce1d0bClaude1993 background: var(--bg-elevated);
06d5ffeClaude1994 color: var(--text);
1995 cursor: pointer;
1996 text-decoration: none;
958d26aClaude1997 line-height: 1.25;
1998 letter-spacing: -0.008em;
dc26881CC LABS App1999 /* U2 — hover/transform settles in 180ms; press snaps in 80ms.
2000 Listed once on the base rule so :active can override only the
2001 transform/duration without re-typing the colour/bg transitions. */
2ce1d0bClaude2002 transition:
dc26881CC LABS App2003 background 180ms ease,
2004 border-color 180ms ease,
2005 transform 180ms ease,
2006 box-shadow 180ms ease,
2007 color 180ms ease;
2ce1d0bClaude2008 user-select: none;
2009 white-space: nowrap;
958d26aClaude2010 position: relative;
06d5ffeClaude2011 }
2ce1d0bClaude2012 .btn:hover {
2013 background: var(--bg-surface);
2014 border-color: var(--border-strong);
958d26aClaude2015 color: var(--text-strong);
2ce1d0bClaude2016 text-decoration: none;
dc26881CC LABS App2017 /* U2 — universal hover lift + soft accent drop shadow. */
2018 transform: translateY(-1px);
2019 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.45);
2020 }
2021 .btn:active {
2022 transform: translateY(0);
2023 transition-duration: 80ms;
2024 }
479dcd9Claude2025 /* U2 — soft modern focus ring via box-shadow, not outline.
2026 The literal legacy declaration is kept for external tooling that
2027 greps for the U2 contract; the var(--ring) declaration after it
2028 wins the cascade and renders the calm indigo ring. */
dc26881CC LABS App2029 .btn:focus-visible {
2030 outline: none;
6fd5915Claude2031 box-shadow: 0 0 0 3px rgba(91, 110, 232, 0.35);
479dcd9Claude2032 box-shadow: var(--ring);
2ce1d0bClaude2033 }
2034
2035 .btn-primary {
e589f77ccantynz-alt2036 background: var(--accent);
2ce1d0bClaude2037 border-color: transparent;
2038 color: #fff;
2039 font-weight: 600;
958d26aClaude2040 text-shadow: 0 1px 0 rgba(0,0,0,0.15);
2ce1d0bClaude2041 box-shadow:
e589f77ccantynz-alt2042 inset 0 1px 0 rgba(255,255,255,0.12),
2043 0 1px 2px rgba(0,0,0,0.25);
dc26881CC LABS App2044 transition:
8cfb00eClaude2045 background 180ms ease,
dc26881CC LABS App2046 transform 180ms ease,
2047 box-shadow 180ms ease,
2048 color 180ms ease;
06d5ffeClaude2049 }
2ce1d0bClaude2050 .btn-primary:hover {
958d26aClaude2051 color: #fff;
8cfb00eClaude2052 background: var(--accent-hover);
958d26aClaude2053 border-color: transparent;
dc26881CC LABS App2054 transform: translateY(-1px);
e589f77ccantynz-alt2055 filter: none;
2ce1d0bClaude2056 box-shadow:
e589f77ccantynz-alt2057 inset 0 1px 0 rgba(255,255,255,0.15),
2058 0 4px 12px rgba(0,0,0,0.25);
2ce1d0bClaude2059 }
dc26881CC LABS App2060 .btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
2061 /* U2 — primary focus ring uses the same accent box-shadow recipe. */
2062 .btn-primary:focus-visible {
2063 box-shadow:
2064 inset 0 1px 0 rgba(255,255,255,0.22),
479dcd9Claude2065 0 0 0 3px rgba(91,110,232,0.35);
dc26881CC LABS App2066 }
2ce1d0bClaude2067
2fd463bccanty labs2068 /* Quiet Intelligence (light) — primary actions are calm ink #16181d,
2069 not indigo. The indigo accent is reserved for links + active state,
2070 which is what reads as "trustworthy tool" vs "gamer SaaS". Scoped to
2071 the light theme only; the dark-theme gradient rules above are
2072 intentionally left byte-identical. */
2073 :root[data-theme='light'] .btn-primary {
2074 background: #16181d;
2075 color: #fff;
2076 text-shadow: none;
2077 box-shadow:
2078 inset 0 1px 0 rgba(255,255,255,0.08),
2079 0 1px 2px rgba(22,24,29,0.24),
2080 0 0 0 1px rgba(22,24,29,0.90);
2081 }
2082 :root[data-theme='light'] .btn-primary:hover {
2083 background: #2a2d35;
2084 box-shadow:
2085 inset 0 1px 0 rgba(255,255,255,0.10),
2086 0 6px 18px -6px rgba(22,24,29,0.30),
2087 0 0 0 1px rgba(22,24,29,0.90);
2088 }
2089 :root[data-theme='light'] .btn-primary:focus-visible {
2090 box-shadow:
2091 inset 0 1px 0 rgba(255,255,255,0.08),
2092 0 0 0 3px rgba(67,83,201,0.35);
2093 }
2094
2ce1d0bClaude2095 .btn-danger {
2096 background: transparent;
958d26aClaude2097 border-color: rgba(248,113,113,0.40);
2ce1d0bClaude2098 color: var(--red);
2099 }
2100 .btn-danger:hover {
958d26aClaude2101 background: rgba(248,113,113,0.08);
2ce1d0bClaude2102 border-color: var(--red);
958d26aClaude2103 color: var(--red);
dc26881CC LABS App2104 transform: translateY(-1px);
2105 box-shadow: 0 4px 12px -4px rgba(248,113,113,0.30);
2ce1d0bClaude2106 }
dc26881CC LABS App2107 .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(248,113,113,0.35); }
2ce1d0bClaude2108
2109 .btn-ghost {
2110 background: transparent;
2111 border-color: transparent;
2112 color: var(--text-muted);
2113 }
2114 .btn-ghost:hover {
2115 background: var(--bg-hover);
958d26aClaude2116 color: var(--text-strong);
2ce1d0bClaude2117 border-color: var(--border);
dc26881CC LABS App2118 transform: translateY(-1px);
2119 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.30);
2ce1d0bClaude2120 }
2121
958d26aClaude2122 .btn-secondary {
2123 background: var(--bg-elevated);
2124 border-color: var(--border-strong);
2125 color: var(--text-strong);
2126 }
2127 .btn-secondary:hover {
2128 background: var(--bg-surface);
2129 border-color: var(--border-strong);
dc26881CC LABS App2130 transform: translateY(-1px);
2131 box-shadow: 0 4px 12px -4px rgba(15, 17, 26, 0.35);
958d26aClaude2132 }
2133
2134 .btn-sm { padding: 4px 10px; font-size: var(--t-xs); border-radius: var(--r-sm); gap: 5px; }
2135 .btn-lg { padding: 11px 22px; font-size: var(--t-base); border-radius: var(--r); }
2136 .btn-xl { padding: 14px 28px; font-size: var(--t-md); border-radius: var(--r); font-weight: 600; }
2137 .btn-block { width: 100%; }
2ce1d0bClaude2138
dc26881CC LABS App2139 /* U2 — disabled never lifts, never shimmers, never glows. */
2140 .btn:disabled,
2141 .btn[aria-disabled='true'],
2142 .btn:disabled:hover,
2143 .btn[aria-disabled='true']:hover {
2144 opacity: 0.5;
2ce1d0bClaude2145 cursor: not-allowed;
2146 pointer-events: none;
dc26881CC LABS App2147 transform: none;
2148 box-shadow: none;
2149 }
2150 @media (prefers-reduced-motion: reduce) {
2151 .btn,
2152 .btn:hover,
2153 .btn:active,
2154 .btn-primary,
2155 .btn-primary:hover {
2156 transform: none;
2157 transition: background-color 80ms linear, color 80ms linear;
2158 }
2ce1d0bClaude2159 }
2160
2161 /* ============================================================ */
2162 /* Forms */
2163 /* ============================================================ */
2164 .form-group { margin-bottom: 20px; }
2165 .form-group label {
2166 display: block;
2167 font-size: var(--t-sm);
2168 font-weight: 500;
2169 margin-bottom: 6px;
2170 color: var(--text);
2171 letter-spacing: -0.005em;
2172 }
2173 .form-group input,
2174 .form-group textarea,
2175 .form-group select,
2176 input[type='text'], input[type='email'], input[type='password'],
2177 input[type='url'], input[type='search'], input[type='number'],
2178 textarea, select {
06d5ffeClaude2179 width: 100%;
2ce1d0bClaude2180 padding: 9px 12px;
2181 background: var(--bg-secondary);
06d5ffeClaude2182 border: 1px solid var(--border);
2ce1d0bClaude2183 border-radius: var(--r-sm);
06d5ffeClaude2184 color: var(--text);
2ce1d0bClaude2185 font-size: var(--t-sm);
06d5ffeClaude2186 font-family: var(--font-sans);
2ce1d0bClaude2187 transition:
2188 border-color var(--t-fast) var(--ease),
2189 background var(--t-fast) var(--ease),
2190 box-shadow var(--t-fast) var(--ease);
06d5ffeClaude2191 }
2ce1d0bClaude2192 .form-group input::placeholder, textarea::placeholder, input::placeholder {
2193 color: var(--text-faint);
06d5ffeClaude2194 }
2ce1d0bClaude2195 .form-group input:hover, textarea:hover, select:hover,
2196 input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
2197 border-color: var(--border-strong);
2198 }
2199 .form-group input:focus, .form-group textarea:focus, .form-group select:focus,
2200 input:focus, textarea:focus, select:focus {
06d5ffeClaude2201 outline: none;
2ce1d0bClaude2202 background: var(--bg);
2203 border-color: var(--border-focus);
2204 box-shadow: var(--ring);
06d5ffeClaude2205 }
2ce1d0bClaude2206 textarea { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.55; }
06d5ffeClaude2207 .input-disabled { opacity: 0.5; cursor: not-allowed; }
2208
2ce1d0bClaude2209 /* ============================================================ */
2210 /* Auth (register / login / verify) */
2211 /* ============================================================ */
2212 .auth-container {
e589f77ccantynz-alt2213 /* Collapsed to one rule — the later plainer .auth-container (in the
2214 2026 polish layer) won on background/padding/border-radius/box-shadow,
2215 so those values are folded in here; the 480px width + centering +
2216 positioning survive from the original premium-gateway block. */
98f45b4Claude2217 max-width: 480px;
2218 margin: 72px auto;
e589f77ccantynz-alt2219 padding: 32px;
2220 background: var(--bg-secondary);
2ce1d0bClaude2221 border: 1px solid var(--border);
e589f77ccantynz-alt2222 border-radius: var(--r-lg);
2223 box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1px var(--border);
98f45b4Claude2224 position: relative;
2225 overflow: hidden;
2226 }
a48f839ccantynz-alt2227 /* h1 and h2 share this rule so the auth pages' primary heading can be a
2228 semantic <h1> — which is what it is — without any visual change. The
2229 register page previously had NO h1 element at all: its only <h1> in the
2230 markup sits inside the inlined client-side markdown renderer's JS
2231 (views/client-js.ts replaces /^# (.+)$/ with '<h1>$1</h1>'), which is
2232 script text, not DOM. */
2233 .auth-container h1,
2ce1d0bClaude2234 .auth-container h2 {
98f45b4Claude2235 margin: 0 0 8px;
2236 font-size: 28px;
2237 font-weight: 700;
2238 font-family: var(--font-display);
2239 letter-spacing: -0.025em;
2240 color: var(--text-strong);
2241 line-height: 1.15;
2242 }
2243 .auth-container .auth-subtitle {
2244 color: var(--text-muted);
2245 font-size: 14.5px;
2246 line-height: 1.5;
2247 margin: 0 0 24px;
2ce1d0bClaude2248 }
2249 .auth-container > p {
2250 color: var(--text-muted);
2251 font-size: var(--t-sm);
2252 margin-bottom: 24px;
2253 }
98f45b4Claude2254 .auth-container .btn-primary {
2255 width: 100%;
2256 padding: 12px 16px;
2257 font-size: 15px;
2258 font-weight: 600;
2259 margin-top: 4px;
2260 }
582cdacClaude2261
2262 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2263 with a brand-coloured logo on the left and a label centred-trailing.
2264 Hover lifts 1px with a subtle shadow — matches the rest of the
2265 button system but reads as a brand-affiliated action, not a brand-
2266 coloured primary CTA. */
2267 .auth-container .oauth-btn {
2268 display: flex;
2269 align-items: center;
2270 justify-content: center;
2271 gap: 10px;
2272 width: 100%;
2273 padding: 11px 16px;
2274 background: var(--bg-surface, var(--bg-elevated));
2275 border: 1px solid var(--border);
2276 border-radius: var(--r-md, 8px);
2277 color: var(--text-strong);
2278 font-family: var(--font-sans);
2279 font-size: 14.5px;
2280 font-weight: 500;
2281 text-decoration: none;
2282 transition:
e589f77ccantynz-alt2283 transform var(--dur-base, 180ms) var(--ease, ease),
2284 box-shadow var(--dur-base, 180ms) var(--ease, ease),
582cdacClaude2285 background var(--t-fast, 120ms) var(--ease, ease),
2286 border-color var(--t-fast, 120ms) var(--ease, ease);
2287 }
2288 .auth-container .oauth-btn:hover {
2289 transform: translateY(-1px);
2290 background: var(--bg-hover);
2291 border-color: var(--text-muted);
2292 color: var(--text-strong);
2293 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2294 text-decoration: none;
2295 }
2296 .auth-container .oauth-btn:focus-visible {
479dcd9Claude2297 outline: 2px solid rgba(91, 110, 232, 0.55);
582cdacClaude2298 outline-offset: 2px;
2299 }
2300 .auth-container .oauth-btn .oauth-icon {
2301 flex-shrink: 0;
2302 }
2303 /* GitHub icon adopts the text colour so it reads in both themes. */
2304 .auth-container .oauth-github .oauth-icon {
2305 color: var(--text-strong);
2306 }
2307 /* Google logo uses the official 4-colour treatment via inline SVG fill
2308 attributes — nothing to override here. */
2309 /* "or" divider between the password form and provider buttons */
2310 .auth-container .auth-divider {
2311 display: flex;
2312 align-items: center;
2313 gap: 12px;
2314 margin: 20px 0 12px;
2315 color: var(--text-faint);
2316 font-size: 12px;
2317 letter-spacing: 0.08em;
2318 text-transform: uppercase;
2319 }
2320 .auth-container .auth-divider::before,
2321 .auth-container .auth-divider::after {
2322 content: '';
2323 flex: 1;
2324 height: 1px;
2325 background: var(--border);
2326 }
06d5ffeClaude2327 .auth-error {
958d26aClaude2328 background: rgba(248,113,113,0.08);
2329 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2330 color: var(--red);
2ce1d0bClaude2331 padding: 10px 14px;
2332 border-radius: var(--r-sm);
06d5ffeClaude2333 margin-bottom: 16px;
2ce1d0bClaude2334 font-size: var(--t-sm);
06d5ffeClaude2335 }
2336 .auth-success {
958d26aClaude2337 background: rgba(52,211,153,0.08);
2338 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2339 color: var(--green);
2ce1d0bClaude2340 padding: 10px 14px;
2341 border-radius: var(--r-sm);
06d5ffeClaude2342 margin-bottom: 16px;
2ce1d0bClaude2343 font-size: var(--t-sm);
2344 }
2345 .auth-switch {
2346 margin-top: 20px;
2347 font-size: var(--t-sm);
2348 color: var(--text-muted);
2349 text-align: center;
2350 }
2351 .banner {
2352 background: var(--accent-gradient-faint);
479dcd9Claude2353 border: 1px solid rgba(91,110,232,0.35);
2ce1d0bClaude2354 color: var(--text);
2355 padding: 10px 14px;
2356 border-radius: var(--r-sm);
2357 font-size: var(--t-sm);
06d5ffeClaude2358 }
2359
2ce1d0bClaude2360 /* ============================================================ */
2361 /* Settings */
2362 /* ============================================================ */
2363 .settings-container { max-width: 720px; }
2364 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2365 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2366 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2367 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2368 .ssh-keys-list { margin-bottom: 24px; }
2369 .ssh-key-item {
2370 display: flex;
2371 justify-content: space-between;
2372 align-items: center;
2ce1d0bClaude2373 padding: 14px 16px;
06d5ffeClaude2374 border: 1px solid var(--border);
2ce1d0bClaude2375 border-radius: var(--r-md);
06d5ffeClaude2376 margin-bottom: 8px;
2ce1d0bClaude2377 background: var(--bg-elevated);
2378 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2379 }
2ce1d0bClaude2380 .ssh-key-item:hover { border-color: var(--border-strong); }
2381 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2382 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2383
2ce1d0bClaude2384 /* ============================================================ */
2385 /* Repo header + nav */
2386 /* ============================================================ */
fc1817aClaude2387 .repo-header {
2388 display: flex;
2389 align-items: center;
debcf27Claude2390 gap: 12px;
2391 margin-bottom: 22px;
2392 }
2393 .repo-header-title {
2394 display: flex;
2395 align-items: center;
2396 gap: 10px;
2397 font-family: var(--font-display);
2398 font-size: 24px;
2399 letter-spacing: -0.025em;
2400 flex-wrap: wrap;
2401 }
2402 .repo-header .owner {
2403 color: var(--text-muted);
2404 font-weight: 500;
2405 transition: color var(--t-fast) var(--ease);
2406 }
2407 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2408 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2409 .repo-header .name {
2410 color: var(--text-strong);
2411 font-weight: 700;
2412 letter-spacing: -0.028em;
fc1817aClaude2413 }
2ce1d0bClaude2414 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2415 .repo-header-fork {
2416 font-family: var(--font-mono);
2417 font-size: 11px;
2418 color: var(--text-muted);
2419 margin-top: 4px;
2420 letter-spacing: 0.01em;
2421 }
2422 .repo-header-fork a { color: var(--text-muted); }
2423 .repo-header-fork a:hover { color: var(--accent); }
2424 .repo-header-pill {
2425 display: inline-flex;
2426 align-items: center;
2427 padding: 2px 10px;
2428 border-radius: var(--r-full);
2429 font-family: var(--font-mono);
2430 font-size: 10px;
2431 font-weight: 600;
2432 letter-spacing: 0.12em;
2433 text-transform: uppercase;
2434 line-height: 1.6;
2435 vertical-align: 4px;
2436 }
2437 .repo-header-pill-archived {
2438 background: rgba(251,191,36,0.10);
2439 color: var(--yellow);
2440 border: 1px solid rgba(251,191,36,0.30);
2441 }
2442 .repo-header-pill-template {
2443 background: var(--accent-gradient-faint);
2444 color: var(--accent);
479dcd9Claude2445 border: 1px solid rgba(91,110,232,0.30);
fc1817aClaude2446 }
06d5ffeClaude2447 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2448
8c790e0Claude2449 /* Push Watch discoverability — live/recent indicator in the repo header */
2450 .repo-header-live-badge {
2451 display: inline-flex;
2452 align-items: center;
2453 gap: 5px;
2454 padding: 2px 9px;
2455 border-radius: 999px;
2456 font-size: 12px;
2457 font-weight: 600;
2458 letter-spacing: 0.02em;
2459 text-decoration: none !important;
2460 vertical-align: 3px;
2461 transition: filter 140ms ease, opacity 140ms ease;
2462 }
2463 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2464 .repo-header-live-badge--live {
2465 background: rgba(218, 54, 51, 0.12);
2466 color: #f97171;
2467 border: 1px solid rgba(218, 54, 51, 0.35);
2468 }
2469 .repo-header-live-badge--live .repo-header-live-dot {
64aa989Claude2470 background: #22c55e;
8c790e0Claude2471 display: inline-block;
2472 }
2473 .repo-header-live-badge--recent {
479dcd9Claude2474 background: rgba(91, 110, 232, 0.08);
8c790e0Claude2475 color: var(--text-muted);
479dcd9Claude2476 border: 1px solid rgba(91, 110, 232, 0.22);
8c790e0Claude2477 }
2478 .repo-header-live-badge--recent:hover { color: var(--accent); }
2479
fc1817aClaude2480 .repo-nav {
2481 display: flex;
debcf27Claude2482 gap: 1px;
fc1817aClaude2483 border-bottom: 1px solid var(--border);
debcf27Claude2484 margin-bottom: 28px;
2ce1d0bClaude2485 overflow-x: auto;
2486 scrollbar-width: thin;
fc1817aClaude2487 }
2ce1d0bClaude2488 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2489 .repo-nav a {
debcf27Claude2490 position: relative;
2491 padding: 11px 14px;
fc1817aClaude2492 color: var(--text-muted);
2493 border-bottom: 2px solid transparent;
2ce1d0bClaude2494 font-size: var(--t-sm);
2495 font-weight: 500;
2496 margin-bottom: -1px;
debcf27Claude2497 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2498 white-space: nowrap;
2499 }
debcf27Claude2500 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2501 .repo-nav a.active {
debcf27Claude2502 color: var(--text-strong);
2503 font-weight: 600;
2504 }
2505 .repo-nav a.active::after {
2506 content: '';
2507 position: absolute;
2508 left: 14px;
2509 right: 14px;
2510 bottom: -1px;
2511 height: 2px;
64aa989Claude2512 background: var(--accent);
debcf27Claude2513 border-radius: 2px;
2514 }
2515 /* AI links in the right-side cluster — sparkle accent */
2516 .repo-nav-ai {
2517 color: var(--accent) !important;
2518 font-weight: 500;
2519 }
2520 .repo-nav-ai:hover {
2521 color: var(--accent-hover) !important;
2522 background: var(--accent-gradient-faint) !important;
2523 }
2524 .repo-nav-ai.active {
2525 color: var(--accent-hover) !important;
2ce1d0bClaude2526 font-weight: 600;
fc1817aClaude2527 }
2528
621081eccantynz-alt2529 /* Repo-nav dropdown menus (✨ AI / More) — native <details> disclosure */
2530 .repo-nav-menu {
2531 position: relative;
2532 display: inline-flex;
2533 align-items: stretch;
2534 }
2535 .repo-nav-menu > summary {
2536 list-style: none;
2537 cursor: pointer;
2538 padding: 11px 14px;
2539 color: var(--text-muted);
2540 font-size: var(--t-sm);
2541 font-weight: 500;
2542 white-space: nowrap;
2543 border-bottom: 2px solid transparent;
2544 margin-bottom: -1px;
2545 user-select: none;
2546 display: inline-flex;
2547 align-items: center;
2548 gap: 5px;
2549 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2550 }
2551 .repo-nav-menu > summary::-webkit-details-marker { display: none; }
2552 .repo-nav-menu > summary::after {
2553 content: "\\25BE";
2554 font-size: 9px;
2555 opacity: 0.55;
2556 }
2557 .repo-nav-menu > summary:hover {
2558 color: var(--text-strong);
2559 background: var(--bg-hover);
2560 }
2561 .repo-nav-menu.is-active > summary { color: var(--text-strong); font-weight: 600; }
2562 .repo-nav-menu[open] > summary { color: var(--text-strong); background: var(--bg-hover); }
2563 .repo-nav-ai-menu > summary { color: var(--accent) !important; }
2564 .repo-nav-ai-menu > summary:hover {
2565 color: var(--accent-hover) !important;
2566 background: var(--accent-gradient-faint) !important;
2567 }
2568
2569 .repo-nav-menu-panel {
2570 position: absolute;
2571 top: 100%;
2572 left: 0;
2573 margin-top: 6px;
2574 min-width: 200px;
2575 background: var(--bg-elevated);
2576 border: 1px solid var(--border);
2577 border-radius: var(--radius);
2578 box-shadow: 0 10px 30px rgba(0,0,0,0.22);
2579 padding: 6px;
2580 z-index: 60;
2581 display: flex;
2582 flex-direction: column;
2583 gap: 1px;
2584 }
2585 .repo-nav-menu-panel-right { left: auto; right: 0; }
2586 /* Override the inherited .repo-nav a tab styling inside the dropdown panel */
2587 .repo-nav-menu-panel a {
2588 position: static;
2589 display: block;
2590 padding: 7px 10px;
2591 border-radius: 7px;
2592 border-bottom: none;
2593 margin-bottom: 0;
2594 color: var(--text-muted);
2595 font-size: var(--t-sm);
2596 font-weight: 500;
2597 white-space: nowrap;
2598 }
2599 .repo-nav-menu-panel a::after { display: none !important; }
2600 .repo-nav-menu-panel a:hover { color: var(--text-strong); background: var(--bg-hover); }
2601 .repo-nav-menu-panel a.active {
2602 color: var(--text-strong);
2603 font-weight: 600;
2604 background: rgba(91,110,232,0.14);
2605 }
2606
2ce1d0bClaude2607 .breadcrumb {
2608 display: flex;
debcf27Claude2609 gap: 6px;
2ce1d0bClaude2610 align-items: center;
debcf27Claude2611 margin-bottom: 18px;
2ce1d0bClaude2612 color: var(--text-muted);
2613 font-size: var(--t-sm);
2614 font-family: var(--font-mono);
debcf27Claude2615 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2616 }
2617 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2618 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2619 .breadcrumb strong {
2620 color: var(--text-strong);
2621 font-weight: 600;
fc1817aClaude2622 }
2623
debcf27Claude2624 /* Page header — eyebrow + title + optional actions row.
2625 Use on dashboard, settings, admin, any "section landing" page. */
2626 .page-header {
2627 display: flex;
2628 align-items: flex-end;
2629 justify-content: space-between;
2630 gap: 16px;
2631 margin-bottom: 28px;
2632 padding-bottom: 20px;
2633 border-bottom: 1px solid var(--border-subtle);
2634 flex-wrap: wrap;
2635 }
2636 .page-header-text { flex: 1; min-width: 280px; }
2637 .page-header .eyebrow { margin-bottom: var(--s-2); }
2638 .page-header h1 {
2639 font-family: var(--font-display);
2640 font-size: clamp(24px, 3vw, 36px);
2641 line-height: 1.1;
2642 letter-spacing: -0.028em;
2643 margin-bottom: 6px;
2644 }
2645 .page-header p {
2646 color: var(--text-muted);
2647 font-size: var(--t-sm);
2648 line-height: 1.55;
2649 max-width: 640px;
2650 }
2651 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2652
2ce1d0bClaude2653 /* ============================================================ */
2654 /* File browser table */
2655 /* ============================================================ */
2656 .file-table {
2657 width: 100%;
2658 border: 1px solid var(--border);
2659 border-radius: var(--r-md);
2660 overflow: hidden;
2661 background: var(--bg-elevated);
debcf27Claude2662 border-collapse: collapse;
2ce1d0bClaude2663 }
debcf27Claude2664 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2665 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2666 .file-table td {
2667 padding: 9px 16px;
2668 font-size: var(--t-sm);
2669 font-family: var(--font-mono);
2670 font-feature-settings: var(--mono-feat);
2671 }
2ce1d0bClaude2672 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2673 .file-icon {
2674 width: 22px;
2675 color: var(--text-faint);
2676 font-size: 13px;
2677 text-align: center;
2678 }
2679 .file-name a {
2680 color: var(--text);
2681 font-weight: 500;
2682 transition: color var(--t-fast) var(--ease);
2683 }
2684 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2685
2ce1d0bClaude2686 /* ============================================================ */
2687 /* Blob view */
2688 /* ============================================================ */
fc1817aClaude2689 .blob-view {
2690 border: 1px solid var(--border);
2ce1d0bClaude2691 border-radius: var(--r-md);
fc1817aClaude2692 overflow: hidden;
2ce1d0bClaude2693 background: var(--bg-elevated);
fc1817aClaude2694 }
2695 .blob-header {
2696 background: var(--bg-secondary);
2ce1d0bClaude2697 padding: 10px 16px;
fc1817aClaude2698 border-bottom: 1px solid var(--border);
2ce1d0bClaude2699 font-size: var(--t-sm);
fc1817aClaude2700 color: var(--text-muted);
06d5ffeClaude2701 display: flex;
2702 justify-content: space-between;
2703 align-items: center;
fc1817aClaude2704 }
2705 .blob-code {
2706 overflow-x: auto;
2707 font-family: var(--font-mono);
2ce1d0bClaude2708 font-size: var(--t-sm);
2709 line-height: 1.65;
fc1817aClaude2710 }
2711 .blob-code table { width: 100%; border-collapse: collapse; }
2712 .blob-code .line-num {
2713 width: 1%;
2ce1d0bClaude2714 min-width: 56px;
2715 padding: 0 14px;
fc1817aClaude2716 text-align: right;
2ce1d0bClaude2717 color: var(--text-faint);
fc1817aClaude2718 user-select: none;
2719 white-space: nowrap;
2720 border-right: 1px solid var(--border);
2721 }
2ce1d0bClaude2722 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2723 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2724
2ce1d0bClaude2725 /* ============================================================ */
2726 /* Commits + diffs */
2727 /* ============================================================ */
2728 .commit-list {
2729 border: 1px solid var(--border);
2730 border-radius: var(--r-md);
2731 overflow: hidden;
2732 background: var(--bg-elevated);
2733 }
fc1817aClaude2734 .commit-item {
2735 display: flex;
2736 justify-content: space-between;
2737 align-items: center;
debcf27Claude2738 padding: 14px 18px;
2739 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2740 transition: background var(--t-fast) var(--ease);
fc1817aClaude2741 }
2742 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2743 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2744 .commit-message {
2745 font-size: var(--t-sm);
2746 font-weight: 500;
2747 line-height: 1.45;
2748 color: var(--text-strong);
2749 letter-spacing: -0.005em;
2750 }
2751 .commit-meta {
2752 font-family: var(--font-mono);
2753 font-size: 11px;
2754 color: var(--text-muted);
2755 margin-top: 5px;
2756 letter-spacing: 0.01em;
2757 }
fc1817aClaude2758 .commit-sha {
2759 font-family: var(--font-mono);
debcf27Claude2760 font-feature-settings: var(--mono-feat);
2761 font-size: 11px;
2762 padding: 4px 9px;
fc1817aClaude2763 background: var(--bg-tertiary);
2764 border: 1px solid var(--border);
2ce1d0bClaude2765 border-radius: var(--r-sm);
debcf27Claude2766 color: var(--accent);
2767 font-weight: 600;
2768 letter-spacing: 0.02em;
2ce1d0bClaude2769 transition: all var(--t-fast) var(--ease);
fc1817aClaude2770 }
debcf27Claude2771 .commit-sha:hover {
479dcd9Claude2772 border-color: rgba(91,110,232,0.40);
debcf27Claude2773 background: var(--accent-gradient-faint);
2774 color: var(--accent-hover);
2775 text-decoration: none;
fc1817aClaude2776 }
2777
82c3a38ccanty labs2778 /* Diff viewer */
fc1817aClaude2779 .diff-view { margin-top: 16px; }
82c3a38ccanty labs2780 .diff-toolbar {
2781 display: flex;
2782 align-items: center;
2783 justify-content: space-between;
2784 margin-bottom: 12px;
2785 gap: 12px;
2786 flex-wrap: wrap;
2787 }
2788 .diff-summary { font-size: var(--t-sm); color: var(--text-muted); }
2789 .diff-view-toggle {
2790 display: flex;
2791 border: 1px solid var(--border);
2792 border-radius: var(--r-sm);
2793 overflow: hidden;
2794 }
2795 .diff-view-btn {
2796 padding: 4px 12px;
2797 font-size: 12px;
2798 font-weight: 500;
2799 background: transparent;
2800 color: var(--text-muted);
2801 border: none;
2802 cursor: pointer;
2803 transition: all var(--t-fast) var(--ease);
2804 font-family: var(--font-sans);
2805 }
2806 .diff-view-btn:not(:first-child) { border-left: 1px solid var(--border); }
2807 .diff-view-btn:hover { color: var(--text); background: var(--bg-hover); }
2808 .diff-view-btn.active { background: var(--accent); color: #fff; }
2809 .diff-jump-list {
2810 display: flex;
2811 flex-wrap: wrap;
2812 gap: 6px;
2813 margin-bottom: 12px;
2814 padding: 8px 12px;
2815 background: var(--bg-secondary);
2816 border: 1px solid var(--border);
2817 border-radius: var(--r-sm);
2818 }
2819 .diff-jump-item {
2820 font-size: 11px;
2821 font-family: var(--font-mono);
2822 color: var(--text-muted);
2823 text-decoration: none;
2824 padding: 2px 6px;
2825 border-radius: 3px;
2826 transition: all var(--t-fast) var(--ease);
2827 }
2828 .diff-jump-item:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2829 .diff-jump-mod { color: var(--text-muted); }
fc1817aClaude2830 .diff-file {
2831 border: 1px solid var(--border);
2ce1d0bClaude2832 border-radius: var(--r-md);
fc1817aClaude2833 margin-bottom: 16px;
2834 overflow: hidden;
2ce1d0bClaude2835 background: var(--bg-elevated);
fc1817aClaude2836 }
2837 .diff-file-header {
82c3a38ccanty labs2838 display: flex;
2839 align-items: center;
2840 justify-content: space-between;
fc1817aClaude2841 background: var(--bg-secondary);
82c3a38ccanty labs2842 padding: 8px 14px;
fc1817aClaude2843 border-bottom: 1px solid var(--border);
2844 font-family: var(--font-mono);
2ce1d0bClaude2845 font-size: var(--t-sm);
2846 font-weight: 500;
82c3a38ccanty labs2847 cursor: pointer;
2848 user-select: none;
2849 gap: 12px;
fc1817aClaude2850 }
82c3a38ccanty labs2851 .diff-file-header:hover { background: var(--bg-hover); }
2852 .diff-file-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
2853 .diff-file-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-family: var(--font-sans); font-size: 12px; }
2854 .diff-file-chevron { color: var(--text-muted); font-size: 12px; transition: transform var(--t-fast) var(--ease); display: inline-block; }
2855 .diff-file-header.collapsed .diff-file-chevron { transform: rotate(-90deg); }
2856 .diff-table {
2857 width: 100%;
2858 border-collapse: collapse;
fc1817aClaude2859 font-family: var(--font-mono);
2ce1d0bClaude2860 font-size: var(--t-sm);
2861 line-height: 1.65;
82c3a38ccanty labs2862 table-layout: fixed;
2863 }
2864 .diff-ln {
2865 width: 44px;
2866 min-width: 44px;
2867 text-align: right;
2868 padding: 0 8px;
2869 color: var(--text-muted);
2870 user-select: none;
2871 border-right: 1px solid var(--border-subtle);
2872 vertical-align: top;
2873 font-size: 11px;
2874 white-space: nowrap;
2875 opacity: 0.55;
2876 }
2877 .diff-cell { padding: 0 4px 0 2px; white-space: pre; overflow: hidden; vertical-align: top; }
2878 .diff-sigil { display: inline-block; width: 14px; user-select: none; opacity: 0.7; text-align: center; }
2879 .diff-row-add .diff-ln, .diff-row-add .diff-cell { background: rgba(52,211,153,0.08); }
2880 .diff-row-add .diff-cell { color: var(--green); }
2881 .diff-row-add .diff-sigil { color: var(--green); opacity: 1; }
2882 .diff-row-del .diff-ln, .diff-row-del .diff-cell { background: rgba(248,113,113,0.07); }
2883 .diff-row-del .diff-cell { color: var(--red); }
2884 .diff-row-del .diff-sigil { color: var(--red); opacity: 1; }
2885 .diff-row-hunk .diff-ln, .diff-row-hunk .diff-cell { background: rgba(140,109,255,0.05); color: var(--text-link); font-size: 11px; }
2886 .diff-row-ws.diff-row-add .diff-cell { background: rgba(52,211,153,0.04); opacity: 0.75; }
2887 .diff-row-ws.diff-row-del .diff-cell { background: rgba(248,113,113,0.04); opacity: 0.75; }
2888 .diff-ws-badge {
2889 display: inline-block;
2890 margin-left: 8px;
2891 padding: 0 4px;
2892 font-size: 9px;
2893 font-family: var(--font-sans);
2894 color: var(--text-muted);
2895 border: 1px solid var(--border);
2896 border-radius: 3px;
2897 vertical-align: middle;
2898 opacity: 0.6;
2899 user-select: none;
fc1817aClaude2900 }
82c3a38ccanty labs2901 .diff-table-split .diff-ln-old, .diff-table-split .diff-cell-del { background: rgba(248,113,113,0.07); }
2902 .diff-table-split .diff-cell-del { color: var(--red); }
2903 .diff-table-split .diff-ln-new, .diff-table-split .diff-cell-add { background: rgba(52,211,153,0.08); }
2904 .diff-table-split .diff-cell-add { color: var(--green); }
2905 .diff-table-split .diff-cell-empty { background: var(--bg-secondary); }
2906 .diff-table-split .diff-cell-ctx { color: var(--text); }
2907 .diff-table-split .diff-cell-ws { opacity: 0.6; }
2908 .diff-binary { padding: 16px; font-size: var(--t-sm); color: var(--text-muted); font-style: italic; }
fc1817aClaude2909
2910 .stat-add { color: var(--green); font-weight: 600; }
2911 .stat-del { color: var(--red); font-weight: 600; }
2912
2ce1d0bClaude2913 /* ============================================================ */
2914 /* Empty state */
2915 /* ============================================================ */
fc1817aClaude2916 .empty-state {
2917 text-align: center;
ba23fe2Claude2918 padding: 80px 24px;
fc1817aClaude2919 color: var(--text-muted);
e589f77ccantynz-alt2920 border: 1px dashed var(--border);
2ce1d0bClaude2921 border-radius: var(--r-lg);
e589f77ccantynz-alt2922 background: var(--bg);
fc1817aClaude2923 }
2ce1d0bClaude2924 .empty-state h2 {
958d26aClaude2925 font-size: var(--t-xl);
2ce1d0bClaude2926 margin-bottom: 8px;
958d26aClaude2927 color: var(--text-strong);
2928 letter-spacing: -0.022em;
2ce1d0bClaude2929 }
958d26aClaude2930 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2931 .empty-state pre {
2932 text-align: left;
2933 display: inline-block;
2934 background: var(--bg-secondary);
958d26aClaude2935 padding: 18px 24px;
2936 border-radius: var(--r-md);
fc1817aClaude2937 border: 1px solid var(--border);
2938 font-family: var(--font-mono);
958d26aClaude2939 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2940 font-size: var(--t-sm);
958d26aClaude2941 margin-top: 24px;
fc1817aClaude2942 line-height: 1.8;
2ce1d0bClaude2943 color: var(--text);
958d26aClaude2944 box-shadow: var(--elev-1);
fc1817aClaude2945 }
2946
2ce1d0bClaude2947 /* ============================================================ */
2948 /* Badges */
2949 /* ============================================================ */
fc1817aClaude2950 .badge {
2ce1d0bClaude2951 display: inline-flex;
2952 align-items: center;
2953 gap: 4px;
2954 padding: 2px 9px;
2955 border-radius: var(--r-full);
2956 font-size: var(--t-xs);
fc1817aClaude2957 font-weight: 500;
2958 background: var(--bg-tertiary);
2959 border: 1px solid var(--border);
2960 color: var(--text-muted);
2ce1d0bClaude2961 line-height: 1.5;
fc1817aClaude2962 }
2963
2ce1d0bClaude2964 /* ============================================================ */
2965 /* Branch dropdown */
2966 /* ============================================================ */
fc1817aClaude2967 .branch-selector {
2968 display: inline-flex;
2969 align-items: center;
2ce1d0bClaude2970 gap: 6px;
2971 padding: 6px 12px;
2972 background: var(--bg-elevated);
fc1817aClaude2973 border: 1px solid var(--border);
2ce1d0bClaude2974 border-radius: var(--r-sm);
2975 font-size: var(--t-sm);
fc1817aClaude2976 color: var(--text);
2977 margin-bottom: 12px;
2ce1d0bClaude2978 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2979 }
2ce1d0bClaude2980 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2981
06d5ffeClaude2982 .branch-dropdown {
2983 position: relative;
2984 display: inline-block;
2985 margin-bottom: 12px;
2986 }
2987 .branch-dropdown-content {
2988 display: none;
2989 position: absolute;
2ce1d0bClaude2990 top: calc(100% + 4px);
06d5ffeClaude2991 left: 0;
2992 z-index: 10;
2ce1d0bClaude2993 min-width: 220px;
2994 background: var(--bg-elevated);
2995 border: 1px solid var(--border-strong);
2996 border-radius: var(--r-md);
2997 overflow: hidden;
2998 box-shadow: var(--elev-3);
06d5ffeClaude2999 }
3000 .branch-dropdown:hover .branch-dropdown-content,
3001 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
3002 .branch-dropdown-content a {
3003 display: block;
2ce1d0bClaude3004 padding: 9px 14px;
3005 font-size: var(--t-sm);
06d5ffeClaude3006 color: var(--text);
3007 border-bottom: 1px solid var(--border);
2ce1d0bClaude3008 transition: background var(--t-fast) var(--ease);
06d5ffeClaude3009 }
3010 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude3011 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
3012 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude3013
2ce1d0bClaude3014 /* ============================================================ */
3015 /* Card grid */
3016 /* ============================================================ */
3017 .card-grid {
3018 display: grid;
3019 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
3020 gap: 16px;
3021 }
fc1817aClaude3022 .card {
3023 border: 1px solid var(--border);
2ce1d0bClaude3024 border-radius: var(--r-md);
958d26aClaude3025 padding: 20px;
2ce1d0bClaude3026 background: var(--bg-elevated);
3027 transition:
e589f77ccantynz-alt3028 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3029 transform 160ms cubic-bezier(0.16,1,0.3,1),
3030 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
2ce1d0bClaude3031 position: relative;
3032 overflow: hidden;
958d26aClaude3033 isolation: isolate;
3034 }
2ce1d0bClaude3035 .card:hover {
e589f77ccantynz-alt3036 border-color: rgba(255,255,255,0.18);
3037 transform: translateY(-1px);
3038 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
2ce1d0bClaude3039 }
958d26aClaude3040 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude3041 .card h3 a { color: var(--text); font-weight: 600; }
3042 .card h3 a:hover { color: var(--text-link); }
3043 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
3044 .card-meta {
3045 display: flex;
3046 gap: 14px;
3047 margin-top: 14px;
3048 padding-top: 14px;
3049 border-top: 1px solid var(--border);
3050 font-size: var(--t-xs);
3051 color: var(--text-muted);
3052 }
3053 .card-meta span { display: flex; align-items: center; gap: 5px; }
3054
3055 /* ============================================================ */
3056 /* Stat card / box */
3057 /* ============================================================ */
3058 .stat-card {
3059 background: var(--bg-elevated);
3060 border: 1px solid var(--border);
3061 border-radius: var(--r-md);
fc1817aClaude3062 padding: 16px;
2ce1d0bClaude3063 transition: border-color var(--t-fast) var(--ease);
3064 }
3065 .stat-card:hover { border-color: var(--border-strong); }
3066 .stat-label {
3067 font-size: var(--t-xs);
3068 color: var(--text-muted);
3069 text-transform: uppercase;
3070 letter-spacing: 0.06em;
3071 font-weight: 500;
3072 }
3073 .stat-value {
3074 font-size: var(--t-xl);
3075 font-weight: 700;
3076 margin-top: 4px;
3077 letter-spacing: -0.025em;
3078 color: var(--text);
3079 font-feature-settings: 'tnum';
fc1817aClaude3080 }
06d5ffeClaude3081
2ce1d0bClaude3082 /* ============================================================ */
3083 /* Star button */
3084 /* ============================================================ */
06d5ffeClaude3085 .star-btn {
3086 display: inline-flex;
3087 align-items: center;
3088 gap: 6px;
2ce1d0bClaude3089 padding: 5px 12px;
3090 background: var(--bg-elevated);
06d5ffeClaude3091 border: 1px solid var(--border);
2ce1d0bClaude3092 border-radius: var(--r-sm);
06d5ffeClaude3093 color: var(--text);
2ce1d0bClaude3094 font-size: var(--t-sm);
3095 font-weight: 500;
06d5ffeClaude3096 cursor: pointer;
2ce1d0bClaude3097 transition: all var(--t-fast) var(--ease);
3098 }
3099 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
3100 .star-btn.starred {
3101 color: var(--yellow);
958d26aClaude3102 border-color: rgba(251,191,36,0.4);
3103 background: rgba(251,191,36,0.08);
06d5ffeClaude3104 }
3105
2ce1d0bClaude3106 /* ============================================================ */
3107 /* User profile */
3108 /* ============================================================ */
06d5ffeClaude3109 .user-profile {
3110 display: flex;
3111 gap: 32px;
3112 margin-bottom: 32px;
2ce1d0bClaude3113 padding: 24px;
3114 background: var(--bg-elevated);
3115 border: 1px solid var(--border);
3116 border-radius: var(--r-lg);
06d5ffeClaude3117 }
3118 .user-avatar {
3119 width: 96px;
3120 height: 96px;
2ce1d0bClaude3121 border-radius: var(--r-full);
3122 background: var(--accent-gradient-soft);
3123 border: 1px solid var(--border-strong);
06d5ffeClaude3124 display: flex;
3125 align-items: center;
3126 justify-content: center;
2ce1d0bClaude3127 font-size: 36px;
3128 font-weight: 600;
3129 color: var(--text);
06d5ffeClaude3130 flex-shrink: 0;
2ce1d0bClaude3131 letter-spacing: -0.02em;
06d5ffeClaude3132 }
2ce1d0bClaude3133 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
3134 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
3135 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude3136
2ce1d0bClaude3137 /* ============================================================ */
3138 /* New repo form */
3139 /* ============================================================ */
3140 .new-repo-form { max-width: 640px; }
3141 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
3142 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude3143 .visibility-option {
3144 flex: 1;
2ce1d0bClaude3145 padding: 16px;
06d5ffeClaude3146 border: 1px solid var(--border);
2ce1d0bClaude3147 border-radius: var(--r-md);
3148 background: var(--bg-elevated);
06d5ffeClaude3149 cursor: pointer;
2ce1d0bClaude3150 text-align: left;
3151 transition: all var(--t-fast) var(--ease);
3152 }
3153 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
3154 .visibility-option:has(input:checked) {
3155 border-color: var(--accent);
3156 background: var(--accent-gradient-faint);
3157 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude3158 }
3159 .visibility-option input { display: none; }
2ce1d0bClaude3160 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
3161 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude3162
2ce1d0bClaude3163 /* ============================================================ */
3164 /* Issues */
3165 /* ============================================================ */
3166 .issue-tabs { display: flex; gap: 4px; }
3167 .issue-tabs a {
3168 color: var(--text-muted);
3169 font-size: var(--t-sm);
3170 font-weight: 500;
3171 padding: 6px 12px;
3172 border-radius: var(--r-sm);
3173 transition: all var(--t-fast) var(--ease);
3174 }
3175 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
3176 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude3177
2ce1d0bClaude3178 .issue-list {
3179 border: 1px solid var(--border);
3180 border-radius: var(--r-md);
3181 overflow: hidden;
3182 background: var(--bg-elevated);
3183 }
79136bbClaude3184 .issue-item {
3185 display: flex;
2ce1d0bClaude3186 gap: 14px;
79136bbClaude3187 align-items: flex-start;
2ce1d0bClaude3188 padding: 14px 16px;
79136bbClaude3189 border-bottom: 1px solid var(--border);
2ce1d0bClaude3190 transition: background var(--t-fast) var(--ease);
79136bbClaude3191 }
3192 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude3193 .issue-item:hover { background: var(--bg-hover); }
3194 .issue-state-icon {
3195 font-size: 14px;
3196 padding-top: 2px;
3197 width: 18px;
3198 height: 18px;
3199 display: inline-flex;
3200 align-items: center;
3201 justify-content: center;
3202 border-radius: var(--r-full);
3203 flex-shrink: 0;
3204 }
79136bbClaude3205 .state-open { color: var(--green); }
479dcd9Claude3206 .state-closed { color: var(--text-link); }
2ce1d0bClaude3207 .issue-title {
debcf27Claude3208 font-family: var(--font-display);
3209 font-size: var(--t-md);
2ce1d0bClaude3210 font-weight: 600;
debcf27Claude3211 line-height: 1.35;
3212 letter-spacing: -0.012em;
3213 }
3214 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
3215 .issue-title a:hover { color: var(--accent); text-decoration: none; }
3216 .issue-meta {
3217 font-family: var(--font-mono);
3218 font-size: 11px;
3219 color: var(--text-muted);
3220 margin-top: 5px;
3221 letter-spacing: 0.01em;
2ce1d0bClaude3222 }
79136bbClaude3223
3224 .issue-badge {
3225 display: inline-flex;
3226 align-items: center;
2ce1d0bClaude3227 gap: 6px;
79136bbClaude3228 padding: 4px 12px;
2ce1d0bClaude3229 border-radius: var(--r-full);
3230 font-size: var(--t-sm);
79136bbClaude3231 font-weight: 500;
2ce1d0bClaude3232 line-height: 1.4;
79136bbClaude3233 }
958d26aClaude3234 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
479dcd9Claude3235 .badge-closed { background: rgba(154,168,239,0.10); color: var(--text-link); border: 1px solid rgba(154,168,239,0.35); }
3236 .badge-merged { background: rgba(91,110,232,0.10); color: var(--accent); border: 1px solid rgba(91,110,232,0.35); }
4fc7860Test User3237 .badge-live { background: #0891b2; color: #fff; border: 1px solid #0891b2; }
3238 .badge-soon { background: transparent; color: #6b7280; border: 1px solid #d1d5db; }
3239 .badge-preview { background: transparent; color: #0891b2; border: 1px dashed rgba(8,145,178,0.45); }
2ce1d0bClaude3240 .state-merged { color: var(--accent); }
479dcd9Claude3241 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(91,110,232,0.3); }
79136bbClaude3242
2ce1d0bClaude3243 .issue-detail { max-width: 920px; }
79136bbClaude3244 .issue-comment-box {
3245 border: 1px solid var(--border);
2ce1d0bClaude3246 border-radius: var(--r-md);
79136bbClaude3247 margin-bottom: 16px;
3248 overflow: hidden;
2ce1d0bClaude3249 background: var(--bg-elevated);
79136bbClaude3250 }
3251 .comment-header {
3252 background: var(--bg-secondary);
2ce1d0bClaude3253 padding: 10px 16px;
79136bbClaude3254 border-bottom: 1px solid var(--border);
2ce1d0bClaude3255 font-size: var(--t-sm);
79136bbClaude3256 color: var(--text-muted);
3257 }
3258
2ce1d0bClaude3259 /* ============================================================ */
3260 /* Panel — flexible container used across many pages */
3261 /* ============================================================ */
3262 .panel {
3263 background: var(--bg-elevated);
3264 border: 1px solid var(--border);
3265 border-radius: var(--r-md);
3266 overflow: hidden;
3267 }
3268 .panel-item {
3269 display: flex;
3270 align-items: center;
3271 gap: 12px;
3272 padding: 12px 16px;
79136bbClaude3273 border-bottom: 1px solid var(--border);
2ce1d0bClaude3274 transition: background var(--t-fast) var(--ease);
3275 }
3276 .panel-item:last-child { border-bottom: none; }
3277 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3278
3279 /* ─── j/k keyboard list navigation ─── */
3280 .is-kbd-focus {
479dcd9Claude3281 outline: 2px solid rgba(91,110,232,0.6) !important;
5882af3Claude3282 outline-offset: -2px;
479dcd9Claude3283 background: rgba(91,110,232,0.06) !important;
5882af3Claude3284 border-radius: 4px;
3285 }
3286 .is-kbd-selected {
3287 outline: 2px solid rgba(52,211,153,0.6) !important;
3288 background: rgba(52,211,153,0.06) !important;
3289 }
2ce1d0bClaude3290 .panel-empty {
3291 padding: 24px;
3292 text-align: center;
79136bbClaude3293 color: var(--text-muted);
2ce1d0bClaude3294 font-size: var(--t-sm);
79136bbClaude3295 }
3296
2ce1d0bClaude3297 /* ============================================================ */
3298 /* Search */
3299 /* ============================================================ */
79136bbClaude3300 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3301
2ce1d0bClaude3302 /* ============================================================ */
3303 /* Timeline */
3304 /* ============================================================ */
3305 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3306 .timeline::before {
3307 content: '';
3308 position: absolute;
3309 left: 4px;
3310 top: 8px;
3311 bottom: 8px;
3312 width: 2px;
2ce1d0bClaude3313 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3314 }
2ce1d0bClaude3315 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3316 .timeline-dot {
3317 position: absolute;
2ce1d0bClaude3318 left: -28px;
3319 top: 8px;
3320 width: 12px;
3321 height: 12px;
3322 border-radius: var(--r-full);
64aa989Claude3323 background: var(--accent);
16b325cClaude3324 border: 2px solid var(--bg);
2ce1d0bClaude3325 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3326 }
3327 .timeline-content {
2ce1d0bClaude3328 background: var(--bg-elevated);
16b325cClaude3329 border: 1px solid var(--border);
2ce1d0bClaude3330 border-radius: var(--r-md);
3331 padding: 14px 16px;
16b325cClaude3332 }
f1ab587Claude3333
2ce1d0bClaude3334 /* ============================================================ */
3335 /* Toggle switch */
3336 /* ============================================================ */
f1ab587Claude3337 .toggle-switch {
3338 position: relative;
3339 display: inline-block;
2ce1d0bClaude3340 width: 40px;
3341 height: 22px;
f1ab587Claude3342 flex-shrink: 0;
3343 margin-left: 16px;
3344 }
3345 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3346 .toggle-slider {
3347 position: absolute;
3348 cursor: pointer;
3349 top: 0; left: 0; right: 0; bottom: 0;
3350 background: var(--bg-tertiary);
3351 border: 1px solid var(--border);
2ce1d0bClaude3352 border-radius: var(--r-full);
e589f77ccantynz-alt3353 transition: all var(--dur-base) var(--ease);
f1ab587Claude3354 }
3355 .toggle-slider::before {
3356 content: '';
3357 position: absolute;
2ce1d0bClaude3358 height: 16px;
3359 width: 16px;
f1ab587Claude3360 left: 2px;
3361 bottom: 2px;
3362 background: var(--text-muted);
2ce1d0bClaude3363 border-radius: var(--r-full);
e589f77ccantynz-alt3364 transition: all var(--dur-base) var(--ease);
f1ab587Claude3365 }
3366 .toggle-switch input:checked + .toggle-slider {
64aa989Claude3367 background: var(--accent);
2ce1d0bClaude3368 border-color: transparent;
479dcd9Claude3369 box-shadow: 0 0 0 1px rgba(91,110,232,0.4);
f1ab587Claude3370 }
3371 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3372 transform: translateX(18px);
f1ab587Claude3373 background: #fff;
3374 }
ef8d378Claude3375
3376 /* ============================================================
3377 * 2026 polish layer (purely additive — no layout changes).
3378 * Improves typography rendering, focus states, hover affordances,
3379 * and adds the gradient brand cue to primary buttons. Anything
3380 * that could alter dimensions stays in the rules above.
3381 * ============================================================ */
3382 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3383 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
479dcd9Claude3384 *::selection { background: rgba(91,110,232,0.30); color: var(--text); }
ef8d378Claude3385
3386 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3387 h1 { letter-spacing: -0.025em; }
3388
3389 /* Smoother colour transitions everywhere links live */
3390 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3391
3392 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3393 .btn {
3394 transition:
3395 background 120ms cubic-bezier(0.16,1,0.3,1),
3396 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3397 transform 120ms cubic-bezier(0.16,1,0.3,1),
3398 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3399 }
3400 .btn:active { transform: translateY(0.5px); }
3401 .btn:focus-visible {
3402 outline: none;
479dcd9Claude3403 box-shadow: var(--ring);
ef8d378Claude3404 }
e589f77ccantynz-alt3405 /* .btn-primary + .btn-primary:hover collapsed into the canonical rules
3406 earlier in the sheet; the dead duplicates that lived here were removed. */
ef8d378Claude3407
3408 /* Inputs: cleaner focus ring + hover */
3409 .form-group input:hover,
3410 .form-group textarea:hover,
3411 .form-group select:hover {
3412 border-color: rgba(255,255,255,0.14);
3413 }
3414 .form-group input:focus,
3415 .form-group textarea:focus,
3416 .form-group select:focus {
479dcd9Claude3417 border-color: var(--border-focus);
3418 box-shadow: var(--ring);
ef8d378Claude3419 }
3420 :root[data-theme='light'] .form-group input:hover,
3421 :root[data-theme='light'] .form-group textarea:hover,
3422 :root[data-theme='light'] .form-group select:hover {
3423 border-color: rgba(0,0,0,0.18);
3424 }
3425
e589f77ccantynz-alt3426 /* Cards: subtle hover lift. The unscoped .card + .card:hover that
3427 lived here were collapsed into the canonical .card rules earlier in
3428 the sheet; only the light-theme hover override remains. */
ef8d378Claude3429 :root[data-theme='light'] .card:hover {
3430 border-color: rgba(0,0,0,0.18);
3431 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3432 }
3433
3434 /* Issue / commit / panel rows: smoother hover */
3435 .issue-item, .commit-item {
3436 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3437 }
3438 .repo-nav a {
3439 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3440 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3441 }
3442 .nav-link {
3443 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3444 }
3445
e589f77ccantynz-alt3446 /* Auth card: the unscoped .auth-container (and its redundant h2
3447 letter-spacing, byte-identical to the canonical h2 rule) were
3448 collapsed into the canonical rules earlier; only the light-theme
3449 shadow override remains. */
ef8d378Claude3450 :root[data-theme='light'] .auth-container {
3451 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3452 }
3453
e589f77ccantynz-alt3454 /* Empty state: dashed border + var(--bg) background collapsed into the
3455 canonical .empty-state rule earlier; the dead duplicate was removed. */
ef8d378Claude3456
3457 /* Badges + commit-sha: smoother transition */
3458 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3459
8cfb00eClaude3460 /* Gradient text utility — kept for back-compat, renders as plain accent color. */
ef8d378Claude3461 .gradient-text {
8cfb00eClaude3462 color: var(--accent);
ef8d378Claude3463 }
3464
3465 /* Custom scrollbars (subtle, themed) */
3466 ::-webkit-scrollbar { width: 10px; height: 10px; }
3467 ::-webkit-scrollbar-track { background: transparent; }
3468 ::-webkit-scrollbar-thumb {
3469 background: rgba(255,255,255,0.06);
3470 border: 2px solid var(--bg);
3471 border-radius: 9999px;
3472 }
3473 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3474 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3475 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3476
3477 /* Honour reduced-motion preference */
3478 @media (prefers-reduced-motion: reduce) {
3479 *, *::before, *::after {
3480 animation-duration: 0.01ms !important;
3481 animation-iteration-count: 1 !important;
3482 transition-duration: 0.01ms !important;
3483 }
3484 }
c63b860Claude3485
3486 /* Block O3 — visual coherence additive rules. */
3487 .card.card-p-none { padding: 0; }
3488 .card.card-p-sm { padding: var(--space-3); }
3489 .card.card-p-md { padding: var(--space-4); }
3490 .card.card-p-lg { padding: var(--space-6); }
3491 .card.card-elevated { box-shadow: var(--elev-2); }
3492 .card.card-gradient {
64aa989Claude3493 background: var(--bg-elevated);
c63b860Claude3494 }
3495 .card.card-gradient::before { opacity: 1; }
3496 .notice {
3497 padding: var(--space-3) var(--space-4);
3498 border-radius: var(--radius-md);
3499 border: 1px solid var(--border);
3500 background: var(--bg-elevated);
3501 color: var(--text);
3502 font-size: var(--font-size-sm);
3503 margin-bottom: var(--space-6);
3504 line-height: var(--leading-normal);
3505 }
3506 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3507 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3508 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3509 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
479dcd9Claude3510 .notice-accent { border-color: var(--accent); background: rgba(91,110,232,0.10); color: var(--text); }
c63b860Claude3511 .email-preview {
3512 padding: var(--space-5);
3513 background: #fff;
3514 color: #111;
3515 border-radius: var(--radius-md);
3516 }
3517 .code-block {
3518 margin: var(--space-2) 0 0;
3519 padding: var(--space-3);
3520 background: var(--bg-tertiary);
3521 border: 1px solid var(--border-subtle);
3522 border-radius: var(--radius-sm);
3523 font-family: var(--font-mono);
3524 font-size: var(--font-size-xs);
3525 line-height: var(--leading-normal);
3526 overflow-x: auto;
3527 }
3528 .status-pill-operational {
3529 display: inline-flex;
3530 align-items: center;
3531 padding: var(--space-1) var(--space-3);
3532 border-radius: var(--radius-full);
3533 font-size: var(--font-size-xs);
3534 font-weight: 600;
3535 background: rgba(52,211,153,0.15);
3536 color: var(--green);
3537 }
3538 .api-tag {
3539 display: inline-flex;
3540 align-items: center;
3541 font-size: var(--font-size-xs);
3542 padding: 2px var(--space-2);
3543 border-radius: var(--radius-sm);
3544 font-family: var(--font-mono);
3545 }
3546 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3547 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3548 .stat-number {
3549 font-size: var(--font-size-xl);
3550 font-weight: 700;
3551 color: var(--text-strong);
3552 line-height: var(--leading-tight);
3553 }
3554 .stat-number-accent { color: var(--accent); }
3555 .stat-number-blue { color: var(--blue); }
3556 .stat-number-purple { color: var(--text-link); }
3557 footer .footer-tag-sub {
3558 margin-top: var(--space-2);
3559 font-size: var(--font-size-xs);
3560 color: var(--text-faint);
3561 line-height: var(--leading-normal);
3562 }
3563 footer .footer-version-pill {
3564 display: inline-flex;
3565 align-items: center;
3566 gap: var(--space-2);
3567 padding: var(--space-1) var(--space-3);
3568 border-radius: var(--radius-full);
3569 border: 1px solid var(--border);
3570 background: var(--bg-elevated);
3571 color: var(--text-faint);
3572 font-family: var(--font-mono);
3573 font-size: var(--font-size-xs);
3574 cursor: help;
3575 }
3576 footer .footer-banner {
3577 max-width: 1240px;
3578 margin: var(--space-6) auto 0;
3579 padding: var(--space-3) var(--space-4);
3580 border-radius: var(--radius-md);
3581 border: 1px solid var(--border);
3582 background: var(--bg-elevated);
3583 color: var(--text);
3584 font-family: var(--font-mono);
3585 font-size: var(--font-size-xs);
3586 letter-spacing: 0.04em;
3587 text-transform: uppercase;
3588 text-align: center;
3589 }
3590 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3591 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3592 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3593
cf9178bTest User3594 /* ============================================================ */
3595 /* Global toast notifications. */
3596 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3597 /* ============================================================ */
3598 .gx-toast {
3599 pointer-events: auto;
3600 display: inline-flex;
3601 align-items: flex-start;
3602 gap: 10px;
3603 min-width: 280px;
3604 max-width: min(440px, calc(100vw - 32px));
3605 padding: 12px 14px 12px 12px;
3606 background: var(--bg-elevated);
3607 border: 1px solid var(--border);
3608 border-radius: 10px;
3609 box-shadow:
3610 0 12px 36px -10px rgba(15,16,28,0.18),
3611 0 2px 6px rgba(15,16,28,0.04),
3612 0 0 0 1px rgba(15,16,28,0.02);
3613 color: var(--text);
3614 font-size: 13.5px;
3615 line-height: 1.45;
3616 opacity: 0;
3617 transform: translateX(16px);
3618 transition:
3619 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3620 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3621 }
3622 .gx-toast--in { opacity: 1; transform: translateX(0); }
3623 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3624 .gx-toast__icon {
3625 flex-shrink: 0;
3626 width: 20px; height: 20px;
3627 border-radius: 50%;
3628 display: inline-flex;
3629 align-items: center;
3630 justify-content: center;
3631 font-size: 12px;
3632 font-weight: 700;
3633 line-height: 1;
3634 margin-top: 1px;
3635 }
3636 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3637 .gx-toast__close {
3638 flex-shrink: 0;
3639 width: 22px; height: 22px;
3640 border: 0;
3641 background: transparent;
3642 color: var(--text-muted);
3643 font-size: 18px;
3644 line-height: 1;
3645 cursor: pointer;
3646 border-radius: 4px;
3647 padding: 0;
3648 margin: -2px -2px 0 0;
3649 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3650 }
3651 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3652 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3653 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3654 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
479dcd9Claude3655 .gx-toast--info .gx-toast__icon { background: rgba(91,110,232,0.14); color: var(--accent); }
cf9178bTest User3656 @media (prefers-reduced-motion: reduce) {
3657 .gx-toast { transition: opacity 60ms linear; transform: none; }
3658 .gx-toast--in, .gx-toast--out { transform: none; }
3659 }
3660
dc26881CC LABS App3661 /* ============================================================ */
3662 /* Block U4 — cross-document view transitions. */
3663 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3664 /* every same-origin navigation. Older browsers ignore these */
3665 /* rules entirely — no JS shim, no breakage. */
3666 /* prefers-reduced-motion disables the animation honourably. */
3667 /* ============================================================ */
3668 @view-transition {
3669 navigation: auto;
3670 }
3671 ::view-transition-old(root),
3672 ::view-transition-new(root) {
3673 animation-duration: 200ms;
3674 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3675 }
3676 ::view-transition-old(root) {
3677 animation-name: vt-fade-out;
3678 }
3679 ::view-transition-new(root) {
3680 animation-name: vt-fade-in;
3681 }
3682 @keyframes vt-fade-out {
3683 to { opacity: 0; }
3684 }
3685 @keyframes vt-fade-in {
3686 from { opacity: 0; }
3687 }
3688 @media (prefers-reduced-motion: reduce) {
3689 ::view-transition-old(root),
3690 ::view-transition-new(root) {
3691 animation-duration: 0s;
3692 }
3693 }
3694 /* The transition system picks up its root subject from this rule. */
3695 body {
3696 view-transition-name: root;
3697 }
fc1817aClaude3698`;