/* Minimal glue only. Visual language comes from ghaleb/layouts/apps-chat.html assets. */
:root {
    --br-primary: #155eef;
    --br-primary-2: #00a884;
    --br-accent: #ffb020;
    --br-ink: #1c2534;
}
body {
    background:
        linear-gradient(180deg, rgba(21, 94, 239, .055), transparent 300px),
        var(--osen-body-bg);
}
.bookroom-login-mode .wrapper,
.bookroom-login-mode .offcanvas,
.bookroom-login-mode .modal-backdrop {
    display: none !important;
}
.bookroom-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 75% 18%, rgba(0, 168, 132, .2), transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(21, 94, 239, .18), transparent 34%),
        linear-gradient(135deg, #f6f9ff, #edf8f5);
}
.bookroom-login-panel {
    width: min(440px, 100%);
    border: 1px solid rgba(155, 166, 183, .22);
    border-radius: 22px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 1.5rem 4rem rgba(49, 58, 70, .13);
    backdrop-filter: blur(16px);
}
.bookroom-login-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid rgba(155, 166, 183, .18);
}
.bookroom-login-mark {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: .28rem;
    background: #fff;
    box-shadow: 0 .75rem 1.5rem rgba(21, 94, 239, .18);
    overflow: hidden;
}
.bookroom-login-mark img,
.bookroom-brand-mark img,
.bookroom-sidebar-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.bookroom-login-brand h1,
.bookroom-login-copy h2 {
    margin: 0;
    letter-spacing: 0;
}
.bookroom-login-brand h1 {
    font-size: 1.35rem;
    font-weight: 800;
}
.bookroom-login-brand p,
.bookroom-login-copy p {
    margin: .2rem 0 0;
    color: var(--osen-secondary-color);
}
.bookroom-login-copy {
    margin-bottom: 1.25rem;
}
.bookroom-login-copy h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-top: .75rem;
}
.bookroom-login-form .input-group-text,
.bookroom-login-form .form-control {
    min-height: 2.9rem;
    border-radius: 12px;
}
.bookroom-login-form .input-group .input-group-text {
    border-end-start-radius: 0;
    border-start-start-radius: 0;
}
.bookroom-login-form .input-group .form-control {
    border-end-end-radius: 0;
    border-start-end-radius: 0;
}
.bookroom-login-submit {
    min-height: 2.9rem;
    border-radius: 12px;
    box-shadow: 0 .75rem 1.35rem rgba(21, 94, 239, .18);
}
.app-topbar,
.page-content,
.footer {
    margin-right: 0 !important;
}
.app-topbar .logo {
    display: inline-flex !important;
    align-items: center;
}
.bookroom-topbar .topbar-search,
.bookroom-topbar .topbar-item:not(.nav-user):not(.bookroom-keep-topbar),
.bookroom-topbar .topbar-link[data-bs-target="#theme-settings-offcanvas"] {
    display: none !important;
}
.bookroom-topbar .page-container {
    max-width: none;
}
.bookroom-brand {
    gap: .7rem;
    min-width: auto !important;
    text-decoration: none;
}
.bookroom-brand-mark {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .22rem;
    background: #fff;
    box-shadow: 0 .55rem 1.25rem rgba(21, 94, 239, .16);
    overflow: hidden;
}
.bookroom-brand-mark i {
    font-size: 1.35rem;
}
.bookroom-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.bookroom-brand-title {
    font-weight: 800;
    color: var(--osen-heading-color);
}
.bookroom-brand-subtitle {
    color: var(--osen-secondary-color);
    font-size: .76rem;
}
.bookroom-topbar .bookroom-keep-topbar .topbar-link {
    border-radius: 50%;
    background: var(--osen-secondary-bg);
}
.bookroom-topbar .nav-user .dropdown-menu .dropdown-item:not(.bookroom-logout):not(.bookroom-profile-item),
.bookroom-topbar .nav-user .dropdown-menu .dropdown-divider,
.bookroom-topbar .nav-user .dropdown-menu .dropdown-header {
    display: none !important;
}
.page-content {
    padding: 1rem .9rem;
}
.page-title-head {
    padding: .35rem .15rem 1rem;
}
.page-container > .card {
    border: 1px solid rgba(155, 166, 183, .2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1.2rem 3rem rgba(28, 37, 52, .08);
}
.bookroom-empty {
    padding: 1rem;
    text-align: center;
    color: var(--osen-secondary-color);
}
.bookroom-chat-shell .chat-content {
    background: var(--osen-body-bg);
}
.bookroom-chat-shell .chat-scroll {
    background:
        linear-gradient(180deg, rgba(21, 94, 239, .035), transparent 220px),
        var(--osen-body-bg);
}
.bookroom-chat-shell .chat-list {
    max-width: 920px;
    margin-inline: auto;
    gap: 18px;
}
.bookroom-chat-shell .chat-group {
    width: 100%;
    margin-bottom: 0;
    display: flex !important;
    gap: .6rem;
}
.bookroom-chat-shell .br-mine {
    justify-content: flex-end !important;
    flex-direction: row !important;
    direction: ltr;
    text-align: right;
}
.bookroom-chat-shell .br-theirs {
    justify-content: flex-start !important;
    flex-direction: row !important;
    direction: ltr;
    text-align: left;
}
.bookroom-chat-shell .br-theirs .chat-body {
    direction: rtl;
    text-align: right;
}
.bookroom-chat-shell .br-mine .chat-body {
    direction: rtl;
    text-align: right;
}
.bookroom-chat-shell .chat-body {
    max-width: min(520px, 74vw);
}
.bookroom-message-meta {
    margin-bottom: .25rem;
    font-size: .68rem;
}
.bookroom-chat-shell .br-mine .bookroom-message-meta {
    text-align: right;
    padding-inline-end: .35rem;
}
.bookroom-chat-shell .br-theirs .bookroom-message-meta {
    text-align: left;
    direction: ltr;
    padding-inline-start: .35rem;
}
.bookroom-message-meta h6 {
    font-size: .68rem;
    margin-bottom: 0;
}
.bookroom-chat-shell .chat-message {
    position: relative !important;
    display: block !important;
    min-width: 0;
    max-width: 100%;
    color: var(--osen-body-color);
    border: 1px solid rgba(185, 195, 210, .55);
    border-radius: 22px;
    background: var(--osen-card-bg);
    box-shadow: 0 .45rem 1.15rem rgba(28, 37, 52, .055);
    padding: .72rem .86rem;
}
.bookroom-chat-shell .br-mine .chat-message {
    background: linear-gradient(135deg, #dce8ff, #edf6ff);
    border-color: rgba(21, 94, 239, .2);
    color: var(--osen-body-color);
    border-end-end-radius: 8px;
}
.bookroom-chat-shell .br-theirs .chat-message {
    background: var(--osen-card-bg);
    border-end-start-radius: 8px;
}
.bookroom-chat-shell .chat-message p {
    line-height: 1.7;
    margin-bottom: 0;
}
.bookroom-message-main {
    padding-inline-start: 1.9rem;
}
.bookroom-message-tools {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: .625rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(155, 166, 183, .22);
}
.bookroom-message-tools .btn {
    --osen-btn-padding-y: .15rem;
    --osen-btn-padding-x: .35rem;
    --osen-btn-font-size: .72rem;
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50rem;
    line-height: 1.1;
}
.bookroom-reaction-btn {
    position: relative;
    width: 1.62rem;
    height: 1.62rem;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--osen-secondary-color);
    background: transparent;
    transition: background .14s ease, color .14s ease, transform .14s ease;
}
.bookroom-reaction-btn:hover,
.bookroom-reaction-btn.is-active {
    color: var(--br-primary);
    background: rgba(21, 94, 239, .1);
    transform: translateY(-1px);
}
.bookroom-reaction-btn i {
    font-size: 1rem;
}
.bookroom-reaction-btn span {
    position: absolute;
    top: -.42rem;
    inset-inline-end: -.28rem;
    min-width: .92rem;
    height: .92rem;
    padding-inline: .18rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #12b76a;
    border: 2px solid var(--osen-card-bg);
    font-size: .58rem;
    font-weight: 800;
    line-height: 1;
}
.bookroom-chat-shell .chat-actions {
    display: inline-flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute !important;
    top: .32rem !important;
    left: .38rem !important;
    right: unset !important;
    inset-inline-end: auto !important;
    inset-inline-start: .38rem !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 5;
    transition: opacity .12s ease, visibility .12s ease;
}
.bookroom-chat-shell .chat-list .chat-group .chat-actions {
    left: .38rem !important;
    right: unset !important;
}
.bookroom-chat-shell .chat-message:hover .chat-actions,
.bookroom-chat-shell .chat-message:focus-within .chat-actions,
.bookroom-chat-shell .chat-actions:has(.show) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.bookroom-chat-shell .chat-actions i {
    font-size: .8rem;
}
.bookroom-chat-shell .chat-actions .btn {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    color: #6d7788;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(185, 195, 210, .7);
}
.bookroom-chat-shell .chat-actions .dropdown-menu {
    z-index: 1080;
}
.bookroom-pinned-bar {
    position: sticky;
    top: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    background: var(--osen-card-bg);
    border-bottom: 1px solid var(--osen-border-color);
    box-shadow: 0 6px 14px rgba(49, 58, 70, .06);
}
.bookroom-pinned-content {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    flex: 1;
    padding: 0;
    text-align: start;
}
.bookroom-pinned-icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--osen-primary);
    background: var(--osen-primary-bg-subtle);
}
.bookroom-pinned-text {
    display: grid;
    min-width: 0;
}
.bookroom-pinned-text strong {
    font-size: .78rem;
    color: var(--osen-primary);
}
.bookroom-pinned-text span {
    color: var(--osen-secondary-color);
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bookroom-topic { padding-inline-start: 1.25rem; }
.bookroom-room-block {
    border-bottom: 1px solid rgba(155, 166, 183, .12);
}
.bookroom-inline-topics {
    padding: 0 .75rem .5rem 0;
}
.bookroom-inline-topics-title {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1.25rem .35rem .75rem;
    color: var(--osen-secondary-color);
    font-size: .75rem;
}
.bookroom-inline-topics .chat-users {
    padding-block: .45rem;
    padding-inline-start: 1rem;
    border-radius: 0;
}
.bookroom-chat-shell .chat-user-list .chat-users.active {
    background: linear-gradient(90deg, rgba(21, 94, 239, .2), rgba(0, 168, 132, .07));
    border-inline-start: 4px solid var(--br-primary);
    box-shadow: inset 0 0 0 1px rgba(21, 94, 239, .15);
}
.bookroom-chat-shell .chat-user-list .chat-users.active h5,
.bookroom-chat-shell .chat-user-list .chat-users.active h5 span {
    color: var(--osen-primary) !important;
    font-weight: 700;
}
.bookroom-chat-shell .bookroom-inline-topics .chat-users.active {
    background: rgba(21, 94, 239, .13);
}
.bookroom-topic-disabled,
.bookroom-topic-admin-disabled {
    background: rgba(250, 92, 124, .1) !important;
    border-inline-start: 4px solid var(--osen-danger) !important;
}
.bookroom-topic-disabled h5,
.bookroom-topic-admin-disabled .fw-semibold {
    color: var(--osen-danger) !important;
}
.bookroom-topic-disabled .avatar-sm,
.bookroom-topic-admin-disabled .avatar-sm {
    filter: grayscale(.35);
    opacity: .78;
}
.bookroom-unread-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding-inline: .38rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--br-primary), var(--br-primary-2));
    box-shadow: 0 .35rem .85rem rgba(21, 94, 239, .22);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}
.bookroom-room-settings {
    opacity: 0;
    transition: opacity .15s ease;
}
.chat-users:hover .bookroom-room-settings,
.chat-users.active .bookroom-room-settings {
    opacity: 1;
}
.bookroom-room-topic-list {
    max-height: 360px;
    overflow-y: auto;
}
.bookroom-room-topic-list .list-group-item {
    border-radius: 10px;
    margin-bottom: .4rem;
}
.bookroom-chat-file img,
.bookroom-chat-file video {
    max-width: min(360px, 100%);
    border-radius: var(--osen-border-radius);
    margin-top: .5rem;
}
.bookroom-file-open {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: inherit;
    cursor: zoom-in;
}
.bookroom-file-open span {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .18);
    border-radius: var(--osen-border-radius);
    opacity: 0;
    transition: opacity .15s ease;
}
.bookroom-file-open:hover span {
    opacity: 1;
}
.bookroom-file-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .5rem;
    border: 1px solid rgba(155, 166, 183, .25);
    border-radius: 12px;
    padding: .55rem .7rem;
    background: var(--osen-card-bg);
    color: var(--osen-body-color);
}
.bookroom-viewer-media {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 16px;
}
.bookroom-viewer-file {
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: .5rem;
    color: var(--osen-secondary-color);
}
.bookroom-profile-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 24px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--br-primary), var(--br-primary-2));
    font-size: 1.6rem;
    font-weight: 800;
}
.bookroom-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bookroom-chat-file audio {
    width: min(420px, 100%);
    margin-top: .5rem;
}
.bookroom-voice {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: min(520px, 100%);
    margin-top: .55rem;
    padding: .75rem .85rem;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(21, 94, 239, .1), rgba(0, 168, 132, .08)),
        var(--osen-card-bg);
    border: 1px solid rgba(21, 94, 239, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 .45rem 1rem rgba(28, 37, 52, .055);
}
.bookroom-voice-play {
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--br-primary), var(--br-primary-2));
    box-shadow: 0 .45rem 1rem rgba(21, 94, 239, .22);
}
.bookroom-voice-wave {
    display: flex;
    align-items: center;
    gap: .12rem;
    height: 2.65rem;
    flex: 1 1 auto;
    min-width: 9rem;
    cursor: pointer;
    padding: 0 .15rem;
    border-radius: 999px;
    outline: 0;
    position: relative;
    isolation: isolate;
}
.bookroom-voice-wave::before {
    content: "";
    position: absolute;
    inset: .15rem 0;
    width: var(--voice-progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(21, 94, 239, .14), rgba(0, 168, 132, .16));
    z-index: -1;
    transition: width .12s linear;
}
.bookroom-voice-wave:focus-visible {
    box-shadow: 0 0 0 .18rem rgba(21, 94, 239, .18);
}
.bookroom-voice-wave span {
    width: .24rem;
    border-radius: 999px;
    background: rgba(21, 94, 239, .22);
    opacity: .85;
    transition: transform .16s ease, opacity .16s ease, background .16s ease;
}
.bookroom-voice-wave span.is-played {
    background: linear-gradient(180deg, var(--br-primary), var(--br-primary-2));
    opacity: 1;
}
.bookroom-voice.is-playing .bookroom-voice-wave span.is-played {
    animation: bookroom-voice-wave .8s ease-in-out infinite alternate;
}
.bookroom-voice.is-playing .bookroom-voice-wave span.is-played:nth-child(3n) { animation-delay: .12s; }
.bookroom-voice.is-playing .bookroom-voice-wave span.is-played:nth-child(3n+1) { animation-delay: .24s; }
.bookroom-voice-main {
    min-width: 0;
    flex: 0 0 auto;
}
.bookroom-voice-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    color: var(--osen-secondary-color);
    font-size: .72rem;
    direction: ltr;
}
.bookroom-voice-meta a {
    color: var(--osen-secondary-color);
}
@keyframes bookroom-voice-wave {
    from { transform: scaleY(.55); }
    to { transform: scaleY(1.15); }
}
.bookroom-reply,
.bookroom-reply-preview {
    border-inline-start: 3px solid var(--osen-primary);
    background: var(--osen-primary-bg-subtle);
    border-radius: var(--osen-border-radius);
    padding: .5rem .75rem;
    margin-bottom: .5rem;
}
.bookroom-reply-preview {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .25rem .5rem;
    align-items: center;
}
.bookroom-reply-preview strong,
.bookroom-reply-preview span { grid-column: 1; }
.bookroom-reply-preview button { grid-column: 2; grid-row: 1 / span 2; }
.bookroom-reactions,
.bookroom-actions {
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.bookroom-search-results {
    position: absolute;
    top: 100%;
    inset-inline: 1rem;
    z-index: 8;
}
.bookroom-search-results button {
    width: 100%;
    text-align: start;
}
.bookroom-composer {
    background: var(--osen-secondary-bg);
}
.bookroom-file-preview {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    margin-bottom: .75rem;
    border: 1px solid rgba(23, 105, 224, .16);
    border-radius: 14px;
    background: var(--osen-card-bg);
    box-shadow: 0 .4rem 1rem rgba(49, 58, 70, .06);
}
.bookroom-file-preview-icon {
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--osen-primary);
    background: var(--osen-primary-bg-subtle);
}
.bookroom-file-preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bookroom-file-preview-icon i {
    font-size: 1.25rem;
}
.bookroom-file-preview-main {
    display: grid;
    min-width: 0;
    flex: 1;
}
.bookroom-file-preview-main strong,
.bookroom-file-preview-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bookroom-file-preview-main span {
    color: var(--osen-secondary-color);
    font-size: .76rem;
}
.bookroom-emoji-picker {
    position: absolute;
    bottom: calc(100% + .75rem);
    inset-inline-start: 1rem;
    width: min(360px, calc(100vw - 2rem));
    max-height: 300px;
    overflow: hidden;
    z-index: 10;
    box-shadow: var(--osen-box-shadow-lg);
}
.bookroom-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: .25rem;
    max-height: 210px;
    overflow-y: auto;
}
.bookroom-emoji-grid button {
    border: 0;
    background: transparent;
    border-radius: var(--osen-border-radius);
    font-size: 1.35rem;
    line-height: 1;
    padding: .45rem .25rem;
}
.bookroom-emoji-grid button:hover {
    background: var(--osen-light);
}
.bookroom-record-panel {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--osen-danger-bg-subtle);
    color: var(--osen-danger);
    border: 1px solid rgba(var(--osen-danger-rgb), .25);
    border-radius: var(--osen-border-radius);
    padding: .625rem .75rem;
    margin-bottom: .75rem;
}
.bookroom-record-panel .btn {
    white-space: nowrap;
}
.bookroom-record-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: var(--osen-danger);
    box-shadow: 0 0 0 .35rem rgba(250, 92, 124, .12);
    animation: bookroom-pulse 1s infinite;
}
.bookroom-equalizer {
    display: flex;
    align-items: center;
    gap: .18rem;
    height: 2rem;
    flex: 1;
    min-width: 8rem;
}
.bookroom-equalizer span {
    width: .25rem;
    height: .35rem;
    border-radius: 999px;
    background: var(--osen-danger);
    opacity: .85;
    transition: height .08s linear;
}
.bookroom-record-time {
    min-width: 3.25rem;
    font-variant-numeric: tabular-nums;
    text-align: end;
}
.bookroom-poll-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    margin-bottom: .85rem;
    border: 1px solid rgba(21, 94, 239, .16);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(21, 94, 239, .1), rgba(0, 168, 132, .08)),
        var(--osen-card-bg);
    box-shadow: 0 .8rem 1.8rem rgba(28, 37, 52, .07);
    transition: padding .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.bookroom-poll-card::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: .32rem;
    background: linear-gradient(180deg, var(--br-primary), var(--br-primary-2));
}
.bookroom-poll-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
}
.bookroom-poll-card.is-collapsed {
    padding-block: .7rem;
    box-shadow: 0 .35rem .95rem rgba(28, 37, 52, .055);
}
.bookroom-poll-card.is-collapsed .bookroom-poll-head {
    margin-bottom: 0;
}
.bookroom-poll-card.is-collapsed .bookroom-poll-options,
.bookroom-poll-card.is-collapsed .bookroom-poll-note {
    display: none;
}
.bookroom-poll-card.is-collapsed .bookroom-poll-toggle i {
    transform: rotate(180deg);
}
.bookroom-poll-toggle {
    flex: 0 0 auto;
    border-radius: 50%;
}
.bookroom-poll-toggle i {
    transition: transform .16s ease;
}
.bookroom-poll-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--br-primary), var(--br-primary-2));
    box-shadow: 0 .45rem 1rem rgba(21, 94, 239, .2);
}
.bookroom-poll-title {
    display: grid;
    min-width: 0;
    flex: 1;
}
.bookroom-poll-title strong {
    color: var(--osen-heading-color);
    font-size: .95rem;
}
.bookroom-poll-title span {
    color: var(--osen-secondary-color);
    font-size: .75rem;
}
.bookroom-poll-options {
    display: grid;
    gap: .5rem;
}
.bookroom-poll-option {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid rgba(155, 166, 183, .25);
    border-radius: 13px;
    padding: .62rem .78rem;
    text-align: start;
    color: var(--osen-body-color);
    background: rgba(255, 255, 255, .72);
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.bookroom-poll-option:hover {
    transform: translateY(-1px);
    border-color: rgba(21, 94, 239, .32);
    box-shadow: 0 .45rem 1rem rgba(28, 37, 52, .06);
}
.bookroom-poll-option.is-selected {
    border-color: rgba(21, 94, 239, .46);
    box-shadow: inset 0 0 0 1px rgba(21, 94, 239, .14);
}
.bookroom-poll-option-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(21, 94, 239, .18), rgba(0, 168, 132, .12));
}
.bookroom-poll-option-label,
.bookroom-poll-option-meta {
    position: relative;
    z-index: 1;
}
.bookroom-poll-option-label {
    font-weight: 700;
}
.bookroom-poll-option-meta {
    color: var(--osen-secondary-color);
    font-size: .75rem;
    white-space: nowrap;
}
.bookroom-poll-note {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .75rem;
    color: var(--osen-secondary-color);
    font-size: .76rem;
}
@keyframes bookroom-pulse {
    50% { opacity: .35; transform: scale(.86); }
}
html[data-bs-theme="dark"] .bookroom-chat-shell .br-mine .chat-message {
    background: rgba(23, 105, 224, .22);
    border-color: rgba(93, 141, 255, .3);
}
html[data-bs-theme="dark"] .bookroom-login-page {
    background:
        radial-gradient(circle at 75% 18%, rgba(21, 163, 129, .18), transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(93, 141, 255, .18), transparent 34%),
        linear-gradient(135deg, #101724, #0d141f);
}
html[data-bs-theme="dark"] .bookroom-login-panel {
    background: rgba(20, 29, 43, .86);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35);
}
html[data-bs-theme="dark"] .bookroom-chat-shell .br-theirs .chat-message,
html[data-bs-theme="dark"] .bookroom-chat-shell .chat-message,
html[data-bs-theme="dark"] .bookroom-file-preview,
html[data-bs-theme="dark"] .bookroom-pinned-bar {
    border-color: rgba(255, 255, 255, .1);
}
html[data-bs-theme="dark"] .bookroom-voice {
    background: linear-gradient(135deg, rgba(93, 141, 255, .14), rgba(21, 163, 129, .12));
    border-color: rgba(93, 141, 255, .2);
}
html[data-bs-theme="dark"] .bookroom-voice-wave span {
    background: rgba(255, 255, 255, .18);
}
html[data-bs-theme="dark"] .bookroom-voice-wave span.is-played {
    background: linear-gradient(180deg, #7aa2ff, #23c99b);
}
html[data-bs-theme="dark"] .bookroom-poll-card {
    background:
        linear-gradient(135deg, rgba(93, 141, 255, .14), rgba(21, 163, 129, .1)),
        var(--osen-card-bg);
    border-color: rgba(93, 141, 255, .22);
}
html[data-bs-theme="dark"] .bookroom-poll-option {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .1);
}
@media (max-width: 767.98px) {
    .bookroom-chat-shell .card-header .d-flex.align-items-center.justify-content-between {
        gap: .75rem;
        align-items: flex-start !important;
    }
    .bookroom-chat-shell .card-header .d-flex.align-items-center.gap-1 {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .bookroom-emoji-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}
