/* ② Compact chronology: remove empty time rows and accumulated row margins. */
body:has(#view-timeline.active) .shell{max-width:900px;padding-top:12px}
body:has(#view-timeline.active) .view-head{margin-bottom:12px;gap:12px}
body:has(#view-timeline.active) .view-head h1{font-size:22px}
.timeline-scroll{height:calc(100dvh - 225px)!important;min-height:280px;padding-top:0!important}
.timeline-day{grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important;margin-bottom:18px!important}
.timeline-day-items{display:flex!important;flex-direction:column;justify-content:flex-start!important;gap:6px!important;padding-left:13px!important}
.timeline-day-items:before{top:9px!important}
.timeline-record{display:grid!important;grid-template-columns:49px minmax(0,1fr)!important;gap:8px!important;margin:0!important;align-items:start!important}
.timeline-time{font:11px/1.5 system-ui!important;min-width:0!important;width:auto!important;padding-top:7px!important;white-space:nowrap}
.timeline-record:has(.timeline-time:empty) .timeline-time{display:none}.timeline-record:has(.timeline-time:empty){grid-template-columns:49px minmax(0,1fr)!important}.timeline-record:has(.timeline-time:empty) .timeline-record-card{grid-column:2}
.timeline-record-card{padding:7px 10px!important;border-left-width:2px!important;border-radius:8px!important;min-height:0!important}
.timeline-record-card small{font-size:11px!important;line-height:1.35!important;margin:0 0 2px!important}
.timeline-record-card p{font-size:13px!important;line-height:1.5!important;margin:0!important;white-space:pre-wrap!important}
.timeline-date small{font-size:10px!important}.timeline-date strong{font-size:28px!important}.timeline-earlier{margin-bottom:10px!important;padding:4px 8px!important}.timeline-footer{margin-top:6px!important;gap:6px!important}.timeline-footer button{padding:7px 9px!important;font-size:11px!important}
@media(max-width:700px){body:has(#view-timeline.active) .shell{padding-top:8px!important}.timeline-scroll{height:calc(100dvh - 190px)!important}.timeline-day{grid-template-columns:35px minmax(0,1fr)!important;gap:6px!important}.timeline-day-items{padding-left:9px!important}.timeline-record{grid-template-columns:34px minmax(0,1fr)!important;gap:5px!important}.timeline-record:has(.timeline-time:empty){grid-template-columns:34px minmax(0,1fr)!important}.timeline-time{font-size:9px!important}.timeline-record-card small{font-size:10px!important}.timeline-record-card p{font-size:12px!important}.timeline-date small{font-size:8px!important;word-break:normal!important}.timeline-date strong{font-size:24px!important}.view-head .btn{padding:6px 8px!important;font-size:11px!important}}
.event-project-label[hidden],.event-project-divider[hidden],.mobile-month-entry>small[hidden],.mobile-record-card>small[hidden],.mobile-month-entry>small:empty,.mobile-record-card>small:empty{display:none!important}
.mobile-month-entry[data-arrange-key]{position:relative;padding-right:9px!important;touch-action:pan-y}.mobile-month-entry .arrange-grip{top:1px;right:0;font-size:9px;line-height:16px;width:11px;min-height:21px;touch-action:none;opacity:.6}.arrange-grip{touch-action:none}.arranging .mobile-month-entry{touch-action:none}
/* ③④ The only visual additions to the original calendar and dust groups. */
.calendar-event-chip[data-arrange-key]{position:relative;cursor:grab!important;padding-right:13px!important;touch-action:pan-y}.arrange-grip{position:absolute;right:2px;top:4px;font:11px system-ui;color:var(--muted);opacity:.65;user-select:none}.dust-project-card{position:relative}.dust-arrange-handle{position:absolute;z-index:2;left:7px;top:14px;background:transparent;border:0;color:var(--muted);font:17px system-ui;cursor:grab;touch-action:none;padding:7px 5px}.dust-project-heading{padding-left:38px!important}.arrange-source{opacity:.35}.arrange-over{outline:2px dashed var(--accent)!important;outline-offset:-3px;background:var(--tint)!important}.arrange-before{box-shadow:inset 0 3px 0 var(--accent)!important}.arrange-after{box-shadow:inset 0 -3px 0 var(--accent)!important}.arrange-ghost{position:fixed!important;pointer-events:none!important;z-index:99990!important;opacity:.96;box-shadow:0 12px 35px #4b333933!important;transform:rotate(-1deg);max-width:330px!important;overflow:hidden;border-radius:9px!important;background:var(--bar);margin:0!important;user-select:none}.arranging,.arranging *{cursor:grabbing!important;user-select:none!important}.arrange-status{position:fixed;bottom:77px;left:50%;transform:translateX(-50%);z-index:10000;background:var(--bar);border:1px solid var(--border);border-radius:10px;box-shadow:0 4px 20px #503a4218;padding:8px 12px;font:12px/1.5 system-ui;max-width:calc(100% - 28px);display:flex;align-items:center;gap:10px}.arrange-status[hidden]{display:none}.arrange-status button{border:1px solid var(--border);border-radius:6px;background:var(--tint);font:inherit;color:var(--ink);padding:4px 8px;white-space:nowrap}.arrange-original-time{font:11px/1.5 system-ui;color:var(--muted)}

/* Reorder grips occupy the heading's grid row, never the card's text baseline. */
#dustScreen>.dust-project-card{display:grid;grid-template-columns:minmax(0,1fr);touch-action:pan-y}
.dust-project-card>.dust-project-heading{grid-area:1/1;padding-left:17px!important}
.dust-project-card>.dust-arrange-handle{grid-area:1/1;position:relative;inset:auto;align-self:center;justify-self:start;display:none;align-items:center;justify-content:center;box-sizing:border-box;width:28px;height:32px;padding:4px;margin:0 0 0 6px;line-height:1}
.dust-project-card.dust-drag-enabled>.dust-project-heading{padding-left:44px!important}
.dust-project-card.dust-drag-enabled>.dust-arrange-handle{display:flex}
.dust-project-card.dust-drag-enabled{touch-action:none}
