.task-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
}
.task-tabs button {
  padding: 8px 14px;
  background: transparent;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 550;
  font-size: 13px;
}
.task-tabs .active {
  background: #e7eedf;
  color: #374833;
}
.task-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  margin-bottom: 10px;
}
.task-card:hover {
  border-color: #bac9ad;
}
.task-icon {
  display: grid;
  place-items: center;
  background: #eaf3e0;
  border-radius: 10px;
  color: #517441;
  width: 43px;
  height: 43px;
  flex: none;
}
.task-info {
  flex: 1;
  min-width: 0;
}
.task-info h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.task-info p,
.task-summary p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.task-progress {
  width: 140px;
  font-size: 12px;
  color: var(--muted);
  flex: none;
}
.task-progress b {
  color: var(--ink);
}
.task-progress progress {
  width: 100%;
  height: 6px;
  border: 0;
  display: block;
  margin-top: 6px;
  background: #e6ece1;
  accent-color: #85af5a;
  border-radius: 12px;
  overflow: hidden;
}
.task-progress progress::-webkit-progress-bar {
  background: #e6ece1;
}
.task-progress progress::-webkit-progress-value {
  background: #85af5a;
  border-radius: 12px;
}
.task-form {
  display: grid;
  gap: 15px;
}
.task-scopes {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.task-scopes legend {
  font-size: 13px;
  font-weight: 550;
}
.task-scopes .btn {
  font-size: 12px;
  min-height: 30px;
}
.task-scopes > div {
  max-height: 180px;
  overflow: auto;
}
.task-court {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  font-size: 13px;
}
.task-hint,
.task-empty {
  color: var(--muted);
  font-size: 13px;
}
.task-empty {
  padding: 16px 19px;
}
.task-title h1 {
  max-width: 1000px;
  font-size: clamp(25px, 2.7vw, 36px);
  overflow-wrap: anywhere;
}
.task-summary {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.task-summary p {
  white-space: pre-line;
}
.task-summary small,
.asset-task-row small,
.task-target small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.task-filter {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.task-target,
.asset-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
}
.task-target + .task-target,
.asset-task-row + .asset-task-row {
  border-top: 1px solid var(--line);
}
.task-target a:hover b,
.asset-task-row a:hover {
  text-decoration: underline;
}
.task-mark {
  background: #fff;
  border: 1px solid #ccd7c9;
  border-radius: 7px;
  min-height: 37px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}
.task-mark.done {
  background: #eaf4e3;
  color: #43643a;
  border-color: #d5e2cb;
}
.task-mark:disabled {
  opacity: 0.85;
}
.target-check {
  text-align: right;
}
.asset-task-panel {
  margin-top: 16px;
}
.asset-task-panel .panel-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.asset-task-row {
  font-size: 13px;
}
.task-target a,
.asset-task-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.option-list {
  margin-top: 8px;
}
@media (max-width: 620px) {
  .task-card {
    display: grid;
    grid-template-columns: 35px 1fr 15px;
    gap: 8px;
    padding: 13px;
  }
  .task-icon {
    width: 33px;
    height: 33px;
  }
  .task-card > .ico {
    grid-column: 3;
    grid-row: 1;
  }
  .task-card .task-progress {
    grid-row: 2;
    grid-column: 2;
    width: 100%;
  }
  .task-summary {
    flex-direction: column;
  }
  .task-target,
  .asset-task-row {
    padding: 12px;
    align-items: flex-start;
  }
  .task-mark {
    min-height: 40px;
    white-space: nowrap;
  }
  .task-targets .panel-head {
    align-items: flex-start;
  }
  .task-targets .task-progress {
    width: 105px;
  }
  .target-check {
    max-width: 46%;
    flex: none;
  }
  .task-card .task-info h2 {
    font-size: 15px;
  }
}
