.compass-task-marker{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.compass-task-marker .compass-flag{flex-basis:auto;padding:0}.task-order-handle{position:relative;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:7px;background:var(--soft,#f2f5fa);color:var(--sub,#536480);font:inherit;font-size:11px;font-weight:600;line-height:1;cursor:grab;touch-action:none;user-select:none}.task-order-handle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.task-drag-icon{position:absolute;width:13px;height:15px;opacity:0}.task-order-handle:hover [data-task-position],.task-order-handle:active [data-task-position],.task-order-dragging [data-task-position]{opacity:0}.task-order-handle:hover .task-drag-icon,.task-order-handle:active .task-drag-icon,.task-order-dragging .task-drag-icon{opacity:1}.task-order-dragging .task-order-handle{cursor:grabbing}.task-order-list[aria-busy=true]{opacity:.75}.task-order-help{margin:8px 0;font-size:10px}.task-quick-button{min-height:25px;padding:2px 6px;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--sub);font:inherit;font-size:11px;line-height:1.5;font-weight:600;white-space:nowrap;cursor:pointer}.task-quick-complete{color:var(--green,#078772)}.task-quick-today{color:var(--blue,#3863f5);background:var(--blue-bg,#edf2ff);border-color:transparent}.task-quick-button:hover{border-color:currentColor}.task-quick-button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.task-quick-button:disabled{opacity:.6;cursor:wait}.compass-task-actions form{margin:0}.task-date-history{margin-top:7px;font-size:10px;color:var(--sub);line-height:1.5}.task-date-history>summary{cursor:pointer;overflow-wrap:anywhere}.task-date-history>summary .badge{font-size:10px;margin-left:4px;padding:1px 5px}.task-date-history-body{padding:8px 10px;margin-top:6px;background:var(--soft);border-radius:8px;overflow-wrap:anywhere}.task-date-event{padding:7px 0;border-bottom:1px solid var(--line);font-size:11px}.task-date-event:last-child{border-bottom:0}.task-date-event p{margin:3px 0}.task-planning-dialog{width:min(540px,calc(100% - 28px));max-height:85vh;overflow:auto;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);box-shadow:0 20px 60px #0004}.task-planning-dialog::backdrop{background:#11243b77}.task-planning-dialog p{margin:12px 0}.task-planning-dialog h2{font-size:19px;padding-right:24px}.task-dialog-close{position:absolute;right:12px;top:10px;width:28px;height:28px;border:0;background:transparent;color:var(--sub);font-size:24px;cursor:pointer}.task-date-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.task-date-comparison>div{background:var(--soft);padding:10px;border-radius:8px}.task-date-comparison dt{font-size:11px;color:var(--sub);margin-bottom:6px}.task-date-comparison dd{font-size:13px;margin:0;line-height:1.8}.task-planning-dialog a{margin-left:12px}.tt-panel>.task-date-history{font-size:12px}.task-order-list{min-width:0}
@media(max-width:700px){.compass-task-marker .task-order-handle{width:26px;height:30px}.compass-task,.compass-execution-grid .compass-task{grid-template-columns:26px minmax(0,1fr) 101px;gap:7px}.task-date-comparison{grid-template-columns:1fr}.task-date-history .badge{white-space:normal}.task-planning-dialog{padding:18px}.compass-task-actions{gap:5px}}
@media(prefers-reduced-motion:reduce){.task-order-list{scroll-behavior:auto}}
@media(max-width:700px){.compass-task,.compass-execution-grid .compass-task{grid-template-columns:26px minmax(0,1fr);column-gap:7px;row-gap:8px}.compass-task-actions{grid-column:2;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 8px}.compass-task-actions .compass-task-access,.compass-task-actions .compass-task-open{margin:0}.compass-task-actions .compass-task-access[open]{flex-basis:100%;max-width:100%}.compass-today .card-heading>.badge{white-space:nowrap}.compass-today h2>.small{display:block;white-space:nowrap;margin-top:3px}}

/* Compact task controls; TickTick access lives in the task editor. */
/* R27: icon actions and explicit completion confirmation. */
.compass-task-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px}
.compass-task-actions .compass-manage-button,.compass-task-actions .task-quick-complete{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:6px;border:1px solid transparent;border-radius:7px;white-space:nowrap}
.compass-task-actions .task-quick-complete{background:var(--red-bg);color:var(--red)}
.compass-task-actions .task-quick-complete:hover{border-color:currentColor}
.compass-task-actions .task-icon-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.compass-task-actions .task-icon-button .icon{width:18px;height:18px;stroke-width:1.9}
.compass-task-actions .task-icon-button[aria-busy=true] .icon{opacity:0}
.compass-task-actions .task-icon-button[aria-busy=true]::after{content:"";position:absolute;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:task-icon-spin .7s linear infinite}
.task-complete-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}
.task-complete-actions .tt-button{margin:0}
.task-complete-confirm-button{background:var(--red-bg);color:var(--red);border-color:transparent}
.task-complete-confirm-button:hover{border-color:var(--red)}
.task-complete-name{padding:12px 14px;background:var(--soft);border-radius:9px;overflow-wrap:anywhere}
@keyframes task-icon-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.compass-task-actions{justify-content:flex-start}.compass-task-actions .task-icon-button{width:36px;height:36px;min-height:36px}.task-complete-actions{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.compass-task-actions .task-icon-button[aria-busy=true]::after{animation:none}}
.task-ticktick-access{margin:16px 0 20px;padding:0 20px}
.task-ticktick-access>summary{padding:14px 0;cursor:pointer;font-size:13px;font-weight:650;color:var(--blue)}
.task-ticktick-access>summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}
.task-ticktick-access-body{padding-bottom:16px;overflow-wrap:anywhere}
.task-ticktick-access-body p{margin:0 0 12px}
.task-ticktick-access-body p:last-child{margin:12px 0 0}
.task-ticktick-copy{max-width:620px}
.task-ticktick-copy label{display:block;color:var(--sub)}
.task-ticktick-copy .compass-copy-title{display:block;color:var(--text);margin:5px 0 8px;padding:9px 10px;background:var(--soft)}

/* R30: a held row follows the pointer; its neighbours make room with FLIP motion. */
.task-order-list{overflow-anchor:none}
.task-order-placeholder{box-sizing:border-box;border:1px dashed var(--blue);border-radius:9px;background:var(--blue-bg);opacity:.5;pointer-events:none}
.task-order-list .compass-task.task-order-dragging{position:fixed;top:0;left:0;box-sizing:border-box;margin:0;z-index:1000;background:var(--card);border-radius:9px;outline:1px solid var(--blue);pointer-events:none;will-change:transform;cursor:grabbing}
.task-order-list .compass-task.task-order-dragging,.task-order-list .compass-task.task-order-dragging.task-sprint-active{box-shadow:0 14px 32px #10243b30,0 3px 8px #10243b1a}
.task-order-list .compass-task.task-order-dragging.task-sprint-active{background:var(--sprint-row)}
.task-order-dragging .task-order-handle{outline:0;background:var(--blue-bg);color:var(--blue)}
.task-order-moving,.task-order-moving *{cursor:grabbing!important;user-select:none!important}
.task-order-feedback{position:fixed;z-index:1100;bottom:20px;left:50%;transform:translateX(-50%);box-sizing:border-box;max-width:calc(100vw - 32px);padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);box-shadow:0 6px 24px #10243b26;font-size:12px;line-height:1.5;overflow-wrap:anywhere;pointer-events:none}
.task-order-feedback[hidden]{display:none}
.task-order-feedback-error{background:var(--orange-bg);color:var(--orange);border-color:var(--orange)}

/* R35: priority picker and next-day scheduling. */
.compass-task-marker form{margin:0;line-height:1}
.compass-task-marker .task-flag-button{position:relative;display:grid;place-items:center;box-sizing:border-box;width:28px;height:30px;padding:5px;border:1px solid transparent;border-radius:7px;background:transparent;cursor:pointer}
.task-flag-button:hover{background:var(--soft);border-color:currentColor}
.task-flag-button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.task-flag-button[aria-busy=true]{opacity:.45;cursor:wait}
.task-quick-tomorrow{background:var(--soft);color:var(--blue);border-color:transparent}
.task-priority-name{font-size:13px;color:var(--sub);overflow-wrap:anywhere}
.task-priority-options{display:grid;gap:8px;margin-top:16px}
.task-priority-option{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.task-priority-option .compass-flag{flex:0 0 20px;padding:0}
.task-priority-option .icon{width:19px;height:19px}
.task-priority-option[aria-pressed=true]{background:var(--soft);border-color:var(--blue)}
.task-priority-option:hover{background:var(--soft)}
.task-priority-option:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.task-priority-option:disabled{opacity:.6;cursor:wait}
.task-priority-selected{margin-left:auto;color:var(--blue);font-weight:700}
