/* Command section → AI strategist console (template "Command": rails 120/40, row gap 64) */
.cmd__rails { padding: 120px var(--rail-pad); display: flex; align-items: center; gap: 64px; }
.cmd__intro { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cmd__intro .dim { color: var(--dim); }
.cmd__intro h2 { max-width: 560px; }
.cmd__stage { flex: 1 0 0; min-width: 0; overflow: clip; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 1199.98px) { .cmd__rails { flex-direction: column; align-items: flex-start; gap: 36px; padding: 96px var(--rail-pad); } .cmd__intro, .cmd__stage { flex: none; width: 100%; } }
@media (max-width: 809.98px) { .cmd__rails { gap: 28px; padding: 72px var(--rail-pad); } }

/* status pill (template AgentPulse, mode "status") */
.pulse { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; min-width: 0; font: 400 16px/1.45 var(--f-body); color: var(--muted); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; }
.pulse__dot { display: none !important; position: relative; width: 8px; height: 8px; display: inline-grid; place-items: center; flex: none; }
.pulse__dot::before { content: ''; position: absolute; inset: 0; border-radius: 8px; background: var(--live); opacity: 0.25; animation: apRing 1.8s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
.pulse__dot::after { content: ''; width: 6px; height: 6px; border-radius: 6px; background: var(--live); }
.pulse__txt { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
.pulse__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.18em; background: var(--text); opacity: 0.7; }
@keyframes apRing { 0% { transform: scale(1); opacity: 0.35; } 100% { transform: scale(2.6); opacity: 0; } }

/* console (template Command Deck) */
.cd { width: 100%; display: flex; flex-direction: column; font-family: var(--f-body); color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.cd__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; height: 48px; border-bottom: 1px solid var(--line); }
.cd__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: relative; }
.cd__tab { position: relative; height: 32px; padding: 0 8px; border-radius: 6px; font: 500 13px var(--f-body); color: var(--muted); white-space: nowrap; transition: color 160ms ease; }
.cd__tab.is-on { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .cd__tab:hover { color: var(--text); } }
.cd__tab span { position: relative; }
.cd__pill { position: absolute; top: 0; left: 0; height: 32px; border-radius: 6px; background: var(--raised); box-shadow: inset 0 0 0 1px rgba(250, 250, 249, 0.1); transition: transform 0.3s var(--spring), width 0.3s var(--spring); pointer-events: none; }
.cd__count { font: 500 12px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 8px; }
.cd__count b { font-weight: 500; color: var(--text); } .cd__count b.is-busy { color: var(--accent); }
.cd__you { padding: 20px 20px 4px; display: flex; flex-direction: column; gap: 6px; }
.cd__lbl { font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.cd__lbl em { font-style: normal; color: var(--accent); }
.cd__prompt { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; min-height: 2.7em; text-wrap: balance; }
.cd__caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--accent); animation: cdBlink 1s steps(1) infinite; }
.cd__body { padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cd__steps { display: flex; flex-direction: column; min-height: 134px; }
.cd__step { display: grid; grid-template-columns: 76px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity 0.24s cubic-bezier(0.23, 1, 0.32, 1), transform 0.24s cubic-bezier(0.23, 1, 0.32, 1); }
.cd__step.is-in { opacity: 1; transform: none; }
.cd__agent { font: 500 12px var(--f-mono); color: var(--text); }
.cd__task { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd__st { display: grid; place-items: center; }
.cd__spin { width: 12px; height: 12px; border-radius: 12px; border: 1.5px solid rgba(250, 250, 249, 0.18); border-top-color: var(--accent); animation: cdSpin 0.8s linear infinite; }
.cd__sum { border-top: 1px solid var(--line); padding-top: 10px; font: 500 12px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s; }
.cd__sum.is-half { opacity: 0.5; } .cd__sum.is-done { opacity: 1; color: var(--text); }
.cd__form { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 0 6px 0 8px; height: 46px; background: var(--bg); border: 1px solid rgba(250, 250, 249, 0.12); border-radius: 8px; transition: border-color 160ms ease; }
.cd__form:focus-within { border-color: rgba(250, 250, 249, 0.28); }
.cd__form input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--text); font: 400 14px var(--f-body); }
.cd__form input::placeholder { color: #78716c; }
.cd__send { width: 36px; height: 36px; border-radius: 5px; display: grid; place-items: center; background: var(--raised); cursor: default; transition: background-color 160ms ease, transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.cd__send svg { width: 14px; height: 14px; stroke: var(--muted); }
.cd__send.is-on { background: var(--accent); cursor: pointer; } .cd__send.is-on svg { stroke: var(--bg); }
.cd__send.is-on:active { transform: scale(0.96); }
@keyframes cdBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes cdSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cd__caret, .cd__spin, .pulse__dot::before { animation: none; } }
