:root {
    --bg: #f3f6fc;
    --surface: #ffffff;
    --surface-hover: #eef1fa;
    --text: #1b2550;
    --text-muted: #7d8aa3;
    --border: #e6ebf5;
    --primary: #4b62ff;
    --primary-dark: #3a4fce;
    --accent: #19b6c9;
    --spark: #ff7a6b;
    --brand-grad: linear-gradient(135deg, #4b62ff, #19b6c9);
    --user-bubble: linear-gradient(135deg, #4b62ff, #19b6c9);
    --ai-bubble: #ffffff;
    --route-bg: #eef2ff;
    --route-border: #d6ddff;
    --tool-bg: #f6f8ff;
    --tool-border: #dee4ff;
    --shadow: 0 2px 14px rgba(75, 98, 255, 0.10);
    --shadow-lg: 0 16px 40px rgba(27, 37, 80, 0.12);
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(1100px 520px at 50% -6%, rgba(75, 98, 255, 0.07), transparent 62%),
        radial-gradient(760px 420px at 92% 6%, rgba(25, 182, 201, 0.06), transparent 60%),
        var(--bg);
    color: var(--text);
    height: 100dvh;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

[v-cloak] { display: none !important; }
#app { display: flex; flex-direction: column; height: 100dvh; height: 100vh; }

.app-loading {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; background: var(--bg);
}
.app-loading-logo {
    width: 58px; height: 58px; border-radius: 20px; padding: 9px; background: #fff;
    box-shadow: 0 12px 30px rgba(75, 98, 255, 0.24);
    animation: loading-pulse 1.6s ease-in-out infinite;
}
.app-loading-text { color: var(--text-muted); font-size: 14px; letter-spacing: 2px; }
.app-loading-bar {
    width: 150px; height: 4px; border-radius: 999px; overflow: hidden;
    background: var(--border);
}
.app-loading-bar-inner {
    height: 100%; width: 40%; border-radius: 999px;
    background: var(--brand-grad); animation: loading-slide 1.2s ease-in-out infinite;
}
@keyframes loading-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.82; } }
@keyframes loading-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.app-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: rgba(243, 246, 252, 0.7);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); z-index: 10;
    padding-top: calc(12px + env(safe-area-inset-top));
}
.header-title { display: flex; align-items: center; gap: 10px; }
.header-title h1 { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.header-logo { width: 30px; height: 30px; }
.menu-btn {
    background: none; border: none; cursor: pointer; padding: 8px;
    display: flex; align-items: center; color: var(--text-muted); font-size: 13px;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 18px; height: 2px; background: var(--text);
    border-radius: 2px; position: relative; transition: 0.2s;
}
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

.app-body { flex: 1; display: flex; overflow: hidden; position: relative; }

.sidebar {
    width: 264px; background: var(--surface); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; transition: transform 0.25s;
}
.sidebar-header { padding: 12px; border-bottom: 1px solid var(--border); }
.new-chat-btn {
    width: 100%; padding: 10px; border: 1px dashed var(--primary);
    background: var(--route-bg); color: var(--primary); border-radius: 11px;
    cursor: pointer; font-size: 14px; font-weight: 500; transition: 0.2s;
}
.new-chat-btn:hover { background: var(--brand-grad); color: #fff; border-style: solid; }
.session-list { flex: 1; overflow-y: auto; padding: 8px; }
.session-item { padding: 10px 30px 10px 12px; border-radius: 11px; cursor: pointer; margin-bottom: 4px; transition: 0.15s; position: relative; }
.session-item:hover { background: var(--bg); }
.session-item.active { background: var(--route-bg); }
.session-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; line-height: 20px; border: none; background: transparent; color: var(--text-muted); font-size: 16px; border-radius: 6px; cursor: pointer; opacity: 0; transition: 0.15s; padding: 0; }
.session-item:hover .session-del, .session-item.active .session-del { opacity: 1; }
.session-del:hover { background: rgba(229, 72, 77, 0.12); color: #e5484d; }
.session-title { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.empty-tip { text-align: center; color: var(--text-muted); font-size: 13px; padding: 20px; }
.session-search { padding: 0 0 8px; }
.session-search-input { width: 100%; box-sizing: border-box; padding: 7px 10px; font-size: 13px; border: 1px solid var(--border, rgba(15,23,42,.1)); border-radius: 9px; background: var(--bg, #fff); color: var(--text); outline: none; }
.session-search-input:focus { border-color: var(--primary, #635bff); }
.session-clear { padding: 0 0 8px; text-align: right; }
.session-clear-btn { border: none; background: transparent; color: var(--text-muted); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.session-clear-btn:hover { color: #e5484d; }
.sidebar-mask { display: none; }

.chat-main { flex: 1; display: flex; flex-direction: column; background: transparent; min-width: 0; height: 100%; }
.messages { flex: 1; overflow-y: auto; padding: 20px 0; }

.welcome {
    position: relative; text-align: center; padding: clamp(18px, 5vh, 48px) 16px 40px;
    max-width: 880px; margin: 0 auto; width: 100%;
}
.orb {
    position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
    width: 210px; height: 210px; pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgba(75, 98, 255, 0.20) 0%, rgba(25, 182, 201, 0.10) 44%, transparent 72%);
    filter: blur(2px); animation: orb-breathe 5s ease-in-out infinite;
}
@keyframes orb-breathe { 0%, 100% { transform: translateX(-50%) scale(1); opacity: .75; } 50% { transform: translateX(-50%) scale(1.12); opacity: 1; } }
.hero { position: relative; z-index: 1; }
.hero-icon {
    width: 74px; height: 74px; margin: 0 auto; border-radius: 22px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(75, 98, 255, 0.24);
}
.hero-icon img { width: 46px; height: 46px; }
.welcome h2 { font-size: 30px; font-weight: 700; letter-spacing: 1px; margin: 18px 0 8px; color: var(--text); }
.welcome h2 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--text-muted); font-size: 15px; line-height: 1.7; max-width: 460px; margin: 0 auto; }
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 4px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
    color: var(--text-muted); font-size: 12px;
}
.hero-badge b { color: var(--primary-dark); font-weight: 700; }
.hero-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text); transition: 0.18s; line-height: 1.3;
}
.hero-chip:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.chip-icon { font-size: 15px; flex-shrink: 0; }

.rec-block { text-align: left; margin-top: 22px; }
.rec-head { font-size: 14px; font-weight: 600; color: var(--text-muted); text-align: center; margin-bottom: 14px; letter-spacing: 1px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rec-item {
    display: flex; align-items: center; gap: 12px; text-align: left;
    padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px;
    background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text); transition: 0.18s; line-height: 1.45;
}
.rec-item:hover { border-color: #cdd9ff; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.rec-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: linear-gradient(135deg, rgba(75, 98, 255, 0.10), rgba(25, 182, 201, 0.12));
}
.rec-text { word-break: break-word; }

.message { display: flex; gap: 12px; margin: 0 auto 22px; max-width: 860px; padding: 0 16px; }
.message.user { flex-direction: row-reverse; }
.msg-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: #fff;
    box-shadow: 0 4px 12px rgba(27, 37, 80, 0.12);
}
.message.user .msg-avatar { background: var(--brand-grad); }
.message.assistant .msg-avatar { background: #fff; border: 1px solid var(--border); color: var(--primary); box-shadow: none; font-size: 11px; }
.msg-content { flex: 1; min-width: 0; }
.message.user .msg-content { display: flex; flex-direction: column; align-items: flex-end; }
.msg-text { padding: 12px 16px; font-size: 14px; line-height: 1.7; word-break: break-word; }
.message.user .msg-text { background: var(--user-bubble); color: #fff; max-width: 78%; border-radius: 18px 4px 18px 18px; }
.message.assistant .msg-text { background: var(--ai-bubble); border: 1px solid var(--border); border-radius: 4px 18px 18px 18px; max-width: 95%; box-shadow: var(--shadow); }
.msg-ai-tag { display: inline-block; margin-bottom: 6px; padding: 2px 9px; border: 1px solid var(--primary); color: var(--primary); border-radius: 999px; font-size: 11px; line-height: 1.4; }
.msg-thinking { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; font-size: 13px; color: var(--text-2); }
.msg-stage-text { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; }
.msg-t-dots { display: flex; gap: 4px; }
.msg-t-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: 0.4; animation: blink 1.4s infinite; }
.msg-t-dots i:nth-child(2) { animation-delay: 0.2s; }
.msg-t-dots i:nth-child(3) { animation-delay: 0.4s; }
.msg-copy {
    display: block; margin: 6px 0 0 auto; padding: 2px 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
    border-radius: 8px; cursor: pointer; font-size: 11px; transition: 0.15s;
}
.msg-copy:hover { border-color: var(--primary); color: var(--primary); }

.route-info {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
    background: var(--route-bg); border: 1px solid var(--route-border);
    border-radius: 12px; font-size: 11px; color: var(--primary-dark); margin-bottom: 8px;
}
.route-tag.routed { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.route-reason { color: var(--text-muted); font-size: 11px; }

.tool-card {
    background: var(--tool-bg); border: 1px solid var(--tool-border);
    border-radius: 11px; margin-bottom: 6px; overflow: hidden; max-width: 480px;
}
.tool-header { display: flex; align-items: center; gap: 6px; padding: 8px 12px; cursor: pointer; font-size: 12px; }
.tool-icon { font-size: 13px; }
.tool-name { flex: 1; color: var(--accent); font-weight: 600; }
.tool-status { font-size: 11px; color: var(--text-muted); }
.tool-status.done { color: #2e7d32; }
.tool-status.failed { color: #c62828; }
.tool-card.tool-failed { border-color: rgba(198, 40, 40, 0.45); }
.tool-fail-info { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px; font-size: 11px; color: #c62828; border-top: 1px solid var(--tool-border); }
.tool-fail-text { flex: 1; word-break: break-word; }
.tool-retry { flex: 0 0 auto; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; background: none; color: #c62828; cursor: pointer; font-size: 11px; }
.tool-retry:hover { background: rgba(198, 40, 40, 0.08); }
.tool-detail { padding: 8px 12px; border-top: 1px solid var(--tool-border); font-size: 11px; }
.tool-detail pre { background: #fff; padding: 6px; border-radius: 6px; overflow-x: auto; margin-top: 4px; max-height: 200px; overflow-y: auto; }
.tool-args span, .tool-result span { color: var(--text-muted); }

.msg-results { margin: 2px 0 4px; max-width: 480px; }
.msg-results-title { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); margin: 4px 0 6px; }
.msg-results-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.msg-result-block { background: var(--tool-bg); border: 1px solid var(--tool-border); border-radius: 11px; margin-bottom: 6px; overflow: hidden; }
.msg-result-head { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(75, 98, 255, 0.05); }
.msg-result-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.msg-result-body { padding: 8px 12px; font-size: 11px; }
.msg-result-text { white-space: pre-wrap; word-break: break-word; color: var(--text); line-height: 1.6; max-height: 260px; overflow: hidden; }
.msg-result-text.expanded { max-height: none; }
.msg-result-toggle { margin-top: 4px; font-size: 11px; color: var(--primary); cursor: pointer; user-select: none; }
.msg-result-toggle:hover { text-decoration: underline; }

.typing { display: flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: 0.4; animation: blink 1.4s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.msg-loading-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px 16px; }
.msg-loading-lines span { height: 13px; border-radius: 6px; background: linear-gradient(90deg, #eef1f6 25%, #e2e7ef 37%, #eef1f6 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
.msg-loading-lines span:nth-child(1) { width: 92%; }
.msg-loading-lines span:nth-child(2) { width: 78%; animation-delay: 0.15s; }
.msg-loading-lines span:nth-child(3) { width: 55%; animation-delay: 0.3s; }

.input-area {
    width: 100%; max-width: 860px; margin: 0 auto;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); position: relative;
}
.composer {
    display: flex; align-items: flex-end; gap: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
    padding: 9px 9px 9px 18px;
    box-shadow: 0 10px 30px rgba(27, 37, 80, 0.08); transition: 0.2s;
}
.composer:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(75, 98, 255, 0.12), 0 10px 30px rgba(27, 37, 80, 0.10); }
.composer textarea {
    flex: 1; border: none; background: transparent; resize: none; outline: none;
    padding: 8px 0; font-size: 16px; line-height: 1.5; max-height: 120px; font-family: inherit; color: var(--text);
}
.composer textarea::placeholder { color: #a8b2c6; }
.send-btn {
    width: 46px; height: 46px; flex: 0 0 auto; border: none; border-radius: 50%;
    background: var(--brand-grad); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(75, 98, 255, 0.3); transition: 0.2s; position: relative;
}
.send-arrow { width: 15px; height: 15px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); display: inline-block; margin-top: -5px; margin-right: 1px; }
.send-btn.stop { background: var(--text-muted); box-shadow: none; }
.send-btn.stop .send-arrow { border: none; width: 15px; height: 15px; background: #fff; border-radius: 3px; transform: none; margin: 0; }
.send-btn:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }
.send-btn:not(:disabled):hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 6px 18px rgba(75, 98, 255, 0.36); }
.scroll-bottom {
    position: absolute; top: -40px; right: 24px; z-index: 5;
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--primary); font-size: 16px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); display: flex; align-items: center; justify-content: center;
}
.scroll-bottom:hover { background: var(--route-bg); }

.header-actions { display: flex; align-items: center; }
.user-wrap { position: relative; }
.setup-wrap { position: relative; }
.setup-btn {
    height: 34px; padding: 0 12px; margin-right: 6px; border: none; border-radius: 999px;
    background: var(--surface); color: var(--text); cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-family: inherit; transition: 0.15s;
}
.setup-btn:hover { background: var(--surface-hover); }
.setup-mask { position: fixed; inset: 0; z-index: 20; }
.setup-menu {
    position: absolute; right: 0; top: 42px; min-width: 224px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10); overflow: hidden; z-index: 30; padding: 6px;
}
.setup-menu-title { padding: 8px 12px; font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.setup-menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: none; background: none; cursor: pointer; border-radius: 8px; transition: 0.15s; text-align: left; font-family: inherit; }
.setup-menu-item:hover { background: var(--bg); }
.setup-menu-icon { font-size: 17px; flex-shrink: 0; }
.setup-menu-main { display: flex; flex-direction: column; min-width: 0; }
.setup-menu-name { font-size: 13px; font-weight: 500; color: var(--text); }
.setup-menu-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.user-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.user-btn:hover { border-color: var(--primary); }
.user-avatar { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; background: var(--brand-grad); }
.user-wrap.logged_in .user-avatar { background: var(--brand-grad); }
.user-menu { position: absolute; right: 0; top: 44px; min-width: 164px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); overflow: hidden; z-index: 30; }
.user-menu-name { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-item { width: 100%; padding: 10px 16px; border: none; background: none; cursor: pointer; font-size: 13px; color: #c62828; text-align: left; transition: 0.15s; }
.user-menu-item:hover { background: #fdeaea; }

.session-skeleton { padding: 8px; }
.skeleton-line { height: 44px; border-radius: 10px; margin-bottom: 8px; background: linear-gradient(90deg, #eef1f6 25%, #e2e7ef 37%, #eef1f6 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.login-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.login-modal.active { display: flex; }
.login-modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); }
.login-modal-body { position: relative; width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 16px; box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2); }
.login-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border: none; background: none; cursor: pointer; font-size: 18px; color: var(--text-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.15s; }
.login-modal-close:hover { background: var(--bg); color: var(--text); }

@media (max-width: 1099px) {
    .sidebar { position: fixed; left: 0; top: 57px; bottom: 0; z-index: 15; transform: translateX(-100%); box-shadow: 2px 0 12px rgba(0, 0, 0, 0.10); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-mask { display: block; position: fixed; inset: 57px 0 0 0; background: rgba(0, 0, 0, 0.3); z-index: 14; }
    .setup-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; margin-right: 2px; }
    .setup-btn .hbtn-label { display: none; }
    .setup-menu { min-width: 200px; }
    .user-btn { width: 44px; height: 44px; }
}

@media (max-width: 768px) {
    .messages { padding: 12px 0; }
    .welcome { padding: 14px 12px 26px; margin: 0 auto; }
    .orb { width: 170px; height: 170px; top: 14px; }
    .hero-icon { width: 60px; height: 60px; border-radius: 18px; }
    .hero-icon img { width: 38px; height: 38px; }
    .welcome h2 { font-size: 24px; margin: 14px 0 6px; }
    .hero-sub { font-size: 13px; }
    .hero-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 2px; }
    .hero-chip { border-radius: 12px; padding: 9px 10px; font-size: 12px; justify-content: flex-start; }
    .hero-badges { gap: 6px; margin: 14px 0 2px; }
    .rec-block { margin-top: 16px; }
    .rec-head { margin-bottom: 10px; font-size: 13px; }
    .rec-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .rec-item { padding: 11px 13px; font-size: 12px; }
    .rec-icon { width: 34px; height: 34px; font-size: 17px; }
    .message { margin: 0 auto 16px; padding: 0 10px; }
    .input-area { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
    .composer { border-radius: 20px; padding: 7px 7px 7px 14px; }
    .login-modal-body { max-width: none; }
}