
/* v15 usability/behavior patch */
#helpModal .help-control > .help-control-copy:only-child{grid-column:1 / -1;min-width:0;width:100%}
#helpModal .help-control-copy{overflow-wrap:normal;word-break:normal;white-space:normal}
#moveSectionBtn{display:none!important}
.section-title-icon.section-paste-target-icon{cursor:pointer;border-radius:7px;padding:2px;box-sizing:content-box;transition:background .12s,border-color .12s,filter .12s}
.section-title-icon.section-paste-target-icon.paste-target-active{background:rgba(72,139,230,.22);outline:1px solid rgba(72,139,230,.78);filter:drop-shadow(0 0 3px rgba(72,139,230,.55))}
#timerFilterBtn.expired-attention,#todoFilterBtn.expired-attention{background:rgba(195,45,45,.22)!important;border-color:rgba(220,58,58,.78)!important;color:#dc3a3a!important}
#filterExpiredSelect.expired-filter-attention{animation:none!important}
#filterExpiredSelect.expired-available{border-color:#c83c3c!important;box-shadow:inset 0 0 0 1px rgba(200,60,60,.25)}
#filterExpiredSelect.expired-available option[value="expired"]{background:#b72f2f;color:#fff;font-weight:800}
.history-modal .modal-card{width:min(1100px,calc(100vw - 36px));height:min(82vh,780px);max-height:min(82vh,780px);display:flex;flex-direction:column;overflow:hidden}
.history-modal .history-log-list{flex:1 1 auto;min-height:0;overflow:auto}
.history-modal .history-type-filters-body{flex:0 0 auto;max-height:255px;overflow:auto}
.history-type-toggle{background:rgba(77,157,222,.14)!important;border-color:rgba(77,157,222,.55)!important;color:#74b9ef!important}
.history-type-toggle.filters-open{background:#62aee8!important;color:#07111a!important;border-color:#8ec8f1!important}
.history-type-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;column-count:auto!important;gap:3px 18px!important}
.history-type-option{width:100%;margin:0!important;min-width:0}
.archived-tasks-head-btn,.archive-action{background:rgba(143,93,53,.16)!important;border-color:rgba(164,108,62,.58)!important;color:#b07b50!important}
.archive-action.recently-restored{background:rgba(75,205,190,.16)!important;border-color:rgba(75,205,190,.55)!important;color:inherit!important}
.archive-structure-btn{background:rgba(116,91,201,.13)!important;border-color:rgba(116,91,201,.5)!important;color:#9586d7!important;min-width:34px}
.archive-structure-btn.structure-open{background:#7660bd!important;color:#fff!important;border-color:#9a88db!important}
.archive-structure-icon{display:grid;line-height:.62;font-weight:900;font-size:14px;place-items:center}
.archive-ghost-tree{margin-top:6px;border-left:3px solid rgba(116,91,201,.5);padding:6px 8px;background:rgba(116,91,201,.065);display:grid;gap:4px}
.archive-ghost-node{border:1px dashed rgba(116,91,201,.38);border-radius:7px;padding:4px 6px;font-size:11px;background:rgba(116,91,201,.05)}
.archive-ghost-node.current{border-style:solid;background:rgba(116,91,201,.14);font-weight:800}
.archive-ghost-meta{font-size:9px;color:var(--muted);margin-left:5px}
.archive-delete-permanent{color:#d84a4a!important;border-color:rgba(216,74,74,.55)!important;background:rgba(216,74,74,.08)!important}
.archive-toolbar .archive-local-history{display:inline-flex;gap:5px;margin-right:8px}
.archive-toolbar .archive-local-history .icon-btn{width:30px;height:30px}
.recur-text-tools{display:flex;justify-content:flex-end;margin-top:7px}
.recur-date-picker{position:fixed;z-index:10050;width:286px;background:var(--surface);border:1px solid var(--border-strong);box-shadow:0 16px 42px rgba(0,0,0,.32);border-radius:11px;padding:9px;display:grid;gap:8px}
.recur-date-picker[hidden]{display:none}
.recur-date-picker-head{display:grid;grid-template-columns:1fr 92px;gap:6px}
.recur-date-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.recur-date-dow{font-size:9px;color:var(--muted);text-align:center;padding:2px}
.recur-date-day{border:1px solid transparent;background:transparent;color:inherit;border-radius:6px;min-height:28px;font-size:10px;cursor:pointer}
.recur-date-day:hover{background:var(--surface-2);border-color:var(--border)}
.recur-date-day.selected{background:rgba(72,139,230,.22);border-color:rgba(72,139,230,.7)}
.recur-date-day.outside{opacity:.28;pointer-events:none}
.expired-stop-confirm .modal-card{width:min(520px,calc(100vw - 32px))}
.refresh-action .refresh-archive-icon{display:none}
body.shift-held:not(.ctrl-held) .refresh-action .refresh-normal-icon,body.shift-held:not(.ctrl-held) .refresh-action .refresh-anchor-icon{display:none!important}
body.shift-held:not(.ctrl-held) .refresh-action .refresh-archive-icon{display:inline-flex!important;color:#a87449}
@media(max-width:900px){.history-type-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
