/* sky.css : the shared look of the desktop app and the site.
   Near-black, hairlines, quiet type. Colour appears in ONE place per pane: a grainy "blue hour" band at its top
   (.sky), which drifts very slowly. Blue is otherwise only a small accent (focus, progress, links). */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0c0c0d; --bg-2: #090909; --rail: #070707; --panel: #111112; --panel-2: #161617; --raise: #1c1c1e;
  --line: rgba(255, 255, 255, .078); --line-2: rgba(255, 255, 255, .14);
  --text: #f2f2f3; --muted: #a2a2a8; --faint: #6c6c73;
  --blue: #00a7f5; --blue-2: #5cc9ff; --blue-deep: #0084d1; --cyan: #22d3ee;
  --green: #3ecf8e; --orange: #f5a25a; --red: #f0716f;
  --r-s: 9px; --r-m: 12px; --r-l: 16px; --r-xl: 22px;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, sans-serif;   /* 2026-12-03: the system font first, as in the web app (shell.css --font) */
  --display: "Inter Tight", "Inter", -apple-system, "Segoe UI Variable Display", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ui); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }

/* ---- the band ------------------------------------------------------------------------------------------------ */
.sky { --h: 205; position: absolute; left: 0; right: 0; top: 0; height: var(--sky-h, 150px); overflow: hidden; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, hsl(var(--h) 42% 13%) 0%, hsl(var(--h) 46% 16%) 36%, hsl(calc(var(--h) + 4) 40% 11%) 64%, transparent 100%); }
.sky i { position: absolute; display: block; border-radius: 50%; filter: blur(28px); will-change: transform; }
.sky i:nth-child(1) { left: -8%; top: 30%; width: 62%; height: 62%; background: hsl(var(--h) 85% 56% / .22); animation: sky-a 46s ease-in-out infinite alternate; }
.sky i:nth-child(2) { right: -10%; top: 8%; width: 58%; height: 70%; background: hsl(calc(var(--h) + 8) 75% 40% / .28); animation: sky-b 58s ease-in-out infinite alternate; }
.sky i:nth-child(3) { left: 34%; top: 48%; width: 40%; height: 46%; background: hsl(calc(var(--h) - 12) 85% 66% / .16); animation: sky-a 70s ease-in-out infinite alternate-reverse; }
.sky::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .7; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.sky::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 0%, transparent 38%, var(--sky-to, var(--bg)) 100%); }
.sky.h-a { --h: 205; } .sky.h-b { --h: 200; } .sky.h-c { --h: 209; } .sky.h-d { --h: 196; }
@keyframes sky-a { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(6%, -6%, 0) scale(1.08); } }
@keyframes sky-b { from { transform: translate3d(4%, 0, 0); } to { transform: translate3d(-6%, 5%, 0) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .sky i { animation: none; } }

/* ---- small shared pieces ------------------------------------------------------------------------------------ */
.eyebrow { font: 600 11px/1 var(--ui); letter-spacing: .02em; color: var(--faint); }   /* 2026-12-03: no monospace small caps: a plain system-font section label */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text); font: 550 13px/1 var(--ui); cursor: pointer; text-decoration: none; transition: background .16s, border-color .16s, transform .16s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: scale(.975); }
.btn.white, .btn.pri { background: #ececee; color: #0b0b0c; border-color: #ececee; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset; }
.btn.white:hover, .btn.pri:hover { background: #fff; border-color: #fff; }
.btn.blue { background: linear-gradient(180deg, #4fc3ff 0%, #00a7f5 55%, #0090dc 100%); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 0 0 1px rgba(0, 132, 209, .55), 0 8px 24px -8px rgba(0, 167, 245, .6); }
.btn.blue:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 1px rgba(0, 132, 209, .65), 0 10px 30px -8px rgba(0, 167, 245, .78); }
.btn.ghost { border-color: transparent; color: var(--muted); } .btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .06); border-color: transparent; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg, .btn img { width: 14px; height: 14px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 6px; font: 550 11px/1 var(--ui); background: rgba(255, 255, 255, .06); color: var(--muted); }
.pill.ok { color: var(--green); background: rgba(62, 207, 142, .11); }
.pill.run { color: var(--blue-2); background: rgba(0, 167, 245, .13); }
.pill.warn { color: var(--muted); background: rgba(255, 255, 255, .07); }
.pill.bad { color: var(--red); background: rgba(240, 113, 111, .12); }
.pill .d { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.run .d { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
