/* eXtreme Home Chat 1.3.0 — compact board-index block */
.ext_chat_home {
    margin: 0 0 14px;
}
.ext_chat_home .ext_chat_bar {
    margin: 0;
}
.ext_chat_home .catbg {
    display: flex;
    align-items: center;
    gap: 4px;
}
#ext_chat_count {
    font-weight: 400;
    opacity: .85;
}
.ext_chat_panel {
    padding: 0 10px 10px;
    border-top: 0;
}
.ext_chat_topline {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 2px 6px;
    border-bottom: 1px solid rgba(127,127,127,.28);
}
.ext_chat_subtitle {
    font-size: .92em;
    opacity: .75;
}
.ext_chat_clear {
    flex: 0 0 auto;
    font-size: .82em;
    padding: 3px 8px;
}
#ext_chat_messages {
    height: 165px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px 4px;
    background: rgba(0,0,0,.022);
    border-bottom: 1px solid rgba(127,127,127,.22);
    scrollbar-width: thin;
}
.ext_chat_loading,
.ext_chat_empty {
    padding: 22px 8px;
    opacity: .7;
}
.ext_chat_row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 22px;
    gap: 6px;
    align-items: start;
    min-height: 28px;
    padding: 3px 2px;
}
.ext_chat_row:hover {
    background: rgba(127,127,127,.055);
}
.ext_chat_avatar {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78em;
    font-weight: 700;
    background: rgba(127,127,127,.16);
    user-select: none;
}
.ext_chat_line {
    min-width: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.ext_chat_time {
    opacity: .62;
    font-size: .9em;
    white-space: nowrap;
}
.ext_chat_name {
    font-weight: 700;
}
.ext_chat_body {
    white-space: pre-wrap;
}
.ext_chat_delete {
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: .35;
    font-size: 17px;
    line-height: 1;
    padding: 2px 4px;
}
.ext_chat_row:hover .ext_chat_delete,
.ext_chat_delete:focus {
    opacity: .85;
}
#ext_chat_form {
    display: flex;
    gap: 7px;
    align-items: stretch;
    padding-top: 8px;
}
#ext_chat_input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    min-height: 38px;
    max-height: 76px;
    resize: vertical;
    box-sizing: border-box;
}
#ext_chat_send {
    flex: 0 0 auto;
}
#ext_chat_status {
    min-height: 1.1em;
    margin: 4px 2px 0;
    opacity: .78;
    font-size: .86em;
}
.ext_chat_info {
    margin: 8px 0 0;
}
@media (max-width: 600px) {
    .ext_chat_panel {
        padding-left: 6px;
        padding-right: 6px;
    }
    #ext_chat_messages {
        height: 155px;
        padding-left: 1px;
        padding-right: 1px;
    }
    .ext_chat_row {
        grid-template-columns: 22px minmax(0, 1fr) 20px;
        gap: 5px;
    }
    .ext_chat_avatar {
        width: 20px;
        height: 20px;
    }
    .ext_chat_time {
        display: block;
        font-size: .82em;
        line-height: 1.2;
    }
    #ext_chat_form {
        flex-wrap: wrap;
    }
    #ext_chat_input {
        flex-basis: 100%;
    }
    #ext_chat_send {
        width: 100%;
    }
}

/* Stable geometry: chat is now server-rendered in its final position. */
.ext_chat_home, .ext_chat_home * { box-sizing: border-box; }
