.task-center-panel[hidden] {
  display: none !important;
}

html body#homeWorkspace.home-workspace.task-center-page {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: auto !important;
}

body#homeWorkspace.home-workspace.task-center-page .task-center-panel {
  position: relative;
  z-index: 15;
  display: grid;
  gap: 12px;
  flex: 1 0 auto;
  align-content: start;
  min-height: calc(100dvh - 150px);
  padding: 24px 28px 30px;
  border: 0;
  background: #f8faf9;
}

.task-center-head,
.task-center-head-actions,
.task-center-row,
.task-center-row-main,
.task-center-row-actions {
  display: flex;
  align-items: center;
}

.task-center-head {
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.task-center-head h2 {
  margin: 2px 0 3px;
  color: #1c2a24;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
}

.task-center-kicker {
  color: #6d8177;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.task-center-status {
  min-height: 18px;
  margin: 0;
  color: #6a7770;
  font-size: 12px;
  line-height: 1.45;
}

.task-center-head-actions {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
  align-items: end;
  gap: 12px;
}

.task-center-filter-field { display: grid; gap: 6px; min-width: 0; }
body#homeWorkspace .task-center-head-actions .task-center-filter { width: 100%; min-width: 0; min-height: 40px; margin: 0; }
body#homeWorkspace .task-center-head-actions .task-center-button { width: auto; min-width: 0; min-height: 40px; margin: 0; }

.task-center-filter-label {
  color: #59675f;
  font-size: 12px;
  font-weight: 650;
}

.task-center-filter,
.task-center-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d4ded8;
  border-radius: 5px;
  background: #fff;
  color: #304239;
  font: inherit;
  font-size: 13px;
}

.task-center-button {
  cursor: pointer;
  font-weight: 650;
}

.task-center-button:hover:not(:disabled) {
  border-color: #94b3a3;
  background: #f2f7f4;
}

.task-center-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.task-center-button-quiet {
  color: #64736b;
}

.task-center-counts {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.task-center-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #e0e7e2;
  border-radius: 5px;
  background: #fff;
  color: #56665d;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.task-center-count[aria-pressed="true"] { border-color: #38836a; background: #e7f5ed; }
.task-center-note { margin: 5px 0 0; color: #6a7770; font-size: 13px; }
.task-center-note a { color: #28734c; }
.task-center-source { color: #20372b; font-size: 14px; font-weight: 700; }
.task-center-id { max-width: 100%; color: #6a7770; font-size: 11px; overflow-wrap: anywhere; }
.task-center-id summary { cursor: pointer; }
.task-center-copy { flex: 1 1 auto; }
.task-center-row-actions { flex-wrap: wrap; justify-content: flex-end; }
.task-center-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; color: #59675f; font-size: 14px; }
.task-center-results { width: min(1100px, calc(100vw - 32px)); max-height: 90dvh; box-sizing: border-box; padding: 20px; border: 1px solid #d4ded8; border-radius: 10px; }
.task-center-results::backdrop { background: rgb(10 20 15 / 65%); }
.task-center-result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.task-center-result-head h2 { margin: 0; font-size: 20px; }
.task-center-result-images { display: grid; gap: 18px; padding-top: 14px; }
.task-center-result-images figure { display: grid; justify-items: center; gap: 10px; margin: 0; }
.task-center-result-images img { display: block; max-width: 100%; max-height: 70dvh; width: auto; height: auto; object-fit: contain; }
.task-center-result-images a { display: inline-flex; align-items: center; text-decoration: none; }

.task-center-count strong {
  color: #20372b;
  font-size: 13px;
}

.task-center-list {
  display: grid;
  gap: 7px;
  max-height: min(33vh, 280px);
  min-height: 46px;
  overflow: auto;
  overscroll-behavior: contain;
}

.task-center-page .task-center-list {
  max-height: min(58vh, 680px);
}

.task-center-empty {
  display: grid;
  min-height: 46px;
  place-items: center;
  color: #7b8981;
  font-size: 13px;
}

.task-center-row {
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e2e8e4;
  border-radius: 5px;
  background: #fff;
}

.task-center-row-main {
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}

.task-center-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  min-height: 25px;
  padding: 0 6px;
  border-radius: 4px;
  background: #eef2ef;
  color: #5d6e64;
  font-size: 11px;
  font-weight: 750;
}

.task-center-state.is-running,
.task-center-state.is-queued {
  background: #eaf3ff;
  color: #315f9c;
}

.task-center-state.is-succeeded {
  background: #e7f5ed;
  color: #28734c;
}

.task-center-state.is-failed {
  background: #fff0ec;
  color: #aa4938;
}

.task-center-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.task-center-message {
  overflow: hidden;
  color: #2b3931;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-center-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #849088;
  font-size: 11px;
}

.task-center-stage {
  color: #34765c;
  font-weight: 700;
}

.task-center-progress {
  width: min(130px, 15vw);
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eeeb;
}

.task-center-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #38836a;
}

.task-center-row-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.task-center-cancel {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #edcbc5;
  border-radius: 4px;
  background: #fff;
  color: #a64839;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.task-center-cancel:hover:not(:disabled) {
  background: #fff4f1;
}

.task-center-cancel:disabled {
  opacity: 0.58;
  cursor: wait;
}

@media (max-width: 760px) {
  body#homeWorkspace.home-workspace.task-center-page .task-center-panel {
    min-height: calc(100dvh - 180px);
    padding: 16px 15px 20px;
  }

  .task-center-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .task-center-head-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    width: 100%;
  }

  .task-center-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-center-row-main {
    align-items: flex-start;
    width: 100%;
  }

  .task-center-row-actions { width: 100%; }

  .task-center-state {
    flex-basis: 58px;
  }

  .task-center-progress {
    display: none;
  }
}

@media (max-width: 430px) {
  .task-center-head-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .task-center-filter-field:first-child { grid-column: 1 / -1; }
  .task-center-filter-label {
    flex-basis: 100%;
  }

  .task-center-filter {
    flex: 1 1 130px;
  }

  .task-center-row {
    gap: 6px;
    padding: 8px;
  }

  .task-center-meta {
    gap: 5px 9px;
  }
}
