.dc-sheet {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.dc-masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.dc-masthead h2 {
  font-size: 30px;
  margin: 0;
  text-wrap: balance;
}
.dc-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dc-tagline {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.dc-utility-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin: 0 0 14px;
}
button.dc-utility-button {
  min-height: 0;
  padding: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
button.dc-utility-button:hover {
  background: none;
  color: var(--accent-strong);
  text-decoration-color: var(--accent-strong);
}
.dc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.dc-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.dc-progress-track {
  flex: 1;
  height: 6px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}
.dc-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.dc-progress-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dc-add-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 6px 8px;
  margin-bottom: 18px;
}
#dc-task {
  grid-area: 1 / 1;
}
#dc-project {
  grid-area: 1 / 2;
}
#dc-prioritize {
  grid-area: 1 / 3;
}
#dc-add {
  grid-area: 1 / 4;
}
#dc-link-toggle {
  grid-area: 2 / 1;
  justify-self: start;
}
#dc-url {
  grid-area: 3 / 1;
}
.dc-add-row input,
.dc-edit-input,
.dc-edit-project,
.dc-edit-url {
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14.5px;
  padding: 11px 13px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.dc-add-row input {
  width: 100%;
}
.dc-add-row input:focus {
  border-color: var(--accent);
  background: var(--surface);
}
#dc-url {
  font-size: 12.5px;
  padding: 8px 12px;
}
#dc-url[hidden] {
  display: none;
}
button.dc-link-toggle {
  min-height: 0;
  padding: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}
button.dc-link-toggle:hover {
  background: none;
  color: var(--accent-strong);
}
button.dc-prioritize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  padding: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-faint);
}
button.dc-prioritize:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text);
}
button.dc-prioritize.active {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent-strong);
}
button.dc-prioritize svg {
  display: block;
  width: 16px;
  height: 16px;
}
.dc-add-button {
  padding: 11px 18px;
  font-size: 14px;
}
.dc-parents {
  display: flex;
  gap: 3px;
  width: fit-content;
  padding: 3px;
  margin-bottom: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
button.dc-parent {
  padding: 7px 16px;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
}
button.dc-parent:hover {
  background: transparent;
  color: var(--text);
}
button.dc-parent.active {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: 0 1px 2px rgba(20, 30, 25, 0.08);
}
.dc-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
button.dc-chip {
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
}
button.dc-chip:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--text);
}
button.dc-chip.active {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent-strong);
}
.dc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dc-empty {
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 40px 0 32px;
}
.dc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}
.dc-item:last-child {
  border-bottom: none;
}
.dc-item.dragging {
  opacity: 0.4;
}
.dc-item.drag-over {
  box-shadow: inset 0 2px 0 var(--accent);
}
.dc-item.priority {
  position: relative;
  padding-left: 15px;
}
.dc-item.priority::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.dc-item.priority .dc-text {
  font-weight: 600;
}
.dc-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-faint);
  cursor: grab;
  touch-action: none;
}
.dc-handle:active {
  cursor: grabbing;
}
.dc-handle svg {
  display: block;
  width: 14px;
  height: 14px;
}
.dc-checkbox {
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.dc-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.dc-checkbox:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--accent-contrast);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.dc-checkbox:disabled {
  cursor: default;
  opacity: 0.6;
}
.dc-text {
  flex: 1;
  font-size: 14.5px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.dc-text.done {
  text-decoration: line-through;
  color: var(--done);
}
.dc-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}
.dc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  padding: 4px;
  border-radius: 6px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.dc-link svg {
  display: block;
  width: 14px;
  height: 14px;
}
.dc-link:hover {
  color: var(--accent-strong);
  background: var(--accent-tint);
}
.dc-item.editing {
  flex-wrap: wrap;
  row-gap: 8px;
}
.dc-edit-input {
  flex: 1 1 200px;
  border-color: var(--accent);
  padding: 6px 9px;
}
.dc-edit-project {
  flex: 0 1 120px;
  border-color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 9px;
}
.dc-edit-url {
  flex: 1 1 180px;
  font-size: 12.5px;
  padding: 6px 9px;
}
.dc-edit-url:focus {
  border-color: var(--accent);
}
.dc-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
button.dc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 5px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-faint);
  line-height: 1;
}
button.dc-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}
button.dc-icon:hover {
  background: var(--surface-2);
  color: var(--text);
}
button.dc-icon.active {
  background: var(--accent-tint);
  color: var(--accent-strong);
}
button.dc-icon.save {
  color: var(--accent);
}
button.dc-icon.archive:hover,
button.dc-icon.save:hover {
  background: var(--accent-tint);
  color: var(--accent-strong);
}
button.dc-icon.delete {
  font-size: 17px;
}
button.dc-icon.delete:hover,
button.dc-icon.cancel:hover {
  background: var(--delete-tint);
  color: var(--delete);
}
.dc-backburner {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
}
.dc-backburner[hidden] {
  display: none;
}
.dc-backburner-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.dc-backburner-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.dc-backburner-sub {
  font-size: 12px;
  color: var(--text-faint);
}
.dc-backburner .dc-item {
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.dc-backburner .dc-item:hover,
.dc-backburner .dc-item:focus-within {
  opacity: 1;
}
@media (max-width: 650px) {
  .dc-card {
    padding: 20px;
  }
  .dc-add-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  #dc-task {
    grid-area: 1 / 1 / 2 / 3;
  }
  #dc-link-toggle {
    grid-area: 2 / 1 / 3 / 3;
  }
  #dc-url {
    grid-area: 3 / 1 / 4 / 3;
  }
  #dc-project {
    grid-area: 4 / 1 / 5 / 3;
  }
  #dc-prioritize {
    grid-area: 5 / 1;
  }
  #dc-add {
    grid-area: 5 / 2;
    justify-self: stretch;
  }
  .dc-masthead {
    flex-direction: column;
    gap: 2px;
  }
  .dc-item {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .dc-text {
    flex: 1 1 calc(100% - 80px);
  }
  .dc-actions {
    margin-left: auto;
  }
  .dc-edit-input,
  .dc-edit-project,
  .dc-edit-url {
    flex: 1 1 100%;
    width: auto;
  }
  button.dc-icon {
    min-width: 32px;
    min-height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dc-progress-fill,
  .dc-item,
  .dc-checkbox,
  .dc-link {
    transition: none;
  }
}
