.workspace-section { padding: 72px 0 82px; background: var(--paper); }
.workspace-heading { align-items: center; }
.workspace-panel { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.workspace-content { padding: 30px; }
.source-section { min-width: 0; }
.source-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 1px; }
.source-divider::before, .source-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.url-source { max-width: 900px; margin-inline: auto; }
.shared-settings { min-width: 0; margin: 28px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.shared-settings:disabled { opacity: 0.65; }
.shared-settings legend { padding: 0 8px; font-size: 14px; font-weight: 750; }
.settings-description { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.shared-settings .settings-grid { margin-top: 0; }
.shared-settings .shrink-control { background: var(--white); }
.submission-actions { padding-top: 22px; border-top: 1px solid var(--line); }

.dropzone { position: relative; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 1.5px dashed #a8b7c8; border-radius: 10px; background: #fafcfd; text-align: center; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--blue-600); background: #f3f7ff; }
.dropzone:focus-within { outline: 3px solid #93c5fd; outline-offset: 3px; }
.dropzone.disabled { opacity: 0.55; cursor: not-allowed; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-input:disabled { cursor: not-allowed; }
.dropzone-icon { width: 36px; height: 36px; margin-bottom: 16px; color: var(--blue-600); }
.dropzone strong { margin-bottom: 5px; font-size: 17px; }
.dropzone > span:not(.dropzone-action) { color: var(--muted); font-size: 13px; }
.dropzone-action { margin-top: 16px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--blue-700); font-size: 13px; font-weight: 680; }

.selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.selection-toolbar > div { display: flex; align-items: baseline; gap: 12px; }
.selection-toolbar strong { font-size: 14px; }
.selection-toolbar span { color: var(--muted); font-size: 12px; }
.concurrency-note { white-space: nowrap; }
.batch-list { list-style: none; padding: 0; margin: 0; }
.file-item { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(220px, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.file-identity { min-width: 0; display: flex; align-items: center; gap: 13px; }
.file-type-icon { flex: 0 0 auto; width: 38px; height: 42px; display: grid; place-items: center; border: 1px solid #cdd9e7; border-radius: 7px; background: var(--paper); color: var(--blue-700); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.file-copy { min-width: 0; }
.file-name { overflow: hidden; margin: 0 0 3px; font-size: 14px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { margin: 0; color: var(--muted); font-size: 12px; }
.file-progress { min-width: 0; }
.file-state-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.file-state { font-size: 12px; font-weight: 700; }
.file-state.queued { color: var(--muted); }
.file-state.uploading, .file-state.processing { color: var(--blue-700); }
.file-state.ready { color: var(--success); }
.file-state.failed { color: var(--danger); }
.file-state.canceled, .file-state.uploaded { color: var(--warning); }
.file-percent { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 20px; background: #e7edf4; color: var(--blue-600); accent-color: var(--blue-600); }
progress::-webkit-progress-bar { border-radius: 20px; background: #e7edf4; }
progress::-webkit-progress-value { border-radius: 20px; background: var(--blue-600); transition: width 180ms linear; }
progress::-moz-progress-bar { border-radius: 20px; background: var(--blue-600); }
.file-message { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.file-message.error { color: var(--danger); }
.file-message.notice { color: var(--warning); }
.file-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.file-actions .button { min-height: 34px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.file-actions .player-link { color: var(--blue-700); border-color: #b8cdf3; background: #f5f8ff; }
.batch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.form-notice { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--warning); background: #fff8e8; color: #76500d; font-size: 12px; white-space: pre-line; }
.workspace-footnote { margin: 24px 0 0; color: var(--muted); font-size: 12px; }

.field { min-width: 0; }
.field label, .range-heading label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 680; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #bfcbd9; border-radius: 7px; background: var(--white); outline: none; }
.field input:focus, .field select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.field input:disabled, .field select:disabled { background: var(--soft); color: #7b8795; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: 1.35fr 0.8fr 1fr; gap: 16px; margin-top: 22px; }
.shrink-control { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.range-heading { display: flex; justify-content: space-between; gap: 20px; }
.range-heading output { color: var(--blue-700); font-size: 12px; font-weight: 680; }
.shrink-control input { width: 100%; accent-color: var(--blue-600); }
.shrink-control p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.job-status { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.job-status.error { border-color: #ecc5c0; background: #fff7f6; }
.job-status.success { border-color: #b8ddcf; background: #f2fbf7; }
.job-status-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; font-size: 13px; }
.job-status-heading span { color: var(--muted); font-variant-numeric: tabular-nums; }
.job-status p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

.tool-main { min-height: calc(100vh - 72px); }
.tool-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.tool-heading h1 { margin-bottom: 10px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -1.4px; }
.tool-heading p:not(.eyebrow) { max-width: 680px; color: var(--muted); }
.tool-heading .button { flex: 0 0 auto; }
.tool-footer { padding: 24px 0; border-top: 1px solid var(--line); background: var(--white); }
.tool-footer .container { display: flex; align-items: center; gap: 28px; }
.tool-footer .brand { color: var(--ink); font-size: 18px; }
.tool-footer .brand-footer { margin: 0; }
.tool-footer nav { display: flex; gap: 22px; color: var(--muted); font-size: 12px; }
.tool-footer nav a:hover { color: var(--blue-700); }
.tool-footer .container > span { margin-left: auto; color: var(--muted); font-size: 12px; }
