:root {
    /* Modern 模板：深色头部、柔和气泡 */
    --bg-chat: #EAEEF3;
    --bg-bottom: #F0F2F5;
    --surface-white: #FFFFFF;
    --text-primary: #1C1C1E;
    --text-charcoal: #1C1C1E;
    --text-stone: #8E8E93;
    --text-secondary: #8E8E93;
    --text-placeholder: #8E8E93;
    --accent-blue: var(--brand-primary, #007AFF);
    --accent-blue-light: #A8DCF8;
    --accent-green: var(--brand-primary, #07C160);
    --bubble-self: #95EC69;
    --bubble-other: #FFFFFF;
    --border-light: #D8DCE2;
    --border-input: #D8DCE2;
    --status-green: #22C55E;
    --avatar-bg: #6366F1;
    --avatar-icon: #FFFFFF;
    --app-height: 100vh;
    --browser-toolbar-height: 0px;
    --header-bg: #1E293B;
    --header-text: #F1F5F9;
    --bubble-self-text: inherit;
    --bubble-other-text: inherit;
    --bubble-radius: 22px;
    --avatar-radius: 50%;
    --emoji-panel-bg: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 允许气泡内文字选择（方便复制） */
.bubble {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-chat);
    color: var(--text-charcoal);
    overflow: hidden;
    height: 100vh;
    height: var(--app-height);
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-chat);
}

/* ==================== 头部（深色） ==================== */
.header {
    height: 60px;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    border-bottom: none;
    z-index: 100;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-title {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: var(--header-text);
}

.header-status-container {
    display: none;
}

#status {
    font-size: 11px;
    color: #86EFAC;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

#status.connected::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-green);
}

.header-avatar {
    display: none;
}

/* ==================== 消息列表 ==================== */
.chat-stream {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px;
    background: var(--bg-chat);
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 80%;
    animation: fadeInUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.message.self {
    align-self: flex-end;
    flex-direction: row-reverse;
    align-items: flex-start;
    max-width: 75%;
}

/* 右侧消息隐藏头像 */
.message.self .avatar {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头像 */
.message .avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--avatar-radius);
    object-fit: cover;
    background: var(--avatar-bg);
    flex-shrink: 0;
}

/* 气泡（圆角更大） */
.bubble {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
    border-radius: var(--bubble-radius);
    max-width: 100%;
}

.message:not(.self) .bubble {
    background: var(--bubble-other);
    color: var(--bubble-other-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.message.self .bubble {
    background: var(--bubble-self);
    color: var(--bubble-self-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==================== 引用消息预览 ==================== */
.reply-preview {
    background: #F0F0F0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
}

.message.self .reply-preview {
    background: rgba(0, 0, 0, 0.06);
}

.reply-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.reply-preview-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
}

.message.self .reply-preview-name {
    color: var(--text-primary);
    opacity: 0.8;
}

.reply-preview-tag {
    font-size: 14px;
    color: #666666;
}

.message.self .reply-preview-tag {
    color: var(--text-primary);
    opacity: 0.5;
}

.reply-preview-content {
    font-size: 13px;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message.self .reply-preview-content {
    color: var(--text-primary);
    opacity: 0.5;
}

.reply-preview-img {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    background: #E0E0E0;
}

.message.self .reply-preview-img {
    background: rgba(0, 0, 0, 0.1);
}

.reply-video-thumb {
    position: relative;
    width: 100%;
    height: 140px;
    cursor: pointer;
}

.reply-video-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    background: #333333;
}

.reply-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-video-play::after {
    content: '';
    border-left: 14px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

/* ==================== 图片消息 ==================== */
.msg-img {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    background: #E8E8E8;
    border: 1px solid var(--border-light);
    display: block;
    cursor: pointer;
    object-fit: cover;
}

.img-placeholder {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    background: #E8E8E8;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder svg {
    width: 32px;
    height: 32px;
    color: #AAAAAA;
}

/* ==================== 视频消息 ==================== */
.video-msg {
    position: relative;
    width: 180px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #333333;
}

.video-msg-player {
    width: 180px !important;
    height: 120px !important;
    max-width: 180px !important;
    max-height: 120px !important;
    min-width: 180px;
    min-height: 120px;
    border-radius: 12px;
    background-color: #333333;
    object-fit: cover;
    display: block;
    -webkit-transform: none !important;
    transform: none !important;
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-cover-placeholder {
    width: 100%;
    height: 100%;
    background-color: #333333;
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    color: white;
    font-size: 12px;
    font-weight: normal;
}

/* 链接消息 */
.link-msg {
    cursor: pointer;
}

.link-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.link-desc {
    font-size: 13px;
    color: var(--text-stone);
}

/* 消息内链接 */
.msg-link {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.msg-link:active {
    opacity: 0.7;
}

/* 右侧消息中的链接 */
.message.self .bubble .msg-link {
    color: var(--accent-blue);
}

/* ==================== 底部整体容器 ==================== */
.bottom-dock {
    background: var(--bg-bottom);
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--browser-toolbar-height, 0px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

/* ==================== 快捷消息栏 ==================== */
.quick-msg-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
}

.quick-msg-bar::-webkit-scrollbar {
    display: none;
}

.quick-msg-btn {
    padding: 6px 12px;
    background: var(--surface-white);
    color: var(--accent-green);
    border: none;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.quick-msg-btn:active {
    transform: scale(0.95);
    background: #f0faf0;
}

/* 快捷消息发送中状态 */
.quick-msg-btn.sending {
    opacity: 0.6;
    transform: scale(0.95);
}

/* 快捷消息隐藏动画 */
.quick-msg-btn.hide {
    animation: quickMsgHide 0.3s ease forwards;
}

@keyframes quickMsgHide {
    0% {
        opacity: 1;
        transform: scale(1);
        max-width: 200px;
        padding: 6px 12px;
        margin-right: 0;
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        max-width: 0;
        padding: 0;
        margin-right: -8px;
    }
}

/* ==================== 底部输入区 ==================== */
.input-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tool-btn {
    width: 24px;
    height: 24px;
    color: var(--text-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.tool-btn:active {
    opacity: 0.6;
}

.emoji-btn {
    width: 22px;
    height: 22px;
    color: var(--text-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    flex-shrink: 0;
    padding: 0;
}

.emoji-btn:active {
    opacity: 0.6;
}

.text-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    background: var(--surface-white);
    border-radius: 22px;
    border: none;
    font-size: 16px;
    color: var(--text-charcoal);
    padding: 0 12px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.text-input:focus {
    box-shadow: none;
}

.text-input::placeholder {
    color: var(--text-placeholder);
    font-size: 14px;
}

.send-pill {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--accent-green);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.send-pill svg {
    display: none;
}

.send-pill::after {
    content: "发送";
}

.send-pill:active {
    transform: scale(0.95);
}

/* 发送按钮禁用状态 */
.send-pill.disabled {
    background: #A8E6C1;
    cursor: default;
}

.send-pill.disabled:active {
    transform: none;
}

/* ==================== 弹窗 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

#previewImage {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

#videoPlayer {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

/* 图片预览弹窗 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal .image-wrapper {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal .image-wrapper img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal .close-btn {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10002;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 视频播放弹窗 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
}

.video-modal .close-btn {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10002;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-modal .close-btn:active {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
}

.video-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0));
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.video-modal-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-modal-back:active {
    background: rgba(255, 255, 255, 0.25);
}

.video-modal-back span {
    font-size: 20px;
    font-weight: bold;
}

.video-modal-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.video-modal-content video {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-modal-content video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-progress {
    color: white;
    margin-top: 16px;
    font-size: 14px;
}

.loading-cancel-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s;
}

.loading-cancel-btn:active {
    background: rgba(255, 255, 255, 0.25);
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loadingText {
    margin-bottom: 20px;
    color: var(--text-charcoal);
}

.cancel-btn {
    padding: 10px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.cancel-btn:active {
    background: #e5e5e5;
}

/* ==================== 移动端优化 ==================== */
@media (max-width: 480px) {
    .header {
        padding: 0 16px;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .chat-stream {
        padding: 12px;
        gap: 12px;
    }

    .message {
        max-width: 85%;
    }

    .bubble {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ==================== Toast 轻提示 ==================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 14px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    animation: toastIn 0.3s ease forwards;
    max-width: 80%;
    text-align: center;
}

.toast.warning {
    background: rgba(176, 141, 121, 0.92);
}

.toast.error {
    background: rgba(180, 80, 80, 0.92);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* 视频 loading 状态 */
.video-msg.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 5;
}

.video-msg.loading .play-icon {
    display: none;
}

/* ==================== 语音消息样式 ==================== */
.voice-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 160px;
    height: 44px;
    padding: 0 12px;
    background: var(--surface-white);
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.voice-msg:active {
    opacity: 0.7;
}

.voice-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.voice-icon svg {
    width: 22px;
    height: 22px;
}

.voice-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    flex: 1;
}

.voice-bar {
    width: 3px;
    border-radius: 2px;
    background: var(--accent-green);
}

.voice-bar.inactive {
    background: #CCCCCC;
}

.voice-duration {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: normal;
    flex-shrink: 0;
}

/* 右侧语音消息 */
.message.self .voice-msg {
    background: var(--bubble-self);
    border: none;
}

.message.self .voice-msg .voice-icon {
    color: var(--text-primary);
}

.message.self .voice-msg .voice-bar {
    background: var(--text-primary);
}

.message.self .voice-msg .voice-bar.inactive {
    background: rgba(0, 0, 0, 0.3);
}

.message.self .voice-msg .voice-duration {
    color: var(--text-primary);
}

/* 播放中动画 */
.voice-msg.playing .voice-icon {
    animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ==================== 欢迎文案 ==================== */
.welcome-text {
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--surface-white);
    border-radius: 12px;
    margin: 4px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ==================== 品牌Logo ==================== */
.header-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

/* ==================== Emoji 选择器 ==================== */
.emoji-picker-panel {
    display: flex;
    flex-direction: column;
    background: var(--emoji-panel-bg);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.emoji-picker-panel.open {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.emoji-tabs {
    display: flex;
    gap: 0;
    padding: 6px 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.emoji-tab {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    line-height: 1;
}

.emoji-tab.active {
    border-bottom-color: var(--accent-blue);
}

.emoji-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 36px);
    gap: 2px;
    justify-content: center;
}

.emoji-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background 0.15s;
}

.emoji-item:active {
    background: rgba(0, 0, 0, 0.08);
}

.emoji-btn.active {
    color: var(--accent-blue);
}
