/* GhostProtocol: one dark theme, violet light behind frosted glass. Shared by the landing page and the app. */
:root {
  color-scheme: dark;
  --bg: #08090f; --ink: #f3f4f8; --ink-2: #a2a7b6; --ink-3: #6d7384;
  --glass: rgba(17, 21, 32, .72); --glass-2: rgba(255, 255, 255, .04); --hair: rgba(255, 255, 255, .08); --hair-2: rgba(255, 255, 255, .14);
  --violet: #7b5cff; --violet-2: #9a83ff; --violet-ink: #c4b7ff;
  --mint: #3fe0a5; --red: #ff7d7d; --amber: #f2c45c;
  --sans: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r-lg: 20px; --r-md: 14px; --r-sm: 9px;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { transition: none !important; animation: none !important } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); min-height: 100vh }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; border-radius: 6px }
img, svg { display: block; max-width: 100% }

.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 34% at 20% -4%, rgba(117, 86, 255, .55) 0, rgba(90, 63, 230, .2) 45%, transparent 75%),
              radial-gradient(40% 32% at 92% 104%, rgba(117, 86, 255, .45) 0, transparent 72%),
              radial-gradient(22% 30% at 100% 30%, rgba(178, 60, 130, .18) 0, transparent 75%) }

.glass { background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 45%), var(--glass);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .045); border-radius: var(--r-lg) }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
  font: 500 14px var(--sans); color: #fff; background: linear-gradient(180deg, #8b6fff, #7151f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -8px rgba(113, 81, 242, .8); transition: filter .15s, transform .1s }
.btn:hover { filter: brightness(1.08) }
.btn:active { transform: translateY(1px) }
.btn.quiet { background: rgba(255, 255, 255, .04); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2) }
.btn.quiet:hover { background: rgba(255, 255, 255, .07); filter: none }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px }
.btn svg { width: 16px; height: 16px }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 12px var(--sans); white-space: nowrap }
.pill.ok { color: var(--mint); background: rgba(63, 224, 165, .12) }
.pill.bad { color: var(--red); background: rgba(255, 125, 125, .12) }
.pill.wait { color: var(--amber); background: rgba(242, 196, 92, .12) }
.pill.live { color: var(--violet-ink); background: rgba(123, 92, 255, .16) }

.mono { font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere }
.muted { color: var(--ink-2) }
.faint { color: var(--ink-3) }
.av { display: inline-block; border-radius: 50%; overflow: hidden; background: #eef0f4; flex: none }
.av svg { width: 100%; height: 100% }
.mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(150deg, #9a83ff, #5b3fe0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3) }
.mark svg { width: 16px; height: 16px }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--sans); letter-spacing: -.01em }
.skel { color: var(--ink-3) }
@media (prefers-reduced-motion: no-preference) { .skel { animation: pulse 1.4s ease-in-out infinite } @keyframes pulse { 50% { opacity: .4 } } }
[hidden] { display: none !important }

/* Long commands wrap inside their box instead of scrolling sideways. */
.cmd pre { white-space: pre-wrap; overflow-wrap: anywhere }
