* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}
.topbar {
    background: #0f766e;
    color: #fff;
}
.topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand { font-weight: 600; }
.logout-form { display: flex; align-items: center; gap: 12px; }
.link-button {
    background: none;
    border: none;
    color: #d1fae5;
    text-decoration: underline;
    cursor: pointer;
}
.container { max-width: 960px; margin: 32px auto; padding: 0 20px; }
.card {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.auth-card { max-width: 380px; margin: 40px auto; }
h1 { margin-top: 0; }
.muted { color: #6b7280; }
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 0.9rem; }
input[type="text"], input[type="password"], input[type="email"], input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}
.btn-primary {
    display: inline-block;
    margin-top: 20px;
    background: #0f766e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}
.download-link { margin-bottom: 10px; }
.btn-secondary {
    display: inline-block;
    margin-top: 20px;
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}
.field-error, .alert-error { color: #b91c1c; }
.alert { padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; }
.results-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.results-table th, .results-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}
.summary-row { display: flex; gap: 10px; margin-bottom: 10px; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.badge-sent { background: #dcfce7; color: #166534; }
.badge-nomatch { background: #fef9c3; color: #854d0e; }
.status { font-weight: 600; }
.status-matched { color: #166534; }
.status-nopdfmatch { color: #854d0e; }
.status-pending { color: #6b7280; }
