:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17202a;
    background: #f3f5f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: #f3f5f7;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #dce2e7;
}

.topbar__inner {
    width: min(100% - 40px, 1040px);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: #17643a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
}

.topbar strong, .topbar span { display: block; }
.topbar strong { font-size: 14px; }
.topbar span { margin-top: 2px; color: #64717d; font-size: 12px; }

.page-shell {
    width: min(100% - 40px, 1040px);
    margin: 0 auto;
    padding: 48px 0 72px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #17643a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: 0; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #46525d;
    font-size: 13px;
    font-weight: 600;
}

.status i { width: 8px; height: 8px; border-radius: 50%; background: #28a05a; }

.panel {
    background: #fff;
    border: 1px solid #dce2e7;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(24 39 52 / 6%);
}

.panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border-bottom: 1px solid #e7ebee;
}

.panel h2 { margin: 0; font-size: 17px; letter-spacing: 0; }
.panel p { margin: 6px 0 0; color: #64717d; font-size: 14px; }

.formats {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #cfd7dd;
    border-radius: 4px;
    color: #596773;
    font-size: 11px;
    font-weight: 800;
}

.upload-form { padding: 28px; }

.dropzone {
    min-height: 230px;
    padding: 32px;
    border: 1px dashed #9eabb5;
    border-radius: 6px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.dropzone:hover, .dropzone:focus-within { border-color: #17643a; background: #f5faf7; }
.dropzone--error { border-color: #bc3e3e; background: #fff9f9; }

.upload-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6f1eb;
    color: #17643a;
    font-size: 24px;
    font-weight: 500;
}

.dropzone__title {
    max-width: 100%;
    color: #1f2a33;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.dropzone__meta {
    max-width: 100%;
    margin-top: 8px;
    color: #78848e;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.field-error { margin-top: 8px; color: #a82f2f; font-size: 13px; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.primary-button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: #17643a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover { background: #10532f; }
.primary-button:disabled { cursor: wait; opacity: .7; }

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert--success { border-color: #a9d1ba; background: #edf8f1; color: #175c35; }
.alert--error { border-color: #e0b1b1; background: #fff4f4; color: #922d2d; }
.alert__icon { font-weight: 800; }
.errorlist { margin: 0; padding: 0; list-style: none; }

@media (max-width: 640px) {
    .topbar__inner, .page-shell { width: min(100% - 28px, 1040px); }
    .page-shell { padding-top: 32px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    h1 { font-size: 26px; }
    .panel__header { padding: 20px; }
    .panel__header p { line-height: 1.45; }
    .upload-form { padding: 20px; }
    .dropzone { min-height: 210px; padding: 24px 18px; }
    .form-actions, .primary-button { width: 100%; }
    .primary-button { justify-content: center; }
}
