/* File Purpose: Standalone character-library page chrome (character-creator.html).
 * Primary Functions/Classes: .library-header, .library-list-pane, .library-editor-pane,
 * .library-entry, .library-toast.
 * Inputs and Outputs (I/O): Consumes DOM emitted by character-creator.html's inline boot
 * script; styles the library list, editor pane, and transient toast notifications.
 *
 * Imports vn-charcreation.css for the creator surface itself; this file only
 * covers the library shell (header, list, editor frame). The shared aesthetic
 * matches the VN runtime + Studio for visual consistency.
 */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #0a0d18;
    color: rgba(255, 255, 255, 0.92);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
}

.character-library-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.library-header {
    background: linear-gradient(180deg, rgba(20, 22, 32, 0.95), rgba(12, 14, 22, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    flex-shrink: 0;
}

.library-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.library-header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.library-tag {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.library-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.library-btn {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.library-btn-primary {
    background: linear-gradient(135deg, #4a6fa5, #5a3d8a);
    border-color: rgba(138, 180, 248, 0.55);
    color: #fff;
}

.library-btn:hover {
    filter: brightness(1.1);
}

.library-btn:focus-visible {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
}

.library-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 18px;
    padding: 18px 24px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.library-list-pane {
    background: rgba(20, 22, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.library-list-pane h2 {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.library-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.library-empty {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.85rem;
    font-style: italic;
    padding: 8px;
}

.library-entry {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 8px 8px 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Wave C signature color: 3px stripe on the inner edge. Falls back to
     * a transparent border when no color set; deterministic-from-id default
     * is computed inline in character-creator.html's renderList. */
    border-left: 3px solid var(--sig-color, transparent);
    border-radius: 6px;
}

.library-entry:hover {
    background: rgba(138, 180, 248, 0.10);
    border-color: rgba(138, 180, 248, 0.3);
}

.library-entry-thumb {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.library-entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-entry-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.1), rgba(216, 122, 247, 0.1));
}

.library-entry-name {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.library-entry-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.library-entry-actions {
    display: flex;
    gap: 4px;
}

.library-entry-edit,
.library-entry-delete {
    min-width: 36px;
    min-height: 36px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
}

.library-entry-edit:hover { background: rgba(138, 180, 248, 0.22); }
.library-entry-delete:hover { background: rgba(247, 122, 122, 0.22); color: #fff; }

.library-entry-edit:focus-visible,
.library-entry-delete:focus-visible {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
}

.library-editor-pane {
    background: rgba(20, 22, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 18px;
    min-height: 480px;
}

.library-editor-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.55);
}

.library-editor-placeholder h2 {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 8px;
}

.library-creator-mount {
    /* The mount target overrides the VN runtime's choices-layer assumptions
     * — the creator wrapper is the only content here, so let it size naturally.
     */
}

.library-creator-mount .vn-char-creation {
    max-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.library-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: rgba(20, 22, 32, 0.95);
    border: 1px solid rgba(138, 180, 248, 0.5);
    border-radius: 6px;
    color: #fff;
    font-size: 0.92rem;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.library-toast-error {
    border-color: rgba(247, 122, 122, 0.7);
}

@media (max-width: 720px) {
    .library-main {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .library-list-pane {
        max-height: 240px;
    }
}

/* =============================================================
 * 2026-05-15 P5 — three-pane layout (list / editor / chat),
 * extended editor sections, per-section "Modify with prompt"
 * buttons, portrait history strip, chat panel + proposal cards.
 * ============================================================= */

.library-main-wide {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(300px, 360px);
    max-width: 1480px;
}

.library-hint {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    line-height: 1.5;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---------- Extended editor (sections) ---------- */
.library-extended-mount {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.library-section {
    background: rgba(20, 22, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.library-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.library-section-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
    flex: 1;
    text-align: left;
    min-height: 32px;
}

.library-section-toggle:focus-visible {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
    border-radius: 4px;
}

.library-section-icon {
    color: #8ab4f8;
    display: inline-flex;
}

.library-section-chev {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 120ms ease;
    display: inline-flex;
}

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

.library-section-modify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 34px;
    background: rgba(138, 180, 248, 0.12);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(138, 180, 248, 0.4);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.library-section-modify:hover {
    background: rgba(138, 180, 248, 0.22);
}

.library-section-modify:focus-visible {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
}

.library-section-modify-icon {
    display: inline-flex;
    color: #b8a4c9;
}

.library-section-help {
    margin: 0;
    padding: 8px 14px 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

.library-section-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Field primitives ---------- */
.library-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.library-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.library-field-help {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
}

.library-field-input,
.library-field-textarea,
.library-field-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 5px;
    width: 100%;
}

.library-field-textarea {
    resize: vertical;
    min-height: 60px;
}

.library-field-input:focus,
.library-field-textarea:focus,
.library-field-select:focus {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
    border-color: rgba(138, 180, 248, 0.5);
}

/* ---------- Attitude + visual style preset chips ---------- */
.library-attitude-presets,
.library-visual-style-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.library-attitude-pill,
.library-visual-style-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    min-height: 28px;
}

.library-attitude-pill:hover,
.library-visual-style-chip:hover {
    background: rgba(138, 180, 248, 0.15);
    border-color: rgba(138, 180, 248, 0.35);
}

.library-attitude-pill.active,
.library-visual-style-chip.active {
    background: rgba(138, 180, 248, 0.3);
    border-color: rgba(138, 180, 248, 0.6);
    color: #fff;
}

.library-attitude-pill:focus-visible,
.library-visual-style-chip:focus-visible {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
}

/* ---------- Chip rows (characteristics, catchphrases, negative prompts) ---------- */
.library-field-chips .library-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 4px;
    min-height: 32px;
}

.library-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(180, 138, 248, 0.18);
    border: 1px solid rgba(180, 138, 248, 0.45);
    color: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 0.82rem;
    border-radius: 14px;
    cursor: pointer;
    min-height: 28px;
}

.library-chip:hover {
    background: rgba(247, 122, 122, 0.2);
    border-color: rgba(247, 122, 122, 0.5);
}

.library-chip-x {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1;
}

.library-chip-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 4px;
}

.library-chip-suggestions-label {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.45);
    margin-right: 4px;
}

.library-chip-suggestion {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    min-height: 24px;
}

.library-chip-suggestion:hover {
    background: rgba(180, 138, 248, 0.12);
    border-color: rgba(180, 138, 248, 0.4);
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Portrait history strip ---------- */
.library-portrait-history {
    background: rgba(20, 22, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
}

.library-portrait-history-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    font-style: italic;
}

.library-portrait-history-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.68);
}

.library-portrait-history-icon {
    color: #c9b896;
    display: inline-flex;
}

.library-portrait-history-count {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.74rem;
    margin-left: auto;
}

.library-portrait-history-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.library-portrait-thumb {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    width: 64px;
    height: 80px;
    padding: 0;
}

.library-portrait-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.library-portrait-thumb-primary {
    border: 2px solid rgba(138, 180, 248, 0.7);
    cursor: default;
}

.library-portrait-thumb-restore:hover {
    border-color: rgba(138, 180, 248, 0.7);
}

.library-portrait-thumb-restore:focus-visible {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
}

.library-portrait-thumb-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1px 4px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.62rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Chat pane ---------- */
.library-chat-pane {
    background: rgba(20, 22, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 130px);
    overflow: hidden;
}

.library-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.library-chat-title {
    color: #b8a4c9;
    display: inline-flex;
}

.library-chat-sub {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1px;
}

.library-chat-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    line-height: 1;
}

.library-chat-close:hover {
    background: rgba(247, 122, 122, 0.2);
}

.library-chat-thread {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
}

.library-chat-empty {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.86rem;
    font-style: italic;
    margin: 0;
}

.library-chat-msg {
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.library-chat-msg-user {
    background: rgba(138, 180, 248, 0.1);
    border-color: rgba(138, 180, 248, 0.3);
}

.library-chat-msg-assistant {
    background: rgba(180, 138, 248, 0.08);
    border-color: rgba(180, 138, 248, 0.25);
}

.library-chat-msg-meta {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.library-chat-msg-body {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Proposal cards */
.library-chat-proposal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    max-height: 50vh;
    overflow-y: auto;
}

.library-chat-proposal-empty {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.library-chat-proposal-clear {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    min-height: 28px;
}

.library-chat-proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.86rem;
}

.library-chat-proposal-source {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.library-op-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.library-op-card-summary {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
    margin-bottom: 6px;
}

.library-op-card-summary code {
    background: rgba(180, 138, 248, 0.15);
    padding: 1px 6px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78em;
}

.library-op-card-summary em {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
}

.library-op-card-actions {
    display: flex;
    gap: 6px;
}

.library-op-accept,
.library-op-reject,
.library-op-accept-all,
.library-op-reject-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.78rem;
    border-radius: 4px;
    cursor: pointer;
}

.library-op-accept,
.library-op-accept-all {
    background: rgba(133, 192, 169, 0.15);
    border-color: rgba(133, 192, 169, 0.45);
    color: #c8e8d8;
}

.library-op-accept:hover,
.library-op-accept-all:hover {
    background: rgba(133, 192, 169, 0.28);
}

.library-op-reject,
.library-op-reject-all {
    background: rgba(247, 122, 122, 0.12);
    border-color: rgba(247, 122, 122, 0.4);
    color: #f4cccc;
}

.library-op-reject:hover,
.library-op-reject-all:hover {
    background: rgba(247, 122, 122, 0.22);
}

.library-op-accept:focus-visible,
.library-op-reject:focus-visible,
.library-op-accept-all:focus-visible,
.library-op-reject-all:focus-visible {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
}

.library-chat-proposal-bulk {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Composer */
.library-chat-form {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    background: rgba(20, 22, 32, 0.92);
}

.library-chat-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 5px;
    resize: vertical;
    min-height: 48px;
}

.library-chat-input:focus {
    outline: 2px solid #8ab4f8;
    outline-offset: 1px;
}

.library-chat-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: stretch;
}

.library-chat-scope {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.82rem;
    padding: 6px 8px;
    border-radius: 5px;
    min-height: 36px;
}

.library-chat-send {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4a6fa5, #5a3d8a);
    border: 1px solid rgba(138, 180, 248, 0.55);
    color: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    min-height: 36px;
}

.library-chat-send:hover { filter: brightness(1.1); }
.library-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.library-chat-send:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 1px; }

.library-chat-send-icon {
    display: inline-flex;
}

@media (max-width: 1080px) {
    .library-main-wide {
        grid-template-columns: minmax(220px, 260px) 1fr;
    }
    .library-chat-pane {
        grid-column: 1 / -1;
        max-height: 480px;
    }
}

@media (max-width: 720px) {
    .library-main-wide {
        grid-template-columns: 1fr;
    }
    .library-section-header {
        flex-wrap: wrap;
    }
    .library-section-modify {
        margin-left: auto;
    }
    .library-chat-pane {
        max-height: 360px;
    }
}

