/* >>> NEW: vertical stack container for all goal panels >>> */
#tasksStack {
  position: static;
  width: 100%;
  max-height: 46vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  box-sizing: border-box;
}

/* FIX: let #tasksStack anchor to the page, not to .tasks-wrap */
.tasks-wrap {
  position: static;
  /* or just remove this rule entirely */
  width: 100%;
}

/* Hide the stack when it lives in the scene; show it only inside the dialog */
.tasks-wrap > #tasksStack {
  display: none;
}
#todoGoalContainer > #tasksStack {
  display: grid;
}

.tasks-chip-row {
  width: clamp(260px, 28vw, 420px);
  margin: 14px 3vw 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* Position override — ID specificity beats .timer-summary-panel */
#todoDialog {
  left: auto !important;
  right: 24px !important;
  top: calc(12vh + 80px) !important;
  transform: none !important;
}

/* To Do modal styling */
.todo-panel {

  width: min(90vw, 560px);
  padding: 26px 28px 24px;
  background:
    radial-gradient(150px circle at 50% 42%, rgba(255, 255, 255, .4), rgba(245, 240, 230, .15) 70%),
    linear-gradient(135deg, rgba(222, 196, 160, .45) 0%, rgba(194, 178, 140, .35) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 2px solid rgba(194, 178, 140, .4);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, .24),
    inset 0 0 0 1px rgba(245, 240, 230, .25),
    0 0 20px rgba(194, 178, 140, .2);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.todo-header {
  justify-content: space-between;
}

.todo-body {
  align-items: center;
  text-align: center;
  gap: 12px;
}

.todo-description {
  font-size: 16px;
  font-weight: 700;
  color: #2b2213;
}

.todo-goal-container {
  width: 100%;
  margin: 8px 0 4px;
}


.todo-task-list {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
}

.todo-task-item {
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px solid rgba(194, 178, 140, .35);
  background: rgba(245, 240, 230, .3);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #2b2213;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
  cursor: pointer;
}

.todo-task-item:hover {
  background: rgba(245, 240, 230, .45);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 178, 140, .25);
}

.todo-task-meta {
  font-weight: 700;
  color: rgba(43, 34, 19, .7);
}

.todo-empty {
  font-size: 14px;
  font-weight: 700;
  color: rgba(43, 34, 19, .8);
}

.todo-actions {
  justify-content: center;
  gap: 12px;
}

@media (max-width: 720px) {
  #tasksStack {
    max-height: 52vh;
  }
}

.tasks-chip-row .add-chip,
.tasks-chip-row .chip {
  flex-shrink: 0;
  pointer-events: auto;
}

/* ---------- Goal panel (visuals only; no absolute positioning here) ---------- */
.tasks-panel {
  position: static;
  /* participates in flow under .tasks-wrap */
  width: 100%;
  padding: 14px 14px 16px;
  border-radius: 28px;
  color: #2b2213;
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .1) 70%),
    linear-gradient(135deg, rgba(201, 138, 46, .35) 0%, rgba(192, 98, 42, .25) 100%);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 2px solid rgba(201, 138, 46, .40);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .2),
    0 0 20px rgba(201, 138, 46, .25);
  z-index: 10;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tasks-list {
  max-height: clamp(160px, 30vh, 360px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px;
}

.task-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 2px solid rgba(201, 138, 46, .20);
  background:
    radial-gradient(120px circle at 50% 42%, rgba(255, 255, 255, .4), rgba(255, 255, 255, .1) 70%),
    linear-gradient(135deg, rgba(250, 244, 232, .45) 0%, rgba(222, 196, 160, .35) 100%);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
  transition: box-shadow .25s ease, transform .2s ease, background .25s ease, backdrop-filter .2s ease;
}

.task-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtasks-list {
  grid-column: 1 / -1;
}

.task-name {
  font-weight: 700;
}

.task-card:focus-visible {
  outline: 3px solid rgba(43, 34, 19, .7);
  outline-offset: 2px;
}

.task-card.is-hover {
  background:
    radial-gradient(120px circle at 50% 42%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .15) 70%),
    linear-gradient(135deg, rgba(250, 244, 232, .55) 0%, rgba(222, 196, 160, .45) 100%);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .16);
}

.task-card.is-active .task-name {
  color: #6e8c70;
}

.task-card.is-active .subtasks-list {
  border-left-color: #6e8c70;
}

.task-card.is-active {
  border-color: #6e8c70;
  background:
    radial-gradient(120px circle at 50% 42%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .18) 70%),
    linear-gradient(135deg, rgba(250, 244, 232, .6) 0%, rgba(222, 196, 160, .5) 100%);
  backdrop-filter: blur(12px) saturate(170%);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  box-shadow: 0 0 0 2px #6e8c70, 0 8px 20px rgba(110, 140, 112, 0.20);
}

/* Session-completed tasks: green tint, not deleted */
.task-card.is-session-done {
  border-color: rgba(110, 140, 112, 0.50);
  background: rgba(110, 140, 112, 0.06);
}

.task-card.is-session-done .task-name {
  color: #6e8c70;
}

.task-title-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.task-title-input {
  appearance: none;
  border: 1px solid rgba(43, 34, 19, .35);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, .95);
  min-width: 180px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-title-input:focus {
  outline: none;
  border-color: rgba(224, 162, 51, .7);
  box-shadow: 0 0 0 2px rgba(201, 138, 46, 0.25);
}

.task-title-save,
.task-title-cancel {
  appearance: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(43, 34, 19, .35);
  background: rgba(255, 255, 255, .8);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.task-title-save:hover,
.task-title-cancel:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
  filter: brightness(1.02);
}

.task-title-save:active,
.task-title-cancel:active {
  transform: translateY(0);
}

.task-title-save {
  border: 2px solid rgba(255, 255, 255, .6);
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}


.session-bubble {
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .6);
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  min-width: 64px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.session-bubble:focus-visible {
  outline: 3px solid rgba(43, 34, 19, .7);
  outline-offset: 2px;
}

.session-bubble.editing {
  cursor: auto;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(250, 244, 232, .92);
  border-color: #c98a2e;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  min-width: auto;
}

.session-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #2b2213;
  align-items: flex-start;
}

.session-field-label {
  font-weight: 700;
  letter-spacing: .3px;
}

.session-input {
  min-width: 6ch;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(43, 34, 19, .35);
  background: rgba(255, 255, 255, .9);
  font-weight: 700;
  text-align: center;
}

.session-input::-webkit-outer-spin-button,
.session-input::-webkit-inner-spin-button {
  margin: 0;
}

.session-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.session-input:focus-visible {
  outline: 2px solid #c98a2e;
  outline-offset: 1px;
}

.field-error {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #b22f1e;
}

.session-error {
  width: 100%;
  margin-left: 0;
  font-size: 12px;
  font-weight: 600;
  color: #b22f1e;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: auto;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Create editor */

.task-create {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  grid-column: 1 / -1;
}

.task-create-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.task-create-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #2b2213;
}

.task-create-label {
  align-self: flex-start;
  text-align: left;
  letter-spacing: .3px;
}

.task-create-input {
  appearance: none;
  border: 1px solid rgba(43, 34, 19, .35);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .9);
  font-weight: 700;
  font-size: 14px;
  color: #2b2213;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12) inset;
}

.task-create-input:focus-visible {
  outline: 2px solid #c98a2e;
  outline-offset: 2px;
}

.task-create-name {
  min-width: 180px;
}

.task-create-estimate {
  min-width: 6ch;
  padding: 8px 12px;
  text-align: center;
}

@media (min-width:768px) {
  .session-input {
    min-width: 8ch;
  }

  .task-create-estimate {
    min-width: 8ch;
  }
}

.task-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.task-create-save,
.task-create-cancel {
  appearance: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}

.task-create-save {
  border: 2px solid rgba(255, 255, 255, .6);
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #2b2213;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

.task-create-save:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.task-create-save:hover:not(:disabled) {
  filter: brightness(1.03);
}

.task-create-save:active:not(:disabled) {
  transform: translateY(1px);
}

.task-create-cancel {
  border: 2px solid rgba(43, 34, 19, .35);
  background: rgba(255, 255, 255, .75);
  color: #2b2213;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.task-create-cancel:hover {
  filter: brightness(1.02);
}

.task-create-cancel:active {
  transform: translateY(1px);
}

.task-create-save:focus-visible,
.task-create-cancel:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

.task-create .field-error {
  margin-top: 0;
}

.task-del {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .6);
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #2b2213;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  cursor: pointer;
  line-height: 1;
}

.task-del:hover {
  filter: brightness(1.03);
}

.task-del:active {
  transform: translateY(1px);
}

.task-del:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

.task-del svg {
  width: 18px;
  height: 18px;
}

/* Create button (white shiny glass) */
.tasks-panel .task-add,
button.task-add {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .6);
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #2b2213;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.task-add-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.tasks-panel .task-add:hover,
button.task-add:hover {
  filter: brightness(1.03);
}

.tasks-panel .task-add:active,
button.task-add:active {
  transform: translateY(1px);
}

.tasks-panel .task-add:focus-visible,
button.task-add:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

.tasks-panel .task-add:disabled,
button.task-add:disabled {
  opacity: .6;
  cursor: not-allowed;
  filter: none;
}

/* Small screens — match the mobile Tasks area width */
@media (max-width:640px) {
  .task-create-estimate {
    min-width: 7ch;
  }
}

/* ▼▼▼ NEW: Tasks header + title + pencil button ▼▼▼ */
.tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 6px 10px;
}

.tasks-title {
  font-weight: 800;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .2px;
}

/* small round white glass button with a pencil */
.task-title-edit {
  appearance: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .6);
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #2b2213;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  line-height: 0;
}

.task-title-edit:hover {
  filter: brightness(1.03);
}

.task-title-edit:active {
  transform: translateY(1px);
}

.task-title-edit:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

.task-title-edit-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Header actions row + trash button (to the right of the pencil) ▼▼▼ */
.tasks-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  /* small gap between pencil and trash */
}

/* White glass circular delete (trash) button — matches pencil styling */
.task-title-delete {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .6);
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #2b2213;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.task-title-delete:hover {
  filter: brightness(1.03);
}

.task-title-delete:active {
  transform: translateY(1px);
}

.task-title-delete:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

.task-title-delete-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Safety: if a .tasks-panel ever gets nested inside another by mistake, neutralize it */
.tasks-panel .tasks-panel {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

/* ----------------------------- Subtasks styling ---------------------------- */
.subtasks-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subtask-toggle {
  -webkit-appearance: none;
  appearance: none;
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #2b2213;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.subtask-toggle:hover {
  filter: brightness(0.98);
  border-color: rgba(224, 162, 51, 1);
}

.subtask-toggle:active {
  transform: scale(0.95);
}

.subtask-toggle:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

.subtasks-wrap {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(224, 162, 51, .6);
  background: rgba(250, 244, 232, .45);
  box-shadow: inset 0 0 0 2px rgba(201, 138, 46, .16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subtasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.subtasks-title {
  font-weight: 700;
  color: #2b2213;
  letter-spacing: 0.2px;
}

.subtask-add {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid rgba(255, 255, 255, .6);
  background:
    radial-gradient(150px circle at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(240, 240, 240, .5) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #2b2213;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.subtask-add:hover {
  filter: brightness(1.03);
}

.subtask-add:active {
  transform: translateY(1px);
}

.subtask-add:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

.subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding-left: 10px;
  border-left: 2px solid rgba(224, 162, 51, .3);
}

.subtasks-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  grid-column: 1 / -1;
}

.subtasks-empty {
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .04);
  color: #4b3c22;
  font-size: 13px;
}

.subtask-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(224, 162, 51, .35);
}

.subtask-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.subtask-title {
  border: none;
  background: none;
  color: #2b2213;
  font-weight: 700;
  text-align: left;
  padding: 0;
  cursor: pointer;
  min-width: 0;
}

.subtask-title:hover {
  text-decoration: underline;
}

.subtask-title:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

.subtask-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b3c22;
  font-weight: 700;
}

.subtask-estimate {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(224, 162, 51, .18);
  border: 1px solid rgba(224, 162, 51, .4);
  font-size: 12px;
}

.subtask-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtask-del {
  border: none;
  background: rgba(0, 0, 0, .06);
  color: #2b2213;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
}

.subtask-del:hover {
  filter: brightness(0.95);
}

.subtask-del:active {
  transform: translateY(1px);
}

.subtask-del:focus-visible {
  outline: 2px solid #2b2213;
  outline-offset: 2px;
}