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.tsxBlame3691 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 }
2ce1d0bClaude2227 .auth-container h2 {
98f45b4Claude2228 margin: 0 0 8px;
2229 font-size: 28px;
2230 font-weight: 700;
2231 font-family: var(--font-display);
2232 letter-spacing: -0.025em;
2233 color: var(--text-strong);
2234 line-height: 1.15;
2235 }
2236 .auth-container .auth-subtitle {
2237 color: var(--text-muted);
2238 font-size: 14.5px;
2239 line-height: 1.5;
2240 margin: 0 0 24px;
2ce1d0bClaude2241 }
2242 .auth-container > p {
2243 color: var(--text-muted);
2244 font-size: var(--t-sm);
2245 margin-bottom: 24px;
2246 }
98f45b4Claude2247 .auth-container .btn-primary {
2248 width: 100%;
2249 padding: 12px 16px;
2250 font-size: 15px;
2251 font-weight: 600;
2252 margin-top: 4px;
2253 }
582cdacClaude2254
2255 /* OAuth provider buttons (Google / GitHub / SSO). Single-line layout
2256 with a brand-coloured logo on the left and a label centred-trailing.
2257 Hover lifts 1px with a subtle shadow — matches the rest of the
2258 button system but reads as a brand-affiliated action, not a brand-
2259 coloured primary CTA. */
2260 .auth-container .oauth-btn {
2261 display: flex;
2262 align-items: center;
2263 justify-content: center;
2264 gap: 10px;
2265 width: 100%;
2266 padding: 11px 16px;
2267 background: var(--bg-surface, var(--bg-elevated));
2268 border: 1px solid var(--border);
2269 border-radius: var(--r-md, 8px);
2270 color: var(--text-strong);
2271 font-family: var(--font-sans);
2272 font-size: 14.5px;
2273 font-weight: 500;
2274 text-decoration: none;
2275 transition:
e589f77ccantynz-alt2276 transform var(--dur-base, 180ms) var(--ease, ease),
2277 box-shadow var(--dur-base, 180ms) var(--ease, ease),
582cdacClaude2278 background var(--t-fast, 120ms) var(--ease, ease),
2279 border-color var(--t-fast, 120ms) var(--ease, ease);
2280 }
2281 .auth-container .oauth-btn:hover {
2282 transform: translateY(-1px);
2283 background: var(--bg-hover);
2284 border-color: var(--text-muted);
2285 color: var(--text-strong);
2286 box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
2287 text-decoration: none;
2288 }
2289 .auth-container .oauth-btn:focus-visible {
479dcd9Claude2290 outline: 2px solid rgba(91, 110, 232, 0.55);
582cdacClaude2291 outline-offset: 2px;
2292 }
2293 .auth-container .oauth-btn .oauth-icon {
2294 flex-shrink: 0;
2295 }
2296 /* GitHub icon adopts the text colour so it reads in both themes. */
2297 .auth-container .oauth-github .oauth-icon {
2298 color: var(--text-strong);
2299 }
2300 /* Google logo uses the official 4-colour treatment via inline SVG fill
2301 attributes — nothing to override here. */
2302 /* "or" divider between the password form and provider buttons */
2303 .auth-container .auth-divider {
2304 display: flex;
2305 align-items: center;
2306 gap: 12px;
2307 margin: 20px 0 12px;
2308 color: var(--text-faint);
2309 font-size: 12px;
2310 letter-spacing: 0.08em;
2311 text-transform: uppercase;
2312 }
2313 .auth-container .auth-divider::before,
2314 .auth-container .auth-divider::after {
2315 content: '';
2316 flex: 1;
2317 height: 1px;
2318 background: var(--border);
2319 }
06d5ffeClaude2320 .auth-error {
958d26aClaude2321 background: rgba(248,113,113,0.08);
2322 border: 1px solid rgba(248,113,113,0.35);
06d5ffeClaude2323 color: var(--red);
2ce1d0bClaude2324 padding: 10px 14px;
2325 border-radius: var(--r-sm);
06d5ffeClaude2326 margin-bottom: 16px;
2ce1d0bClaude2327 font-size: var(--t-sm);
06d5ffeClaude2328 }
2329 .auth-success {
958d26aClaude2330 background: rgba(52,211,153,0.08);
2331 border: 1px solid rgba(52,211,153,0.35);
06d5ffeClaude2332 color: var(--green);
2ce1d0bClaude2333 padding: 10px 14px;
2334 border-radius: var(--r-sm);
06d5ffeClaude2335 margin-bottom: 16px;
2ce1d0bClaude2336 font-size: var(--t-sm);
2337 }
2338 .auth-switch {
2339 margin-top: 20px;
2340 font-size: var(--t-sm);
2341 color: var(--text-muted);
2342 text-align: center;
2343 }
2344 .banner {
2345 background: var(--accent-gradient-faint);
479dcd9Claude2346 border: 1px solid rgba(91,110,232,0.35);
2ce1d0bClaude2347 color: var(--text);
2348 padding: 10px 14px;
2349 border-radius: var(--r-sm);
2350 font-size: var(--t-sm);
06d5ffeClaude2351 }
2352
2ce1d0bClaude2353 /* ============================================================ */
2354 /* Settings */
2355 /* ============================================================ */
2356 .settings-container { max-width: 720px; }
2357 .settings-container h2 { margin-bottom: 8px; font-size: var(--t-xl); letter-spacing: -0.02em; }
2358 .settings-container > h2 + p { color: var(--text-muted); font-size: var(--t-sm); margin-bottom: 24px; }
2359 .settings-container h3 { font-size: var(--t-md); margin-bottom: 12px; margin-top: 28px; }
2360 .settings-container h3:first-of-type { margin-top: 0; }
06d5ffeClaude2361 .ssh-keys-list { margin-bottom: 24px; }
2362 .ssh-key-item {
2363 display: flex;
2364 justify-content: space-between;
2365 align-items: center;
2ce1d0bClaude2366 padding: 14px 16px;
06d5ffeClaude2367 border: 1px solid var(--border);
2ce1d0bClaude2368 border-radius: var(--r-md);
06d5ffeClaude2369 margin-bottom: 8px;
2ce1d0bClaude2370 background: var(--bg-elevated);
2371 transition: border-color var(--t-fast) var(--ease);
06d5ffeClaude2372 }
2ce1d0bClaude2373 .ssh-key-item:hover { border-color: var(--border-strong); }
2374 .ssh-key-meta { font-size: var(--t-xs); color: var(--text-muted); margin-top: 4px; }
2375 .ssh-key-meta code { font-size: var(--t-xs); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
06d5ffeClaude2376
2ce1d0bClaude2377 /* ============================================================ */
2378 /* Repo header + nav */
2379 /* ============================================================ */
fc1817aClaude2380 .repo-header {
2381 display: flex;
2382 align-items: center;
debcf27Claude2383 gap: 12px;
2384 margin-bottom: 22px;
2385 }
2386 .repo-header-title {
2387 display: flex;
2388 align-items: center;
2389 gap: 10px;
2390 font-family: var(--font-display);
2391 font-size: 24px;
2392 letter-spacing: -0.025em;
2393 flex-wrap: wrap;
2394 }
2395 .repo-header .owner {
2396 color: var(--text-muted);
2397 font-weight: 500;
2398 transition: color var(--t-fast) var(--ease);
2399 }
2400 .repo-header .owner:hover { color: var(--text-link); text-decoration: none; }
2401 .repo-header .separator { color: var(--text-faint); font-weight: 300; }
2402 .repo-header .name {
2403 color: var(--text-strong);
2404 font-weight: 700;
2405 letter-spacing: -0.028em;
fc1817aClaude2406 }
2ce1d0bClaude2407 .repo-header .name:hover { color: var(--text-link); text-decoration: none; }
debcf27Claude2408 .repo-header-fork {
2409 font-family: var(--font-mono);
2410 font-size: 11px;
2411 color: var(--text-muted);
2412 margin-top: 4px;
2413 letter-spacing: 0.01em;
2414 }
2415 .repo-header-fork a { color: var(--text-muted); }
2416 .repo-header-fork a:hover { color: var(--accent); }
2417 .repo-header-pill {
2418 display: inline-flex;
2419 align-items: center;
2420 padding: 2px 10px;
2421 border-radius: var(--r-full);
2422 font-family: var(--font-mono);
2423 font-size: 10px;
2424 font-weight: 600;
2425 letter-spacing: 0.12em;
2426 text-transform: uppercase;
2427 line-height: 1.6;
2428 vertical-align: 4px;
2429 }
2430 .repo-header-pill-archived {
2431 background: rgba(251,191,36,0.10);
2432 color: var(--yellow);
2433 border: 1px solid rgba(251,191,36,0.30);
2434 }
2435 .repo-header-pill-template {
2436 background: var(--accent-gradient-faint);
2437 color: var(--accent);
479dcd9Claude2438 border: 1px solid rgba(91,110,232,0.30);
fc1817aClaude2439 }
06d5ffeClaude2440 .repo-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
fc1817aClaude2441
8c790e0Claude2442 /* Push Watch discoverability — live/recent indicator in the repo header */
2443 .repo-header-live-badge {
2444 display: inline-flex;
2445 align-items: center;
2446 gap: 5px;
2447 padding: 2px 9px;
2448 border-radius: 999px;
2449 font-size: 12px;
2450 font-weight: 600;
2451 letter-spacing: 0.02em;
2452 text-decoration: none !important;
2453 vertical-align: 3px;
2454 transition: filter 140ms ease, opacity 140ms ease;
2455 }
2456 .repo-header-live-badge:hover { filter: brightness(1.15); text-decoration: none !important; }
2457 .repo-header-live-badge--live {
2458 background: rgba(218, 54, 51, 0.12);
2459 color: #f97171;
2460 border: 1px solid rgba(218, 54, 51, 0.35);
2461 }
2462 .repo-header-live-badge--live .repo-header-live-dot {
64aa989Claude2463 background: #22c55e;
8c790e0Claude2464 display: inline-block;
2465 }
2466 .repo-header-live-badge--recent {
479dcd9Claude2467 background: rgba(91, 110, 232, 0.08);
8c790e0Claude2468 color: var(--text-muted);
479dcd9Claude2469 border: 1px solid rgba(91, 110, 232, 0.22);
8c790e0Claude2470 }
2471 .repo-header-live-badge--recent:hover { color: var(--accent); }
2472
fc1817aClaude2473 .repo-nav {
2474 display: flex;
debcf27Claude2475 gap: 1px;
fc1817aClaude2476 border-bottom: 1px solid var(--border);
debcf27Claude2477 margin-bottom: 28px;
2ce1d0bClaude2478 overflow-x: auto;
2479 scrollbar-width: thin;
fc1817aClaude2480 }
2ce1d0bClaude2481 .repo-nav::-webkit-scrollbar { height: 0; }
fc1817aClaude2482 .repo-nav a {
debcf27Claude2483 position: relative;
2484 padding: 11px 14px;
fc1817aClaude2485 color: var(--text-muted);
2486 border-bottom: 2px solid transparent;
2ce1d0bClaude2487 font-size: var(--t-sm);
2488 font-weight: 500;
2489 margin-bottom: -1px;
debcf27Claude2490 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2ce1d0bClaude2491 white-space: nowrap;
2492 }
debcf27Claude2493 .repo-nav a:hover { text-decoration: none; color: var(--text-strong); background: var(--bg-hover); }
2ce1d0bClaude2494 .repo-nav a.active {
debcf27Claude2495 color: var(--text-strong);
2496 font-weight: 600;
2497 }
2498 .repo-nav a.active::after {
2499 content: '';
2500 position: absolute;
2501 left: 14px;
2502 right: 14px;
2503 bottom: -1px;
2504 height: 2px;
64aa989Claude2505 background: var(--accent);
debcf27Claude2506 border-radius: 2px;
2507 }
2508 /* AI links in the right-side cluster — sparkle accent */
2509 .repo-nav-ai {
2510 color: var(--accent) !important;
2511 font-weight: 500;
2512 }
2513 .repo-nav-ai:hover {
2514 color: var(--accent-hover) !important;
2515 background: var(--accent-gradient-faint) !important;
2516 }
2517 .repo-nav-ai.active {
2518 color: var(--accent-hover) !important;
2ce1d0bClaude2519 font-weight: 600;
fc1817aClaude2520 }
2521
621081eccantynz-alt2522 /* Repo-nav dropdown menus (✨ AI / More) — native <details> disclosure */
2523 .repo-nav-menu {
2524 position: relative;
2525 display: inline-flex;
2526 align-items: stretch;
2527 }
2528 .repo-nav-menu > summary {
2529 list-style: none;
2530 cursor: pointer;
2531 padding: 11px 14px;
2532 color: var(--text-muted);
2533 font-size: var(--t-sm);
2534 font-weight: 500;
2535 white-space: nowrap;
2536 border-bottom: 2px solid transparent;
2537 margin-bottom: -1px;
2538 user-select: none;
2539 display: inline-flex;
2540 align-items: center;
2541 gap: 5px;
2542 transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
2543 }
2544 .repo-nav-menu > summary::-webkit-details-marker { display: none; }
2545 .repo-nav-menu > summary::after {
2546 content: "\\25BE";
2547 font-size: 9px;
2548 opacity: 0.55;
2549 }
2550 .repo-nav-menu > summary:hover {
2551 color: var(--text-strong);
2552 background: var(--bg-hover);
2553 }
2554 .repo-nav-menu.is-active > summary { color: var(--text-strong); font-weight: 600; }
2555 .repo-nav-menu[open] > summary { color: var(--text-strong); background: var(--bg-hover); }
2556 .repo-nav-ai-menu > summary { color: var(--accent) !important; }
2557 .repo-nav-ai-menu > summary:hover {
2558 color: var(--accent-hover) !important;
2559 background: var(--accent-gradient-faint) !important;
2560 }
2561
2562 .repo-nav-menu-panel {
2563 position: absolute;
2564 top: 100%;
2565 left: 0;
2566 margin-top: 6px;
2567 min-width: 200px;
2568 background: var(--bg-elevated);
2569 border: 1px solid var(--border);
2570 border-radius: var(--radius);
2571 box-shadow: 0 10px 30px rgba(0,0,0,0.22);
2572 padding: 6px;
2573 z-index: 60;
2574 display: flex;
2575 flex-direction: column;
2576 gap: 1px;
2577 }
2578 .repo-nav-menu-panel-right { left: auto; right: 0; }
2579 /* Override the inherited .repo-nav a tab styling inside the dropdown panel */
2580 .repo-nav-menu-panel a {
2581 position: static;
2582 display: block;
2583 padding: 7px 10px;
2584 border-radius: 7px;
2585 border-bottom: none;
2586 margin-bottom: 0;
2587 color: var(--text-muted);
2588 font-size: var(--t-sm);
2589 font-weight: 500;
2590 white-space: nowrap;
2591 }
2592 .repo-nav-menu-panel a::after { display: none !important; }
2593 .repo-nav-menu-panel a:hover { color: var(--text-strong); background: var(--bg-hover); }
2594 .repo-nav-menu-panel a.active {
2595 color: var(--text-strong);
2596 font-weight: 600;
2597 background: rgba(91,110,232,0.14);
2598 }
2599
2ce1d0bClaude2600 .breadcrumb {
2601 display: flex;
debcf27Claude2602 gap: 6px;
2ce1d0bClaude2603 align-items: center;
debcf27Claude2604 margin-bottom: 18px;
2ce1d0bClaude2605 color: var(--text-muted);
2606 font-size: var(--t-sm);
2607 font-family: var(--font-mono);
debcf27Claude2608 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2609 }
2610 .breadcrumb a { color: var(--text-link); font-weight: 500; }
2611 .breadcrumb a:hover { color: var(--accent-hover); }
debcf27Claude2612 .breadcrumb strong {
2613 color: var(--text-strong);
2614 font-weight: 600;
fc1817aClaude2615 }
2616
debcf27Claude2617 /* Page header — eyebrow + title + optional actions row.
2618 Use on dashboard, settings, admin, any "section landing" page. */
2619 .page-header {
2620 display: flex;
2621 align-items: flex-end;
2622 justify-content: space-between;
2623 gap: 16px;
2624 margin-bottom: 28px;
2625 padding-bottom: 20px;
2626 border-bottom: 1px solid var(--border-subtle);
2627 flex-wrap: wrap;
2628 }
2629 .page-header-text { flex: 1; min-width: 280px; }
2630 .page-header .eyebrow { margin-bottom: var(--s-2); }
2631 .page-header h1 {
2632 font-family: var(--font-display);
2633 font-size: clamp(24px, 3vw, 36px);
2634 line-height: 1.1;
2635 letter-spacing: -0.028em;
2636 margin-bottom: 6px;
2637 }
2638 .page-header p {
2639 color: var(--text-muted);
2640 font-size: var(--t-sm);
2641 line-height: 1.55;
2642 max-width: 640px;
2643 }
2644 .page-header-actions { display: flex; gap: 8px; align-items: center; }
fc1817aClaude2645
2ce1d0bClaude2646 /* ============================================================ */
2647 /* File browser table */
2648 /* ============================================================ */
2649 .file-table {
2650 width: 100%;
2651 border: 1px solid var(--border);
2652 border-radius: var(--r-md);
2653 overflow: hidden;
2654 background: var(--bg-elevated);
debcf27Claude2655 border-collapse: collapse;
2ce1d0bClaude2656 }
debcf27Claude2657 .file-table tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--t-fast) var(--ease); }
fc1817aClaude2658 .file-table tr:last-child { border-bottom: none; }
debcf27Claude2659 .file-table td {
2660 padding: 9px 16px;
2661 font-size: var(--t-sm);
2662 font-family: var(--font-mono);
2663 font-feature-settings: var(--mono-feat);
2664 }
2ce1d0bClaude2665 .file-table tr:hover { background: var(--bg-hover); }
debcf27Claude2666 .file-icon {
2667 width: 22px;
2668 color: var(--text-faint);
2669 font-size: 13px;
2670 text-align: center;
2671 }
2672 .file-name a {
2673 color: var(--text);
2674 font-weight: 500;
2675 transition: color var(--t-fast) var(--ease);
2676 }
2677 .file-name a:hover { color: var(--accent); text-decoration: none; }
fc1817aClaude2678
2ce1d0bClaude2679 /* ============================================================ */
2680 /* Blob view */
2681 /* ============================================================ */
fc1817aClaude2682 .blob-view {
2683 border: 1px solid var(--border);
2ce1d0bClaude2684 border-radius: var(--r-md);
fc1817aClaude2685 overflow: hidden;
2ce1d0bClaude2686 background: var(--bg-elevated);
fc1817aClaude2687 }
2688 .blob-header {
2689 background: var(--bg-secondary);
2ce1d0bClaude2690 padding: 10px 16px;
fc1817aClaude2691 border-bottom: 1px solid var(--border);
2ce1d0bClaude2692 font-size: var(--t-sm);
fc1817aClaude2693 color: var(--text-muted);
06d5ffeClaude2694 display: flex;
2695 justify-content: space-between;
2696 align-items: center;
fc1817aClaude2697 }
2698 .blob-code {
2699 overflow-x: auto;
2700 font-family: var(--font-mono);
2ce1d0bClaude2701 font-size: var(--t-sm);
2702 line-height: 1.65;
fc1817aClaude2703 }
2704 .blob-code table { width: 100%; border-collapse: collapse; }
2705 .blob-code .line-num {
2706 width: 1%;
2ce1d0bClaude2707 min-width: 56px;
2708 padding: 0 14px;
fc1817aClaude2709 text-align: right;
2ce1d0bClaude2710 color: var(--text-faint);
fc1817aClaude2711 user-select: none;
2712 white-space: nowrap;
2713 border-right: 1px solid var(--border);
2714 }
2ce1d0bClaude2715 .blob-code .line-content { padding: 0 16px; white-space: pre; }
2716 .blob-code tr:hover { background: var(--bg-hover); }
fc1817aClaude2717
2ce1d0bClaude2718 /* ============================================================ */
2719 /* Commits + diffs */
2720 /* ============================================================ */
2721 .commit-list {
2722 border: 1px solid var(--border);
2723 border-radius: var(--r-md);
2724 overflow: hidden;
2725 background: var(--bg-elevated);
2726 }
fc1817aClaude2727 .commit-item {
2728 display: flex;
2729 justify-content: space-between;
2730 align-items: center;
debcf27Claude2731 padding: 14px 18px;
2732 border-bottom: 1px solid var(--border-subtle);
2ce1d0bClaude2733 transition: background var(--t-fast) var(--ease);
fc1817aClaude2734 }
2735 .commit-item:last-child { border-bottom: none; }
2ce1d0bClaude2736 .commit-item:hover { background: var(--bg-hover); }
debcf27Claude2737 .commit-message {
2738 font-size: var(--t-sm);
2739 font-weight: 500;
2740 line-height: 1.45;
2741 color: var(--text-strong);
2742 letter-spacing: -0.005em;
2743 }
2744 .commit-meta {
2745 font-family: var(--font-mono);
2746 font-size: 11px;
2747 color: var(--text-muted);
2748 margin-top: 5px;
2749 letter-spacing: 0.01em;
2750 }
fc1817aClaude2751 .commit-sha {
2752 font-family: var(--font-mono);
debcf27Claude2753 font-feature-settings: var(--mono-feat);
2754 font-size: 11px;
2755 padding: 4px 9px;
fc1817aClaude2756 background: var(--bg-tertiary);
2757 border: 1px solid var(--border);
2ce1d0bClaude2758 border-radius: var(--r-sm);
debcf27Claude2759 color: var(--accent);
2760 font-weight: 600;
2761 letter-spacing: 0.02em;
2ce1d0bClaude2762 transition: all var(--t-fast) var(--ease);
fc1817aClaude2763 }
debcf27Claude2764 .commit-sha:hover {
479dcd9Claude2765 border-color: rgba(91,110,232,0.40);
debcf27Claude2766 background: var(--accent-gradient-faint);
2767 color: var(--accent-hover);
2768 text-decoration: none;
fc1817aClaude2769 }
2770
82c3a38ccanty labs2771 /* Diff viewer */
fc1817aClaude2772 .diff-view { margin-top: 16px; }
82c3a38ccanty labs2773 .diff-toolbar {
2774 display: flex;
2775 align-items: center;
2776 justify-content: space-between;
2777 margin-bottom: 12px;
2778 gap: 12px;
2779 flex-wrap: wrap;
2780 }
2781 .diff-summary { font-size: var(--t-sm); color: var(--text-muted); }
2782 .diff-view-toggle {
2783 display: flex;
2784 border: 1px solid var(--border);
2785 border-radius: var(--r-sm);
2786 overflow: hidden;
2787 }
2788 .diff-view-btn {
2789 padding: 4px 12px;
2790 font-size: 12px;
2791 font-weight: 500;
2792 background: transparent;
2793 color: var(--text-muted);
2794 border: none;
2795 cursor: pointer;
2796 transition: all var(--t-fast) var(--ease);
2797 font-family: var(--font-sans);
2798 }
2799 .diff-view-btn:not(:first-child) { border-left: 1px solid var(--border); }
2800 .diff-view-btn:hover { color: var(--text); background: var(--bg-hover); }
2801 .diff-view-btn.active { background: var(--accent); color: #fff; }
2802 .diff-jump-list {
2803 display: flex;
2804 flex-wrap: wrap;
2805 gap: 6px;
2806 margin-bottom: 12px;
2807 padding: 8px 12px;
2808 background: var(--bg-secondary);
2809 border: 1px solid var(--border);
2810 border-radius: var(--r-sm);
2811 }
2812 .diff-jump-item {
2813 font-size: 11px;
2814 font-family: var(--font-mono);
2815 color: var(--text-muted);
2816 text-decoration: none;
2817 padding: 2px 6px;
2818 border-radius: 3px;
2819 transition: all var(--t-fast) var(--ease);
2820 }
2821 .diff-jump-item:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
2822 .diff-jump-mod { color: var(--text-muted); }
fc1817aClaude2823 .diff-file {
2824 border: 1px solid var(--border);
2ce1d0bClaude2825 border-radius: var(--r-md);
fc1817aClaude2826 margin-bottom: 16px;
2827 overflow: hidden;
2ce1d0bClaude2828 background: var(--bg-elevated);
fc1817aClaude2829 }
2830 .diff-file-header {
82c3a38ccanty labs2831 display: flex;
2832 align-items: center;
2833 justify-content: space-between;
fc1817aClaude2834 background: var(--bg-secondary);
82c3a38ccanty labs2835 padding: 8px 14px;
fc1817aClaude2836 border-bottom: 1px solid var(--border);
2837 font-family: var(--font-mono);
2ce1d0bClaude2838 font-size: var(--t-sm);
2839 font-weight: 500;
82c3a38ccanty labs2840 cursor: pointer;
2841 user-select: none;
2842 gap: 12px;
fc1817aClaude2843 }
82c3a38ccanty labs2844 .diff-file-header:hover { background: var(--bg-hover); }
2845 .diff-file-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
2846 .diff-file-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-family: var(--font-sans); font-size: 12px; }
2847 .diff-file-chevron { color: var(--text-muted); font-size: 12px; transition: transform var(--t-fast) var(--ease); display: inline-block; }
2848 .diff-file-header.collapsed .diff-file-chevron { transform: rotate(-90deg); }
2849 .diff-table {
2850 width: 100%;
2851 border-collapse: collapse;
fc1817aClaude2852 font-family: var(--font-mono);
2ce1d0bClaude2853 font-size: var(--t-sm);
2854 line-height: 1.65;
82c3a38ccanty labs2855 table-layout: fixed;
2856 }
2857 .diff-ln {
2858 width: 44px;
2859 min-width: 44px;
2860 text-align: right;
2861 padding: 0 8px;
2862 color: var(--text-muted);
2863 user-select: none;
2864 border-right: 1px solid var(--border-subtle);
2865 vertical-align: top;
2866 font-size: 11px;
2867 white-space: nowrap;
2868 opacity: 0.55;
2869 }
2870 .diff-cell { padding: 0 4px 0 2px; white-space: pre; overflow: hidden; vertical-align: top; }
2871 .diff-sigil { display: inline-block; width: 14px; user-select: none; opacity: 0.7; text-align: center; }
2872 .diff-row-add .diff-ln, .diff-row-add .diff-cell { background: rgba(52,211,153,0.08); }
2873 .diff-row-add .diff-cell { color: var(--green); }
2874 .diff-row-add .diff-sigil { color: var(--green); opacity: 1; }
2875 .diff-row-del .diff-ln, .diff-row-del .diff-cell { background: rgba(248,113,113,0.07); }
2876 .diff-row-del .diff-cell { color: var(--red); }
2877 .diff-row-del .diff-sigil { color: var(--red); opacity: 1; }
2878 .diff-row-hunk .diff-ln, .diff-row-hunk .diff-cell { background: rgba(140,109,255,0.05); color: var(--text-link); font-size: 11px; }
2879 .diff-row-ws.diff-row-add .diff-cell { background: rgba(52,211,153,0.04); opacity: 0.75; }
2880 .diff-row-ws.diff-row-del .diff-cell { background: rgba(248,113,113,0.04); opacity: 0.75; }
2881 .diff-ws-badge {
2882 display: inline-block;
2883 margin-left: 8px;
2884 padding: 0 4px;
2885 font-size: 9px;
2886 font-family: var(--font-sans);
2887 color: var(--text-muted);
2888 border: 1px solid var(--border);
2889 border-radius: 3px;
2890 vertical-align: middle;
2891 opacity: 0.6;
2892 user-select: none;
fc1817aClaude2893 }
82c3a38ccanty labs2894 .diff-table-split .diff-ln-old, .diff-table-split .diff-cell-del { background: rgba(248,113,113,0.07); }
2895 .diff-table-split .diff-cell-del { color: var(--red); }
2896 .diff-table-split .diff-ln-new, .diff-table-split .diff-cell-add { background: rgba(52,211,153,0.08); }
2897 .diff-table-split .diff-cell-add { color: var(--green); }
2898 .diff-table-split .diff-cell-empty { background: var(--bg-secondary); }
2899 .diff-table-split .diff-cell-ctx { color: var(--text); }
2900 .diff-table-split .diff-cell-ws { opacity: 0.6; }
2901 .diff-binary { padding: 16px; font-size: var(--t-sm); color: var(--text-muted); font-style: italic; }
fc1817aClaude2902
2903 .stat-add { color: var(--green); font-weight: 600; }
2904 .stat-del { color: var(--red); font-weight: 600; }
2905
2ce1d0bClaude2906 /* ============================================================ */
2907 /* Empty state */
2908 /* ============================================================ */
fc1817aClaude2909 .empty-state {
2910 text-align: center;
ba23fe2Claude2911 padding: 80px 24px;
fc1817aClaude2912 color: var(--text-muted);
e589f77ccantynz-alt2913 border: 1px dashed var(--border);
2ce1d0bClaude2914 border-radius: var(--r-lg);
e589f77ccantynz-alt2915 background: var(--bg);
fc1817aClaude2916 }
2ce1d0bClaude2917 .empty-state h2 {
958d26aClaude2918 font-size: var(--t-xl);
2ce1d0bClaude2919 margin-bottom: 8px;
958d26aClaude2920 color: var(--text-strong);
2921 letter-spacing: -0.022em;
2ce1d0bClaude2922 }
958d26aClaude2923 .empty-state p { font-size: var(--t-md); max-width: 480px; margin: 0 auto; line-height: 1.55; }
fc1817aClaude2924 .empty-state pre {
2925 text-align: left;
2926 display: inline-block;
2927 background: var(--bg-secondary);
958d26aClaude2928 padding: 18px 24px;
2929 border-radius: var(--r-md);
fc1817aClaude2930 border: 1px solid var(--border);
2931 font-family: var(--font-mono);
958d26aClaude2932 font-feature-settings: var(--mono-feat);
2ce1d0bClaude2933 font-size: var(--t-sm);
958d26aClaude2934 margin-top: 24px;
fc1817aClaude2935 line-height: 1.8;
2ce1d0bClaude2936 color: var(--text);
958d26aClaude2937 box-shadow: var(--elev-1);
fc1817aClaude2938 }
2939
2ce1d0bClaude2940 /* ============================================================ */
2941 /* Badges */
2942 /* ============================================================ */
fc1817aClaude2943 .badge {
2ce1d0bClaude2944 display: inline-flex;
2945 align-items: center;
2946 gap: 4px;
2947 padding: 2px 9px;
2948 border-radius: var(--r-full);
2949 font-size: var(--t-xs);
fc1817aClaude2950 font-weight: 500;
2951 background: var(--bg-tertiary);
2952 border: 1px solid var(--border);
2953 color: var(--text-muted);
2ce1d0bClaude2954 line-height: 1.5;
fc1817aClaude2955 }
2956
2ce1d0bClaude2957 /* ============================================================ */
2958 /* Branch dropdown */
2959 /* ============================================================ */
fc1817aClaude2960 .branch-selector {
2961 display: inline-flex;
2962 align-items: center;
2ce1d0bClaude2963 gap: 6px;
2964 padding: 6px 12px;
2965 background: var(--bg-elevated);
fc1817aClaude2966 border: 1px solid var(--border);
2ce1d0bClaude2967 border-radius: var(--r-sm);
2968 font-size: var(--t-sm);
fc1817aClaude2969 color: var(--text);
2970 margin-bottom: 12px;
2ce1d0bClaude2971 transition: border-color var(--t-fast) var(--ease);
fc1817aClaude2972 }
2ce1d0bClaude2973 .branch-selector:hover { border-color: var(--border-strong); }
fc1817aClaude2974
06d5ffeClaude2975 .branch-dropdown {
2976 position: relative;
2977 display: inline-block;
2978 margin-bottom: 12px;
2979 }
2980 .branch-dropdown-content {
2981 display: none;
2982 position: absolute;
2ce1d0bClaude2983 top: calc(100% + 4px);
06d5ffeClaude2984 left: 0;
2985 z-index: 10;
2ce1d0bClaude2986 min-width: 220px;
2987 background: var(--bg-elevated);
2988 border: 1px solid var(--border-strong);
2989 border-radius: var(--r-md);
2990 overflow: hidden;
2991 box-shadow: var(--elev-3);
06d5ffeClaude2992 }
2993 .branch-dropdown:hover .branch-dropdown-content,
2994 .branch-dropdown:focus-within .branch-dropdown-content { display: block; }
2995 .branch-dropdown-content a {
2996 display: block;
2ce1d0bClaude2997 padding: 9px 14px;
2998 font-size: var(--t-sm);
06d5ffeClaude2999 color: var(--text);
3000 border-bottom: 1px solid var(--border);
2ce1d0bClaude3001 transition: background var(--t-fast) var(--ease);
06d5ffeClaude3002 }
3003 .branch-dropdown-content a:last-child { border-bottom: none; }
2ce1d0bClaude3004 .branch-dropdown-content a:hover { background: var(--bg-hover); text-decoration: none; }
3005 .branch-dropdown-content a.active-branch { color: var(--text-link); font-weight: 600; background: var(--accent-gradient-faint); }
06d5ffeClaude3006
2ce1d0bClaude3007 /* ============================================================ */
3008 /* Card grid */
3009 /* ============================================================ */
3010 .card-grid {
3011 display: grid;
3012 grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
3013 gap: 16px;
3014 }
fc1817aClaude3015 .card {
3016 border: 1px solid var(--border);
2ce1d0bClaude3017 border-radius: var(--r-md);
958d26aClaude3018 padding: 20px;
2ce1d0bClaude3019 background: var(--bg-elevated);
3020 transition:
e589f77ccantynz-alt3021 border-color 160ms cubic-bezier(0.16,1,0.3,1),
3022 transform 160ms cubic-bezier(0.16,1,0.3,1),
3023 box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
2ce1d0bClaude3024 position: relative;
3025 overflow: hidden;
958d26aClaude3026 isolation: isolate;
3027 }
2ce1d0bClaude3028 .card:hover {
e589f77ccantynz-alt3029 border-color: rgba(255,255,255,0.18);
3030 transform: translateY(-1px);
3031 box-shadow: 0 8px 24px rgba(0,0,0,0.30);
2ce1d0bClaude3032 }
958d26aClaude3033 .card h3 { font-size: var(--t-md); margin-bottom: 6px; letter-spacing: -0.012em; }
2ce1d0bClaude3034 .card h3 a { color: var(--text); font-weight: 600; }
3035 .card h3 a:hover { color: var(--text-link); }
3036 .card p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.5; }
3037 .card-meta {
3038 display: flex;
3039 gap: 14px;
3040 margin-top: 14px;
3041 padding-top: 14px;
3042 border-top: 1px solid var(--border);
3043 font-size: var(--t-xs);
3044 color: var(--text-muted);
3045 }
3046 .card-meta span { display: flex; align-items: center; gap: 5px; }
3047
3048 /* ============================================================ */
3049 /* Stat card / box */
3050 /* ============================================================ */
3051 .stat-card {
3052 background: var(--bg-elevated);
3053 border: 1px solid var(--border);
3054 border-radius: var(--r-md);
fc1817aClaude3055 padding: 16px;
2ce1d0bClaude3056 transition: border-color var(--t-fast) var(--ease);
3057 }
3058 .stat-card:hover { border-color: var(--border-strong); }
3059 .stat-label {
3060 font-size: var(--t-xs);
3061 color: var(--text-muted);
3062 text-transform: uppercase;
3063 letter-spacing: 0.06em;
3064 font-weight: 500;
3065 }
3066 .stat-value {
3067 font-size: var(--t-xl);
3068 font-weight: 700;
3069 margin-top: 4px;
3070 letter-spacing: -0.025em;
3071 color: var(--text);
3072 font-feature-settings: 'tnum';
fc1817aClaude3073 }
06d5ffeClaude3074
2ce1d0bClaude3075 /* ============================================================ */
3076 /* Star button */
3077 /* ============================================================ */
06d5ffeClaude3078 .star-btn {
3079 display: inline-flex;
3080 align-items: center;
3081 gap: 6px;
2ce1d0bClaude3082 padding: 5px 12px;
3083 background: var(--bg-elevated);
06d5ffeClaude3084 border: 1px solid var(--border);
2ce1d0bClaude3085 border-radius: var(--r-sm);
06d5ffeClaude3086 color: var(--text);
2ce1d0bClaude3087 font-size: var(--t-sm);
3088 font-weight: 500;
06d5ffeClaude3089 cursor: pointer;
2ce1d0bClaude3090 transition: all var(--t-fast) var(--ease);
3091 }
3092 .star-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); text-decoration: none; }
3093 .star-btn.starred {
3094 color: var(--yellow);
958d26aClaude3095 border-color: rgba(251,191,36,0.4);
3096 background: rgba(251,191,36,0.08);
06d5ffeClaude3097 }
3098
2ce1d0bClaude3099 /* ============================================================ */
3100 /* User profile */
3101 /* ============================================================ */
06d5ffeClaude3102 .user-profile {
3103 display: flex;
3104 gap: 32px;
3105 margin-bottom: 32px;
2ce1d0bClaude3106 padding: 24px;
3107 background: var(--bg-elevated);
3108 border: 1px solid var(--border);
3109 border-radius: var(--r-lg);
06d5ffeClaude3110 }
3111 .user-avatar {
3112 width: 96px;
3113 height: 96px;
2ce1d0bClaude3114 border-radius: var(--r-full);
3115 background: var(--accent-gradient-soft);
3116 border: 1px solid var(--border-strong);
06d5ffeClaude3117 display: flex;
3118 align-items: center;
3119 justify-content: center;
2ce1d0bClaude3120 font-size: 36px;
3121 font-weight: 600;
3122 color: var(--text);
06d5ffeClaude3123 flex-shrink: 0;
2ce1d0bClaude3124 letter-spacing: -0.02em;
06d5ffeClaude3125 }
2ce1d0bClaude3126 .user-info h2 { font-size: var(--t-xl); margin-bottom: 2px; letter-spacing: -0.025em; }
3127 .user-info .username { font-size: var(--t-md); color: var(--text-muted); }
3128 .user-info .bio { font-size: var(--t-sm); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
06d5ffeClaude3129
2ce1d0bClaude3130 /* ============================================================ */
3131 /* New repo form */
3132 /* ============================================================ */
3133 .new-repo-form { max-width: 640px; }
3134 .new-repo-form h2 { margin-bottom: 24px; font-size: var(--t-xl); letter-spacing: -0.025em; }
3135 .visibility-options { display: flex; gap: 12px; margin-bottom: 20px; }
06d5ffeClaude3136 .visibility-option {
3137 flex: 1;
2ce1d0bClaude3138 padding: 16px;
06d5ffeClaude3139 border: 1px solid var(--border);
2ce1d0bClaude3140 border-radius: var(--r-md);
3141 background: var(--bg-elevated);
06d5ffeClaude3142 cursor: pointer;
2ce1d0bClaude3143 text-align: left;
3144 transition: all var(--t-fast) var(--ease);
3145 }
3146 .visibility-option:hover { border-color: var(--border-strong); background: var(--bg-surface); }
3147 .visibility-option:has(input:checked) {
3148 border-color: var(--accent);
3149 background: var(--accent-gradient-faint);
3150 box-shadow: 0 0 0 1px var(--accent);
06d5ffeClaude3151 }
3152 .visibility-option input { display: none; }
2ce1d0bClaude3153 .visibility-option .vis-label { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
3154 .visibility-option .vis-desc { font-size: var(--t-xs); color: var(--text-muted); }
79136bbClaude3155
2ce1d0bClaude3156 /* ============================================================ */
3157 /* Issues */
3158 /* ============================================================ */
3159 .issue-tabs { display: flex; gap: 4px; }
3160 .issue-tabs a {
3161 color: var(--text-muted);
3162 font-size: var(--t-sm);
3163 font-weight: 500;
3164 padding: 6px 12px;
3165 border-radius: var(--r-sm);
3166 transition: all var(--t-fast) var(--ease);
3167 }
3168 .issue-tabs a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
3169 .issue-tabs a.active { color: var(--text); background: var(--bg-elevated); }
79136bbClaude3170
2ce1d0bClaude3171 .issue-list {
3172 border: 1px solid var(--border);
3173 border-radius: var(--r-md);
3174 overflow: hidden;
3175 background: var(--bg-elevated);
3176 }
79136bbClaude3177 .issue-item {
3178 display: flex;
2ce1d0bClaude3179 gap: 14px;
79136bbClaude3180 align-items: flex-start;
2ce1d0bClaude3181 padding: 14px 16px;
79136bbClaude3182 border-bottom: 1px solid var(--border);
2ce1d0bClaude3183 transition: background var(--t-fast) var(--ease);
79136bbClaude3184 }
3185 .issue-item:last-child { border-bottom: none; }
2ce1d0bClaude3186 .issue-item:hover { background: var(--bg-hover); }
3187 .issue-state-icon {
3188 font-size: 14px;
3189 padding-top: 2px;
3190 width: 18px;
3191 height: 18px;
3192 display: inline-flex;
3193 align-items: center;
3194 justify-content: center;
3195 border-radius: var(--r-full);
3196 flex-shrink: 0;
3197 }
79136bbClaude3198 .state-open { color: var(--green); }
479dcd9Claude3199 .state-closed { color: var(--text-link); }
2ce1d0bClaude3200 .issue-title {
debcf27Claude3201 font-family: var(--font-display);
3202 font-size: var(--t-md);
2ce1d0bClaude3203 font-weight: 600;
debcf27Claude3204 line-height: 1.35;
3205 letter-spacing: -0.012em;
3206 }
3207 .issue-title a { color: var(--text-strong); transition: color var(--t-fast) var(--ease); }
3208 .issue-title a:hover { color: var(--accent); text-decoration: none; }
3209 .issue-meta {
3210 font-family: var(--font-mono);
3211 font-size: 11px;
3212 color: var(--text-muted);
3213 margin-top: 5px;
3214 letter-spacing: 0.01em;
2ce1d0bClaude3215 }
79136bbClaude3216
3217 .issue-badge {
3218 display: inline-flex;
3219 align-items: center;
2ce1d0bClaude3220 gap: 6px;
79136bbClaude3221 padding: 4px 12px;
2ce1d0bClaude3222 border-radius: var(--r-full);
3223 font-size: var(--t-sm);
79136bbClaude3224 font-weight: 500;
2ce1d0bClaude3225 line-height: 1.4;
79136bbClaude3226 }
958d26aClaude3227 .badge-open { background: rgba(52,211,153,0.10); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
479dcd9Claude3228 .badge-closed { background: rgba(154,168,239,0.10); color: var(--text-link); border: 1px solid rgba(154,168,239,0.35); }
3229 .badge-merged { background: rgba(91,110,232,0.10); color: var(--accent); border: 1px solid rgba(91,110,232,0.35); }
4fc7860Test User3230 .badge-live { background: #0891b2; color: #fff; border: 1px solid #0891b2; }
3231 .badge-soon { background: transparent; color: #6b7280; border: 1px solid #d1d5db; }
3232 .badge-preview { background: transparent; color: #0891b2; border: 1px dashed rgba(8,145,178,0.45); }
2ce1d0bClaude3233 .state-merged { color: var(--accent); }
479dcd9Claude3234 .ai-review { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(91,110,232,0.3); }
79136bbClaude3235
2ce1d0bClaude3236 .issue-detail { max-width: 920px; }
79136bbClaude3237 .issue-comment-box {
3238 border: 1px solid var(--border);
2ce1d0bClaude3239 border-radius: var(--r-md);
79136bbClaude3240 margin-bottom: 16px;
3241 overflow: hidden;
2ce1d0bClaude3242 background: var(--bg-elevated);
79136bbClaude3243 }
3244 .comment-header {
3245 background: var(--bg-secondary);
2ce1d0bClaude3246 padding: 10px 16px;
79136bbClaude3247 border-bottom: 1px solid var(--border);
2ce1d0bClaude3248 font-size: var(--t-sm);
79136bbClaude3249 color: var(--text-muted);
3250 }
3251
2ce1d0bClaude3252 /* ============================================================ */
3253 /* Panel — flexible container used across many pages */
3254 /* ============================================================ */
3255 .panel {
3256 background: var(--bg-elevated);
3257 border: 1px solid var(--border);
3258 border-radius: var(--r-md);
3259 overflow: hidden;
3260 }
3261 .panel-item {
3262 display: flex;
3263 align-items: center;
3264 gap: 12px;
3265 padding: 12px 16px;
79136bbClaude3266 border-bottom: 1px solid var(--border);
2ce1d0bClaude3267 transition: background var(--t-fast) var(--ease);
3268 }
3269 .panel-item:last-child { border-bottom: none; }
3270 .panel-item:hover { background: var(--bg-hover); }
5882af3Claude3271
3272 /* ─── j/k keyboard list navigation ─── */
3273 .is-kbd-focus {
479dcd9Claude3274 outline: 2px solid rgba(91,110,232,0.6) !important;
5882af3Claude3275 outline-offset: -2px;
479dcd9Claude3276 background: rgba(91,110,232,0.06) !important;
5882af3Claude3277 border-radius: 4px;
3278 }
3279 .is-kbd-selected {
3280 outline: 2px solid rgba(52,211,153,0.6) !important;
3281 background: rgba(52,211,153,0.06) !important;
3282 }
2ce1d0bClaude3283 .panel-empty {
3284 padding: 24px;
3285 text-align: center;
79136bbClaude3286 color: var(--text-muted);
2ce1d0bClaude3287 font-size: var(--t-sm);
79136bbClaude3288 }
3289
2ce1d0bClaude3290 /* ============================================================ */
3291 /* Search */
3292 /* ============================================================ */
79136bbClaude3293 .search-results .diff-file { margin-bottom: 12px; }
16b325cClaude3294
2ce1d0bClaude3295 /* ============================================================ */
3296 /* Timeline */
3297 /* ============================================================ */
3298 .timeline { position: relative; padding-left: 28px; }
16b325cClaude3299 .timeline::before {
3300 content: '';
3301 position: absolute;
3302 left: 4px;
3303 top: 8px;
3304 bottom: 8px;
3305 width: 2px;
2ce1d0bClaude3306 background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
16b325cClaude3307 }
2ce1d0bClaude3308 .timeline-item { position: relative; padding-bottom: 16px; }
16b325cClaude3309 .timeline-dot {
3310 position: absolute;
2ce1d0bClaude3311 left: -28px;
3312 top: 8px;
3313 width: 12px;
3314 height: 12px;
3315 border-radius: var(--r-full);
64aa989Claude3316 background: var(--accent);
16b325cClaude3317 border: 2px solid var(--bg);
2ce1d0bClaude3318 box-shadow: 0 0 0 1px var(--border-strong);
16b325cClaude3319 }
3320 .timeline-content {
2ce1d0bClaude3321 background: var(--bg-elevated);
16b325cClaude3322 border: 1px solid var(--border);
2ce1d0bClaude3323 border-radius: var(--r-md);
3324 padding: 14px 16px;
16b325cClaude3325 }
f1ab587Claude3326
2ce1d0bClaude3327 /* ============================================================ */
3328 /* Toggle switch */
3329 /* ============================================================ */
f1ab587Claude3330 .toggle-switch {
3331 position: relative;
3332 display: inline-block;
2ce1d0bClaude3333 width: 40px;
3334 height: 22px;
f1ab587Claude3335 flex-shrink: 0;
3336 margin-left: 16px;
3337 }
3338 .toggle-switch input { opacity: 0; width: 0; height: 0; }
3339 .toggle-slider {
3340 position: absolute;
3341 cursor: pointer;
3342 top: 0; left: 0; right: 0; bottom: 0;
3343 background: var(--bg-tertiary);
3344 border: 1px solid var(--border);
2ce1d0bClaude3345 border-radius: var(--r-full);
e589f77ccantynz-alt3346 transition: all var(--dur-base) var(--ease);
f1ab587Claude3347 }
3348 .toggle-slider::before {
3349 content: '';
3350 position: absolute;
2ce1d0bClaude3351 height: 16px;
3352 width: 16px;
f1ab587Claude3353 left: 2px;
3354 bottom: 2px;
3355 background: var(--text-muted);
2ce1d0bClaude3356 border-radius: var(--r-full);
e589f77ccantynz-alt3357 transition: all var(--dur-base) var(--ease);
f1ab587Claude3358 }
3359 .toggle-switch input:checked + .toggle-slider {
64aa989Claude3360 background: var(--accent);
2ce1d0bClaude3361 border-color: transparent;
479dcd9Claude3362 box-shadow: 0 0 0 1px rgba(91,110,232,0.4);
f1ab587Claude3363 }
3364 .toggle-switch input:checked + .toggle-slider::before {
2ce1d0bClaude3365 transform: translateX(18px);
f1ab587Claude3366 background: #fff;
3367 }
ef8d378Claude3368
3369 /* ============================================================
3370 * 2026 polish layer (purely additive — no layout changes).
3371 * Improves typography rendering, focus states, hover affordances,
3372 * and adds the gradient brand cue to primary buttons. Anything
3373 * that could alter dimensions stays in the rules above.
3374 * ============================================================ */
3375 html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
3376 body { letter-spacing: -0.005em; font-feature-settings: 'cv11', 'ss01', 'ss03'; }
479dcd9Claude3377 *::selection { background: rgba(91,110,232,0.30); color: var(--text); }
ef8d378Claude3378
3379 h1, h2, h3, h4 { letter-spacing: -0.018em; }
3380 h1 { letter-spacing: -0.025em; }
3381
3382 /* Smoother colour transitions everywhere links live */
3383 a { transition: color 120ms cubic-bezier(0.16,1,0.3,1); }
3384
3385 /* Buttons: focus rings + smoother transitions; primary gets the gradient */
3386 .btn {
3387 transition:
3388 background 120ms cubic-bezier(0.16,1,0.3,1),
3389 border-color 120ms cubic-bezier(0.16,1,0.3,1),
3390 transform 120ms cubic-bezier(0.16,1,0.3,1),
3391 box-shadow 120ms cubic-bezier(0.16,1,0.3,1);
3392 }
3393 .btn:active { transform: translateY(0.5px); }
3394 .btn:focus-visible {
3395 outline: none;
479dcd9Claude3396 box-shadow: var(--ring);
ef8d378Claude3397 }
e589f77ccantynz-alt3398 /* .btn-primary + .btn-primary:hover collapsed into the canonical rules
3399 earlier in the sheet; the dead duplicates that lived here were removed. */
ef8d378Claude3400
3401 /* Inputs: cleaner focus ring + hover */
3402 .form-group input:hover,
3403 .form-group textarea:hover,
3404 .form-group select:hover {
3405 border-color: rgba(255,255,255,0.14);
3406 }
3407 .form-group input:focus,
3408 .form-group textarea:focus,
3409 .form-group select:focus {
479dcd9Claude3410 border-color: var(--border-focus);
3411 box-shadow: var(--ring);
ef8d378Claude3412 }
3413 :root[data-theme='light'] .form-group input:hover,
3414 :root[data-theme='light'] .form-group textarea:hover,
3415 :root[data-theme='light'] .form-group select:hover {
3416 border-color: rgba(0,0,0,0.18);
3417 }
3418
e589f77ccantynz-alt3419 /* Cards: subtle hover lift. The unscoped .card + .card:hover that
3420 lived here were collapsed into the canonical .card rules earlier in
3421 the sheet; only the light-theme hover override remains. */
ef8d378Claude3422 :root[data-theme='light'] .card:hover {
3423 border-color: rgba(0,0,0,0.18);
3424 box-shadow: 0 8px 24px rgba(0,0,0,0.08);
3425 }
3426
3427 /* Issue / commit / panel rows: smoother hover */
3428 .issue-item, .commit-item {
3429 transition: background 120ms cubic-bezier(0.16,1,0.3,1);
3430 }
3431 .repo-nav a {
3432 transition: color 120ms cubic-bezier(0.16,1,0.3,1),
3433 border-bottom-color 120ms cubic-bezier(0.16,1,0.3,1);
3434 }
3435 .nav-link {
3436 transition: color 120ms cubic-bezier(0.16,1,0.3,1);
3437 }
3438
e589f77ccantynz-alt3439 /* Auth card: the unscoped .auth-container (and its redundant h2
3440 letter-spacing, byte-identical to the canonical h2 rule) were
3441 collapsed into the canonical rules earlier; only the light-theme
3442 shadow override remains. */
ef8d378Claude3443 :root[data-theme='light'] .auth-container {
3444 box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
3445 }
3446
e589f77ccantynz-alt3447 /* Empty state: dashed border + var(--bg) background collapsed into the
3448 canonical .empty-state rule earlier; the dead duplicate was removed. */
ef8d378Claude3449
3450 /* Badges + commit-sha: smoother transition */
3451 .commit-sha, .badge { transition: all 120ms cubic-bezier(0.16,1,0.3,1); }
3452
8cfb00eClaude3453 /* Gradient text utility — kept for back-compat, renders as plain accent color. */
ef8d378Claude3454 .gradient-text {
8cfb00eClaude3455 color: var(--accent);
ef8d378Claude3456 }
3457
3458 /* Custom scrollbars (subtle, themed) */
3459 ::-webkit-scrollbar { width: 10px; height: 10px; }
3460 ::-webkit-scrollbar-track { background: transparent; }
3461 ::-webkit-scrollbar-thumb {
3462 background: rgba(255,255,255,0.06);
3463 border: 2px solid var(--bg);
3464 border-radius: 9999px;
3465 }
3466 ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
3467 :root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); }
3468 :root[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
3469
3470 /* Honour reduced-motion preference */
3471 @media (prefers-reduced-motion: reduce) {
3472 *, *::before, *::after {
3473 animation-duration: 0.01ms !important;
3474 animation-iteration-count: 1 !important;
3475 transition-duration: 0.01ms !important;
3476 }
3477 }
c63b860Claude3478
3479 /* Block O3 — visual coherence additive rules. */
3480 .card.card-p-none { padding: 0; }
3481 .card.card-p-sm { padding: var(--space-3); }
3482 .card.card-p-md { padding: var(--space-4); }
3483 .card.card-p-lg { padding: var(--space-6); }
3484 .card.card-elevated { box-shadow: var(--elev-2); }
3485 .card.card-gradient {
64aa989Claude3486 background: var(--bg-elevated);
c63b860Claude3487 }
3488 .card.card-gradient::before { opacity: 1; }
3489 .notice {
3490 padding: var(--space-3) var(--space-4);
3491 border-radius: var(--radius-md);
3492 border: 1px solid var(--border);
3493 background: var(--bg-elevated);
3494 color: var(--text);
3495 font-size: var(--font-size-sm);
3496 margin-bottom: var(--space-6);
3497 line-height: var(--leading-normal);
3498 }
3499 .notice-info { border-color: rgba(96,165,250,0.40); background: rgba(96,165,250,0.08); color: var(--text); }
3500 .notice-success { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
3501 .notice-warn { border-color: var(--yellow); background: rgba(251,191,36,0.10); color: var(--yellow); }
3502 .notice-error { border-color: var(--red); background: rgba(248,113,113,0.10); color: var(--red); }
479dcd9Claude3503 .notice-accent { border-color: var(--accent); background: rgba(91,110,232,0.10); color: var(--text); }
c63b860Claude3504 .email-preview {
3505 padding: var(--space-5);
3506 background: #fff;
3507 color: #111;
3508 border-radius: var(--radius-md);
3509 }
3510 .code-block {
3511 margin: var(--space-2) 0 0;
3512 padding: var(--space-3);
3513 background: var(--bg-tertiary);
3514 border: 1px solid var(--border-subtle);
3515 border-radius: var(--radius-sm);
3516 font-family: var(--font-mono);
3517 font-size: var(--font-size-xs);
3518 line-height: var(--leading-normal);
3519 overflow-x: auto;
3520 }
3521 .status-pill-operational {
3522 display: inline-flex;
3523 align-items: center;
3524 padding: var(--space-1) var(--space-3);
3525 border-radius: var(--radius-full);
3526 font-size: var(--font-size-xs);
3527 font-weight: 600;
3528 background: rgba(52,211,153,0.15);
3529 color: var(--green);
3530 }
3531 .api-tag {
3532 display: inline-flex;
3533 align-items: center;
3534 font-size: var(--font-size-xs);
3535 padding: 2px var(--space-2);
3536 border-radius: var(--radius-sm);
3537 font-family: var(--font-mono);
3538 }
3539 .api-tag-auth { background: rgba(96,165,250,0.15); color: var(--accent); }
3540 .api-tag-scope { background: rgba(52,211,153,0.15); color: var(--green); }
3541 .stat-number {
3542 font-size: var(--font-size-xl);
3543 font-weight: 700;
3544 color: var(--text-strong);
3545 line-height: var(--leading-tight);
3546 }
3547 .stat-number-accent { color: var(--accent); }
3548 .stat-number-blue { color: var(--blue); }
3549 .stat-number-purple { color: var(--text-link); }
3550 footer .footer-tag-sub {
3551 margin-top: var(--space-2);
3552 font-size: var(--font-size-xs);
3553 color: var(--text-faint);
3554 line-height: var(--leading-normal);
3555 }
3556 footer .footer-version-pill {
3557 display: inline-flex;
3558 align-items: center;
3559 gap: var(--space-2);
3560 padding: var(--space-1) var(--space-3);
3561 border-radius: var(--radius-full);
3562 border: 1px solid var(--border);
3563 background: var(--bg-elevated);
3564 color: var(--text-faint);
3565 font-family: var(--font-mono);
3566 font-size: var(--font-size-xs);
3567 cursor: help;
3568 }
3569 footer .footer-banner {
3570 max-width: 1240px;
3571 margin: var(--space-6) auto 0;
3572 padding: var(--space-3) var(--space-4);
3573 border-radius: var(--radius-md);
3574 border: 1px solid var(--border);
3575 background: var(--bg-elevated);
3576 color: var(--text);
3577 font-family: var(--font-mono);
3578 font-size: var(--font-size-xs);
3579 letter-spacing: 0.04em;
3580 text-transform: uppercase;
3581 text-align: center;
3582 }
3583 footer .footer-banner-info { border-color: rgba(96,165,250,0.40); color: var(--blue); }
3584 footer .footer-banner-warn { border-color: rgba(251,191,36,0.40); color: var(--yellow); }
3585 footer .footer-banner-error { border-color: rgba(248,113,113,0.45); color: var(--red); }
dc26881CC LABS App3586
cf9178bTest User3587 /* ============================================================ */
3588 /* Global toast notifications. */
3589 /* Slide-in from right, auto-dismiss, ARIA-live for SR users. */
3590 /* ============================================================ */
3591 .gx-toast {
3592 pointer-events: auto;
3593 display: inline-flex;
3594 align-items: flex-start;
3595 gap: 10px;
3596 min-width: 280px;
3597 max-width: min(440px, calc(100vw - 32px));
3598 padding: 12px 14px 12px 12px;
3599 background: var(--bg-elevated);
3600 border: 1px solid var(--border);
3601 border-radius: 10px;
3602 box-shadow:
3603 0 12px 36px -10px rgba(15,16,28,0.18),
3604 0 2px 6px rgba(15,16,28,0.04),
3605 0 0 0 1px rgba(15,16,28,0.02);
3606 color: var(--text);
3607 font-size: 13.5px;
3608 line-height: 1.45;
3609 opacity: 0;
3610 transform: translateX(16px);
3611 transition:
3612 opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
3613 transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
3614 }
3615 .gx-toast--in { opacity: 1; transform: translateX(0); }
3616 .gx-toast--out { opacity: 0; transform: translateX(16px); }
3617 .gx-toast__icon {
3618 flex-shrink: 0;
3619 width: 20px; height: 20px;
3620 border-radius: 50%;
3621 display: inline-flex;
3622 align-items: center;
3623 justify-content: center;
3624 font-size: 12px;
3625 font-weight: 700;
3626 line-height: 1;
3627 margin-top: 1px;
3628 }
3629 .gx-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; word-wrap: break-word; }
3630 .gx-toast__close {
3631 flex-shrink: 0;
3632 width: 22px; height: 22px;
3633 border: 0;
3634 background: transparent;
3635 color: var(--text-muted);
3636 font-size: 18px;
3637 line-height: 1;
3638 cursor: pointer;
3639 border-radius: 4px;
3640 padding: 0;
3641 margin: -2px -2px 0 0;
3642 transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
3643 }
3644 .gx-toast__close:hover { background: var(--bg-hover); color: var(--text); }
3645 .gx-toast--success .gx-toast__icon { background: rgba(5,150,105,0.14); color: var(--green); }
3646 .gx-toast--error .gx-toast__icon { background: rgba(220,38,38,0.14); color: var(--red); }
3647 .gx-toast--warn .gx-toast__icon { background: rgba(217,119,6,0.16); color: var(--yellow); }
479dcd9Claude3648 .gx-toast--info .gx-toast__icon { background: rgba(91,110,232,0.14); color: var(--accent); }
cf9178bTest User3649 @media (prefers-reduced-motion: reduce) {
3650 .gx-toast { transition: opacity 60ms linear; transform: none; }
3651 .gx-toast--in, .gx-toast--out { transform: none; }
3652 }
3653
dc26881CC LABS App3654 /* ============================================================ */
3655 /* Block U4 — cross-document view transitions. */
3656 /* Chrome 126+, Edge, Safari 18.2+ get a soft 200ms fade on */
3657 /* every same-origin navigation. Older browsers ignore these */
3658 /* rules entirely — no JS shim, no breakage. */
3659 /* prefers-reduced-motion disables the animation honourably. */
3660 /* ============================================================ */
3661 @view-transition {
3662 navigation: auto;
3663 }
3664 ::view-transition-old(root),
3665 ::view-transition-new(root) {
3666 animation-duration: 200ms;
3667 animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
3668 }
3669 ::view-transition-old(root) {
3670 animation-name: vt-fade-out;
3671 }
3672 ::view-transition-new(root) {
3673 animation-name: vt-fade-in;
3674 }
3675 @keyframes vt-fade-out {
3676 to { opacity: 0; }
3677 }
3678 @keyframes vt-fade-in {
3679 from { opacity: 0; }
3680 }
3681 @media (prefers-reduced-motion: reduce) {
3682 ::view-transition-old(root),
3683 ::view-transition-new(root) {
3684 animation-duration: 0s;
3685 }
3686 }
3687 /* The transition system picks up its root subject from this rule. */
3688 body {
3689 view-transition-name: root;
3690 }
fc1817aClaude3691`;