.converter-panel,
.seo-panel {
    height: 100%;
}

.upload-area {
    margin: 18px 0;
    padding: 44px 18px;
    border: 2px dashed #a9bfd8;
    border-radius: var(--radius);
    text-align: center;
    background: var(--surface-muted);
}

.upload-area.has-file,
.upload-area.drag-over {
    border-color: var(--accent);
    background: var(--drag-bg);
}

#fileInput {
    display: none;
}

.options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.options label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
}

.option-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text);
    position: relative;
}

.option-help {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--accent);
    font-size: 0.85rem;
    padding: 0;
    box-shadow: none;
    flex: 0 0 auto;
}

.option-help-text {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + 8px);
    width: min(260px, 85vw);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--tooltip-bg);
    box-shadow: var(--shadow);
    z-index: 5;
}

.checkbox {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
}

.checkbox span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.inline-note,
.advanced-summary {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    border: 1px solid var(--line);
}

.section-subheading {
    margin-top: 18px;
}

.advanced-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.switch {
    position: relative;
    display: inline-flex;
}

.switch input {
    position: absolute;
    opacity: 0;
}

.switch-slider {
    width: 56px;
    height: 32px;
    border-radius: 999px;
    background: var(--line);
    position: relative;
}

.switch-slider::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
    background: var(--accent);
}

.switch input:checked + .switch-slider::after {
    transform: translateX(24px);
}

.is-hidden-option {
    display: none !important;
}

#progress {
    margin-top: 18px;
}

.progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--progress-bg);
    overflow: hidden;
}

#progressFill {
    width: 0;
    height: 100%;
    background: var(--accent);
}

#downloadLink {
    display: block;
    margin-top: 16px;
}

.feature-list {
    padding-inline-start: 18px;
}

.feature-list li {
    margin-bottom: 10px;
}

@media (max-width: 920px) {
    .options {
        grid-template-columns: 1fr;
    }
}
