/* The build card (build.js), as Towers' funnel draws it: web/src/saas-crew3.css and saas-start3.css (the card, the
   window, the agents' pointers, selections and lanes), in the office's tokens and team colours. */
.cr-build {
  --o-ink: #16181d; --o-text: #2b2d33; --o-mute: #686b73; --o-faint: #9a9ca3;
  --o-line: rgba(22, 24, 29, 0.08); --o-line-2: rgba(22, 24, 29, 0.14);
  --o-wall: #fbfaf7; --o-sand: #f3eee6; --o-sand-2: #e9e1d4;
  --o-green: #2a7548; --o-green-fill: #3a9a62; --o-green-soft: #ebf4ed; --blue-fill: #4f8df5;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace; --sans: Geist, system-ui, sans-serif;
}
.tk-bizdev { --tc: #c2407f; }
.tk-build { --tc: #b7791f; }
.tk-analytics { --tc: #0f8a83; }
.tk-website { --tc: #2f8a46; }
.tm-av { width: 32px; height: 32px; flex-shrink: 0; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--tc) 12%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 45%, transparent); }
.bot-av { display: block; width: 100%; height: 100%; }

.ck-card { display: flex; flex-direction: column; padding: 16px 18px 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--o-line), 0 1px 2px rgba(22, 24, 29, 0.04), 0 12px 30px rgba(70, 50, 30, 0.07); }
.ck-ch { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.ck-ag { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 3px; border-radius: 999px; background: var(--o-sand); font-size: 12.5px; font-weight: 600; color: var(--o-ink); white-space: nowrap; }
.ck-ag .tm-av { width: 22px; height: 22px; padding: 1px; border-radius: 50%; background: color-mix(in srgb, var(--tc, #8a8d94) 18%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc, #8a8d94) 35%, transparent); }
.ck-h { display: block; margin: 0; font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--o-ink); }
.cb-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.cb-h .ck-h { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; }
.cb-st { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--o-mute); white-space: nowrap; }
.cb-st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; --dot: var(--blue-fill); background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent); animation: live 2s ease-in-out infinite; }
.cb-st.ok { color: var(--o-green); font-weight: 600; }
.cb-st.ok::before { --dot: var(--o-green-fill); animation: none; }
@keyframes live { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--dot) 0%, transparent); } }
.cb-win { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--o-line-2); }
.cb-bar { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 10px; background: var(--o-wall); border-bottom: 1px solid var(--o-line); }
.sv-dots { display: inline-flex; gap: 5px; }
.sv-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d9d5ce; }
.cb-url { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; height: 24px; padding: 0 10px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--o-line); font: 500 12px var(--mono); color: var(--o-text); }
.cb-url svg { flex-shrink: 0; color: var(--o-green-fill); }
.cb-caret { display: inline-block; width: 2px; height: 13px; background: var(--o-ink); animation: dm-blink 0.9s steps(1) infinite; }
@keyframes dm-blink { 50% { opacity: 0; } }
.cb-frame { position: relative; overflow: hidden; background: var(--o-wall); }
.cb-frame iframe { position: absolute; left: 0; top: 0; width: 1280px; border: 0; transform: scale(var(--s, 0.42)); transform-origin: 0 0; pointer-events: none; }
.cb-blank { position: absolute; inset: 18px; border-radius: 10px; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%) 0 0 / 200% 100%, repeating-linear-gradient(180deg, var(--o-sand) 0 12px, transparent 12px 26px); animation: cb-shine 1.4s linear infinite; }
@keyframes cb-shine { to { background-position: -200% 0, 0 0; } }
.cb-logo { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #fff; }
.cb-mark { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 22px; font: 700 46px/1 var(--sans); box-shadow: 0 12px 28px rgba(22, 24, 29, 0.16); animation: as-logo 0.9s cubic-bezier(.34, 1.5, .5, 1) both; transform-origin: 0 0; }
@keyframes as-logo { from { opacity: 0; transform: scale(0.6) rotate(-6deg); } }
.cb-prog { display: flex; align-items: center; gap: 12px; margin: 16px 4px 0; }
.cb-prog .wk-bar { flex: 1; height: 4px; border-radius: 4px; overflow: hidden; background: var(--o-sand-2); }
.cb-prog .wk-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--o-ink); transition: width 0.9s var(--ease), background 0.4s; }
.cb-pct { min-width: 36px; text-align: right; font: 500 12.5px var(--mono); color: var(--o-mute); font-variant-numeric: tabular-nums; }

/* the agents: their robots side by side */
.cr-crew { padding-left: 3px; }
.cr-avs { display: inline-flex; }
.cr-avs .tm-av { box-shadow: 0 0 0 2px var(--o-sand), inset 0 0 0 1px color-mix(in srgb, var(--tc) 35%, transparent); }
.cr-avs .tm-av + .tm-av { margin-left: -6px; }
/* a pointer: the arrow in its team's colour, its name beside it, a ring when it clicks */
.cr-layer { position: absolute; inset: 0; z-index: 6; overflow: hidden; border-radius: inherit; pointer-events: none; }
.cr-pt { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; opacity: 0; transition: opacity 0.35s ease; }
.cr-pt.on { opacity: 1; }
.cr-ar { display: block; flex-shrink: 0; filter: drop-shadow(0 1px 1.5px rgba(22, 24, 29, 0.35)); }
.cr-ar path { fill: var(--tc); stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.cr-pt > b { margin: 14px 0 0 -4px; padding: 2px 7px; border-radius: 6px; background: var(--tc); color: #fff; font: 600 10.5px/1.35 var(--sans); white-space: nowrap; box-shadow: 0 2px 6px rgba(22, 24, 29, 0.18); }
.cr-rip { position: absolute; left: -6px; top: -6px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--tc); animation: cr-rip 0.6s ease-out forwards; }
@keyframes cr-rip { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes cr-pop { from { transform: scale(0.4); } }
@keyframes cr-shine { to { background-position: -200% 0; } }
@keyframes cr-blink { 50% { opacity: 0.25; } }

.cr-build { padding: 18px; }
.cr-win { position: relative; }
.cr-build { --fh: clamp(240px, calc(100vh - 470px), 460px); }
.cr-build .cb-frame { height: var(--fh); background: #fff; }
.cr-build .cb-frame iframe { height: calc(var(--fh) / var(--s, 0.6)); transition: opacity 0.5s ease; }
.cr-build .cb-frame iframe.cr-off { opacity: 0; }
.cr-build .cb-logo { transition: background-color 0.6s ease; }
.cr-build .cb-logo.fly { background-color: transparent; }
/* the address, set up */
.cr-build .cb-url { transition: box-shadow 0.3s; }
.cr-build .cb-url.ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--o-green-fill) 45%, transparent); }
.cr-build .cb-url.ok::after { content: attr(data-ok); margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--o-green-soft); color: var(--o-green); font: 600 10.5px var(--sans); animation: ci-stamp 0.5s cubic-bezier(.34, 1.6, .5, 1) both; }
@keyframes ci-stamp { from { opacity: 0; transform: scale(1.5) rotate(-6deg); } }
/* an agent's selection round what it's making: its colour, a light running over it */
.cr-clip { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.cr-sel { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--tc); background: color-mix(in srgb, var(--tc) 6%, transparent); opacity: 0; transition: opacity 0.25s ease, box-shadow 0.3s, background 0.3s; }
.cr-sel.on { opacity: 1; }
.cr-sel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--tc) 16%, transparent) 50%, transparent 70%) 0 0 / 200% 100%; animation: cr-shine 1.3s linear infinite; }
.cr-sel.ok { box-shadow: inset 0 0 0 1.5px var(--o-green-fill); background: color-mix(in srgb, var(--o-green-fill) 8%, transparent); }
.cr-sel.ok::before { animation: none; opacity: 0; }
/* a lane each: who, what it's doing now, how many done */
.cr-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.cr-lanes li { display: flex; align-items: center; gap: 10px; min-width: 0; height: 50px; padding: 0 12px 0 9px; border-radius: 14px; background: var(--o-wall); box-shadow: inset 0 0 0 1px var(--o-line); transition: background 0.3s, box-shadow 0.3s; }
.cr-lanes .tm-av { width: 28px; height: 28px; padding: 2px; border-radius: 50%; background: color-mix(in srgb, var(--tc) 16%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 35%, transparent); }
.cr-ln { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3; }
.cr-ln b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; color: var(--o-ink); }
.cr-do { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--o-mute); }
.cr-n { flex-shrink: 0; display: inline-flex; align-items: center; font: 500 11.5px var(--mono); font-style: normal; color: var(--o-faint); font-variant-numeric: tabular-nums; }
.cr-ok { display: none; flex-shrink: 0; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--o-green-fill); color: #fff; }
.cr-lanes li[data-s="now"] { background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 50%, transparent), 0 4px 12px color-mix(in srgb, var(--tc) 10%, transparent); }
.cr-lanes li[data-s="now"] .cr-do { color: var(--o-text); }
.cr-lanes li[data-s="now"] .cr-n::before { content: ''; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--tc); animation: cr-blink 1s ease-in-out infinite; }
.cr-lanes li[data-s="done"] .cr-n { display: none; }
.cr-lanes li[data-s="done"] .cr-ok { display: grid; animation: cr-pop 0.45s cubic-bezier(.34, 1.6, .5, 1); }
.cr-lanes li[data-s="done"] .cr-do { color: var(--o-green); }
.cr-lanes li[data-s="wait"] .cr-do::before { content: '✓'; margin-right: 5px; font-weight: 600; color: var(--o-green-fill); }
.cr-build.done .cb-prog .wk-bar i { background: var(--o-green-fill); }
/* confetti (Towers' onboard.css .ob-fx) */
.ob-fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.ob-fx i { position: absolute; width: 7px; height: 11px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .cr-sel::before, .cb-blank { animation: none; } }
@media (max-width: 720px) {
  .cr-build .cb-frame { height: 380px; }
  .cr-build .cb-frame iframe { height: calc(380px / var(--s, 1)); }
  .cb-bar .sv-dots { display: none; }
  .cb-url > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cr-lanes { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cb-st { display: none; }
}

/* a build that stopped: why, in the window (app.js WIRE.build) */
.cb-st.bad { color: #b42318; }
.cb-st.bad::before { background: #d92d20 !important; }
.cb-fail { display: grid; gap: 8px; place-content: center; min-height: 220px; padding: 24px; text-align: center; font-size: 14px; color: var(--text-2); }
.cb-fail b { color: var(--ink); font-size: 17px; }
