/* Панель статуса очереди и её строки.
   Часть styles.css; порядок подключения в HTML = порядок каскада, менять нельзя. */

.task-status-row + .task-status-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.task-status-icon {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #cfd7e3;
  flex: 0 0 auto;
}

.task-status-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.task-status-label {
  min-width: 0;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Два этажа: подпись сверху, время под ней. В одну линию время обрезалось до
   «5:…» — колонка узкая, а справа ещё счётчик потоков и кнопки. */
.task-status-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
}

.task-status-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.task-status-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.task-status-meta:empty {
  display: none;
}

.task-status-count {
  min-width: 44px;
  text-align: right;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.task-status-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.task-stop-button {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  line-height: 1;
}

.task-stop-button:hover {
  border-color: rgba(239, 102, 102, 0.55);
  background: rgba(239, 102, 102, 0.12);
  color: #ffd7d7;
}

/* Проба доступности рядом с «Стоп»: та же геометрия, другой смысл — не отмена, а
   попытка не ждать следующего шага backoff. */
.task-probe-button {
  width: 24px;
  height: 24px;
  padding: 0;
  margin-right: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  line-height: 1;
}

.task-probe-button:hover {
  border-color: rgba(122, 178, 255, 0.55);
  background: rgba(122, 178, 255, 0.12);
  color: #dbe9ff;
}

.task-spinner {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-top-color: currentColor;
  animation: spin 0.9s linear infinite;
}

.task-status-row[data-task-kind="video"] .task-status-icon {
  color: #2fb8ff;
}

.task-status-row.is-processing .task-status-icon,
.task-status-row.is-processing .task-status-label,
.task-status-row.is-processing .task-status-count {
  color: var(--accent-strong);
}

.task-status-row.is-stopping .task-status-icon,
.task-status-row.is-stopping .task-status-label,
.task-status-row.is-stopping .task-status-count {
  color: var(--warn);
}

.task-status-row.is-queued .task-status-icon,
.task-status-row.is-queued .task-status-label {
  color: #e4edf8;
}

.task-status-row.is-error .task-status-icon,
.task-status-row.is-error .task-status-label,
.task-status-row.is-error .task-status-count {
  color: #ff8f8f;
}

.task-status-row.is-disabled {
  opacity: 0.58;
}

.composer-shell {
  display: grid;
  gap: 0;
  padding: 8px;
  min-width: 0;
  overflow: hidden;
}

.composer-tabs,
#app-notice {
  display: none;
}

.composer-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.composer-block + .composer-block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .composer-block + .composer-block {
  border-top-color: rgba(15, 23, 42, 0.1);
}
/* Строка отложенных заданий. Приглушена относительно активной: работа тут не
   идёт, а ждёт, и перетягивать взгляд с текущей генерации она не должна. */
.task-status-row.is-deferred .task-status-label,
.task-status-row.is-deferred .task-status-icon {
  color: var(--muted);
}

.task-status-row.is-deferred .task-status-meta {
  color: #8fb3e6;
}
