body {
    margin: 0;
    background: #f4f6f8;
    color: #1f2937;
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
    background: #111827;
    color: #ffffff;
    padding: 14px 28px;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.narrow {
    max-width: 520px;
}

.auth-box {
    max-width: 380px;
    margin: 80px auto;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

h1 {
    margin: 0 0 20px;
}

h2 {
    margin-top: 28px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: bold;
}

input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    padding: 10px;
}

button,
.button {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 10px 14px;
}

.small {
    padding: 7px 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d1d5db;
}

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

th {
    background: #eef2f7;
}

.alert {
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 10px;
}

.success {
    background: #dcfce7;
    color: #166534;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 18px;
}

.thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
}

.details {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.large-photo,
.photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 8px;
}

.large-photo {
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
}

.muted {
    color: #6b7280;
}
