/* ============================================
   OsAI 聊天页面样式
   ============================================ */

/* === 整体布局 === */
.osai-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    background: #fff;
    position: relative;
}

/* === 左侧边栏 === */
.osai-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, opacity 0.25s ease, border 0.25s ease;
    overflow: hidden;
}

.osai-sidebar.collapsed {
    width: 0;
    min-width: 0;
    opacity: 0;
    border-right: none;
    overflow: hidden;
}

@media (max-width: 900px) {
    .osai-sidebar,
    .osai-sidebar.collapsed {
        width: 280px;
        opacity: 1;
        border-right: 1px solid #e5e7eb;
    }
}

.osai-sidebar-header {
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.osai-new-chat {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: #f8f9fb;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.osai-new-chat:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.osai-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.osai-history-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    position: relative;
    gap: 8px;
}

.osai-history-item .osai-history-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.osai-history-item:hover {
    background: #f5f5f5;
}

.osai-history-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.osai-history-item .osai-history-delete {
    display: none;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    color: #bbb;
    cursor: pointer;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.15s ease;
}

.osai-history-item:hover .osai-history-delete {
    display: flex;
}

.osai-history-item .osai-history-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.osai-sidebar-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    width: 28px;
    height: 64px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 8px rgba(0,0,0,0.06);
    transition: left 0.25s ease, background 0.2s, color 0.2s;
}

.osai-sidebar-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

.osai-sidebar-toggle:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.osai-sidebar-toggle .osai-toggle-arrow {
    transition: transform 0.25s ease;
}

.osai-sidebar-toggle.expanded {
    left: 280px;
}

.osai-sidebar-toggle.expanded .osai-toggle-arrow {
    transform: rotate(180deg);
}

/* 手机端：按钮跟随侧边栏移动 */
@media (max-width: 900px) {
    .osai-sidebar:not(.mobile-open) ~ .osai-main .osai-sidebar-toggle {
        left: 0;
    }
    .osai-sidebar.mobile-open ~ .osai-sidebar-toggle {
        left: 280px;
    }
    .osai-sidebar-toggle.expanded {
        left: 280px;
        z-index: 110;
    }
    .osai-sidebar-toggle:not(.expanded) {
        left: 0;
    }
}

.osai-toggle-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.osai-toggle-sidebar:hover {
    background: #f5f5f5;
    color: #333;
}

/* === 自定义确认弹窗 === */
.osai-confirm-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.osai-confirm-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: osai-confirm-in 0.2s ease;
}

@keyframes osai-confirm-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.osai-confirm-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.osai-confirm-box p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

.osai-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.osai-confirm-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.osai-confirm-btn.cancel {
    background: #f5f5f7;
    color: #555;
}

.osai-confirm-btn.cancel:hover {
    background: #e5e5e7;
}

.osai-confirm-btn.confirm {
    background: #ef4444;
    color: #fff;
}

.osai-confirm-btn.confirm:hover {
    background: #dc2626;
}

/* === 侧边栏遮罩 === */
.osai-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.osai-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* === 主聊天区域 === */
.osai-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    position: relative;
}

/* === 顶部栏 === */
.osai-topbar {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 52px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    gap: 12px;
    flex-shrink: 0;
}

.osai-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.3px;
}

.osai-model-badge {
    display: none;
}

.osai-topbar-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.osai-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.osai-btn-icon:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #e5e7eb;
}

/* === Os 论坛 Logo（带粒子动画） === */
.osai-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 8px;
}

.osai-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
}

.osai-logo-ring {
    position: absolute;
    inset: 0;
    z-index: 1;
    animation: osai-logo-spin 20s linear infinite;
}

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

.osai-logo-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -2px 0 0 -2px;
    transform: rotate(calc(var(--i) * 22.5deg)) translateX(14px);
    opacity: 0.9;
    animation: osai-logo-pulse 2.2s ease-in-out infinite calc(var(--i) * 0.12s);
}

.osai-logo-dot:nth-child(1)  { background: #ff2d55; }
.osai-logo-dot:nth-child(2)  { background: #ff375f; }
.osai-logo-dot:nth-child(3)  { background: #ff453a; }
.osai-logo-dot:nth-child(4)  { background: #ff9500; }
.osai-logo-dot:nth-child(5)  { background: #ff9f0a; }
.osai-logo-dot:nth-child(6)  { background: #ffcc00; }
.osai-logo-dot:nth-child(7)  { background: #ffd60a; }
.osai-logo-dot:nth-child(8)  { background: #34c759; }
.osai-logo-dot:nth-child(9)  { background: #30d158; }
.osai-logo-dot:nth-child(10) { background: #32d74b; }
.osai-logo-dot:nth-child(11) { background: #007aff; }
.osai-logo-dot:nth-child(12) { background: #0a84ff; }
.osai-logo-dot:nth-child(13) { background: #5856d6; }
.osai-logo-dot:nth-child(14) { background: #5e5ce6; }
.osai-logo-dot:nth-child(15) { background: #af52de; }
.osai-logo-dot:nth-child(16) { background: #bf5af2; }

@keyframes osai-logo-pulse {
    0%, 100% { transform: rotate(calc(var(--i) * 22.5deg)) translateX(14px) scale(1); opacity: 0.85; }
    50% { transform: rotate(calc(var(--i) * 22.5deg)) translateX(14px) scale(1.5); opacity: 1; }
}

.osai-logo-text {
    position: absolute;
    inset: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -2px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}
.osai-logo:hover .osai-logo-text {
    transform: scale(1.05);
}
.osai-logo-o {
    color: #0066cc;
    position: relative;
    z-index: 2;
}
.osai-logo-s {
    color: #34c759;
    position: relative;
    z-index: 2;
    margin-left: -2px;
}

/* === 模型名称（发送按钮下方） === */
.osai-model-name {
    display: none;
}

/* === 消息区 === */
.osai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: auto;
}

/* 欢迎页 */
.osai-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 40px 20px;
}

.osai-welcome-icon {
    margin-bottom: 20px;
}

.osai-welcome .osai-logo-container {
    animation: osai-welcome-float 4s ease-in-out infinite;
}

@keyframes osai-welcome-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.osai-welcome .osai-logo-dot {
    transform: rotate(calc(var(--i) * 22.5deg)) translateX(26px);
    width: 5px;
    height: 5px;
}

@keyframes osai-welcome-pulse {
    0%, 100% { transform: rotate(calc(var(--i) * 22.5deg)) translateX(26px) scale(1); opacity: 0.85; }
    50% { transform: rotate(calc(var(--i) * 22.5deg)) translateX(26px) scale(1.5); opacity: 1; }
}

.osai-welcome .osai-logo-dot {
    animation: osai-welcome-pulse 2.2s ease-in-out infinite calc(var(--i) * 0.12s);
}

.osai-welcome .osai-logo-ring {
    animation: osai-logo-spin 12s linear infinite;
}

.osai-welcome .osai-logo-text {
    font-weight: 800;
}

.osai-welcome h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.osai-welcome p {
    font-size: 15px;
    color: #86868b;
    margin: 0;
    max-width: 420px;
    line-height: 1.6;
}

/* === AI 思考中动画 === */
.osai-thinking {
    display: inline-flex;
    align-items: center;
    color: #86868b;
    font-size: 14px;
    gap: 0;
}
.osai-thinking-text {
    color: #86868b;
}
.osai-thinking-dots {
    display: inline-block;
    width: 18px;
    text-align: left;
    overflow: hidden;
    animation: osai-dot-cycle 1.4s steps(1) infinite;
    white-space: nowrap;
}
@keyframes osai-dot-cycle {
    0%, 25% { width: 0; }
    26%, 50% { width: 6px; }
    51%, 75% { width: 12px; }
    76%, 100% { width: 18px; }
}
.osai-thinking-inline {
    display: inline-flex;
    align-items: center;
    color: #86868b;
    font-size: 12px;
    margin-left: 4px;
    vertical-align: middle;
}
.osai-thinking-inline .osai-thinking-text {
    color: #86868b;
    font-size: 12px;
}
.osai-thinking-inline .osai-thinking-dots {
    display: inline-block;
    width: 0;
    text-align: left;
    overflow: hidden;
    animation: osai-dot-cycle 1.4s steps(1) infinite;
    white-space: nowrap;
}

/* === 对话列表三点菜单 === */
.osai-history-menu-btn {
    display: none;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.osai-history-item:hover .osai-history-menu-btn {
    display: flex;
}
.osai-history-menu-btn:hover {
    background: #e5e7eb;
    color: #333;
}
/* 手机端：三点菜单始终显示 */
@media (max-width: 900px) {
    .osai-history-menu-btn {
        display: flex;
    }
}

.osai-history-menu {
    position: fixed;
    z-index: 200;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 4px;
    min-width: 150px;
}
.osai-history-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}
.osai-history-menu-item:hover {
    background: #f5f5f5;
}
.osai-history-menu-item.danger {
    color: #ef4444;
}
.osai-history-menu-item.danger:hover {
    background: #fef2f2;
}

/* === 消息气泡 === */
.osai-message {
    display: flex;
    max-width: 85%;
    animation: osai-fade-in 0.3s ease;
}

@keyframes osai-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.osai-message.user {
    align-self: flex-end;
}

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

.osai-message-content {
    background: #f5f5f7;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #333;
    word-break: break-word;
}

.osai-message.user .osai-message-content {
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.osai-message.assistant .osai-message-content {
    border-bottom-left-radius: 4px;
}

.osai-message-content p {
    margin: 0 0 8px;
}

.osai-message-content p:last-child {
    margin-bottom: 0;
}

/* 代码块 */
.osai-message-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.5;
}

.osai-message-content code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

.osai-message-content :not(pre) > code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.osai-message.user .osai-message-content :not(pre) > code {
    background: rgba(255,255,255,0.2);
}

.osai-code-block-wrapper {
    position: relative;
}

.osai-code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.osai-code-copy-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* === 输入区 === */
.osai-input-area {
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
}

.osai-input-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 10px 10px 10px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.osai-input-wrapper:focus-within {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.osai-input-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.osai-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    resize: none;
    max-height: 150px;
    font-family: inherit;
    padding: 6px 0;
    align-self: center;
    min-height: 24px;
}

.osai-input-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-right: 2px;
}

.osai-input-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.osai-model-select-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
}

.osai-model-select-pill:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.osai-model-select-pill svg {
    flex-shrink: 0;
}

/* === 模型选择弹窗 === */
.osai-model-picker {
    position: fixed;
    z-index: 150;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 12px;
    min-width: 200px;
    max-width: 90vw;
    animation: osai-picker-in 0.18s ease;
}

@keyframes osai-picker-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.osai-model-picker-title {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    margin-bottom: 8px;
    padding: 0 4px;
}

.osai-model-picker-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.osai-model-picker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: inherit;
}

.osai-model-picker-item:hover {
    background: #f5f5f7;
}

.osai-model-picker-item.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.osai-input::placeholder {
    color: #aaa;
}

.osai-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.osai-send-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.osai-send-btn svg {
    display: block;
    margin-left: -1px;
    margin-top: 1px;
}

.osai-send-btn:disabled {
    background: #c7d2fe;
    cursor: not-allowed;
    transform: none;
}

/* === 图片预览 === */
.osai-image-preview {
    position: relative;
    display: inline-flex;
    margin: 6px 0 2px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.osai-image-preview img {
    max-width: 120px;
    max-height: 80px;
    object-fit: cover;
    display: block;
}

.osai-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.15s;
}

.osai-image-remove:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* === 图片上传按钮（输入框左侧） === */
.osai-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.osai-upload-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.osai-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    margin: 8px 0 0;
}

/* === 流式输出光标 === */
.osai-streaming-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #2563eb;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: osai-cursor-blink 0.8s infinite;
}

@keyframes osai-cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* === 响应式 === */
@media (max-width: 900px) {
    .osai-wrapper {
        margin: 0;
    }

    .osai-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    }

    .osai-sidebar.mobile-open {
        transform: translateX(0);
    }

    .osai-message {
        max-width: 92%;
    }

    .osai-messages {
        padding: 12px;
        gap: 12px;
    }

    .osai-message-content {
        font-size: 14px;
        padding: 10px 13px;
    }

    /* 头像已移除 */

    .osai-model-bar {
        padding: 8px 12px;
        gap: 6px;
    }

    .osai-model-history span {
        display: none;
    }

    .osai-model-history {
        padding: 7px;
    }

    .osai-model-item {
        padding: 5px 10px;
        font-size: 12px;
    }

    .osai-input-area {
        padding: 8px 12px 12px;
    }

    .osai-input-wrapper {
        padding: 8px 8px 8px 14px;
        border-radius: 18px;
    }

    .osai-input {
        font-size: 15px;
        min-height: 40px;
        padding: 6px 0;
    }

    .osai-input-bottom {
        margin-top: 6px;
    }

    .osai-model-select-pill {
        padding: 4px 9px;
        font-size: 11px;
    }

    .osai-send-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .osai-topbar {
        padding: 0 12px;
        height: 48px;
    }

    .osai-logo-container {
        width: 32px;
        height: 32px;
    }

    .osai-logo-dot {
        transform: rotate(calc(var(--i) * 22.5deg)) translateX(12px);
    }

    @keyframes osai-logo-pulse {
        0%, 100% { transform: rotate(calc(var(--i) * 22.5deg)) translateX(12px) scale(1); opacity: 0.85; }
        50% { transform: rotate(calc(var(--i) * 22.5deg)) translateX(12px) scale(1.5); opacity: 1; }
    }

    .osai-logo-text {
        font-size: 14px;
    }

    .osai-title {
        font-size: 15px;
    }

    .osai-welcome h2 {
        font-size: 22px;
    }

    .osai-welcome p {
        font-size: 14px;
    }
}