/* Fox Todo base layout and components. Mobile-first. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ft-font);
  line-height: var(--ft-line);
  color: var(--ft-text);
  background: var(--ft-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 var(--ft-space-3);
}

p {
  margin: 0 0 var(--ft-space-4);
}

a {
  color: var(--ft-accent-strong);
}

/* Visible focus for keyboard users on all interactive elements */
:focus-visible {
  outline: 3px solid var(--ft-focus);
  outline-offset: 2px;
  border-radius: var(--ft-radius-sm);
}

/* Top bar */
.ft-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ft-space-3);
  height: var(--ft-topbar-h);
  padding: 0 var(--ft-space-4);
  background: var(--ft-surface);
  border-bottom: 1px solid var(--ft-border);
}

.ft-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ft-space-2);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ft-text);
  text-decoration: none;
}

.ft-topbar__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: var(--ft-radius-pill);
  background: var(--ft-accent);
}

/* Main / auth layout */
.ft-main {
  display: flex;
  justify-content: center;
  padding: var(--ft-space-5) var(--ft-space-4) var(--ft-space-7);
}

.ft-card {
  width: 100%;
  max-width: var(--ft-card-max);
  margin-top: var(--ft-space-5);
  padding: var(--ft-space-5);
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-md);
}

.ft-card__lead {
  color: var(--ft-text-muted);
}

/* Form fields */
.ft-field {
  margin-bottom: var(--ft-space-4);
}

.ft-field__label {
  display: block;
  margin-bottom: var(--ft-space-1);
  font-weight: 600;
  font-size: 0.9rem;
}

.ft-input {
  width: 100%;
  padding: var(--ft-space-3);
  font: inherit;
  color: var(--ft-text);
  background: var(--ft-surface-2);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
}

.ft-input:focus-visible {
  outline: 3px solid var(--ft-focus);
  outline-offset: 1px;
}

.ft-input[readonly] {
  color: var(--ft-text-muted);
  cursor: not-allowed;
}

/* Buttons */
.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ft-space-2);
  padding: var(--ft-space-3) var(--ft-space-5);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--ft-radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ft-btn--block {
  width: 100%;
}

.ft-btn--primary {
  color: var(--ft-accent-contrast);
  background: var(--ft-accent);
}

.ft-btn--primary:hover:not(:disabled) {
  background: var(--ft-accent-strong);
}

.ft-btn--secondary {
  color: var(--ft-text);
  background: var(--ft-surface-2);
  border-color: var(--ft-border);
}

.ft-btn--secondary:hover:not(:disabled) {
  border-color: var(--ft-accent);
}

.ft-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Messages: aria-live region. Hidden until it has content. */
.ft-msg {
  margin-top: var(--ft-space-4);
  padding: var(--ft-space-3) var(--ft-space-4);
  border: 1px solid transparent;
  border-radius: var(--ft-radius-md);
  font-size: 0.92rem;
}

.ft-msg:empty {
  display: none;
}

.ft-msg--error {
  color: var(--ft-danger);
  background: var(--ft-danger-bg);
  border-color: var(--ft-danger);
}

.ft-msg--success {
  color: var(--ft-success);
  background: var(--ft-success-bg);
  border-color: var(--ft-success);
}

.ft-msg--info {
  color: var(--ft-info);
  background: var(--ft-info-bg);
  border-color: var(--ft-info);
}

/* Small helpers */
.ft-stack > * + * {
  margin-top: var(--ft-space-4);
}

.ft-muted {
  color: var(--ft-text-muted);
}

/* Visually hidden but available to screen readers */
.ft-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Multiline text input, shares look with .ft-input */
.ft-input--area {
  resize: vertical;
  min-height: 4.5rem;
}

/* Inline select inside a table cell, narrower than full-width inputs */
.ft-input--inline {
  width: auto;
  min-width: 9rem;
  padding: var(--ft-space-2) var(--ft-space-3);
}

/* Button variants for project pages */
.ft-btn--danger {
  color: var(--ft-danger);
  background: var(--ft-danger-bg);
  border-color: var(--ft-danger);
}

.ft-btn--danger:hover:not(:disabled) {
  border-color: var(--ft-danger);
  filter: brightness(1.15);
}

.ft-btn--sm {
  padding: var(--ft-space-2) var(--ft-space-3);
  font-size: 0.85rem;
}

.ft-empty {
  margin-top: var(--ft-space-5);
}

/* ---- Badges ---- */
.ft-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--ft-space-1) var(--ft-space-3);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--ft-radius-pill);
  border: 1px solid var(--ft-border);
}

.ft-badge--role {
  color: var(--ft-text);
  background: var(--ft-surface-2);
}

.ft-badge--archived {
  color: var(--ft-info);
  background: var(--ft-info-bg);
  border-color: var(--ft-info);
}

/* ---- Members table ---- */
.ft-table-wrap {
  margin-top: var(--ft-space-3);
}

.ft-table {
  width: 100%;
  border-collapse: collapse;
}

.ft-table th,
.ft-table td {
  padding: var(--ft-space-3);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--ft-border);
}

.ft-table th {
  font-size: 0.85rem;
  color: var(--ft-text-muted);
}

/* Stack the members table into labelled rows on small screens */
@media (max-width: 39.99rem) {
  .ft-members thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .ft-members tr {
    display: block;
    margin-bottom: var(--ft-space-3);
    padding: var(--ft-space-2) 0;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
  }

  .ft-members td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ft-space-3);
    border-bottom: none;
    padding: var(--ft-space-2) var(--ft-space-4);
  }

  .ft-members td::before {
    content: attr(data-label);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ft-text-muted);
  }
}

/* Assignee picker as a stacked checkbox list */
.ft-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: var(--ft-space-2);
}

.ft-checkline {
  display: flex;
  align-items: center;
  gap: var(--ft-space-2);
  cursor: pointer;
}

.ft-checkline input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--ft-accent);
}

/* ---- Rendered markdown (description, comments) ---- */
.ft-prose {
  margin-top: var(--ft-space-4);
  color: var(--ft-text);
  word-break: break-word;
}

.ft-prose > *:first-child {
  margin-top: 0;
}

.ft-prose > *:last-child {
  margin-bottom: 0;
}

.ft-prose a {
  color: var(--ft-accent-strong);
}

.ft-prose code {
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  background: var(--ft-surface-2);
  border-radius: var(--ft-radius-sm);
}

.ft-prose pre {
  padding: var(--ft-space-3);
  overflow-x: auto;
  background: var(--ft-surface-2);
  border-radius: var(--ft-radius-md);
}

.ft-prose pre code {
  padding: 0;
  background: none;
}

.ft-prose blockquote {
  margin: var(--ft-space-3) 0;
  padding-left: var(--ft-space-4);
  border-left: 3px solid var(--ft-border);
  color: var(--ft-text-muted);
}

/* ---- Comments ---- */
.ft-comment-list {
  list-style: none;
  margin: var(--ft-space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--ft-space-3);
}

.ft-comment {
  padding: var(--ft-space-3) var(--ft-space-4);
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
}

.ft-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ft-space-3);
  font-size: 0.85rem;
}

.ft-comment__author {
  font-weight: 600;
}

.ft-comment__time {
  font-size: 0.8rem;
}

/* Push a comment delete button to the trailing edge of the head row */
.ft-comment__head .ft-btn--sm {
  margin-left: auto;
}

.ft-comment__body {
  margin-top: var(--ft-space-2);
}

/* Tablet and up */
@media (min-width: 40rem) {
  .ft-card {
    padding: var(--ft-space-6);
  }

  .ft-topbar {
    padding: 0 var(--ft-space-5);
  }
}

/* =====================================================================
   App shell, Microsoft To Do style. Three columns: sidebar of lists,
   the selected project's tasks, and an optional task detail panel.
   Mobile-first: a single column with an off-canvas sidebar and a
   full-screen detail overlay; columns appear from the tablet breakpoint.
   ===================================================================== */

.ft-app-body {
  overflow: hidden; /* shell manages its own scroll regions */
}

.ft-app {
  display: grid;
  grid-template-columns: 1fr;
  height: 100vh;
  height: 100dvh;
}

/* ---- Sidebar ---- */
.ft-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--ft-surface);
  border-right: 1px solid var(--ft-border);
  /* Off-canvas on mobile, slides in over the content */
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: min(86vw, var(--ft-sidebar-w));
  transform: translateX(-100%);
  transition: transform 0.18s ease;
  box-shadow: var(--ft-shadow-md);
}

.ft-sidebar--open {
  transform: translateX(0);
}

.ft-sidebar__head {
  padding: var(--ft-space-4) var(--ft-space-5);
  border-bottom: 1px solid var(--ft-border);
}

.ft-sidebar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ft-space-2);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ft-text);
  text-decoration: none;
}

.ft-sidebar__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: var(--ft-radius-pill);
  background: var(--ft-accent);
}

.ft-sidebar__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--ft-space-3) var(--ft-space-3) var(--ft-space-4);
}

.ft-sidebar__foot {
  flex: 0 0 auto;
  padding: var(--ft-space-3);
  border-top: 1px solid var(--ft-border);
}

/* ---- List navigation ---- */
.ft-listnav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.ft-listnav__link {
  display: flex;
  align-items: center;
  gap: var(--ft-space-3);
  padding: var(--ft-space-3);
  color: var(--ft-text);
  text-decoration: none;
  border-radius: var(--ft-radius-md);
  border-left: 3px solid transparent;
}

.ft-listnav__link:hover {
  background: var(--ft-accent-wash-soft);
}

.ft-listnav__item--active .ft-listnav__link {
  background: var(--ft-accent-wash);
  border-left-color: var(--ft-accent);
  font-weight: 600;
}

.ft-listnav__glyph {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--ft-gray-500);
}

.ft-listnav__item--active .ft-listnav__glyph {
  background: var(--ft-accent);
}

.ft-listnav__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-listnav__count {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--ft-text-muted);
}

.ft-archived-group {
  margin-top: var(--ft-space-4);
}

.ft-archived-group__summary {
  padding: var(--ft-space-2) var(--ft-space-3);
  font-size: 0.85rem;
  color: var(--ft-text-muted);
  cursor: pointer;
  border-radius: var(--ft-radius-md);
}

.ft-archived-group__summary:hover {
  background: var(--ft-accent-wash-soft);
}

.ft-listnav--archived {
  margin-top: var(--ft-space-2);
  opacity: 0.8;
}

/* ---- New list field ---- */
.ft-newlist {
  display: flex;
  align-items: center;
  gap: var(--ft-space-2);
  padding: var(--ft-space-2) var(--ft-space-3);
  border-radius: var(--ft-radius-md);
  background: var(--ft-surface-2);
}

.ft-newlist__plus,
.ft-quickadd__plus,
.ft-stepadd__plus {
  flex: 0 0 auto;
  font-size: 1.1rem;
  color: var(--ft-accent);
  line-height: 1;
}

.ft-newlist__input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  color: var(--ft-text);
  background: transparent;
  border: 0;
  padding: var(--ft-space-1) 0;
}

.ft-newlist__input::placeholder {
  color: var(--ft-text-muted);
}

.ft-newlist__btn,
.ft-quickadd__btn,
.ft-stepadd__btn {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ft-accent);
  background: transparent;
  border: 0;
  padding: var(--ft-space-1) var(--ft-space-2);
  border-radius: var(--ft-radius-sm);
  cursor: pointer;
}

.ft-newlist__btn:hover,
.ft-quickadd__btn:hover,
.ft-stepadd__btn:hover {
  text-decoration: underline;
}

/* ---- Content column (tasks) ---- */
.ft-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--ft-bg);
}

.ft-appbar {
  display: flex;
  align-items: center;
  gap: var(--ft-space-2);
  height: var(--ft-appbar-h);
  flex: 0 0 auto;
  padding: 0 var(--ft-space-3);
  border-bottom: 1px solid var(--ft-border);
}

.ft-appbar__here {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-content__inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--ft-space-5) var(--ft-space-5) var(--ft-space-7);
  max-width: 48rem;
  width: 100%;
}

/* ---- Icon button ---- */
.ft-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ft-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ft-radius-md);
  cursor: pointer;
  text-decoration: none;
}

.ft-iconbtn:hover {
  background: var(--ft-surface-2);
}

/* ---- List head ---- */
.ft-listhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ft-space-3);
}

.ft-listhead__titles {
  min-width: 0;
}

.ft-listhead__title {
  margin: 0;
  font-size: 1.5rem;
  word-break: break-word;
}

.ft-listhead__actions {
  flex: 0 0 auto;
  display: flex;
  gap: var(--ft-space-1);
}

.ft-listhead__desc {
  margin-top: var(--ft-space-2);
  font-size: 0.92rem;
}

/* ---- Panels (members, project options) ---- */
.ft-panel {
  margin-top: var(--ft-space-4);
  padding: var(--ft-space-4);
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
}

.ft-panel[hidden] {
  display: none;
}

.ft-panel__title {
  margin: 0 0 var(--ft-space-3);
  font-size: 1.05rem;
}

.ft-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ft-space-2);
  margin-top: var(--ft-space-2);
}

.ft-memberadd {
  margin-top: var(--ft-space-4);
  padding-top: var(--ft-space-4);
  border-top: 1px solid var(--ft-border);
}

/* ---- Quick add ---- */
.ft-quickadd,
.ft-stepadd {
  display: flex;
  align-items: center;
  gap: var(--ft-space-2);
  margin-top: var(--ft-space-5);
  padding: var(--ft-space-3) var(--ft-space-4);
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
}

.ft-stepadd {
  margin-top: var(--ft-space-3);
  padding: var(--ft-space-2) var(--ft-space-3);
}

.ft-quickadd__input,
.ft-stepadd__input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  color: var(--ft-text);
  background: transparent;
  border: 0;
  padding: var(--ft-space-1) 0;
}

.ft-quickadd__input::placeholder,
.ft-stepadd__input::placeholder {
  color: var(--ft-text-muted);
}

/* ---- Task list ---- */
.ft-tasklist {
  list-style: none;
  margin: var(--ft-space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--ft-space-2);
}

.ft-task {
  display: flex;
  align-items: flex-start;
  gap: var(--ft-space-3);
  padding: var(--ft-space-3) var(--ft-space-4);
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  border-left: 3px solid transparent;
}

.ft-task--selected {
  background: var(--ft-accent-wash);
  border-left-color: var(--ft-accent);
}

.ft-task__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ft-space-1);
}

.ft-task__title {
  font-weight: 600;
  color: var(--ft-text);
  text-decoration: none;
  word-break: break-word;
}

a.ft-task__title:hover {
  text-decoration: underline;
}

.ft-task__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ft-space-2);
  font-size: 0.8rem;
  color: var(--ft-text-muted);
}

.ft-task__steps {
  color: var(--ft-text-muted);
}

.ft-task__assignee {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--ft-space-2);
  font-size: 0.74rem;
  color: var(--ft-info);
  background: var(--ft-info-bg);
  border: 1px solid var(--ft-info);
  border-radius: var(--ft-radius-pill);
}

/* Completed tasks read quieter, with a strike on the title */
.ft-task--done {
  opacity: 0.65;
}

.ft-task--done .ft-task__title {
  text-decoration: line-through;
}

/* Done group (collapsible) */
.ft-done-group {
  margin-top: var(--ft-space-5);
}

.ft-done-group__summary {
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: var(--ft-space-2) 0;
  list-style: none;
}

.ft-done-group__summary::-webkit-details-marker {
  display: none;
}

.ft-done-group__summary::before {
  content: "\25B8"; /* right-pointing triangle */
  display: inline-block;
  margin-right: var(--ft-space-2);
  color: var(--ft-text-muted);
  transition: transform 0.15s ease;
}

.ft-done-group[open] .ft-done-group__summary::before {
  transform: rotate(90deg);
}

.ft-done-group__count {
  color: var(--ft-text-muted);
  font-weight: 400;
}

/* =====================================================================
   Round checkboxes (the To Do signature). A real <input type=checkbox>
   visually hidden, with a styled <label> drawing the circle and tick.
   ===================================================================== */
.ft-check {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.05rem;
}

.ft-check--lg {
  width: 1.6rem;
  height: 1.6rem;
}

.ft-check__input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ft-check__label {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid var(--ft-gray-500);
  border-radius: var(--ft-radius-pill);
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.ft-check__input:hover + .ft-check__label,
.ft-check:hover .ft-check__label {
  border-color: var(--ft-accent);
}

/* Drawn tick on checked state */
.ft-check__input:checked + .ft-check__label {
  background: var(--ft-accent);
  border-color: var(--ft-accent);
}

.ft-check__input:checked + .ft-check__label::after {
  content: "";
  position: absolute;
  left: 32%;
  top: 16%;
  width: 28%;
  height: 52%;
  border: solid var(--ft-accent-contrast);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Keyboard focus ring on the (invisible) input maps to the label */
.ft-check__input:focus-visible + .ft-check__label {
  outline: 3px solid var(--ft-focus);
  outline-offset: 2px;
}

/* ---- Empty state (no project) ---- */
.ft-emptystate {
  margin-top: var(--ft-space-7);
  text-align: center;
}

.ft-emptystate__title {
  font-size: 1.3rem;
}

.ft-emptystate__hint {
  font-size: 0.88rem;
}

/* ---- Detail panel ---- */
.ft-detail {
  min-height: 0;
  background: var(--ft-surface);
  border-left: 1px solid var(--ft-border);
  /* Full-screen overlay on mobile */
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
}

.ft-detail__inner {
  padding: var(--ft-space-4) var(--ft-space-5) var(--ft-space-7);
}

.ft-detail__head {
  display: flex;
  align-items: flex-start;
  gap: var(--ft-space-3);
}

.ft-detail__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.2rem;
  word-break: break-word;
}

.ft-detail__title--done {
  text-decoration: line-through;
  opacity: 0.7;
}

.ft-detail__close {
  flex: 0 0 auto;
}

.ft-detail__edit {
  margin-top: var(--ft-space-4);
}

.ft-detail__section {
  margin-top: var(--ft-space-5);
  padding-top: var(--ft-space-4);
  border-top: 1px solid var(--ft-border);
}

.ft-detail__sectiontitle {
  margin: 0 0 var(--ft-space-3);
  font-size: 0.95rem;
}

.ft-detail__hint {
  font-size: 0.88rem;
}

.ft-detail__assignees {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ft-space-2);
  margin: 0;
}

.ft-detail__foot {
  margin-top: var(--ft-space-5);
  padding-top: var(--ft-space-4);
  border-top: 1px solid var(--ft-border);
}

.ft-detail__byline {
  font-size: 0.82rem;
}

/* ---- Steps (subtasks) ---- */
.ft-steplist {
  list-style: none;
  margin: 0 0 var(--ft-space-3);
  padding: 0;
  display: grid;
  gap: var(--ft-space-1);
}

.ft-step {
  display: flex;
  align-items: center;
  gap: var(--ft-space-3);
  padding: var(--ft-space-2) var(--ft-space-2);
  border-radius: var(--ft-radius-md);
}

.ft-step:hover {
  background: var(--ft-surface-2);
}

.ft-step__title {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.ft-step--done .ft-step__title {
  text-decoration: line-through;
  opacity: 0.65;
}

.ft-step__del {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  font-size: 1rem;
  color: var(--ft-text-muted);
}

.ft-commentadd {
  margin-top: var(--ft-space-3);
}

.ft-commentadd .ft-btn {
  margin-top: var(--ft-space-2);
}

/* =====================================================================
   Breakpoints
   ===================================================================== */

/* Tablet and up: sidebar becomes a fixed column, hide the hamburger */
@media (min-width: 48rem) {
  .ft-app {
    grid-template-columns: var(--ft-sidebar-w) 1fr;
  }

  .ft-app:has(.ft-detail) {
    grid-template-columns: var(--ft-sidebar-w) 1fr var(--ft-detail-w);
  }

  .ft-sidebar {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    z-index: auto;
  }

  .ft-appbar__menu {
    display: none;
  }

  .ft-content__inner {
    margin: 0 auto;
  }

  /* Detail becomes the third column instead of an overlay */
  .ft-detail {
    position: static;
    inset: auto;
    z-index: auto;
  }
}
