* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.page {
    min-height: 90vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.intro {
    margin-top: 0;
    margin-bottom: 24px;
    color: #4b5563;
    line-height: 1.5;
}

.upload-form,
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-form {
    gap: 18px;
}

input[type="file"],
input[type="text"],
select,
button,
.button-link {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 12px 14px;
    font-size: 15px;
}

button,
.button-link {
    border: none;
    background: #111827;
    color: white;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

button:hover,
.button-link:hover {
    opacity: 0.92;
}

.secondary,
.button-link.muted {
    background: #e5e7eb;
    color: #111827;
}

.small-note {
    margin-top: 18px;
    font-size: 14px;
    color: #6b7280;
}

.result-box {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 18px;
    display: grid;
    gap: 8px;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.copy-row button {
    width: auto;
    min-width: 90px;
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.sponsor-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.sponsor-footer a {
    color: #777;
    text-decoration: underline;
}

@media (max-width: 540px) {
    .card {
        padding: 20px;
    }

    .copy-row {
        grid-template-columns: 1fr;
    }
}
