
        .convert-options {
            display: flex;
            gap: 16px;
            margin-top: 24px;
            flex-wrap: wrap;
            align-items: flex-end;
        }

        .opt-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .opt-group.grow {
            flex: 1;
            min-width: 150px;
        }

        .quality-row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 200px;
        }

        .quality-row input[type="range"] {
            flex: 1;
        }

        .quality-val {
            font-weight: 900;
            color: var(--primary-text);
            min-width: 44px;
            text-align: right;
            font-size: 1rem;
        }

        .file-bar {
            display: none;
            align-items: center;
            gap: 12px;
            min-width: 0;
            padding: 11px 14px;
            background: var(--green-light);
            border-radius: var(--radius-lg);
            margin-top: 12px;
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--green-text);
        }

        .file-bar.show {
            display: flex;
        }

        .file-bar .material-symbols-outlined {
            font-size: 20px;
            flex: 0 0 auto;
        }

        .file-bar-remove {
            margin-left: auto;
            background: none;
            border: none;
            color: var(--red);
            cursor: pointer;
            padding: 4px;
            border-radius: 50%;
            display: flex;
        }

        .file-bar-remove:hover {
            background: var(--red-light);
        }

        .preview-grid {
            display: none;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 24px;
        }

        .preview-grid.show {
            display: grid;
        }

        .pbox {
            background: var(--container-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-xl);
            padding: 20px;
            text-align: center;
        }

        .pbox .preview-stage {
            margin-bottom: 12px;
        }

        .pbox .pinfo {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        .action-row {
            display: flex;
            gap: 12px;
            margin-top: 24px;
            justify-content: center;
        }

        .result-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            min-height: 44px;
            padding: 8px 12px;
            box-sizing: border-box;
            background: var(--green-light);
            border: 1px solid var(--green-mid);
            border-radius: var(--radius-xl);
            margin-top: 10px;
            text-align: center;
            visibility: hidden;
        }

        .result-bar.show {
            display: flex;
            visibility: visible;
        }

        .result-bar .result-text {
            font-weight: 700;
            color: var(--green-text);
            font-size: 0.9rem;
        }

        .convert-workspace-header {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            margin-bottom: 10px;
        }

        .convert-mode-switch {
            display: inline-grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 4px;
            padding: 4px;
            background: var(--container-bg);
            border: 1px solid var(--tool-surface-border, var(--border-color));
            border-radius: var(--radius-pill);
            box-shadow: var(--shadow);
        }

        .convert-mode-button {
            display: inline-flex;
            min-width: 116px;
            height: 38px;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 7px 12px;
            color: var(--text-muted);
            background: transparent;
            border: 1px solid transparent;
            border-radius: var(--radius);
            font: inherit;
            font-size: 0.78rem;
            font-weight: 650;
            cursor: pointer;
            transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
        }

        .convert-mode-button svg {
            width: 19px;
            height: 19px;
            flex: 0 0 auto;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .convert-mode-button:hover:not(.is-active) {
            color: var(--green-text);
            background: var(--green-light);
        }

        .convert-mode-button.is-active {
            color: var(--green-text);
            background: var(--green-light);
            border-color: var(--green-mid);
        }

        .convert-mode-button:disabled,
        .batch-add-button:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .convert-page .tool-left.is-batch-mode {
            align-items: stretch;
        }

        .batch-panel {
            display: none;
            width: 100%;
            height: 100%;
            min-height: 0;
            flex-direction: column;
            gap: 10px;
        }

        .batch-panel.show {
            display: flex;
        }

        .batch-panel-header {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .batch-panel-heading {
            min-width: 0;
            flex: 1;
        }

        .batch-panel-heading strong,
        .batch-panel-heading span {
            display: block;
        }

        .batch-panel-heading strong {
            color: var(--text-color);
            font-size: 0.86rem;
        }

        .batch-panel-heading span {
            margin-top: 2px;
            color: var(--text-muted);
            font-size: 0.7rem;
            font-weight: 650;
        }

        .batch-add-button {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 7px 10px;
            color: var(--green-text);
            background: var(--green-light);
            border: 1px solid var(--green-mid);
            border-radius: var(--radius);
            font: inherit;
            font-size: 0.72rem;
            font-weight: 800;
            cursor: pointer;
        }

        .batch-add-button .material-symbols-outlined {
            font-size: 17px;
        }

        .batch-file-list {
            min-height: 0;
            flex: 1;
            overflow-y: auto;
            border: 1px solid var(--tool-control-border, var(--border-color));
            border-radius: var(--radius-lg);
            background: var(--tool-inner-surface, var(--container-bg));
        }

        .batch-file-row {
            display: grid;
            grid-template-columns: 34px minmax(0, 1fr) auto 30px;
            align-items: center;
            gap: 9px;
            min-height: 54px;
            padding: 7px 9px;
            border-bottom: 1px solid var(--tool-surface-border, var(--border-color));
        }

        .batch-file-row:last-child {
            border-bottom: 0;
        }

        .batch-file-icon {
            display: grid;
            width: 32px;
            height: 32px;
            box-sizing: border-box;
            place-items: center;
            padding: calc(var(--tool-panel-gap) / 4);
            color: var(--green);
            background: var(--green-light);
            border-radius: 0;
            overflow: hidden;
        }

        .batch-file-icon .material-symbols-outlined {
            font-size: 18px;
        }

        .batch-file-icon img {
            display: block;
            width: auto;
            height: auto;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 0;
        }

        .batch-file-copy {
            min-width: 0;
        }

        .batch-file-name,
        .batch-file-meta {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .batch-file-name {
            color: var(--text-color);
            font-size: 0.76rem;
            font-weight: 800;
        }

        .batch-file-meta {
            margin-top: 2px;
            color: var(--text-muted);
            font-size: 0.66rem;
            font-weight: 650;
        }

        .batch-file-status {
            color: var(--text-muted);
            font-size: 0.68rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .batch-file-status.is-ready {
            color: var(--green-text);
        }

        .batch-file-remove {
            display: grid;
            width: 28px;
            height: 28px;
            place-items: center;
            padding: 0;
            color: var(--text-muted);
            background: transparent;
            border: 0;
            border-radius: 50%;
            cursor: pointer;
        }

        .batch-file-remove:hover:not(:disabled) {
            color: var(--red);
            background: var(--red-light);
        }

        .batch-file-remove .material-symbols-outlined {
            font-size: 18px;
        }

        .convert-format-label-row {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .convert-format-help {
            position: relative;
            z-index: 60;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            margin-left: auto;
            color: var(--text-muted);
            cursor: help;
        }

        .convert-format-help > .material-symbols-outlined {
            font-size: 17px;
        }

        .convert-format-tooltip {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            bottom: auto;
            z-index: 1100;
            display: grid;
            width: min(310px, calc(100vw - 24px));
            padding: 8px 9px;
            gap: 3px;
            color: #fff;
            background: #25253a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 9px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
            font-size: 0.6rem;
            font-weight: 650;
            line-height: 1.25;
            opacity: 0;
            pointer-events: none;
            transform: translateY(3px);
            transition: opacity 0.15s ease, transform 0.15s ease;
        }

        .convert-format-tooltip > span {
            display: grid;
            grid-template-columns: 32px minmax(0, 1fr);
            gap: 4px;
        }

        .convert-format-tooltip strong {
            color: #86efac;
        }

        .convert-format-tooltip .convert-format-note {
            display: block;
            margin-top: 2px;
            padding-top: 4px;
            color: #cbd5e1;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
        }

        .convert-format-help:hover .convert-format-tooltip,
        .convert-format-help:focus .convert-format-tooltip {
            opacity: 1;
            transform: translateY(0);
        }

        .convert-page .convert-format-group .tool-format-option:disabled {
            opacity: 0.42;
            cursor: not-allowed;
        }

        .convert-page .compact-quality-group[hidden] {
            display: none !important;
        }

        @media (min-width: 769px) {
            .convert-page .tool-page-container,
            .convert-page .tool-layout-grid {
                flex: 0 0 auto;
            }

            .convert-page .tool-layout-grid {
                height: var(--tool-workspace-height);
                min-height: 0;
                align-items: stretch;
            }

            .convert-page .tool-layout-grid > .tool-left,
            .convert-page .tool-layout-grid > .tool-right,
            .convert-page .tool-right > .options-panel {
                height: 100%;
                min-height: 0;
                box-sizing: border-box;
                display: flex;
                flex-direction: column;
            }

            .convert-page .tool-left {
                overflow: hidden;
            }

            .convert-page .preview-grid.show {
                flex: 1 1 auto;
                height: auto;
                min-height: 0;
                margin-top: 0;
                gap: 12px;
                align-items: stretch;
            }

            .convert-page .pbox {
                height: auto;
                min-height: 0;
                padding: 14px;
            }

            .convert-page .pbox .label-sm {
                margin-bottom: 6px !important;
            }

            .convert-page .pbox .preview-stage {
                margin-bottom: 6px;
            }

            .convert-page .pbox .pinfo {
                margin: 0;
                font-size: 0.72rem;
                line-height: 1.2;
            }

            .convert-page .file-bar {
                min-height: 38px;
                margin-top: 10px;
                padding: 8px 10px;
                font-size: 0.75rem;
            }

            .convert-page .tool-left .drop-zone {
                flex: 1 1 0;
                height: 100%;
                min-height: 0;
            }

            .convert-page .tool-right {
                padding-right: 0;
                overflow: visible;
            }

            .convert-page .tool-right > .options-panel {
                overflow: visible;
            }

            .convert-page .options-panel .opt-group {
                margin-top: 10px;
            }

            .convert-page .options-panel .convert-format-group {
                margin-top: 18px;
            }

            .convert-page .options-panel .action-row {
                margin-top: 12px;
            }

            .convert-page .result-bar {
                margin-top: auto;
                min-height: 40px;
                padding: 7px 10px;
                gap: 8px;
                border-radius: var(--radius-lg);
            }

            .convert-page .result-bar.show {
                display: flex;
                align-items: center;
            }

            .convert-page .result-bar .result-text {
                min-width: 0;
                font-size: 0.72rem;
                line-height: 1.25;
                white-space: nowrap;
            }

            .convert-page .result-bar .material-symbols-outlined {
                font-size: 18px !important;
            }

            .convert-page .convert-actions {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            .convert-page .convert-actions .btn {
                width: 100%;
                min-width: 0;
                min-height: 42px;
                height: 42px;
                padding: 8px 10px;
                font-size: 0.82rem;
            }

            .convert-page .convert-actions #cvtConvertBtn {
                color: var(--green-text);
                background: var(--green-light);
                border: 1px solid var(--green-mid);
                box-shadow: none;
            }

            .convert-page .convert-actions #cvtConvertBtn:hover:not(:disabled) {
                color: var(--green-text);
                background: var(--green-mid);
                border-color: rgba(34, 197, 94, 0.32);
                box-shadow: none;
            }

            .convert-page .convert-actions #cvtDownloadBtn:disabled {
                color: rgba(255, 255, 255, 0.78);
                background: rgba(34, 197, 94, 0.38);
                box-shadow: none;
            }
        }

        @media (max-width: 600px) {
            .convert-workspace-header,
            .convert-mode-switch {
                width: 100%;
            }

            .convert-mode-button {
                width: 100%;
                min-width: 0;
            }

            .preview-grid.show {
                grid-template-columns: 1fr;
            }

            .batch-file-row {
                grid-template-columns: 32px minmax(0, 1fr) 28px;
            }

            .batch-file-status {
                display: none;
            }

            .batch-panel-header {
                flex-wrap: wrap;
            }
        }
