/* Crew player: lane header with the crew, speech bubbles, panel blocks. Builds on
   spike 2's player.css (variables, cursor, selection, panel controls). */

.app { grid-template-columns: 1fr 360px; }

.crew-lane .lane-head { gap: 10px; }
.crew-lane .lane-head .title { color: var(--ink); font-weight: 600; flex: none; }
.crew-lane .gen { padding: 1px 8px; border-radius: 99px; background: var(--line); color: var(--ink); font-size: 11px; flex: none; }
.crew-lane .gen.busy { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.crew-lane .crew { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.crew-lane .clock { margin-left: auto; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 99px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--agent); }
.chip b { color: var(--ink); font-weight: 600; }
.chip[data-s="working"] { background: var(--agent); border-color: var(--agent); color: #fff; }
.chip[data-s="working"] b { color: #fff; }
.chip[data-s="working"] i { background: #fff; }
.chip[data-s="waiting"] { border-style: dashed; }
.chip[data-s="done"] { opacity: .6; }

/* speech bubble under the cursor label */
.agent-cursor .say {
  position: absolute; left: 15px; top: 46px; width: max-content; max-width: 280px;
  padding: 6px 10px; border-radius: 4px 12px 12px 12px; background: #fff; color: #1d1c1a;
  border: 1.5px solid var(--agent); box-shadow: 0 4px 14px rgba(0,0,0,.18);
  font: 500 12.5px/1.35 system-ui, -apple-system, sans-serif; white-space: normal;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.agent-cursor .say.on { opacity: 1; transform: none; }
.agent-cursor .say:empty { display: none; }

/* panel */
.panel .block { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.panel .block h3 { margin: 0; }
.panel select#run { width: 100%; }
.panel .brief { margin: 0; font-size: 14px; color: var(--ink); }
.panel p { margin: 0; }
.panel .stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.panel .stats b { color: var(--ink); }
.panel details { font-size: 12px; color: var(--muted); }
.panel details ul { margin: 4px 0 0; padding-left: 18px; }
.panel button.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.panel .field .row { flex-wrap: nowrap; }
.panel input[type="range"] { width: 140px; }
.log { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.log li { line-height: 1.4; }
.log .t { display: inline-block; width: 34px; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.log i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.sections { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
