.tpm11amrpbl-settings .tpm11amrpbl-grid,
.tpm11amrpbl-diagnostics .tpm11amrpbl-card {
    margin-top: 16px;
}

.tpm11amrpbl-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.tpm11amrpbl-column {
    flex: 1 1 360px;
}

.tpm11amrpbl-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tpm11amrpbl-status {
    font-weight: 600;
    margin-bottom: 12px;
}

.tpm11amrpbl-status--connected {
    color: #1a7f37;
}

.tpm11amrpbl-status--disconnected {
    color: #b42318;
}

.tpm11amrpbl-preview {
    border: 1px dashed #c7c7c7;
    border-radius: 12px;
    width: 90%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-color: #f9f9fb;
    background-image: var(--tpm11amrpbl-preview-bg, none);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 16px;
}

.tpm11amrpbl-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(249, 249, 251, 0.78);
    border-radius: 12px;
}

.tpm11amrpbl-preview__button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tpm11amrpbl-color, #0a7cff);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    z-index: 1;
}

.tpm11amrpbl-preview__icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tpm11amrpbl-preview[data-position="bottom-right"] .tpm11amrpbl-preview__button {
    right: 16px;
    bottom: 16px;
}

.tpm11amrpbl-preview[data-position="bottom-left"] .tpm11amrpbl-preview__button {
    left: 16px;
    bottom: 16px;
}

.tpm11amrpbl-preview[data-position="top-right"] .tpm11amrpbl-preview__button {
    right: 16px;
    top: 16px;
}

.tpm11amrpbl-preview[data-position="top-left"] .tpm11amrpbl-preview__button {
    left: 16px;
    top: 16px;
}

.tpm11amrpbl-error-text {
    color: #b42318;
    margin-top: 6px;
}

.tpm11amrpbl-specific-page-settings {
    margin-top: 12px;
    padding-left: 24px;
}

.tpm11amrpbl-specific-page-settings__controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tpm11amrpbl-specific-page-settings__controls .regular-text {
    min-width: min(420px, 100%);
}

.tpm11amrpbl-specific-page-settings__status {
    min-height: 20px;
    margin: 8px 0 0;
    font-weight: 600;
}

.tpm11amrpbl-specific-page-settings__status.is-success {
    color: #1a7f37;
}

.tpm11amrpbl-specific-page-settings__status.is-error {
    color: #b42318;
}

.tpm11amrpbl-specific-page-settings__status.is-warning {
    color: #8a6700;
}

.tpm11amrpbl-specific-page-settings__status.is-loading {
    color: #0a7cff;
}
