.deadline-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 1.5rem;
  padding: .12rem .45rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: var(--panel, #f3f4ef);
  font-size: .75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}
.deadline-badge[data-tone="ok"] { color: #17603c; background: #deefe4; border-color: #b9d9c7; }
.deadline-badge[data-tone="soon"] { color: #714a00; background: #fff1cc; border-color: #e7ce85; }
.deadline-badge[data-tone="urgent"] { color: #a5242c; background: #fbe6e7; border-color: #eebdbf; }
:root[data-theme="dark"] .deadline-badge[data-tone="ok"] { color: #ace7c5; background: #233f31; border-color: #3b674e; }
:root[data-theme="dark"] .deadline-badge[data-tone="soon"] { color: #ffde8d; background: #47371c; border-color: #765c2e; }
:root[data-theme="dark"] .deadline-badge[data-tone="urgent"] { color: #ffc0c0; background: #4a282c; border-color: #7e424a; }
.todo-detail-heading-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.todo-detail-heading-actions .deadline-badge { margin: 0; }
