* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f4f8;
    color: #1f2933;
}

.card,
.wide-card {
    background: #ffffff;
    margin: 48px auto;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(31, 41, 51, 0.12);
}

.card {
    max-width: 440px;
}

.wide-card {
    max-width: 1100px;
}

h1, h2 {
    margin-top: 0;
}

.muted {
    color: #637083;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input,
button {
    font: inherit;
}

input[type="email"],
input[type="text"],
input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid #c9d2df;
    border-radius: 10px;
}

button,
.button-link,
.file-button {
    display: inline-block;
    padding: 12px 16px;
    background: #1f4e79;
    color: white;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}

button:hover,
.button-link:hover,
.file-button:hover {
    background: #163a5a;
}

.secondary-link {
    display: inline-block;
    margin-left: 12px;
}

.error,
.success,
.notice {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 16px 0;
}

.error {
    background: #fde8e8;
    color: #9b1c1c;
}

.success {
    background: #e7f8ed;
    color: #116329;
}

.notice {
    background: #e7f3ff;
    color: #17456b;
}

.test-code-box {
    background: #fff3cd;
    padding: 18px;
    border-radius: 12px;
    margin: 18px 0;
    text-align: center;
}

.test-code-box span {
    display: block;
    margin-top: 12px;
    font-size: 36px;
    letter-spacing: 8px;
    font-weight: 800;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.top-actions {
    white-space: nowrap;
}

.upload-panel {
    background: #eef3f8;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.drop-zone {
    border: 3px dashed #9fb3c8;
    border-radius: 16px;
    background: #ffffff;
    padding: 34px;
    text-align: center;
    margin: 18px 0;
}

.drop-zone strong,
.drop-zone span {
    display: block;
}

.drop-zone span {
    margin-top: 8px;
    color: #637083;
}

.drop-zone.is-dragover {
    border-color: #1f4e79;
    background: #e7f3ff;
}

.upload-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.file-button input {
    display: none;
}

.selected-files {
    margin-top: 16px;
    padding-left: 20px;
    color: #374151;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #d9e2ec;
    text-align: left;
    vertical-align: top;
}

th {
    background: #e8edf3;
    cursor: pointer;
    user-select: none;
}

th:hover {
    background: #d9e2ec;
}

code {
    background: #f5f7fa;
    padding: 2px 5px;
    border-radius: 5px;
}

.danger {
    color: #b91c1c;
}

.status-ready {
    color: #116329;
    font-weight: 700;
}

.status-missing {
    color: #b91c1c;
    font-weight: 700;
}

.search-box {
    max-width: 420px;
}

@media (max-width: 760px) {
    .topbar,
    .upload-controls {
        display: block;
    }

    .top-actions > * {
        margin: 8px 8px 0 0;
    }

    table {
        font-size: 14px;
    }
}
