/* Compact step navigation and a single active workspace. */
.content:has(.tif-workbench){max-width:1280px}
.tif-heading{margin-bottom:20px}
.tif-heading h1{margin:0}
.tif-project-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}
.tif-project-bar>div{display:flex;align-items:center;gap:4px;min-width:0}
.tif-project-bar select{width:280px;max-width:100%;min-height:38px;margin:0;padding:8px 32px 8px 12px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font:inherit;font-size:14px}
.tif-more{position:relative;font-size:13px;color:var(--muted)}
.tif-more summary{cursor:pointer;padding:8px;list-style:none}
.tif-more[open]{padding:0 8px 8px;background:white;border:1px solid var(--line);border-radius:6px}
.tif-more button{display:block;padding:8px;white-space:nowrap;text-align:left}
.tif-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start}
.tif-flow{position:sticky;top:20px;min-width:0}
.tif-stage{margin-bottom:22px}
.tif-stage h2{font-size:12px;font-weight:500;color:#737b87;margin:0 12px 8px}
.tif-nodes{display:flex;flex-direction:column;gap:3px}
.tif-node{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;padding:10px 12px;border:1px solid transparent;border-radius:6px;background:transparent;text-align:left;color:#404855}
.tif-node:hover{background:#eef0f3}
.tif-node.selected{background:#eaf0fb;color:#285cc7}
.tif-node:focus-visible{outline:2px solid #3268ee;outline-offset:2px}
.tif-node-copy{font-size:13px;font-weight:500}
.tif-node-state{font-size:10px;white-space:nowrap;color:#777f8b}
.tif-node.ready:not(.selected) .tif-node-state{visibility:hidden}
.tif-node.done .tif-node-state{color:#278064}
.tif-node.failed .tif-node-state{color:#a65d30}
.tif-node.running .tif-node-state{color:#285cc7}
.tif-inspector{min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;scroll-margin-top:18px}
.tif-inspector-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 28px;border-bottom:1px solid var(--line)}
.tif-inspector-head h2{font-size:17px;font-weight:600;margin:0}
.tif-detail-state{font-size:12px;color:#777f8b;white-space:nowrap}
.tif-detail-state.done{color:#278064}
.tif-detail-state.failed{color:#a65d30}
.tif-inspector-body{padding:24px 28px}
.tif-preview{height:240px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:repeating-conic-gradient(#f0f1f3 0% 25%,#fff 0% 50%) 50% / 16px 16px}
.tif-preview img{max-width:100%;max-height:100%;object-fit:contain}
.tif-preview-empty{display:flex;flex-direction:column;align-items:center;gap:9px;color:#8b93a0;background:#fafbfc;padding:20px}
.tif-preview-empty svg{width:24px;height:24px}
.tif-preview-empty b{font-size:14px;font-weight:500;color:#606977}
.tif-preview-empty span{font-size:12px}
.tif-image-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:10px 0 16px;font-size:12px;color:#777f8b;overflow-wrap:anywhere}
.tif-image-meta b{font-weight:400}
.tif-help{margin:14px 0;color:#697281;font-size:12px}
.tif-help summary,.tif-history summary{cursor:pointer;padding:7px 0;line-height:1.5}
.tif-help[open]>summary{margin-bottom:8px}
.tif-description{font-size:13px;line-height:1.8;color:#697281;margin:0}
.tif-wide{width:100%;justify-content:center;min-height:40px;font-size:13px}
.tif-tip{background:#f5f6f8;color:#687180;font-size:13px;line-height:1.7;padding:12px 14px;border-radius:5px;margin:0 0 18px}
.tif-field{display:block;font-size:13px;color:#424b59;margin-bottom:18px}
.tif-field input,.tif-field select,.tif-field textarea{display:block;width:100%;font:inherit;border:1px solid #dce0e6;border-radius:5px;background:#fff;color:#303846;padding:10px 12px;margin-top:8px;line-height:1.5}
.tif-field textarea{resize:vertical;min-height:84px}
.tif-field input:focus,.tif-field select:focus,.tif-field textarea:focus{outline:2px solid #c5d6f8;border-color:#7ea4e9;outline-offset:1px}
.tif-field input::placeholder,.tif-field textarea::placeholder{color:#929aa6}
.tif-save-params{display:block;margin:2px 0 18px auto;font-size:12px}
.tif-inspector .form-hint{color:#7b8390;font-size:12px;line-height:1.7;margin:12px 0 18px}
.tif-dimensions{display:flex;flex-wrap:wrap;gap:12px 28px;border-top:1px solid var(--line);padding:18px 0;margin-top:20px}
.tif-dimensions>div{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#7b8390}
.tif-dimensions b{font-size:14px;font-weight:500;color:#394453}
.tif-run-progress{padding:16px 20px;margin-bottom:20px;background:#edf3ff;border:1px solid #d8e5fd;border-radius:6px;font-size:13px;color:#39567d}
.tif-run-progress>div{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tif-run-progress p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:120px;overflow:auto;line-height:1.7}
.tif-run-progress small{font-size:12px;color:#637b9c}
.tif-results{margin-top:28px;border-top:1px solid var(--line);padding-top:22px}
.tif-results h3{font-size:14px;font-weight:600;margin:0 0 12px}
.tif-results article{padding:10px 0}
.tif-results article>b{font-size:13px;font-weight:500;color:#46536a}
.tif-results article>small{display:block;font-size:11px;color:#828b99;margin-top:5px}
.tif-history{border-top:1px solid var(--line);margin-top:10px;padding-top:5px;font-size:12px;color:#747f8e}
.tif-result-preview{margin:16px 0;overflow:hidden;border:1px solid var(--line);border-radius:5px;background:repeating-conic-gradient(#f0f1f3 0% 25%,#fff 0% 50%) 50% / 16px 16px}
.tif-result-preview img{display:block;width:100%;max-height:360px;object-fit:contain}
.tif-result-preview button{padding:10px;width:100%;background:#fff;font-size:12px}
.tif-download-row{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:12px 0;background:transparent;border-bottom:1px solid #edf0f3;color:#405a81}
.tif-download-row>span{font-size:13px;min-width:0;overflow-wrap:anywhere}
.tif-download-row small{display:block;font-size:11px;color:#8a93a0;margin-top:4px}
.tif-download-row svg{width:17px;height:17px}
.tif-download-row:hover{color:#285cc7;background:#fafbfc}
.tif-results .form-error{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.tif-back-flow{display:none}
@media(max-width:1100px){.tif-layout{grid-template-columns:190px minmax(0,1fr);gap:18px}.tif-node{padding:10px 8px}.tif-node-copy{font-size:12px}.tif-inspector-body{padding:20px}.tif-inspector-head{padding:20px}}
@media(max-width:760px){.tif-layout{grid-template-columns:1fr;gap:18px}.tif-flow{position:static;display:grid;grid-template-columns:1fr 1fr;gap:12px}.tif-stage{margin:0}.tif-stage h2{margin-left:8px}.tif-node{min-height:40px}.tif-node-copy{font-size:12px}.tif-node-state{font-size:9px}.tif-inspector-body,.tif-inspector-head{padding:18px}.tif-back-flow{display:block;width:100%;background:transparent;text-align:left;padding:12px 18px;color:#657389;border-bottom:1px solid var(--line);font-size:12px}.tif-project-bar select{width:220px}.tif-preview{height:200px}.tif-more{font-size:12px}.tif-heading{gap:12px}.tif-heading .button{white-space:nowrap;font-size:12px}.tif-inspector{scroll-margin-top:12px}}
.tif-automatic{padding:18px 20px;margin-bottom:20px;background:white;border:1px solid var(--line);border-radius:8px}
.tif-automatic-head{display:flex;justify-content:space-between;align-items:center;gap:18px}
.tif-automatic-head b{font-size:15px;font-weight:600}
.tif-automatic-head p{font-size:12px;line-height:1.6;color:#7b8390;margin:6px 0 0}
.tif-automatic-head>button{white-space:nowrap}
.tif-automatic>details{margin-top:12px;font-size:12px;color:#697281}
.tif-automatic summary{cursor:pointer;line-height:1.8}
.tif-targets{display:flex;flex-wrap:wrap;gap:12px 22px;padding-top:12px}
.tif-targets label{display:flex;align-items:center;gap:7px}
.tif-pipeline-error{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;color:#a46034;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.tif-pipeline-error>button+button{margin-left:12px}
.tif-pipeline-done{color:#278064;font-size:12px;margin:12px 0 0}
.tif-queue-steps{font-size:12px;line-height:1.8}
.tif-queue-steps .done{color:#278064}
.tif-queue-steps .running{font-weight:600}
@media(max-width:760px){.tif-automatic{padding:16px}.tif-automatic-head{align-items:stretch;flex-direction:column;gap:12px}}
