/* The Help panel (assets/js/support_panel.js): the Help button in the admin
   header and on setup steps, and the slide-over it opens. Scoped .jy-support-*.
   The transcript inside it is the core one (chat_transcript.css). */
.jy-support-help { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem;
    border: 1px solid #d0d5dd; border-radius: 999px; background: #fff; color: #344054; font: inherit;
    font-size: 0.85em; cursor: pointer; white-space: nowrap; }
.jy-support-help:hover { background: #f2f4f7; }
.jy-support-badge { min-width: 1.15rem; padding: 0 0.3rem; border-radius: 999px; background: #1d63d1; color: #fff;
    font-size: 0.72rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.jy-support-badge[hidden] { display: none; }

.jy-support-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; z-index: 1050;
    display: flex; flex-direction: column; background: #fff; border-left: 1px solid #e4e7ec;
    box-shadow: -8px 0 24px rgba(16, 24, 40, 0.12); color: #222; font-size: 0.92rem; }
.jy-support-panel[hidden] { display: none; }
.jy-support-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
    padding: 0.85rem 1rem; border-bottom: 1px solid #eef0f3; }
.jy-support-title { font-weight: 600; font-size: 1rem; }
.jy-support-sub { font-size: 0.76rem; color: #777; }
.jy-support-close { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #666; cursor: pointer; padding: 0 0.25rem; }
.jy-support-body { flex: 1 1 auto; overflow-y: auto; padding: 0.9rem 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.jy-support-muted { color: #777; font-size: 0.82rem; margin: 0; }
.jy-support-notice { padding: 0.6rem 0.75rem; border-radius: 6px; background: #f2f4f7; }
.jy-support-notice.is-warn { background: #fef6e7; color: #7a4a00; }
.jy-support-link { font-size: 0.85rem; }
.jy-support-section { border: 1px solid #eef0f3; border-radius: 6px; padding: 0.35rem 0.6rem; }
.jy-support-section summary { cursor: pointer; font-weight: 600; }
.jy-support-pre { white-space: pre-wrap; font-size: 0.74rem; background: #f7f8fa; padding: 0.5rem; border-radius: 4px;
    max-height: 14rem; overflow: auto; margin: 0.35rem 0 0; }
.jy-support-check { display: block; font-size: 0.82rem; line-height: 1.45; }
.jy-support-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jy-support-btn { display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff;
    color: #344054; font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: none; }
.jy-support-btn:hover { background: #f2f4f7; }
.jy-support-btn.is-primary { background: #1d63d1; border-color: #1d63d1; color: #fff; }
.jy-support-btn.is-primary:hover { background: #1852ad; }
.jy-support-btn[disabled] { opacity: 0.6; cursor: default; }
.jy-support-composer { display: flex; flex-direction: column; gap: 0.4rem; }
.jy-support-composer .jy-support-btn { align-self: flex-end; }
.jy-support-input { width: 100%; box-sizing: border-box; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid #d0d5dd;
    border-radius: 6px; resize: vertical; }
.jy-support-list { display: flex; flex-direction: column; gap: 0.35rem; }
.jy-support-list-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #99a1ab; }
.jy-support-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; text-align: left; padding: 0.5rem 0.6rem;
    border: 1px solid #eef0f3; border-radius: 6px; background: #fff; font: inherit; cursor: pointer; }
.jy-support-item:hover { background: #f7f8fa; }
.jy-support-item.is-unread { border-left: 3px solid #1d63d1; }
.jy-support-item-title { font-weight: 500; }
.jy-support-item-state { font-size: 0.75rem; color: #777; }
.jy-support-back { align-self: flex-start; border: 0; background: none; color: #1d63d1; font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0; }
.jy-support-transcript { padding: 0; gap: 0.9rem; overflow: visible; }
.jy-support-state { font-size: 0.82rem; color: #555; background: #f2f4f7; padding: 0.5rem 0.65rem; border-radius: 6px; }
.jy-support-state[hidden] { display: none; }
.jy-support-thumbs { display: flex; gap: 0.35rem; margin-top: 0.35rem; }
.jy-support-thumb { border: 1px solid #e4e7ec; background: #fff; border-radius: 999px; padding: 0.1rem 0.6rem; font: inherit;
    font-size: 0.74rem; color: #555; cursor: pointer; }
.jy-support-thumb.is-chosen { background: #e8f0fd; border-color: #1d63d1; color: #1d63d1; }
.jy-support-read { color: #777; }
@media (max-width: 600px) {
    .jy-support-panel { width: 100vw; }
}
