* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eef6ff;
    color: #17233d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
    color: #008cff;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: #ffffff;
    border-bottom: 1px solid #d9e9f8;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.08);
}

.topbar strong {
    display: block;
    font-size: 20px;
}

.topbar span {
    color: #60758a;
    font-size: 13px;
}

.layout {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 60px;
}

.panel,
.login-card {
    background: #ffffff;
    border: 1px solid #d9e9f8;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.08);
}

.panel h2,
.login-card h1 {
    margin: 0 0 20px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: #50657a;
    font-size: 14px;
}

label.full {
    grid-column: 1 / -1;
}

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

input,
textarea {
    width: 100%;
    border: 1px solid #c8dff5;
    border-radius: 6px;
    padding: 11px 12px;
    color: #17233d;
    font: inherit;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: #0099ff;
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.12);
}

button {
    width: fit-content;
    min-width: 120px;
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    background: #0099ff;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 22px;
}

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

th {
    color: #60758a;
    font-size: 13px;
}

.danger {
    color: #d9363e;
    margin-left: 12px;
}

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

.success {
    background: #e8fff1;
    color: #0b7a3b;
}

.error {
    background: #fff0f0;
    color: #bf1d1d;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(420px, calc(100% - 32px));
}

.login-card label {
    margin-bottom: 14px;
}

@media (max-width: 720px) {
    .grid-form {
        grid-template-columns: 1fr;
    }
}

