/* Playbooks: page-specific styles, using the CRM design tokens/components. */
.color-text-muted {
    color: var(--text-muted)
}

.pb-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px
}

.pb-head-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.pb-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: visible
}

.pb-main-tabs {
    display: flex;
    gap: 24px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border)
}

.pb-main-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 16px 2px 13px;
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer
}

.pb-main-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--brand);
    font-weight: 600
}

.pb-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px
}

.pb-search {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    min-width: 220px;
    background: var(--surface)
}

.pb-search-icon {
    font-size: 21px;
    color: var(--text-subtle)
}

.pb-search input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    width: 100%;
    min-width: 0
}

.pb-toolbar-spacer {
    flex: 1
}

.pb-select {
    min-width: 140px
}

.pb-select .custom-select__trigger {
    min-height: 36px;
    padding: 7px 11px
}

.pb-filter-count {
    background: var(--brand);
    color: #fff;
    border-radius: 20px;
    padding: 1px 6px;
    font-size: 11px;
    margin-left: 4px
}

.pb-filter-row {
    padding: 0 20px 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
    font-size: 13px
}

.pb-filter-row[hidden], .pb-view[hidden], .pb-editor-panel[hidden], [hidden] {
    display: none !important
}

.pb-filter-row label, .pb-check-label {
    display: flex;
    align-items: center;
    gap: 7px
}

.pb-filter-row input, .pb-check-cell input, .pb-check-label input {
    accent-color: var(--brand)
}

.pb-link-btn {
    border: 0;
    background: none;
    color: var(--brand);
    cursor: pointer;
    font: inherit
}

.pb-table-wrap {
    overflow-x: auto
}

.pb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.pb-table th {
    font-size: 11px;
    text-transform: none;
    letter-spacing: .01em;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    text-align: left;
    white-space: nowrap;
    padding: 12px 10px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.pb-table td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    vertical-align: middle;
    white-space: nowrap
}

.pb-table tbody tr:hover {
    background: var(--surface-hover)
}

.pb-table th:first-child, .pb-table td:first-child {
    padding-left: 20px
}

.pb-check-cell {
    width: 36px
}

.pb-name {
    display: block;
    color: var(--text);
    font-weight: 600;
    text-decoration: none
}

.pb-name:hover {
    color: var(--brand)
}

.pb-row-desc {
    display: block;
    font-size: 12px;
    color: var(--text-subtle);
    margin-top: 4px;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis
}

.pb-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative
}

.pb-status {
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 4px 7px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border)
}

.pb-status--published {
    color: #087443;
    background: #ecfdf3;
    border-color: #abefc6
}

.pb-status--draft {
    color: var(--text-muted);
    background: var(--surface-2)
}

.pb-status--archived {
    color: var(--text-subtle);
    background: var(--surface-3)
}

.pb-more {
    font-size: 13px;
    letter-spacing: 1px
}

.pb-row-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    min-width: 155px;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg)
}

.pb-row-menu a, .pb-row-menu button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    cursor: pointer
}

.pb-row-menu a:hover, .pb-row-menu button:hover {
    background: var(--surface-hover)
}

.pb-table-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-muted);
    font-size: 12px
}

.pb-pagination {
    display: flex;
    align-items: center;
    gap: 8px
}

.pb-pagination button, .pb-pagination span {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-muted)
}

.pb-pagination button:disabled {
    opacity: .45
}

.pb-empty {
    padding: 36px;
    text-align: center;
    color: var(--text-muted)
}

.pb-bulkbar {
    position: sticky;
    bottom: 12px;
    margin: 0 auto 12px;
    width: max-content;
    max-width: 95%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 13px
}

.pb-bulkbar button {
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    font: inherit
}

.pb-analyze-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px
}

.pb-analyze-head h2, .pb-chart-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text)
}

.pb-analyze-head p, .pb-chart-head p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 13px
}

.pb-metric-grid {
    display: grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 20px
}

.pb-metric {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 9px
}

.pb-metric span {
    font-size: 12px;
    color: var(--text-muted)
}

.pb-metric strong {
    font-size: 26px;
    line-height: 1.1;
    color: var(--text);
    font-weight: 600
}

.pb-metric small {
    font-size: 11px;
    color: var(--text-subtle)
}

.pb-chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 0 24px 20px
}

.pb-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.pb-chart-legend {
    font-size: 12px;
    color: var(--text-muted)
}

.pb-chart-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    margin-right: 5px
}

.pb-chart {
    height: 230px;
    display: flex;
    gap: 12px;
    margin-top: 18px
}

.pb-chart-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-subtle);
    font-size: 10px;
    padding-bottom: 4px
}

.pb-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible
}

.pb-gridlines path {
    stroke: var(--border);
    stroke-dasharray: 3 4;
    fill: none
}

.pb-chart-area {
    fill: var(--brand);
    opacity: .08
}

.pb-chart-line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.pb-chart-x {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 0 28px;
    color: var(--text-subtle);
    font-size: 10px
}

.pb-analytics-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px;
    padding: 0 24px 24px
}

.pb-analytics-grid .pb-chart-card {
    margin: 0;
    overflow: auto
}

.pb-analytics-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 16px;
    font-size: 12px
}

.pb-analytics-table th, .pb-analytics-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap
}

.pb-analytics-table th {
    color: var(--text-muted);
    font-weight: 600
}

.pb-analytics-table td {
    color: var(--text)
}

.pb-editor {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: calc(100vh - 130px);
    overflow: hidden
}

.pb-editor-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--border)
}

.pb-back {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap
}

.pb-editor-title {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0
}

.pb-editor-title input {
    width: min(390px, 36vw);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    background: transparent
}

.pb-editor-title input:focus {
    outline: none;
    border-color: var(--border-strong);
    background: var(--surface)
}

.pb-title-pencil {
    color: var(--text-subtle)
}

.pb-editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.pb-editor-tabs {
    display: flex;
    gap: 22px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border)
}

.pb-editor-tabs button {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 14px 2px 12px;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer
}

.pb-editor-tabs button.is-active {
    color: var(--text);
    font-weight: 600;
    border-color: var(--brand)
}

.pb-editor-panel {
    min-height: 620px
}

.pb-editor-panel[data-editor-panel="write"] {
    display: grid;
    grid-template-columns:245px minmax(0, 1fr)
}

.pb-contents {
    padding: 20px 16px;
    border-right: 1px solid var(--border);
    background: var(--surface-2)
}

.pb-contents-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 14px
}

.pb-contents nav {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.pb-contents nav a {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 8px;
    border-radius: 6px
}

.pb-contents nav a:hover, .pb-contents nav a.is-active {
    background: var(--surface-3);
    color: var(--brand)
}

.pb-add-content {
    display: block;
    margin-top: 12px;
    border: 0;
    background: none;
    color: var(--brand);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 7px 8px
}

.pb-writing-area {
    min-width: 0;
    padding: 26px clamp(20px, 5vw, 76px) 60px
}

.pb-writing-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px
}

.pb-writing-head h1 {
    font-size: 23px;
    line-height: 1.3;
    margin: 9px 0;
    color: var(--text);
    font-weight: 600
}

.pb-writing-head p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0
}

.pb-published-note {
    font-size: 11px;
    color: var(--text-subtle)
}

.pb-question-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.pb-question {
    position: relative;
    display: flex;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .025)
}

.pb-question:focus-within {
    border-color: var(--brand)
}

.pb-question-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    background: var(--surface-3);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 14px
}

.pb-question-body {
    flex: 1;
    min-width: 0
}

.pb-question-title {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 3px 0 7px
}

.pb-question-body textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    resize: vertical
}

.pb-question-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-subtle);
    font-size: 11px
}

.pb-required-label {
    color: var(--brand)
}

.pb-question-actions {
    position: relative;
    display: flex;
    gap: 4px;
    align-items: flex-start
}

.pb-question-actions > button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    padding: 5px;
    cursor: pointer;
    font: inherit;
    font-size: 12px
}

.pb-add-question-card {
    margin-top: 14px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg)
}

.pb-add-question-card > button {
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 17px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--text)
}

.pb-add-question-card > button span {
    font-size: 20px;
    color: var(--brand)
}

.pb-add-question-card strong {
    font-size: 13px
}

.pb-add-question-card small {
    font-size: 12px;
    color: var(--text-muted)
}

.pb-settings-card, .pb-log-card {
    max-width: 780px;
    margin: 32px auto;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface)
}

.pb-settings-card h2, .pb-log-card h2 {
    font-size: 20px;
    margin: 0 0 7px
}

.pb-settings-card > p, .pb-log-card > p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 24px
}

.pb-field-label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px
}

.pb-field-label > input, .pb-field-label > textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 400
}

.pb-field-label > input:focus, .pb-field-label > textarea:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(36, 86, 230, .1)
}

.pb-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border)
}

.pb-settings-row strong {
    font-size: 13px
}

.pb-settings-row p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 5px 0 0
}

.pb-settings-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border)
}

.pb-switch input {
    position: absolute;
    opacity: 0
}

.pb-switch span {
    display: block;
    width: 36px;
    height: 20px;
    border-radius: 20px;
    background: var(--border-strong);
    position: relative;
    cursor: pointer
}

.pb-switch span:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform .15s
}

.pb-switch input:checked + span {
    background: var(--brand)
}

.pb-switch input:checked + span:after {
    transform: translateX(16px)
}

.pb-field-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px
}

.pb-log-card > .pb-check-label {
    margin-bottom: 20px;
    font-size: 13px
}

.pb-modal-backdrop, .pb-config-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .38);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.pb-modal {
    width: min(470px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px
}

.pb-modal header, .pb-config-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px
}

.pb-modal h2, .pb-config-panel h2 {
    font-size: 17px;
    margin: 0
}

.pb-modal-body {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.pb-content-choice {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer
}

.pb-content-choice:hover {
    border-color: var(--brand);
    background: var(--surface-2)
}

.pb-content-choice strong {
    font-size: 13px
}

.pb-content-choice span {
    font-size: 12px;
    color: var(--text-muted)
}

.pb-modal footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px
}

.pb-config-backdrop {
    justify-content: flex-end;
    padding: 0
}

.pb-config-panel {
    height: 100%;
    width: min(390px, 100%);
    background: var(--surface);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    overflow: auto
}

.pb-config-panel .pb-field-label {
    margin-top: 20px
}

.pb-config-panel footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px
}

.pb-toast {
    position: fixed;
    bottom: 22px;
    right: 24px;
    z-index: 1300;
    padding: 12px 16px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 13px
}

.pb-toast[hidden] {
    display: none
}

@media (max-width: 1100px) {
    .pb-metric-grid {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }

    .pb-editor-panel[data-editor-panel="write"] {
        grid-template-columns:210px minmax(0, 1fr)
    }

    .pb-editor-top {
        flex-wrap: wrap
    }

    .pb-editor-title {
        order: 3;
        width: 100%
    }

    .pb-editor-title input {
        width: 100%
    }
}

@media (max-width: 760px) {
    .pb-page-head {
        flex-direction: column
    }

    .pb-toolbar {
        flex-wrap: wrap
    }

    .pb-search {
        flex: 1;
        min-width: 180px
    }

    .pb-toolbar-spacer {
        display: none
    }

    .pb-filter-row {
        flex-wrap: wrap
    }

    .pb-metric-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        padding: 0 12px 16px
    }

    .pb-analyze-head {
        padding: 18px 12px;
        align-items: flex-start;
        gap: 12px;
        flex-direction: column
    }

    .pb-chart-card {
        margin: 0 12px 14px;
        padding: 14px
    }

    .pb-analytics-grid {
        grid-template-columns:1fr;
        padding: 0 12px 16px
    }

    .pb-editor-panel[data-editor-panel="write"] {
        grid-template-columns:1fr
    }

    .pb-contents {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 12px 16px
    }

    .pb-contents nav {
        max-height: 110px;
        overflow: auto
    }

    .pb-writing-area {
        padding: 22px 14px 40px
    }

    .pb-writing-head {
        flex-direction: column
    }

    .pb-editor-top {
        padding: 12px;
        gap: 10px
    }

    .pb-back {
        width: 100%
    }

    .pb-editor-actions {
        margin-left: auto
    }

    .pb-editor-tabs {
        padding: 0 14px
    }

    .pb-field-grid {
        grid-template-columns:1fr
    }

    .pb-table-foot {
        padding: 12px
    }

    .pb-row-desc {
        max-width: 220px
    }
}

/* Refinements aligned with CRM contacts controls and typography */
.pb-shell, .pb-editor {
    font-size: 14px;
    line-height: 1.45
}

.pb-shell button, .pb-editor button, .pb-shell input, .pb-editor input, .pb-editor textarea, .pb-shell select, .pb-editor select {
    font: inherit
}

.pb-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--crm-text-muted, #667085)
}

.pb-search-icon svg {
    width: 14px;
    height: 14px
}

.pb-select .custom-select__icon, .pb-editor .custom-select__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.pb-select .custom-select__icon svg, .pb-editor .custom-select__icon svg {
    width: 14px;
    height: 14px
}

.pb-shell input[type=checkbox], .pb-editor input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1px solid var(--crm-border, #cbd1d9);
    border-radius: 4px;
    background: var(--crm-white, #fff);
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    cursor: pointer;
    margin: 0
}

.pb-shell input[type=checkbox]::before, .pb-editor input[type=checkbox]::before {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform .08s ease-in-out
}

.pb-shell input[type=checkbox]:checked, .pb-editor input[type=checkbox]:checked {
    background: var(--crm-primary, #2563eb);
    border-color: var(--crm-primary, #2563eb)
}

.pb-shell input[type=checkbox]:checked::before, .pb-editor input[type=checkbox]:checked::before {
    transform: rotate(-45deg) scale(1)
}

.pb-table {
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%
}

.pb-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-text-muted, #667085);
    background: var(--crm-bg-subtle, #f8f9fb)
}

.pb-table td, .pb-table th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--crm-border, #e4e7ec)
}

.pb-table tbody tr:hover {
    background: var(--crm-bg-hover, #f8fafc)
}

.pb-row-menu {
    z-index: 30;
    min-width: 160px
}

.pb-row-menu button, .pb-row-menu a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer
}

.pb-row-menu button:hover, .pb-row-menu a:hover {
    background: var(--crm-bg-subtle, #f8f9fb)
}

.pb-format-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    border: 1px solid var(--crm-border, #e4e7ec);
    border-radius: 8px;
    background: var(--crm-white, #fff);
    margin: 12px 0
}

.pb-format-toolbar > button {
    height: 32px;
    min-width: 32px;
    padding: 0 9px;
    border: 1px solid var(--crm-border, #e4e7ec);
    border-radius: 6px;
    background: var(--crm-white, #fff);
    cursor: pointer
}

.pb-format-toolbar > button:hover {
    background: var(--crm-bg-subtle, #f8f9fb)
}

.pb-format-toolbar .custom-select__trigger {
    min-height: 32px;
    padding: 4px 10px
}

.pb-video-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.pb-video-backdrop[hidden] {
    display: none
}

.pb-video-backdrop .pb-modal {
    width: min(520px, 100%);
    background: var(--crm-white, #fff);
    border-radius: 12px;
    box-shadow: 0 20px 60px #10182833
}

.pb-video-backdrop .pb-modal header, .pb-video-backdrop .pb-modal footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--crm-border, #e4e7ec)
}

.pb-video-backdrop .pb-modal footer {
    border-bottom: 0;
    border-top: 1px solid var(--crm-border, #e4e7ec);
    justify-content: flex-end;
    gap: 8px
}

.pb-video-backdrop .pb-modal-body {
    padding: 20px
}

.pb-video-backdrop .pb-modal h2 {
    font-size: 16px;
    margin: 0
}

.pb-video-backdrop .pb-field-label input {
    display: block;
    width: 100%;
    margin-top: 6px
}

.pb-folder-row td {
    background: var(--crm-bg-subtle, #f8f9fb);
    font-weight: 600
}

/*......................*/
.owner-selectbox {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 4px;
}

.owner-selectbox .ps-section__title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.owner-selectbox .ps-trigger {
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    border: none !important;
    padding: 0 4px;
    height: auto;
    outline: none !important;
    box-shadow: none !important;
}

.ps-panel {
    min-width: 300px;
}


/* ==========================================================================
   PLAYBOOKS LIST + ANALYZE  (playbooks.php)  -  pbl-* classes
   Reuses: base.css tokens/buttons/forms, modal.css, dropdown.css, table.css
   (.crm-table), companies.css (.companies-tabs), property-select.css
   ========================================================================== */
.pbl-page [hidden], .pbl-modal [hidden], .pbl-preview [hidden] {
    display: none !important;
}

.pbl-page .pb-page-head {
    margin-bottom: 8px;
}

.pbl-tabs {
    margin-bottom: 20px;
}

.pbl-tabs .companies-tab {
    padding: 10px 0;
    color: var(--text-muted);
}

.pbl-tabs .companies-tab.is-active {
    color: var(--text);
}

.pbl-tabs .companies-tab.is-active::after {
    background: var(--text);
}

.pbl-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: var(--brand-ink);
    cursor: pointer;
}

.pbl-link:hover {
    text-decoration: underline;
}

.pbl-link--strong {
    font-weight: 600;
}

/* toolbar + inline filters ("Owner: Any v") */
.pbl-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-bottom: 16px;
}

.pbl-toolbar--analyze {
    margin: 28px 0 14px;
}

.pbl-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
    max-width: 100%;
}

.pbl-search input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm, 8px);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

.pbl-search input:focus {
    border-color: var(--brand);
}

.pbl-search input::-webkit-search-cancel-button {
    display: none;
}

.pbl-search .icon {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.pbl-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-bottom: 20px;
}

.pbl-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.pbl-filter__label {
    white-space: nowrap;
}

.pbl-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    margin: -4px 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pbl-filter__btn:hover, .pbl-filter__btn[aria-expanded="true"] {
    background: var(--surface-hover);
}

.pbl-filter__btn:focus-visible {
    box-shadow: var(--focus-ring);
    outline: 0;
}

.pbl-check {
    margin-left: 4px;
    color: var(--text);
}

/* property-select panel used for owner / team pickers */
.ps-panel.pbl-ps .ps-item {
    padding-left: 16px;
}

.ps-panel.pbl-ps .ps-gh {
    padding-left: 16px;
}

.ps-panel.pbl-ps .ps-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pbl-ps-foot {
    flex: 0 0 auto;
    display: block;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--brand-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.pbl-ps-foot::after {
    content: " \2197";
}

.pbl-ps-foot:hover {
    background: var(--surface-hover);
}

/* bulk bar */
.pbl-bulk {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    min-height: 40px;
    margin: -4px 0 8px;
    padding: 0 4px;
    font-size: 14px;
}

.pbl-bulk__count {
    color: var(--text-muted);
}

.pbl-bulk__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border: 0;
    background: none;
    color: var(--brand-ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.pbl-bulk__btn:hover {
    background: var(--surface-hover);
}

.pbl-bulk__btn--muted {
    color: var(--text-muted);
    font-weight: 500;
}

/* folder breadcrumb */
.pbl-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-muted);
}

/* tables */
.pbl-table-wrap {
    min-width: 0;
    overflow-x: auto;
}

.pbl-table-wrap.is-empty .pbl-table tbody {
    display: none;
}

.pbl-table {
    min-width: 860px;
}

.pbl-table th {
    padding: 14px 16px;
}

.pbl-table td {
    padding: 14px 16px;
}

.pbl-table tbody tr:first-child td {
    border-top: 0;
}

.pbl-table tbody tr:hover {
    background: var(--surface-hover);
}

.pbl-table tbody tr.is-selected {
    background: var(--brand-soft);
}

.pbl-col-name {
    min-width: 260px;
}

.pbl-col-actions {
    width: 190px;
    white-space: nowrap;
}

.pbl-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.pbl-sort .icon {
    color: var(--text-subtle);
}

.pbl-sort.is-sorted {
    color: var(--text);
    font-weight: 600;
}

.pbl-sort.is-sorted .icon {
    display: none;
}

.pbl-sort__dir {
    font-size: 14px;
    line-height: 1;
}

.pbl-sort:focus-visible {
    box-shadow: var(--focus-ring);
    outline: 0;
    border-radius: 4px;
}

.pbl-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--brand-ink);
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

a.pbl-name:hover, button.pbl-name:hover {
    text-decoration: underline;
}

.pbl-name--plain {
    color: var(--text);
    cursor: default;
}

.pbl-folder-ico {
    width: 18px;
    height: 18px;
    flex: none;
}

.pbl-state {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-muted);
}

.pbl-state__dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--text-subtle);
}

.pbl-state__dot--published {
    background: var(--success);
}

.pbl-state__dot--changes {
    background: var(--warning);
}

.pbl-badge-del {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 11.5px;
    font-weight: 600;
}

/* hover actions: Preview + Actions */
.pbl-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--fast, .15s) ease;
}

tr:hover .pbl-row-actions, tr:focus-within .pbl-row-actions, .pbl-row-actions:has([aria-expanded="true"]) {
    opacity: 1;
}

@media (hover: none) {
    .pbl-row-actions {
        opacity: 1;
    }
}

.pbl-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.pbl-chip:hover, .pbl-chip[aria-expanded="true"] {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.pbl-chip:focus-visible {
    box-shadow: var(--focus-ring);
    outline: 0;
}

.pbl-actions-menu {
    min-width: 190px;
}

.dropdown__item.is-active {
    background: var(--surface-hover);
    font-weight: 600;
}

.dropdown__item.pbl-danger {
    color: var(--danger);
}

.pbl-menu-scroll {
    max-height: 330px;
    overflow-y: auto;
}

.pbl-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 48px 16px;
    text-align: center;
    color: var(--text-muted);
}

.pbl-empty h3 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 16px;
}

.pbl-empty p {
    margin: 0 0 8px;
    font-size: 14px;
}

/* pagination */
.lp-pager.pbl-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px 24px;
    margin-top: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.pbl-pager__ctrl {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.lp-pg.pbl-pager__btn:disabled {
    color: var(--text-subtle);
    cursor: default;
}
.lp-pg.pbl-pager__btn, .lp-pg.pbl-pager__nums {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.lp-pg.pbl-pager__btn:hover:not(:disabled), .lp-pg.pbl-pager__btn[aria-expanded="true"] {
    background: var(--surface-hover);
}
/*.pbl-pager__btn, .pbl-pager__num { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }*/
.pbl-pager__nums.is-active {
    border-color: var(--text-muted);
    font-weight: 700;
}

.pbl-pager__nums {
    display: inline-flex;
    gap: 6px;
}

.pbl-pager__gap {
    align-self: center;
    padding: 0 2px;
}

/* analyze cards */
.pbl-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pbl-kpi-grid-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.pbl-card {
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.pbl-card--chart {
    margin-top: 20px;
}

.pbl-card--table {
    padding: 8px 8px 12px;
}

.pbl-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pbl-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.pbl-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    padding-bottom: 12px;
    text-align: center;
}

.pbl-stats-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.pbl-stat {
    display: grid;
    gap: 8px;
    align-content: start;
}

.pbl-stat__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pbl-stat__value {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
}

/* info tooltip */
.pbl-tip {
    position: relative;
    display: inline-flex;
    color: var(--text-muted);
    cursor: help;
    border-radius: 50%;
}

.pbl-tip:focus-visible {
    box-shadow: var(--focus-ring);
    outline: 0;
}

.pbl-tip__text {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 10px);
    width: 260px;
    padding: 12px 14px;
    transform: translateX(-24px);
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--bg);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--fast, .15s) ease;
}

.pbl-tip:hover .pbl-tip__text, .pbl-tip:focus .pbl-tip__text {
    opacity: 1;
    visibility: visible;
}

/* usage chart */
.pbl-chart-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 18px 0 14px;
}

.pbl-legend {
    display: flex;
    gap: 20px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    color: var(--text-muted);
}

.pbl-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pbl-dot {
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: var(--surface);
    box-sizing: border-box;
}

.pbl-dot--views {
    color: var(--brand);
}

.pbl-dot--logs {
    color: var(--success);
}

.pbl-chart {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.pbl-chart svg {
    display: block;
    max-width: 100%;
    overflow: visible;
}

.pbl-grid {
    stroke: var(--border-strong);
    stroke-dasharray: 3 3;
}

.pbl-grid--base {
    stroke: var(--text-muted);
    stroke-dasharray: none;
}

.pbl-axis {
    fill: var(--text-muted);
    font-size: 11px;
}

.pbl-axis-title {
    fill: var(--text);
    font-size: 11.5px;
    font-weight: 700;
}

.pbl-axis-title--views {
    fill: var(--brand-ink);
}

.pbl-axis-title--logs {
    fill: var(--success);
}

.pbl-line {
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.pbl-line--views {
    stroke: var(--brand);
}

.pbl-line--logs {
    stroke: var(--success);
}

.pbl-pt {
    fill: var(--surface);
    stroke-width: 2;
}

.pbl-pt--views {
    stroke: var(--brand);
}

.pbl-pt--logs {
    stroke: var(--success);
}

.pbl-pt.is-hot {
    r: 6;
    stroke-width: 3;
}

.pbl-cursor {
    stroke: var(--border-strong);
    stroke-width: 1;
}

.pbl-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 150px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: 12.5px;
    pointer-events: none;
}

.pbl-tooltip__head {
    padding: 8px 12px;
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
}

.pbl-tooltip__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.pbl-tooltip__row span {
    flex: 1;
    color: var(--text-muted);
}

.pbl-tooltip__row:last-child {
    padding-bottom: 10px;
}

/* modals */
.pbl-modal {
    max-width: 460px;
}

.pbl-modal--wide {
    max-width: 640px;
}

.pbl-modal .modal__body {
    display: block;
}

.pbl-modal__title--lg {
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 500;
    padding-right: 12px;
}

.pbl-modal__text {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pbl-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pbl-modal .field {
    margin-bottom: 4px;
}

.pbl-modal select.input {
    padding-right: 30px;
}

.pbl-btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.pbl-btn-danger:hover {
    filter: brightness(.92);
    background: var(--danger);
    border-color: var(--danger);
}

.pbl-error {
    margin: 10px 0 0;
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 500;
}

.pbl-range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pbl-share-teams {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.pbl-check-row {
    color: var(--text);
}

.pbl-users-wrap {
    max-height: 340px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pbl-table--users {
    min-width: 0;
}

.pbl-table--users th {
    position: sticky;
    top: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
}

.pbl-sub {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.pbl-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.pbl-pill.is-on {
    background: var(--success-bg);
    color: var(--success);
}

/* preview drawer */
.pbl-preview .modal__body {
    padding-top: 24px;
}

.pbl-preview__name {
    margin: 0 0 26px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.pbl-preview__empty {
    color: var(--text-muted);
    font-size: 14px;
}

.pbl-q {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.pbl-q__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
}

.pbl-q__icon svg {
    width: 22px;
    height: 22px;
}

.pbl-q__body {
    flex: 1;
    min-width: 0;
}

.pbl-q__title {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.pbl-q__req {
    color: var(--text-muted);
    font-weight: 400;
}

.pbl-q__desc {
    margin: 6px 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.pbl-q__input {
    background: var(--surface-2);
}

.pbl-q__err {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 600;
}

.pbl-q.is-valid .pbl-q__err {
    display: none;
}

.lp-tablewrap.pbl-table-wrap {
    min-height: auto !important;
}

.pbl-user-data-page {
    min-height: auto !important;
}

input:disabled {
    cursor: not-allowed
}

.svg-empty {
    width: 140px;
    height: auto;
}

.card-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.pbl-drafting-table .pbl-table {
    min-width: 300px;
}

.pbl-drafting-table .lp-th, .pbl-drafting-table .pbl-col-name {
    min-width: 80px;
}

.pbl-table-user-data .pbl-col-name .pbl-sub {
    display: none;
}

.pbl-panel .lp-th--check, .pbl-panel .lp-td--check {
    position: unset !important
}

.company-record-breadcrumb {
    flex-wrap: wrap;
}

.company-record-breadcrumb a, .company-record-breadcrumb span {
    min-width: fit-content;
}

@media (max-width: 900px) {
    .pbl-kpi-grid {
        grid-template-columns: 1fr;
    }

    .pbl-stat__label {
        font-size: 10.5px;
    }

    .pbl-stat__value {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    #pblFolderModal.modal-backdrop {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .pbl-stats {
        gap: 6px;
    }

    .pbl-stats-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .pbl-stat__label {
        font-size: 9.5px;
    }

    .pbl-stat__value, .pbl-stats-grid-4 .pbl-stat__value {
        font-size: 17px !important;
    }

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

    .pbl-search {
        width: 100%;
    }

    .pbl-card {
        padding: 18px 16px;
    }

    .pbl-menu-scroll, .ps-panel.pbl-ps {
        left: 0 !important;
        right: 0 !important;
        min-width: 290px !important;
        width: 290px !important;
        max-width: 290px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.pbl-tabs, .pbl-panel {
    padding: 0 24px;
}

@media (max-width: 899px) {
    .pbl-tabs, .pbl-panel {
        padding: 0 16px;
    }
}

/* long date values (e.g. "Oct 10, 2026 12:13 AM") in the 4-up usage card */
.pbl-stats-grid-4 .pbl-stat__value {
    font-size: 20px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}


/* ---- Move to folder dialog ---- */
.pbl-move { max-width: 480px; }
.pbl-move__search { width: 100%; margin-bottom: 14px; }
.pbl-move__msg { min-height: 0; margin: 0 0 8px; color: var(--text-muted); font-size: 14px; }
.pbl-move__msg strong { color: var(--text); font-weight: 600; }
.pbl-move__list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.pbl-move__it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-left: 3px solid transparent; border-radius: 4px; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.pbl-move__it:hover { background: var(--surface-hover); }
.pbl-move__it.is-on { border-left-color: var(--text); background: var(--surface-hover); font-weight: 600; }
.pbl-move__it:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.pbl-move__none { margin: 8px 12px; color: var(--text-muted); font-size: 14px; }
.pbl-move__new { margin: 8px 0 0; padding: 8px 4px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.pbl-move__new:hover { text-decoration: underline; }
.pbl-move__create { display: grid; gap: 10px; margin: 8px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--surface); box-shadow: var(--shadow-sm); }
.pbl-move__create h3 { margin: 0; font-size: 14px; font-weight: 600; }
.pbl-move__create .pbl-modal__actions { margin-top: 4px; }
.pbl-table .check input:disabled + .check__box { opacity: .45; cursor: not-allowed; }

/* QA (gap review): Playbook Users has 5 columns (adds Last Logged At) and must
   fit beside Playbook Usage without cutting off the last column. Headers and
   dates wrap; the two cards stack when there isn't room for both. */
.pbl-drafting-table .lp-th,
.pbl-drafting-table .lp-table td {
    min-width: 0;
    padding: 12px 10px;
    white-space: normal;
}
.pbl-drafting-table .pbl-sort {
    white-space: normal;
    text-align: left;
}
.pbl-drafting-table .lp-th:first-child,
.pbl-drafting-table .lp-table td:first-child {
    padding-left: 16px;
}
@media (max-width: 1400px) {
    .pbl-drafting-page .pbl-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
