/* Compact task controls keep their geometry in every personal theme. */
html:root #task-drawer button.task-pin-action { display:grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--text-secondary);box-shadow:none; }
html:root #task-pin svg { width:18px;height:18px; }
html:root #task-drawer button.task-pin-action[aria-pressed="true"],html:root #task-drawer button.task-pin-action:hover { background:var(--accent-soft);color:var(--accent); }
html:root #task-pin:focus-visible { outline:2px solid var(--accent);outline-offset:2px; }
@media(max-width:700px),(pointer:coarse) { html:root #task-drawer button.task-pin-action { width:44px;height:44px;min-width:44px;min-height:44px; } }
html:root #task-detail .task-detail-actions { display:grid; gap:9px; padding:14px 18px; background:var(--surface); border-color:var(--border); }
html:root #task-detail .task-primary-actions { display:flex; align-items:center; gap:9px; }
html:root #task-detail .task-primary-actions button { display:flex; flex:1 1 0; align-items:center; justify-content:center; gap:8px; min-width:0; min-height:44px; margin:0; padding:9px 14px; border-radius:10px; font-size:.9rem; line-height:1.25; font-weight:600; box-shadow:none; }
html:root #task-detail .task-primary-actions svg { width:17px; height:17px; flex:0 0 17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
html:root #task-detail #task-start svg { fill:currentColor; stroke:none; }
html:root #task-detail #task-complete { background:var(--accent-soft); border-color:transparent; color:var(--accent); }
html:root #task-detail #task-complete:hover { background:var(--surface-hover); border-color:var(--accent); }
html:root .task-status-control { display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:9px; }
html:root #task-status-select { width:100%;min-width:0;min-height:44px;margin:0;padding-block:8px;border-radius:10px;box-shadow:none;font-size:.88rem; }
html:root #task-save-status { display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:10px;border-color:var(--border);background:var(--surface);color:var(--accent);box-shadow:none; }
html:root #task-save-status:enabled:hover { background:var(--accent-soft);border-color:var(--accent); }
html:root #task-save-status:disabled { opacity:.4; }
html:root #task-drawer .task-checklist-card.is-empty { padding-block:12px; }
html:root #task-drawer .task-checklist-card.is-empty .task-card-heading { min-height:32px; }
html:root #task-drawer .task-checklist-card { transition:padding .18s ease; }
html:root #task-drawer button.task-delete-icon { display:grid; place-items:center; width:36px; height:36px; min-width:36px; min-height:36px; padding:0; border:0; border-radius:9px; background:transparent; color:var(--text-secondary); box-shadow:none; }
html:root #task-drawer button.task-delete-icon:hover,
html:root #task-drawer button.task-delete-icon[aria-expanded="true"] { color:var(--danger,#ba4040); background:color-mix(in srgb,var(--danger,#ba4040) 9%,transparent); }
html:root #task-drawer button.task-delete-icon:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (max-width:700px) {
  html:root #task-detail .task-detail-actions { padding:12px; }
  html:root #task-drawer button.task-delete-icon { width:44px; height:44px; min-width:44px; min-height:44px; }
}
@media (prefers-reduced-motion:reduce) { html:root #task-drawer .task-checklist-card { transition:none; } }
