/* 文化主题空间 · 三栏布局与交流频道 */
.guild-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas: "left main";
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 58px);
}
.guild-layout--chat {
    grid-template-columns: 240px minmax(0, 1fr) 220px;
    grid-template-areas: "left main right";
}
.guild-side {
    padding: 20px 16px;
    border-right: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.45);
    overflow-y: auto;
    max-height: calc(100vh - 58px);
}
.guild-side--left { grid-area: left; }
.guild-side--right {
    grid-area: right;
    border-right: none;
    border-left: 1px solid var(--card-border);
}
.guild-main {
    grid-area: main;
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(100vh - 58px);
    min-width: 0;
}
.guild-hero-compact {
    margin-bottom: 16px;
}
.guild-hero-compact h1 {
    margin: 0 0 4px;
    font-size: 20px;
}
.guild-hero-compact p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.guild-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    font-size: 12px;
    color: var(--muted);
}
.guild-stat-row b { color: var(--primary-dark); }
.guild-join-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}
.guild-member-list {
    margin-top: 12px;
}
.guild-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.guild-member-item:hover {
    border-color: var(--primary-light);
    background: rgba(13, 148, 136, 0.05);
}
.guild-member-item.active {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.1);
}
.guild-member-meta {
    flex: 1;
    min-width: 0;
}
.guild-member-meta .name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.guild-member-meta .role {
    font-size: 11px;
    color: var(--muted);
}
.guild-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.guild-tabs button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.guild-tabs button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.guild-channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.guild-channel-tabs button {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}
.guild-channel-tabs button.active {
    background: rgba(13, 148, 136, 0.12);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}
.guild-chat-box {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
}
.guild-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    max-height: 480px;
    min-height: 280px;
}
.guild-chat-msg.world-msg {
    padding: 0;
    overflow: hidden;
    border-left-width: 3px;
}
.guild-chat-msg.world-theme-1 { border-left-color: #0d9488; }
.guild-chat-msg.world-theme-2 { border-left-color: #2563eb; }
.guild-chat-msg.world-theme-3 { border-left-color: #7c3aed; }
.guild-chat-msg.world-theme-4 { border-left-color: #db2777; }
.guild-chat-msg.world-theme-5 { border-left-color: #ea580c; }
.guild-chat-msg.world-theme-6 { border-left-color: #ca8a04; }
.guild-chat-msg.world-theme-7 { border-left-color: #16a34a; }
.guild-chat-msg.world-theme-8 { border-left-color: #0891b2; }
.guild-chat-msg.world-theme-9 { border-left-color: #4f46e5; }
.guild-chat-msg.world-theme-10 { border-left-color: #be123c; }
.guild-chat-msg.world-theme-11 { border-left-color: #059669; }
.guild-chat-msg.world-theme-12 { border-left-color: #9333ea; }
.world-channel-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #475569;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.world-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.world-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.world-legend-dot--theme { background: #0d9488; }
.world-legend-dot--member { background: #2563eb; }
.world-legend-dot--city { background: #ea580c; }
.world-legend-note {
    margin-left: auto;
    color: #94a3b8;
    font-size: 11px;
}
.world-msg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 12px 6px;
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 12px;
}
.world-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.5;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.world-tag--theme {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    font-weight: 600;
    flex-shrink: 0;
}
.world-tag--theme.world-tag--muted {
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
}
.world-tag--member {
    background: rgba(37, 99, 235, 0.08);
    color: #1e40af;
    font-weight: 500;
}
.world-tag--member em {
    font-style: normal;
    color: #64748b;
    font-weight: 400;
    font-size: 11px;
}
.world-tag--city {
    background: rgba(234, 88, 12, 0.1);
    color: #c2410c;
}
.world-tier {
    font-size: 10px;
    padding: 0 4px;
    border-radius: 4px;
}
.world-msg-time {
    margin-left: auto;
    color: #94a3b8;
    font-size: 11px;
    flex-shrink: 0;
}
.world-msg .msg-body {
    padding: 8px 12px 10px;
    display: block;
}
.world-msg.is-self {
    background: rgba(13, 148, 136, 0.04);
}
.world-msg-mod {
    padding: 0 12px 6px;
    display: flex;
    gap: 4px;
}
.msg-mod-row {
    padding: 0 12px 4px;
}
.guild-chat-msg {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
}
.guild-chat-msg.is-self {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.25);
}
.guild-chat-msg .msg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
}
.guild-chat-msg .msg-body {
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px;
}
.guild-chat-msg .msg-time {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}
.msg-mod-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 4px;
}
.msg-mod-btn {
    padding: 1px 6px;
    border: 1px solid rgba(185, 28, 28, 0.25);
    border-radius: 999px;
    background: rgba(254, 226, 226, 0.6);
    color: #b91c1c;
    font-size: 10px;
    line-height: 1.6;
    cursor: pointer;
}
.msg-mod-btn:hover {
    background: #fee2e2;
}
.msg-mod-btn--ban {
    border-color: rgba(127, 29, 29, 0.35);
    background: rgba(254, 202, 202, 0.85);
    color: #991b1b;
    font-weight: 600;
}
.msg-mod-btn--delete {
    border-color: rgba(180, 83, 9, 0.35);
    background: rgba(254, 243, 199, 0.9);
    color: #b45309;
    font-weight: 600;
}
.guild-chat-compose {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: #fff;
    align-items: stretch;
}
.chat-compose-field {
    position: relative;
    flex: 1;
    min-width: 0;
    width: 100%;
}
.guild-chat-compose input,
.chat-compose-editor {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.55;
    word-break: break-word;
    background: #fff;
    outline: none;
}
.chat-compose-editor:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.chat-compose-editor.is-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    pointer-events: none;
}
.chat-compose-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.chat-compose-tools {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 21;
}
.chat-compose-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.chat-media-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-size: 13px;
    opacity: 1;
    user-select: none;
}
.chat-media-btn:hover { opacity: 1; background: #f0fdfa; border-color: #99f6e4; }
.chat-media-btn.disabled { opacity: 0.4; pointer-events: none; }
.chat-media-btn input { display: none; }
.chat-tool-ico { font-size: 15px; line-height: 1; }
.chat-tool-label {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}
.chat-pending-media {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
}
.chat-msg-media audio,
.chat-msg-media video {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0;
}
.chat-msg-media--audio {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 4px;
}
.chat-msg-media--audio audio {
    width: 100%;
    min-width: 220px;
}
.chat-media-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
.chat-msg-media--video {
    position: relative;
    display: inline-block;
    max-width: min(100%, 360px);
    margin-top: 6px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}
.chat-audit-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 600;
}
.chat-msg-media--video video {
    display: block;
    width: 100%;
    max-height: 320px;
    min-height: 160px;
    object-fit: contain;
    background: #000;
    vertical-align: top;
}
.chat-video-play-mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 100%);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.chat-video-play-mask:hover {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.55) 100%);
}
.chat-video-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    padding-left: 4px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.chat-video-play-mask:hover .chat-video-play-btn {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}
.chat-video-play-text {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}
.world-msg .msg-body .chat-msg-media--video {
    margin-top: 2px;
}
.guild-chat-compose {
    flex-wrap: nowrap;
}
.chat-compose-editor .chat-compose-emoji {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin: 0 1px;
    display: inline-block;
    image-rendering: -webkit-optimize-contrast;
}
.chat-emoji-anchor {
    position: relative;
    z-index: 21;
}
.chat-emoji-btn {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.chat-emoji-btn-icon {
    width: 18px;
    height: 18px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}
.chat-emoji-btn:hover:not(:disabled) {
    background: #f0fdfa;
    border-color: #99f6e4;
}
.chat-emoji-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.chat-emoji-panel {
    position: absolute;
    right: 0;
    left: auto;
    bottom: calc(100% + 6px);
    z-index: 30;
    overflow: hidden;
}
.chat-emoji-panel--classic {
    width: 248px;
    background: linear-gradient(180deg, #3d3228 0%, #2a2118 100%);
    border: 2px solid #8b6914;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 220, 140, 0.15);
}
.chat-emoji-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: linear-gradient(180deg, #5c4a32 0%, #3f3325 100%);
    border-bottom: 1px solid #8b6914;
}
.chat-emoji-panel-title {
    font-size: 12px;
    font-weight: 700;
    color: #f5d78e;
    letter-spacing: 0.5px;
}
.chat-emoji-panel-close {
    width: 18px;
    height: 18px;
    border: 1px solid #8b6914;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.25);
    color: #f5d78e;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.chat-emoji-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #5c4a32;
    background: #2f261c;
}
.chat-emoji-panel--classic .chat-emoji-tabs button {
    flex: 1;
    padding: 4px 0;
    margin: 0;
    border: none;
    border-right: 1px solid #5c4a32;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #c4a86a;
    cursor: pointer;
}
.chat-emoji-panel--classic .chat-emoji-tabs button:last-child {
    border-right: none;
}
.chat-emoji-panel--classic .chat-emoji-tabs button:hover {
    color: #ffe9a8;
    background: rgba(255, 220, 140, 0.08);
}
.chat-emoji-panel--classic .chat-emoji-tabs button.active {
    color: #fff3c4;
    background: linear-gradient(180deg, #6b5438 0%, #4a3b28 100%);
    box-shadow: inset 0 -2px 0 #d4af37;
}
.chat-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
    max-height: 180px;
    overflow-y: auto;
}
.chat-emoji-grid--classic {
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 6px;
    max-height: 132px;
    background: #241c14;
}
.chat-emoji-item {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    transition: background 0.12s, transform 0.12s;
    padding: 1px;
}
.chat-emoji-grid--classic .chat-emoji-item {
    border: 1px solid transparent;
    max-width: 30px;
    max-height: 30px;
    justify-self: center;
}
.chat-emoji-grid--classic .chat-emoji-item:hover {
    background: rgba(255, 220, 140, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
    transform: scale(1.08);
}
.chat-emoji-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}
.chat-msg-emoji {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin: 0 1px;
    image-rendering: -webkit-optimize-contrast;
}
.guild-party-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
}
.guild-party-item.active {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.08);
}
.guild-side-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.space-curator-card {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(13, 148, 136, 0.25);
}
.space-curator-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.curator-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    background: rgba(13, 148, 136, 0.15);
    color: var(--primary-dark);
    font-weight: 700;
}
.guild-member-item.is-curator {
    border-color: rgba(13, 148, 136, 0.35);
}
.guild-mobile-bar,
.guild-side-backdrop {
    display: none;
}
.chat-context-hint {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
}
.chat-context-hint.is-ok {
    background: rgba(13, 148, 136, 0.08);
    color: #0f766e;
}
.chat-context-hint.is-warn {
    background: rgba(225, 29, 72, 0.06);
    color: #b91c1c;
}
@media (max-width: 1100px) {
    .guild-layout--chat {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    .guild-side--right { display: none; }
}
@media (max-width: 920px) {
    /* 手机/窄屏：与 theme-mobile.css 互补，宽度探测不准时仍尽量单列 */
    .guild-layout,
    .guild-layout--chat {
        display: block;
        position: relative;
        min-height: calc(100vh - 52px);
    }
    .guild-mobile-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 30;
    }
    .guild-mobile-side-toggle {
        flex-shrink: 0;
        min-height: 34px;
        padding: 6px 12px;
        border-radius: 8px;
        border: 1px solid #99f6e4;
        background: #f0fdfa;
        color: #0f766e;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .guild-mobile-theme-name {
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .guild-side-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 40;
    }
    .guild-side--left {
        display: block;
        position: static;
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        box-shadow: none;
        padding: 14px 12px;
        overflow: visible;
    }
    /* 交流频道：左栏改为抽屉，聊天内容优先露出 */
    .guild-layout--chat .guild-side--left {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(86vw, 300px);
        max-height: 100vh;
        z-index: 50;
        background: #fff;
        border-right: 1px solid var(--card-border);
        border-bottom: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18);
        padding: 16px 14px;
    }
    .guild-layout--chat.guild-side-open .guild-side--left {
        display: block;
    }
    .guild-side--right { display: none !important; }
    .guild-main {
        max-height: none;
        padding: 10px 12px 16px;
        overflow: visible;
    }
    .guild-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        margin-bottom: 8px;
        padding-bottom: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .guild-tabs button {
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 16px;
        white-space: nowrap;
    }
    .guild-channel-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        margin-bottom: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .guild-channel-tabs button {
        flex: 0 0 auto;
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    .world-channel-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        margin: 0 0 8px;
        padding: 6px 10px;
        font-size: 11px;
        line-height: 1.4;
    }
    .world-legend-note { display: none; }
    .chat-context-hint {
        margin: 0 0 8px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        border-radius: 8px;
    }
    .chat-context-hint--extra {
        display: none;
    }
    .guild-hero-tagline { display: none; }
    .guild-chat-box {
        min-height: 52vh;
    }
    .guild-chat-messages {
        max-height: none;
        min-height: 42vh;
    }
    .chat-compose-toolbar {
        gap: 8px;
    }
    .chat-compose-tools {
        gap: 6px;
        width: 100%;
    }
    .chat-compose-actions {
        width: 100%;
        margin-left: 0;
    }
    .chat-compose-actions .btn {
        flex: 1;
        min-height: 40px;
    }
    .chat-media-btn,
    .chat-emoji-btn {
        flex: 1;
        min-width: 0;
        min-height: 40px;
    }
    .chat-tool-label { display: inline; }
}
