* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f5f7;
    color: #222;
    font-family: "Microsoft YaHei", SimSun, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

a {
    color: #1f5fbf;
}

.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 380px;
    background: #fff;
    border: 1px solid #b8c7da;
    padding: 25px;
}

h1,
h2 {
    margin: 0 0 14px;
    color: #123b73;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 18px;
}

.muted {
    color: #666;
}

label {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    min-height: 36px;
    border: 1px solid #b8c7da;
    padding: 6px 8px;
    background: #fff;
    color: #222;
    font: inherit;
}

textarea {
    resize: vertical;
}

.btn,
button {
    min-height: 34px;
    border: 1px solid #9db7dd;
    padding: 6px 12px;
    cursor: pointer;
    color: #174c9a;
    background: #eef4ff;
    font: inherit;
}

.btn.primary,
button.primary {
    background: #2b63b7;
    color: #fff;
    border-color: #2b63b7;
}

.alert {
    color: #b00000;
    background: #fff4f4;
    border: 1px solid #efb5b5;
    padding: 8px 10px;
    margin-bottom: 12px;
}

.back-link {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    color: #555;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 190px;
    background: #173b6d;
    color: #fff;
    padding: 16px 0;
}

.sidebar h2 {
    margin: 0;
    padding: 0 18px 15px;
    color: #fff;
    font-size: 19px;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
}

.sidebar a.active,
.sidebar a:hover {
    background: #2b63b7;
}

.admin-main {
    margin-left: 190px;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #cbd6e5;
}

header span {
    color: #555;
}

.panel,
.stat-card {
    background: #fff;
    border: 1px solid #cbd6e5;
    padding: 14px;
    margin-bottom: 15px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.stat-card strong {
    display: block;
    margin-bottom: 6px;
    color: #123b73;
}

.stat-card p {
    margin: 5px 0;
    color: #555;
}

.inline-form,
.toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: end;
}

.toolbar.multi {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.check {
    display: flex;
    gap: 6px;
    align-items: center;
}

.check input {
    width: auto;
    min-height: auto;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

th,
td {
    border: 1px solid #d5deea;
    padding: 8px;
    vertical-align: top;
    text-align: left;
}

th {
    color: #123b73;
    background: #edf3fb;
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.actions form {
    display: inline;
}

.actions button {
    min-height: 30px;
    padding: 4px 9px;
}

.review-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.review-form button[value="REJECTED"] {
    color: #b00000;
    background: #fff4f4;
    border-color: #efb5b5;
}

summary {
    cursor: pointer;
    color: #1f5fbf;
    font-weight: bold;
}

.hash {
    max-width: 190px;
    word-break: break-all;
    color: #555;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.empty-state {
    padding: 14px;
    border: 1px dashed #aebdd0;
    color: #555;
    background: #fbfdff;
    text-align: center;
}

ol {
    color: #444;
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 12px;
    }

    header {
        display: block;
    }

    table {
        min-width: 760px;
    }
}

@media (max-width: 560px) {
    .login-card {
        width: 100%;
    }

    .inline-form,
    .toolbar,
    .toolbar.multi {
        grid-template-columns: 1fr;
    }
}
