*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    color: #202020;
    background: #f6f6f3;
}
button, input { font: inherit; }
button {
    cursor: pointer;
    border: 1px solid #202020;
    border-radius: 4px;
    padding: 10px 16px;
    color: white;
    background: #202020;
}
button:hover { background: #404040; }
button:disabled { cursor: wait; opacity: 0.6; }
button:focus-visible, input:focus-visible {
    outline: 3px solid #2860a4;
    outline-offset: 3px;
}
h1, h2, p { margin: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
[role="alert"] { color: #a11919; }
.eyebrow {
    margin-bottom: 8px;
    color: #5d5d5d;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
#password-form {
    width: min(100%, 360px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#password-form input {
    width: 100%;
    border: 1px solid #888;
    border-radius: 4px;
    padding: 12px;
    background: white;
}
#password-form input[aria-invalid="true"] { border-color: #a11919; }
.upload-page { max-width: 1200px; margin: auto; padding: 32px; }
.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid #d7d7d2;
}
.upload-page > [role="alert"] { margin-top: 16px; }
.upload-body {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    margin-top: 32px;
}
.section-nav { display: flex; flex-direction: column; gap: 8px; }
.section-link {
    text-align: left;
    color: #202020;
    background: transparent;
    border-color: transparent;
}
.section-link:hover { background: #e8e8e3; }
.section-link[aria-pressed="true"] { color: white; background: #202020; }
.workspace {
    min-height: 320px;
    padding: 28px;
    border: 1px solid #d7d7d2;
    border-radius: 6px;
    background: white;
}
.workspace-description { margin-top: 12px; color: #5d5d5d; line-height: 1.6; }
.workspace-note {
    margin-top: 32px;
    padding: 16px;
    border-left: 3px solid #b9b9b0;
    background: #f6f6f3;
    line-height: 1.6;
}
.view-error { padding: 32px; }
.view-error > * + * { margin-top: 16px; }
@media (max-width: 640px) {
    .upload-page { padding: 20px; }
    .upload-header { gap: 16px; padding-bottom: 24px; }
    .upload-body { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
    .section-nav { flex-direction: row; flex-wrap: wrap; }
    .workspace { min-height: 240px; padding: 20px; }
}
