.task-overlay{z-index:1250}.task-card,.task-event{border:1px solid #dce8f5;border-radius:8px;padding:12px;margin:12px 0;overflow-wrap:anywhere}.task-card{border-left:4px solid #1989fa}.task-completed{border-left-color:#389e0d}.task-cancelled{border-left-color:#999}.task-returned{border-left-color:#fa8c16}.task-review{border-left-color:#722ed1}.task-summary{white-space:pre-wrap;line-height:1.8;margin-bottom:8px;font-size:14px}.task-project,.task-event small{display:block;color:#777;font-size:12px;margin:4px 0}.task-nav{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.task-form{display:flex;flex-direction:column;gap:12px}.task-event button{margin:4px}.task-preview{width:100%;min-height:60vh;object-fit:contain;border:0}.task-overlay details{margin:8px 0}.task-overlay details button{display:block;margin:6px 0;white-space:normal;text-align:left}#taskEntry{white-space:nowrap}@media(max-width:600px){#mainPage>.header{flex-wrap:wrap;gap:8px}#mainPage>.header>div{flex-wrap:wrap;gap:6px!important}.task-nav button{flex:1 1 auto}.task-preview{min-height:50vh}}

.header-quick-menu.open #taskQuickEntry{transform:translate(-60px,122px) scale(1)}

.task-assignee-line{position:relative;min-width:0}.task-personal-choice{position:absolute;right:0;top:0;display:flex;align-items:center;gap:5px;font-size:13px;color:#555;cursor:pointer}.task-personal-choice[hidden]{display:none}.task-personal-choice input{width:15px;height:15px;margin:0;accent-color:#1989fa}.task-form select:disabled{color:#555;background:#f5f7fa;opacity:1}

/* Project context is already in the dossier title; personal inbox keeps project labels. */
.task-card.task-compact{display:grid;grid-template-columns:auto minmax(40px,1fr) auto auto;align-items:center;gap:8px;padding:6px 8px;margin:6px 0;border-left-width:3px;font-size:12px;line-height:1.5}
.task-line-state{white-space:nowrap;font-weight:600}.task-line-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.task-line-meta{max-width:38ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777}
.project-archive-panel .task-compact button{padding:3px 7px;font-size:12px;white-space:nowrap}
@media(max-width:600px){.task-card.task-compact{grid-template-columns:auto minmax(40px,1fr) auto;gap:3px 6px}.task-compact .task-line-meta{grid-row:2;grid-column:1/3;max-width:100%;font-size:11px}.task-compact button{grid-column:3;grid-row:1/3}}

.task-section-heading{justify-content:flex-start;gap:8px}.task-section-heading h4{line-height:26px;white-space:nowrap}
.project-archive-panel .task-section-heading>button{height:26px;box-sizing:border-box;padding:2px 8px;font-size:13px;line-height:20px;white-space:nowrap}
.task-section-heading>button:last-child{margin-left:auto}

.task-card.task-timed{grid-template-columns:auto minmax(40px,1fr) auto auto}.task-line-time{font-size:11px;white-space:nowrap;color:#777}
@media(max-width:600px){.task-card.task-timed{grid-template-columns:auto minmax(40px,1fr) auto}.task-timed .task-line-meta{grid-row:2;grid-column:1/3}.task-timed button{grid-column:3;grid-row:1/3}}

.project-history-list .task-pending,.project-history-list .task-review,.project-history-list .task-returned{border-left-color:#ee0a24}
