.ai-toggle-btn {
    margin-left: 8px;
    height: 32px;
    min-width: 34px;
    padding: 4px 8px;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
}

.ai-toggle-btn:hover {
    border-color: #c9d3e0;
    background: #f6f9ff;
}

.ai-toggle-btn.active {
    border-color: #a9bfdc;
    background: #eaf2ff;
}

.ai-toggle-btn:active,
.ai-toggle-btn.active:active,
.ai-toggle-btn.active {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.ai-toggle-brand {
    display: inline;
    color: #526173;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ai-toggle-btn.active .ai-toggle-brand {
    color: #2f4f79;
}

/* AI "find" skill highlights in chapter body (legacy fallback if w2utils.marker missing) */
#contentBody .book-agent-find-highlight {
    background-color: rgba(255, 230, 120, 0.55);
    border-bottom: 1px solid #c9a227;
    border-radius: 2px;
}

.dark-theme #contentBody .book-agent-find-highlight {
    background-color: rgba(252, 211, 77, 0.38);
    border-bottom: 1px solid #f59e0b;
}

/* w2utils.marker highlight in chapter (w2ui default is purple; keep readable on book text) */
#contentBody .w2ui-marker {
    background-color: rgba(255, 230, 120, 0.65) !important;
    border-bottom: 1px solid #c9a227;
    border-radius: 2px;
}

.dark-theme #contentBody .w2ui-marker {
    background-color: rgba(252, 211, 77, 0.42) !important;
    border-bottom: 1px solid #f59e0b;
}

/* Book Agent side panel */
#bookAgentPanel.book-agent-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    min-width: 0;
    max-width: none;
    background: #ffffff;
    border-left: 1px solid #d9dfe7;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.08);
    z-index: 1350;
    display: none;
    flex-direction: column;
    user-select: none;
    overflow: hidden;
    transition: width 0.18s ease;
    --book-agent-hover-width: 450px;
    font-size: 115%;
}

#bookAgentPanel.book-agent-panel.open {
    display: flex;
}

#bookAgentPanel.book-agent-panel.collapsed {
    width: 40px !important;
    /* Lighter tint of book-header gradient (135deg #667eea → #764ba2) */
    background: linear-gradient(165deg, #e9ecff 0%, #f0e9ff 42%, #ebe4f8 100%);
    border-left: 1px solid rgba(118, 75, 162, 0.2);
    box-shadow: -6px 0 18px rgba(102, 126, 234, 0.1);
}

#bookAgentPanel.book-agent-panel.collapsed::before {
    content: "✦";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #6b5b95;
    font-size: 16px;
    font-weight: 600;
    z-index: 2;
}

/* Find / speak result step-through (inside assistant bubble) */
.book-agent-find-nav,
.book-agent-speak-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.book-agent-poll-action {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.book-agent-image-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.book-agent-image-open {
    display: inline-block;
    margin: 0;
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    cursor: zoom-in;
    max-width: 100%;
    line-height: 0;
}

.book-agent-image-open:focus-visible {
    outline: 2px solid #6ea8fe;
    outline-offset: 2px;
}

.book-agent-chat-image-thumb {
    display: block;
    max-width: min(280px, 100%);
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.dark-theme .book-agent-image-block {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .book-agent-image-open {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(40, 44, 52, 0.55);
}

.book-agent-message.ai-message .message-content pre code{
    display: block;
    height: 80px;
    resize: vertical;
    overflow: auto;
    }
/* Live stream: JSON fence preview — fixed height, hidden scrollbars, JS tallies to bottom */
.book-agent-message.ai-message .message-content pre.book-agent-json-stream-preview {
    max-height: 80px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.book-agent-message.ai-message .message-content pre.book-agent-json-stream-preview::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.book-agent-find-nav .book-agent-find-prev,
.book-agent-find-nav .book-agent-find-next,
.book-agent-speak-nav .book-agent-speak-prev,
.book-agent-speak-nav .book-agent-speak-next {
    flex: 0 0 auto;
    user-select: none;
    -webkit-user-select: none;
    min-width: 36px;
    width: 36px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    border: 1px solid #c5cad3;
    border-radius: 6px;
    color: #3d4556;
    background: #e9ecef;
    cursor: pointer;
    box-shadow: none;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.book-agent-find-nav .book-agent-find-prev:hover:not(:disabled),
.book-agent-find-nav .book-agent-find-next:hover:not(:disabled),
.book-agent-speak-nav .book-agent-speak-prev:hover:not(:disabled),
.book-agent-speak-nav .book-agent-speak-next:hover:not(:disabled) {
    background: #dde1e6;
    border-color: #aeb5c2;
    color: #1e293b;
}

.book-agent-find-nav .book-agent-find-prev:active:not(:disabled),
.book-agent-find-nav .book-agent-find-next:active:not(:disabled),
.book-agent-speak-nav .book-agent-speak-prev:active:not(:disabled),
.book-agent-speak-nav .book-agent-speak-next:active:not(:disabled) {
    background: #d1d6dd;
}

.book-agent-find-nav .book-agent-find-prev:disabled,
.book-agent-find-nav .book-agent-find-next:disabled,
.book-agent-speak-nav .book-agent-speak-prev:disabled,
.book-agent-speak-nav .book-agent-speak-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f0f2f5;
    border-color: #dde1e6;
    color: #94a3b8;
}

.book-agent-find-nav .book-agent-find-count,
.book-agent-speak-nav .book-agent-speak-count {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    min-width: 3.2em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.book-agent-find-nav .book-agent-find-status,
.book-agent-speak-nav .book-agent-speak-status {
    color: #c62828;
    font-size: 12px;
    font-weight: 600;
}

.book-agent-find-nav .book-agent-find-detail,
.book-agent-speak-nav .book-agent-speak-detail {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(75, 159, 255, 0.35);
    line-height: 1.4;
    /* Set in JS: 90% of #contentBody computed font */
    font-size: var(--book-agent-find-preview-font-size, inherit);
}

.book-agent-find-nav .book-agent-find-quote,
.book-agent-find-nav .book-agent-find-pronunciation,
.book-agent-find-nav .book-agent-find-note,
.book-agent-speak-nav .book-agent-speak-quote,
.book-agent-speak-nav .book-agent-speak-note {
    margin: 0;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

.book-agent-find-nav .book-agent-find-pronunciation,
.book-agent-find-nav .book-agent-find-note,
.book-agent-speak-nav .book-agent-speak-note {
    margin-top: 4px;
    color: #526173;
    font-style: normal;
}

#bookAgentPanel.book-agent-panel.collapsed:not(:hover):not(:focus-within) .book-agent-header,
#bookAgentPanel.book-agent-panel.collapsed:not(:hover):not(:focus-within) .book-agent-tabs,
#bookAgentPanel.book-agent-panel.collapsed:not(:hover):not(:focus-within) .book-agent-messages,
#bookAgentPanel.book-agent-panel.collapsed:not(:hover):not(:focus-within) .book-agent-input {
    visibility: hidden;
}

#bookAgentPanel.book-agent-panel.collapsed:hover,
#bookAgentPanel.book-agent-panel.collapsed:focus-within {
    width: var(--book-agent-hover-width) !important;
    box-shadow: -12px 0 24px rgba(0, 0, 0, 0.18);
}

#bookAgentPanel.book-agent-panel.collapsed:hover::before,
#bookAgentPanel.book-agent-panel.collapsed:focus-within::before {
    display: none;
}

@media (max-width: 1024px) {
    .ai-input-container {
        max-width: none;
        flex: 0 0 auto;
    }
}

@media (max-width: 767.98px) {
    .ai-input-container .ai-input-wrapper {
        display: none;
    }

    #bookAgentPanel.book-agent-panel {
        top: 0 !important;
        left: 100%;
        right: auto;
        bottom: 0;
        width: 100% !important;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        transform: none;
        transition: left 0.22s ease;
        display: flex;
        visibility: hidden;
        pointer-events: none;
        box-sizing: border-box;
        border-left: none;
        overflow-x: hidden;
    }

    #bookAgentPanel.book-agent-panel.open {
        left: 0;
        visibility: visible;
        pointer-events: auto;
    }

    /* Ensure internals are never hidden on mobile drawer mode. */
    #bookAgentPanel.book-agent-panel .book-agent-header,
    #bookAgentPanel.book-agent-panel .book-agent-tabs,
    #bookAgentPanel.book-agent-panel .book-agent-messages,
    #bookAgentPanel.book-agent-panel .book-agent-input {
        visibility: visible !important;
    }

    #bookAgentPanel.book-agent-panel .book-agent-input {
        display: block !important;
    }

    #bookAgentPanel.book-agent-panel .book-agent-messages {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #bookAgentPanel.book-agent-panel .book-agent-input {
        flex: 0 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #bookAgentPanel.book-agent-panel {
        top: 0 !important;
        right: 0;
        left: auto;
        bottom: 0;
        width: 450px !important;
        max-width: 450px;
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(100%);
        transition: transform 0.22s ease;
        display: flex;
        visibility: hidden;
        pointer-events: none;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #bookAgentPanel.book-agent-panel.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    #bookAgentPanel.book-agent-panel .book-agent-header,
    #bookAgentPanel.book-agent-panel .book-agent-tabs,
    #bookAgentPanel.book-agent-panel .book-agent-messages,
    #bookAgentPanel.book-agent-panel .book-agent-input {
        visibility: visible !important;
    }
}

body.book-agent-mobile-open {
    overflow-x: hidden;
    overflow: hidden;
}

body.book-agent-open .book-header .container,
body.book-agent-open .book-container .container {
    margin-left: 0;
    margin-right: auto;
}

body.book-agent-open.book-agent-collapsed .book-header .container,
body.book-agent-open.book-agent-collapsed .book-container .container {
    margin-left: auto;
    margin-right: auto;
}

.book-agent-tabs {
    display: flex;
    align-items: center;
    justify-content: stretch;
    padding: 10px 2px 5px 2px;
    border-bottom: none;
    background: #fff;
}

.book-agent-w2tabs {
    flex: 1;
    min-width: 0;
    background: #fff;
}

.book-agent-w2tabs .w2ui-tab {
    background: #fff;
}

.book-agent-w2tabs .w2ui-tab-text {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 8px 12px;
}

.book-agent-w2tabs .w2ui-tabs-line {
    border-bottom: none;
}

.book-agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f7f9fc;
    border-bottom: 1px solid #e3e7ee;
    gap: 8px;
}

.book-agent-title-block {
    display: block;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.book-agent-close {
    margin-left: 6px;
    flex-shrink: 0;
}

.book-agent-title {
    display: block;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-agent-context-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

a.book-agent-context-book-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

a.book-agent-context-book-link:hover,
a.book-agent-context-book-link:focus {
    text-decoration: underline;
}

/* Panel uses user-select: none; re-enable here so message text can be copied */
.book-agent-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 14px;
    background: #fff;
    user-select: text;
    -webkit-user-select: text;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox: keep width stable */
    scrollbar-color: transparent transparent;
}

.book-agent-messages::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}

.book-agent-messages::-webkit-scrollbar-track {
    background: transparent;
}

.book-agent-messages::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.book-agent-messages.is-scrolling {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.38) transparent;
}

.book-agent-messages.is-scrolling::-webkit-scrollbar {
    width: 4px;
}

.book-agent-messages.is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.38);
    border-radius: 999px;
}

.book-agent-messages.is-scrolling::-webkit-scrollbar-track {
    background: transparent;
}

.book-agent-empty {
    flex: 1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa4b2;
    font-size: 14px;
}

.book-agent-input {
    border-top: 1px solid #e3e7ee;
    background: #fafbfc;
    padding: 12px;
    user-select: text;
    -webkit-user-select: text;
}

.book-agent-input-row {
    display: flex;
    gap: 8px;
}

#bookAgentInput {
    flex: 1;
}

.book-agent-message {
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: 8px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    user-select: text;
    -webkit-user-select: text;
    font-size: 1em;
}

.book-agent-message.user-message {
    margin-left: 6%;
    margin-right: 0;
    background: #e9f4ff;
    border-left: 4px solid #4b9fff;
}

.book-agent-user-selection-block {
    margin-top: 6px;
}

.book-agent-user-selection-label {
    font-size: 0.9em;
    color: #4a5a6a;
    margin-bottom: 6px;
}

.book-agent-user-excerpt,
.book-agent-user-excerpt-trunc {
    font-size: 1em;
    line-height: 1.45;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(75, 159, 255, 0.35);
    border-radius: 6px;
    padding: 8px 10px;
    max-height: 280px;
    overflow-y: auto;
}

.book-agent-user-excerpt-trunc .book-agent-user-excerpt-more {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    vertical-align: baseline;
    border: 0;
    background: transparent;
    color: #2f6fb8;
    text-decoration: underline;
    cursor: pointer;
}

.book-agent-user-excerpt-trunc .book-agent-user-excerpt-more:hover,
.book-agent-user-excerpt-trunc .book-agent-user-excerpt-more:focus {
    color: #1f4f83;
    text-decoration: underline;
}

.book-agent-user-msg-line {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1em;
}

.book-agent-message.ai-message {
    margin-right: 6%;
    margin-left: 0;
    background: #f5f0ff;
    border-left: 4px solid #9568f3;
}

.book-agent-message.ai-message .message-content,
.book-agent-message.ai-message .message-content * {
    font-size: inherit;
}

/* Waiting for stream: de-emphasize placeholder + elapsed (not final answer) */
.book-agent-message.ai-message .message-content .book-agent-thinking-wait {
    color: #7b8494;
    font-weight: normal;
}

/* AI Assistant dark mode */
.dark-theme .ai-toggle-btn:hover {
    border-color: #4b5666;
    background: #2f3a47;
}

.dark-theme .ai-toggle-btn.active {
    border-color: #5d6f86;
    background: #364456;
}

.dark-theme .ai-toggle-brand,
.dark-theme .ai-toggle-btn.active .ai-toggle-brand {
    color: #c7d2e0;
}

.dark-theme #bookAgentPanel.book-agent-panel {
    background: #222831;
    border-left-color: #3b4452;
    box-shadow: -8px 0 22px rgba(0, 0, 0, 0.45);
}

.dark-theme #bookAgentPanel.book-agent-panel.collapsed {
    background: linear-gradient(165deg, #2a2d3d 0%, #2d2842 48%, #2a2638 100%);
    border-left-color: rgba(167, 139, 250, 0.22);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.35);
}

.dark-theme #bookAgentPanel.book-agent-panel.collapsed::before {
    color: #b8a8dc;
}

.dark-theme .book-agent-tabs,
.dark-theme .book-agent-w2tabs,
.dark-theme .book-agent-w2tabs .w2ui-tab {
    background: #252d38;
}

.dark-theme .book-agent-w2tabs .w2ui-scroll-wrapper .w2ui-tab,
.dark-theme .book-agent-w2tabs .w2ui-scroll-wrapper .w2ui-tab .w2ui-tab-close {
    color: #aebbcf;
}

.dark-theme .book-agent-w2tabs .w2ui-tab.active .w2ui-tab-text {
    color: #e3ebf7;
}

.dark-theme .book-agent-w2tabs .w2ui-tabs-line {
    border-bottom: 1px solid #3b4452 !important;
}

.dark-theme .book-agent-header {
    background: #2a3340;
    border-bottom-color: #3b4452;
    text-shadow: black 0 0 1px;
}

.dark-theme .book-agent-title {
    color: #d7e0ec;
}

.dark-theme .book-agent-context-label {
    color: #93a1b4;
}

.dark-theme a.book-agent-context-book-link {
    color: #7cb3ff;
}

.dark-theme .book-agent-messages {
    background: #222831;
}

.dark-theme .book-agent-empty {
    color: #93a1b4;
}

.dark-theme .book-agent-input {
    background: #2a3340;
    border-top-color: #3b4452;
}

.dark-theme #bookAgentInput.form-control {
    background-color: #1e2530;
    border-color: #465264;
    color: #e5edf9;
}

.dark-theme #bookAgentInput.form-control::placeholder {
    color: #8f9eb2;
}

.dark-theme #bookAgentInput.form-control:focus {
    border-color: #6f9fd8;
    box-shadow: 0 0 0 2px rgba(81, 139, 214, 0.25);
}

.dark-theme .book-agent-message.user-message {
    background: #20344b;
    border-left-color: #5ca8ff;
    color: #d9e8fb;
}

.dark-theme .book-agent-message.ai-message {
    background: #2f2a45;
    border-left-color: #a78bfa;
    color: #e6defb;
}

.dark-theme .book-agent-message.ai-message .message-content,
.dark-theme .book-agent-message.ai-message .message-content * {
    color: #e6defb;
}

.dark-theme .book-agent-message.ai-message .message-content .book-agent-thinking-wait {
    color: #8b95a8;
}

.dark-theme .book-agent-message.ai-message .message-content a {
    color: #9fd0ff;
}

.dark-theme .book-agent-message.ai-message .message-content a:hover,
.dark-theme .book-agent-message.ai-message .message-content a:focus {
    color: #c6e3ff;
}

.dark-theme .book-agent-user-selection-label {
    color: #a9bacf;
}

.dark-theme .book-agent-user-excerpt,
.dark-theme .book-agent-user-excerpt-trunc {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(102, 164, 235, 0.5);
    color: #d5e3f4;
}

.dark-theme .book-agent-user-excerpt-trunc .book-agent-user-excerpt-more {
    color: #8ec4ff;
}

.dark-theme .book-agent-user-excerpt-trunc .book-agent-user-excerpt-more:hover,
.dark-theme .book-agent-user-excerpt-trunc .book-agent-user-excerpt-more:focus {
    color: #b4d8ff;
}

.dark-theme .book-agent-user-msg-line {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.dark-theme .book-agent-find-nav,
.dark-theme .book-agent-speak-nav {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.dark-theme .book-agent-find-nav .book-agent-find-prev,
.dark-theme .book-agent-find-nav .book-agent-find-next,
.dark-theme .book-agent-speak-nav .book-agent-speak-prev,
.dark-theme .book-agent-speak-nav .book-agent-speak-next {
    background: #343f4c;
    border-color: #505d6f;
    color: #d7e3f3;
}

.dark-theme .book-agent-find-nav .book-agent-find-prev:hover:not(:disabled),
.dark-theme .book-agent-find-nav .book-agent-find-next:hover:not(:disabled),
.dark-theme .book-agent-speak-nav .book-agent-speak-prev:hover:not(:disabled),
.dark-theme .book-agent-speak-nav .book-agent-speak-next:hover:not(:disabled) {
    background: #3d4a5a;
    border-color: #687a90;
    color: #ffffff;
}

.dark-theme .book-agent-find-nav .book-agent-find-prev:active:not(:disabled),
.dark-theme .book-agent-find-nav .book-agent-find-next:active:not(:disabled),
.dark-theme .book-agent-speak-nav .book-agent-speak-prev:active:not(:disabled),
.dark-theme .book-agent-speak-nav .book-agent-speak-next:active:not(:disabled) {
    background: #2e3742;
}

.dark-theme .book-agent-find-nav .book-agent-find-prev:disabled,
.dark-theme .book-agent-find-nav .book-agent-find-next:disabled,
.dark-theme .book-agent-speak-nav .book-agent-speak-prev:disabled,
.dark-theme .book-agent-speak-nav .book-agent-speak-next:disabled {
    background: #2a3340;
    border-color: #424f60;
    color: #7d8ba1;
}

.dark-theme .book-agent-find-nav .book-agent-find-count,
.dark-theme .book-agent-speak-nav .book-agent-speak-count {
    color: #d8e2f0;
}

.dark-theme .book-agent-find-nav .book-agent-find-status,
.dark-theme .book-agent-speak-nav .book-agent-speak-status {
    color: #ff8a8a;
}

.dark-theme .book-agent-find-nav .book-agent-find-detail,
.dark-theme .book-agent-speak-nav .book-agent-speak-detail {
    background: rgba(22, 28, 35, 0.75);
    border-color: rgba(117, 176, 247, 0.5);
}

.dark-theme .book-agent-find-nav .book-agent-find-quote,
.dark-theme .book-agent-find-nav .book-agent-find-pronunciation,
.dark-theme .book-agent-find-nav .book-agent-find-note,
.dark-theme .book-agent-speak-nav .book-agent-speak-quote,
.dark-theme .book-agent-speak-nav .book-agent-speak-note {
    color: #d5e0ef;
}

.dark-theme .book-agent-messages.is-scrolling {
    scrollbar-color: rgba(190, 206, 227, 0.45) transparent;
}

.dark-theme .book-agent-messages.is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(190, 206, 227, 0.45);
}

.book-agent-show-quiz,
.book-agent-show-poll,
.book-agent-show-cards,
.book-agent-find-next,
.book-agent-find-prev,
.book-agent-speak-next,
.book-agent-speak-prev {
    font-size: 0.9em;
}