/* Liftoff Cloud additions on top of board.css: forms, the run setup, the
   messages-style run thread, account settings, dialogs and sign-in. */

:root {
  --bubble: #ffffff;
  --bubble-line: rgba(0, 0, 0, .075);
  --code-bg: #141413;
}
:root[data-theme="dark"] {
  --bubble: rgba(255, 255, 255, .06);
  --bubble-line: rgba(255, 255, 255, .07);
  --code-bg: #060606;
}

.btn.big { height: 44px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 8px; }
.btn.good {
  background: #0f9b6a; border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), var(--glow);
}
.btn.good:hover { filter: brightness(1.08); background: #0f9b6a; border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.field > span { font-size: 12px; font-weight: 550; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.in, .field input[type=text], .field input[type=password], .field input[type=url], .field select, .field textarea, textarea.in {
  width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink);
  font: inherit; font-size: 13.5px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
  transition: border-color var(--fast), box-shadow var(--mid) var(--ease), background-color var(--fast);
}
.in::placeholder, .field input::placeholder, textarea::placeholder { color: var(--faint); }
textarea.in, .field textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.in:focus, .field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft);
}
.in:disabled { opacity: .55; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 160px; }
.grow { flex: 1; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.card-pad { padding: 6px 18px 18px; }
.head-tile {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--primary-ink); background: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--glow);
}
.head-tile svg { width: 15px; height: 15px; }
.head-tile.brand { width: 34px; height: 34px; border-radius: 10px; color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi); }
.head-tile.brand .logo { width: 19px; height: 19px; }
.head-tile.brand .logo.wide { width: 23px; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px 16px; margin-top: 12px;
  border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); text-align: center; color: var(--muted); cursor: pointer;
  transition: border-color var(--mid), background-color var(--mid), transform var(--mid) var(--spring);
}
.drop:hover, .drop.over { border-color: var(--accent); color: var(--ink-2); background: var(--accent-soft); }
.drop.over { transform: scale(1.015); }
.drop-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); transition: transform var(--slow) var(--spring); }
.drop:hover .drop-icon, .drop.over .drop-icon { transform: translateY(-3px); }
.drop-icon svg { width: 20px; height: 20px; }
.drop-title { color: var(--ink); font-weight: 550; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.note-box { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.note-box.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.note-box.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad); }
.note-box .i { margin-top: 2px; }
.note-box.warn .linkish { color: inherit; font-weight: 600; }
.list-tight { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.list-tight li { margin: 4px 0; }
.list-tight li::marker { color: var(--accent); }

/* sidebar foot: who's signed in, opens Account settings */
.side .foot { padding: 10px 0 0; }
/* On phones the sidebar is a strip, so your picture sits in the top bar. */
.top-me { display: none; }
@media (max-width: 820px) {
  .top-me { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
  .top-me .pic { width: 26px; height: 26px; }
  .top-me.on .pic { box-shadow: 0 0 0 2px var(--ink); }
}
.who { gap: 9px; }
.pic { width: 26px; height: 26px; border-radius: 50%; flex: none; object-fit: cover; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 11px; font-weight: 650; box-shadow: 0 0 0 2px var(--line); }
.pic.lg { width: 56px; height: 56px; font-size: 22px; box-shadow: 0 0 0 3px var(--line), var(--shadow); }
.who .nm { flex: 1; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.who .end .i { transition: transform var(--slow) var(--spring), color var(--fast); }
.who:hover .end .i, .who.on .end .i { transform: rotate(60deg); }

/* ---------- account settings ---------- */
.content > .narrow { width: 100%; max-width: 780px; }
.profile { display: flex; align-items: center; gap: 18px; padding: 22px; }
.profile h2 { margin: 0; font-size: 19px; font-weight: 680; letter-spacing: -.02em; }
.profile .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 5px; color: var(--muted); font-size: 13px; }
.profile .meta .pill .i { width: 12px; height: 12px; }
.profile p { margin: 10px 0 0; }
.profile > .btn { align-self: flex-start; }

.theme-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 0 2px; }
.theme-opt {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 11px; min-width: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); box-shadow: inset 0 1px 0 var(--hi);
  transition: border-color var(--mid), background-color var(--mid), transform var(--mid) var(--spring), box-shadow var(--mid) var(--ease);
}
.theme-opt:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.theme-opt:active { transform: scale(.98); }
.theme-opt.on { border-color: color-mix(in srgb, var(--ink) 45%, var(--line)); background: var(--surface-solid); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm); }
.theme-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-opt .cap { display: flex; align-items: center; gap: 7px; padding: 0 3px; font-size: 13px; font-weight: 550; min-width: 0; }
.theme-opt .cap > span:not(.tick) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-opt .cap .i { color: var(--muted); width: 15px; height: 15px; }
.theme-opt.on .cap .i { color: var(--ink); }
.theme-opt .tick { margin-left: auto; flex: none; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; transition: background-color var(--mid), border-color var(--fast); }
.theme-opt.on .tick { border-color: transparent; background: var(--primary); animation: tick-pop var(--slow) var(--spring); }
.theme-opt.on .tick::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-ink); }
.tip { margin: 12px 0 0; }

/* The little window drawn in each theme. Its colours are fixed, so the light one stays light in dark mode. */
.prev, .prev-split { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; }
.prev {
  --pb: #f3f3f2; --ps: #ffffff; --pl: rgba(0, 0, 0, .09); --pi: #1a1a19; --pm: rgba(0, 0, 0, .14);
  display: grid; grid-template-columns: 30% minmax(0, 1fr); background: var(--pb); box-shadow: inset 0 0 0 1px var(--pl);
}
.prev.dark { --pb: #0b0b0b; --ps: #181818; --pl: rgba(255, 255, 255, .1); --pi: #ededeb; --pm: rgba(255, 255, 255, .18); }
.prev-split .prev { position: absolute; inset: 0; }
.prev-split .prev.dark { clip-path: polygon(64% 0, 100% 0, 100% 100%, 36% 100%); }
.prev-side { display: flex; flex-direction: column; gap: 5px; padding: 9% 12%; border-right: 1px solid var(--pl); }
.prev-mark { width: 30%; aspect-ratio: 1; border-radius: 3px; background: var(--pi); margin-bottom: 3px; }
.prev-line { height: 4px; border-radius: 2px; background: var(--pm); }
.prev-line.short { width: 60%; }
.prev-main { display: flex; flex-direction: column; gap: 6%; padding: 9% 10%; min-width: 0; }
.prev-title { width: 46%; height: 6px; border-radius: 3px; background: var(--pi); }
.prev-card { position: relative; flex: 1; border-radius: 5px; background: var(--ps); box-shadow: inset 0 0 0 1px var(--pl); }
.prev-btn { position: absolute; right: 9%; bottom: 18%; width: 28%; height: 7px; border-radius: 3px; background: var(--pi); }

.danger-card { border-color: color-mix(in srgb, var(--bad) 22%, var(--line)); }
.danger-card .card-head h2 { color: var(--bad); }
.btn.danger-solid { background: #d4283a; border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--glow); }
.btn.danger-solid:hover { background: #d4283a; border-color: transparent; filter: brightness(1.08); }
.head-tile.bad { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 22%, transparent); }
.notice { margin: 0 0 14px; }

/* ---------- step and model picker ---------- */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.picker.models { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pick {
  position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); cursor: pointer; min-width: 0; box-shadow: inset 0 1px 0 var(--hi);
  transition: border-color var(--mid), background-color var(--mid), transform var(--mid) var(--spring), box-shadow var(--mid);
}
.pick:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.pick:active { transform: scale(.985); }
.pick.on { border-color: color-mix(in srgb, var(--ink) 28%, var(--line)); background: var(--surface-solid); box-shadow: inset 0 1px 0 var(--hi), var(--shadow-sm); }
.pick input {
  appearance: none; margin: 1px 0 0; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--faint); background: var(--field); flex: none;
  display: grid; place-items: center; cursor: pointer; transition: background-color var(--mid), border-color var(--fast), transform var(--mid) var(--spring);
}
.pick input[type=radio] { border-radius: 50%; }
.pick input:checked { border-color: transparent; background: var(--primary); box-shadow: none; animation: tick-pop var(--slow) var(--spring); }
.pick input[type=checkbox]:checked::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--primary-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pick input[type=radio]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-ink); }
.pick .t { min-width: 0; }
.pick .t b { font-weight: 600; display: block; }
.pick .t .small { display: block; overflow: hidden; text-overflow: ellipsis; }
.pick.off { opacity: .55; }

.sec-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.sec-title { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sec-head .btn { margin-left: auto; }

.launch { overflow: hidden; }
.launch-top {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px 18px; border-bottom: 1px solid var(--line-2);
  background: radial-gradient(700px 200px at 0% 0%, var(--accent-soft), transparent 70%);
}
.launch-top h2 { margin: 2px 0 4px; font-size: 19px; font-weight: 680; letter-spacing: -.02em; }
.launch-top p { margin: 0; color: var(--ink-2); max-width: 72ch; }
.facts-inline { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.facts-inline li { display: flex; align-items: flex-start; gap: 8px; }
.facts-inline .i { color: var(--accent); margin-top: 2px; width: 15px; height: 15px; }
.launch-body { padding: 4px 22px 22px; }
.launch-body > .note-box { margin-top: 16px; }
.launch-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Claude's orb ---------- */
.orb {
  position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--primary-ink); background: var(--primary); font-size: 12px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 3px rgba(0, 0, 0, .2);
}
.orb.lg { width: 46px; height: 46px; font-size: 18px; }
.orb.thinking::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from var(--angle), transparent 0 35%, color-mix(in srgb, var(--run) 40%, transparent) 65%, var(--run) 88%, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: orbit 1.3s linear infinite;
}
.orb.waiting::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 2px var(--warn-dot); animation: halo 2s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(.9); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }

/* app page: the open run */
.run-card.needs { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.run-card.needs::before { background: radial-gradient(500px 160px at 0% 0%, var(--warn-soft), transparent 70%); }

/* ---------- run page ---------- */
.run-head { align-items: center; }
.run-head .grow { min-width: 0; }
.run-head h1 { font-size: 24px; }
.run-head p { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-head .actions { flex-wrap: wrap; justify-content: flex-end; }
.run-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.run-side { position: sticky; top: 76px; }

.chat { display: flex; flex-direction: column; height: max(560px, calc(100dvh - 196px)); overflow: hidden; }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, transparent), transparent);
}
.chat-name { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.thread-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.thread {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 22px 22px 12px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px); mask-image: linear-gradient(180deg, transparent 0, #000 26px);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.thread:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-soft); }
.thread-in { margin-top: auto; display: flex; flex-direction: column; }

.cmsg { display: flex; gap: 10px; align-items: flex-end; min-width: 0; }
.cmsg + .cmsg { margin-top: 16px; }
.cmsg.claude:not(.first), .cmsg.you:not(.first) { margin-top: 4px; }
.cmsg.you { justify-content: flex-end; }
.cmsg.center { justify-content: center; }
.gutter { width: 28px; flex: none; display: flex; align-items: flex-end; }
.col { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; max-width: min(680px, 86%); }
.cmsg.you .col { align-items: flex-end; max-width: min(560px, 78%); }
.cmsg.wide .col { width: min(680px, 100%); max-width: 100%; align-items: stretch; }
.who-line { font-size: 11px; font-weight: 600; color: var(--muted); margin: 0 0 4px 4px; letter-spacing: .01em; }
.stamp { font-size: 11px; color: var(--faint); font-weight: 550; letter-spacing: .02em; padding: 4px 0; }

.bubble {
  position: relative; padding: 10px 14px; border-radius: 20px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap;
  background: var(--bubble); color: var(--ink); border: 1px solid var(--bubble-line); box-shadow: inset 0 1px 0 var(--hi), var(--shadow-sm);
}
.bubble.rich { white-space: normal; }
/* Bubbles in a run hug each other on the sender's side, like a messages app. */
.cmsg.claude.first:not(.last) .bubble { border-bottom-left-radius: 7px; }
.cmsg.claude:not(.first):not(.last) .bubble { border-top-left-radius: 7px; border-bottom-left-radius: 7px; }
.cmsg.claude.last:not(.first) .bubble { border-top-left-radius: 7px; }
.cmsg.you .bubble {
  background: var(--primary); color: var(--primary-ink); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--shadow-sm);
}
.cmsg.you.first:not(.last) .bubble { border-bottom-right-radius: 7px; }
.cmsg.you:not(.first):not(.last) .bubble { border-top-right-radius: 7px; border-bottom-right-radius: 7px; }
.cmsg.you.last:not(.first) .bubble { border-top-right-radius: 7px; }
.cmsg.you .bubble.sending { opacity: .75; }
.bubble.decision { display: inline-flex; align-items: flex-start; gap: 7px; }
.bubble.decision .i { margin-top: 3px; width: 14px; height: 14px; stroke-width: 2.4; }
.cmsg.you .bubble.decision.declined { background: var(--bubble); color: var(--ink); border-color: var(--bubble-line); text-shadow: none; box-shadow: inset 0 1px 0 var(--hi), var(--shadow-sm); }
.bubble.decision.declined .i { color: var(--bad); }
.bubble.err { display: flex; gap: 8px; align-items: flex-start; background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.bubble.err .i { margin-top: 3px; }
.bubble.asked { border-color: color-mix(in srgb, var(--warn) 30%, var(--bubble-line)); }
.asked-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; color: var(--warn); margin-bottom: 4px; }
.asked-tag .i { width: 12px; height: 12px; }

.rich p { margin: 0; }
.rich > * + * { margin-top: 8px; }
.rich ul, .rich ol { margin-bottom: 0; padding-left: 20px; }
.rich li { margin: 3px 0; padding-left: 2px; }
.rich li::marker { color: var(--accent); }
.rich code { font-size: 12.5px; padding: 1px 5px; border-radius: 6px; background: var(--hover); border: 1px solid var(--line-2); }
.rich a { color: var(--accent); }
.rich strong { font-weight: 650; }

/* typing indicator */
.bubble.typing { display: inline-flex; align-items: center; gap: 10px; padding: 11px 15px; font-size: 13px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dot 1.3s var(--ease-in-out) infinite; }
.dots i:nth-child(2) { animation-delay: .16s; }
.dots i:nth-child(3) { animation-delay: .32s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.shimmer {
  background: linear-gradient(90deg, var(--muted) 0 40%, var(--ink) 50%, var(--muted) 60% 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* system lines and milestones */
.sys {
  display: inline-flex; align-items: center; gap: 7px; max-width: min(620px, 94%); padding: 5px 12px; border-radius: 999px;
  font-size: 12px; color: var(--muted); background: var(--hover); border: 1px solid var(--line-2);
}
.sys .i { width: 13px; height: 13px; flex: none; }
.sys > span { min-width: 0; }
.sys.good, .sys.milestone.done, .sys.milestone.skipped { color: var(--good); background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 22%, transparent); }
.sys.milestone.blocked { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.sys.milestone b { font-weight: 650; }
details.sys { display: block; border-radius: 16px; padding: 0; }
details.sys > summary { display: flex; align-items: center; gap: 7px; padding: 5px 12px; cursor: pointer; list-style: none; }
details.sys > summary::-webkit-details-marker { display: none; }
details.sys .chev { width: 13px; height: 13px; transition: transform var(--mid) var(--spring); }
details.sys[open] .chev { transform: rotate(180deg); }
details.sys pre.out { margin: 0 10px 10px; max-height: 320px; overflow: auto; }

/* tool work, folded into one line */
.acts-group {
  position: relative; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2);
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow-sm); transition: border-color var(--mid);
}
.acts-group:hover { border-color: var(--line-strong); }
.acts-group > summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; border-radius: inherit; }
.acts-group > summary::-webkit-details-marker { display: none; }
.acts-i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--good-dot); background: var(--good-soft); }
.acts-i svg { width: 14px; height: 14px; }
.acts-group.has-err .acts-i { color: var(--bad); background: var(--bad-soft); }
.acts-group.working .acts-i { color: var(--run); background: var(--run-soft); }
.acts-group.working .acts-i svg { animation: spin 1s linear infinite; }
.acts-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acts-sum { font-size: 13px; font-weight: 550; color: var(--ink); }
.acts-last { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acts-group[open] .acts-last { display: none; }
.acts-group .chev { color: var(--faint); transition: transform var(--mid) var(--spring); }
.acts-group[open] > summary .chev { transform: rotate(180deg); }
.acts-group.working { border-color: transparent; }
.acts-group.working::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), color-mix(in srgb, var(--run) 20%, transparent) 0 55%, var(--run) 80%, color-mix(in srgb, var(--run) 20%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 2.4s linear infinite;
}
.acts-list { list-style: none; margin: 0; padding: 6px 12px 10px; border-top: 1px solid var(--line-2); }
.act { position: relative; display: flex; gap: 10px; padding: 5px 0; font-size: 13px; animation: rise var(--mid) var(--ease) backwards; }
.act::before { content: ""; position: absolute; left: 11px; top: 30px; bottom: -4px; width: 1px; background: var(--line); }
.act:last-child::before { display: none; }
.act-i { position: relative; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--hover); color: var(--muted); flex: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.act-i svg { width: 13px; height: 13px; }
.act.err .act-i { color: var(--bad); background: var(--bad-soft); }
.act.working .act-i { color: var(--run); background: var(--run-soft); }
.act.working .act-i svg { animation: spin 1s linear infinite; }
.act-body { flex: 1; min-width: 0; padding-top: 2px; color: var(--ink-2); overflow-wrap: anywhere; }
.act-body > summary { cursor: pointer; list-style: none; }
.act-body > summary::-webkit-details-marker { display: none; }
.act-body > summary:hover .cmd-inline { color: var(--accent); }
.act-body pre.out { margin: 6px 0 2px; }
.cmd-inline { font-family: var(--mono); font-size: 12px; background: none; border: 0; padding: 0; color: var(--ink); transition: color var(--fast); }
.err-tag { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--bad); }
pre.out {
  font-family: var(--mono); font-size: 12px; line-height: 1.5; background: var(--code-bg); color: #d9d9e6; border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; margin: 0;
}

/* Claude's questions and approvals */
.ask-card {
  position: relative; border-radius: 18px; padding: 14px 16px 16px;
  background: linear-gradient(160deg, var(--warn-soft), transparent 55%), var(--bubble);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
  box-shadow: inset 0 1px 0 var(--hi), 0 0 0 4px color-mix(in srgb, var(--warn-dot) 9%, transparent), var(--shadow);
}
.ask-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ask-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--warn); }
.ask-badge .i { width: 14px; height: 14px; }
.ask-top time { margin-left: auto; font-size: 11px; color: var(--faint); }
.ask-q { font-size: 14px; font-weight: 550; color: var(--ink); line-height: 1.5; }
pre.cmd {
  position: relative; margin: 10px 0 0; padding: 11px 14px; border-radius: 12px; background: var(--code-bg); color: #ececf6; border: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
pre.cmd::before { content: "$ "; color: #8f8fa6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform var(--mid) var(--spring), background-color var(--fast), color var(--fast), box-shadow var(--mid), border-color var(--fast);
}
.chip:hover { background: var(--primary); color: var(--primary-ink); border-color: transparent; transform: translateY(-1px); box-shadow: var(--glow); }
.chip:active { transform: scale(.95); }
.chip:disabled { opacity: .5; }
.ask-form { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.ask-form .in { flex: 1; height: 38px; min-height: 38px; border-radius: 999px; padding: 0 15px; }
.ask-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.ask-actions .in { flex: 1; min-width: 180px; height: 34px; min-height: 34px; }

/* the round send button */
.send {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; color: var(--primary-ink); cursor: pointer; background: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--glow);
  transition: transform var(--mid) var(--spring), opacity var(--mid), filter var(--mid), box-shadow var(--mid);
}
.send svg.i { width: 17px; height: 17px; stroke-width: 2.3; transition: transform var(--mid) var(--spring); }
.send:hover { transform: scale(1.07); }
.send:hover svg.i { transform: translateY(-1px); }
.send:active { transform: scale(.88); }
.send:disabled { opacity: .3; filter: grayscale(.7); box-shadow: none; cursor: default; transform: none; }

/* composer */
.composer { padding: 10px 16px 10px; border-top: 1px solid var(--line-2); }
.composer-box {
  position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 24px;
  background: var(--field); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hi), var(--shadow-sm);
  transition: border-color var(--mid), box-shadow var(--slow) var(--ease);
}
.composer-box:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.composer-box textarea.in {
  flex: 1; border: 0; background: none; box-shadow: none; resize: none; min-height: 0; height: 36px; max-height: 180px; padding: 8px 0; border-radius: 0;
  font-size: 14px; line-height: 1.45; color: var(--ink); outline: none;
}
.composer-box textarea.in:focus { box-shadow: none; }
.composer-box.off { opacity: .6; }
.composer-hint { font-size: 11px; color: var(--faint); text-align: center; margin-top: 6px; min-height: 15px; }

.jump {
  position: absolute; left: 50%; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 14px) scale(.92);
  transition: opacity var(--mid), transform var(--slow) var(--spring);
}
.jump .i { width: 14px; height: 14px; }
.chat.scrolled .jump { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

/* Rows that arrive while you watch slide in; Claude's text reveals top to bottom like it's being written. */
.cmsg.new.claude .bubble, .cmsg.new.claude .ask-card, .cmsg.new.claude .acts-group { animation: in-left var(--slow) var(--spring-soft) backwards; transform-origin: 0 100%; }
.cmsg.new.claude .bubble.rich { animation: in-left var(--slow) var(--spring-soft) backwards, write 1.1s var(--ease) backwards; }
.cmsg.new.you .bubble { animation: in-right var(--slow) var(--spring) backwards; transform-origin: 100% 100%; }
.cmsg.new.center > * { animation: pop var(--slow) var(--spring) backwards; }
.cmsg.new .orb { animation: pop var(--slow) var(--spring) backwards; }
@keyframes in-left { from { opacity: 0; transform: translate3d(-4px, 10px, 0) scale(.96); } }
@keyframes in-right { from { opacity: 0; transform: translate3d(6px, 12px, 0) scale(.9); } }
@keyframes write {
  from {
    -webkit-mask-image: linear-gradient(180deg, #000 33.3%, transparent 66.6%); mask-image: linear-gradient(180deg, #000 33.3%, transparent 66.6%);
    -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-position: 0 100%; mask-position: 0 100%;
  }
  to {
    -webkit-mask-image: linear-gradient(180deg, #000 33.3%, transparent 66.6%); mask-image: linear-gradient(180deg, #000 33.3%, transparent 66.6%);
    -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-position: 0 0; mask-position: 0 0;
  }
}

/* run details */
.spend { padding: 14px 0 4px; }
.spend-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.spend-n { font-size: 26px; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kv { margin: 14px 0 0; display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 550; text-align: right; min-width: 0; }
.kv dd a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }
.run-info .sec-head { margin: 12px 0 6px; }
.run-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.run-steps li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.run-steps li .i { width: 15px; height: 15px; color: var(--faint); }
.run-steps li.done .i, .run-steps li.skipped .i { color: var(--good-dot); }
.run-steps li.running .i { color: var(--run); animation: spin 1.2s linear infinite; }
.run-steps li.blocked .i { color: var(--bad); }
.history .line { cursor: pointer; border-radius: 10px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; transition: background-color var(--fast); }
.history .line:hover { background: var(--hover); }
.findings li { margin: 8px 0; }

/* Liftoff's purchase test */
.proof-what { margin: 10px 0 4px; color: var(--muted); }
.proof-block { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.proof-steps { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; }
.proof-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.proof-steps li:first-child { border-top: 0; }
.proof-steps li > .i { flex: none; width: 16px; height: 16px; }
.proof-steps li.ok > .i { color: var(--good-dot); }
.proof-steps li.no > .i { color: var(--bad); }
.proof-steps li.now > .i { color: var(--run); animation: spin 1.2s linear infinite; }
.proof-steps .name { font-size: 13px; color: var(--ink); }
.proof-steps .grow { min-width: 0; overflow-wrap: anywhere; }
.proof-steps .shot { flex: none; display: block; width: 96px; height: 60px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--hover); transition: transform var(--fast); }
.proof-steps .shot:hover { transform: scale(1.04); }
.proof-steps .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.proof .row { padding-top: 6px; }

/* the launch report */
.report-what { margin: 10px 0 8px; color: var(--muted); }
.report-score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px; }
.report-score .num { font-size: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.report-score .num span { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.report-score .small { color: var(--muted); }
.report-need { margin-top: 8px; color: var(--muted); }
.report-missing { list-style: none; margin: 4px 0 8px; padding: 0; }
.report-missing li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.report-missing li > .i { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--faint); }
.report-missing li.more { color: var(--muted); padding-left: 22px; }
.report .row { padding-top: 6px; flex-wrap: wrap; }
.report-badge { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.report-badge .k { font-size: 13px; font-weight: 600; color: var(--ink); }
.report-badge .small { color: var(--muted); }
.report-badge .badge-img { display: block; height: 20px; width: auto; }
.report-badge .in { min-width: 0; font-family: var(--mono); font-size: 12px; }
.report-history { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.report-history summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.report-history ul { list-style: none; margin: 6px 0 0; padding: 0; }
.report-history li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.report-history li a { color: var(--ink-2); text-decoration: none; min-width: 0; }
.report-history li a:hover { text-decoration: underline; }
.report .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.report .btn.ghost:hover { color: var(--bad); background: var(--bad-soft); }
.report-down { margin: 10px 0 0; }
.report .link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.report .link:hover { color: var(--bad); }

/* settings */
.set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.set:first-child { border-top: 0; }
.set .k { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.set .d { font-size: 12px; color: var(--muted); }
.danger-zone { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line-2); }

/* key dialog */
dialog.modal {
  border: 1px solid var(--line); border-radius: 20px; padding: 0; width: min(480px, calc(100vw - 32px)); color: var(--ink);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow-lg);
}
dialog.modal[open] { animation: pop var(--slow) var(--spring-soft); }
dialog.modal::backdrop { background: rgba(6, 6, 14, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade var(--mid) var(--ease); }
dialog.modal form { padding: 20px 20px 18px; }
.modal-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.modal-head h2 { margin: 2px 0 2px; font-size: 17px; letter-spacing: -.015em; }
.modal-head p { margin: 0; }
dialog.modal .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
/* The longer dialog for a service of your own: scrolls on short screens. */
dialog.modal.wide { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
details.more { margin-top: 6px; border-top: 1px solid var(--line-2); padding-top: 4px; }
details.more > summary { display: flex; align-items: center; gap: 6px; padding: 8px 0 2px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 550; color: var(--ink-2); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .i { width: 14px; height: 14px; color: var(--faint); transition: transform var(--mid) var(--spring); }
details.more[open] > summary .i { transform: rotate(90deg); }
.field[hidden] { display: none; }
.own-intro { margin: 2px 0 12px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- sign-in ----------
   Split screen: the form on the left, a quiet picture of Liftoff at work on the
   right. The picture is plain HTML and CSS, hidden from screen readers, and
   drops away on narrow screens. */
.login-page { min-height: 100vh; }
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100vh; min-height: 100dvh; }
.signin-side { display: flex; flex-direction: column; padding: 22px 32px 24px; min-width: 0; }
.signin-top { display: flex; align-items: center; justify-content: space-between; }
.signin-top .brand { padding: 0; }
.signin-top .theme-btn { width: 32px; height: 32px; border-radius: 9px; }
:root[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none; }
.signin-main { width: min(380px, 100%); margin: auto; padding: 48px 0; animation: rise .8s var(--ease) backwards; }
.signin-main h1 { text-wrap: balance; margin: 0 0 10px; font-size: 28px; line-height: 1.15; font-weight: 680; letter-spacing: -.03em; }
.signin-main .lede { text-wrap: pretty; margin: 0 0 26px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.login-actions { display: flex; flex-direction: column; gap: 10px; }
.login-actions .btn { width: 100%; }
.login-actions .btn .i { width: 18px; height: 18px; }
.login-actions form { margin: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 2px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.perm { margin-top: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.perm summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; color: var(--muted); border-radius: 12px; transition: color var(--fast); }
.perm summary::-webkit-details-marker { display: none; }
.perm summary:hover { color: var(--ink); }
.perm summary .chev { margin-left: auto; transition: transform var(--mid) var(--spring); }
.perm[open] summary .chev { transform: rotate(180deg); }
.perm ul { margin: 0; padding: 0 14px 0 34px; display: flex; flex-direction: column; gap: 4px; }
.perm p { margin: 8px 0 0; padding: 0 14px 12px 34px; color: var(--muted); font-size: 12px; }
.first-time { margin: 14px 2px 0; text-wrap: pretty; }
.signin-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 12px; color: var(--muted); }
.signin-foot span { display: inline-flex; align-items: center; gap: 6px; }
.signin-foot .i { width: 14px; height: 14px; color: var(--faint); }

/* the picture */
.signin-show {
  position: relative; margin: 12px 12px 12px 0; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: 48px clamp(32px, 5vw, 72px); border: 1px solid var(--line);
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0) 0 0 / 22px 22px, var(--surface-2);
  box-shadow: inset 0 1px 0 var(--hi);
}
.signin-show::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 38%, color-mix(in srgb, var(--bg) 92%, transparent), transparent 80%); }
.show-stage { position: relative; width: min(440px, 100%); margin: 40px auto 0; padding: 0 0 118px; }
.show-app, .show-ask, .show-pr {
  position: relative; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-solid);
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow-lg);
}
.show-app { padding: 18px 18px 14px; animation: rise .9s var(--ease) .15s backwards; }
.show-app-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.show-avatar { --c: #10b981; }
.show-name { font-weight: 650; font-size: 15px; letter-spacing: -.015em; }
.show-sub { font-size: 12px; color: var(--muted); }
.show-ring { --p: 78; width: 48px; height: 48px; }
.show-ring b { font-size: 12px; }
.show-steps { list-style: none; margin: 0; padding: 4px 0 0; }
.show-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--ink-2); animation: rise .7s var(--ease) backwards; }
.show-steps li + li { border-top: 1px solid var(--line-2); }
.show-steps li:nth-child(1) { animation-delay: .3s; }
.show-steps li:nth-child(2) { animation-delay: .38s; }
.show-steps li:nth-child(3) { animation-delay: .46s; }
.show-steps li:nth-child(4) { animation-delay: .54s; }
.show-steps li:nth-child(5) { animation-delay: .62s; }
.show-steps .t { flex: 1; }
.show-steps .st { position: relative; width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1.5px solid var(--faint); }
.show-steps .done .st { border-color: transparent; background: var(--good-dot); }
.show-steps .done .st::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.show-steps .work .st { border-color: color-mix(in srgb, var(--run) 25%, transparent); }
.show-steps .work .st::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--run); border-right-color: var(--run);
  animation: spin 1s linear infinite;
}
.show-steps .todo .t { color: var(--muted); }
.show-ask {
  position: absolute; right: -32px; top: calc(100% - 132px); width: min(300px, 78%); padding: 13px 15px 14px;
  background: linear-gradient(160deg, var(--warn-soft), transparent 55%), var(--surface-solid); border-color: color-mix(in srgb, var(--warn) 35%, var(--line));
  animation: rise .9s var(--ease) .9s backwards, float 7s var(--ease-in-out) 1.8s infinite;
}
.show-ask-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.show-ask-top .small { color: var(--faint); font-size: 11px; }
.show-ask p { margin: 0 0 10px; font-size: 13px; font-weight: 550; line-height: 1.45; }
.show-ask-acts { display: flex; justify-content: flex-end; gap: 6px; }
.fake-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 550; border: 1px solid var(--line); background: var(--btn); }
.fake-btn.ink { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.show-pr {
  position: absolute; left: -36px; top: -50px; display: flex; align-items: center; gap: 10px; width: min(330px, 84%); padding: 10px 12px;
  animation: rise .9s var(--ease) .6s backwards, float 8s var(--ease-in-out) 1.6s infinite reverse;
}
.show-pr-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--primary-ink); background: var(--primary); }
.show-pr-t { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-diff { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.show-diff .plus { color: var(--good); font-weight: 600; }
.show-diff .minus { color: var(--bad); font-weight: 600; }
@keyframes float { 50% { transform: translate3d(0, -6px, 0); } }
/* The empty overview's rocket tile floats, waiting for an app. */
.empty .tile { animation: float 6s var(--ease-in-out) 1s infinite; }
.show-copy { position: relative; width: min(440px, 100%); margin: 0 auto; animation: rise .9s var(--ease) .3s backwards; }
.show-copy h2 { text-wrap: balance; margin: 0 0 14px; font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.show-copy ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: show; }
.show-copy li { position: relative; padding-left: 32px; font-size: 13.5px; line-height: 1.55; color: var(--muted); counter-increment: show; }
.show-copy li b { color: var(--ink); font-weight: 600; }
.show-copy li::before {
  content: counter(show); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 650; color: var(--ink-2); background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
@media (max-width: 960px) {
  .signin { grid-template-columns: minmax(0, 1fr); }
  .signin-show { display: none; }
  .signin-side { padding: 16px 16px 20px; }
  .signin-main { padding: 36px 0; }
  .signin-main h1 { font-size: 26px; }
}
.error { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 13px; border: 1px solid color-mix(in srgb, var(--bad) 22%, transparent); }

@media (max-width: 1100px) {
  .run-grid { grid-template-columns: minmax(0, 1fr); }
  .run-side { position: static; }
  .chat { height: max(480px, calc(100dvh - 180px)); }
}
@media (max-width: 820px) {
  .set { grid-template-columns: minmax(0, 1fr); }
  .proof-steps .shot { width: 64px; height: 44px; }
  .run-head { flex-wrap: wrap; }
  .run-head .actions { width: 100%; justify-content: flex-start; margin-left: 0; }
  .chat { height: calc(100dvh - 140px); min-height: 440px; border-radius: 18px; }
  .thread { padding: 16px 12px 8px; }
  .gutter { width: 24px; }
  .orb:not(.lg) { width: 24px; height: 24px; }
  .col { max-width: 92%; }
  .cmsg.you .col { max-width: 86%; }
  .composer { padding: 8px 10px 8px; }
  .composer-hint { display: none; }
  .launch-top { flex-direction: column; padding: 18px; }
  .launch-body { padding: 4px 18px 18px; }
  .profile { flex-wrap: wrap; padding: 18px; }
  .profile > .btn { order: 3; }
  .theme-opts { gap: 8px; }
  .theme-opt { padding: 6px 6px 9px; }
  .theme-opt .cap { font-size: 12px; gap: 5px; }
  .theme-opt .cap > .i, .theme-opt .tick { display: none; }
}

[hidden] { display: none !important; }

/* the Launch Pass */
.pass-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-top: 12px; }
.pass-body .k { font-size: 13px; font-weight: 600; color: var(--ink); margin: 8px 0 4px; }
.pass-list { list-style: none; margin: 0 0 10px; padding: 0; }
.pass-list li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--ink-2); }
.pass-list li > .i { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--good-dot); }
.pass .report-missing li > .i { color: var(--bad); }
.pass-test { margin: 8px 0 0; color: var(--muted); }
.pass-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pass-hint .i { width: 14px; height: 14px; }
.pass-meter { padding-top: 10px; }
.pass-meter .small { color: var(--muted); margin-bottom: 6px; }
.pass-meter .bar { height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.pass-meter .fill { display: block; height: 100%; border-radius: inherit; background: var(--good-dot); transition: width var(--mid) var(--ease); }
.pass-meter .bar.low .fill { background: var(--warn-dot); }
.pass.on .row { padding-top: 10px; }
@media (max-width: 820px) { .pass-body { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.pass-meter .fill.w0 { width: 0%; }
.pass-meter .fill.w5 { width: 5%; }
.pass-meter .fill.w10 { width: 10%; }
.pass-meter .fill.w15 { width: 15%; }
.pass-meter .fill.w20 { width: 20%; }
.pass-meter .fill.w25 { width: 25%; }
.pass-meter .fill.w30 { width: 30%; }
.pass-meter .fill.w35 { width: 35%; }
.pass-meter .fill.w40 { width: 40%; }
.pass-meter .fill.w45 { width: 45%; }
.pass-meter .fill.w50 { width: 50%; }
.pass-meter .fill.w55 { width: 55%; }
.pass-meter .fill.w60 { width: 60%; }
.pass-meter .fill.w65 { width: 65%; }
.pass-meter .fill.w70 { width: 70%; }
.pass-meter .fill.w75 { width: 75%; }
.pass-meter .fill.w80 { width: 80%; }
.pass-meter .fill.w85 { width: 85%; }
.pass-meter .fill.w90 { width: 90%; }
.pass-meter .fill.w95 { width: 95%; }
.pass-meter .fill.w100 { width: 100%; }

/* ---------- run records (admins) ---------- */
.table-scroll { overflow-x: auto; margin: -4px -2px 0; padding: 0 2px; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.rec-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rec-table th { text-align: left; font-size: 12px; font-weight: 550; color: var(--muted); padding: 8px 10px 8px 0; white-space: nowrap; border-bottom: 1px solid var(--line); }
.rec-table td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line-2); vertical-align: top; color: var(--ink); }
.rec-table tr:first-child td { border-top: 0; }
.rec-table .num { text-align: right; white-space: nowrap; }
.rec-table td b { font-weight: 600; white-space: nowrap; }
.rec-table td .small { display: inline-block; min-width: 240px; color: var(--muted); }
/* The admin's AI spend card (lib/guard.mjs) */
.guard-meter { margin: 12px 0 14px; }
.guard-acts { gap: 8px; margin: 14px 0 4px; }
.guard-limits { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 6px; }
.guard-limits .field { margin: 6px 0 0; flex: 0 1 220px; }
.guard-limits .btn { margin-bottom: 1px; }
.rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rec-grid .mono { word-break: break-word; }
@media (max-width: 820px) { .rec-grid { grid-template-columns: minmax(0, 1fr); } }
.line.lesson { align-items: flex-start; padding: 14px 0; }
.lesson-text { display: grid; gap: 3px; margin-top: 8px; }
.lesson-text .small { color: var(--ink-2); }
.lesson-text b { font-weight: 600; color: var(--muted); }
.lesson-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.lesson-pills, .lesson-side .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .line.lesson { flex-direction: column; }
  .lesson-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

/* ---------- welcome tour ----------
   A focused takeover for a new account: the sidebar and top bar step aside,
   one step at a time sits in a narrow column, and the stepper keeps place. */
.ob-on .shell { grid-template-columns: minmax(0, 1fr); }
.ob-on .side, .ob-on .topbar { display: none; }
.ob-on .content { max-width: none; padding: 0 0 64px; gap: 0; }
.ob-top {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 64px; padding: 0 24px;
  border-bottom: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.ob-top .brand { padding: 0; }
.ob-end { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.ob-end .theme-btn { width: 32px; height: 32px; border-radius: 9px; }
.ob-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.ob-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ob-steps li + li::before { content: ""; width: 28px; height: 1px; margin-right: 2px; background: var(--line-strong); transition: background-color var(--mid); }
.ob-steps li.done + li::before { background: var(--ink); }
.ob-steps .n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums;
  color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color var(--mid), color var(--mid), box-shadow var(--mid), transform var(--mid) var(--spring);
}
.ob-steps .n .i { width: 12px; height: 12px; stroke-width: 2.6; }
.ob-steps li.on { color: var(--ink); font-weight: 550; }
.ob-steps li.on .n { background: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 4px var(--accent-soft); transform: scale(1.04); }
.ob-steps li.done { color: var(--ink-2); }
.ob-steps li.done .n { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.ob-step { width: min(760px, 100%); margin: 0 auto; padding: 48px 24px 0; display: flex; flex-direction: column; gap: 20px; animation: rise var(--slow) var(--ease) backwards; }
.ob-step > :nth-child(2) { animation: rise var(--slow) var(--ease) 60ms backwards; }
.ob-step > :nth-child(3) { animation: rise var(--slow) var(--ease) 120ms backwards; }
.ob-step > :nth-child(4) { animation: rise var(--slow) var(--ease) 180ms backwards; }
.ob-head h1, .ob-hero h1 {
  margin: 0; font-size: 30px; line-height: 1.15; font-weight: 680; letter-spacing: -.03em; text-wrap: balance;
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 62%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-head p, .ob-hero p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.ob-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 12px; }
.ob-hero p { margin-inline: auto; }
.ob-mark { position: relative; width: 60px; height: 60px; margin-bottom: 22px; }
.ob-mark .mark {
  position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: var(--primary-ink); background: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 34px -14px rgba(0, 0, 0, .5); animation: pop .9s var(--spring) .1s backwards;
}
.ob-mark .mark svg { width: 28px; height: 28px; }
.ob-mark::before {
  content: ""; position: absolute; inset: -8px; border-radius: 24px; padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0 40%, var(--line-strong) 70%, var(--muted) 88%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 3.2s linear infinite;
}
.ob-how { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ob-how-card { padding: 18px 18px 20px; }
.ob-how-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ob-how-top .kicker { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ob-how-top .pill { margin-left: auto; }
.ob-how-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 640; letter-spacing: -.015em; }
.ob-how-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.ob-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; }
.ob-hero ~ .ob-acts { justify-content: center; }
.ob-acts > .btn.quiet:only-child { margin-left: -20px; }
.tour-nudge { gap: 4px; }
.tour-nudge .btn { color: var(--ink-2); }

/* GitHub or zip */
.seg { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 12px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  font-size: 13px; font-weight: 550; color: var(--muted); transition: background-color var(--mid) var(--ease), color var(--fast), box-shadow var(--mid);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.on { background: var(--surface-solid); color: var(--ink); box-shadow: inset 0 1px 0 var(--hi), 0 0 0 1px var(--line), var(--shadow-sm); }
.ob-panel { overflow: hidden; }
.ob-panel .card-pad { padding: 18px; }
.ob-panel .card-pad > .small { margin: 10px 0 0; }
.repo-search { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 50px; border-bottom: 1px solid var(--line-2); color: var(--muted); }
.repo-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.repo-search input::placeholder { color: var(--faint); }
.repo-search:focus-within { color: var(--ink); background: var(--hover); }
.repo-list { padding: 0 18px; }
.repo-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 62px; }
.repo-row .grow { min-width: 0; }
.repo-row .name { display: flex; align-items: center; gap: 0; font-size: 14px; min-width: 0; }
.repo-row .name .own { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
.repo-row .name b { font-weight: 600; white-space: nowrap; }
.repo-row .name .pill { margin-left: 8px; }
.repo-row .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-row .tile { color: var(--muted); }
.repo-row .tile .i { width: 15px; height: 15px; }
.repo-row.sk > span { display: block; border-radius: 8px; background: var(--hover); animation: breathe 1.4s var(--ease-in-out) infinite; }
.repo-row .sk-tile { width: 32px; height: 32px; border-radius: 9px !important; }
.repo-row .sk-line { flex: 1; height: 12px; max-width: 280px; }
.repo-row .sk-btn { width: 68px; height: 30px; margin-left: auto; }
.repo-more { padding: 10px 18px; border-top: 1px solid var(--line-2); }
.ob-link-wrap { padding: 14px 18px 18px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.ob-or { margin-bottom: 8px; }
.ob-link-row { display: flex; gap: 8px; }
.ob-link-row .in { min-width: 0; }
.ob-link-row .btn { height: 38px; }
.ob-link-row .in.ref { width: 150px; flex: none; }
.ob-have { display: flex; flex-direction: column; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--btn);
  font-size: 13px; font-weight: 550; cursor: pointer; box-shadow: inset 0 1px 0 var(--hi), var(--shadow-sm); transition: transform var(--mid) var(--spring), border-color var(--fast);
}
.chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }

/* reading the code */
.ob-scan { padding: 8px 18px; }
.scan-lines { list-style: none; margin: 0; padding: 0; }
.scan-lines li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 14px; color: var(--ink-2); animation: rise .5s var(--ease) var(--d) backwards; }
.scan-lines li + li { border-top: 1px solid var(--line-2); }
.scan-lines li:nth-child(1) { --d: 0s; --done: 1.6s; }
.scan-lines li:nth-child(2) { --d: 1.6s; --done: 3.4s; }
.scan-lines li:nth-child(3) { --d: 3.4s; --done: 5.4s; }
.scan-lines li:nth-child(4) { --d: 5.4s; --done: 9999s; }
.scan-lines .st { position: relative; width: 18px; height: 18px; flex: none; }
.scan-lines .st::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--run) 22%, transparent); border-top-color: var(--run); border-right-color: var(--run);
  animation: spin 1s linear infinite, gone 1ms linear var(--done) forwards;
}
.scan-lines .st::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transform: scale(.6);
  background: var(--good-dot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 10 16l-4-4'/%3E%3C/svg%3E") center / 11px no-repeat;
  animation: shown .35s var(--spring) var(--done) forwards;
}
@keyframes gone { to { opacity: 0; } }
@keyframes shown { to { opacity: 1; transform: none; } }

/* what the scan found */
.ob-result-top { display: flex; align-items: center; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line-2); }
.ob-result-top .nm { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.ob-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.ob-num { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.ob-num + .ob-num { border-left: 1px solid var(--line-2); }
.ob-num b { font-size: 26px; line-height: 1.1; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ob-num span { font-size: 12px; color: var(--muted); }
.ob-num.alert b { color: var(--bad); }
.ob-found { list-style: none; margin: 0; padding: 6px 18px 12px; }
.ob-found li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 13.5px; }
.ob-found li > .i { flex: none; margin-top: 2px; color: var(--bad); }
.ob-found li b { font-weight: 600; }
.ob-found li.more { padding-left: 26px; }
.ob-result .empty-row { padding: 16px 18px; }
.ob-does { padding: 14px 18px 18px; border-top: 1px solid var(--line-2); }
.ob-does-head { display: flex; align-items: center; gap: 8px; }
.ob-does .small { margin: 4px 0 12px; }

/* services */
.ob-panel .card-body.rows { padding-top: 0; padding-bottom: 4px; }
.ob-note { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; }
.ob-note .i { width: 14px; height: 14px; }

/* free and the pass */
.ob-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ob-plan { display: flex; flex-direction: column; padding: 20px; }
.ob-plan .plan-top { display: flex; align-items: center; gap: 8px; }
.ob-plan h2 { margin: 0; font-size: 18px; font-weight: 660; letter-spacing: -.02em; }
.ob-plan .plan-top .pill { margin-left: auto; }
.ob-plan > .small { margin: 4px 0 14px; }
.ob-plan .pass-list { flex: 1; }
.ob-plan .pass-list li { padding: 5px 0; }
.ob-plan .pass-list li > .i { color: var(--ink); }
.ob-plan.pass { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); box-shadow: inset 0 1px 0 var(--hi), 0 0 0 4px var(--accent-soft), var(--shadow); }
.plan-foot { padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line-2); }
.plan-foot .small { display: block; line-height: 1.5; }

@media (max-width: 960px) {
  .ob-top { grid-template-columns: auto 1fr auto; }
  .ob-steps { justify-content: center; }
  /* Only the step you're on shows its name; the others are still read out. */
  .ob-steps li:not(.on) .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ob-steps li + li::before { width: 14px; }
}
@media (max-width: 720px) {
  .ob-top { grid-template-columns: auto 1fr; height: auto; padding: 10px 16px; row-gap: 10px; }
  .ob-top .brand span:not(.mark) { display: none; }
  .ob-steps { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .ob-step { padding: 28px 16px 0; gap: 16px; }
  .ob-head h1, .ob-hero h1 { font-size: 25px; }
  .ob-how, .ob-plans { grid-template-columns: minmax(0, 1fr); }
  .ob-hero { align-items: flex-start; text-align: left; }
  .ob-hero p { margin-inline: 0; }
  .ob-hero ~ .ob-acts { justify-content: flex-start; }
  .ob-acts .btn.primary { flex: 1; }
  .ob-link-row { flex-wrap: wrap; }
  .ob-link-row .in { flex: 1 1 100%; }
  .ob-link-row .in.ref { flex: 1; width: auto; }
  .ob-num { padding: 12px 14px; }
  .ob-num b { font-size: 22px; }
  .repo-row .small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-lines li:not(:last-child) .st::before { opacity: 0; }
  .scan-lines li:last-child .st::after { display: none; }
}

/* Deployments: the live address of an app that's already live. */
.live-form { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.live-form .k { font-size: 13px; font-weight: 600; color: var(--ink); }
.live-form .small { color: var(--muted); }
.live-form .row { padding-top: 4px; }
.live-form .in { min-width: 0; font-family: var(--mono); font-size: 12px; }

/* Launch Pass: the price on the tour, and what this app doesn't get yet. */
.ob-plan .plan-price { margin-left: auto; font-size: 13px; color: var(--muted); }
.ob-plan .plan-price b { font-size: 18px; font-weight: 660; color: var(--ink); letter-spacing: -.02em; }
.pass-later { margin: 0 0 10px; color: var(--muted); }
.pass-results { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; color: var(--ink-2); }
.pass-results > svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--good-dot); }
.pass-results a { color: inherit; }

/* Watching (lib/watch.mjs): uptime bars, incidents and the daily check */
.watch-what { margin: 10px 0 4px; color: var(--muted); }
.watch-note { margin: 6px 0; color: var(--ink-2); }
.watch.down { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent), var(--shadow, none); }
.watch-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 10px; }
.watch-facts .k { font-size: 12px; color: var(--muted); }
.watch-facts .v { margin-top: 2px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.watch-bars { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 2px; height: 28px; }
.watch-bars span { border-radius: 3px; background: var(--hover); }
.watch-bars .up { background: var(--good-dot); }
.watch-bars .part { background: var(--warn-dot); }
.watch-bars .down { background: var(--bad-dot); }
.watch-axis { display: flex; justify-content: space-between; margin: 4px 0 8px; color: var(--faint); }
.watch-incidents { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.watch-incidents li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); }
.watch-incidents li > .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--bad); }
.watch-incidents .name { font-size: 13px; font-weight: 600; color: var(--ink); }
.watch-incidents .small { color: var(--ink-2); overflow-wrap: anywhere; }
.watch-lines { list-style: none; margin: 6px 0 8px; padding: 0; }
.watch-lines li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--ink-2); }
.watch-lines li > .i { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--good-dot); }
.watch-lines li.bad > .i { color: var(--bad); }
.watch-lines li.wait > .i { color: var(--faint); }
.watch-history { margin: 4px 0 8px; font-size: 13px; }
.watch-history summary { cursor: pointer; color: var(--muted); }
.watch-history ul { list-style: none; margin: 6px 0 0; padding: 0; }
.watch-history li { display: flex; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); }
.watch-history li .small { color: var(--muted); white-space: nowrap; }
.watch .row .end { margin-left: auto; color: var(--muted); }
@media (max-width: 560px) {
  .watch-facts .v { font-size: 18px; }
  .watch-bars { gap: 1px; height: 24px; }
  .watch .row .end { margin-left: 0; width: 100%; }
}
.watch-alerts { margin: 2px 0 8px; color: var(--muted); }
.watch-prs, .watch-checkup { margin: 4px 0 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.watch-prs > .k, .watch-checkup > .k { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.watch-prs > .small, .watch-checkup > .small { margin: 4px 0 8px; color: var(--ink-2); }
.watch-prs .watch-lines a, .watch-checkup .watch-lines a { color: var(--ink); text-decoration: none; font-weight: 550; }
.watch-prs .watch-lines a:hover, .watch-checkup .watch-lines a:hover { text-decoration: underline; }
.watch-prs .watch-lines li span, .watch-checkup .watch-lines li span { overflow-wrap: anywhere; }
.watch-prs > .row > .btn.quiet:only-child, .watch-checkup > .row > .btn.quiet:only-child { margin-left: -15px; }
.watch-fix { margin: 2px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.watch-fix > .small { margin: 0 0 10px; color: var(--ink-2); }
.watch-fix.flash { animation: fix-flash 1.6s ease-out 1; }
@keyframes fix-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--bad); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .watch-fix.flash { animation: none; outline: 2px solid var(--bad); } }
.watch-plan { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.watch-plan > .small { margin: 0 0 8px; color: var(--ink-2); }
.watch-plan.bad { margin-top: 12px; padding: 12px; border: 0; border-radius: 12px; background: var(--bad-soft); }
.watch-plan.bad > .small { color: var(--ink); }
.alerts-form { margin-top: 10px; }
.alerts-form .k { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.alerts-card .line { margin-top: 10px; flex-wrap: wrap; }
.watch-alerts .link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.watch-alerts .link:hover { color: var(--ink); }
/* A watched site that's down: the sidebar's live dot turns red too. */
.nav .end:has(.watch-down) .status-dot.live { background: var(--bad-dot); box-shadow: none; }

/* Liftoff's own legal pages: next to every button that pays, at the foot of
   the sidebar and of Account settings, and the admins' card. */
.agree { margin: 8px 0 0; color: var(--muted); }
.agree a, .side-legal a, .settings-legal a, .legal-open a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.agree a:hover, .side-legal a:hover, .settings-legal a:hover, .legal-open a:hover { color: var(--ink); text-decoration-color: currentColor; }
.watch-plan + .agree { margin-top: 2px; }
.pass-gone { margin: 12px 18px 0; }
.pass-gone .i { flex: none; }
.side-foot { display: flex; flex-direction: column; gap: 6px; }
.side-legal { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 0 10px; font-size: 11.5px; color: var(--faint); }
.side-legal a { text-decoration: none; }
.settings-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 4px; color: var(--muted); }
.legal-missing { list-style: none; margin: 10px 0 0; padding: 0; }
.legal-missing li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.legal-missing li:first-child { border-top: 0; }
.legal-missing .mono { font-size: 12.5px; }
.legal-card .note-box { margin-top: 10px; }
.legal-open { gap: 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 820px) {
  .side-foot { flex-direction: row; }
  .side-legal { display: none; }
}
.signin-agree { margin: 14px 2px 0; text-wrap: pretty; }
.signin-agree a, .signin-legal a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.signin-agree a:hover, .signin-legal a:hover { color: var(--ink); text-decoration-color: currentColor; }
.signin-legal { display: inline-flex; gap: 14px; }
.signin-legal a { text-decoration: none; }

/* The key-use log on the Accounts page (lib/keylog.mjs). */
.keylog .line { align-items: flex-start; }
.keylog .key-name { margin-left: 8px; font-size: 12px; color: var(--ink-2); }
.keylog .mono { overflow-wrap: anywhere; }
.keylog .when { white-space: nowrap; color: var(--muted); margin-left: 8px; }
.keylog .name .key-name { display: inline-block; max-width: 100%; overflow-wrap: anywhere; vertical-align: baseline; }
.keylog .card-body > .btn.quiet { margin: 8px 0 0 -15px; }
.acct-used { margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.acct-safer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink-2); }
.acct-safer .linkish { color: var(--ink-2); }
.modal .safer { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); }
.modal .safer svg { flex: none; margin-top: 2px; }

/* Purchases in Account settings. */
.buys .line .btn { flex: none; }
.buys-foot { padding-top: 12px; align-items: flex-start; gap: 10px; }
.modal .one-click { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.acct-oauth { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); }
.acct-oauth svg { flex: none; margin-top: 2px; color: var(--good); }
.acct-oauth.lapsed { flex-direction: column; gap: 8px; }
.acct-oauth.lapsed .btn svg { margin-top: 0; color: inherit; }
.connect-setup .line { align-items: flex-start; }
.connect-setup .name { display: flex; align-items: center; gap: 8px; }
.connect-setup .copy-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0; }
.connect-setup code { overflow-wrap: anywhere; }
.connect-wait { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 16px; color: var(--ink-2); }

/* Done for you (lib/done.mjs): the offer beside the Launch Pass, and its guarantee once bought */
.pass-done { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.pass-done > .k { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.pass-done > .k > .i { flex: none; width: 15px; height: 15px; color: var(--ink); }
.pass-done > .small { margin: 4px 0 8px; color: var(--ink-2); }
.pass-done a { color: var(--ink); }
.pass-done .row { align-items: center; gap: 12px; flex-wrap: wrap; }
.pass-done .row > .small { color: var(--muted); flex: 1 1 220px; }
.pass.on .pass-done .row { padding-top: 0; }

/* GitHub turned down Liftoff's access: the way back, above every view (lib/github-auth.mjs). */
.gh-notice { align-items: center; margin: 0 0 16px; }
.gh-notice > svg { flex: none; }
.gh-notice .btn { flex: none; }
@media (max-width: 640px) { .gh-notice { flex-wrap: wrap; } .gh-notice .grow { flex-basis: calc(100% - 30px); } }

/* ---------- the app page's tabs (board.js renderApp) ---------- */
/* "Part of the Launch Pass" under a locked button opens the Plan tab. */
button.pass-hint { appearance: none; border: 0; background: none; padding: 0; font-family: inherit; cursor: pointer; }
button.pass-hint:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Above the tabs: the live site is down. */
.run-card.down-alert { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.run-card.down-alert::before { background: radial-gradient(500px 160px at 0% 0%, var(--bad-soft), transparent 70%); }
.run-card.down-alert .tile { background: var(--bad); color: #fff; }

/* Launch tab: where the pass stands. */
.pass-mini .card-body { padding-top: 12px; }
.pass-mini .card-body > .small { margin: 0; color: var(--ink-2); }
.pass-mini .row { padding-top: 12px; }

/* Report tab: the report itself, as anyone with the link sees it. */
.report-view .card-head { flex-wrap: wrap; }
.report-view .card-head .end { flex-wrap: wrap; justify-content: flex-end; }
.report-view-what { margin: 0; padding: 12px 18px 0; color: var(--muted); }
.report-frame { display: block; width: 100%; height: 900px; border: 0; background: transparent; color-scheme: normal; opacity: 0; transition: opacity var(--mid) var(--ease); }
.report-frame.ready { opacity: 1; }
.report .linkish.grow { text-align: left; color: var(--ink-2); text-decoration: none; }
.report .linkish.grow:hover, .report .linkish.grow[aria-pressed="true"] { color: var(--ink); text-decoration: underline; }

/* Plan tab */
.plan-off .card-body, .pro-card .card-body, .plan-more .card-body { padding-top: 14px; }
.plan-off .note-box { margin-bottom: 16px; }
.plan-off .k { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.plan-sells { margin-bottom: 8px; }
.plan-sells .line { align-items: flex-start; }
.plan-sells .name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plan-price { color: var(--muted); font-weight: 500; }
.plan-setup { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.plan-steps { margin: 6px 0 0; padding-left: 20px; font-size: 13px; color: var(--ink-2); }
.plan-steps li { padding: 4px 0; overflow-wrap: anywhere; }
.plan-steps li::marker { color: var(--faint); }
.plan-steps code { font-size: 12px; background: var(--hover); padding: 1px 5px; border-radius: 5px; }
.plan-steps .copy-row { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.plan-steps .copy-row code { overflow-wrap: anywhere; }
.plan-events { margin-top: 4px; }
.plan-events summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.plan-events .mono { margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.pro-card .pass-list { margin-bottom: 8px; }
.pro-card .card-body > .small { margin: 0 0 10px; color: var(--ink-2); }
.pro-card .row, .plan-more .row { padding-top: 2px; }
.pro-card .agree { margin-top: 8px; }
.pro-note { color: var(--muted); }
.plan-more .card-body > .small { margin: 0 0 10px; color: var(--ink-2); }
/* Free first, then the monthly plans side by side (Watch, Pro) */
.plan-free .card-body { padding-top: 14px; }
.plan-free .card-body > .small { margin: 0 0 10px; color: var(--ink-2); }
.plan-free .k { font-size: 13px; font-weight: 600; color: var(--ink); margin: 8px 0 4px; }
.plan-free .report-missing li > .i { color: var(--bad); }
.plan-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.plan-options.n1 { grid-template-columns: minmax(0, 1fr); }
.plan-option { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2, transparent); }
.plan-option.on { border-color: color-mix(in srgb, var(--good-dot) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good-dot) 14%, transparent); }
.plan-option .plan-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.plan-option h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.plan-option .plan-price { margin-left: auto; font-size: 12px; }
.plan-option .plan-price b { font-size: 16px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.plan-option .pass-list { flex: 1; margin-bottom: 6px; }
.plan-option .row { padding-top: 4px; }
@media (max-width: 820px) { .plan-options { grid-template-columns: minmax(0, 1fr); } }
.pass-body.one { grid-template-columns: minmax(0, 1fr); }
.pass-when { margin: 0 0 4px; color: var(--ink-2); }
.ob-plans.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .ob-plans.n3 { grid-template-columns: minmax(0, 1fr); } }
.watch-plan-line { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--ink-2); }
.watch-plan-line.bad { padding: 10px 12px; border: 0; border-radius: 12px; background: var(--bad-soft); color: var(--ink); }

/* Settings tab: service ids, folded until opened. */
.svc > summary { list-style: none; cursor: pointer; user-select: none; border-bottom: 0; transition: background-color var(--fast); border-radius: inherit; }
.svc > summary::-webkit-details-marker { display: none; }
.svc > summary:hover { background: var(--hover); }
.svc > summary .chev { width: 16px; height: 16px; color: var(--muted); transition: transform var(--mid) var(--ease); }
.svc[open] > summary { border-bottom: 1px solid var(--line-2); border-radius: 0; }
.svc[open] > summary .chev { transform: rotate(90deg); }
.svc-what { margin: 10px 0 4px; color: var(--muted); }
.remove-card .danger-zone { margin-top: 0; border-top: 0; }
.svc .set:first-of-type { border-top: 0; }
