/* ============================================================
   Analytics Dashboard — DataLens-inspired clean design
   Принципы: много воздуха, минимум цвета, чистые линии
   ============================================================ */

/* Page */
.rv-page { max-width: 1280px; padding: 0 16px; }

/* Toolbar */
.rv-toolbar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; margin-bottom: 16px; flex-wrap: wrap;
}
.rv-select {
    padding: 8px 14px; border-radius: 8px; border: 1px solid #e5e7eb;
    background: #fff; font-size: 13px; color: #374151;
    font-family: var(--font-sans); cursor: pointer; outline: none;
}
.rv-select:focus { border-color: #6366f1; }
.rv-meta { font-size: 12px; margin-left: auto; }
.rv-date-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-presets { display: flex; gap: 1px; background: #e5e7eb; border-radius: 8px; padding: 1px; }
.rv-preset {
    padding: 6px 14px; border: none; border-radius: 7px;
    background: transparent; font-size: 12px; font-weight: 500;
    color: #6b7280; cursor: pointer; font-family: var(--font-sans); transition: all .15s;
}
.rv-preset:hover { background: #f3f4f6; color: #374151; }
.rv-preset.active { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rv-date-inputs { display: flex; align-items: center; gap: 4px; }
.rv-date-input {
    padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 12px; font-family: var(--font-sans); color: #374151;
    background: #fff; outline: none;
}
.rv-date-input:focus { border-color: #6366f1; }
.rv-date-sep { color: #d1d5db; font-size: 13px; }

/* Attribution bar */
.rv-attr-bar { display: flex; align-items: center; gap: 6px; }

/* Filter bar */
.rv-filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.rv-filter-label { font-size: 12px; color: #9ca3af; font-weight: 500; }
.rv-filter-select {
    padding: 6px 12px; border-radius: 8px; border: 1px solid #e5e7eb;
    background: #fff; font-size: 12px; color: #374151; font-family: var(--font-sans);
    cursor: pointer; outline: none; max-width: 260px;
}

/* Tabs */
.rv-tabs {
    display: flex; gap: 0; margin-bottom: 28px;
    border-bottom: 1px solid #e5e7eb; overflow-x: auto;
}
.rv-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 18px; border: none; background: none;
    font-size: 13px; font-weight: 500; color: #9ca3af;
    cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: all .15s;
    font-family: var(--font-sans); white-space: nowrap;
}
.rv-tab:hover { color: #6b7280; }
.rv-tab.active { color: #111827; border-bottom-color: #6366f1; }
.rv-tab svg { opacity: .5; }
.rv-tab.active svg { opacity: .8; }

/* Hero Cards */
.rv-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.rv-hero-card {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 24px;
}
.rv-hero-label {
    font-size: 11px; color: #9ca3af; font-weight: 500;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.rv-hero-value {
    font-size: 28px; font-weight: 800; color: #111827; line-height: 1.1;
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.rv-hero-sub {
    font-size: 12px; color: #9ca3af; margin-top: 6px;
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.rv-delta { font-size: 12px; font-weight: 600; white-space: nowrap; }

/* Mini Stats */
.rv-mini-stat { text-align: center; padding: 16px 8px; }
.rv-mini-val { font-size: 22px; font-weight: 700; color: #111827; }
.rv-mini-delta { font-size: 12px; margin-top: 3px; }
.rv-mini-lbl { font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* Layout */
.rv-section { margin-top: 32px; }
.rv-section-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.rv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .rv-grid-2 { grid-template-columns: 1fr; } }

/* Cards */
.rv-card {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 12px;
    padding: 24px; overflow: hidden;
}
.rv-card-title { font-size: 15px; font-weight: 600; color: #111827; margin: 0 0 4px; }
.rv-card-subtitle { font-size: 12px; color: #9ca3af; margin: 0 0 16px; }
.rv-card-header .rv-card-subtitle { margin: 6px 0 0; }
.rv-section-title { font-size: 15px; font-weight: 600; color: #111827; margin: 0 0 16px; }
.rv-section-header .rv-section-title { margin: 0; }

.rv-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid #f0f0f0;
    border-radius: 12px; padding: 24px;
}
.rv-card-header-actions {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.rv-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-pill {
    padding: 5px 12px; border-radius: 8px; background: #f9fafb;
    font-size: 12px; font-weight: 500; color: #6b7280; white-space: nowrap;
    border: 1px solid #f0f0f0;
}

/* Charts */
.rv-chart-container { position: relative; height: 280px; }
.rv-chart-container.rv-chart-md { height: 240px; }
.rv-chart-container.rv-chart-sm { height: 180px; }

/* Forecast block */
.rv-forecast {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px 24px; background: #fafbff; border: 1px solid #e8ebf4;
    border-radius: 12px; margin-top: 24px;
}
.rv-forecast-icon { font-size: 20px; margin-top: 2px; }
.rv-forecast-body { flex: 1; }
.rv-forecast-title { font-size: 13px; font-weight: 600; color: #374151; }
.rv-forecast-row {
    display: flex; gap: 20px; flex-wrap: wrap;
    font-size: 13px; color: #6b7280; margin-top: 6px;
}

/* Waste block */
.rv-waste-block {
    margin-top: 24px; padding: 32px; background: #fff;
    border: 1px solid #f0f0f0; border-radius: 12px;
}
.rv-waste-amount { font-size: 32px; font-weight: 800; color: #111827; }
.rv-waste-label {
    font-size: 12px; font-weight: 500; color: #9ca3af;
    margin-top: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.rv-waste-detail { font-size: 13px; color: #6b7280; margin-top: 12px; line-height: 1.6; }
.rv-waste-detail em { font-style: normal; font-weight: 600; color: #374151; }

/* Campaign chips in waste block */
.rv-waste-camps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.rv-waste-camp-chip {
    display: inline-block;
    padding: 8px 14px;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rv-waste-camp-more {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* Action Cards */
.rv-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.rv-actions-list { display: flex; flex-direction: column; gap: 10px; }
.rv-action-card {
    display: flex; gap: 16px; padding: 20px 24px; border-radius: 12px;
    background: #fff; border: 1px solid #f0f0f0;
}
.rv-action-num {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.rv-action-danger .rv-action-num { background: #fef2f2; color: #dc2626; }
.rv-action-success .rv-action-num { background: #ecfdf5; color: #059669; }
.rv-action-warning .rv-action-num { background: #fffbeb; color: #d97706; }
.rv-action-info .rv-action-num { background: #eff6ff; color: #2563eb; }
.rv-action-body { flex: 1; }
.rv-action-title { font-size: 13px; font-weight: 600; color: #111827; }
.rv-action-desc { font-size: 12px; color: #9ca3af; margin-top: 6px; line-height: 1.5; }
.rv-action-impact { font-size: 12px; font-weight: 600; color: #6366f1; margin-top: 8px; }

/* Intelligence Cards */
.rv-intel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rv-intel-card {
    padding: 24px; border: 1px solid #f0f0f0; border-radius: 12px; background: #fff;
}
/* warn/good убраны — чистые карточки без цветных полос */
.rv-intel-headline { font-size: 24px; font-weight: 800; color: #111827; }
.rv-intel-sub {
    font-size: 11px; font-weight: 500; color: #9ca3af;
    margin-top: 4px; text-transform: uppercase; letter-spacing: .3px;
}
.rv-intel-body {
    font-size: 13px; color: #9ca3af; margin-top: 16px; line-height: 1.6;
    padding-top: 16px; border-top: 1px solid #f3f4f6;
}

/* ML Training (новый красивый онбординг) */
.rv-ml-training {
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    padding: 24px;
}
.rv-ml-training-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.rv-ml-training-icon {
    width: 44px;
    height: 44px;
    background: #6366f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: rv-pulse 2s ease-in-out infinite;
}
@keyframes rv-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
.rv-ml-training-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
}
.rv-ml-training-badge {
    background: #6366f1;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.rv-ml-training-progress {
    margin-bottom: 24px;
}
.rv-ml-training-bar {
    height: 8px;
    background: #e0e7ff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.rv-ml-training-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.rv-ml-training-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
}
.rv-ml-training-stats strong {
    color: #6366f1;
    font-weight: 700;
}
.rv-ml-training-remaining {
    color: #9ca3af;
}
.rv-ml-training-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    position: relative;
    padding-left: 16px;
}
.rv-ml-training-steps::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e7eb;
}
.rv-ml-training-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}
.rv-ml-training-step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    flex-shrink: 0;
    margin-left: -16px;
    z-index: 1;
}
.rv-ml-training-step.active .rv-ml-training-step-dot {
    background: #6366f1;
    box-shadow: 0 0 0 2px #c7d2fe;
    animation: rv-ml-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes rv-ml-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #c7d2fe; }
    50% { box-shadow: 0 0 0 4px #e0e7ff; }
}
.rv-ml-training-step.done .rv-ml-training-step-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px #d1fae5;
}
.rv-ml-training-step-content {
    flex: 1;
}
.rv-ml-training-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}
.rv-ml-training-step.active .rv-ml-training-step-title {
    color: #4f46e5;
}
.rv-ml-training-step.done .rv-ml-training-step-title {
    color: #059669;
}
.rv-ml-training-step-desc {
    font-size: 12px;
    color: #9ca3af;
}
.rv-ml-training-note {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    padding: 12px 16px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    border: 1px dashed #c7d2fe;
}

/* ML Onboarding (старый, для совместимости) */
.rv-ml-onboarding {
    display: flex; gap: 20px; align-items: flex-start; padding: 8px 0;
}
.rv-ml-onboarding-icon { flex-shrink: 0; margin-top: 4px; }
.rv-ml-onboarding-title { font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.rv-ml-onboarding-desc { font-size: 14px; color: #6b7280; line-height: 1.6; margin-bottom: 16px; }
.rv-ml-onboarding-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.rv-ml-step {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #9ca3af; font-weight: 500;
}
.rv-ml-step-active { color: #4b5563; }
.rv-ml-step-done { color: #059669; }
.rv-ml-step-icon {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
    background: #f3f4f6; color: #9ca3af;
}
.rv-ml-step-active .rv-ml-step-icon { background: #eff6ff; color: #2563eb; }
.rv-ml-step-done .rv-ml-step-icon { background: #ecfdf5; color: #059669; }
.rv-ml-onboarding-note {
    font-size: 12px; color: #9ca3af; line-height: 1.5;
    padding: 12px 16px; background: #f9fafb; border-radius: 8px; border: 1px dashed #e5e7eb;
}

/* Traffic Breakdown */
.rv-breakdown-bar {
    display: flex; height: 40px; border-radius: 10px; overflow: hidden; gap: 3px;
}
.rv-bk-seg {
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; min-width: 40px; border-radius: 8px;
}
.rv-bk-low { background: #fef2f2; color: #dc2626; }
.rv-bk-high { background: #ecfdf5; color: #059669; }
.rv-breakdown-legend { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.rv-bk-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.rv-bk-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rv-bk-dot-low { background: #ef4444; }
.rv-bk-dot-high { background: #10b981; }
.rv-breakdown-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 640px) { .rv-breakdown-compare { grid-template-columns: 1fr; } }
.rv-bk-cmp {
    display: flex; gap: 10px; padding: 12px 16px; border-radius: 10px;
    font-size: 12px; color: #374151; align-items: center;
}
.rv-bk-cmp.good { background: #f0fdf4; border: 1px solid #d1fae5; }
.rv-bk-cmp.bad { background: #fef2f2; border: 1px solid #fecaca; }

/* Insights */
/* Legacy insights (keep for compatibility) */
.rv-insight {
    display: flex; gap: 14px; padding: 16px 20px; border-radius: 12px;
    margin-bottom: 12px; align-items: flex-start;
}
.rv-insight-danger { background: #fff; border: 1px solid #f0f0f0; }
.rv-insight-warning { background: #fff; border: 1px solid #f0f0f0; }
.rv-insight-success { background: #fff; border: 1px solid #f0f0f0; }
.rv-insight-info { background: #fff; border: 1px solid #f0f0f0; }
.rv-insight-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.rv-insight-text { font-size: 13px; color: #374151; line-height: 1.6; }

/* New compact insights grid */
.rv-insights-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 768px) { .rv-insights-grid { grid-template-columns: 1fr; } }

.rv-ins {
    padding: 16px 20px; border-radius: 10px; background: #fff;
    border-left: 3px solid #e5e7eb; border-top: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6;
    transition: border-color 0.15s;
}
.rv-ins:hover { border-top-color: #e5e7eb; border-right-color: #e5e7eb; border-bottom-color: #e5e7eb; }
.rv-ins-title { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.rv-ins-text { font-size: 12px; color: #6b7280; line-height: 1.5; }

.rv-ins-success { border-left-color: #22c55e; }
.rv-ins-success .rv-ins-title { color: #166534; }
.rv-ins-danger { border-left-color: #ef4444; }
.rv-ins-danger .rv-ins-title { color: #991b1b; }
.rv-ins-info { border-left-color: #6366f1; }
.rv-ins-info .rv-ins-title { color: #4338ca; }
.rv-ins-neutral { border-left-color: #d1d5db; }
.rv-ins-neutral .rv-ins-title { color: #374151; }

/* Tables */
.rv-table-wrap { overflow-x: auto; }
.rv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rv-table th {
    text-align: left; padding: 12px 16px; font-weight: 500; color: #9ca3af;
    border-bottom: 1px solid #f0f0f0; font-size: 11px;
    text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.rv-table td { padding: 14px 16px; border-bottom: 1px solid #f9fafb; color: #374151; }
.rv-table tr:hover td { background: #fafbfc; }
.rv-table-compact td { padding: 10px 12px; font-size: 12px; }
.rv-table-sub { font-size: 11px; color: #d1d5db; margin-top: 2px; }
.rv-mono {
    font-family: var(--font-mono); font-size: 12px; max-width: 300px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-empty { text-align: center; color: #d1d5db; padding: 32px !important; }

/* Badges */
.rv-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-weight: 600; font-size: 12px; }
.rv-badge-green { background: #ecfdf5; color: #059669; }
.rv-badge-red { background: #fef2f2; color: #dc2626; }
.rv-badge-yellow { background: #fffbeb; color: #d97706; }
.rv-eff-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 26px; border-radius: 8px; font-weight: 700; font-size: 12px;
}
.rv-rec { font-size: 11px; padding: 4px 10px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.rv-rec-green { background: #ecfdf5; color: #059669; }
.rv-rec-yellow { background: #fffbeb; color: #d97706; }
.rv-rec-red { background: #fef2f2; color: #dc2626; }
.rv-rec-gray { background: #f9fafb; color: #9ca3af; }
.rv-rec-orange { background: #fff7ed; color: #c2410c; }
.rv-rec-blue { background: #eff6ff; color: #2563eb; }

/* Maturity tag */
.rv-maturity-tag {
    font-size: 10px; margin-top: 4px; padding: 2px 7px; border-radius: 4px;
    display: inline-block; font-weight: 600; letter-spacing: 0.02em;
}
.rv-maturity-blue { background: #dbeafe; color: #1d4ed8; }
.rv-maturity-yellow { background: #fef3c7; color: #b45309; }
.rv-maturity-gray { background: #f3f4f6; color: #6b7280; }

/* % Budget/Conv badges */
.rv-pct-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 12px; font-weight: 600; color: #374151; background: #f3f4f6;
}
.rv-pct-hot { background: #fff7ed; color: #b45309; font-weight: 700; }
.rv-imb-tag {
    font-size: 10px; margin-top: 4px; padding: 1px 6px; border-radius: 4px;
    display: inline-block; font-weight: 500;
}
.rv-imb-neg { background: #fef2f2; color: #dc2626; }
.rv-imb-pos { background: #ecfdf5; color: #059669; }

/* Audit insights */
.rv-audit-insights { display: flex; flex-direction: column; gap: 8px; }

/* TQI Hero */
.rv-tqi-hero {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 32px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 32px; flex-wrap: wrap;
}
.rv-tqi-label { font-size: 13px; color: #9ca3af; }
.rv-tqi-value {
    font-size: 56px; font-weight: 800; line-height: 1;
    display: flex; align-items: baseline; gap: 12px;
}
.rv-tqi-sublabel { font-size: 12px; color: #d1d5db; margin-top: 6px; }
.rv-tqi-stats { display: flex; gap: 32px; }
.rv-tqi-stat { text-align: center; }
.rv-tqi-stat-val { display: block; font-size: 22px; font-weight: 700; color: #111827; }
.rv-tqi-stat-lbl { font-size: 11px; color: #9ca3af; }

/* Bar cells */
.rv-bar-cell { display: flex; align-items: center; gap: 10px; }
.rv-bar-bg { flex: 1; height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.rv-bar-fg { height: 100%; background: #6366f1; border-radius: 3px; }

/* Forecast Constructor */
.rv-calc-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.rv-calc-result-val { font-size: 24px; font-weight: 800; color: #111827; }
.rv-calc-result-label { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.rv-calc-result-delta { font-size: 12px; font-weight: 600; margin-top: 3px; }

/* Campaign constructor item */
.rv-fc-camp {
    padding: 16px 20px; border: 1px solid #f0f0f0; border-radius: 10px;
    margin-bottom: 8px; transition: opacity .15s, background .15s;
}
.rv-fc-camp-off { opacity: .45; background: #fafafa; }
.rv-fc-camp-header { display: flex; align-items: center; gap: 14px; }
.rv-fc-camp-info { flex: 1; min-width: 0; }
.rv-fc-camp-name { font-size: 13px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-fc-camp-meta { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* Toggle switch */
.rv-fc-toggle { cursor: pointer; display: flex; align-items: center; flex-shrink: 0; }
.rv-fc-toggle input { display: none; }
.rv-fc-toggle-track {
    width: 36px; height: 20px; border-radius: 10px; background: #e5e7eb;
    position: relative; transition: background .15s;
}
.rv-fc-toggle input:checked + .rv-fc-toggle-track { background: #6366f1; }
.rv-fc-toggle-thumb {
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    position: absolute; top: 2px; left: 2px; transition: left .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.rv-fc-toggle input:checked + .rv-fc-toggle-track .rv-fc-toggle-thumb { left: 18px; }

/* Budget input */
.rv-fc-budget-row {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid #f5f5f5;
}
.rv-fc-budget-label { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.rv-fc-budget-input-wrap {
    display: flex; align-items: center; border: 1px solid #e5e7eb;
    border-radius: 8px; overflow: hidden; background: #fff;
}
.rv-fc-budget-input {
    width: 110px; padding: 6px 10px; border: none; outline: none;
    font-size: 13px; font-family: var(--font-sans); color: #111827;
    background: transparent; -moz-appearance: textfield;
}
.rv-fc-budget-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rv-fc-budget-input:focus { outline: none; }
.rv-fc-budget-input-wrap:focus-within { border-color: #6366f1; }
.rv-fc-budget-unit {
    padding: 6px 10px; background: #f9fafb; color: #9ca3af;
    font-size: 12px; border-left: 1px solid #e5e7eb;
}
.rv-fc-budget-orig { font-size: 11px; color: #9ca3af; }

/* Placement grid */
.rv-fc-pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.rv-fc-pl-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border: 1px solid #f0f0f0; border-radius: 8px; cursor: pointer;
    transition: opacity .15s, background .15s;
}
.rv-fc-pl-item:hover { background: #fafafa; }
.rv-fc-pl-off { opacity: .4; background: #fafafa; }
.rv-fc-pl-item input { accent-color: #6366f1; }
.rv-fc-pl-info { flex: 1; min-width: 0; }
.rv-fc-pl-name { font-size: 12px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-fc-pl-meta { font-size: 11px; color: #9ca3af; margin-top: 1px; }

/* Buttons */
.rv-btn-primary {
    padding: 10px 24px; background: #6366f1; color: white; border: none;
    border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
    font-family: var(--font-sans); transition: background .15s;
}
.rv-btn-primary:hover { background: #4f46e5; }
.rv-btn-secondary {
    padding: 10px 24px; background: #fff; color: #374151; border: 1px solid #e5e7eb;
    border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500;
    font-family: var(--font-sans); transition: all .15s;
}
.rv-btn-secondary:hover { background: #f9fafb; border-color: #d1d5db; }
.rv-btn-sm {
    font-size: 12px; padding: 6px 14px;
}

/* OAuth */
.rv-oauth-block { text-align: center; padding: 80px 24px; color: #9ca3af; }
.rv-oauth-block h3 { margin: 20px 0 8px; color: #374151; font-size: 18px; }
.rv-oauth-block p { max-width: 400px; margin: 0 auto 24px; font-size: 14px; line-height: 1.6; }

/* Loading / Error */
.rv-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 80px 0; color: #d1d5db; font-size: 13px;
}
.rv-spinner {
    width: 28px; height: 28px; border: 3px solid #f3f4f6;
    border-top-color: #6366f1; border-radius: 50%;
    animation: rvspin .7s linear infinite; margin-bottom: 12px;
}
@keyframes rvspin { to { transform: rotate(360deg); } }
.rv-error {
    text-align: center; padding: 48px; color: #dc2626;
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; font-size: 14px;
}

/* ============================================================
   Onboarding / Settings
   ============================================================ */

/* Steps indicator */
.rv-ob-steps {
    display: flex; align-items: center; gap: 0; margin: 28px 0 32px;
    padding: 0 8px;
}
.rv-ob-step {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.rv-ob-step-num {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    background: #f3f4f6; color: #9ca3af;
    transition: all .2s;
}
.rv-ob-step-active .rv-ob-step-num { background: #6366f1; color: #fff; }
.rv-ob-step-done .rv-ob-step-num { background: #10b981; color: #fff; }
.rv-ob-step-label { font-size: 13px; color: #9ca3af; font-weight: 500; }
.rv-ob-step-active .rv-ob-step-label { color: #111827; }
.rv-ob-step-line {
    flex: 1; height: 2px; background: #e5e7eb; margin: 0 12px;
    min-width: 20px; transition: background .2s;
}
.rv-ob-step-line-done { background: #10b981; }

/* Sections */
.rv-ob-section-title { font-size: 15px; font-weight: 600; color: #111827; margin: 0 0 6px; }
.rv-ob-section-desc { font-size: 13px; color: #9ca3af; margin: 0 0 20px; line-height: 1.5; }

/* Notice */
.rv-ob-notice {
    display: flex; gap: 16px; padding: 24px; border-radius: 12px;
    background: #f9fafb; border: 1px solid #e5e7eb; margin-bottom: 20px;
}
.rv-ob-notice-success { background: #ecfdf5; border-color: #a7f3d0; }
.rv-ob-notice-icon { font-size: 24px; flex-shrink: 0; }
.rv-ob-notice-title { font-size: 15px; font-weight: 600; color: #111827; }
.rv-ob-notice-desc { font-size: 13px; color: #6b7280; margin-top: 4px; line-height: 1.5; }

/* Cabinet list */
.rv-ob-cab-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.rv-ob-cab-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer;
    transition: all .15s; background: #fff;
}
.rv-ob-cab-item:hover { border-color: #c7d2fe; background: #fafbff; }
.rv-ob-cab-selected { border-color: #6366f1; background: #eef2ff; }
.rv-ob-cab-item input { accent-color: #6366f1; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.rv-ob-cab-info { flex: 1; min-width: 0; }
.rv-ob-cab-name { font-size: 14px; font-weight: 600; color: #111827; }
.rv-ob-cab-meta { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* Goals list */
.rv-ob-goals-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.rv-ob-goal-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 20px;
    border: 1px solid #f0f0f0; border-radius: 10px; flex-wrap: wrap;
}
.rv-ob-goal-info { flex: 1; min-width: 180px; }
.rv-ob-goal-name { font-size: 13px; font-weight: 600; color: #111827; }
.rv-ob-goal-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.rv-ob-goal-select-wrap { flex-shrink: 0; }
.rv-ob-goal-select {
    padding: 8px 14px; border-radius: 8px; border: 1px solid #e5e7eb;
    background: #fff; font-size: 13px; color: #374151;
    font-family: var(--font-sans); cursor: pointer; outline: none;
    min-width: 200px;
}
.rv-ob-goal-select:focus { border-color: #6366f1; }

/* Revenue select */
.rv-ob-revenue-select {
    padding: 8px 14px; border-radius: 8px; border: 1px solid #e5e7eb;
    background: #fff; font-size: 13px; color: #374151;
    font-family: var(--font-sans); cursor: pointer; outline: none;
    width: 100%; max-width: 400px;
}
.rv-ob-revenue-select:focus { border-color: #6366f1; }

/* Actions */
.rv-ob-actions {
    display: flex; align-items: center; gap: 12px; margin-top: 28px;
    padding-top: 20px; border-top: 1px solid #f3f4f6;
}
.rv-ob-hint { font-size: 12px; color: #9ca3af; }
.rv-ob-actions button:disabled { opacity: .5; cursor: not-allowed; }

/* Summary */
.rv-ob-summary-block { margin-bottom: 24px; }
.rv-ob-summary-label {
    font-size: 11px; font-weight: 600; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px;
}
.rv-ob-summary-items { display: flex; flex-direction: column; gap: 6px; }
.rv-ob-summary-item {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    border: 1px solid #f0f0f0; border-radius: 8px; font-size: 13px; color: #374151;
    flex-wrap: wrap;
}
.rv-ob-summary-meta { font-size: 11px; color: #9ca3af; }
.rv-ob-summary-empty { font-size: 13px; color: #d1d5db; padding: 10px 0; }

/* ============================================================
   TAB: BOTS
   ============================================================ */

/* Hero block */
.rv-bot-hero {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 24px; padding: 28px 32px;
}
.rv-bot-hero-main { display: flex; flex-direction: column; gap: 4px; }
.rv-bot-hero-status {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #6b7280;
}
.rv-bot-hero-icon { font-size: 18px; }
.rv-bot-hero-pct {
    font-size: 48px; font-weight: 700; line-height: 1;
    font-family: var(--font-mono);
}
.rv-bot-hero-sublabel { font-size: 13px; color: #9ca3af; }
.rv-bot-hero-stats {
    display: flex; gap: 28px; flex-wrap: wrap;
}

/* Badge colors */
.rv-badge-orange { background: #fff7ed; color: #ea580c; }
.rv-badge-yellow { background: #fefce8; color: #ca8a04; }

/* Sub-tabs (inside tab content) */
.rv-sub-tabs {
    display: flex; gap: 1px; background: #e5e7eb; border-radius: 10px;
    padding: 2px; margin-bottom: 20px; width: fit-content;
}
.rv-sub-tab {
    padding: 8px 20px; border: none; border-radius: 8px;
    background: transparent; font-size: 13px; font-weight: 500;
    color: #6b7280; cursor: pointer; font-family: var(--font-sans);
    transition: all .15s;
}
.rv-sub-tab:hover { background: #f3f4f6; color: #374151; }
.rv-sub-tab.active {
    background: #fff; color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    font-weight: 600;
}

/* Assisted conversions badge */
.rv-assisted-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 6px;
    background: #f0f9ff; color: #0369a1;
    font-size: 12px; font-weight: 600;
}
.rv-assisted-badge:hover {
    background: #e0f2fe;
}

/* ============================================================
   TAB: DOCS (Documentation) — clean & minimal
   ============================================================ */

.rv-docs {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 80px;
}

/* Header */
.rv-docs-header {
    text-align: center;
    padding: 48px 0 20px;
    margin-bottom: 0;
}
.rv-docs-header-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6366f1;
    background: #eef2ff;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.rv-docs-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    letter-spacing: -.3px;
}
.rv-docs-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Navigation */
.rv-docs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 14px 0;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    border-bottom: 1px solid #f3f4f6;
}
.rv-docs-nav-item {
    padding: 7px 16px;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    border: 1px solid transparent;
}
.rv-docs-nav-item:hover {
    background: #f9fafb;
    color: #374151;
}
.rv-docs-nav-item.active {
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

/* Section */
.rv-docs-section {
    margin-top: 48px;
    scroll-margin-top: 72px;
}

/* Section heading */
.rv-docs-h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.rv-docs-h3-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

/* Blocks */
.rv-docs-block {
    margin-bottom: 16px;
}
.rv-docs-block p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}
.rv-docs-block-muted {
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px 24px;
}
.rv-docs-block-accent {
    background: #fafbff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 20px 24px;
}
.rv-docs-block-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 4px 0 8px;
}

/* Labels */
.rv-docs-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
    margin-bottom: 12px;
}

/* Steps */
.rv-docs-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rv-docs-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.rv-docs-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.rv-docs-step div:last-child {
    flex: 1;
}
.rv-docs-step strong {
    display: block;
    font-size: 13px;
    color: #111827;
    margin-bottom: 2px;
}
.rv-docs-step span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Scale */
.rv-docs-scale-wrap {
    margin: 20px 0;
}
.rv-docs-scale-bar {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    height: 44px;
    gap: 2px;
}
.rv-docs-scale-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.rv-docs-scale-seg small {
    font-size: 10px;
    font-weight: 500;
    opacity: .8;
    margin-top: 1px;
}

/* Two-column comparison */
.rv-docs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}
.rv-docs-col {
    border-radius: 12px;
    padding: 18px 20px;
}
.rv-docs-col-header {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.rv-docs-col ul {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.8;
}
.rv-docs-col-good {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}
.rv-docs-col-good .rv-docs-col-header { color: #059669; }
.rv-docs-col-good ul { color: #047857; }
.rv-docs-col-bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.rv-docs-col-bad .rv-docs-col-header { color: #dc2626; }
.rv-docs-col-bad ul { color: #b91c1c; }

/* Callout */
.rv-docs-callout {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #a16207;
}
.rv-docs-callout strong {
    color: #92400e;
    font-size: 13px;
}
.rv-docs-callout-subtle {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
}
.rv-docs-callout-subtle strong {
    color: #374151;
}

/* Three-col cards */
.rv-docs-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}
.rv-docs-mini-card {
    padding: 16px 18px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fff;
}
.rv-docs-mini-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
}
.rv-docs-mini-card p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Path example (chips) */
.rv-docs-path-example {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 8px;
}
.rv-docs-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.rv-docs-chip-primary { background: #6366f1; color: #fff; }
.rv-docs-chip-muted { background: #e5e7eb; color: #9ca3af; }
.rv-docs-chip-green { background: #10b981; color: #fff; }
.rv-docs-chip-assist { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.rv-docs-path-arr { color: #d1d5db; font-size: 15px; font-weight: 600; }
.rv-docs-result {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Path legend */
.rv-docs-path-legend-row {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    font-size: 12px;
    color: #6b7280;
}
.rv-docs-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rv-docs-legend-sq {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

/* Signal grid */
.rv-docs-signal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.rv-docs-signal-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}
.rv-docs-signal-ico {
    font-size: 18px;
    margin-bottom: 4px;
}
.rv-docs-signal-item strong {
    font-size: 13px;
    color: #111827;
}
.rv-docs-signal-item span {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* OAuth Banner */
.rv-oauth-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.rv-oauth-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.rv-oauth-banner-body { flex: 1; }
.rv-oauth-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b;
    margin-bottom: 4px;
}
.rv-oauth-banner-desc {
    font-size: 12px;
    color: #4338ca;
    line-height: 1.5;
}
.rv-oauth-banner-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #6366f1;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.rv-oauth-banner-btn:hover { background: #4f46e5; }

/* Settings tab attention indicator */
.rv-tab-attention {
    position: relative;
    animation: rv-tab-pulse 2s ease-in-out infinite;
}
.rv-tab-attention::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: rv-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes rv-tab-pulse {
    0%, 100% { background: transparent; }
    50% { background: rgba(99, 102, 241, 0.08); }
}
@keyframes rv-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Setup required banner */
.rv-setup-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #a5b4fc;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.rv-setup-banner:hover {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}
.rv-setup-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    color: #4f46e5;
}
.rv-setup-banner-body { flex: 1; }
.rv-setup-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b;
    margin-bottom: 2px;
}
.rv-setup-banner-desc {
    font-size: 12px;
    color: #4338ca;
    line-height: 1.5;
}
.rv-setup-banner-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #6366f1;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.rv-setup-banner-btn:hover { background: #4f46e5; }

/* Campaign mapping (onboarding step 2) */
.rv-ob-camp-group { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.rv-ob-camp-group-header {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    font-size: 13px; font-weight: 600; color: #374151;
}
.rv-ob-camp-matched { background: #f0fdf4; border-bottom: 1px solid #bbf7d0; color: #166534; }
.rv-ob-camp-unmatched { background: #fafafa; border-bottom: 1px solid #e5e7eb; color: #6b7280; }
.rv-ob-camp-other { background: #f5f3ff; border-bottom: 1px solid #ddd6fe; color: #5b21b6; }
.rv-ob-camp-group-icon { font-size: 14px; }
.rv-ob-camp-list { max-height: 320px; overflow-y: auto; }
.rv-ob-camp-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}
.rv-ob-camp-item:last-child { border-bottom: none; }
.rv-ob-camp-item:hover { background: #fafbff; }
.rv-ob-camp-ok { background: #f9fdfb; }
.rv-ob-camp-info { flex: 1; min-width: 0; }
.rv-ob-camp-name { font-size: 13px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-ob-camp-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.rv-ob-camp-action {
    flex-shrink: 0; padding: 4px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 500; cursor: pointer;
    border: 1px solid #e5e7eb; background: #fff; color: #374151;
    transition: all 0.15s;
}
.rv-ob-camp-add { color: #6366f1; border-color: #c7d2fe; }
.rv-ob-camp-add:hover { background: #eef2ff; border-color: #6366f1; }
.rv-ob-camp-remove { color: #dc2626; border-color: #fecaca; }
.rv-ob-camp-remove:hover { background: #fef2f2; border-color: #dc2626; }

/* Diagnostic banners & freshness indicator */
.rv-banners-wrap { margin-bottom: 16px; }

.rv-freshness-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px; background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 8px; margin-bottom: 8px; font-size: 12px; color: #6b7280;
}
.rv-fresh-ok { color: #16a34a; font-weight: 500; }
.rv-fresh-warn { color: #ca8a04; font-weight: 500; }
.rv-fresh-old { color: #dc2626; font-weight: 500; }

.rv-refresh-btn {
    background: none; border: 1px solid #d1d5db; border-radius: 6px;
    padding: 4px 12px; font-size: 11px; color: #6b7280; cursor: pointer;
    transition: all .15s; font-family: inherit;
}
.rv-refresh-btn:hover { border-color: #6366f1; color: #6366f1; }
.rv-refresh-btn:disabled { opacity: 0.5; cursor: default; }

.rv-banner {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    border-radius: 8px; margin-bottom: 6px; font-size: 13px; line-height: 1.5;
    border: 1px solid transparent;
}
.rv-banner-critical { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.rv-banner-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.rv-banner-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.rv-banner-info { background: #eff6ff; border-color: #dbeafe; color: #1e40af; }

.rv-banner-action {
    font-weight: 600; text-decoration: underline; margin-left: 6px;
    color: inherit; cursor: pointer;
}
.rv-banner-action:hover { opacity: 0.8; }

/* Inline helper classes (replacing inline styles) */
.rv-spam-inline { font-size: 12px; color: #ef4444; }
.rv-spam-inline[title] { cursor: help; }
.rv-placeholder-text { font-size: 14px; color: #9ca3af; }
.rv-dash { color: #d1d5db; }
.rv-icon-inline { vertical-align: -2px; margin-right: 4px; }

/* Utility classes for clean inline-style removal */
.rv-card-header .rv-card-subtitle { margin: 6px 0 0; }
.rv-card-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rv-section-header .rv-section-title { margin: 0; }
.rv-btn-sm { font-size: 12px; padding: 6px 14px; }

/* Responsive */
@media (max-width: 768px) {
    .rv-hero-card .rv-hero-value { font-size: 22px; }
    .rv-grid-2, .rv-grid-3, .rv-grid-4 { grid-template-columns: 1fr; }
    .rv-tqi-hero { font-size: 36px !important; }
    .rv-toolbar { flex-wrap: wrap; gap: 8px; }
    .rv-freshness-bar { flex-direction: column; gap: 6px; text-align: center; }
    .rv-ob-steps { gap: 4px; }
    .rv-ob-step-label { font-size: 11px; }
}
@media (max-width: 640px) {
    .rv-docs-two-col,
    .rv-docs-signal-grid {
        grid-template-columns: 1fr;
    }
    .rv-docs-three-col {
        grid-template-columns: 1fr;
    }
    .rv-docs-path-example {
        flex-direction: column;
        align-items: flex-start;
    }
    .rv-docs-path-arr {
        transform: rotate(90deg);
        margin: 2px 0 2px 16px;
    }
    .rv-oauth-banner {
        flex-direction: column;
        text-align: center;
    }
    .rv-setup-banner {
        flex-direction: column;
        text-align: center;
    }
}
