/* live.css -- what runs now (live.js): a quiet row per lane, no shadows. Tokens from core.css. */

.liv-main { width: min(1760px, calc(100vw - 48px)); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; position: relative; }
.liv-head { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.liv-h { margin: 0; flex: 1; font-size: calc(var(--ui-fs) * 18 / 13); font-weight: 600; color: var(--text-strong); }
.liv-x { background: none; border: 0; color: var(--text-dim); font-size: 22px; line-height: 1; padding: 2px 6px; border-radius: var(--radius-sm); cursor: pointer; }
.liv-x:hover { background: var(--hover); color: var(--text); }
.liv-x:focus-visible, .liv-tk:focus-visible { outline: 1px solid var(--focus); outline-offset: 1px; }

.liv-conv { flex: none; font: inherit; font-size: calc(var(--ui-fs) * 11 / 13); color: var(--text-dim); background: none; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 1px 6px; cursor: pointer; }
.liv-conv:hover { color: var(--text); background: var(--hover); }
.liv-agents-sec { flex: none; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--rule); }
.liv-agents { font: var(--ui-fs)/1.4 var(--font-ui); color: var(--text); flex: none; height: 640px; margin-top: 6px; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
/* in a tab the box goes edge to edge (the card pads 20px): the agent list wants the full width of the work area */
.scr-tab .liv-agents { margin-left: -20px; margin-right: -20px; border-width: 1px 0; border-radius: 0; }
@media (max-width: 760px) { .liv-agents { height: 900px; } }

.liv-board { display: flex; flex-direction: column; gap: 10px; }
.liv-lane { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.5fr) minmax(220px, 0.8fr); gap: 22px; align-items: center; border: 1px solid var(--rule); border-left: 3px solid var(--text-muted); border-radius: 8px; padding: 16px 20px; }
.liv-lane.s-working { border-left-color: var(--focus); background: color-mix(in srgb, var(--focus) 8%, transparent); }
.liv-lane.s-paused { border-left-color: var(--attn); }
.liv-who { flex-wrap: wrap; display: flex; align-items: center; gap: 10px; min-width: 0; }
.liv-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: calc(var(--ui-fs) * 14 / 13); background: color-mix(in srgb, var(--focus) 14%, var(--surface2)); color: var(--text-strong); }
.liv-name { display: flex; flex-direction: column; min-width: 150px; flex: 1; }
.liv-agent { font-weight: 650; font-size: calc(var(--ui-fs) * 16 / 13); color: var(--text-strong); }
.liv-fn { color: var(--text-dim); font-size: calc(var(--ui-fs) * 13 / 13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liv-badge { flex: none; font-size: calc(var(--ui-fs) * 11 / 13); text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.liv-badge[data-badge="working"] { color: var(--focus); }
.liv-badge[data-badge="paused"] { color: var(--attn); }

.liv-now, .liv-next { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.liv-tk { display: flex; align-items: baseline; gap: 6px; width: 100%; min-width: 0; text-align: left; font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; }
.liv-tk:hover .liv-title { text-decoration: underline; }
.liv-id, .liv-prio { flex: none; color: var(--text-dim); }
.liv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liv-cur { color: var(--text-strong); font-weight: 600; }
.liv-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: calc(var(--ui-fs) * 14 / 13); }
.liv-stale { color: var(--attn); }
.liv-line { color: var(--text-dim); margin: 0; }
.liv-cap { color: var(--text-muted); font-size: calc(var(--ui-fs) * 12 / 13); text-transform: uppercase; letter-spacing: .06em; }
.liv-nx { color: var(--text-dim); font-size: calc(var(--ui-fs) * 13 / 13); }

.liv-outside { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.liv-oh { margin: 0; font-size: calc(var(--ui-fs) * 11 / 13); letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.liv-ask { color: var(--attn); }
.liv-none { color: var(--text-muted); }

@media (max-width: 980px) {
  .liv-lane { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
