/* Shared task controls, including the separate Merge and JPG workspaces. */
html { scroll-padding-top:calc(var(--site-header-height,68px) + 16px); }
.tool-mobile-action[hidden], .tool-output-details:empty { display:none !important; }
.tool-mobile-action { display:none; }
.tool-output-details { max-width:760px; margin:20px auto 0; padding:18px 0 0; text-align:center; }
[data-output-details-host] .tool-output-details { border-top:1px solid var(--app-border,#dedfe7); }
.tool-output-details p { overflow-wrap:anywhere; }
.tool-output-details bdi { unicode-bidi:isolate; }
.jpg-output-extension, .merge-output-extension { direction:ltr; unicode-bidi:isolate; }
.tool-output-details p:last-child:empty { display:none; }
.tool-next-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.tool-next-actions .btn { min-height:44px; }
.tool-output-preview { width:min(94vw,1000px); height:90dvh; border:1px solid var(--app-border,#dedfe7); border-radius:12px; padding:14px; }
.tool-output-preview::backdrop { background:rgb(15 23 42 / 65%); }
.tool-output-preview iframe, .tool-output-preview img { display:block; width:100%; height:calc(100% - 58px); margin-top:12px; border:0; object-fit:contain; }
@media(max-width:900px) {
    .tool-workspace-page .tool-mobile-action { position:fixed; inset:auto 0 0; z-index:1035; display:flex; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid var(--app-border,#dedfe7); background:white; box-shadow:0 -5px 20px rgb(15 23 42 / 8%); }
    .tool-mobile-action .btn { width:100%; min-height:48px; }
    .tool-workspace-page[data-tool-state="workspace"] { padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
}
.tool-result-feedback { margin-block:20px 0; padding:16px 0 0; border:0; border-top:1px solid #e0e7f0; }
.tool-result-feedback legend { float:none; font-size:14px; font-weight:650; margin-bottom:10px; }
.tool-result-feedback button { margin-inline-end:8px; }
.tool-result-feedback [role=status] { display:block; font-size:13px; margin-top:9px; }
.tool-report-problem { display:inline-block; font-size:13px; margin-block:12px 0; }
.tool-workspace-page:is([data-tool-state="workspace"],[data-tool-state="processing"],[data-tool-state="result"]) .tool-migrated-help { display:none; }
