/* Functional controls share the same baseline and touch target. */
.convert-footer .primary-button{justify-content:center;text-align:center}
.settings-group summary .settings-chevron{width:7px;height:7px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.settings-group[open] summary .settings-chevron{transform:rotate(225deg)}
.job-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:18px}
.job-actions>a,.job-actions>button,.job-actions .delete-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0;font-size:12px;line-height:1.2;white-space:nowrap;vertical-align:middle}
.job-card.busy .job-thumb .spinner{width:24px;height:24px;animation:spin 1s linear infinite}
.crop-toolbar{display:flex;align-items:center;gap:14px;margin:6px 18px 0;font-size:12px;color:var(--muted)}
.crop-toolbar button{min-height:44px;font-size:13px}
#cropDialog{width:min(940px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overscroll-behavior:contain}
#cropDialog .dialog-header{padding:16px 20px}
#cropDialog .icon-button{width:44px;height:44px}
.crop-content{padding:0 20px}.crop-stage{position:relative;overflow:hidden;background:#080b10;margin:auto;isolation:isolate;user-select:none;-webkit-user-select:none;touch-action:none}
.crop-stage video{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}
.crop-frame{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px #0009;cursor:move;touch-action:none;outline:1px solid #0005;outline-offset:0}
.crop-frame:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent calc(33.333% - .5px),#fff7 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#fff7 66.666%,transparent calc(66.666% + .5px)),linear-gradient(to bottom,transparent calc(33.333% - .5px),#fff7 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#fff7 66.666%,transparent calc(66.666% + .5px))}
.crop-frame button{position:absolute;width:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;touch-action:none;z-index:2}
.crop-frame button::after{content:"";position:absolute;width:17px;height:17px;border:solid #fff;filter:drop-shadow(0 1px 2px #0009)}
.crop-frame [data-corner=nw]{left:-2px;top:-2px;cursor:nwse-resize}.crop-frame [data-corner=nw]::after{left:0;top:0;border-width:4px 0 0 4px}
.crop-frame [data-corner=ne]{right:-2px;top:-2px;cursor:nesw-resize}.crop-frame [data-corner=ne]::after{right:0;top:0;border-width:4px 4px 0 0}
.crop-frame [data-corner=sw]{left:-2px;bottom:-2px;cursor:nesw-resize}.crop-frame [data-corner=sw]::after{left:0;bottom:0;border-width:0 0 4px 4px}
.crop-frame [data-corner=se]{right:-2px;bottom:-2px;cursor:nwse-resize}.crop-frame [data-corner=se]::after{right:0;bottom:0;border-width:0 4px 4px 0}
.crop-hint{font-size:12px;color:var(--muted);text-align:center;margin:12px 0}
.crop-options{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.crop-options button{min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:12px}
.crop-options button[aria-pressed=true]{border-color:var(--lime);color:var(--text);background:var(--raised)}
.crop-info{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:48px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.crop-info button{min-height:44px;font-size:12px}.crop-footer{display:flex;justify-content:flex-end;align-items:center;gap:20px;padding:12px 20px 18px;border-top:1px solid var(--line)}
.crop-footer .primary-button{width:auto;padding:0 28px;justify-content:center;min-height:44px;font-size:14px}.crop-footer .text-button{min-height:44px;font-size:13px}
@media(max-width:600px){.job-card{grid-template-columns:64px minmax(0,1fr);gap:10px}.job-thumb{width:64px;height:92px}.job-actions{gap:14px}.job-actions>a,.job-actions>button,.job-actions .delete-action{font-size:12px}.crop-options{gap:5px}.crop-options button{padding:0 10px}}
@media(max-width:380px){.job-card{grid-template-columns:1fr}.job-thumb{width:100%;height:110px}.job-actions{justify-content:space-between;gap:8px}}

#videoViewport{width:100%;position:relative;margin:auto}#videoViewport.cropped{overflow:hidden;flex:none}#videoViewport.cropped video{position:absolute;max-height:none;max-width:none;object-fit:fill}
#cropPlayback{display:flex;align-items:center;gap:12px;margin:0 18px;font-size:12px;font-variant-numeric:tabular-nums}#cropPlayback button{min-height:44px;min-width:100px}#cropPlayback input{min-width:0;flex:1}#cropPlayback output{min-width:36px}
.crop-toolbar{flex-wrap:wrap;gap:0 14px}.crop-toolbar #toggleCropPreview{margin-left:auto;font-size:12px}
.file-meta{display:block}.file-meta .file-title strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.video-details{margin-top:4px;font-size:11px;color:var(--muted)}.video-details summary{cursor:pointer;min-height:36px;display:flex;align-items:center;gap:6px;list-style:none}.video-details summary::after{content:'⌄'}.video-details[open] summary::after{transform:rotate(180deg)}.video-details>div{display:flex;flex-wrap:wrap;gap:6px 12px;padding-bottom:8px}.video-details #sourceSize{white-space:nowrap}

.source-details-line{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.6;color:var(--muted);margin:14px 0 0}
