a.scenario-card {
  color: inherit;
  text-decoration: none;
}

.task-card {
  height: auto;
  min-height: 9.5rem;
}

.task-grid-empty {
  grid-column: 1 / -1;
  margin: 0;
}

#task-grid .card-new {
  height: auto;
  min-height: 9.5rem;
}

.task-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.task-filters {
  align-items: center;
}

.task-filters .form-input {
  width: auto;
  min-width: 8.5rem;
  min-height: 36px;
}

.task-filters .button {
  min-height: 36px;
}

.task-filters .button.is-on {
  border-color: transparent;
  background: var(--color-primary);
  color: var(--color-white);
}

.status-pill {
  align-self: flex-start;
  padding: 1px 8px;
  border: 1px solid var(--color-button-border);
  border-radius: var(--radius);
  line-height: 1.4;
}

.person-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--swatch-empty-mid);
  font-size: 13px;
}

.person-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assignee-row,
.creator-line,
.assignee-line,
.member-row,
.assignee-pick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-list,
.task-detail,
.task-form {
  padding-left: var(--desk-align);
}

.task-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40rem;
}

textarea.form-input {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.task-form-actions {
  flex-direction: row;
  flex-wrap: wrap;
}

.task-form-actions .button {
  width: auto;
  min-width: 8rem;
}

.tag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.tag-chip-row:empty {
  display: none;
}

.task-color-bar {
  height: 8px;
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--swatch-empty-mid);
}

.task-section {
  margin-top: 28px;
}

.task-section h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: inherit;
}

.task-description {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
}

.task-description.is-empty,
.muted {
  color: var(--color-muted);
}

.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
}

.history-time {
  display: block;
  color: var(--color-muted);
}

.member-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding-left: var(--desk-align);
}

.member-add .form-input {
  width: auto;
  min-width: 10rem;
  min-height: 36px;
}

.member-add .button,
.member-row .button,
.status-move {
  min-height: 36px;
}

.member-username {
  color: var(--color-muted);
}

.member-role-text {
  color: var(--color-text);
}

.member-row .form-input {
  width: auto;
  min-width: 6.5rem;
  min-height: 36px;
}

.assignee-picks {
  display: flex;
  flex-direction: column;
}

.assignee-pick {
  padding: 4px 0;
}

#tag-pick-options {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  text-align: left;
}

.tag-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0 -8px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tag-pick:hover,
.tag-pick.is-on {
  background: var(--color-secondary-hover);
}

.tag-pick .tag-swatch {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--color-button-border);
  border-radius: 2px;
}

.tag-pick-mark,
.tag-swatch.is-selected::after {
  flex: 0 0 auto;
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  margin-left: auto;
  background: var(--color-primary);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.6 17 19 7.5'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.6 17 19 7.5'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}

.tag-pick-mark.is-empty {
  background: transparent;
}

.tag-swatch.is-selected::after {
  margin-left: 0;
}

.tag-edit-head .character-trash,
.status-move {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.tag-edit-head .character-trash svg,
.status-move svg {
  width: 18px;
  height: 18px;
}

.status-move-row {
  display: flex;
  gap: 4px;
}

.tag-edit-name[readonly] {
  background: var(--color-page);
}

@media (max-width: 768px) {
  .member-list,
  .task-detail,
  .task-form,
  .member-add {
    padding-left: 0;
  }

  .task-filters .desk-tool {
    flex-wrap: wrap;
  }
}
