/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: var(--zd-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    gap: 6px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 模式切换开关 - header 右侧 */
.mode-switch-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.mode-switch-label {
    font-size: 11px;
    color: var(--zd-text-secondary);
    font-weight: 500;
    line-height: 1;
}

/* 工单模式（默认）：左侧标签高亮绿色 */
.mode-switch-wrap:not(.quick) .mode-switch-label:first-child {
    color: var(--zd-primary, #03363d);
}

/* 问答模式：右侧标签高亮灰色 */
.mode-switch-wrap.quick .mode-switch-label:last-child {
    color: var(--zd-text-primary, #333);
}

.mode-switch-track {
    position: relative;
    width: 32px;
    height: 18px;
    border-radius: 9px;
    transition: background 0.3s;
}

/* 工单模式 — 绿色轨道 */
.mode-switch-wrap:not(.quick) .mode-switch-track {
    background: var(--zd-primary, #03363d);
}

/* 问答模式 — 灰色轨道 */
.mode-switch-wrap.quick .mode-switch-track {
    background: #b0b0b0;
}

.mode-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.mode-switch-wrap.quick .mode-switch-thumb {
    transform: translateX(14px);
}

/* 上下文开关 - 临时问答工具栏 */
.context-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    cursor: pointer;
    user-select: none;
}

.context-switch-label {
    font-size: 11px;
    color: var(--zd-text-secondary);
    font-weight: 500;
    line-height: 1;
}

.context-switch.on .context-switch-label {
    color: var(--zd-primary, #03363d);
}

.context-switch-track {
    position: relative;
    width: 32px;
    height: 18px;
    background: #b0b0b0;
    border-radius: 9px;
    transition: background 0.3s;
}

.context-switch.on .context-switch-track {
    background: var(--zd-primary, #03363d);
}

.context-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.context-switch.on .context-switch-thumb {
    transform: translateX(14px);
}

/* 聊天面板 */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-primary {
    background: var(--zd-primary);
    color: #FFF;
    border-color: var(--zd-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--zd-primary-hover);
}

.btn-secondary {
    background: var(--zd-bg-white);
    color: var(--zd-text-primary);
    border-color: var(--zd-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--zd-bg-hover);
}

.btn-danger {
    background: var(--zd-danger);
    color: #FFF;
    border-color: var(--zd-danger);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    padding: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
}

.btn-primary .icon-send {
    filter: brightness(0) invert(1);
}

/* 卡片 */
.card {
    background: var(--zd-bg-white);
    border: 1px solid var(--zd-border-light);
    border-radius: var(--zd-radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--zd-text-primary);
    margin-bottom: 8px;
}

/* 表单 */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 12px;
    color: var(--zd-text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    color: var(--zd-text-primary);
    background: var(--zd-bg-white);
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--zd-primary);
    box-shadow: 0 0 0 2px var(--zd-primary-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.action-bar textarea.form-control {
    min-height: unset;
    resize: none;
    max-height: 80px;
}

.action-bar textarea.form-control:disabled {
    background: var(--zd-bg-secondary, #f5f5f5);
    opacity: 0.6;
    cursor: not-allowed;
}

/* 提示 */
.alert {
    padding: 10px 14px;
    border-radius: var(--zd-radius);
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.alert-info {
    background: var(--zd-primary-light);
    color: #1565C0;
    border: 1px solid #BBDEFB;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--zd-border-light);
    border-top-color: var(--zd-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner .text {
    margin-top: 10px;
    font-size: 12px;
    color: var(--zd-text-muted);
}

/* 邮件内容准备中占位气泡 */
.message-item.preparing-msg {
    align-self: flex-end;
    flex-direction: row-reverse;
    opacity: 0.6;
}
.message-item.preparing-msg .bubble {
    background: var(--zd-primary);
    color: #fff;
    border-bottom-right-radius: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-style: italic;
}

/* 按钮内联加载状态 */
.btn.btn-preparing {
    pointer-events: none;
    opacity: 0.72;
}
.btn-inline-spinner {
    display: inline-block;
    width: 11px;
    height: 11px;
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
    margin-bottom: 1px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--zd-text-muted);
}

.empty-state .icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.empty-state .title {
    font-size: 14px;
    color: var(--zd-text-secondary);
    margin-bottom: 6px;
}

.empty-state .desc {
    font-size: 12px;
}

/* 工单信息 */
.ticket-info .field {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.ticket-info .field-label {
    flex-shrink: 0;
    width: 70px;
    color: var(--zd-text-muted);
}

.ticket-info .field-value {
    flex: 1;
    color: var(--zd-text-primary);
    word-break: break-all;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 500;
}

.badge-open { background: #E3F2FD; color: #1565C0; }
.badge-closed { background: #E8F5E9; color: #2E7D32; }
.badge-pending { background: #FFF3E0; color: #E65100; }

/* 消息气泡 */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-item {
    font-size: 13px;
    line-height: 1.6;
    max-width: 90%;
    display: flex;
    gap: 8px;
}

.message-item .bubble {
    padding: 10px 14px;
    border-radius: 8px;
}

.message-item.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-item.user .bubble {
    background: var(--zd-primary);
    color: #FFF;
    border-bottom-right-radius: 2px;
}

.message-item.assistant {
    align-self: flex-start;
}

.message-item.assistant .bubble {
    background: var(--zd-bg-light);
    color: var(--zd-text-primary);
    border-bottom-left-radius: 2px;
}

/* AI 头像 */
.ai-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar img {
    width: 36px;
    height: 36px;
}

.avatar-wrapper {
    padding-top: 2px;
}

/* 气泡容器（含底部操作） */
.bubble-wrap {
    min-width: 0;
}

.bubble-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    gap: 8px;
}

.bubble-footer .time {
    font-size: 11px;
    opacity: 0.7;
}

/* 复制按钮 */
.btn-copy {
    background: none;
    border: none;
    padding: 2px 6px;
    font-size: 12px;
    color: var(--zd-text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 3px;
}

.btn-copy:hover {
    color: var(--zd-primary);
    background: var(--zd-primary-light);
}

.btn-copy .copy-icon,
.btn-copy .check-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.btn-copy .check-icon {
    display: none;
}

.btn-copy.copied {
    color: var(--zd-success);
    background: #E8F5E9;
    pointer-events: none;
}

.btn-copy.copied .copy-icon {
    display: none;
}

.btn-copy.copied .check-icon {
    display: inline-block;
}

/* 拖拽上传反馈 */
.app-content.drag-over {
    background: var(--zd-primary-light);
    outline: 2px dashed var(--zd-primary);
    outline-offset: -4px;
}

/* 邮件内容标签（用户发送的工单内容） */
.bubble-email {
    cursor: default;
}

.bubble-email .email-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--zd-text-secondary, #666);
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.bubble-email .email-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.bubble-email .email-image-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.bubble-email .email-image-tag {
    position: absolute;
    top: 3px;
    left: 3px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
}

.bubble-email .email-image-item .msg-image {
    max-width: 80px;
    max-height: 60px;
    border-radius: 4px;
    object-fit: cover;
    transition: opacity 0.15s;
}

.bubble-email .email-image-item:hover .msg-image {
    opacity: 0.8;
}

.bubble-email .email-body {
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}

/* 消息中的图片 */
.msg-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.msg-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.msg-image:hover {
    transform: scale(1.05);
}

/* 图片灯箱 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 90vw;
    height: 90vh;
}

.lightbox-content img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transform-origin: 0 0;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.lightbox-content img.dragging {
    cursor: grabbing;
}

.lightbox-zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--zd-danger);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片预览区（待发送）—— 单行横向滚动 */
.image-preview {
    padding: 6px 12px;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    border-bottom: 1px solid var(--zd-border-light);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.image-preview::-webkit-scrollbar { height: 4px; }
.image-preview::-webkit-scrollbar-thumb { background: var(--zd-border-light); border-radius: 2px; }

.preview-item {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.preview-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid var(--zd-border-light);
}

.preview-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: var(--zd-danger);
    color: #FFF;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-info {
    flex-shrink: 0;
    padding: 0 4px;
    font-size: 11px;
    white-space: nowrap;
}

/* 底部操作区 - 固定底部 */
.action-area {
    flex-shrink: 0;
    border-top: 1px solid var(--zd-border-light);
    background: var(--zd-bg-white);
}

.action-toolbar {
    padding: 8px 16px 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-bar {
    padding: 8px 16px 12px;
    display: flex;
    gap: 8px;
}

.action-bar .form-control {
    flex: 1;
}

/* 思考中指示器 */
.thinking-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: var(--zd-text-muted);
    font-style: italic;
}
.thinking-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 4px;
    align-items: center;
}
.thinking-dots::before,
.thinking-dots::after,
.thinking-dots span {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--zd-text-muted);
    animation: dot-bounce 1.4s ease-in-out infinite;
}
.thinking-dots::after {
    animation-delay: 0.2s;
}
.thinking-dots span {
    animation-delay: 0.4s;
}
@keyframes dot-bounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* 推理过程折叠块 */
.thinking-block {
    margin-bottom: 6px;
}
.thinking-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    padding: 2px 0;
}
.thinking-header:hover {
    opacity: 0.8;
}
.thinking-chevron {
    transition: transform 0.2s ease;
    color: var(--zd-text-muted);
    flex-shrink: 0;
}
.thinking-block.expanded .thinking-chevron {
    transform: rotate(90deg);
}
.thinking-content {
    display: none;
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--zd-bg-white);
    border-left: 2px solid var(--zd-border);
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--zd-text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}
.thinking-block.expanded .thinking-content {
    display: block;
}
.thinking-label {
    font-size: 13px;
    color: var(--zd-text-muted);
    font-style: italic;
}

/* 自定义确认弹窗 */
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    animation: confirmFadeIn 0.15s ease;
}

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.confirm-box {
    background: var(--zd-bg-white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    width: 300px;
    max-width: 85vw;
    overflow: hidden;
    animation: confirmSlideIn 0.2s ease;
}

@keyframes confirmSlideIn {
    from { transform: scale(0.92) translateY(-8px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.confirm-body {
    padding: 24px 20px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--zd-text-primary);
    text-align: center;
}

.confirm-actions {
    display: flex;
    border-top: 1px solid var(--zd-border-light);
}

.confirm-actions .btn {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.confirm-actions .btn-secondary {
    background: var(--zd-bg-white);
    color: var(--zd-text-secondary);
    border-right: 1px solid var(--zd-border-light);
}

.confirm-actions .btn-secondary:hover {
    background: var(--zd-bg-hover, #f5f5f5);
}

.confirm-actions .btn-primary {
    background: var(--zd-bg-white);
    color: var(--zd-primary);
}

.confirm-actions .btn-primary:hover {
    background: var(--zd-primary-light);
}

/* Toast 提示 */
.toast-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--zd-primary, #1890ff);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.3);
}

.toast-msg.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 错误提示 */
.error-text {
    color: var(--zd-text-secondary);
    font-style: italic;
}

/* 已停止生成 */
.stopped-text {
    display: block;
    margin-top: 8px;
    color: var(--zd-text-secondary);
    font-size: 12px;
    font-style: italic;
}

/* ========== AI 回复 Markdown 内容 ========== */
.message-item.assistant .bubble {
    max-width: min(560px, calc(100vw - 70px));
    word-break: break-word;
    overflow-x: auto;
}

.message-item.assistant .bubble p {
    margin: 0 0 8px;
}
.message-item.assistant .bubble p:last-child {
    margin-bottom: 0;
}

.message-item.assistant .bubble h1,
.message-item.assistant .bubble h2,
.message-item.assistant .bubble h3,
.message-item.assistant .bubble h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 4px;
    color: var(--zd-text-primary);
}

.message-item.assistant .bubble h1:first-child,
.message-item.assistant .bubble h2:first-child,
.message-item.assistant .bubble h3:first-child {
    margin-top: 0;
}

.message-item.assistant .bubble ul,
.message-item.assistant .bubble ol {
    padding-left: 18px;
    margin: 4px 0 8px;
}

.message-item.assistant .bubble li {
    margin-bottom: 3px;
}

.message-item.assistant .bubble blockquote {
    border-left: 3px solid var(--zd-primary);
    margin: 8px 0;
    padding: 4px 10px;
    color: var(--zd-text-secondary);
    background: var(--zd-primary-light);
    border-radius: 0 4px 4px 0;
}

.message-item.assistant .bubble hr {
    border: none;
    border-top: 1px solid var(--zd-border-light);
    margin: 10px 0;
}

.message-item.assistant .bubble table {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    margin: 8px 0;
    font-size: 12px;
}
.message-item.assistant .bubble th,
.message-item.assistant .bubble td {
    border: 1px solid var(--zd-border);
    padding: 5px 8px;
    text-align: left;
}
.message-item.assistant .bubble th {
    background: var(--zd-bg-light);
    font-weight: 600;
}

/* 行内代码 */
.message-item.assistant .bubble code:not(pre code) {
    background: #f0f0f0;
    color: #c7254e;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* 代码块 */
.message-item.assistant .bubble pre {
    background: #f6f8fa;
    border: 1px solid var(--zd-border-light);
    border-radius: 6px;
    margin: 8px 0;
    overflow: auto;
}

.message-item.assistant .bubble pre code {
    display: block;
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    line-height: 1.6;
    color: inherit;
    background: transparent;
}

/* 代码块语言标签 */
.code-block-wrap {
    position: relative;
}
.code-block-lang {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    color: var(--zd-text-muted);
    font-family: monospace;
    text-transform: uppercase;
    pointer-events: none;
}

/* 强调 */
.message-item.assistant .bubble strong {
    font-weight: 600;
    color: var(--zd-text-primary);
}

.message-item.assistant .bubble em {
    font-style: italic;
    color: var(--zd-text-secondary);
}

/* 链接 */
.message-item.assistant .bubble a {
    color: var(--zd-primary);
    text-decoration: none;
}
.message-item.assistant .bubble a:hover {
    text-decoration: underline;
}

/* ========== 窄屏适配（Zoho Desk 320px 侧栏） ========== */
@media (max-width: 360px) {
    .app-header {
        padding: 8px 10px;
    }
    .mode-switch-label {
        font-size: 10px;
    }
    .app-content {
        padding: 10px;
    }
    .message-item {
        max-width: 95%;
        gap: 6px;
    }
    .ai-avatar, .ai-avatar img {
        width: 28px;
        height: 28px;
    }
    .message-item .bubble {
        padding: 8px 10px;
    }
    .action-toolbar {
        padding: 6px 10px 0;
        gap: 4px;
    }
    .action-toolbar .btn-sm {
        padding: 3px 6px;
        font-size: 11px;
        gap: 3px;
    }
    .action-toolbar .btn-sm svg {
        width: 12px;
        height: 12px;
    }
    .action-bar {
        padding: 6px 10px 10px;
        gap: 6px;
    }
    .image-preview {
        padding: 6px 10px;
    }
    .message-item.assistant .bubble pre code {
        font-size: 11px;
        padding: 8px 10px;
    }
    .lightbox-close {
        top: 6px;
        right: 6px;
    }
}
