.txd-filter-panel {
    display: grid;
    gap: 14px;
    margin: 22px 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 218, 120, .16);
    background: rgba(255,255,255,.045);
}

.txd-filter-search {
    display: block;
    width: 100%;
}

.txd-filter-search label,
.txd-filter-row label {
    display: block;
    margin-bottom: 8px;
    color: #e8c66a;
    font-weight: 900;
}

.txd-filter-search input {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    min-height: 44px;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 218, 120, .16);
    background: rgba(255,255,255,.045);
}

.txd-filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.txd-filter-row > div,
.txd-scenario-profile-dd > div {
    min-width: 0;
}

.txd-scenario-profile-dd {
    display: contents;
}

.txd-filter-row select,
.txd-filter-row input {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    min-height: 44px;

    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 218, 120, .16);
    background: rgba(255,255,255,.045);
}

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

@media (max-width: 900px) {
    .txd-filter-row {
        grid-template-columns: 1fr;
    }

    .txd-scenario-profile-dd {
        display: grid;
        gap: 14px;
    }
}
.txd-label-with-help {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.txd-profile-info-trigger {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 218, 120, .45);
    background: rgba(255, 218, 120, .12);
    color: #e8c66a;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.txd-profile-info-trigger:hover {
    background: rgba(255, 218, 120, .22);
}

.txd-profile-info-modal[hidden] {
    display: none !important;
}

.txd-profile-info-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.txd-profile-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
}

.txd-profile-info-dialog {
    position: relative;
    width: min(980px, 96vw);
    max-height: 86vh;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 218, 120, .22);
    background: #151515;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .55);
}

.txd-profile-info-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 218, 120, .16);
    background: rgba(255, 218, 120, .06);
}

.txd-profile-info-header h3 {
    margin: 0 0 4px;
    color: #e8c66a;
}

.txd-profile-info-header p {
    margin: 0;
    opacity: .82;
}

.txd-profile-info-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.txd-profile-info-body {
    max-height: calc(86vh - 96px);
    overflow: auto;
    padding: 18px 20px 22px;
}

.txd-profile-code-help,
.txd-profile-info-card {
    border: 1px solid rgba(255, 218, 120, .14);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, .045);
    margin-bottom: 14px;
}

.txd-profile-code-help h4,
.txd-profile-info-card h4,
.txd-profile-section-title {
    margin: 0 0 10px;
    color: #e8c66a;
}

.txd-profile-info-card.is-selected {
    border-color: rgba(255, 218, 120, .48);
    background: rgba(255, 218, 120, .08);
}

.txd-profile-info-card p,
.txd-profile-code-help p,
.txd-profile-code-help li,
.txd-profile-info-empty,
.txd-profile-info-muted {
    color: rgba(255, 255, 255, .86);
}

.txd-profile-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 218, 120, .16);
    color: #e8c66a;
    font-size: 12px;
    vertical-align: middle;
}

.txd-profile-factor-table {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.txd-profile-factor-row {
    display: grid;
    grid-template-columns: 90px 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
}

.txd-profile-factor-head {
    color: #e8c66a;
    font-weight: 800;
    background: rgba(255, 218, 120, .08);
}

.txd-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .txd-profile-factor-row {
        grid-template-columns: 1fr;
    }
}

.txd-profile-info-dialog-xl {
    width: min(1180px, 96vw);
}

.txd-profile-info-iframe-wrap {
    height: calc(86vh - 92px);
    background: #101010;
}

.txd-profile-info-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #101010;
}
