.cf-file-panel{padding:10px 14px;border:1px solid var(--border);border-radius:14px;margin:10px 0;background:var(--panel)}
.cf-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cf-tools button{display:inline-flex;align-items:center;gap:6px}.cf-upload-state{font-size:12px;color:var(--muted);margin-left:auto}.cf-tools svg{width:16px;height:16px}
.cf-file-tray{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.cf-file-tray:empty{display:none}.cf-file-chip{display:flex;align-items:center;min-width:170px;max-width:320px;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}.cf-file-chip a{display:grid;gap:3px;min-width:0;text-decoration:none;color:inherit}.cf-file-chip strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cf-file-chip small{font-size:11px;color:var(--muted)}.cf-file-chip button{margin-left:auto;flex-shrink:0}.cf-file-chip svg{width:14px;height:14px}
.cf-convert-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,1fr) auto;align-items:end;gap:12px;margin:20px 0}.cf-convert-fields label,.cf-note-layout label{display:grid;gap:8px;font-size:12px;font-weight:600}.cf-convert-fields select,.cf-note-layout input,.cf-note-layout textarea{width:100%;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--ink);padding:10px;font:inherit;box-sizing:border-box}.cf-note-layout textarea{resize:vertical;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.55}
.cf-supported{border-top:1px solid var(--border);padding-top:15px;margin-top:20px;font-size:12px;color:var(--muted)}.cf-supported summary{cursor:pointer;color:var(--ink)}.cf-supported p{line-height:1.6}.cf-job{display:grid;gap:10px;padding:16px;border:1px solid var(--border);border-radius:12px;margin-top:16px}.cf-job progress{width:100%;accent-color:var(--accent)}.cf-job .link-button{justify-self:start}.cf-note-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px}.cf-note-list{display:flex;flex-direction:column;gap:8px;overflow:auto;max-height:420px}.cf-note-list button{text-align:left;overflow-wrap:anywhere}.cf-note-layout form{display:grid;gap:14px}
@media(max-width:650px){.cf-convert-fields{grid-template-columns:1fr}.cf-note-layout{grid-template-columns:1fr}.cf-note-list{max-height:110px}.cf-upload-state{margin-left:0;width:100%}.cf-file-chip{max-width:100%;box-sizing:border-box}.cf-file-panel{padding:10px}}

.cf-file-tray{max-height:130px;overflow:auto}.cf-supported [data-cf-job]{display:block;margin:8px 0;text-align:left}

/* Keep private file tools inside the composer without a second padded box. */
.pw-product[data-view="chat"] .pw-message-compose{padding:10px 12px 8px!important}
.pw-product[data-view="chat"] .pw-message-compose #assistant-form{margin:0}
.pw-product[data-view="chat"] #assistant-form #assistant-prompt{height:50px;min-height:50px;max-height:160px;padding:3px 4px 5px;line-height:1.45}
.pw-product[data-view="chat"] #cf-chat-files{padding:0 0 6px;margin:0;border:0;border-radius:0;background:transparent}
.pw-product[data-view="chat"] #cf-chat-files .cf-tools{gap:4px 8px}
.pw-product[data-view="chat"] #cf-chat-files .cf-tools button{min-height:30px;padding:4px 5px;font-size:11px;line-height:1.2}
.pw-product[data-view="chat"] #cf-chat-files .cf-upload-state{order:1;margin-left:auto;width:auto;font-size:11px;line-height:1.3}
.pw-product[data-view="chat"] #cf-chat-files .cf-file-tray{gap:4px 6px;margin-top:4px;max-height:90px;overscroll-behavior:contain;scrollbar-width:thin}
.pw-product[data-view="chat"] #cf-chat-files .cf-file-chip{min-width:0;max-width:320px;padding:2px 6px;gap:6px;border-radius:8px}
.pw-product[data-view="chat"] #cf-chat-files .cf-file-chip a{gap:1px}
.pw-product[data-view="chat"] #cf-chat-files .cf-file-chip strong{font-size:11px;line-height:1.2}
.pw-product[data-view="chat"] #cf-chat-files .cf-file-chip small{font-size:10px;line-height:1.25;white-space:nowrap}
.pw-product[data-view="chat"] #cf-chat-files .cf-file-chip button{width:30px;height:30px;min-height:30px;padding:0}
.pw-product[data-view="chat"] #cf-chat-file-message{font-size:11px;margin:5px 0 0}
.pw-product[data-view="chat"] #cf-chat-file-message:empty{display:none;margin:0}
@media(max-width:650px){
 .pw-product[data-view="chat"] .pw-message-compose{padding:8px 9px!important}
 .pw-product[data-view="chat"] #cf-chat-files .cf-tools{gap:4px}
 .pw-product[data-view="chat"] #cf-chat-files .cf-tools button{min-width:44px;min-height:44px;padding:7px 6px}
 .pw-product[data-view="chat"] #cf-chat-files .cf-upload-state{flex:0 1 auto;max-width:140px;font-size:10px;text-align:right}
 .pw-product[data-view="chat"] #cf-chat-files .cf-file-tray{max-height:104px}
 .pw-product[data-view="chat"] #cf-chat-files .cf-file-chip{max-width:100%;padding:2px 6px}
 .pw-product[data-view="chat"] #cf-chat-files .cf-file-chip a{min-height:44px;align-content:center}
 .pw-product[data-view="chat"] #cf-chat-files .cf-file-chip button{width:44px;height:44px;min-height:44px}
 .pw-product[data-view="chat"] .pw-compose-tools{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1.2fr) 44px;gap:4px}
 .pw-product[data-view="chat"] .pw-compose-tools .pw-attachment-control{min-height:44px;justify-content:center;padding:6px}
 .pw-product[data-view="chat"] .pw-compose-tools select{min-width:0;max-width:none!important;width:100%;height:44px;font-size:10px;padding:5px}
 .pw-product[data-view="chat"] .pw-compose-tools .pw-send{width:44px;height:44px;min-width:44px;margin-left:0}
}

/* File drops stay scoped to the composer and never navigate away from the chat. */
body.aurora-hub #assistant-form.cf-drag-ready{outline:2px dashed var(--accent);outline-offset:4px;border-radius:24px;box-shadow:0 0 0 8px color-mix(in srgb,var(--accent) 12%,transparent)}
body.aurora-hub #cf-chat-files .cf-upload-state{overflow-wrap:anywhere;max-width:100%}
body.aurora-hub #cf-chat-files .cf-stop-upload{color:var(--accent)}

body.aurora-hub #cf-conversions #cf-source{width:100%;min-height:44px;font-size:16px;margin:12px 0;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--ink)}
body.aurora-hub .cf-batch-picks{display:grid;gap:6px;padding:12px;border:1px solid var(--border);border-radius:12px;max-height:240px;overflow:auto;overscroll-behavior:contain}
body.aurora-hub .cf-batch-file{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;overflow-wrap:anywhere}
body.aurora-hub .cf-batch-file input{width:20px;height:20px;flex:none;accent-color:var(--accent)}
body.aurora-hub .cf-batch-progress{display:grid;gap:12px}.cf-batch-result{min-width:0}.cf-batch-result h3{font-size:14px;overflow-wrap:anywhere}.cf-batch-result .cf-job{margin-top:6px}

/* The converter has one scrolling body; identity and primary actions stay visible. */
body.aurora-hub dialog#cf-conversions{box-sizing:border-box;width:min(980px,calc(100vw - 28px));height:min(700px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);padding:16px!important;overflow:hidden!important;margin:auto;border-radius:20px}
body.aurora-hub dialog#cf-conversions[open]{display:flex;flex-direction:column;gap:10px}
body.aurora-hub dialog#cf-conversions>.cc-dialog-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:0!important;padding:0 0 10px;border-bottom:1px solid var(--border)}
body.aurora-hub dialog#cf-conversions>.cc-dialog-head h2{font-size:21px;margin:0;line-height:1.25}
body.aurora-hub dialog#cf-conversions>.cc-dialog-head button{width:44px;min-width:44px;min-height:44px}
body.aurora-hub #cf-convert-body{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}
body.aurora-hub #cf-conversions .cf-convert-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 4px 12px 0;scrollbar-width:thin}
body.aurora-hub #cf-conversions .cf-convert-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
body.aurora-hub #cf-conversions .cf-selection{min-width:0}
body.aurora-hub #cf-conversions .cf-selection>summary{padding:8px 0 12px;font-size:14px;font-weight:650;cursor:pointer;min-height:36px}
body.aurora-hub #cf-conversions .cf-tools{gap:6px;margin:0 0 10px}
body.aurora-hub #cf-conversions .cf-file-search{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--nt-control-border,var(--border));border-radius:10px;background:var(--bg);color:var(--ink);font-size:16px;padding:9px 11px}
body.aurora-hub #cf-conversions .cf-selection-tools{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:5px 0}
body.aurora-hub #cf-conversions .cf-selection-tools button{min-height:40px;font-size:12px;padding:8px}
body.aurora-hub #cf-conversions .cf-selection-tools button[aria-pressed="true"]{background:var(--cc-soft);color:var(--accent)}
body.aurora-hub #cf-conversions .cf-batch-picks{display:block;max-height:none;overflow:visible;padding:0;border:0;margin:0;min-width:0}
body.aurora-hub #cf-conversions .cf-batch-picks legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.aurora-hub #cf-conversions .cf-pick-list{display:grid;gap:5px}
body.aurora-hub #cf-conversions .cf-batch-file{padding:8px 10px;min-height:48px;border:1px solid var(--border);border-radius:10px;background:var(--bg);box-sizing:border-box;cursor:pointer;gap:9px}
body.aurora-hub #cf-conversions .cf-batch-file:has(input:checked){border-color:var(--accent);background:var(--cc-soft)}
body.aurora-hub #cf-conversions .cf-batch-file:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
body.aurora-hub #cf-conversions .cf-pick-copy{min-width:0;display:grid;gap:3px}
body.aurora-hub #cf-conversions .cf-pick-copy strong{font-size:12px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.aurora-hub #cf-conversions .cf-pick-copy small{font-size:11px;color:var(--muted)}
body.aurora-hub #cf-conversions .cf-pick-pager{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:8px}
body.aurora-hub #cf-conversions .cf-pick-pager span{margin-right:auto;color:var(--muted);font-size:11px}
body.aurora-hub #cf-conversions .cf-pick-pager button{min-height:40px;padding:7px 10px;font-size:12px}
body.aurora-hub #cf-conversions .cf-no-files{color:var(--muted);font-size:13px;padding:12px 0}
body.aurora-hub #cf-conversions .cf-results{min-width:0}
body.aurora-hub #cf-conversions .cf-results>h3{font-size:14px;margin:8px 0 14px}
body.aurora-hub #cf-conversions .cf-results-empty{font-size:13px;line-height:1.6;color:var(--muted);padding:22px 16px;border:1px dashed var(--border);border-radius:14px;margin:0}
body.aurora-hub #cf-conversions .cf-batch-result h3{margin:8px 0 4px;font-size:12px;font-weight:550}
body.aurora-hub #cf-conversions .cf-job{padding:12px;font-size:13px;gap:9px}
body.aurora-hub #cf-conversions .cf-job p{margin:0}
body.aurora-hub #cf-conversions .cf-job .cf-download-status:empty{display:none}
body.aurora-hub #cf-conversions .cf-job .link-button{max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
body.aurora-hub #cf-conversions .cf-convert-actionbar{flex:0 0 auto;min-width:0;border-top:1px solid var(--border);padding:12px 0 0;background:var(--panel)}
body.aurora-hub #cf-conversions .cf-convert-fields{display:flex;align-items:end;gap:10px;margin:0}
body.aurora-hub #cf-conversions .cf-convert-fields label{flex:1;min-width:0;font-size:11px;gap:5px}
body.aurora-hub #cf-conversions .cf-convert-fields select{height:44px;font-size:16px;padding:9px 11px}
body.aurora-hub #cf-conversions .cf-convert-fields button{min-height:44px;max-width:55%;white-space:normal;font-size:13px}
body.aurora-hub #cf-conversions #cf-format-note{font-size:12px;line-height:1.4;min-height:17px;margin:7px 0 0}
body.aurora-hub #cf-conversions .cf-supported{padding-top:12px;margin-top:12px}
body.aurora-hub #cf-conversions .cf-supported>button{display:block;width:100%;text-align:left;min-height:44px;white-space:normal;overflow-wrap:anywhere}
body.aurora-hub dialog#cf-saved-conversion{box-sizing:border-box;max-height:calc(100dvh - 28px);overflow:auto}
body.aurora-hub dialog#cf-saved-conversion>.cc-dialog-head{position:sticky;top:0;background:var(--panel);z-index:1}
@media(max-width:740px){
 body.aurora-hub dialog#cf-conversions{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px!important;border-radius:16px}
 body.aurora-hub #cf-conversions .cf-convert-layout{grid-template-columns:minmax(0,1fr);gap:14px}
 body.aurora-hub #cf-conversions .cf-selection-tools button,body.aurora-hub #cf-conversions .cf-pick-pager button{min-height:44px}
 body.aurora-hub #cf-conversions .cf-convert-actionbar{padding-bottom:env(safe-area-inset-bottom,0px)}
}
