* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f1f3f6;
    color: #1d2330;
}

.card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(20, 30, 60, .08);
}

h1 { margin: 0 0 4px; font-size: 1.5rem; }
h2 { margin: 0 0 12px; font-size: 1.2rem; }
.sub { margin: 0 0 20px; color: #6b7385; font-size: .9rem; }

.drop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 12px;
    border: 2px dashed #c3c9d6;
    border-radius: 10px;
    text-align: center;
    color: #6b7385;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: #3b6cf6; background: #f4f7ff; }
.drop img { max-width: 100%; max-height: 220px; border-radius: 6px; }

.fileinfo { margin-top: 8px; font-size: .85rem; color: #6b7385; }

.field { display: block; margin: 16px 0 6px; font-size: .9rem; font-weight: 600; }

input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c9d6;
    border-radius: 8px;
    font-size: 1rem;
}
input[type="text"]:focus { outline: 2px solid #3b6cf6; border-color: transparent; }
small { display: block; margin-top: 4px; color: #8a91a3; font-size: .78rem; }

button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #3b6cf6;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
button:hover:not(:disabled) { background: #2f58d1; }
button:disabled { background: #b7c4ee; cursor: not-allowed; }
form > button { width: 100%; margin-top: 20px; }

button.secondary { width: 100%; margin-top: 22px; background: #e8ebf2; color: #1d2330; }
button.secondary:hover { background: #dce0ea !important; }

.progress { margin-top: 14px; height: 8px; background: #e8ebf2; border-radius: 4px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: #3b6cf6; transition: width .1s; }

.error { margin: 12px 0 0; padding: 10px 12px; background: #fdecec; color: #b42318; border-radius: 8px; font-size: .9rem; }

.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; background: #f7f8fa; }
.copyrow button { white-space: nowrap; }

[hidden] { display: none !important; }
