:root {
    /* The --neutral- and --primary-button- names used here before are not
       variables Azure DevOps publishes, so those entries always fell through to
       their light-theme fallback. Everything now routes through the shared
       --da- layer in theme.css. */
    --cr-bg: var(--da-surface-alt);
    --cr-surface: var(--da-surface);
    --cr-surface-alt: var(--da-surface-alt);
    --cr-border: var(--da-border);
    --cr-border-strong: var(--da-border-strong);
    --cr-text: var(--da-text);
    --cr-text-secondary: var(--da-text-secondary);
    --cr-text-muted: var(--da-text-disabled);
    --cr-link: var(--da-primary-text);
    --cr-primary: var(--da-primary);
    --cr-primary-hover: var(--communication-background, #106ebe);
    --cr-focus: var(--da-focus);
    --cr-success: #107c10;
    --cr-success-bg: #dff6dd;
    --cr-info: #005a9e;
    --cr-info-bg: #deecf9;
    --cr-danger: #a4262c;
    --cr-danger-bg: #fde7e9;
}

html,
body {
    height: 100%;
}

body {
    overflow: hidden;
    color: var(--cr-text);
    background: transparent;
    margin: 0;
    padding: 0;
}

html,
#main {
    background: transparent;
}

#authorizationErrorMessage {
    font-size: 14px;
    padding-top: 2px;
    padding-bottom: 2px;
}

#startTrialMessage {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 14px;
    padding-top: 2px;
    padding-bottom: 2px;
}

#main {
    gap: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

#main .card {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#main .card-header {
    background-color: transparent;
    border-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 4px;
}

#main .card-header .row {
    margin-left: 0;
    margin-right: 0;
}

#main .card-header .col-md-12 {
    padding-left: 0;
    padding-right: 0;
}

#missingOrchestratorCodeReviewAgentConfigurationsMsg {
    margin-left: 10px;
    margin-right: 10px;
}

#headerLabel.page-title {
    font-size: 16px;
    font-weight: bold;
}

.page-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--cr-primary);
    background: color-mix(in srgb, var(--cr-primary) 10%, var(--cr-surface));
    border: 1px solid color-mix(in srgb, var(--cr-primary) 30%, var(--cr-border));
    line-height: 1.2;
}

.ai-review-badge i {
    font-size: 10px;
}

.trial-license-pill {
    color: #8a5a00;
    background: #fff4ce;
    border: 1px solid #ffd97a;
}

.trial-license-pill i {
    font-size: 10px;
}

#headerLabel.page-subtitle {
    font-size: 13px;
    color: var(--cr-text-secondary);
}

.cr-subtitle-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.cr-subtitle-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.cr-subtitle-row #crFilterChips {
    justify-content: flex-start;
}

#loadingSpinner {
    display: flex;
    padding-top: 50px;
    justify-content: center;
}

#loadingSpinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

.running-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--cr-text);
    font-weight: 500;
}

.datetime-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 0;
}

.datetime-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--cr-text);
}

.datetime-date i {
    font-size: 11px;
    color: var(--cr-text-secondary);
}

.datetime-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--cr-text);
}

.datetime-time i {
    font-size: 10px;
    color: var(--cr-text-secondary);
}

#CodeReviewExecutionTable th {
    white-space: nowrap;
}

#CodeReviewListBody {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cr-table-scroll {
    flex: 1 1 auto;
    min-height: 220px;
    overflow: auto;
}

#CodeReviewCardView {
    flex: 1 1 auto;
    min-height: 220px;
    overflow: auto;
    padding-right: 2px;
}

#CodeReviewExecutionTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#CodeReviewExecutionTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, color-mix(in srgb, var(--cr-primary) 4%, var(--cr-surface-alt)) 0%, var(--cr-surface-alt) 100%);
    box-shadow: inset 0 -1px 0 var(--cr-border-strong);
    height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
    vertical-align: middle;
}

th {
    padding: 6px 8px;
    font-size: 13px;
    line-height: 18px;
    border-bottom: 1px solid var(--cr-border-strong);
    font-weight: normal;
    text-align: left;
}

td:not(:first-child) {
    padding-left: 10px;
}

th:not(:first-child) {
    padding-left: 10px;
}

td {
    padding: 3px 8px;
    font-size: 13px;
    line-height: 17px;
    color: var(--cr-text);
    text-align: left;
    border-bottom: 1px solid color-mix(in srgb, var(--cr-border) 78%, transparent);
}

#CodeReviewExecutionTable tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--cr-surface-alt) 54%, var(--cr-surface));
}

tr .hidden-menu {
    visibility: hidden;
}

tr:hover .hidden-menu {
    visibility: visible;
}

.swal2-confirm {
    background-color: var(--cr-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 2px !important;
    /* Sharp corners like DevOps */
    height: 32px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    /* Slightly smaller to match DevOps */
    font-weight: 600 !important;
    line-height: 32px !important;
    cursor: pointer !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    transition: background-color 0.2s ease !important;
}

/* Hover state for Confirm */
.swal2-confirm:hover {
    background-color: var(--cr-primary-hover) !important;
}

/* Cancel (Secondary) button */
.swal2-cancel {
    background-color: transparent !important;
    color: var(--cr-text) !important;
    border: 1px solid var(--cr-border-strong) !important;
    border-radius: 2px !important;
    height: 32px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    line-height: 32px !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

/* Hover state for Cancel */
.swal2-cancel:hover {
    background-color: var(--cr-surface-alt) !important;
}

/* Popup shape (Azure style = sharp corners) */
.swal2-popup {
    border-radius: 0 !important;
}

/* Remove focus outline from buttons */
.swal2-confirm:focus,
.swal2-cancel:focus {
    outline: none !important;
    box-shadow: none !important;

}

#CodeReviewExecutionTable tbody>tr:hover {
    background-color: color-mix(in srgb, var(--cr-primary) 8%, var(--cr-surface-alt));
}

#CodeReviewExecutionTable th:hover {
    background-color: color-mix(in srgb, var(--cr-primary) 10%, var(--cr-surface-alt));
}

.caret-off::after {
    display: none;
}

a {
    color: var(--cr-link);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

#validationMessage a {
    color: var(--cr-link);
    text-decoration: underline;
}

.swal2-input {
    border-radius: 0 !important;
    height: 30px !important;
    font-size: 14px !important;
    background-color: var(--cr-surface-alt) !important;
    color: var(--cr-text) !important;
    border: 1px solid var(--cr-border) !important;
    outline: none !important;
}

.new-EvolveAssist-button:hover {
    background-color: var(--cr-surface-alt) !important;
}

.swal2-validation-message {
    margin: 0px !important;
}

.azdev-button {
    background-color: var(--cr-primary);
    color: white;
    border: 0;
    border-radius: 2px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 30px;
}

.azdev-button:hover {
    background-color: var(--cr-primary-hover);
}

.azdev-button i {
    margin-right: 6px;
    font-size: 14px;
}

.code-review-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

th[data-sort] {
    cursor: pointer;
    user-select: none;
}

.sort-icon {
    margin-left: 6px;
    color: var(--cr-text-secondary);
    font-size: 12px;
}

.pagination-button {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border-strong);
    border-radius: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    font-size: 14px;
    padding: 4px 10px;
}

#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-top: 0 !important;
    z-index: 9999;
}

#loadingSpinner::before {
    content: "";
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--cr-bg) 64%, transparent);
    z-index: -1;
}

.row-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.row-action .hidden-menu {
    margin-left: 12px;
    visibility: hidden;
}

tr:hover .row-action .hidden-menu {
    visibility: visible;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cr-primary);
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cr-dashboard {
    margin: 2px 0 6px;
}

.cr-summary-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.cr-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    font-size: 11px;
    line-height: 1;
}

.cr-summary-item .label {
    color: var(--cr-text-secondary);
    font-weight: 600;
}

.cr-summary-item .value {
    color: var(--cr-text);
    font-size: 12px;
    font-weight: 700;
}

.cr-summary-item.total {
    border-color: color-mix(in srgb, var(--cr-primary) 30%, var(--cr-border));
}

.cr-summary-item.running {
    border-color: color-mix(in srgb, var(--cr-info) 30%, var(--cr-border));
}

.cr-summary-item.completed {
    border-color: color-mix(in srgb, var(--cr-success) 35%, var(--cr-border));
}

.cr-summary-item.failed {
    border-color: color-mix(in srgb, var(--cr-danger) 35%, var(--cr-border));
}

.cr-summary-item.success-rate {
    min-width: 190px;
}

.cr-success-track.compact {
    width: 78px;
    height: 6px;
    margin-left: 2px;
}

.cr-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.cr-summary-card {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.cr-summary-card .label {
    color: var(--cr-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cr-summary-card .value {
    color: var(--cr-text);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 2px;
}

.cr-summary-card.total {
    border-top: 3px solid var(--cr-primary);
}

.cr-summary-card.running {
    border-top: 3px solid #0078d4;
}

.cr-summary-card.completed {
    border-top: 3px solid var(--cr-success);
}

.cr-summary-card.failed {
    border-top: 3px solid var(--cr-danger);
}

.cr-success-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: 10px;
    padding: 8px 10px;
}

.cr-success-row .label {
    color: var(--cr-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cr-success-row .value {
    color: var(--cr-text);
    font-weight: 700;
    min-width: 34px;
    text-align: right;
}

.cr-success-track {
    flex: 1;
    height: 8px;
    background: var(--cr-focus);
    border-radius: 999px;
    overflow: hidden;
}

.cr-success-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cr-primary) 0%, var(--cr-success) 100%);
    transition: width 0.3s ease;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-pill.running {
    background: var(--cr-info-bg);
    color: var(--cr-info);
}

.status-pill.completed {
    background: var(--cr-success-bg);
    color: var(--cr-success);
}

.status-pill.failed {
    background: var(--cr-danger-bg);
    color: var(--cr-danger);
}

.status-pill.queued,
.status-pill.unknown {
    background: var(--cr-surface-alt);
    color: var(--cr-text-secondary);
}

.review-feedback-cell {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.35;
    color: var(--cr-text);
}

.cr-empty-state {
    text-align: center;
    color: var(--cr-text-secondary);
    padding: 28px 12px;
    font-size: 14px;
}

.cr-empty-state i {
    margin-right: 8px;
}

.cr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.cr-filter-chips,
.cr-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cr-grid-actions .cr-view-switch {
    margin-right: 2px;
}

.cr-grid-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cr-search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--cr-border-strong);
    background: var(--cr-surface);
    border-radius: 8px;
    padding: 0 8px;
    height: 30px;
    min-width: 240px;
}

.cr-search-wrap i {
    color: var(--cr-text-secondary);
    font-size: 12px;
}

.cr-input {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--cr-text);
    font-size: 12px;
    width: 100%;
}

.cr-input::placeholder {
    color: var(--cr-text-muted);
}

.cr-mini-btn {
    border: 1px solid var(--cr-border-strong);
    background: var(--cr-surface);
    color: var(--cr-text);
    border-radius: 8px;
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cr-mini-btn:hover,
.cr-search-wrap:focus-within {
    border-color: var(--cr-primary);
    background: color-mix(in srgb, var(--cr-primary) 8%, var(--cr-surface));
}

.active-sort {
    color: var(--cr-primary);
}

.active-sort-column {
    background: color-mix(in srgb, var(--cr-primary) 10%, var(--cr-surface-alt));
}

.column-center {
    text-align: center;
}

.cr-filter-chip,
.cr-view-btn {
    border: 1px solid var(--cr-border-strong);
    background: var(--cr-surface);
    color: var(--cr-text);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cr-view-btn {
    border-radius: 8px;
}

.cr-filter-chip:hover,
.cr-view-btn:hover {
    border-color: var(--cr-primary);
    background: color-mix(in srgb, var(--cr-primary) 10%, var(--cr-surface));
}

.cr-filter-chip.active,
.cr-view-btn.active {
    background: var(--cr-primary);
    border-color: var(--cr-primary);
    color: #ffffff;
}

.cr-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 6px;
}

.cr-execution-card {
    position: relative;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--cr-primary) 16%, var(--cr-border));
    border-radius: 12px;
    background: var(--cr-surface);
    padding: 10px 10px 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cr-execution-card::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: color-mix(in srgb, var(--cr-primary) 45%, var(--cr-border-strong));
}

.cr-execution-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--cr-primary) 34%, var(--cr-border-strong));
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.cr-execution-card.cr-card-status-running::before {
    background: linear-gradient(90deg, #0f6cbd 0%, #4cc2ff 100%);
}

.cr-execution-card.cr-card-status-completed::before {
    background: linear-gradient(90deg, #107c10 0%, #43b45f 100%);
}

.cr-execution-card.cr-card-status-failed::before {
    background: linear-gradient(90deg, #a4262c 0%, #d6455d 100%);
}

.cr-execution-card.cr-card-status-queued::before,
.cr-execution-card.cr-card-status-unknown::before {
    background: linear-gradient(90deg, #68707a 0%, #9aa0a6 100%);
}

.cr-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.cr-card-top .user-cell {
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.cr-card-top .user-cell>span:last-child {
    font-weight: 600;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 12px;
}

.cr-card-top .status-pill {
    flex: 0 0 auto;
}

.cr-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.cr-card-meta>div {
    background: color-mix(in srgb, var(--cr-primary) 3%, var(--cr-surface));
    border: 1px solid color-mix(in srgb, var(--cr-primary) 12%, var(--cr-border));
    border-radius: 8px;
    padding: 6px 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cr-card-meta span {
    font-size: 9px;
    color: var(--cr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.cr-card-meta-value {
    display: block;
    font-size: 11px;
    color: var(--cr-text);
    font-weight: 600;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
}

.cr-card-meta .datetime-cell {
    padding: 0;
    gap: 1px;
    align-items: flex-start;
}

.cr-card-meta .datetime-date,
.cr-card-meta .datetime-time,
.cr-card-meta .running-duration {
    font-size: 11px;
    line-height: 1.2;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.cr-card-meta .datetime-date i,
.cr-card-meta .datetime-time i,
.cr-card-meta .running-duration i {
    font-size: 9px;
}

.cr-execution-card .status-pill {
    padding: 2px 8px;
    font-size: 11px;
    gap: 5px;
}

.cr-execution-card .status-pill i {
    font-size: 11px;
}

.cr-execution-card .user-cell .avatar-img,
.cr-execution-card .user-cell .avatar {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    font-size: 10px;
}

.cr-execution-card .user-cell {
    gap: 6px;
}

.cr-execution-card .user-cell>span:last-child {
    font-size: 12px;
}

.cr-card-feedback {
    border-top: 1px solid color-mix(in srgb, var(--cr-primary) 16%, var(--cr-border));
    padding-top: 7px;
    color: var(--cr-text);
    font-size: 11px;
    line-height: 1.35;
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cr-card-feedback:hover {
    max-height: none;
    overflow: visible;
}

/* Azure-like cards */
.cr-card-grid.cr-theme-azure .cr-execution-card {
    border: 1px solid var(--da-border-strong);
    border-radius: 6px;
    background: var(--da-surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    padding: 8px 8px 7px;
}

.cr-card-grid.cr-theme-azure .cr-execution-card::before {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    border-radius: 6px 0 0 6px;
    background: #0078d4;
}

.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-running {
    border-color: color-mix(in srgb, #0f6cbd 45%, #d0d7de);
    background: linear-gradient(180deg, color-mix(in srgb, #0f6cbd 6%, #ffffff) 0%, #ffffff 100%);
}

.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-completed {
    border-color: color-mix(in srgb, #107c10 45%, #d0d7de);
    background: linear-gradient(180deg, color-mix(in srgb, #107c10 6%, #ffffff) 0%, #ffffff 100%);
}

.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-failed {
    border-color: color-mix(in srgb, #a4262c 45%, #d0d7de);
    background: linear-gradient(180deg, color-mix(in srgb, #a4262c 6%, #ffffff) 0%, #ffffff 100%);
}

.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-queued,
.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-unknown {
    border-color: color-mix(in srgb, #68707a 40%, #d0d7de);
    background: linear-gradient(180deg, color-mix(in srgb, #68707a 5%, #ffffff) 0%, #ffffff 100%);
}

.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-running::before {
    background: #0f6cbd;
}

.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-completed::before {
    background: #107c10;
}

.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-failed::before {
    background: #a4262c;
}

.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-queued::before,
.cr-card-grid.cr-theme-azure .cr-execution-card.cr-card-status-unknown::before {
    background: #68707a;
}

.cr-card-grid.cr-theme-azure .cr-execution-card:hover {
    transform: translateY(-1px);
    border-color: #b8c2cc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.cr-card-grid.cr-theme-azure .cr-card-top {
    margin-bottom: 6px;
}

.cr-card-grid.cr-theme-azure .cr-card-top .user-cell>span:last-child {
    font-size: 13px;
    font-weight: 600;
}

.cr-card-grid.cr-theme-azure .cr-card-meta {
    gap: 4px;
    margin-bottom: 6px;
}

.cr-card-grid.cr-theme-azure .cr-card-meta>div {
    background: var(--da-surface-alt);
    border: 1px solid var(--da-border-strong);
    border-radius: 6px;
    padding: 5px 6px;
    gap: 2px;
}

.cr-card-grid.cr-theme-azure .cr-card-meta span {
    font-size: 9px;
    letter-spacing: 0.25px;
    color: #6b7785;
}

.cr-card-grid.cr-theme-azure .cr-card-meta-value {
    font-size: 11px;
    color: #24292f;
}

.cr-card-grid.cr-theme-azure .cr-card-feedback {
    border-top: 1px solid #d9e0e8;
    padding-top: 6px;
    font-size: 11px;
}

.cr-card-grid.cr-theme-azure .status-pill {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
}

@media (max-width: 900px) {
    .page-title-wrap {
        gap: 6px;
    }

    .ai-review-badge {
        font-size: 10px;
        padding: 2px 7px;
    }

    .cr-summary-inline {
        gap: 6px;
    }

    .cr-subtitle-row {
        align-items: flex-start !important;
    }

    .cr-summary-item {
        padding: 4px 8px;
    }

    .cr-summary-item.success-rate {
        width: 100%;
        justify-content: space-between;
    }

    .cr-success-track.compact {
        width: 92px;
    }

    .cr-summary-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .cr-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cr-grid-actions {
        width: 100%;
    }

    .cr-search-wrap {
        min-width: 200px;
        flex: 1 1 220px;
    }
}

@media (max-width: 640px) {
    .cr-card-grid {
        grid-template-columns: 1fr;
    }

    .cr-execution-card {
        padding: 8px;
    }

    .cr-card-top {
        margin-bottom: 6px;
    }

    .cr-card-meta {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 6px;
    }
}

/* Fancy queued-by tooltip styling */
.queued-by-tooltip {
    --bs-tooltip-bg: var(--cr-surface);
    --bs-tooltip-color: var(--cr-text);
}

.queued-by-tooltip .tooltip-inner {
    background: linear-gradient(140deg, color-mix(in srgb, var(--cr-primary) 6%, var(--cr-surface)) 0%, var(--cr-surface) 100%);
    color: var(--cr-text);
    border: 1px solid color-mix(in srgb, var(--cr-primary) 24%, var(--cr-border-strong));
    border-radius: 10px;
    padding: 9px 11px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    font-size: 12px;
    max-width: 260px;
    text-align: left;
}

.queued-by-tooltip .tooltip-arrow::before {
    border-top-color: color-mix(in srgb, var(--cr-primary) 24%, var(--cr-border-strong));
    border-bottom-color: color-mix(in srgb, var(--cr-primary) 24%, var(--cr-border-strong));
}

.queued-by-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.queued-by-tooltip-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    color: var(--cr-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.queued-by-tooltip-header i {
    font-size: 12px;
}

.queued-by-tooltip-status-icon {
    margin-left: auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.queued-by-tooltip-status-icon.running {
    background: var(--cr-info-bg);
    color: var(--cr-info);
}

.queued-by-tooltip-status-icon.completed {
    background: var(--cr-success-bg);
    color: var(--cr-success);
}

.queued-by-tooltip-status-icon.failed {
    background: var(--cr-danger-bg);
    color: var(--cr-danger);
}

.queued-by-tooltip-status-icon.queued,
.queued-by-tooltip-status-icon.unknown {
    background: var(--cr-surface-alt);
    color: var(--cr-text-secondary);
}

.queued-by-tooltip-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cr-text);
    font-weight: 600;
    line-height: 1.3;
}

.queued-by-tooltip-name i {
    color: var(--cr-primary);
    font-size: 13px;
}

.queued-by-tooltip-email {
    color: var(--cr-text-secondary);
    line-height: 1.3;
    word-break: break-word;
}

.queued-by-tooltip.show {
    opacity: 1;
}

/* Fancy review-details tooltip styling */
.review-details-tooltip {
    --bs-tooltip-bg: var(--cr-surface);
    --bs-tooltip-color: var(--cr-text);
}

.review-details-tooltip .tooltip-inner {
    background: linear-gradient(140deg, color-mix(in srgb, var(--cr-primary) 5%, var(--cr-surface)) 0%, var(--cr-surface) 100%);
    color: var(--cr-text);
    border: 1px solid color-mix(in srgb, var(--cr-primary) 24%, var(--cr-border-strong));
    border-radius: 10px;
    padding: 9px 11px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    font-size: 12px;
    max-width: 340px;
    text-align: left;
}

.review-details-tooltip .tooltip-arrow::before {
    border-top-color: color-mix(in srgb, var(--cr-primary) 24%, var(--cr-border-strong));
    border-bottom-color: color-mix(in srgb, var(--cr-primary) 24%, var(--cr-border-strong));
}

.review-details-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-details-tooltip-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cr-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.review-details-tooltip-header i {
    font-size: 12px;
}

.review-details-tooltip-body {
    color: var(--cr-text);
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.review-details-tooltip.show {
    opacity: 1;
}

.user-cell[data-bs-toggle="tooltip"] {
    cursor: help;
}

.review-feedback-cell[data-bs-toggle="tooltip"],
.cr-card-feedback[data-bs-toggle="tooltip"] {
    cursor: help;
}