:root {
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft JhengHei", sans-serif;
    color: #1d2430;
    background: #f4f6f9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.top {
    height: 58px;
    background: #172033;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 3;
}

.top a {
    color: #ffffff;
}

.brand {
    font-weight: 700;
}

.shell {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: calc(100vh - 90px);
}

.side {
    background: #222d41;
    padding: 14px 10px;
}

.side a {
    display: block;
    color: #dce3ef;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 7px;
    margin-bottom: 4px;
}

.side a:hover {
    background: #34415b;
}

.main,
.single,
.install {
    padding: 20px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.single {
    max-width: 760px;
}

.install {
    max-width: 900px;
}

h1 {
    font-size: 1.45rem;
    margin: 0 0 16px;
}

.card,
.metric,
.ok,
.error,
.toast {
    background: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ok {
    border-left: 5px solid #198754;
}

.error {
    border-left: 5px solid #b02a37;
    background: #fff7f8;
}

.toast {
    border-left: 5px solid #0d6efd;
}

.cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.metric {
    min-width: 220px;
}

.metric b {
    display: block;
    font-size: 1.4rem;
    word-break: break-all;
}

.metric span {
    color: #667085;
}

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

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

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid #b8c1cc;
    border-radius: 7px;
    padding: 9px;
    background: #ffffff;
    width: 100%;
}

textarea {
    min-height: 90px;
}

button,
.button {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    padding: 9px 14px;
    background: #0d6efd;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: #5d6777;
}

.check {
    flex-direction: row;
    align-items: center;
}

.check input {
    width: auto;
}

.filter {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.filter label {
    min-width: 160px;
}

.table-wrap {
    overflow: auto;
    background: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
}

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

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

th {
    background: #f8fafc;
    position: sticky;
    top: 0;
}

pre {
    white-space: pre-wrap;
    word-break: break-all;
    background: #f3f5f7;
    padding: 10px;
    border-radius: 7px;
}

footer {
    text-align: center;
    color: #77808e;
    padding: 10px;
}

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

    .side {
        display: flex;
        overflow: auto;
        gap: 5px;
    }

    .side a {
        white-space: nowrap;
    }

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

    .grid .full {
        grid-column: auto;
    }

    .main {
        padding: 12px;
    }

    .top {
        padding: 0 10px;
    }

    .user {
        font-size: 0.85rem;
    }
}
