/* Analytics Styles */
.analytics-section {
    margin-bottom: 2rem;
}

.analytics-section:last-child {
    margin-bottom: 0;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.analytics-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.analytics-card-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.analytics-card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.analytics-card-subtext {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.section-header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Visits Over Time: keep period + custom dates + group-by on one row */
.section-header-chart-toolbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.section-header-chart-toolbar .section-title {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.analytics-header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.analytics-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analytics-trim-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    min-height: 34px;
}

.analytics-trim-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    white-space: nowrap;
}

.analytics-trim-inputs {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.analytics-trim-input {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #6b7280;
    white-space: nowrap;
}

.analytics-trim-input input {
    width: 48px;
    padding: 0.25rem 0.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 0.7rem;
    height: 26px;
}

.analytics-trim-input input:focus {
    outline: none;
    border-color: var(--lmpb-h-primary);
    box-shadow: 0 0 0 2px var(--lmpb-h-primary-ring);
}

.analytics-trim-hint {
    font-size: 0.7rem;
    color: #6b7280;
    white-space: nowrap;
}

.analytics-trim-error {
    font-size: 0.7rem;
    color: #ef4444;
    white-space: nowrap;
}

.analytics-trim-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.analytics-bot-traffic-details {
    margin-top: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.analytics-bot-traffic-details > summary {
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    user-select: none;
    list-style: none;
}

.analytics-bot-traffic-details > summary::-webkit-details-marker {
    display: none;
}

.analytics-bot-traffic-details > summary::before {
    content: '▸';
    margin-right: 0.5rem;
    color: #6b7280;
}

.analytics-bot-traffic-details[open] > summary::before {
    content: '▾';
}

.analytics-bot-traffic-cards {
    margin: 0;
    padding: 0 1rem 1rem;
}

.btn-reset-analytics {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-analytics:hover {
    background: #f9fafb;
    border-color: #ef4444;
    color: #ef4444;
}

.btn-reset-analytics svg {
    flex-shrink: 0;
}

.btn-refresh-analytics {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh-analytics:hover:not(:disabled) {
    background: #f9fafb;
    border-color: var(--lmpb-h-primary);
    color: var(--lmpb-h-primary);
}

.btn-refresh-analytics:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-refresh-analytics svg {
    flex-shrink: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chart-controls-period {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; /* room for focus ring / scrollbar */
}

.chart-controls-period .chart-date-range-select,
.chart-controls-period .chart-group-by-select {
    flex: 0 0 auto;
}

.analytics-custom-range-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.analytics-custom-range-row label {
    font-size: 0.75rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.analytics-custom-range-row input[type="date"] {
    padding: 0.3rem 0.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8125rem;
    background: #ffffff;
    color: #374151;
    width: auto;
    min-width: 8.25rem;
    max-width: 9rem;
    flex-shrink: 0;
}

.analytics-custom-range-row .btn-secondary {
    padding: 0.35rem 0.6rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.analytics-custom-range-error {
    font-size: 0.7rem;
    color: #ef4444;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-date-range-select,
.chart-group-by-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.chart-date-range-select:hover,
.chart-group-by-select:hover {
    border-color: var(--lmpb-h-primary);
}

.chart-date-range-select:focus,
.chart-group-by-select:focus {
    outline: none;
    border-color: var(--lmpb-h-primary);
    box-shadow: 0 0 0 3px var(--lmpb-h-primary-ring);
}

.analytics-chart-container {
    margin-top: 1rem;
    height: 350px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.analytics-chart-container canvas {
    max-height: 100%;
}

.scroll-depth-heatmap {
    margin-top: 1rem;
}

.scroll-depth-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.scroll-depth-label {
    min-width: 80px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.scroll-depth-visual {
    flex: 1;
    height: 24px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.scroll-depth-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.scroll-depth-stats {
    min-width: 120px;
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
}

.link-url {
    color: var(--lmpb-h-primary);
    text-decoration: none;
}

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

.analytics-list {
    margin-top: 1rem;
}

.analytics-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.analytics-list-item:last-child {
    border-bottom: none;
}

.analytics-list-label {
    color: #374151;
    font-size: 0.875rem;
}

.analytics-list-value {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.analytics-table {
    margin-top: 1rem;
    overflow-x: auto;
}

.analytics-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.analytics-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.analytics-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

.analytics-table tbody tr:hover td {
    background: #f9fafb;
}

.analytics-table tbody tr.analytics-ab-variant-row--baseline td {
    background: rgba(232, 252, 236, 0.55);
    box-shadow: inset 3px 0 0 0 var(--lmpb-h-primary);
}

.analytics-table tbody tr.analytics-ab-variant-row--baseline:hover td {
    background: rgba(232, 252, 236, 0.88);
}

.analytics-ab-baseline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.25;
    background: rgba(254, 243, 164, 0.45);
    border: 1px solid rgba(7, 43, 46, 0.12);
    color: var(--lmpb-brand-deep);
    flex-shrink: 0;
}

.analytics-ab-variant-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.analytics-ab-variant-name {
    font-weight: 600;
    color: #374151;
}

.analytics-ab-variant-id {
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 400;
}

/* A/B Variant Performance — status column (not .page-status: header-only styles do not apply here) */
.analytics-ab-variant-status-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.analytics-variant-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.625rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    border: 1px solid transparent;
    line-height: 1.25;
    box-sizing: border-box;
}

.analytics-variant-status--active {
    background: var(--lmpb-brand-off);
    border-color: var(--lmpb-h-primary-border-mid);
    color: var(--lmpb-brand-deep);
    box-shadow: 0 1px 2px rgba(7, 43, 46, 0.06);
}

.analytics-variant-status--paused {
    background: #fffbeb;
    border-color: #f59e0b;
    border-style: dashed;
    color: #b45309;
}

.analytics-variant-status--archived {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

.analytics-variant-status--unknown {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.analytics-table tbody tr:last-child td {
    border-bottom: none;
}

.analytics-pagination {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.analytics-pagination-info {
    font-size: 0.8rem;
    color: #6b7280;
}

/* A/B Test Confidence Badges (rounded pills) */
.ab-conf-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.5;
}

.ab-conf--baseline {
    background: var(--lmpb-brand-off);
    border: 1px solid var(--lmpb-h-primary-border-soft);
    color: var(--lmpb-brand-deep);
}

.ab-conf--nodata {
    background: #f9fafb;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    font-style: italic;
    font-weight: 400;
}

.ab-conf--winner {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ab-conf--likely {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ab-conf--neutral {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.ab-conf--unlikely {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.ab-conf--loser {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* A/B Experiment Verdict Banner */
.ab-verdict {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ab-verdict-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.3;
}

.ab-verdict--winner {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.ab-verdict--loser {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ab-verdict--neutral {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

/* Geo filter — same chrome as .analytics-trim-controls + standard inputs */
.analytics-country-details {
    margin: 0.5rem 0 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    overflow: hidden;
}

.analytics-country-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem;
    min-height: 34px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: #f9fafb;
}

.analytics-country-summary::-webkit-details-marker,
.analytics-country-summary::marker {
    display: none;
}

.analytics-country-summary:hover {
    background: #f3f4f6;
}

.analytics-country-details[open] > .analytics-country-summary {
    border-bottom: 1px solid #e5e7eb;
}

.analytics-country-summary-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.analytics-country-summary-pill {
    display: inline-flex;
    align-items: center;
    max-width: min(100%, 28rem);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.analytics-country-summary-pill--off {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.analytics-country-summary-pill--on {
    background: var(--lmpb-brand-off);
    color: var(--lmpb-brand-deep);
    border: 1px solid var(--lmpb-h-primary-border-mid);
}

.analytics-country-summary-chevron {
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.analytics-country-details[open] .analytics-country-summary-chevron {
    transform: rotate(225deg);
}

.analytics-country-panel {
    margin: 0;
    padding: 0.75rem 0.5rem;
    background: #ffffff;
}

.analytics-country-panel-hint {
    margin: 0 0 0.75rem;
    max-width: 42rem;
    white-space: normal;
}

.analytics-country-field-label {
    display: block;
    margin-bottom: 0.35rem;
}

.analytics-country-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: 1rem 1.25rem;
    align-items: start;
}

@media (max-width: 720px) {
    .analytics-country-panel-grid {
        grid-template-columns: 1fr;
    }
}

.analytics-country-field {
    min-width: 0;
}

.analytics-country-field-hint {
    margin: 0.45rem 0 0;
}

.analytics-country-multiselect {
    display: block;
    width: 100%;
    min-height: 148px;
    max-height: 220px;
    padding: 0.25rem 0.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 0.7rem;
    line-height: 1.35;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.analytics-country-multiselect:focus {
    border-color: var(--lmpb-h-primary);
    box-shadow: 0 0 0 2px var(--lmpb-h-primary-ring);
}

.analytics-country-multiselect option:checked {
    background: var(--lmpb-h-primary-hover);
    color: #fff;
}

.analytics-country-panel-aside {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem 0 0;
}

@media (min-width: 721px) {
    .analytics-country-panel-aside {
        padding: 1.5rem 0 0;
    }
}

.analytics-country-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.analytics-country-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    accent-color: var(--lmpb-h-primary);
    cursor: pointer;
}

.analytics-country-check-text {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.analytics-country-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.analytics-country-panel-actions .btn-secondary {
    font-size: 0.875rem;
    font-weight: 500;
}

/* A/B by country — pivot matrix */
.analytics-ab-country-section {
    margin-bottom: 2rem;
}

/* Whole section expand/collapse (default collapsed) */
.analytics-ab-country-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.analytics-ab-country-block > .analytics-ab-country-block-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    background: #fafafa;
    border-bottom: 1px solid transparent;
}

.analytics-ab-country-block > .analytics-ab-country-block-summary::-webkit-details-marker {
    display: none;
}

.analytics-ab-country-block[open] > .analytics-ab-country-block-summary {
    border-bottom-color: #e5e7eb;
    background: #f9fafb;
}

.analytics-ab-country-block-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
}

.analytics-ab-country-block-summary-stats {
    font-size: 0.75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #6b7280;
    white-space: nowrap;
}

.analytics-ab-country-block-chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(-45deg);
    margin-left: auto;
    transition: transform 0.15s ease;
}

.analytics-ab-country-block[open] .analytics-ab-country-block-chevron {
    transform: rotate(45deg);
}

.analytics-ab-country-block-body {
    padding: 0.75rem 1rem 1rem;
}

.analytics-ab-country-intro {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b7280;
    max-width: 48rem;
}

.analytics-ab-country-intro-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78em;
    color: #475569;
}

/* Uses .analytics-table for base thead/td; these are matrix-only overrides */
.analytics-ab-country-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.analytics-ab-country-scroll:focus-visible {
    outline: 2px solid var(--lmpb-h-primary);
    outline-offset: 2px;
}

.analytics-ab-country-matrix {
    min-width: 520px;
}

.analytics-ab-country-matrix th {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8125rem;
    color: #374151;
}

.analytics-ab-country-matrix thead th:not(.analytics-ab-country-sticky) {
    text-align: center;
    vertical-align: bottom;
}

.analytics-ab-country-sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: 4px 0 12px -4px rgba(15, 23, 42, 0.08);
}

.analytics-ab-country-matrix thead .analytics-ab-country-sticky {
    z-index: 3;
    background: #f9fafb;
}

.analytics-ab-country-variant-col {
    min-width: 7.5rem;
    max-width: 10rem;
}

.analytics-ab-country-variant-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.analytics-ab-country-variant-id {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.analytics-ab-country-matrix tbody .analytics-ab-country-sticky {
    background: #ffffff;
}

.analytics-ab-country-matrix tbody tr:hover .analytics-ab-country-sticky {
    background: #f9fafb;
}

.analytics-ab-country-name {
    min-width: 9rem;
    max-width: 14rem;
}

.analytics-ab-country-name-text {
    display: block;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
}

.analytics-ab-country-code {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #9ca3af;
}

.analytics-ab-country-matrix tbody td:not(.analytics-ab-country-name) {
    text-align: center;
}

.analytics-ab-country-cell {
    background: #ffffff;
}

.analytics-ab-country-cell-cvr {
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.analytics-ab-country-cell-meta {
    margin-top: 0.2rem;
    font-size: 0.65rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

/* No conversions (traffic only): muted grey */
.analytics-ab-country-cell--no-conv {
    background: #fafafa;
}

.analytics-ab-country-cell--no-conv .analytics-ab-country-cell-cvr {
    color: #9ca3af;
}

.analytics-ab-country-cell--no-conv .analytics-ab-country-cell-meta {
    color: #a8a29e;
}

.analytics-ab-country-matrix tbody tr:hover .analytics-ab-country-cell--no-conv {
    background: #f4f4f5;
}

/* At least one conversion: green emphasis */
.analytics-ab-country-cell--has-conv {
    background: #f0fdf4;
}

.analytics-ab-country-cell--has-conv .analytics-ab-country-cell-cvr {
    color: #047857;
}

.analytics-ab-country-cell--has-conv .analytics-ab-country-cell-meta {
    color: #059669;
    font-weight: 600;
}

.analytics-ab-country-matrix tbody tr:hover .analytics-ab-country-cell--has-conv {
    background: #ecfdf5;
}

.analytics-ab-country-cell--empty {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 400;
    background: #ffffff;
}

/* Recent visits — submission pill */
.analytics-recent-submission-cell {
    text-align: center;
    white-space: nowrap;
}

.analytics-recent-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.analytics-recent-pill--yes {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.analytics-recent-pill--no {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

