body {
    font-family: system-ui, sans-serif;
    max-width: 480px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.row>div {
    flex: 1;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

select,
input[type="file"] {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
}

input[type="file"]::file-selector-button {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    margin-right: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f5f5f5;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background: #ebebeb;
}

.to-encoding {
    padding: 0.4rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f5f5f5;
    color: #555;
    box-sizing: border-box;
}

button {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 1rem;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.status {
    min-height: 1.25rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.status.error {
    color: #c00;
}

.status.success {
    color: #0a7;
}

.footer {
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.8rem;
}