.lb-admin-surface {
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(14, 30, 56, 0.04);
}

.lb-admin-rule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.lb-admin-rule {
    border: 1px solid #e4e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.lb-admin-rule__head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 16px;
    border-bottom: 1px solid #e8ebf1;
    background: #fff;
}

.lb-admin-rule__title {
    min-width: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
}

.lb-admin-rule__title small {
    margin-left: 6px;
    color: #98a2b3;
    font-weight: 400;
}

.lb-admin-rule__spacer {
    flex: 1 1 auto;
}

.lb-admin-switch {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    cursor: pointer;
}

.lb-admin-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lb-admin-switch__track {
    position: relative;
    display: block;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #c7ced8;
    transition: background .18s ease;
}

.lb-admin-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
    transition: transform .18s ease;
}

.lb-admin-switch input[type="checkbox"]:checked + .lb-admin-switch__track {
    background: #2563eb;
}

.lb-admin-switch input[type="checkbox"]:checked + .lb-admin-switch__track::after {
    transform: translateX(14px);
}

.lb-admin-switch input[type="checkbox"]:focus-visible + .lb-admin-switch__track {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.lb-admin-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #8791a3;
    background: #f1f4f9;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.lb-admin-status-pill.is-active {
    color: #15803d;
    background: #dcfce7;
}

.lb-admin-rule__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-admin-btn {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #b8bec9;
    border-radius: 8px;
    color: #2b3445;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.lb-admin-btn:hover {
    border-color: #8f9ab0;
    background: #f7f9fd;
}

.lb-admin-btn--primary {
    border-color: #4968ff;
    color: #fff;
    background: #4968ff;
}

.lb-admin-btn--primary:hover {
    border-color: #3656f3;
    background: #3656f3;
}

.lb-admin-btn--edit {
    border-color: #bfdbfe;
    color: #2563eb;
}

.lb-admin-btn--danger {
    min-width: 34px;
    padding: 5px 9px;
    border-color: #d56b6b;
    color: #b83838;
    font-size: 18px;
    line-height: 1;
}

.lb-admin-btn--danger:hover {
    border-color: #be3f3f;
    color: #9f2a2a;
    background: #fff3f3;
}

.lb-admin-rule__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 10px 16px;
    color: #6b7280;
    background: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.lb-admin-rule__summary-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-left: 1px solid #e5e7eb;
}

.lb-admin-rule__summary-group:first-child {
    padding-left: 0;
    border-left: 0;
}

.lb-admin-rule__summary strong {
    color: #111827;
}

.lb-admin-rule__body {
    padding: 14px 16px 16px;
    background: #fff;
}

.lb-admin-log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lb-admin-log-item {
    padding: 12px 14px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #fcfcfd;
}

.lb-admin-log-item__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #475467;
    font-size: 13px;
}

.lb-admin-log-item__message {
    color: #101828;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .lb-admin-rule__head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .lb-admin-rule__spacer {
        display: none;
    }

    .lb-admin-rule__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .lb-admin-rule__summary-group {
        width: 100%;
        padding: 4px 0;
        border-left: 0;
    }

    .lb-admin-log-item__top {
        flex-direction: column;
        gap: 3px;
    }
}
