/* Replyvane Chat Support: dashboard screens (settings, live preview, page picker, website knowledge). */
.replyvane-settings-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 32px; }
@media (min-width: 1280px) { .replyvane-settings-layout { grid-template-columns: minmax(0, 1fr) 400px; } }
.replyvane-preview-sticky { position: sticky; top: 46px; padding: 16px; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; }
.replyvane.replyvane-preview { position: relative; inset: auto; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.replyvane.replyvane-preview.replyvane--left { align-items: flex-start; }
.replyvane-preview .replyvane-panel { position: relative !important; inset: auto !important; width: 100% !important; max-width: 340px !important; height: auto !important; animation: none; border-radius: 20px !important; }
.replyvane-preview .replyvane-log { flex: none; overflow: visible; padding: 14px; gap: 8px; }
.replyvane-preview .replyvane-bubble { padding: 8px 12px; font-size: 14px; }
.replyvane-preview .replyvane-q { padding: 7px 12px; font-size: 13.5px; }
.replyvane-preview .replyvane-form { margin-top: 4px; }
.replyvane-preview .replyvane-teaser { position: static; animation: none; }
.replyvane-preview .replyvane-launch { display: flex; align-items: center; justify-content: center; }
.replyvane-preview .replyvane-close { width: 34px; height: 34px; padding: 8px; color: var(--replyvane-on-accent); }
.replyvane-preview .replyvane-form input { pointer-events: none; }
.replyvane-preview .replyvane-send { display: flex; }
.replyvane-preview.no-avatars .replyvane-avatar { display: none; }
.replyvane-preview button { cursor: default; }
.replyvane-color-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.replyvane-color-label { width: 84px; padding-top: 6px; }
.replyvane-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.replyvane-icon-choice { position: relative; cursor: pointer; }
.replyvane-icon-choice input { position: absolute; opacity: 0; }
.replyvane-icon-preview { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; outline: 3px solid transparent; outline-offset: 2px; overflow: hidden; }
.replyvane-icon-preview svg { width: 24px; height: 24px; }
.replyvane-icon-preview img { width: 100%; height: 100%; object-fit: cover; }
.replyvane-icon-choice input:checked + .replyvane-icon-preview { outline-color: #2271b1; }
.replyvane-icon-choice input:focus-visible + .replyvane-icon-preview { outline-color: #72aee6; }
.replyvane-engines { display: grid; gap: 8px; }
.replyvane-engine { display: block; padding: 10px 12px; border: 1px solid #dcdcde; border-radius: 6px; background: #fff; }
.replyvane-engine span { display: block; margin: 2px 0 0 24px; color: #50575e; }
.replyvane-engine:has(input:checked) { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; }
.replyvane-picker { border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; }
.replyvane-picker-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px; border-bottom: 1px solid #dcdcde; }
.replyvane-picker-search { flex: 1; min-width: 220px; }
.replyvane-picker-count { color: #50575e; font-weight: 600; }
.replyvane-picker-list { max-height: 320px; overflow: auto; padding: 4px 10px 10px; }
.replyvane-picker-group h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #50575e; }
.replyvane-picker-group h4 span { font-weight: 400; color: #8c8f94; }
.replyvane-picker-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 4px; }
.replyvane-picker-item:hover { background: #f6f7f7; }
.replyvane-picker-item code { margin-left: auto; font-size: 11px; color: #646970; background: none; }
.replyvane-picker-item:has(input:checked) { background: #fcf0f1; }
.replyvane-picker-item.is-locked, .replyvane-picker-item.is-locked:has(input:checked) { color: #50575e; background: #f6f7f7; cursor: default; }
.replyvane-picker-why { padding: 1px 8px; border-radius: 10px; background: #e0e0e0; color: #3c434a; font-size: 11px; white-space: nowrap; }
.replyvane-help { margin-top: 10px; padding: 8px 12px; background: #fff; border: 1px solid #dcdcde; border-radius: 6px; }
.replyvane-help summary { cursor: pointer; }
.replyvane-help ul { list-style: disc; margin-left: 20px; }

/* Answer engine not available on this WordPress. */
.replyvane-engine.is-unavailable { opacity: .65; }
.replyvane-ai-result { margin-left: 8px; }
.replyvane-ai-result.is-ok { color: #008a20; }
.replyvane-ai-result.is-error { color: #b32d2e; }

/* Website knowledge screen. */
.replyvane-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.replyvane-card { padding: 4px 16px 16px; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; }
.replyvane-card h2 { margin: 14px 0 10px; font-size: 15px; }
.replyvane-card .widefat td:last-child { text-align: right; font-weight: 600; }
.replyvane-try-form { display: flex; gap: 8px; margin: 8px 0; }
.replyvane-try-form input[type=search] { flex: 1; }
.replyvane-try { padding: 12px 16px; background: #fff; border: 1px solid #c3c4c7; border-left: 4px solid #dba617; }
.replyvane-try.is-answer { border-left-color: #00a32a; }
.replyvane-try > p:only-child { margin: 0; }
.replyvane-try-answer { white-space: pre-wrap; }
.replyvane-try .description { margin-top: 10px; }
.replyvane-try-engine { margin: 4px 0 8px; padding: 8px 12px; background: #f0f6fc; border-left: 4px solid #72aee6; }
