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

* { box-sizing: border-box; }
body { margin: 0; }

.site-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    background: #111827;
    color: #fff;
}

.brand { color: #fff; font-size: 19px; font-weight: 700; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a, .link-button { color: #fff; font: inherit; text-decoration: none; }
.current-user { color: #cbd5e1; }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; }

.container { width: calc(100% - 32px); margin: 34px 16px; }
h1 { margin: 0 0 8px; }
.muted, .hint { color: #64748b; }
.hint { margin: -6px 0 16px; font-size: 13px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }

.panel, .table-wrap, .notice {
    background: #fff;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgb(15 23 42 / 7%);
}

.panel { padding: 28px; }
.panel-narrow { max-width: 480px; margin: 60px auto; }
.notice { margin-bottom: 20px; padding: 14px 18px; border-color: #86d5aa; background: #effcf4; }

label { display: block; margin: 18px 0 7px; font-weight: 700; }
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #aeb8c4;
    border-radius: 6px;
    font: inherit;
}
input:focus { outline: 3px solid rgb(37 99 235 / 20%); border-color: #2563eb; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.error { margin: 6px 0 0; color: #b42318; font-size: 14px; }
.actions { display: flex; gap: 10px; margin-top: 22px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #1d4ed8;
    border-radius: 6px;
    background: #1d4ed8;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.button-secondary { border-color: #aeb8c4; background: #fff; color: #17202a; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e5e9ef; text-align: left; font-size: 14px; }
th { background: #eef1f5; }
tr:last-child td { border-bottom: 0; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}
.pagination-summary { margin: 0; color: #64748b; font-size: 14px; }
.pagination-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pagination-link {
    min-width: 38px;
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    text-align: center;
    text-decoration: none;
}
a.pagination-link:hover { border-color: #1d4ed8; color: #1d4ed8; }
.pagination-link.is-current { border-color: #1d4ed8; background: #1d4ed8; color: #fff; font-weight: 700; }
.pagination-link.is-disabled { color: #94a3b8; background: #f1f5f9; }
.pagination-ellipsis { padding: 0 4px; color: #64748b; }

@media (max-width: 700px) {
    .site-header, .site-header nav, .page-heading, .pagination { align-items: flex-start; flex-direction: column; }
    .site-header nav { gap: 10px; }
    .panel-narrow { margin-top: 20px; }
}
