/* Scope every new rule to Tool 14; no Tool 02 rules or legacy shared files changed. */
.qh-turnaround14-studio{min-width:0;width:100%;}
.ai-page:has([data-enhanced="turnaround"]) .qh-turnaround14-studio .cost-inline{display:block!important;visibility:visible!important;}
.ai-page:has([data-enhanced="turnaround"]) .qh-turnaround14-studio .tool-actions{display:flex;}
.qh-turnaround14-studio .qh14-reference-grid{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;max-width:100%;}
.qh-turnaround14-studio .qh14-reference-grid[hidden]{display:none;}
.qh-turnaround14-studio .qh14-ref-card{position:relative;width:112px;min-width:0;margin:0;border:1px solid #aac4ef;border-radius:8px;background:#f4f7ff;overflow:hidden;}
.qh-turnaround14-studio .qh14-ref-use{display:block;width:100%;height:88px;padding:4px;border:0;cursor:pointer;background:transparent;}
.qh-turnaround14-studio .qh14-ref-use img{display:block;width:100%;height:100%;object-fit:contain;}
.qh-turnaround14-studio .qh14-ref-card figcaption{padding:4px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#173c73;}
.qh-turnaround14-studio .qh14-ref-remove{position:absolute;right:3px;top:3px;width:24px;height:24px;border:1px solid #aac4ef;border-radius:50%;background:white;color:#344054;cursor:pointer;font-size:18px;line-height:18px;padding:0;}
.qh-turnaround14-studio .qh14-ref-use:focus-visible,.qh-turnaround14-studio .qh14-ref-remove:focus-visible{outline:2px solid #2563eb;outline-offset:-2px;}
/* Keep the Tool 14 form within a mobile viewport; other routes are untouched. */
@media(max-width:760px){
body:has(.qh-turnaround14-studio) .engine-sidebar,body:has(.qh-turnaround14-studio) .agent-panel{min-width:0!important;max-width:100%!important;width:100%!important;}
body:has(.qh-turnaround14-studio) .engine-layout{grid-template-columns:minmax(0,1fr)!important;}
body:has(.qh-turnaround14-studio) .tool-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body:has(.qh-turnaround14-studio) .engine-group-head em{width:auto!important;max-width:100%!important;white-space:normal!important;}
body:has(.qh-turnaround14-studio) .agent-panel-top{display:flex!important;flex-direction:column!important;align-items:stretch!important;}
body:has(.qh-turnaround14-studio) .cost-box{width:100%!important;}
}
.qh-turnaround14-studio .choice:disabled{opacity:.4;cursor:not-allowed;}
