/* QA run controls */
.qa-release-tabs {
    align-items: center;
    background: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    display: inline-flex;
    gap: 3px;
    padding: 3px;
}

.qa-release-tab {
    align-items: center;
    border-radius: 6px;
    color: inherit;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    padding: 0 16px;
    text-decoration: none;
}

.qa-release-tab:hover {
    text-decoration: none;
}

.qa-release-tab.is-active {
    background: rgba(52, 144, 220, 0.18);
    color: #7cc4ff;
}

.ops-shell[data-theme="light"] .qa-release-tabs {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(120, 136, 158, 0.18);
    box-shadow: 0 8px 24px rgba(64, 83, 107, 0.08);
}

.ops-shell[data-theme="light"] .qa-release-tab.is-active {
    background: rgba(52, 144, 220, 0.12);
    color: #0d61ba;
}

.qa-next-build-card .card-body {
    padding: 14px 16px;
}

.qa-next-build-main {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.qa-next-build-summary {
    min-width: 0;
}

.qa-next-build-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.qa-next-build-meta {
    font-size: 0.82rem;
    line-height: 1.35;
}

.qa-next-build-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.qa-next-build-badges .badge {
    margin: 0;
}

.qa-next-build-convert-form {
    margin-top: 12px;
}

#next-build-gitlab-issues-modal .modal-footer,
#next-build-convert-modal .modal-footer {
    display: flex;
}

.qa-next-build-convert-row {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
}

.qa-next-build-field label {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

@media (max-width: 767.98px) {
    .qa-next-build-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .qa-next-build-badges {
        justify-content: flex-start;
    }

    .qa-next-build-convert-row {
        grid-template-columns: 1fr;
    }
}

.qa-filter-picker {
    position: relative;
}

.qa-filter-picker-shell {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: #f3f6fb;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 96px;
    padding: 16px 18px;
    text-align: left;
    transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
    width: 100%;
}

.qa-filter-picker-shell:focus-within,
.qa-filter-picker.is-open .qa-filter-picker-shell {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(111, 168, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.16);
    outline: 0;
}

.qa-filter-picker-shell.is-disabled {
    cursor: default;
    opacity: 0.92;
}

.qa-filter-picker-shell-main {
    flex: 1 1 auto;
    min-width: 0;
}

.qa-filter-picker-summary {
    color: #f3f6fb;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-filter-picker-help {
    color: rgba(243, 246, 251, 0.72);
    font-size: 0.78rem;
    line-height: 1.35;
}

.qa-filter-picker-selected {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-width: 0;
}

.qa-filter-picker-placeholder {
    color: rgba(243, 246, 251, 0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-filter-picker-caret {
    border-bottom: 2px solid rgba(243, 246, 251, 0.72);
    border-right: 2px solid rgba(243, 246, 251, 0.72);
    flex: 0 0 auto;
    height: 10px;
    margin-right: 4px;
    transform: rotate(45deg);
    transition: transform 0.14s ease;
    width: 10px;
}

.qa-filter-picker.is-open .qa-filter-picker-caret {
    margin-top: 4px;
    transform: rotate(225deg);
}

.qa-filter-picker-chip {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: inline-flex;
    font-size: 0.82rem;
    gap: 6px;
    line-height: 1.2;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 8px 4px 10px;
}

.qa-filter-picker-chip-neutral {
    background: rgba(111, 168, 255, 0.16);
    border-color: rgba(111, 168, 255, 0.34);
    color: var(--ops-shell-text-strong, #edf3fb);
}

.qa-filter-picker-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-filter-picker-chip-remove {
    align-items: center;
    background: rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9rem;
    height: 18px;
    justify-content: center;
    line-height: 1;
    margin-left: 2px;
    transition: background 0.12s ease, transform 0.12s ease;
    user-select: none;
    width: 18px;
}

.qa-filter-picker-chip-remove:hover,
.qa-filter-picker-chip-remove:focus {
    background: rgba(15, 23, 42, 0.24);
    outline: 0;
    transform: scale(1.03);
}

.qa-filter-picker-menu {
    background: #6a6f79;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    display: none;
    left: 0;
    max-width: min(320px, calc(100vw - 64px));
    overflow: hidden;
    overflow-x: hidden;
    position: absolute;
    top: calc(100% + 8px);
    width: min(320px, calc(100vw - 64px));
    z-index: 20;
}

.qa-filter-picker.is-open .qa-filter-picker-menu {
    display: block;
}

.qa-filter-picker-menu.is-open {
    display: block;
}

.qa-filter-picker-menu-header {
    color: #f3f6fb;
    font-weight: 600;
    padding: 14px 16px 10px;
}

.qa-filter-picker-search {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 16px 12px;
}

.qa-filter-picker-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 168, 255, 0.55);
    border-radius: 10px;
    color: #f3f6fb;
    outline: 0;
    padding: 9px 12px;
    width: 100%;
}

.qa-filter-picker-search-input::placeholder {
    color: rgba(243, 246, 251, 0.55);
}

.qa-filter-picker-options {
    align-items: stretch;
    display: block;
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
}

.qa-filter-picker-option {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #f3f6fb;
    cursor: pointer;
    display: block;
    margin: 0 0 8px;
    min-width: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.qa-filter-picker-option:last-child {
    margin-bottom: 0;
}

.qa-filter-picker-option:hover,
.qa-filter-picker-option:focus {
    outline: 0;
}

.qa-filter-picker-option-tag {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    max-width: 100%;
    min-height: 28px;
    min-width: 0;
    overflow: hidden;
    padding: 4px 10px;
    transition: filter 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
    width: 100%;
}

.qa-filter-picker-option:hover .qa-filter-picker-option-tag,
.qa-filter-picker-option:focus .qa-filter-picker-option-tag {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.18);
    filter: saturate(1.03);
    transform: translateY(-1px);
}

.qa-filter-picker-option-tag-neutral {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--ops-shell-text-strong, #edf3fb);
}

.qa-filter-picker-option-tag-neutral.is-selected {
    background: rgba(111, 168, 255, 0.2);
    border-color: rgba(111, 168, 255, 0.44);
}

.qa-filter-picker-option-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.qa-filter-picker-empty {
    color: rgba(243, 246, 251, 0.62);
    font-size: 0.82rem;
    padding: 2px 4px;
}

.license-static-picker-menu .qa-filter-picker-options {
    max-height: 280px;
}

.license-static-picker-menu {
    position: fixed;
}

.qa-assignee-list-inline {
    flex-wrap: nowrap;
    margin-top: 0;
    overflow-x: auto;
}

.qa-summary-inline-card {
    align-items: center;
    display: flex;
    gap: 12px;
}

.qa-summary-inline-label {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.qa-summary-inline-value {
    flex: 1 1 auto;
    min-width: 0;
}

.qa-assignee-pill {
    align-items: center;
    background: rgba(111, 168, 255, 0.12);
    border: 1px solid rgba(111, 168, 255, 0.28);
    border-radius: 999px;
    color: #dce9fa;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.2rem 0.6rem;
}

.ops-data-table tr[data-group-row] > td,
.table tr[data-group-row] > td {
    background: #2d3339 !important;
}

.ops-data-table tr[data-case-row] > td,
.table tr[data-case-row] > td {
    background: #1b1e22 !important;
}

.ops-data-table tr[data-case-row].qa-case-selected > td,
.table tr[data-case-row].qa-case-selected > td {
    background: rgba(52, 144, 220, 0.18) !important;
}

.qa-checks-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.qa-check-option {
    align-items: flex-start;
    background: #171a1c;
    border: 1px solid var(--ab-line, rgba(148, 163, 184, 0.24));
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem;
}

.qa-check-option input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.qa-check-option-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qa-check-option-label {
    color: var(--ab-text, #edf3fb);
    font-weight: 600;
    line-height: 1.25;
}

.qa-check-option-description {
    color: var(--ab-muted, #97a4b5);
    font-size: 0.86rem;
    line-height: 1.35;
    margin-top: 0.2rem;
}

.qa-checks-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.qa-checks-summary-pill {
    background: rgba(52, 144, 220, 0.12);
    border: 1px solid rgba(52, 144, 220, 0.24);
    border-radius: 999px;
    color: var(--ab-text, #edf3fb);
    display: inline-flex;
    line-height: 1.2;
    padding: 0.25rem 0.55rem;
}

.qa-check-custom-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.qa-check-custom-pill {
    align-items: center;
    background: rgba(111, 168, 255, 0.16);
    border: 1px solid rgba(111, 168, 255, 0.34);
    border-radius: 999px;
    color: var(--ab-text, #edf3fb);
    display: inline-flex;
    gap: 0.35rem;
    line-height: 1.2;
    max-width: 100%;
    padding: 0.3rem 0.45rem 0.3rem 0.65rem;
}

.qa-check-custom-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-check-custom-remove {
    align-items: center;
    background: rgba(15, 23, 42, 0.18);
    border: 0;
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    height: 1.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 1.25rem;
}

.qa-check-custom-remove:hover,
.qa-check-custom-remove:focus {
    background: rgba(15, 23, 42, 0.28);
    outline: 0;
}

.qa-wizard-drawer {
    background: #1b1e22;
    border-left: 1px solid var(--ab-line, rgba(148, 163, 184, 0.24));
    box-shadow: -10px 0 32px rgba(0, 0, 0, 0.15);
    color: var(--ab-text, #edf3fb);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    width: min(var(--qa-wizard-drawer-width, 620px), 100vw);
    z-index: 1080;
}

.qa-wizard-drawer.is-open {
    transform: translateX(0);
}

.qa-wizard-drawer-header,
.qa-wizard-drawer-footer {
    border-bottom: 1px solid var(--ab-line, rgba(148, 163, 184, 0.24));
    padding: 12px 16px;
}

.qa-wizard-drawer-header {
    padding-right: 110px;
    position: relative;
}

.qa-wizard-drawer-footer {
    border-bottom: 0;
    border-top: 1px solid var(--ab-line, rgba(148, 163, 184, 0.24));
}

.qa-wizard-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
}

.qa-wizard-drawer .text-muted {
    color: var(--ab-muted, #94a3b8) !important;
}

.qa-wizard-drawer-resize-handle {
    background: transparent;
    border: 0;
    bottom: 0;
    cursor: ew-resize;
    left: -0.35rem;
    padding: 0;
    position: absolute;
    top: 0;
    width: 0.7rem;
    z-index: 2;
}

.qa-wizard-drawer-resize-handle::before {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    bottom: 0.75rem;
    content: "";
    left: 0.25rem;
    opacity: 1;
    position: absolute;
    top: 0.75rem;
    transition: opacity 140ms ease;
    width: 0.24rem;
}

.qa-wizard-drawer-resize-handle::after {
    background: rgba(148, 163, 184, 0.72);
    border-radius: 999px;
    content: "";
    height: 2.1rem;
    left: 0.37rem;
    opacity: 0.9;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 140ms ease;
    width: 0.22rem;
}

.qa-wizard-drawer-resize-handle:hover::before,
.qa-wizard-drawer-resize-handle:focus-visible::before,
body.qa-wizard-drawer-resizing .qa-wizard-drawer-resize-handle::before {
    opacity: 0.95;
}

.qa-wizard-drawer-resize-handle:hover::after,
.qa-wizard-drawer-resize-handle:focus-visible::after,
body.qa-wizard-drawer-resizing .qa-wizard-drawer-resize-handle::after {
    opacity: 1;
}

body.qa-wizard-drawer-resizing {
    cursor: ew-resize;
    user-select: none;
}

.qa-wizard-close-btn {
    position: absolute;
    right: 16px;
    top: 12px;
}

.qa-wizard-meta-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    line-height: 1.25;
}

.qa-wizard-meta-item {
    min-width: 0;
}

.qa-wizard-description,
.qa-wizard-comment,
.qa-gitlab-tab-selector {
    background: #171a1c;
    border-color: var(--ab-line, rgba(148, 163, 184, 0.24)) !important;
}

.qa-comment-author-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.qa-agent-comment-label {
    align-items: center;
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.36);
    border-radius: 999px;
    color: #bfdbfe;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 100%;
    padding: 0.18rem 0.5rem;
}

.qa-modal-backdrop {
    background: rgba(0, 0, 0, 0.55);
    inset: 0;
    position: fixed;
    z-index: 1090;
}

.qa-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1100;
}

.qa-modal.is-open {
    display: flex;
}

.qa-modal-card {
    background: #1b1e22;
    border: 1px solid var(--ab-line, rgba(148, 163, 184, 0.24));
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    width: min(520px, 100%);
}

.qa-modal-header,
.qa-modal-footer {
    border-bottom: 1px solid var(--ab-line, rgba(148, 163, 184, 0.24));
    padding: 16px;
}

.qa-modal-header {
    padding-right: 92px;
    position: relative;
}

.qa-modal-footer {
    border-bottom: 0;
    border-top: 1px solid var(--ab-line, rgba(148, 163, 184, 0.24));
    gap: 0.5rem;
    justify-content: flex-end;
}

.qa-modal-close-btn {
    position: absolute;
    right: 16px;
    top: 16px;
}

.qa-modal-body {
    overflow-y: auto;
    padding: 16px;
}

.ops-shell[data-theme="light"] .qa-wizard-backdrop,
.ops-shell[data-theme="light"] .qa-modal-backdrop {
    background: rgba(15, 23, 42, 0.24);
}

.ops-shell[data-theme="light"] .qa-wizard-drawer {
    background: linear-gradient(180deg, #f9fbfe 0%, #edf3f8 100%);
    border-left-color: rgba(120, 136, 158, 0.18);
    box-shadow: -18px 0 42px rgba(64, 83, 107, 0.18);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-wizard-drawer-header,
.ops-shell[data-theme="light"] .qa-wizard-drawer-footer {
    background: rgba(226, 234, 244, 0.8);
    border-color: rgba(120, 136, 158, 0.14);
}

.ops-shell[data-theme="light"] .qa-wizard-drawer .text-muted,
.ops-shell[data-theme="light"] .qa-wizard-drawer .small.text-muted {
    color: var(--ops-shell-muted, #4d5d70) !important;
}

.ops-shell[data-theme="light"] .qa-wizard-description,
.ops-shell[data-theme="light"] .qa-wizard-comment,
.ops-shell[data-theme="light"] .qa-gitlab-tab-selector {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(120, 136, 158, 0.18) !important;
    box-shadow: 0 8px 24px rgba(64, 83, 107, 0.08);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-agent-comment-label {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.ops-shell[data-theme="light"] .qa-gitlab-tab-selector .btn {
    border-right-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .qa-gitlab-tab-selector .btn.active {
    background: rgba(52, 144, 220, 0.12);
    color: #0d61ba;
}

.ops-shell[data-theme="light"] .qa-modal-card {
    background: linear-gradient(180deg, #f9fbfe 0%, #edf3f8 100%);
    border-color: rgba(120, 136, 158, 0.18);
    box-shadow: 0 18px 42px rgba(64, 83, 107, 0.18);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-modal-header,
.ops-shell[data-theme="light"] .qa-modal-footer {
    border-color: rgba(120, 136, 158, 0.14);
}

.ops-shell[data-theme="light"] .qa-check-option {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .qa-check-option-label,
.ops-shell[data-theme="light"] .qa-checks-summary-pill {
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-check-option-description {
    color: var(--ops-shell-muted, #4d5d70);
}

.ops-shell[data-theme="light"] .qa-check-custom-pill {
    background: rgba(52, 144, 220, 0.1);
    border-color: rgba(52, 144, 220, 0.2);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-check-custom-remove {
    background: rgba(77, 93, 112, 0.12);
}

.ops-shell[data-theme="light"] .qa-check-custom-remove:hover,
.ops-shell[data-theme="light"] .qa-check-custom-remove:focus {
    background: rgba(77, 93, 112, 0.2);
}

.ops-shell[data-theme="light"] .qa-assignee-pill {
    background: rgba(52, 144, 220, 0.08);
    border-color: rgba(52, 144, 220, 0.22);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-filter-picker-shell,
.qa-filter-picker-shell[data-picker-theme="light"] {
    background: var(--ops-shell-surface, #ffffff);
    border-color: var(--ops-shell-border, rgba(120, 136, 158, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-filter-picker-shell:focus-within,
.ops-shell[data-theme="light"] .qa-filter-picker.is-open .qa-filter-picker-shell,
.qa-filter-picker.is-open .qa-filter-picker-shell[data-picker-theme="light"],
.qa-filter-picker-shell[data-picker-theme="light"]:focus-within {
    background: var(--ops-shell-surface, #ffffff);
    border-color: rgba(52, 144, 220, 0.34);
    box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.12);
}

.ops-shell[data-theme="light"] .qa-filter-picker-shell.is-disabled,
.qa-filter-picker-shell.is-disabled[data-picker-theme="light"] {
    background: var(--ops-shell-surface-alt, #eef3f8);
    border-color: rgba(120, 136, 158, 0.2);
    color: var(--ops-shell-muted, #4d5d70);
    opacity: 1;
}

.ops-shell[data-theme="light"] .qa-filter-picker-summary,
.qa-filter-picker-summary[data-picker-theme="light"] {
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-filter-picker-help,
.ops-shell[data-theme="light"] .qa-filter-picker-placeholder,
.ops-shell[data-theme="light"] .qa-filter-picker-empty,
.qa-filter-picker-help[data-picker-theme="light"],
.qa-filter-picker-placeholder[data-picker-theme="light"],
.qa-filter-picker-empty[data-picker-theme="light"] {
    color: var(--ops-shell-muted, #4d5d70);
}

.ops-shell[data-theme="light"] .qa-filter-picker-caret,
.qa-filter-picker-caret[data-picker-theme="light"] {
    border-color: var(--ops-shell-muted, #4d5d70);
}

.ops-shell[data-theme="light"] .qa-filter-picker-menu,
.qa-filter-picker-menu[data-picker-theme="light"] {
    background: var(--ops-shell-surface, #ffffff);
    border-color: var(--ops-shell-border, rgba(120, 136, 158, 0.22));
    box-shadow: var(--ops-shell-dropdown-shadow, 0 18px 42px rgba(64, 83, 107, 0.14));
}

.ops-shell[data-theme="light"] .qa-filter-picker-menu-header,
.qa-filter-picker-menu-header[data-picker-theme="light"] {
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-filter-picker-search,
.qa-filter-picker-search[data-picker-theme="light"] {
    border-bottom-color: rgba(120, 136, 158, 0.16);
}

.ops-shell[data-theme="light"] .qa-filter-picker-search-input,
.qa-filter-picker-search-input[data-picker-theme="light"] {
    background: var(--ops-shell-surface, #ffffff);
    border-color: rgba(120, 136, 158, 0.28);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-filter-picker-search-input::placeholder,
.qa-filter-picker-search-input[data-picker-theme="light"]::placeholder {
    color: var(--ops-shell-muted, #4d5d70);
}

.ops-shell[data-theme="light"] .qa-filter-picker-option,
.qa-filter-picker-option[data-picker-theme="light"] {
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-filter-picker-option:hover .qa-filter-picker-option-tag,
.ops-shell[data-theme="light"] .qa-filter-picker-option:focus .qa-filter-picker-option-tag,
.qa-filter-picker-option[data-picker-theme="light"]:hover .qa-filter-picker-option-tag,
.qa-filter-picker-option[data-picker-theme="light"]:focus .qa-filter-picker-option-tag {
    box-shadow: inset 0 0 0 1px rgba(120, 136, 158, 0.18), 0 10px 24px rgba(64, 83, 107, 0.12);
}

.ops-shell[data-theme="light"] .qa-filter-picker-chip-neutral,
.qa-filter-picker-chip-neutral[data-picker-theme="light"] {
    background: rgba(52, 144, 220, 0.1);
    border-color: rgba(52, 144, 220, 0.2);
    box-shadow: inset 0 0 0 1px rgba(52, 144, 220, 0.06);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-filter-picker-option-tag-neutral,
.qa-filter-picker-option-tag-neutral[data-picker-theme="light"] {
    background: rgba(238, 243, 248, 0.9);
    border-color: rgba(120, 136, 158, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    color: var(--ops-shell-text-strong, #0f1822);
}

.ops-shell[data-theme="light"] .qa-filter-picker-option-tag-neutral.is-selected,
.qa-filter-picker-option-tag-neutral.is-selected[data-picker-theme="light"] {
    background: rgba(52, 144, 220, 0.14);
    border-color: rgba(52, 144, 220, 0.28);
}

.ops-shell[data-theme="light"] .qa-filter-picker-chip-remove,
.qa-filter-picker-chip-remove[data-picker-theme="light"] {
    background: rgba(77, 93, 112, 0.12);
}

.ops-shell[data-theme="light"] .qa-filter-picker-chip-remove:hover,
.ops-shell[data-theme="light"] .qa-filter-picker-chip-remove:focus,
.qa-filter-picker-chip-remove[data-picker-theme="light"]:hover,
.qa-filter-picker-chip-remove[data-picker-theme="light"]:focus {
    background: rgba(77, 93, 112, 0.2);
}

.release-ref-input-group .form-control {
    min-width: 0;
}

.release-ref-selected {
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 0.35rem;
    min-height: 1.15rem;
}

.release-ref-modal .modal-content {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
}

.release-ref-searchbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.release-ref-searchbar .form-control {
    min-width: 0;
}

.release-ref-context {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.release-ref-error {
    color: #b91c1c;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.release-ref-results {
    display: grid;
    gap: 0.65rem;
}

.release-ref-result {
    background: #ffffff;
    border: 1px solid #d7e0eb;
    border-radius: 0.65rem;
    color: #1f2937;
    display: block;
    padding: 0.8rem 0.9rem;
    text-align: left;
    width: 100%;
}

.release-ref-result:hover,
.release-ref-result:focus {
    border-color: #3490dc;
    box-shadow: 0 0 0 0.16rem rgba(52, 144, 220, 0.14);
    outline: none;
}

.release-ref-result-top {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.release-ref-result-title {
    font-weight: 800;
}

.release-ref-result-ref {
    color: #2563eb;
    flex: 0 0 auto;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
}

.release-ref-result-message,
.release-ref-result-meta {
    color: #64748b;
    display: block;
    font-size: 0.86rem;
    margin-top: 0.25rem;
}

.release-ref-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.release-ref-pill {
    background: #eef2f7;
    border: 1px solid #d7e0eb;
    border-radius: 999px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.22rem 0.5rem;
}

.release-ref-pill-branch {
    background: #e8f2ff;
    border-color: #bfdcff;
    color: #1d4ed8;
}

.release-ref-pill-tag {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.release-ref-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 0.65rem;
    color: #64748b;
    padding: 1rem;
    text-align: center;
}

.ops-shell[data-theme="dark"] .release-ref-selected,
.ops-shell[data-theme="dark"] .release-ref-context,
.ops-shell[data-theme="dark"] .release-ref-result-message,
.ops-shell[data-theme="dark"] .release-ref-result-meta,
.ops-shell[data-theme="dark"] .release-ref-empty {
    color: #b8c5d6;
}

.ops-shell[data-theme="dark"] .release-ref-modal .modal-content,
.ops-shell[data-theme="dark"] .release-ref-result {
    background: #111827;
    border-color: #334155;
    color: #e5eef9;
}

.ops-shell[data-theme="dark"] .release-ref-result:hover,
.ops-shell[data-theme="dark"] .release-ref-result:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.16rem rgba(96, 165, 250, 0.16);
}

.ops-shell[data-theme="dark"] .release-ref-result-ref {
    color: #93c5fd;
}

.ops-shell[data-theme="dark"] .release-ref-pill {
    background: #1f2937;
    border-color: #475569;
    color: #dbeafe;
}

.ops-shell[data-theme="dark"] .release-ref-pill-branch {
    background: #172554;
    border-color: #1d4ed8;
    color: #bfdbfe;
}

.ops-shell[data-theme="dark"] .release-ref-pill-tag {
    background: #052e16;
    border-color: #15803d;
    color: #bbf7d0;
}

.ops-data-table tbody tr[data-case-row].qa-run-case-stripe-odd:not(.qa-case-selected) > td,
.table tbody tr[data-case-row].qa-run-case-stripe-odd:not(.qa-case-selected) > td,
.ops-data-table tbody tr.qa-draft-exclusion-row.qa-run-case-stripe-odd > td,
.table tbody tr.qa-draft-exclusion-row.qa-run-case-stripe-odd > td {
    background: rgba(15, 23, 42, 0.035) !important;
}

.ops-data-table tbody tr.qa-draft-exclusion-row.qa-run-case-stripe-even > td,
.table tbody tr.qa-draft-exclusion-row.qa-run-case-stripe-even > td {
    background: transparent;
}

.ops-data-table tbody tr.qa-draft-exclusion-row > td,
.table tbody tr.qa-draft-exclusion-row > td {
    border-top: 0;
    padding-top: 0;
}

.qa-draft-exclusion-inline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 0.7rem;
    max-width: none;
    padding: 0.2rem 0 0;
    width: 100%;
}

.qa-draft-exclusion-source {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.qa-draft-exclusion-reason {
    flex: 1 1 260px;
    max-width: 420px;
}

.qa-draft-exclusion-confirm {
    align-items: center;
    display: flex;
    margin-bottom: 0;
    min-width: 150px;
}

.qa-draft-exclusion-confirm .form-check-input {
    margin-top: 0;
}

.ops-shell[data-theme="dark"] .qa-draft-exclusion-source {
    color: #b8c5d6;
}

.ops-shell[data-theme="dark"] .ops-data-table tbody tr[data-case-row].qa-run-case-stripe-odd:not(.qa-case-selected) > td,
.ops-shell[data-theme="dark"] .table tbody tr[data-case-row].qa-run-case-stripe-odd:not(.qa-case-selected) > td,
.ops-shell[data-theme="dark"] .ops-data-table tbody tr.qa-draft-exclusion-row.qa-run-case-stripe-odd > td,
.ops-shell[data-theme="dark"] .table tbody tr.qa-draft-exclusion-row.qa-run-case-stripe-odd > td {
    background: #20252a !important;
}

.ops-shell[data-theme="dark"] .ops-data-table tbody tr.qa-draft-exclusion-row.qa-run-case-stripe-even > td,
.ops-shell[data-theme="dark"] .table tbody tr.qa-draft-exclusion-row.qa-run-case-stripe-even > td {
    background: #1b1e22;
}

.qa-draft-source-stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.qa-draft-source-stats > div {
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
}

.qa-draft-source-stats strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.1;
}

.qa-draft-source-stats span {
    color: #6c757d;
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.qa-draft-source-compare-meta {
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 0.5rem;
    margin: -0.25rem 0 1rem;
}

.qa-draft-source-compare-meta span {
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.qa-draft-source-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qa-draft-source-block-title {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.qa-draft-source-item {
    border-top: 1px solid rgba(108, 117, 125, 0.18);
    padding: 0.65rem 0;
}

.qa-draft-source-item-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.qa-draft-source-item-main a,
.qa-draft-source-item-main span:first-child {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.qa-draft-source-item-meta {
    color: #6c757d;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.ops-shell[data-theme="dark"] .qa-draft-source-stats > div {
    border-color: rgba(184, 197, 214, 0.22);
}

.ops-shell[data-theme="dark"] .qa-draft-source-stats span,
.ops-shell[data-theme="dark"] .qa-draft-source-compare-meta,
.ops-shell[data-theme="dark"] .qa-draft-source-block-title,
.ops-shell[data-theme="dark"] .qa-draft-source-item-meta {
    color: #b8c5d6;
}

.ops-shell[data-theme="dark"] .qa-draft-source-compare-meta span {
    border-color: rgba(184, 197, 214, 0.22);
}

.ops-shell[data-theme="dark"] .qa-draft-source-item {
    border-top-color: rgba(184, 197, 214, 0.18);
}

.qa-draft-excluded-list {
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    margin-top: 1rem;
    padding-top: 1rem;
}

.qa-draft-excluded-item {
    align-items: center;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.qa-draft-excluded-item:first-of-type {
    border-top: 0;
}

.qa-draft-excluded-main {
    min-width: 0;
}

.ops-shell[data-theme="dark"] .qa-draft-excluded-list,
.ops-shell[data-theme="dark"] .qa-draft-excluded-item {
    border-color: rgba(184, 197, 214, 0.18);
}

@media (max-width: 767.98px) {
    .qa-summary-inline-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .qa-assignee-list-inline {
        flex-wrap: wrap;
    }

    .qa-filter-picker-menu,
    .license-static-picker-menu {
        max-width: calc(100vw - 48px);
        width: calc(100vw - 48px);
    }

    .release-ref-searchbar,
    .release-ref-result-top {
        display: block;
    }

    .release-ref-searchbar .btn,
    .release-ref-result-ref {
        margin-top: 0.5rem;
    }

    .qa-draft-exclusion-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .qa-draft-exclusion-reason {
        max-width: none;
    }

    .qa-draft-exclusion-inline .btn {
        align-self: flex-start;
    }

    .qa-draft-source-stats,
    .qa-draft-source-grid {
        grid-template-columns: 1fr;
    }

    .qa-draft-excluded-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 991px) {
    .qa-wizard-drawer {
        width: 100vw;
    }

    .qa-wizard-drawer-resize-handle {
        display: none;
    }
}
