* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f2ec;
    color: #1f2933;
}
a { color: #77511f; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 22px;
    background: #151515;
    color: #fff;
}
.brand { color: #fff; font-weight: 700; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 14px; }
.topbar nav a { color: #f6ead8; }
.logout-form { margin: 0; }
.logout-form button {
    min-height: 0;
    padding: 0;
    color: #f6ead8;
    background: transparent;
}
.page { max-width: 1180px; margin: 0 auto; padding: 24px; }
.section {
    background: #fff;
    border: 1px solid #e6ded1;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}
h1, h2 { margin-top: 0; }
.stats, .status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.stats div, .status-grid div {
    border: 1px solid #e6ded1;
    border-radius: 8px;
    padding: 14px;
}
.stats strong { display: block; font-size: 28px; }
.toolbar, .form-grid, .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}
label { display: grid; gap: 6px; }
input, select, button {
    min-height: 38px;
    border: 1px solid #cdbfabc;
    border-radius: 6px;
    padding: 8px 10px;
    font: inherit;
}
button, .button-link {
    background: #151515;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    display: inline-block;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid #e6ded1; padding: 10px; text-align: left; vertical-align: top; }
th { background: #fbf8f2; }
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #efe5d5;
}
.muted {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}
.messages { margin-bottom: 18px; }
.message {
    padding: 10px 12px;
    background: #eef7ed;
    border: 1px solid #cce6c8;
    border-radius: 8px;
}
.details {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}
.details dt { font-weight: 700; }
.inline { display: flex; align-items: center; gap: 8px; }
.links-list {
    margin: 0;
    padding-left: 18px;
}
.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}
.login-box {
    width: min(420px, calc(100vw - 28px));
    background: #fff;
    border: 1px solid #e6ded1;
    border-radius: 8px;
    padding: 24px;
}
@media (max-width: 760px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .page { padding: 14px; }
    .details { grid-template-columns: 1fr; }
}
