:root {
    color-scheme: light;
    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #1d2430;
    --muted: #667085;
    --line: #d8dee8;
    --accent: #1f7a5b;
    --accent-strong: #155d46;
    --accent-soft: #e7f4ef;
    --danger: #b42318;
    --shadow: 0 24px 70px rgba(29, 36, 48, 0.12);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(31, 122, 91, 0.10), rgba(231, 244, 239, 0) 42%),
        var(--bg);
}

button,
input {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.upload-panel {
    width: min(100%, 520px);
    padding: 32px;
    border: 1px solid rgba(216, 222, 232, 0.8);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.panel-header {
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1;
    letter-spacing: 0;
}

.summary {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.upload-form {
    display: grid;
    gap: 16px;
}

.drop-zone {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 24px;
    border: 1px dashed #a9b4c3;
    border-radius: 8px;
    background: #fbfcfd;
    text-align: center;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.drop-zone:active {
    transform: scale(0.995);
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.drop-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.drop-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.drop-copy {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.95rem;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.file-name,
.file-meta {
    margin: 0;
}

.file-name {
    max-width: 320px;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.progress-wrap {
    display: grid;
    gap: 8px;
}

.progress-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f4;
}

.progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #2f9b7a);
    transition: width 180ms ease;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.primary-button,
.ghost-button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    color: #ffffff;
    background: var(--accent);
}

.primary-button:hover:not(:disabled) {
    background: var(--accent-strong);
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.ghost-button {
    padding: 0 12px;
    color: var(--accent);
    background: var(--accent-soft);
}

.status-error {
    color: var(--danger);
}

@media (max-width: 520px) {
    .upload-panel {
        padding: 24px;
    }

    .file-row {
        align-items: stretch;
        flex-direction: column;
    }

    .file-name {
        max-width: 100%;
    }
}
