:root {
  color-scheme: light;
  --ink: #1b2634;
  --ink-soft: #485868;
  --muted: #82909d;
  --line: #e6e9eb;
  --surface: #ffffff;
  --canvas: #f6f7f8;
  --sidebar: #f9fafb;
  --accent: #126f72;
  --accent-dark: #0f5e62;
  --accent-soft: #e8f4f2;
  --gold: #ddae62;
  --danger: #b73b43;
  --shadow: 0 18px 60px rgba(26, 42, 56, .11);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { min-width: 280px; min-height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(18, 111, 114, .28); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.brand-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex: none; }
.brand-mark span { width: 6px; height: 17px; border-radius: 5px; background: var(--accent); transform: skew(-20deg); }
.brand-mark span:nth-child(2) { height: 23px; background: #37a09a; }
.brand-mark span:nth-child(3) { height: 14px; background: var(--gold); }
.brand-mark-small { width: 20px; height: 20px; gap: 1px; }
.brand-mark-small span { width: 4px; height: 13px; }
.brand-mark-small span:nth-child(2) { height: 18px; }
.brand-mark-small span:nth-child(3) { height: 10px; }
.brand-name { font-size: 15px; font-weight: 730; letter-spacing: .055em; }
.brand-name > span { color: var(--accent); font-weight: 520; margin-inline-start: 3px; }

/* Sign in */
.auth-view { min-height: 100vh; display: flex; flex-direction: column; background: #f4f6f6; }
.auth-topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5.5vw, 88px); }
.language-control select { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-soft); padding: 0 32px 0 11px; cursor: pointer; font-size: 12px; }
.auth-main { width: min(1120px, calc(100% - 48px)); margin: 28px auto 40px; display: grid; grid-template-columns: minmax(370px, 1fr) minmax(370px, .96fr); min-height: min(680px, calc(100vh - 180px)); border: 1px solid #e7e9e9; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 86px); max-width: 570px; width: 100%; margin: 0 auto; }
.auth-card-brand { display: flex; align-items: center; gap: 9px; color: #64717c; font-size: 11px; font-weight: 680; letter-spacing: .11em; margin-bottom: 48px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .16em; line-height: 1.5; margin: 0 0 12px; text-transform: uppercase; }
.auth-card h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(34px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.1; }
.auth-subtitle { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 12px 0 30px; }
.auth-card form { display: flex; flex-direction: column; }
.field-label { font-size: 12px; color: #465565; font-weight: 650; margin: 0 0 8px; }
.field-label-password { margin-top: 20px; }
.auth-card input { width: 100%; height: 48px; border: 1px solid #dce1e4; border-radius: 10px; padding: 0 14px; color: var(--ink); background: #fff; font-size: 14px; transition: border .2s, box-shadow .2s; }
.auth-card input::placeholder { color: #adb6bf; }
.auth-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18, 111, 114, .1); outline: 0; }
.button { cursor: pointer; border: 0; }
.button-primary { color: #fff; background: var(--accent); border-radius: 10px; min-height: 48px; font-size: 14px; font-weight: 650; transition: background .18s, transform .18s; }
.button-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.button:disabled, .send-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.auth-submit { margin-top: 24px; }
.auth-switch-line { color: #788591; font-size: 12px; text-align: center; margin: 24px 0 0; }
.text-button { border: 0; background: transparent; padding: 0; color: var(--accent); font-size: 12px; font-weight: 680; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.auth-legal { border-top: 1px solid #edf0f1; margin: 38px 0 0; padding-top: 16px; color: #9aa5ad; font-size: 11px; text-align: center; }
.auth-error { color: var(--danger); background: #fff1f1; border-radius: 8px; padding: 10px 12px; margin: 16px 0 0; font-size: 12px; line-height: 1.5; }
.auth-aside { min-height: 540px; position: relative; isolation: isolate; overflow: hidden; display: flex; background: #132d38; color: #fff; }
.auth-aside::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 70% 40%, rgba(55, 160, 154, .26), transparent 36%), linear-gradient(145deg, #163740 5%, #132933 55%, #1c3744 100%); }
.auth-aside::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); }
.aside-content { width: 100%; min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(34px, 5vw, 72px); }
.aside-kicker { color: #a9c4c7; font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.aside-art { height: 240px; position: relative; display: grid; place-items: center; margin: 12px 0 24px; }
.art-glow { position: absolute; width: 145px; height: 145px; border-radius: 50%; background: rgba(58, 178, 163, .18); filter: blur(30px); }
.art-core { z-index: 2; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 30px; border: 1px solid rgba(235, 255, 250, .48); background: linear-gradient(145deg, rgba(93, 182, 170, .42), rgba(31, 75, 86, .5)); box-shadow: 0 20px 60px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.5); transform: rotate(-8deg); backdrop-filter: blur(10px); }
.core-glyph { color: #fff; font-family: Georgia, serif; font-size: 49px; line-height: 1; transform: rotate(8deg); opacity: .94; }
.art-ring { position: absolute; border: 1px solid rgba(178, 226, 220, .28); border-radius: 50%; transform: rotate(-25deg); }
.ring-a { width: 226px; height: 118px; }
.ring-b { width: 286px; height: 166px; transform: rotate(36deg); border-style: dashed; border-color: rgba(221, 174, 98, .36); }
.art-node { z-index: 3; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px rgba(221,174,98,.7); }
.node-one { top: 36px; left: calc(50% - 4px); }
.node-two { bottom: 49px; right: calc(50% - 130px); width: 7px; height: 7px; background: #61c2b4; }
.node-three { top: 58px; left: calc(50% - 133px); width: 6px; height: 6px; background: #e7f5ef; }
.auth-aside h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(29px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.18; margin: 2px 0 11px; }
.auth-aside p { color: #b8c9cd; max-width: 360px; font-size: 13px; line-height: 1.75; margin: 0; }
.aside-footer { display: flex; align-items: center; gap: 10px; color: #a8bfc2; font-size: 10px; margin-top: 36px; letter-spacing: .04em; }
.footer-line { display: inline-block; width: 24px; height: 1px; background: var(--gold); }
.page-footer { display: flex; justify-content: space-between; width: min(1120px, calc(100% - 48px)); margin: 0 auto 22px; color: #929da5; font-size: 10px; }

/* Conversation workspace */
.app-view { min-height: 100vh; height: 100vh; display: grid; grid-template-columns: 270px minmax(0,1fr); overflow: hidden; background: #fff; }
.sidebar { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; background: var(--sidebar); border-inline-end: 1px solid var(--line); padding: 24px 15px 17px; }
.sidebar-top { min-height: 0; display: flex; flex-direction: column; }
.sidebar-brand { padding-inline: 10px; margin: 0 0 34px; }
.sidebar-close { display: none !important; }
.button-new-chat { display: flex; align-items: center; gap: 10px; min-height: 42px; border: 1px solid #dfe5e6; border-radius: 9px; padding: 0 10px; background: #fff; color: #344352; text-align: start; font-size: 12px; font-weight: 620; transition: .18s; }
.button-new-chat:hover { border-color: #b5d1ce; background: #fafffe; }
.button-new-chat > svg { width: 17px; height: 17px; stroke: var(--accent); stroke-width: 1.8; fill: none; flex: none; }
.shortcut { margin-inline-start: auto; font-size: 9px; color: #a1abb2; letter-spacing: .05em; }
.history-heading { display: flex; align-items: center; justify-content: space-between; padding: 27px 9px 11px; color: #89949d; font-size: 10px; font-weight: 680; text-transform: uppercase; letter-spacing: .12em; }
.history-count { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; background: #edf0f0; color: #75828c; font-size: 9px; letter-spacing: 0; }
.conversation-list { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; }
.history-item { display: flex; gap: 4px; min-height: 38px; align-items: center; border-radius: 8px; padding: 2px 3px 2px 8px; color: #697783; }
.history-item:hover { background: #eef1f1; }
.history-item.active { background: #e8f1f0; color: #195e61; }
.history-open { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; border: 0; padding: 0; background: transparent; text-align: start; cursor: pointer; color: inherit; }
.history-open svg { width: 15px; height: 15px; stroke: #98a5a9; fill: none; stroke-width: 1.6; flex: none; }
.history-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.history-delete { flex: none; display: none; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: #8b969e; }
.history-item:hover .history-delete, .history-delete:focus-visible { display: grid; place-items: center; }
.history-delete:hover { color: var(--danger); background: #fff; }
.history-delete svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.empty-history { padding: 8px 9px; color: #a1abb1; font-size: 11px; line-height: 1.6; }
.sidebar-bottom { border-top: 1px solid #e8ebec; padding-top: 13px; }
.account-row { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 5px; }
.avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #dcecea; color: #246e6c; font-size: 12px; font-weight: 730; }
.account-copy { flex: 1; display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.account-label { color: #89949d; font-size: 9px; }
.account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #455361; font-size: 10px; font-weight: 620; }
.icon-button { display: grid; place-items: center; flex: none; border: 0; border-radius: 8px; background: transparent; color: #84919a; cursor: pointer; transition: background .18s, color .18s; }
.icon-button:hover { background: #e9eeee; color: var(--accent); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.logout-button { width: 31px; height: 31px; }
.sidebar-company { padding: 12px 5px 0; color: #a4adb4; font-size: 8px; letter-spacing: .11em; }

.chat-main { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; background: #fff; }
.chat-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(19px, 4vw, 58px); border-bottom: 1px solid #edf0f0; }
.header-left, .header-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-button { display: none !important; width: 36px; height: 36px; }
.page-title { display: flex; align-items: center; gap: 10px; min-width: 0; color: #8d98a0; font-size: 11px; }
.header-separator { color: #d1d7da; }
.header-conversation { overflow: hidden; max-width: min(32vw, 330px); text-overflow: ellipsis; white-space: nowrap; color: #475663; font-size: 12px; font-weight: 640; }
.connection-pill { display: flex; align-items: center; gap: 7px; white-space: nowrap; color: #83919b; font-size: 10px; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #e4ad57; box-shadow: 0 0 0 3px #f8f1e7; }
.connection-pill.ready .connection-dot { background: #42a17f; box-shadow: 0 0 0 3px #e6f4ed; }
.connection-pill.ready { color: #547667; }
.connection-pill.offline .connection-dot { background: #c96565; box-shadow: 0 0 0 3px #fbebeb; }
.app-language-control select { min-height: 32px; font-size: 10px; padding-inline: 9px 24px; border-radius: 8px; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
.conversation-canvas { min-height: 100%; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; padding: 52px clamp(22px, 7vw, 92px) 36px; }
.welcome-panel { width: 100%; margin: auto 0; padding: 20px 0 30px; }
.welcome-icon { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid #e5eceb; border-radius: 15px; background: #f7faf9; box-shadow: 0 5px 18px rgba(28,71,69,.06); margin-bottom: 25px; }
.brand-mark-large { transform: scale(1.08); }
.welcome-panel .eyebrow { font-size: 9px; letter-spacing: .17em; margin-bottom: 12px; }
.welcome-panel h1 { max-width: 650px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; margin: 0; color: #1f2d39; }
.hello-name { color: var(--accent); }
.welcome-comma { color: #1f2d39; }
.welcome-title { color: #4e5d68; }
.welcome-copy { max-width: 510px; color: #89949c; font-size: 13px; line-height: 1.7; margin: 16px 0 27px; }
.suggestion-grid { max-width: 650px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.suggestion-card { min-width: 0; min-height: 58px; display: flex; align-items: center; gap: 10px; border: 1px solid #e9edee; border-radius: 11px; padding: 10px 11px; background: #fff; color: #4e5b66; cursor: pointer; text-align: start; box-shadow: 0 2px 5px rgba(16,40,51,.02); transition: border .18s, transform .18s, box-shadow .18s; }
.suggestion-card:hover { border-color: #cbdedb; box-shadow: 0 7px 19px rgba(24,73,72,.07); transform: translateY(-1px); }
.suggestion-icon { width: 31px; height: 31px; flex: none; display: grid; place-items: center; border-radius: 9px; }
.suggestion-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.icon-plan { background: #e9f2f2; color: #2d7a78; }
.icon-write { background: #f7f0e5; color: #a17637; }
.icon-learn { background: #eef0f8; color: #707ba9; }
.icon-compare { background: #edf4ed; color: #55876a; }
.suggestion-text { flex: 1; color: #57646e; font-size: 10px; line-height: 1.4; font-weight: 590; }
.suggestion-arrow { width: 14px; height: 14px; flex: none; stroke: #b1bbc0; fill: none; stroke-width: 1.6; }
.setup-banner { max-width: 650px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid #f0e4cb; border-radius: 9px; padding: 10px 12px; margin-top: 19px; background: #fffaf1; color: #84704d; font-size: 10px; line-height: 1.55; }
.setup-banner-icon { width: 15px; height: 15px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #ebd5ad; color: #75561e; font-family: Georgia, serif; font-weight: 700; font-size: 10px; }
.message-list { width: 100%; display: flex; flex-direction: column; gap: 27px; padding-bottom: 25px; }
.message-row { display: flex; align-items: flex-start; gap: 11px; animation: message-in .22s ease-out; }
.message-row.user-message { flex-direction: row-reverse; }
.message-avatar { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #edf3f2; color: var(--accent); font-size: 10px; font-weight: 720; }
.message-row.user-message .message-avatar { background: #f0f1f2; color: #5b6873; }
.message-content { max-width: min(78%, 660px); min-width: 0; }
.message-meta { display: flex; align-items: center; gap: 8px; margin: 2px 0 7px; color: #94a0a8; font-size: 9px; }
.message-row.user-message .message-meta { justify-content: flex-end; }
.message-author { color: #66747e; font-weight: 660; }
.message-bubble { border: 1px solid #edf0f0; border-radius: 3px 13px 13px 13px; padding: 12px 15px; background: #fbfcfc; color: #3c4b56; font-size: 12px; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.user-message .message-bubble { border-color: #e8eded; border-radius: 13px 3px 13px 13px; background: #f3f6f5; }
.typing-indicator { display: inline-flex; align-items: center; gap: 4px; height: 17px; }
.typing-indicator span { width: 5px; height: 5px; border-radius: 50%; background: #8ca8a6; animation: typing 1s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .12s; }.typing-indicator span:nth-child(3) { animation-delay: .24s; }
@keyframes typing { 0%,80%,100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.document-strip { width: min(100%, 720px); display: flex; flex-wrap: wrap; gap: 7px; margin: 0 auto 8px; padding-inline: 1px; }
.document-chip { max-width: 100%; min-height: 31px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e4e9e9; border-radius: 8px; padding: 0 9px; background: #fbfcfc; color: #62717c; text-decoration: none; font-size: 10px; }
.document-chip:hover { border-color: #b8d0cd; color: var(--accent); }
.document-chip svg { width: 14px; height: 14px; flex: none; stroke: #8ba09e; fill: none; stroke-width: 1.6; }
.document-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-area { padding: 9px clamp(20px, 6vw, 82px) 15px; background: #fff; }
.composer { width: min(100%, 720px); min-height: 56px; display: flex; align-items: flex-end; gap: 7px; border: 1px solid #dfe5e5; border-radius: 15px; padding: 7px 8px 7px 10px; margin: 0 auto; background: #fff; box-shadow: 0 5px 22px rgba(25,51,63,.055); transition: border .2s, box-shadow .2s; }
.composer:focus-within { border-color: #accac6; box-shadow: 0 5px 22px rgba(25,90,84,.09), 0 0 0 3px rgba(18,111,114,.06); }
.attach-button { width: 34px; height: 36px; margin-bottom: 1px; }
.attach-button svg { width: 17px; height: 17px; }
.composer textarea { resize: none; flex: 1; min-width: 0; max-height: 180px; border: 0; outline: 0; padding: 8px 4px 6px; background: transparent; color: #34434e; font-size: 12px; line-height: 1.5; }
.composer textarea:focus-visible { outline: 0; }
.composer textarea::placeholder { color: #a8b1b8; }
.send-button { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; transition: background .18s, transform .18s; }
.send-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.send-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.composer-meta { width: min(100%, 720px); display: flex; justify-content: space-between; gap: 12px; margin: 7px auto 0; color: #a0aab0; font-size: 9px; line-height: 1.45; }
.document-note { text-align: end; }
.toast { position: fixed; z-index: 20; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(-50%); max-width: min(90vw, 480px); border-radius: 10px; padding: 12px 16px; background: #1e323c; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 12px; line-height: 1.5; }
.mobile-backdrop { display: none; }

html[dir="rtl"] .brand-name { letter-spacing: 0; }
html[dir="rtl"] .shortcut { letter-spacing: 0; }
html[dir="rtl"] .message-bubble { border-radius: 13px 3px 13px 13px; }
html[dir="rtl"] .message-row.user-message .message-bubble { border-radius: 3px 13px 13px 13px; }

@media (min-width: 1500px) {
  .app-view { grid-template-columns: 290px minmax(0,1fr); }
  .conversation-canvas { max-width: 1080px; }
}

@media (max-width: 880px) {
  .auth-main { grid-template-columns: minmax(340px, .92fr) minmax(320px, 1fr); }
  .auth-card { padding: 38px; }
  .aside-content { padding: 42px 34px; }
  .app-view { grid-template-columns: 235px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .chat-header { padding-inline: 20px; }
  .conversation-canvas { padding-inline: 28px; }
  .composer-area { padding-inline: 25px; }
}

@media (max-width: 680px) {
  .auth-topbar { min-height: 64px; padding-inline: 20px; }
  .auth-main { width: calc(100% - 28px); min-height: 0; margin: 10px auto 22px; display: block; border-radius: 16px; }
  .auth-card { max-width: 100%; padding: 30px clamp(22px, 8vw, 42px) 34px; }
  .auth-card-brand { margin-bottom: 32px; }
  .auth-card h1 { font-size: 36px; }
  .auth-aside { display: none; }
  .auth-legal { margin-top: 28px; }
  .page-footer { width: calc(100% - 36px); margin-bottom: 16px; font-size: 9px; gap: 10px; }
  .app-view { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; z-index: 11; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 12px 0 36px rgba(20,35,44,.14); padding: 17px 14px; }
  html[dir="rtl"] .sidebar { transform: translateX(105%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid !important; position: absolute; inset-block-start: 17px; inset-inline-end: 12px; width: 32px; height: 32px; }
  .sidebar-brand { margin-bottom: 28px; }
  .mobile-backdrop.open { display: block; position: fixed; z-index: 10; inset: 0; background: rgba(24,37,44,.32); }
  .menu-button { display: grid !important; }
  .chat-header { min-height: 57px; padding-inline: 12px; }
  .header-left, .header-right { gap: 8px; }
  .page-title { gap: 6px; font-size: 10px; }
  .header-conversation { max-width: 30vw; font-size: 10px; }
  .connection-pill { font-size: 0; gap: 0; }
  .connection-dot { width: 8px; height: 8px; }
  .app-language-control select { min-height: 30px; font-size: 9px; }
  .conversation-canvas { padding: 30px 19px 20px; }
  .welcome-panel { margin: auto 0; padding: 16px 0 23px; }
  .welcome-icon { width: 43px; height: 43px; margin-bottom: 20px; }
  .welcome-panel h1 { font-size: clamp(34px, 10vw, 46px); }
  .welcome-copy { font-size: 12px; margin: 13px 0 21px; }
  .suggestion-grid { gap: 8px; }
  .suggestion-card { min-height: 65px; padding: 8px; gap: 7px; }
  .suggestion-icon { width: 27px; height: 27px; border-radius: 8px; }
  .suggestion-icon svg { width: 14px; height: 14px; }
  .suggestion-text { font-size: 9px; }
  .suggestion-arrow { width: 12px; height: 12px; }
  .setup-banner { margin-top: 15px; font-size: 9px; }
  .message-list { gap: 20px; }
  .message-content { max-width: 84%; }
  .message-bubble { font-size: 11px; padding: 10px 12px; }
  .composer-area { padding: 8px 12px max(11px, env(safe-area-inset-bottom)); }
  .composer { min-height: 52px; border-radius: 14px; padding: 6px; gap: 3px; }
  .attach-button { width: 31px; height: 34px; }
  .composer textarea { font-size: 12px; padding-inline: 3px; }
  .send-button { width: 34px; height: 34px; }
  .composer-meta { margin-top: 6px; font-size: 8px; }
  .document-note { max-width: 52%; }
  .document-strip { margin-bottom: 7px; }
}

@media (max-width: 380px) {
  .auth-card { padding-inline: 20px; }
  .page-footer > span:last-child { display: none; }
  .suggestion-grid { grid-template-columns: 1fr; }
  .suggestion-card { min-height: 52px; }
  .composer-meta { justify-content: center; }
  .document-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
