/* TaTasque — SUBTASKS: the task panel's section, the list nesting and the close dialog (Gary 2026-11-12). Copyright Rapid Surveys Pty Ltd. Namespace st-. */
.st-field .st-body { display: flex; flex-direction: column; gap: 8px; }
.st-crumb { margin: 0; font-size: 14px; color: var(--muted); }
.st-prog { margin: 0; font-size: 14px; }
.st-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.st-bar span { display: block; height: 100%; background: var(--accent); }
.st-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.st-field .st-open { padding: 0; background: none; border: 0; color: var(--accent); font: inherit; text-align: left; cursor: pointer; width: auto; text-decoration: underline; overflow-wrap: anywhere; }
.st-field .st-st .spill { font-size: 12px; }
.st-hidden { color: var(--muted); font-style: italic; }
.st-done { font-size: 12px; color: var(--muted); }
.st-field .st-add { align-self: flex-start; }
.st-new { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.st-sub { font-size: 13px; color: var(--muted); }
.st-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.st-field .st-go, .st-field .st-cancel { width: auto; }
@media (pointer: coarse) { .st-field .st-open, .st-field .st-add, .st-field .st-go, .st-field .st-cancel { min-height: 44px; } }
/* the list: a subtask sits under its parent, indented a step per level; the parent folds them */
.tasklist .task.st-sub-card, .tg-body .task.st-sub-card { margin-left: calc(var(--st-lvl, 1) * 16px); border-left: 3px solid var(--line); }
.task .st-fold { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; font-size: 12px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; width: auto; cursor: pointer; }
.task .st-fold[aria-expanded="false"] .st-chev { transform: rotate(-90deg); }
.task .st-chev { width: 10px; height: 10px; transition: transform .12s; }
@media (pointer: coarse) { .task .st-fold { min-height: 32px; padding: 4px 10px; } }
.st-mark { font-size: 12px; color: var(--muted); }
.st-pins { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.st-pins input { width: auto; margin: 0; }
@media (pointer: coarse) { .st-pins { min-height: 44px; } }
/* the close question */
.st-dlg-back { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 16px; background: rgba(20, 28, 40, .45); overflow-y: auto; }
.st-dlg { width: 100%; max-width: 440px; padding: 16px; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 10px 30px rgba(20, 28, 40, .25); display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.st-dlg h3 { margin: 0; font-size: 18px; }
.st-dlg p { margin: 0; font-size: 14px; }
.st-dlg-list { margin: 0; padding-left: 18px; font-size: 14px; overflow-wrap: anywhere; }
.st-dlg-more { color: var(--muted); list-style: none; margin-left: -18px; }
.st-dlg .st-btns .btn, .st-dlg .st-btns .chip { width: auto; }
