html, body {
    background: #f6f7f9;
    color: #20242a;
    font-family: "Segoe UI", Arial, sans-serif;
}

a, .btn-link {
    color: #0f5f8c;
}

h1 {
    font-size: 1.65rem;
    font-weight: 650;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 1rem;
}

h3 {
    font-size: .95rem;
    font-weight: 650;
    margin-top: 1.25rem;
}

.content {
    padding-top: 1.25rem;
}

.btn-primary {
    background-color: #116149;
    border-color: #116149;
}

.btn-primary:hover {
    background-color: #0d4d3a;
    border-color: #0d4d3a;
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.18rem rgba(17, 97, 73, .2);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.metric, .panel, .login-panel, .plugin-card {
    background: #fff;
    border: 1px solid #d9dee4;
    border-radius: 6px;
}

.metric {
    padding: 1rem;
}

.metric span, small {
    color: #65717f;
    display: block;
    font-size: .78rem;
}

.metric strong {
    display: block;
    font-size: 1.35rem;
    margin-top: .25rem;
}

.panel {
    margin-bottom: 1rem;
    padding: 1rem;
}

.notice {
    background: #e8f5ef;
    border: 1px solid #b9dfcf;
    border-radius: 6px;
    color: #103d2e;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
}

.notice.warning {
    background: #fff7e5;
    border-color: #f0d18a;
    color: #5a4000;
}

.details {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: .5rem 1rem;
}

.details dt {
    color: #65717f;
    font-weight: 600;
}

.details dd {
    margin: 0;
}

.admin-table {
    border-collapse: collapse;
    font-size: .9rem;
    width: 100%;
}

.admin-table th {
    background: #eef1f4;
    color: #38424d;
    font-weight: 650;
}

.admin-table th, .admin-table td {
    border-bottom: 1px solid #e5e9ed;
    padding: .65rem;
    text-align: left;
    vertical-align: top;
}

.status {
    border-radius: 999px;
    display: inline-block;
    font-size: .75rem;
    font-weight: 650;
    padding: .2rem .55rem;
}

.status.ok {
    background: #dff4ea;
    color: #0f5b43;
}

.status.off {
    background: #eceff3;
    color: #4c5967;
}

.split {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(240px, 320px) 1fr;
}

.tenant-list, .plugin-grid {
    display: grid;
    gap: .65rem;
}

.tenant-row {
    background: #fff;
    border: 1px solid #d9dee4;
    border-radius: 6px;
    color: inherit;
    display: grid;
    gap: .2rem;
    padding: .75rem;
    text-align: left;
    width: 100%;
}

.tenant-row.selected {
    border-color: #116149;
    box-shadow: inset 3px 0 0 #116149;
}

.form-grid, .channel-editor {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

label {
    color: #38424d;
    font-size: .85rem;
    font-weight: 600;
}

.check {
    align-items: center;
    display: flex;
    gap: .45rem;
    padding-top: 1.65rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.plugin-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plugin-card {
    padding: .9rem;
}

.code-box {
    font-family: Consolas, "Courier New", monospace;
    font-size: .82rem;
    min-height: 150px;
    margin-top: .75rem;
}

.login-shell {
    display: grid;
    min-height: 70vh;
    place-items: center;
}

.login-panel {
    max-width: 380px;
    padding: 1.25rem;
    width: 100%;
}

.login-panel form {
    display: grid;
    gap: .8rem;
}

.validation-message {
    color: #b42318;
    font-size: .85rem;
    margin-top: .4rem;
}

.blazor-error-boundary {
    background: #b42318;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

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

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