.pbn-colors {
    width: 100%;
    margin: 16px 0;
    font-size: 13px;
}

.pbn-intro {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.pbn-intro strong {
    font-size: 16px;
}

.pbn-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 6px 10px;
    margin-bottom: 8px;
}

.pbn-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pbn-control input,
.pbn-control select {
    width: 100%;
    max-width: 260px;
    height: 32px;
    padding: 4px 8px;
    box-sizing: border-box;
    font-size: 13px;
}

.pbn-control button {
    height: 32px;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.pbn-count {
    margin: 6px 0 8px;
    font-size: 13px;
}

.pbn-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pbn-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pbn-table th,
.pbn-table td {
    border: 1px solid #dddddd;
    padding: 3px 5px;
    line-height: 1.2;
    vertical-align: middle;
    font-size: 12px;
}

.pbn-table th {
    background: #f5f5f5;
    font-weight: 700;
}

.pbn-swatch-th,
.pbn-swatch-td {
    width: 74px;
    padding: 0 !important;
}

.pbn-code-th,
.pbn-code-td {
    width: 52px;
    white-space: nowrap;
    text-align: center;
}

.pbn-code-td strong {
    font-size: 14px;
}

.pbn-swatch {
    display: block;
    width: 100%;
    height: 34px;
}

.pbn-empty {
    margin-top: 10px;
}

@media (max-width: 700px) {
    .pbn-controls {
        grid-template-columns: 1fr;
    }

    .pbn-control input,
    .pbn-control select {
        max-width: 210px;
    }

    .pbn-swatch-th,
    .pbn-swatch-td {
        width: 38px;
        min-width: 38px;
    }

    .pbn-swatch {
        width: 38px;
        height: 38px;
    }

    .pbn-table {
        min-width: 960px;
    }
}
