*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Nirmala UI", sans-serif;
    color: #1c2430;
    background: #eef1f5;
}

a {
    color: #1d4e89;
}

button,
input,
textarea,
select {
    font: inherit;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #151a22;
}

.login-card {
    width: min(420px, 100%);
    background: white;
    border-radius: 16px;
    padding: 28px;
}

.login-card h1 {
    margin: 0 0 8px;
}

.hint {
    background: #f7f1df;
    border-radius: 10px;
    padding: 10px 12px;
    color: #5c4a1e;
}

.shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.side {
    background: #151a22;
    color: white;
    padding: 22px 16px;
}

.side a {
    display: block;
    color: #d5deea;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 4px 0;
}

.side a:hover,
.side a.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.side .brand {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 18px;
    text-decoration: none;
}

.main {
    padding: 28px;
}

.main h1 {
    margin: 0 0 16px;
    font-size: 30px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stat,
.panel {
    background: white;
    border-radius: 14px;
    padding: 18px;
}

.stat span {
    display: block;
    color: #66788c;
    font-size: 14px;
}

.stat strong {
    font-size: 32px;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 650;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd6e0;
    border-radius: 10px;
    background: white;
}

textarea {
    min-height: 160px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

input[type="color"] {
    height: 46px;
    padding: 4px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
}

.check input {
    width: auto;
}

.btn,
.btn-small,
.btn-danger {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn {
    background: #151a22;
    color: white;
    margin-top: 16px;
}

.btn-small {
    background: #e7edf5;
    color: #1c2430;
}

.btn-danger {
    background: #fde8e8;
    color: #9d1c1c;
}

.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.flash-ok {
    background: #e5f7ee;
    color: #14643d;
}

.flash-err {
    background: #fde8e8;
    color: #9d1c1c;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #e6ebf2;
    vertical-align: top;
}

.preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.preview img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    background: #151a22;
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stack {
    display: grid;
    gap: 14px;
}

.feature-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.muted {
    color: #66788c;
}

@media (max-width: 800px) {
    .shell,
    .cards,
    .row,
    .feature-row {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 18px;
    }
}
