.taskInputDialog{width:min(720px,calc(100vw - 24px));max-height:88vh;box-sizing:border-box;padding:20px;border:1px solid #4b554d;border-radius:14px;background:#242724;color:#dce5de}
.taskInputDialog::backdrop{background:#0009}.taskInputHead,.taskInputFooter,.taskInputPages{display:flex;align-items:center;justify-content:space-between;gap:12px}.taskInputHead h2{margin:0;font-size:19px}.taskInputHead button{font-size:24px}.taskInputDialog p{font-size:13px;color:#aebbb0;line-height:1.6}
.taskInputTabs{display:flex;gap:5px;overflow:auto;margin:12px 0}.taskInputTabs button{flex:1;white-space:nowrap;padding:8px 6px;font-size:13px;color:#aebbb0;border-bottom:2px solid transparent}.taskInputTabs button[aria-pressed=true]{color:#e2f1e5;border-color:#91b59a}
.taskInputDialog input{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #4b554d;border-radius:8px;background:#1c211d;color:inherit;font-size:14px}.taskInputResults{height:34vh;min-height:180px;overflow:auto;margin:12px 0;scrollbar-width:thin}.taskInputOption{display:block;width:100%;padding:12px;text-align:left;border:1px solid transparent;border-bottom-color:#384139;border-radius:7px;color:inherit;background:transparent}.taskInputOption:hover{background:#2d352e}.taskInputOption[aria-pressed=true]{border-color:#83a68e;background:#303d33}.taskInputOption strong,.taskInputOption small{display:block;overflow-wrap:anywhere}.taskInputOption strong{font-size:14px}.taskInputOption small{font-size:12px;color:#aebbb0;line-height:1.6;margin-top:4px}.taskInputOption:disabled{opacity:.55;cursor:not-allowed}.taskInputPages{font-size:12px;color:#aebbb0}.taskInputPages button,.taskInputFooter button{padding:8px 12px;border:1px solid #4b554d;border-radius:7px}.taskInputSelected,.taskInputChips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;max-height:100px;overflow:auto}.taskInputChips[hidden]{display:none}.taskInputChip{display:inline-flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid #4b554d;border-radius:7px;color:#cfe2d4;background:#29312a;font-size:12px;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}.taskInputChip button{font-size:17px;color:inherit}.taskInputFooter{margin-top:10px}.taskInputFooter>span{white-space:nowrap;flex-shrink:0}.taskInputFooter .primary{padding:9px 16px;width:auto;margin-left:auto}.taskInputNotice{min-height:20px;margin:6px 0!important}.composerAddMenu{max-height:min(70vh,500px);overflow:auto;scrollbar-width:thin}
@media(max-width:560px){.taskInputDialog{padding:14px}.taskInputTabs{gap:0}.taskInputTabs button{font-size:12px;padding:8px 5px}.taskInputHead h2{font-size:17px}.taskInputResults{height:29vh}.taskInputSelected{max-height:70px}}

.taskInputBatchControls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0}.taskInputBatchControls[hidden]{display:none!important}.taskInputBatchControls span{font-size:12px;opacity:.75}
.taskInputMultiOption{position:relative;padding-left:38px!important}.taskInputMultiOption::before{content:'□';position:absolute;left:12px;top:12px;font-size:20px}.taskInputMultiOption[aria-checked="true"]::before{content:'☑'}
.taskInputBatchControls button{min-height:40px}

.taskInputAssetResults{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;align-items:start;gap:8px;padding:2px}
.taskInputAssetResults .taskInputOption{display:flex;flex-direction:column;align-self:start;height:auto;min-width:0;padding:6px!important;border:1px solid #384139;border-radius:9px;overflow:hidden}
.taskInputAssetResults .taskInputMultiOption::before{z-index:2;left:auto;right:10px;top:9px;width:24px;height:24px;display:grid;place-items:center;border-radius:6px;background:#1c211ddd;text-shadow:0 1px 3px #000}
.taskInputAssetThumb{position:relative;display:grid;place-items:center;flex:0 0 auto;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:7px;background:var(--panel,#f2f4f7);color:var(--muted,#66717f)}
.taskInputAssetThumb :is(img,video){display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.taskInputAssetPlay{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#0009;color:#fff;font-size:16px}
.taskInputAssetPlaceholder{font-size:13px;color:var(--muted,#66717f)}
.taskInputAssetResults .taskInputOptionCopy{display:block;min-width:0;padding:7px 3px 3px}
.taskInputAssetResults .taskInputOption strong{display:-webkit-box;min-height:2.8em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.4}
.taskInputAssetResults .taskInputOption small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
@media(max-width:560px){.taskInputAssetResults{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.taskInputAssetResults .taskInputOption{padding:5px!important}.taskInputAssetResults .taskInputOptionCopy{padding:6px 2px 2px}}

/* Selection must remain visible over both photos and every WorkHub theme. */
.taskInputDialog .taskInputMultiOption[role="checkbox"]::before{content:"";display:grid;place-items:center;box-sizing:border-box;width:20px;height:20px;border:1.5px solid #84909d;border-radius:5px;background:#fff;color:transparent;text-shadow:none;box-shadow:0 1px 4px #0003;font:700 16px/1 system-ui,sans-serif}
.taskInputDialog .taskInputAssetResults .taskInputMultiOption::before{width:24px;height:24px;border-radius:6px}
.taskInputDialog .taskInputMultiOption[aria-checked="true"]::before{content:"✓";background:#6355d7!important;border-color:#6355d7!important;color:#fff!important;text-shadow:none}
.taskInputDialog .taskInputMultiOption[aria-checked="true"]{border-color:#6355d7!important;outline:2px solid #6355d7;outline-offset:-2px;background:color-mix(in srgb,#6355d7 10%,var(--panel,#fff))!important}
.taskInputDialog .taskInputMultiOption:focus-visible{outline:2px solid #8c7df3;outline-offset:2px}

/* The list scrolls; its action row and selected references stay in view. */
.taskInputDialog[open]{display:flex;flex-direction:column;max-height:min(90dvh,900px);overflow:hidden}
.taskInputDialog> :not(.taskInputResults){flex-shrink:0}
.taskInputDialog .taskInputIntro{margin:6px 0;line-height:1.45}
.taskInputDialog .taskInputTabs{margin:6px 0}
.taskInputDialog .taskInputBatchControls{padding:4px 0;gap:6px}
.taskInputDialog .taskInputBatchControls button{padding:4px 6px;font-size:12px}
.taskInputDialog .taskInputBatchControls span{font-size:11px}
.taskInputDialog .taskInputPages{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px;margin:4px 0}
.taskInputDialog .taskInputPages span{text-align:center;min-width:0;overflow-wrap:anywhere}
.taskInputDialog .taskInputPages button{padding:4px 7px;min-height:32px;font-size:12px}
.taskInputDialog .taskInputResults{flex:1 1 auto;height:38dvh;min-height:0;max-height:420px;margin:4px 0 0;overflow:auto;overscroll-behavior:contain}
.taskInputDialog .taskInputFooter{margin:0;padding:8px 0 0;gap:8px;align-items:center}
.taskInputDialog .taskInputFooter>span{font-size:12px}
.taskInputDialog .taskInputFooter .primary{min-height:42px;max-width:calc(100% - 85px);padding:8px 12px;font-size:12px}
.taskInputDialog .taskInputSelected{margin:6px 0 0;max-height:64px;overflow:auto;overscroll-behavior:contain}
.taskInputDialog .taskInputSelected:empty,.taskInputDialog .taskInputNotice:empty{display:none!important}
.taskInputDialog .taskInputNotice{max-height:44px;overflow:auto;min-height:0;flex-shrink:0}
@media(max-width:560px),(max-height:600px){.taskInputDialog .taskInputIntro{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px}.taskInputDialog .taskInputSelected{max-height:48px}.taskInputDialog .taskInputHead h2{font-size:16px}.taskInputDialog .taskInputTabs button{padding:6px 4px}.taskInputDialog .taskInputFooter .primary{padding:7px 9px}}
@media(max-height:480px){.taskInputDialog{padding:10px}.taskInputDialog .taskInputIntro{display:none}.taskInputDialog .taskInputTabs{margin:3px 0}.taskInputDialog .taskInputSelected{max-height:36px}}
/* The main workbench's generic .primary margin must not pad this action row. */
.taskInputDialog .taskInputFooter .primary{margin:0 0 0 auto;justify-content:center;align-items:center}
.taskInputDialog .taskInputHead>button{width:28px;height:28px;min-height:0;padding:0;line-height:1;flex-shrink:0}

/* Private document covers retain readable paper content while the first page loads. */
.taskInputAssetDocument{background:var(--panel,#eef1f5);color:var(--text,#273343)}
.taskInputDocumentPaper{display:flex;flex-direction:column;align-items:flex-start;gap:8px;box-sizing:border-box;width:84%;height:86%;padding:11px 12px;overflow:hidden;text-align:left;border:1px solid var(--line,#dce1e7);border-radius:4px;background:var(--bg,#fff);box-shadow:0 2px 6px #0000000d}
.taskInputDocumentFormat{flex:0 0 auto;font-size:10px;line-height:1.3;color:var(--muted,#66717f);text-transform:uppercase;letter-spacing:.04em}
.taskInputDocumentTitle{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.4;font-weight:600;overflow-wrap:anywhere;color:var(--text,#273343)}
.taskInputDocumentExcerpt{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.55;overflow-wrap:anywhere;color:var(--muted,#66717f)}
.taskInputAssetDocument>img{object-fit:contain;background:var(--panel,#eef1f5)}
@media(max-width:560px){.taskInputDocumentPaper{gap:5px;padding:8px}.taskInputDocumentTitle{font-size:11px}.taskInputDocumentExcerpt{font-size:9px;-webkit-line-clamp:3}}
