* {
    box-sizing: border-box;
}

:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #18202a;
    background: #f4f6f8;
}

body {
    margin: 0;
    background: #f4f6f8;
}

a {
    color: inherit;
}

.topbar {
    background: #111827;
    color: white;
    min-height: 72px;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand.small {
    font-size: 24px;
}

.subtitle {
    margin-top: 3px;
    opacity: .75;
    font-size: 13px;
}

.logout,
.download,
button {
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.logout {
    background: #fff;
    color: #111827;
    padding: 9px 14px;
}

.container {
    width: min(1050px, calc(100% - 30px));
    margin: 32px auto 60px;
}

h1 {
    margin-bottom: 5px;
}

.muted {
    color: #6b7280;
}

.category {
    margin-top: 32px;
}

.category h2 {
    border-bottom: 2px solid #e1e5ea;
    padding-bottom: 8px;
}

.file-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.file-row {
    padding: 15px 17px;
    border-bottom: 1px solid #eceff2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.file-row:last-child {
    border-bottom: 0;
}

.file-info {
    min-width: 0;
}

.file-info strong {
    display: block;
    overflow-wrap: anywhere;
}

.file-info span {
    display: block;
    color: #7b8490;
    font-size: 13px;
    margin-top: 4px;
}

.download,
button {
    background: #111827;
    color: #fff;
    padding: 10px 16px;
    white-space: nowrap;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-box {
    background: #fff;
    width: min(420px, 100%);
    padding: 34px;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.login-box h1 {
    margin-top: 20px;
}

label {
    display: block;
    font-weight: 700;
    margin: 24px 0 7px;
}

input[type="password"] {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
}

.login-box button {
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
}

.error {
    margin-top: 18px;
    padding: 11px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
}

.empty {
    background: white;
    padding: 20px;
    border-radius: 10px;
    color: #6b7280;
}

.small-empty {
    padding: 13px;
}

@media (max-width: 600px) {
    .file-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .download {
        width: 100%;
        text-align: center;
    }
}
