/* Universal File Converter: tool-only styles, built on the shared tokens. */
.fc-layout { grid-template-columns: 380px minmax(0, 1fr); }
@media (max-width: 960px) { .fc-layout { grid-template-columns: 1fr; } .fc-layout > .preview-panel { order: 0; } }

.fc-paste { margin-top: 10px; font-size: 13px; }
.fc-paste summary { cursor: pointer; color: var(--text-muted); }
.fc-paste textarea { margin: 8px 0; width: 100%; font: 12.5px/1.45 var(--font-mono); }

.fc-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fc-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; display: grid; gap: 8px; background: var(--bg-elev); cursor: pointer; }
.fc-item.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.fc-item-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fc-item-icon svg { width: 18px; height: 18px; color: var(--accent); display: block; }
.fc-item-name { min-width: 0; flex: 1; display: grid; }
.fc-item-name strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-item-name span { font-size: 12px; color: var(--text-faint); }
.fc-item-convert { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.fc-item-convert select { padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.fc-format { font-size: 13px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.fc-arrow svg { width: 16px; height: 16px; color: var(--text-faint); display: block; }
.fc-item-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.fc-item-status:empty { display: none; }
.fc-item-error { font-size: 12.5px; color: var(--danger); margin: 0; }
.fc-done { display: inline-flex; align-items: center; gap: 4px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.fc-done svg { width: 14px; height: 14px; color: var(--success, #34c759); flex: none; }
.fc-hint { color: var(--text-faint); }
.fc-progress { flex: 1 1 100%; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fc-progress > div { height: 100%; background: var(--accent); transition: width .2s linear; }
.fc-bulk { display: grid; gap: 10px; margin-top: 12px; }
.fc-bulk:empty { display: none; }
.fc-bulk-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.fc-bulk-row select { flex: 1; }
.fc-bulk .btn-ghost { justify-self: start; }

.fc-preview-panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.fc-preview-head { display: grid; gap: 6px; }
.fc-preview-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fc-preview-title h2 { font-size: 14px; font-weight: 600; }
.fc-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 12px; }
.fc-chain li { padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.fc-chain li + li::before { content: "→"; margin: 0 6px 0 -2px; color: var(--text-faint); font-weight: 400; }
.fc-chain li + li { background: none; padding-left: 0; }
.fc-chain li:last-child { background: var(--accent-soft); padding-left: 8px; }
.fc-chain li:last-child::before { margin-left: -14px; margin-right: 10px; }
.fc-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); margin: 0; }
.fc-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--text-faint); }
.fc-note.is-warn, .fc-note.is-warn svg { color: var(--warning); }

.fc-preview { min-height: 360px; display: grid; border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.fc-preview > * { min-width: 0; }
.fc-preview-loading { display: grid; place-items: center; }
.fc-preview-note { margin: 0; padding: 10px 14px; font-size: 12.5px; color: var(--text-muted); align-self: center; justify-self: center; text-align: center; }
.fc-stack { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.fc-frame { width: 100%; height: min(70vh, 720px); border: 0; background: #fff; display: block; }
.fc-text { margin: 0; padding: 14px; max-height: min(70vh, 720px); overflow: auto; font: 12.5px/1.5 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
.fc-table-wrap { overflow: auto; max-height: min(70vh, 720px); }
.fc-table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.fc-table th, .fc-table td { border: 1px solid var(--border); padding: 5px 9px; text-align: left; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.fc-table th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; }
.fc-image-wrap, .fc-media-wrap { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 14px; }
.fc-image { max-width: 100%; max-height: min(64vh, 640px); border-radius: 6px; }
.fc-video { max-width: 100%; max-height: min(64vh, 640px); border-radius: 6px; background: #000; }
.fc-audio { width: min(480px, 100%); }
.fc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 14px; align-content: start; max-height: min(70vh, 720px); overflow: auto; }
.fc-gallery figure { margin: 0; display: grid; gap: 4px; }
.fc-gallery img { width: 100%; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.fc-gallery figcaption, .fc-filelist { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.fc-filelist { padding: 14px; display: grid; gap: 6px; align-content: start; }
