.bx-wrap {
    padding: 20px 24px;
}

.bx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.bx-title {
    font-size: 28px;
    font-weight: 600;
    color: #ff3b30;
    margin: 0;
}

.bx-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bx-btn {
    border: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: #1f1f1f;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.bx-btn:hover {
    filter: brightness(1.1);
}

.bx-btn-primary {
    background: #ff3b30;
}

.bx-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 14px;
}

.bx-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px;
}

.bx-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.bx-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.bx-pill {
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.bx-row {
    margin-top: 10px;
}

.bx-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #333;
    margin-bottom: 6px;
}

.bx-select,
.bx-input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 8px 10px;
    outline: none;
    background: #fff;
}

.bx-select:focus,
.bx-input:focus {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, .12);
}

.bx-muted {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

.bx-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}

.bx-panel {
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.bx-panel-title {
    font-weight: 900;
    margin-bottom: 8px;
    color: #111;
}

.bx-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 6px;
}

.bx-item {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bx-item-title {
    font-weight: 900;
    color: #111;
}

.bx-item-sub {
    font-size: 12px;
    color: #666;
}

.bx-mini-btn {
    border: 0;
    background: #ff3b30;
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 900;
    font-size: 12px;
}

.bx-mini-btn:hover {
    filter: brightness(1.05);
}

.bx-mini-btn.bx-del {
    background: #111;
}

.bx-add {
    background: #ff3b30;
}

.bx-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bx-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    color: #111;
}

.bx-empty {
    color: #666;
    font-size: 12px;
    border: 1px dashed #ddd;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.bx-hint {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

.bx-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #111;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .2s ease;
    z-index: 99999;
    max-width: 460px;
    font-weight: 800;
}

.bx-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.bx-toast.ok {
    background: #16a34a;
}

.bx-toast.bad {
    background: #dc2626;
}

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

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