.agents-reports-subtabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.4rem;
    border: 1px solid rgba(83, 252, 24, 0.14);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.agents-reports-subtab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.agents-reports-subtab:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.12);
}

.agents-reports-subtab.active {
    color: #08130a;
    background: #53fc18;
    box-shadow: 0 10px 24px rgba(83, 252, 24, 0.18);
}

.agents-reports-subtab i {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .agents-reports-subtabs {
        display: flex;
        width: 100%;
    }

    .agents-reports-subtab {
        flex: 1 1 220px;
    }
}

.agents-reports-page .container {
    max-width: 1220px;
}

.agents-reports-container {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    display: grid;
    gap: 1rem;
}

.agents-demo-banner-reports {
    margin-bottom: 0.25rem;
}

.agents-reports-nav {
    display: inline-flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.agents-tab-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
}

.agents-tab-link.active {
    background: rgba(83, 252, 24, 0.18);
    border-color: rgba(83, 252, 24, 0.45);
    color: #bef264;
}

.agents-report-filters,
.agents-report-results {
    background: rgba(16, 20, 28, 0.95);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 16px;
    padding: 1.2rem;
}

.agents-report-filters h2,
.agents-report-results h2,
.agents-report-panel h3 {
    margin: 0;
    color: #f3f4f6;
}

.agents-report-form {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.agents-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.agents-report-grid label {
    display: grid;
    gap: 0.35rem;
    color: #d1d5db;
    font-size: 0.85rem;
}

.agents-report-grid input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    padding: 0.58rem 0.7rem;
}

.agents-report-grid input:focus {
    outline: none;
    border-color: rgba(83, 252, 24, 0.7);
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}

.agents-report-grid select,
.agents-report-grid textarea,
.agents-comparison-grid input,
.agents-comparison-grid select,
.agents-export-name-cell input,
.agents-export-search-wrap input,
.agents-comparison-controls textarea,
.agents-comparison-sort-wrap select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    padding: 0.58rem 0.7rem;
}

.agents-report-grid select:focus,
.agents-report-grid textarea:focus,
.agents-comparison-grid input:focus,
.agents-comparison-grid select:focus,
.agents-export-name-cell input:focus,
.agents-export-search-wrap input:focus,
.agents-comparison-controls textarea:focus,
.agents-comparison-sort-wrap select:focus {
    outline: none;
    border-color: rgba(83, 252, 24, 0.7);
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}

.agents-export-name-cell input::placeholder,
.agents-export-search-wrap input::placeholder {
    color: #94a3b8;
}

.agents-export-name-cell input:disabled,
.agents-export-search-wrap input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.agents-streamer-picker {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 0.8rem;
}

.agents-streamer-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.agents-scoped-selector-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.agents-scoped-section-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.agents-scoped-section-toggle i {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.agents-scoped-section-toggle[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

.agents-scoped-section-toggle:hover i {
    color: #53fc18;
}

.agents-scoped-selector-body[hidden] {
    display: none !important;
}

.agents-streamer-picker h3 {
    margin: 0;
    color: #e5e7eb;
    font-size: 1rem;
}

.agents-group-selection-row {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.agents-group-selection-row label {
    flex: 1;
    display: grid;
    gap: 0.35rem;
    color: #d1d5db;
    font-size: 0.85rem;
}

.agents-group-selection-row select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    padding: 0.58rem 0.7rem;
}

.agents-group-selection-row select:focus {
    outline: none;
    border-color: rgba(83, 252, 24, 0.7);
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}

.agents-group-selection-row .agents-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.agents-group-selection-row-tight {
    margin-top: 0;
}

.agents-streamer-list {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
}

.agents-streamer-option {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 0.55rem;
    background: rgba(2, 6, 23, 0.4);
}

.agents-streamer-option input {
    margin-top: 0.25rem;
}

.agents-streamer-meta {
    display: grid;
    gap: 0.15rem;
}

.agents-streamer-meta strong {
    color: #f8fafc;
    font-size: 0.9rem;
}

.agents-streamer-meta small {
    color: #94a3b8;
    font-size: 0.78rem;
}

.agents-streamer-empty {
    color: #94a3b8;
    font-size: 0.9rem;
}

.agents-report-actions {
    display: flex;
    justify-content: flex-start;
}

.agents-comparison-workspace {
    background: rgba(16, 20, 28, 0.95);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 16px;
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.agents-comparison-head h2 {
    margin: 0;
    color: #f3f4f6;
}

.agents-comparison-controls {
    display: grid;
    gap: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(2, 6, 23, 0.35);
}

.agents-comparison-controls label {
    display: grid;
    gap: 0.35rem;
    color: #d1d5db;
    font-size: 0.85rem;
}

.agents-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.agents-comparison-grid[hidden] {
    display: none;
}

.agents-comparison-grid > [hidden] {
    display: none;
}

.agents-comparison-controls textarea {
    min-height: 72px;
    resize: vertical;
}

.agents-comparison-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.agents-comparison-action-row .agents-btn {
    min-width: 136px;
}

.agents-btn-danger {
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.4);
    color: #fecaca;
}

.agents-btn-danger:hover:not(:disabled) {
    background: rgba(153, 27, 27, 0.55);
}

.agents-comparison-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #cbd5e1;
    font-size: 0.82rem;
}

.agents-comparison-sort-wrap label {
    color: #9ca3af;
}

.agents-comparison-sort-wrap select {
    min-width: 220px;
}

.agents-comparison-table td {
    vertical-align: top;
}

.agents-comparison-streamer-cell {
    display: grid;
    gap: 0.18rem;
}

.agents-comparison-streamer-cell strong {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f8fafc;
}

.agents-comparison-streamer-cell small {
    color: #94a3b8;
}

.agents-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.agents-pill-anchor {
    border: 1px solid rgba(83, 252, 24, 0.42);
    background: rgba(83, 252, 24, 0.16);
    color: #bef264;
}

.agents-pill-insufficient {
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(51, 65, 85, 0.4);
    color: #cbd5e1;
}

.agents-delta-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0.14rem 0.44rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.agents-delta-positive {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.agents-delta-negative {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

.agents-delta-neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.agents-rank-signal-cell {
    display: grid;
    gap: 0.2rem;
}

.agents-report-empty-state {
    display: block;
}

.agents-report-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.agents-report-schema {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: rgba(83, 252, 24, 0.14);
    border: 1px solid rgba(83, 252, 24, 0.32);
    color: #bef264;
    font-size: 0.8rem;
}

.agents-report-card-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem;
}

.agents-report-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.5);
    padding: 0.75rem;
}

.agents-report-card h3 {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.85rem;
}

.agents-report-card p {
    margin: 0.55rem 0 0;
    color: #53fc18;
    font-size: 1.25rem;
    font-weight: 700;
}

.agents-quality-card-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.55rem;
}

.agents-quality-card-grid .agents-report-card {
    padding: 0.65rem 0.7rem;
    min-height: 84px;
}

.agents-quality-card-grid .agents-report-card h3 {
    color: #94a3b8;
    font-size: 0.73rem;
    line-height: 1.3;
}

.agents-quality-card-grid .agents-report-card p {
    margin-top: 0.38rem;
    font-size: 1rem;
    line-height: 1.1;
}

.agents-quality-details-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.85rem;
}

.agents-quality-detail {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.42);
    overflow: hidden;
}

.agents-quality-detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.58);
    list-style: none;
}

.agents-quality-detail summary::-webkit-details-marker {
    display: none;
}

.agents-quality-detail[open] summary {
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.agents-quality-detail summary strong {
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.3;
}

.agents-quality-detail-body {
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
}

.agents-quality-section-title {
    margin: 0;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
}

.agents-quality-signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
}

.agents-quality-baseline-grid {
    margin-top: -0.1rem;
}

.agents-quality-signal-card {
    display: grid;
    gap: 0.24rem;
    align-content: start;
    min-height: 78px;
    padding: 0.72rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.6);
}

.agents-quality-signal-label {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agents-quality-signal-value {
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
}

.agents-quality-signal-hint {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
}

.agents-risk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.agents-risk-high {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.28);
    color: #fecaca;
}

.agents-risk-medium {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fde68a;
}

.agents-risk-low {
    background: rgba(83, 252, 24, 0.12);
    border-color: rgba(83, 252, 24, 0.24);
    color: #bef264;
}

.agents-risk-unknown {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
}

.agents-factor-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.agents-factor-positive {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.26);
    color: #fecaca;
}

.agents-factor-negative {
    background: rgba(83, 252, 24, 0.12);
    border-color: rgba(83, 252, 24, 0.24);
    color: #bef264;
}

.agents-flagged-table th,
.agents-flagged-table td {
    white-space: nowrap;
}

.agents-report-panels {
    margin-top: 1rem;
    display: grid;
    gap: 0.85rem;
}

.agents-report-panel {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 0.9rem;
    background: rgba(2, 6, 23, 0.4);
}

.agents-table-wrap {
    margin-top: 0.6rem;
    overflow-x: auto;
}

.agents-report-table {
    width: 100%;
    border-collapse: collapse;
}

.agents-report-table th,
.agents-report-table td {
    text-align: left;
    padding: 0.55rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
    font-size: 0.86rem;
}

.agents-report-table th {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agents-empty-inline {
    margin: 0.6rem 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
    display: none;
}

.agents-trend-chart-wrap {
    margin-top: 0.7rem;
    width: 100%;
    min-height: 280px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.72);
    overflow: hidden;
    padding: 0.8rem;
    position: relative;
}

.agents-trend-chart {
    width: 100% !important;
    height: 280px !important;
    display: block;
}

.agents-report-quick-actions {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(83, 252, 24, 0.15);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.55);
}

.agents-report-quick-actions h3 {
    margin: 0 0 0.6rem;
    font-size: 0.92rem;
    color: #f3f4f6;
}

.agents-report-quick-actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agents-report-quick-actions-row .agents-btn {
    min-width: 130px;
}

.agents-report-quick-actions .agents-status-message {
    margin-top: 0.5rem;
}

.agents-export-workspace {
    background: rgba(16, 20, 28, 0.95);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 16px;
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.agents-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.75rem;
}

.agents-export-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 0.9rem;
    background: rgba(2, 6, 23, 0.42);
}

.agents-export-card h3 {
    margin: 0;
    color: #f3f4f6;
}

.agents-btn-small {
    padding: 0.34rem 0.55rem;
    min-height: 32px;
    font-size: 0.76rem;
}

.agents-list-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.agents-scoped-toolbar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.agents-scoped-toolbar[hidden],
.agents-list-pagination[hidden] {
    display: none !important;
}

.agents-scoped-pagination-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.agents-scoped-page-size {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.agents-scoped-page-size span {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agents-scoped-page-size select {
    min-width: 72px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0;
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    padding: 0.32rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.agents-scoped-page-size select:focus {
    outline: none;
    border-color: rgba(83, 252, 24, 0.45);
    box-shadow: 0 0 0 1px rgba(83, 252, 24, 0.18);
}

.agents-scoped-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.agents-scoped-skeleton-row td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.agents-scoped-skeleton-box {
    display: block;
    height: 0.9rem;
    width: 100%;
    max-width: 160px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    animation: agents-skeleton-pulse 1.5s ease-in-out infinite;
}

.agents-scoped-skeleton-box.is-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.agents-scoped-skeleton-box.is-button {
    width: 56px;
    height: 28px;
    border-radius: 999px;
}

.agents-scoped-skeleton-box.is-title {
    max-width: 240px;
    height: 1rem;
}

.agents-scoped-skeleton-box.is-subtext {
    max-width: 120px;
    height: 0.72rem;
    margin-top: 0.4rem;
}

.agents-scoped-movement-cell {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 92px;
}

.agents-scoped-movement-cell strong {
    font-size: 0.84rem;
    line-height: 1.1;
}

.agents-scoped-movement-cell span,
.agents-scoped-movement-cell small {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.2;
}

.agents-scoped-movement-cell.is-positive strong {
    color: #86efac;
}

.agents-scoped-movement-cell.is-negative strong {
    color: #fca5a5;
}

.agents-scoped-run-inline-btn {
    min-width: 56px;
}

.agents-export-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: flex-end;
    margin-bottom: 0.9rem;
}

.agents-export-toolbar-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.agents-export-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.agents-export-status-queued {
    background: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

.agents-export-status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.agents-export-status-completed {
    background: rgba(34, 197, 94, 0.22);
    color: #86efac;
}

.agents-export-status-failed {
    background: rgba(248, 113, 113, 0.22);
    color: #fecaca;
}

.agents-export-status-expired {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.agents-jobs-action-placeholder {
    color: #64748b;
    font-size: 0.85rem;
}

/* -- Alerts Workspace -- */

.agents-alerts-workspace {
    background: rgba(16, 20, 28, 0.95);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 16px;
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.agents-alerts-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.agents-alerts-head-row h2 {
    margin: 0;
    color: #f3f4f6;
}

.agents-notification-bell {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.agents-notification-bell:hover {
    opacity: 1;
    background: rgba(83, 252, 24, 0.08);
    border-color: rgba(83, 252, 24, 0.25);
    color: #f8fafc;
}

.agents-notification-bell[aria-expanded="true"] {
    background: rgba(83, 252, 24, 0.12);
    border-color: rgba(83, 252, 24, 0.28);
    color: #bef264;
}

.agents-notification-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #53fc18;
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(16, 20, 28, 0.95);
}

.agents-notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(420px, calc(100vw - 24px));
    max-height: min(460px, calc(100vh - 140px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(16, 20, 28, 0.98);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 14px;
    z-index: 100;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    margin-top: 0.5rem;
    backdrop-filter: blur(12px);
}

.agents-notification-panel[hidden] {
    display: none !important;
}

.agents-notification-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(16, 20, 28, 0.98);
    color: #f1f5f9;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.agents-notification-panel-head h3 {
    margin: 0;
    font-size: 0.92rem;
}

.agents-notification-filters {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.95rem 0;
}

.agents-notification-filter-btn {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    background: rgba(15, 23, 42, 0.72);
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.agents-notification-filter-btn:hover {
    background: rgba(83, 252, 24, 0.08);
    border-color: rgba(83, 252, 24, 0.2);
    color: #f8fafc;
}

.agents-notification-filter-btn.is-active {
    background: rgba(83, 252, 24, 0.14);
    border-color: rgba(83, 252, 24, 0.26);
    color: #bef264;
}

.agents-notification-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.agents-notification-item {
    padding: 0.72rem 0.78rem;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 0.85rem;
    transition: background 0.12s ease, border-color 0.12s ease;
    margin-bottom: 0.35rem;
}

.agents-notification-item:hover {
    background: rgba(83, 252, 24, 0.06);
    border-color: rgba(83, 252, 24, 0.16);
}

.agents-notification-item.unread {
    background: rgba(83, 252, 24, 0.05);
    border-left: 3px solid #53fc18;
}

.agents-notification-item:last-child {
    margin-bottom: 0;
}

.agents-notification-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.agents-notification-item-main {
    min-width: 0;
    flex: 1;
}

.agents-notification-item-title {
    display: block;
    color: #f8fafc;
}

.agents-notification-item-body {
    margin-top: 0.25rem;
    color: #cbd5e1;
    line-height: 1.45;
    word-break: break-word;
}

.agents-notification-item-time {
    display: block;
    margin-top: 0.45rem;
    color: #94a3b8;
    font-size: 0.76rem;
}

.agents-notification-panel .agents-empty-inline {
    margin: 0;
    padding: 1rem 0.95rem 1.1rem;
}

.agents-notification-panel .agents-btn-small {
    flex-shrink: 0;
}

.agents-alerts-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 1rem;
}

.agents-alerts-tab {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 0.85rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.agents-alerts-tab.active {
    border-bottom-color: #53fc18;
    color: #bef264;
}

.agents-alerts-tab:hover {
    color: #f1f5f9;
}

.agents-alerts-tab-content[hidden] {
    display: none;
}

.agents-alert-form {
    padding: 1rem;
    margin-top: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
}

.agents-alert-form label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.agents-alert-form select,
.agents-alert-form input[type="text"],
.agents-alert-form input[type="number"],
.agents-alert-form input[type="url"] {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    padding: 8px 12px;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.agents-alert-form select:focus,
.agents-alert-form input:focus {
    border-color: rgba(83, 252, 24, 0.7);
    outline: none;
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}

.agents-alert-rule-row,
.agents-schedule-row {
    display: flex;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    gap: 0.75rem;
    color: #e5e7eb;
    font-size: 0.86rem;
}

.agents-alert-rule-row:hover,
.agents-schedule-row:hover {
    background: rgba(83, 252, 24, 0.04);
}

.agents-alert-rule-row:last-child,
.agents-schedule-row:last-child {
    border-bottom: none;
}

.agents-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.agents-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.agents-toggle-slider {
    position: absolute;
    inset: 0;
    background: #334155;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.agents-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.agents-toggle input:checked + .agents-toggle-slider {
    background: #53fc18;
}

.agents-toggle input:checked + .agents-toggle-slider::before {
    transform: translateX(18px);
}

.agents-toggle-label {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 24px;
    cursor: pointer;
}

.agents-toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.agents-toggle-track {
    position: absolute;
    inset: 0;
    background: #334155;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.agents-toggle-track::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.agents-toggle-label input:checked + .agents-toggle-track {
    background: #53fc18;
}

.agents-toggle-label input:checked + .agents-toggle-track::before {
    transform: translateX(18px);
}

.agents-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.16rem 0.55rem;
    background: rgba(83, 252, 24, 0.12);
    border: 1px solid rgba(83, 252, 24, 0.25);
    color: #bef264;
    font-size: 0.74rem;
    font-weight: 600;
}

.agents-url-cell {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agents-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.agents-btn-icon:hover {
    background: rgba(83, 252, 24, 0.08);
    border-color: rgba(83, 252, 24, 0.3);
    color: #f8fafc;
}

.agents-btn-icon-danger:hover {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.agents-schedules-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.agents-streamer-directory {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.34);
    max-height: 620px;
    overflow: auto;
}

.agents-streamer-directory-button {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.agents-streamer-directory-button:hover {
    border-color: rgba(83, 252, 24, 0.28);
    background: rgba(83, 252, 24, 0.06);
    color: #f8fafc;
}

.agents-streamer-directory-button.is-selected {
    border-color: rgba(83, 252, 24, 0.4);
    background: rgba(83, 252, 24, 0.12);
    color: #bef264;
    font-weight: 700;
}

.agents-schedule-table-card,
.agents-schedule-detail-card,
.agents-schedule-history-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.42);
}

.agents-schedule-table-card {
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
}

.agents-schedule-table-head,
.agents-schedule-detail-head,
.agents-schedule-history-head,
.agents-schedule-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
}

.agents-schedule-table-head h3,
.agents-schedule-detail-head h3,
.agents-schedule-history-head h4 {
    margin: 0;
    color: #f8fafc;
}

.agents-schedule-table-subtitle,
.agents-schedule-detail-subtitle,
.agents-schedule-history-caption,
.agents-schedule-table-meta,
.agents-schedule-detail-kicker {
    color: #94a3b8;
    font-size: 0.82rem;
}

.agents-schedule-detail-card {
    margin-top: 1rem;
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.agents-schedule-chip-row,
.agents-schedule-target-list,
.agents-schedule-card-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.agents-schedule-pill {
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

.agents-schedule-state.is-enabled {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.agents-schedule-state.is-disabled {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
}

.agents-schedule-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.agents-schedule-detail-item,
.agents-schedule-detail-block {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.8rem;
}

.agents-schedule-detail-label {
    display: block;
    color: #94a3b8;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.agents-schedule-detail-value {
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.45;
    word-break: break-word;
}

.agents-schedule-target-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(83, 252, 24, 0.1);
    border: 1px solid rgba(83, 252, 24, 0.2);
    color: #bef264;
    font-size: 0.78rem;
}

.agents-schedule-history-card {
    padding: 1rem;
}

.agents-schedule-history-list {
    display: grid;
    gap: 0.6rem;
}

.agents-schedule-history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.46);
}

.agents-schedule-history-main {
    flex: 1;
    min-width: 0;
}

.agents-schedule-history-title {
    display: block;
    margin-top: 0.35rem;
    color: #f8fafc;
}

.agents-schedule-history-meta {
    margin-top: 0.3rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

.agents-schedule-history-error {
    margin-top: 0.4rem;
    color: #fecaca;
    font-size: 0.8rem;
}

.agents-schedule-history-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.agents-schedule-table-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.agents-schedule-empty-state {
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 900px) {
    .agents-comparison-sort-wrap {
        width: 100%;
    }

    .agents-comparison-sort-wrap select {
        min-width: 0;
    }

    .agents-alerts-workspace {
        padding: 0.8rem;
    }

    .agents-alerts-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .agents-notification-panel {
        position: relative;
        width: 100%;
        max-height: none;
    }

    .agents-notification-panel-head {
        flex-wrap: wrap;
    }

    .agents-notification-filters {
        padding-top: 0.7rem;
        flex-wrap: wrap;
    }

    .agents-notification-list {
        max-height: 320px;
    }

    .agents-alerts-tabs {
        flex-wrap: wrap;
    }

    .agents-alert-form select,
    .agents-alert-form input[type="text"],
    .agents-alert-form input[type="number"],
    .agents-alert-form input[type="url"] {
        width: 100%;
    }

    .agents-alert-rule-row,
    .agents-schedule-row {
        flex-wrap: wrap;
    }

    .agents-schedules-layout,
    .agents-schedule-detail-grid {
        grid-template-columns: 1fr;
    }

    .agents-schedule-detail-head,
    .agents-schedule-table-head,
    .agents-schedule-history-item,
    .agents-schedule-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .agents-schedule-card-action-buttons,
    .agents-schedule-history-actions {
        width: 100%;
        justify-content: stretch;
    }

    .agents-schedule-card-action-buttons .agents-btn,
    .agents-schedule-history-actions .agents-btn {
        width: 100%;
    }
}
/* === Alternatives Discovery === */

.agents-alternatives-workspace {
    background: rgba(16, 20, 28, 0.95);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 16px;
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.agents-alternatives-section { margin-top: 0; }

/* Seed picker */
.agents-alternatives-seed-picker { margin-bottom: 1rem; }
.agents-alternatives-seed-picker .agents-streamer-list {
    display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0;
}

/* Filters */
.agents-alternatives-filters {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}
.agents-alternatives-filters h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Results table */
.agents-alt-results-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}
.agents-alt-results-table {
    width: 100%;
    border-collapse: collapse;
}
.agents-alt-results-table th {
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.65rem;
    text-align: center;
    border-bottom: 2px solid rgba(148, 163, 184, 0.25);
    white-space: nowrap;
}
.agents-alt-results-table th:first-child {
    text-align: left;
    padding-left: 0.75rem;
}
.agents-alt-results-table td {
    padding: 0.55rem 0.65rem;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.85rem;
    color: #e2e8f0;
    white-space: nowrap;
}
.agents-alt-results-table td:first-child {
    text-align: left;
    padding-left: 0.75rem;
}
.agents-alt-results-table tbody tr {
    transition: background 0.15s;
}
.agents-alt-results-table tbody tr:hover {
    background: rgba(83, 252, 24, 0.04);
}
.agents-alt-results-table .agents-alt-seed-row td {
    font-weight: 700;
    color: #53fc18;
    border-bottom: 2px solid rgba(83, 252, 24, 0.2);
    background: rgba(83, 252, 24, 0.04);
}

/* Streamer cell (avatar + name) */
.agents-alt-streamer-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 160px;
}
.agents-alt-avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid rgba(148, 163, 184, 0.25);
    flex-shrink: 0;
}
.agents-alt-slug {
    font-weight: 600; font-size: 0.88rem;
    color: #f8fafc; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.agents-alt-slug:hover { color: #53fc18; }

/* Score badge */
.agents-alt-score-badge {
    display: inline-block;
    font-size: 0.8rem; font-weight: 700;
    color: #020617;
    background: linear-gradient(135deg, #53fc18, #00b894);
    padding: 2px 8px; border-radius: 8px;
    min-width: 38px; text-align: center;
}
.agents-alt-score-badge--low {
    background: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}
.agents-alt-score-badge--medium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #020617;
}

/* Value with sub-percentage */
.agents-alt-val {
    font-weight: 600;
    color: #f8fafc;
}
.agents-alt-pct {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-left: 3px;
}

/* Category tags inside table */
.agents-alt-cat-tags {
    display: flex; flex-wrap: wrap; gap: 0.3rem;
    justify-content: center;
}
.agents-alt-category-tag {
    background: rgba(51, 65, 85, 0.4); color: #cbd5e1;
    font-size: 0.7rem; padding: 1px 6px; border-radius: 5px;
    white-space: nowrap;
}

/* Rationale text */
.agents-alt-rationale-text {
    font-size: 0.75rem; color: #94a3b8; font-style: italic;
    max-width: 220px; white-space: normal; line-height: 1.3;
}

/* Smaller badge */
.agents-alt-smaller-tag {
    display: inline-block;
    font-size: 0.65rem; font-weight: 600;
    color: #53fc18; background: rgba(83, 252, 24, 0.1);
    border: 1px solid rgba(83, 252, 24, 0.25);
    padding: 1px 5px; border-radius: 4px;
    margin-left: 4px;
}

/* Compare checkbox in table */
.agents-alt-results-table input[type="checkbox"] {
    accent-color: #53fc18;
    width: 15px; height: 15px;
    cursor: pointer;
}

/* Seed summary */
.agents-alt-seed-summary {
    display: flex; align-items: center; gap: 1.5rem;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px; padding: 1rem 1.5rem; margin-bottom: 1rem;
}
.agents-alt-metric { text-align: center; }
.agents-alt-metric-label {
    display: block; font-size: 0.7rem; color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px;
}
.agents-alt-metric-value {
    display: block; font-size: 1rem; font-weight: 700; color: #f8fafc;
}

/* Comparison table */
.agents-alt-compare-section { margin-top: 2rem; }
.agents-alt-compare-section table {
    width: 100%; border-collapse: collapse; margin-top: 1rem;
}
.agents-alt-compare-section th,
.agents-alt-compare-section td {
    padding: 0.6rem 1rem; text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.875rem;
}
.agents-alt-compare-section th {
    color: #9ca3af; font-weight: 600;
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px;
}
.agents-alt-compare-section td.anchor { font-weight: 700; }
.agents-alt-delta-positive { color: #86efac; }
.agents-alt-delta-negative { color: #fca5a5; }

/* Replace strategy bar */
.agents-alt-replace-section { margin-top: 2rem; }
.agents-alt-replace-bar {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px; padding: 1.25rem; margin-top: 1rem;
}
.agents-alt-replace-bar-visual {
    position: relative; height: 32px; background: rgba(51, 65, 85, 0.4);
    border-radius: 8px; overflow: hidden; margin: 1rem 0;
}
.agents-alt-replace-bar-seed {
    position: absolute; top: 0; left: 0; height: 100%;
    background: #94a3b8; border-radius: 8px 0 0 8px;
    width: 100%; opacity: 0.4;
}
.agents-alt-replace-bar-combined {
    position: absolute; top: 0; left: 0; height: 100%;
    background: linear-gradient(90deg, #53fc18, #00b894);
    border-radius: 8px; transition: width 0.4s ease;
}
.agents-alt-replace-text {
    font-size: 0.9rem; color: #f8fafc; text-align: center;
}
.agents-alt-replace-text strong { font-size: 1.1rem; }

/* Loading / empty states */
.agents-alternatives-section .agents-empty-state {
    text-align: center; padding: 3rem; color: #94a3b8;
}
.agents-alternatives-section .agents-empty-state i { font-size: 2rem; margin-bottom: 1rem; display: block; }

/* Alternatives skeleton loading */
.agents-alt-loading-hint {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.agents-alt-skeleton-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.agents-alt-skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    pointer-events: none;
}

.agents-alt-skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.15);
    animation: agents-skeleton-pulse 1.5s ease-in-out infinite;
}

.agents-alt-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.15);
    animation: agents-skeleton-pulse 1.5s ease-in-out infinite;
}

.agents-alt-skeleton-line--wide  { width: 80%; }
.agents-alt-skeleton-line--medium { width: 55%; }
.agents-alt-skeleton-line--narrow { width: 35%; }

/* Pagination */
.agents-alt-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem 0.25rem;
    gap: 1rem;
}
.agents-alt-pagination-info {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}
.agents-alt-pagination-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}
.agents-alt-page-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    min-width: 32px;
    text-align: center;
}
.agents-alt-page-btn:hover:not(:disabled) {
    background: rgba(83, 252, 24, 0.1);
    border-color: rgba(83, 252, 24, 0.4);
    color: #f8fafc;
}
.agents-alt-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.agents-alt-page-btn--active {
    background: rgba(83, 252, 24, 0.18);
    border-color: rgba(83, 252, 24, 0.5);
    color: #bef264;
    font-weight: 700;
}

/* Quick actions (save / export) */
.agents-alt-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.agents-alt-action-status {
    font-size: 0.82rem;
    margin-left: 0.5rem;
}
.agents-alt-action-status.success { color: #86efac; }
.agents-alt-action-status.error   { color: #fca5a5; }

/* Responsive */
@media (max-width: 768px) {
    .agents-alt-results-table { font-size: 0.78rem; }
    .agents-alt-results-table th,
    .agents-alt-results-table td { padding: 0.4rem 0.35rem; }
    .agents-alt-avatar { width: 26px; height: 26px; }
    .agents-alt-streamer-cell { min-width: 120px; gap: 0.4rem; }
    .agents-alt-seed-summary { flex-direction: column; gap: 0.75rem; text-align: center; }
    .agents-quality-card-grid,
    .agents-quality-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .agents-quality-detail summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Skeleton loading state */
@keyframes agents-skeleton-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.agents-skeleton-loading .agents-report-card p,
.agents-skeleton-loading .agents-report-panel,
.agents-skeleton-loading .agents-table-wrap,
.agents-skeleton-loading .agents-report-summary-head {
    animation: agents-skeleton-pulse 1.5s ease-in-out infinite;
}

.agents-skeleton-loading .agents-report-card p {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 6px;
    color: transparent;
    min-height: 2rem;
}

.agents-skeleton-loading .agents-report-panel,
.agents-skeleton-loading .agents-table-wrap {
    min-height: 120px;
    background: rgba(148, 163, 184, 0.08);
    border-radius: 8px;
}

.agents-skeleton-loading .agents-report-summary-head h3,
.agents-skeleton-loading .agents-comparison-sort-wrap {
    color: transparent;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 6px;
}

.agents-skeleton-loading .agents-comparison-sort-wrap select {
    visibility: hidden;
}

/* No-stream trend rows */
.agents-trend-no-stream {
    opacity: 0.45;
}

.agents-trend-no-stream td {
    color: #64748b;
    font-style: italic;
}

/* -- Comparison Date Row -- */

.agents-comparison-date-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 0.75rem;
}

.agents-comparison-date-row input[type="date"] {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    padding: 0.58rem 0.7rem;
}

.agents-comparison-date-row input[type="date"]:focus {
    outline: none;
    border-color: rgba(83, 252, 24, 0.7);
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}

/* -- Comparison Period Tabs -- */

.agents-comparison-period-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 0.6rem;
}

.agents-comparison-period-tab {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.75);
    color: #cbd5e1;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.agents-comparison-period-tab:hover {
    background: rgba(83, 252, 24, 0.08);
    border-color: rgba(83, 252, 24, 0.35);
    color: #f1f5f9;
}

.agents-comparison-period-tab.active {
    background: rgba(83, 252, 24, 0.18);
    border-color: rgba(83, 252, 24, 0.45);
    color: #bef264;
    font-weight: 600;
}

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

    .agents-comparison-period-tabs {
        gap: 0.3rem;
    }

    .agents-comparison-period-tab {
        font-size: 0.78rem;
        padding: 0.3rem 0.55rem;
    }
}

/* === Streamer Discovery === */

.agents-discovery-workspace {
    background: rgba(16, 20, 28, 0.95);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 16px;
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.agents-discovery-filters {
    display: grid;
    gap: 0.75rem;
}

/* Searchable Category Dropdown */
.agents-disc-category-wrap {
    position: relative;
    width: 100%;
}

.agents-disc-category-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    padding: 0.58rem 2rem 0.58rem 0.7rem;
    font-size: inherit;
}

.agents-disc-category-input:focus {
    outline: none;
    border-color: rgba(83, 252, 24, 0.7);
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}

.agents-disc-category-input::placeholder {
    color: #94a3b8;
}

.agents-disc-category-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
}

.agents-disc-category-clear:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.2);
}

.agents-disc-category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(16, 20, 28, 0.98);
    border: 1px solid rgba(83, 252, 24, 0.2);
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.agents-disc-category-item {
    padding: 0.45rem 0.75rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.1s ease;
}

.agents-disc-category-item:hover {
    background: rgba(83, 252, 24, 0.1);
    color: #f8fafc;
}

.agents-disc-category-item--active {
    background: rgba(83, 252, 24, 0.15);
    color: #bef264;
    font-weight: 600;
}

.agents-disc-category-empty {
    color: #64748b;
    cursor: default;
    font-style: italic;
}

.agents-disc-category-empty:hover {
    background: transparent;
    color: #64748b;
}

/* Category search autocomplete (alerts) */
.agents-cat-search-wrap {
    position: relative;
    width: 100%;
}
.agents-cat-search-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    padding: 0.58rem 0.7rem;
    font-size: inherit;
}
.agents-cat-search-input:focus {
    outline: none;
    border-color: rgba(83, 252, 24, 0.7);
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}
.agents-cat-search-input::placeholder { color: #94a3b8; }
.agents-cat-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(16, 20, 28, 0.98);
    border: 1px solid rgba(83, 252, 24, 0.2);
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.agents-cat-search-item {
    padding: 0.45rem 0.75rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.1s ease;
}
.agents-cat-search-item:hover {
    background: rgba(83, 252, 24, 0.1);
    color: #f8fafc;
}
.agents-cat-search-item--disabled {
    color: #64748b;
    cursor: default;
    font-style: italic;
}
.agents-cat-search-item--disabled:hover {
    background: transparent;
    color: #64748b;
}
.agents-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.agents-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(83, 252, 24, 0.12);
    border: 1px solid rgba(83, 252, 24, 0.25);
    color: #bef264;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.agents-cat-tag-remove {
    background: none;
    border: none;
    color: #bef264;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.7;
}
.agents-cat-tag-remove:hover { opacity: 1; }

.agents-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.58rem 0;
}

.agents-checkbox-label input[type="checkbox"] {
    accent-color: #53fc18;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Rising Talent badge */
.agents-disc-talent-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fcd34d;
    letter-spacing: 0.02em;
}

/* Live badge */
.agents-disc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f87171;
    letter-spacing: 0.03em;
}

.agents-disc-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: agents-disc-live-pulse 1.5s ease-in-out infinite;
}

@keyframes agents-disc-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Trending badge */
.agents-disc-trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.78rem;
    font-weight: 600;
}

.agents-disc-trending-rising {
    color: #86efac;
}

.agents-disc-trending-falling {
    color: #fca5a5;
}

.agents-disc-trending-stable {
    color: #94a3b8;
}

/* Talent banner */
.agents-disc-talent-banner {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: #fcd34d;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Discovery report cards */
.agents-disc-report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem;
    margin: 1rem 0;
}

.agents-disc-report-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.5);
    padding: 0.75rem;
}

.agents-disc-report-card h4 {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.82rem;
}

.agents-disc-report-card p {
    margin: 0.4rem 0 0;
    color: #53fc18;
    font-size: 1.2rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .agents-discovery-workspace {
        padding: 0.8rem;
    }
}



