/* To-do app (js/features/todo/todo.js): the board of four stages, the cards and the task dialog. Tokens only. */
.todo-toolbar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.todo-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: var(--space-3); align-items: start;
  overflow-x: auto; padding-bottom: var(--space-2); }
.todo-col { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); min-height: 160px;
  border-top: 3px solid var(--color-border-strong); transition: border-color var(--motion-fast) var(--ease); }
.todo-col.st-doing { border-top-color: var(--color-info); }
.todo-col.st-waiting { border-top-color: var(--color-warning); }
.todo-col.st-done { border-top-color: var(--color-success); }
.todo-col.st-todo { border-top-color: var(--color-primary); }
.todo-col.drop { border-color: var(--color-focus); background: var(--color-primary-subtle); }
.todo-col > header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.todo-col > header h2 { font-size: var(--text-md); font-weight: var(--weight-semibold); margin: 0; }
.todo-count { font-size: var(--text-xs); color: var(--color-text-muted); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 0 var(--space-2); min-width: 24px; text-align: center; }
.todo-quick { width: 100%; height: var(--field-height-compact); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text); padding: 0 var(--space-3); font: inherit; }
.todo-quick:focus { outline: none; border-style: solid; border-color: var(--field-border-focus); box-shadow: var(--field-halo); }
.todo-cards { display: flex; flex-direction: column; gap: var(--space-2); min-height: 40px; }
.todo-empty { font-size: var(--text-sm); margin: var(--space-2) 0; text-align: center; }
.todo-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-3); cursor: pointer; display: flex; flex-direction: column; gap: var(--space-2);
  transition: box-shadow var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease); }
.todo-card:hover { box-shadow: var(--shadow-dropdown); border-color: var(--color-border-strong); }
.todo-card:focus-visible { outline: none; border-color: var(--color-focus); box-shadow: var(--focus-ring); }
.todo-card.dragging { opacity: .5; }
.todo-card.star { border-inline-start: 3px solid var(--color-warning); }
.todo-card.done .todo-card-title { color: var(--color-text-muted); text-decoration: line-through; }
.todo-card-title { font-weight: var(--weight-medium); overflow-wrap: anywhere; line-height: 1.4; }
.todo-star { color: var(--color-warning-strong); margin-inline-end: var(--space-1); }
.todo-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.todo-tag { font-size: var(--text-xs); background: var(--color-primary-subtle); color: var(--color-primary-text);
  border-radius: var(--radius-pill); padding: 0 var(--space-2); }
.todo-card-foot { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--text-xs); color: var(--color-text-muted); }
.todo-due { border-radius: var(--radius-pill); padding: 0 var(--space-2); background: var(--color-surface-2); white-space: nowrap; }
.todo-due.late { background: var(--color-danger); color: var(--color-text-on-primary); }
.todo-due.soon { background: transparent; color: var(--color-warning-strong); box-shadow: inset 0 0 0 1px var(--color-warning); }
.todo-checks.all { color: var(--color-success-strong); }
.todo-people { display: inline-flex; margin-inline-start: auto; }
.todo-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--color-primary); color: var(--color-text-on-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-2xs); font-weight: var(--weight-semibold);
  border: 2px solid var(--color-surface); margin-inline-start: -6px; }
.todo-avatar:first-child { margin-inline-start: 0; }
.todo-avatar.more { background: var(--color-surface-inset); color: var(--color-text-muted); }
.todo-stage { font-size: var(--text-xs); border-radius: var(--radius-pill); padding: 0 var(--space-2); background: var(--color-surface-2); white-space: nowrap; }
.todo-stage.st-doing { background: var(--color-info); color: var(--color-text-on-primary); }
.todo-stage.st-waiting { background: transparent; color: var(--color-warning-strong); box-shadow: inset 0 0 0 1px var(--color-warning); }
.todo-stage.st-done { background: var(--color-success); color: var(--color-text-on-primary); }
.todo-table tr.clickable { cursor: pointer; }
.todo-table tr.clickable:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.todo-list-title { font-weight: var(--weight-medium); overflow-wrap: anywhere; }
/* the task dialog */
.todo-stage-seg { flex-wrap: wrap; }
.todo-stage-seg button { min-height: var(--touch-target); }
.todo-star-field { display: flex; align-items: center; gap: var(--space-2); align-self: end; min-height: var(--field-height); }
.todo-tag-edit input { border: 1px dashed var(--color-border-strong); border-radius: var(--radius-pill); background: transparent;
  color: var(--color-text); padding: 0 var(--space-3); height: 28px; font: inherit; font-size: var(--text-sm); min-width: 140px; }
.todo-checklist { display: flex; flex-direction: column; gap: var(--space-1); align-items: stretch; }
.todo-checklist > button.link { align-self: flex-start; }
.todo-check-line { display: flex; align-items: center; gap: var(--space-2); }
.todo-check-line input[type=text] { flex: 1; min-width: 0; height: var(--field-height-compact); border: 1px solid var(--field-border);
  border-radius: var(--field-radius); background: var(--field-bg); color: var(--color-text); padding: 0 var(--space-2); font: inherit; }
.todo-check-line.done input[type=text] { text-decoration: line-through; color: var(--color-text-muted); }
@media (max-width: 900px) {
  .todo-board { grid-template-columns: repeat(4, minmax(78vw, 1fr)); scroll-snap-type: x mandatory; }
  .todo-col { scroll-snap-align: start; }
}
@media (max-width: 600px) { .todo-table .hide-sm { display: none; } }
/* The Apps page (js/features/settings/app-store.js) */
.store { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-4); }
.store-intro { margin: 0; }
.store-bar { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.store-search { flex: 1; min-width: 200px; max-width: 420px; margin: 0; }
.store-group h2 { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text-muted); margin: 0 0 var(--space-2); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-3); }
.store-card { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); }
.store-card .app-icon { flex: none; width: 56px; height: 56px; }
.store-card.is-off .app-icon { filter: grayscale(.7); opacity: .7; }
.store-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); align-items: flex-start; }
.store-main h3 { margin: 0; font-size: var(--text-md); }
.store-main p { margin: 0; }
.store-actions { display: flex; flex-direction: column; gap: var(--space-2); align-items: stretch; }
.store-off { color: var(--color-danger-strong); }
.store-card[hidden], .store-group[hidden] { display: none; }
