* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 245px;
    background: #172033;
    color: #ffffff;
    padding: 22px;
}

.brand {
    display: grid;
    gap: 4px;
    margin-bottom: 28px;
}

.brand span {
    color: #aebbd0;
    font-size: 13px;
}

nav {
    display: grid;
    gap: 8px;
}

nav a {
    border-radius: 6px;
    color: #dce5f5;
    padding: 11px 12px;
}

nav a.active,
nav a:hover {
    background: #2d8cff;
    color: #ffffff;
}

.main {
    margin-left: 245px;
    padding: 24px;
}

.topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.topbar h1 {
    font-size: 28px;
    margin: 0;
}

.topbar span {
    color: #59677c;
}

.card {
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 20px;
}

.card h2 {
    font-size: 19px;
    margin: 0 0 16px;
}

.grid {
    display: grid;
    gap: 16px;
}

.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats .card {
    display: grid;
    gap: 8px;
}

.stats strong {
    font-size: 34px;
}

.summary-list {
    display: grid;
    gap: 10px;
}

.summary-list div {
    align-items: center;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

.notice,
.error {
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 12px;
}

.notice {
    background: #e6f8ee;
    color: #0f6b39;
}

.error {
    background: #ffe9e9;
    color: #9b1c1c;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 900px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid #e7edf5;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #526176;
    font-size: 13px;
    text-transform: uppercase;
}

td small {
    color: #6c7a8d;
    display: block;
    margin-top: 4px;
}

label {
    color: #334258;
    display: grid;
    font-size: 14px;
    gap: 7px;
}

input,
select,
textarea {
    border: 1px solid #c9d4e2;
    border-radius: 6px;
    color: #172033;
    font: inherit;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}

textarea {
    font-family: Consolas, Monaco, monospace;
    resize: vertical;
}

button {
    background: #1f7ae0;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    margin-top: 16px;
    min-height: 42px;
    padding: 0 16px;
}

button:hover {
    background: #155db0;
}

.center {
    text-align: center;
}

.center input {
    width: auto;
}

.small-input {
    max-width: 84px;
}

.form-grid {
    display: grid;
    gap: 14px;
    max-width: 620px;
}

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

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

.editor {
    border-top: 1px solid #e7edf5;
    display: grid;
    gap: 12px;
    padding: 18px 0;
}

.editor-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.login-page {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    margin: 0 auto;
    max-width: 420px;
    padding: 28px;
    width: 100%;
}

.login-box h1,
.login-box p {
    margin: 0;
}

.login-box p {
    color: #59677c;
}

.public-page {
    background: #ffffff;
}

.public-content {
    line-height: 1.65;
    margin: 0 auto;
    max-width: 860px;
    padding: 26px 18px;
}

@media (max-width: 820px) {
    .sidebar {
        position: static;
        width: 100%;
    }

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

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}
