/* Result-only downloads and unmistakable separation between inputs and outputs. */
.history-media{margin:0;background:#08080a}
.history-media figcaption{padding:9px 13px;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.04em;color:var(--muted);overflow-wrap:anywhere}
.history-media.is-result figcaption{color:var(--ink)}
.history-media.is-result img{cursor:zoom-in;object-fit:contain}
.history-no-result{min-height:170px;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:24px;border-bottom:1px solid var(--line);background:#0a0a0c}
.history-no-result strong{font-size:22px;letter-spacing:-.03em;font-weight:400}
.history-no-result span{font-size:11px;line-height:1.6;color:var(--muted);max-width:34ch}
.cardactions button.result-download{background:var(--ink);border-color:var(--ink);color:var(--bg);min-height:40px;flex:1 1 100%}
.cardactions button.result-download:hover{background:#fff;border-color:#fff;color:#09090b}
.cardactions button:disabled{opacity:.5;cursor:not-allowed}
.history-source{margin-top:16px;border-top:1px solid var(--line);padding-top:10px}
.history-source summary{color:var(--muted);font-size:10px;cursor:pointer;overflow-wrap:anywhere}
.history-source .history-media{margin-top:10px}
.card .history-source img{height:130px;object-fit:contain}
.cardbody p.history-error{max-height:none;overflow:visible;font-size:11px;color:var(--muted);margin-top:12px}
.history-task{overflow-wrap:anywhere;font-size:9px;line-height:1.5}
#download:not([hidden]){background:var(--ink);color:var(--bg);border-color:var(--ink);min-height:40px;flex-shrink:0}
.stagefoot{flex-wrap:wrap}
@media(max-width:560px){.history-no-result{min-height:155px}.cardactions button.result-download{min-height:44px}.history-source summary{font-size:11px}}

/* The added tab stays within the existing responsive workbench. */
.tool-switch{flex-wrap:wrap}.tool-tab{min-width:0}.upscale-info{margin:0 0 20px;font-size:11px}.frame-pair:has(#last-upload[hidden]){grid-template-columns:1fr}
@media(max-width:560px){.tool-tab{flex:1 1 30%;display:block;text-align:left;padding:12px 10px}.tool-tab small{display:block;margin-top:4px;font-size:8px}}
