/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

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

/* Panel (generic content container — header + body section of a page) */
.panel {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.panel + .panel {
    margin-top: 20px;
}

.panel h3 {
    margin-bottom: 16px;
}

.panel > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: #f8fbfd;
}

.drop-zone svg {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.drop-zone p {
    margin: 8px 0;
}

.drop-zone-hint {
    font-size: 14px;
    color: var(--text-muted);
}

/* Progress Bar */
.upload-progress {
    margin-top: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
}

.missing-warning {
    cursor: pointer;
    color: #e6a700;
    margin-left: 2px;
    font-size: 14px;
}

/* Result Messages */
.upload-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.upload-result.success {
    background: var(--success-bg);
    color: var(--success);
}

.upload-result.error {
    background: var(--error-bg);
    color: var(--error);
}

.upload-result.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Code/Data Display */
.code-display {
    margin-top: 16px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    font-family: monospace;
}

/* Textarea */
.textarea-code {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-group .btn {
    max-width: 200px;
}

.btn.btn-success {
    background: #28a745;
}

.btn.btn-success:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn.btn-secondary {
    background: #495057;
}

/* Token Display */
.token-display {
    margin-top: 16px;
}

.token-display label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.token-input-group {
    display: flex;
    gap: 8px;
}

.token-input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    background: #f8f9fa;
}

.token-input-group .btn {
    width: auto;
    padding: 12px 20px;
}

.token-hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

/* Toaster */
.toaster {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toaster.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
}

.toaster.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stats-card {
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.stats-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.stats-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stats-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.stats-action {
    color: var(--text-secondary);
}

.stats-count {
    font-weight: 500;
    color: var(--text-primary);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    margin: 0;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
}

.collapse-toggle {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.collapse-toggle.expanded {
    transform: rotate(180deg);
}

/* Icon Button */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Refresh icon button — uses mask-image so the SVG inherits currentColor */
.btn-refresh::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'/%3E%3C/svg%3E") no-repeat center / contain;
}

.btn-refresh.is-loading::before {
    animation: spin 0.8s linear infinite;
}

.btn-refresh.is-loading {
    cursor: default;
}

/* Sync icon button — semantically distinct from refresh: "request fresh data from
   the outside world" (triggers a real scrape) vs. refresh's "reload from server" */
.btn-sync::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 9.75v6.75m0 0-3-3m3 3 3-3m-8.25 6a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 9.75v6.75m0 0-3-3m3 3 3-3m-8.25 6a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Clear Button (× overlay inside autocomplete inputs) */
.btn-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 4px;
    font-size: 18px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 1;
}

.btn-clear:hover {
    color: var(--danger, #e74c3c);
}

/* Warning Banner (reusable global component) */
.warning-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 32px 12px 16px;
    background: var(--error-bg, #fee2e2);
    border: 1px solid var(--error-border, #fca5a5);
    border-radius: 8px;
    margin: 16px 24px 0;
    position: relative;
}

.warning-banner-message {
    margin: 0;
    flex: 1;
    font-weight: 500;
    color: var(--error, #dc2626);
}

.warning-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.warning-banner-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--error, #dc2626);
    opacity: 0.6;
    padding: 0 4px;
}

.warning-banner-dismiss:hover {
    opacity: 1;
}

/* Export List */
.export-select-actions {
    margin: 8px 0 4px;
    font-size: 14px;
}

.export-select-actions .separator {
    color: var(--text-secondary);
    margin: 0 4px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    opacity: 0.8;
}


.export-list {
    margin: 8px 0 20px;
    padding-left: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.export-list label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-list input[type="checkbox"] {
    cursor: pointer;
}

/* Analytics */
.score-prompt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.score-prompt-row .prompt-description {
    margin-top: 0;
}

.outreach-context {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.outreach-context-row {
    display: flex;
    gap: 8px;
}

.outreach-context-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.outreach-context-value {
    color: var(--text-primary);
    word-break: break-word;
}

.destination-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.destination-chip {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    background: var(--bg-dark, #d1d5db);
    color: var(--text-muted);
}

.destination-chip.selected {
    background: var(--accent, #3b82f6);
    color: #fff;
}

.score-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.score-input {
    flex: 1;
    max-width: 300px;
    padding: 3px 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

select.score-input {
    padding: 10px;
    min-width: 400px;
}

.prompt-description {
    font-size: 12px;
    color: var(--text-secondary, #666);
    margin-top: 4px;
    min-height: 1.2em;
}

.prompt-name-hint {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    min-height: 1.4em;
    color: var(--text-secondary, #666);
}
.prompt-name-hint.hint-warn {
    color: #e67e22;
}
.prompt-name-hint.hint-ok {
    color: #27ae60;
}

.field-error {
    border-color: var(--error) !important;
}

.field-error-message {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: var(--error);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 16px;
}

.stats-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    white-space: nowrap;
}

.stats-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-table tr:hover {
    background: #f8f9fa;
}

.popup-body .stats-table td {
    white-space: normal;
    max-width: 400px;
}

.worker-status-cell {
    white-space: normal !important;
    max-width: 350px !important;
}

.worker-status-chip {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 3px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.worker-status-done {
    background: #d4edda;
    border-color: #b1dfbb;
    color: #155724;
}

.worker-status-failed, .worker-status-failed_max_retries {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #842029;
}

.worker-status-assigned {
    background: #cfe2ff;
    border-color: #9ec5fe;
    color: #084298;
}

.worker-status-pending {
    background: #fff3cd;
    border-color: #ffe69c;
    color: #664d03;
}

.scroll-fade-wrapper {
    position: relative;
}

.scroll-fade-wrapper.has-overflow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(transparent, var(--bg-white));
    pointer-events: none;
    transition: opacity 0.2s;
}

.scroll-fade-wrapper.scrolled-end::after {
    opacity: 0;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.analytics-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    white-space: nowrap;
}

.analytics-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.analytics-table tr:hover {
    background: #f8f9fa;
}

.analytics-vanity {
    font-family: monospace;
    font-size: 12px;
    font-weight: 500;
}

.analytics-model {
    font-size: 11px;
    color: #888;
}

.analytics-date {
    white-space: nowrap;
    font-size: 12px;
    color: #666;
}

.score-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
}

.score-high {
    background: #e8f5e9;
    color: #2e7d32;
}

.score-mid {
    background: #fff3e0;
    color: #e65100;
}

.score-low {
    background: #ffebee;
    color: #c62828;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    min-width: 220px;
}

.feedback-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #555;
}

.feedback-form select,
.feedback-form input[type="number"],
.feedback-form textarea {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
}

.feedback-form textarea {
    resize: vertical;
}

.feedback-irrelevant-label {
    flex-direction: row !important;
    align-items: center;
    gap: 6px !important;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    align-self: flex-start;
}

/* Autocomplete */
.autocomplete-wrapper {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-family: monospace;
}

.autocomplete-item:hover {
    background: var(--bg-light);
}

.autocomplete-empty {
    color: #999;
    cursor: default;
    font-family: inherit;
}

.autocomplete-empty:hover {
    background: none;
}

/* Impersonation Banner */
.impersonation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: #dc3545;
    color: #fff;
    padding: 8px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.impersonation-banner button {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    margin-left: 4px;
}

.impersonation-banner button:hover {
    color: #ffd;
}

/* ICP Status Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-idle {
    background: var(--border-color, #e2e8f0);
    color: var(--text-secondary, #666);
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-active {
    background: #dbeafe;
    color: #1e40af;
    animation: pulse-badge 1.5s ease-in-out infinite;
}

.badge-completed {
    background: #d1fae5;
    color: #065f46;
}

.badge-failed {
    background: #fee2e2;
    color: #991b1b;
}

.badge-paused {
    background: #fef3c7;
    color: #92400e;
    animation: pulse-badge 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.badge-poc {
    background: #ede9fe;
    color: #5b21b6;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.poc-sample-warning {
    font-size: 12px;
    color: var(--text-secondary, #666);
    margin: 0 0 4px;
    font-style: italic;
}

.actions-cell {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.actions-cell .btn-icon {
    font-size: 16px;
    padding: 4px 6px;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.7;
}

.actions-cell .btn-icon.btn-play:not(:disabled) {
    color: #22c55e;
}

.actions-cell .btn-icon:hover:not(:disabled) {
    opacity: 1;
}

.actions-cell .btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ─── ICP Chips & Excluded List ──────────────── */

.icp-chip-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.icp-chip-input-row input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.btn-add-round {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #666);
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.btn-add-round:hover {
    background: var(--border-color);
    color: var(--text-primary, #333);
}

.icp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.icp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    background: var(--bg-dark, #e5e7eb);
    color: var(--text-primary);
}

.icp-chip .icp-chip-x {
    cursor: pointer;
    opacity: 0.5;
    font-size: 0.75rem;
    padding: 0 2px;
    line-height: 1;
}

.icp-chip .icp-chip-x:hover {
    opacity: 1;
}

.icp-excluded-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.icp-excluded-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg-light);
    font-size: 0.85rem;
}

.icp-excluded-row .excluded-name {
    font-weight: 600;
    flex-shrink: 0;
}

.icp-excluded-row .excluded-reason {
    flex: 1;
    color: var(--text-secondary);
}

.icp-excluded-row .icp-chip-x {
    cursor: pointer;
    opacity: 0.5;
    flex-shrink: 0;
}

.icp-excluded-row .icp-chip-x:hover {
    opacity: 1;
}

.clickable-cell {
    cursor: pointer;
}

.clickable-cell:hover {
    text-decoration: underline;
    color: var(--primary);
}

.icp-detail-section {
    margin-bottom: 16px;
}

.icp-detail-section h4 {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.icp-detail-section pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.5;
}

.icp-excluded-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.icp-excluded-input-row input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.icp-excluded-input-row input:first-child {
    width: 35%;
}

.icp-excluded-input-row input:nth-child(2) {
    flex: 1;
}

/* --- Recommendations --- */

#recommendationsPage .score-input {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.form-group label.toggle-switch {
    display: inline-flex;
}

#recommendationsPage .btn-group .btn {
    white-space: nowrap;
}

.required {
    color: var(--error);
    margin-left: 2px;
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.rec-action-block {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.rec-action-block .rec-action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rec-action-block .rec-action-remove {
    cursor: pointer;
    color: var(--error);
    font-size: 0.8rem;
    opacity: 0.6;
}

.rec-action-block .rec-action-remove:hover {
    opacity: 1;
}

.rec-action-block .form-group {
    margin-bottom: 8px;
}

.rec-action-block .form-group:last-child {
    margin-bottom: 0;
}

.rec-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
}

.rec-autocomplete-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.rec-autocomplete-item .rec-autocomplete-name {
    font-weight: 500;
}

.rec-autocomplete-item .rec-autocomplete-vanity {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Help icon — white "?" on a solid blue circle. Use with a `title` attribute for the tooltip. */
.help-icon {
    color: white;
    cursor: help;
    font-weight: bold;
    background: var(--primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}
