* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    color: #000;
    min-height: 100vh;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h2 {
    font-weight: 800;
    letter-spacing: -0.05em;
}

.state {
    animation: fadeIn 0.2s ease;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 60px auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#state-loading p {
    text-align: center;
    color: #666;
}

.icon-error, .icon-success {
    text-align: center;
    font-size: 48px;
    margin: 40px 0 16px;
}

.icon-error { color: #dc2626; }
.icon-success { color: #16a34a; }

.centered-state h2 {
    text-align: center;
    margin-bottom: 8px;
}

.centered-state p {
    text-align: center;
    color: #666;
}

#state-code {
    max-width: 400px;
    margin: 40px auto 0;
}

#state-code h2 { margin-bottom: 8px; }

#state-code > p {
    color: #666;
    margin-bottom: 24px;
}

#code-form {
    display: flex;
    gap: 8px;
}

#code-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #000;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

#code-input:focus {
    border-color: #000;
    box-shadow: none;
}

#code-submit {
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

#code-submit:hover { background: #333; border-color: #333; }
#code-submit:disabled { background: #999; border-color: #999; cursor: not-allowed; }

.error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
}

.resume-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #1e40af;
}

.uppy-Dashboard-inner {
    border-color: #000;
    border-radius: 0;
}

.uppy-Dashboard-AddFiles-title {
    font-family: inherit;
}

.complete-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 6px;
    font-size: 14px;
}

.complete-file .check { color: #16a34a; }

#complete-files-container { margin-top: 20px; }

footer {
    margin-top: 40px;
    text-align: center;
}

footer p { font-size: 12px; color: #999; }
footer a { color: #000; text-decoration: none; }
