/* HOTMAPP Redesigned Messaging Stylesheet */

/* Message List Container & Virtualization Wrapper */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 24px;
    overflow-y: auto;
    scroll-behavior: auto;
    will-change: scroll-position;
    background-color: var(--bg);
    transition: background-color 0.3s ease;
}

.message-wrapper {
    display: block;
    width: 100%;
    box-sizing: border-box;
    will-change: height;
}

/* Date Separators & Unread Dividers */
.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.date-separator::before,
.date-separator::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: var(--border);
    margin: 0 16px;
    opacity: 0.4;
}

.unread-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: #e53935;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    user-select: none;
}

.unread-divider::before,
.unread-divider::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background: #e53935;
    margin: 0 16px;
    opacity: 0.35;
}

/* Message Group Wrapper */
.message-group {
    display: flex;
    align-items: flex-end;
    margin-bottom: 2px;
    width: 100%;
    position: relative;
    animation: bubbleAppear 0.25s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes bubbleAppear {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-group.consecutive {
    margin-top: 1px;
}

.message-group.has-tail {
    margin-top: 10px;
}

/* Message Alignments */
.message-group.sent {
    justify-content: flex-end;
    padding-left: 50px;
}

.message-group.received {
    justify-content: flex-start;
    padding-right: 50px;
}

/* Avatar Layout in Groups */
.message-avatar-container {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    flex-shrink: 0;
}

.message-group.sent .message-avatar-container {
    display: none;
}

.message-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--panel-soft);
    border: 1px solid var(--border);
}

.message-group.consecutive .message-avatar-container {
    visibility: hidden; /* Reserve space without re-rendering avatar */
}

/* Message Bubbles */
.message-bubble {
    position: relative;
    max-width: 85%;
    padding: 8px 12px 18px 12px; /* Extra bottom padding for floating metadata */
    border-radius: 16px;
    box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.08);
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.45;
    word-break: break-word;
    transition: background-color 0.2s, box-shadow 0.2s;
    user-select: text;
}

/* Rounded Corner Clustering Logic */
.message-group.received.has-tail .message-bubble {
    background-color: var(--wa-received);
    border-bottom-left-radius: 4px;
}

.message-group.received.consecutive .message-bubble {
    background-color: var(--wa-received);
}

.message-group.sent.has-tail .message-bubble {
    background-color: var(--wa-sent);
    border-bottom-right-radius: 4px;
}

.message-group.sent.consecutive .message-bubble {
    background-color: var(--wa-sent);
}

/* Sender Identity */
.group-sender-name {
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--brand-dark);
    margin-bottom: 3px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.group-sender-name:hover {
    text-decoration: underline;
}

/* Message Content & Links */
.message-text {
    white-space: pre-wrap;
}

.message-text a {
    color: #29b6f6;
    text-decoration: none;
    font-weight: 500;
}

.message-text a:hover {
    text-decoration: underline;
}

/* Meta Data: Timestamp & Status Checkmarks */
.message-meta {
    position: absolute;
    bottom: 3px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--muted);
    user-select: none;
}

.message-time {
    opacity: 0.85;
}

.message-status {
    display: inline-flex;
    align-items: center;
}

.message-status i {
    font-size: 0.72rem;
}

/* Color codes for status states */
.message-status.read i {
    color: #34b7f1; /* WhatsApp sky blue read receipts */
}

.message-status.sending i {
    animation: statusSpin 1.2s linear infinite;
}

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

/* Deleted Messages */
.message-bubble.deleted {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border: 1px dashed var(--border);
    color: var(--muted);
    font-style: italic;
    font-size: 0.88rem;
}

.dark-theme .message-bubble.deleted,
.oled-theme .message-bubble.deleted {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Media Messages (Responsive Grid) */
.media-grid {
    display: grid;
    gap: 3px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2px;
    max-width: 330px;
    width: 100%;
}

.media-item {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    background-color: var(--panel-soft);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.media-item:hover img {
    transform: scale(1.02);
}

/* Media Grid Layout Variations */
.media-grid.grid-1 {
    grid-template-columns: 1fr;
}

.media-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 16/10;
}

.media-grid.grid-3 {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 16/11;
}

.media-grid.grid-3 .media-item:first-child {
    grid-row: span 2;
}

.media-grid.grid-4,
.media-grid.grid-more {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 1;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    user-select: none;
}

/* Progressive Image Loading & Blur Placeholder */
.image-loader-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-loader-wrapper img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-loader-wrapper img.loaded {
    opacity: 1;
}

.image-loader-wrapper .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
}

/* Video Thumbnail and Player controls */
.video-thumb-container {
    position: relative;
    cursor: pointer;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.video-thumb-container:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

.video-duration-badge {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Custom Waveform Voice Player */
.wa-audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    padding: 6px 4px;
    user-select: none;
}

.wa-player-avatar-container {
    position: relative;
    width: 36px;
    height: 36px;
}

.wa-player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.wa-player-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.wa-player-mic-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--brand);
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.48rem;
    border: 1.5px solid var(--wa-received);
}

.message-group.sent .wa-player-mic-badge {
    border-color: var(--wa-sent);
}

.wa-play-btn {
    background: none;
    border: none;
    color: var(--brand);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

.wa-play-btn:active {
    transform: scale(0.9);
}

.wa-player-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Custom Waveform visualization bar */
.wa-waveform-canvas {
    width: 100%;
    height: 24px;
    cursor: pointer;
}

.wa-player-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--muted);
}

.wa-speed-btn {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 3px 6px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.wa-speed-btn:hover {
    background: var(--border);
}

/* Document Messages */
.document-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.document-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: background 0.2s;
}

.dark-theme .document-preview,
.oled-theme .document-preview {
    background: rgba(255, 255, 255, 0.03);
}

.document-preview:hover {
    background: rgba(0, 0, 0, 0.06);
}

.document-icon-wrapper {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.document-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    font-size: 0.72rem;
    color: var(--muted);
}

/* Composer Area enhancements */
.message-input-area {
    position: relative;
    padding: 8px 16px;
    background: var(--panel);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.input-pill {
    flex-grow: 1;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 8px;
    display: flex;
    align-items: flex-end;
    min-height: 40px;
    position: relative;
    transition: box-shadow 0.2s;
}

.input-pill:focus-within {
    box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.2);
}

.message-input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    padding: 8px 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.94rem;
    resize: none;
    max-height: 120px;
    line-height: 1.35;
}

.input-icon-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.input-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--brand);
}

.dark-theme .input-icon-btn:hover,
.oled-theme .input-icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Audio Recording Overlays & Animation */
.recording-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: var(--panel-soft);
    display: none;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 10;
}

.input-pill.recording-active .recording-overlay {
    display: flex;
}

.record-dot-blink {
    color: #e53935;
    animation: blinkRed 1s infinite alternate;
}

@keyframes blinkRed {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.recording-timer {
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.recording-visualizer-canvas {
    flex-grow: 1;
    height: 24px;
    max-width: 45%;
}

.slide-cancel-text {
    font-size: 0.82rem;
    color: var(--muted);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.slide-cancel-text i {
    animation: slideLeftAnim 1.2s infinite;
}

@keyframes slideLeftAnim {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-6px); opacity: 0; }
}

/* Swipe-to-lock panel */
.lock-indicator-container {
    position: absolute;
    bottom: 50px;
    right: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 12px;
    border-radius: 18px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--muted);
    animation: bounceUp 1.5s infinite;
    z-index: 9;
}

.lock-indicator-container.visible {
    display: flex;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Locked Recording View */
.voice-preview {
    display: none;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 12px;
    min-height: 40px;
    z-index: 10;
}

.voice-preview-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: background 0.15s;
}

.voice-preview-btn.preview-cancel {
    color: #e53935;
}

.voice-preview-btn.preview-cancel:hover {
    background: rgba(229, 57, 53, 0.1);
}

.voice-preview-btn.preview-play {
    color: var(--brand);
}

.voice-preview-btn.preview-play:hover {
    background: rgba(0, 168, 132, 0.1);
}

.voice-preview-btn.preview-send {
    color: white;
    background: var(--brand);
    margin-left: auto;
}

.voice-preview-btn.preview-send:hover {
    background: var(--brand-dark);
}

.preview-status {
    font-weight: 600;
    font-size: 0.94rem;
    font-variant-numeric: tabular-nums;
}

.record-btn,
.send-btn {
    background: var(--brand);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.record-btn:hover,
.send-btn:hover {
    background: var(--brand-dark);
}

.record-btn:active,
.send-btn:active {
    transform: scale(0.9);
}

.record-btn.recording {
    background: #e53935;
    animation: pulseRecording 1.5s infinite;
}

@keyframes pulseRecording {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* Swipe to Reply Layout */
.quoted-message {
    background: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--brand);
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.dark-theme .quoted-message,
.oled-theme .quoted-message {
    background: rgba(255, 255, 255, 0.05);
}

.quoted-message:hover {
    background: rgba(0, 0, 0, 0.08);
}

.quoted-sender {
    font-weight: 700;
    color: var(--brand-dark);
    display: block;
    margin-bottom: 2px;
}

.quoted-text {
    color: var(--text);
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-preview {
    display: none;
    align-items: center;
    background: var(--panel-soft);
    border-left: 4px solid var(--brand);
    padding: 8px 12px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid var(--border);
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

.reply-preview-content {
    flex-grow: 1;
    overflow: hidden;
}

.reply-preview-text {
    font-size: 0.84rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close-reply-preview {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Message Multi-Selection Mode */
.chat-area.select-mode .message-checkbox {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    cursor: pointer;
    background-color: var(--panel);
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.chat-area.select-mode .message-checkbox::after {
    content: "✓";
    display: none;
    color: white;
    font-size: 0.78rem;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
}

.chat-area.select-mode .message-group.selected .message-checkbox {
    background-color: var(--brand);
    border-color: var(--brand);
}

.chat-area.select-mode .message-group.selected .message-checkbox::after {
    display: block;
}

.chat-area.select-mode .message-group {
    cursor: pointer;
}

.chat-area.select-mode .message-group:hover .message-bubble {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Emoji Reactions on Bubbles */
.message-reactions-container {
    position: absolute;
    bottom: -10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
    pointer-events: auto;
}

.message-group.sent .message-reactions-container {
    left: auto;
    right: 10px;
}

.reaction-badge {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.72rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: transform 0.15s, background 0.15s;
    user-select: none;
    animation: reactionPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes reactionPop {
    0% { transform: scale(0.6); }
    100% { transform: scale(1); }
}

.reaction-badge:hover {
    background: var(--panel-soft);
    transform: scale(1.1);
}

.reaction-badge span {
    font-weight: 600;
    color: var(--text);
}

/* Context Menu reaction bar */
.context-menu-reactions-row {
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.context-reaction-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.15s;
    padding: 4px;
}

.context-reaction-btn:hover {
    transform: scale(1.3);
}

/* Fullscreen Media Viewer */
.fullscreen-media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    flex-direction: column;
    color: white;
}

.viewer-header {
    height: 60px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.viewer-title {
    font-size: 0.94rem;
    font-weight: 600;
}

.viewer-close-btn,
.viewer-action-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.viewer-slide-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.viewer-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.viewer-slide img,
.viewer-slide video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    transition: transform 0.1s;
}

.viewer-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 5;
    transition: background 0.2s;
}

.viewer-nav-btn:hover {
    background: rgba(0,0,0,0.7);
}

.viewer-nav-btn.prev {
    left: 20px;
}

.viewer-nav-btn.next {
    right: 20px;
}

/* Floating Scroll-to-Bottom Badge with counter */
.scroll-to-bottom-badge {
    position: absolute;
    bottom: 75px;
    right: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    pointer-events: none;
    z-index: 8;
}

.scroll-to-bottom-badge.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.scroll-to-bottom-badge i {
    font-size: 1.1rem;
    color: var(--muted);
}

.scroll-to-bottom-badge .unread-badge-mini {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53935;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Keyboard accessibility outline */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

/* Swipe animations */
.message-group {
    transition: transform 0.2s ease-out;
}
.message-group.swiping {
    transition: none;
}
