@font-face { font-family: Poppins; src: url('../fonts/Poppins-Regular.ttf'); font-weight: 400; }
@font-face { font-family: Poppins; src: url('../fonts/Poppins-Medium.ttf'); font-weight: 500; }
@font-face { font-family: Poppins; src: url('../fonts/Poppins-SemiBold.ttf'); font-weight: 600; }
@font-face { font-family: Poppins; src: url('../fonts/Poppins-Bold.ttf'); font-weight: 700; }

:root {
  --bg: #0d1117;
  --surface: #141920;
  --surface-raised: #191f27;
  --surface-soft: #1f252e;
  --line: #2d343e;
  --line-soft: rgba(139, 148, 158, .13);
  --text: #e6edf3;
  --muted: #8b949e;
  --muted-light: #b2bac3;
  --green: #27d07f;
  --green-soft: rgba(39, 208, 127, .11);
  --blue: #2867df;
  --blue-light: #52aaff;
  --magenta: #e954f6;
  --red: #ff4c4c;
  --yellow: #ffd33d;
  --gradient: linear-gradient(125deg, #2867df 5%, #8a5ee8 56%, #e954f6 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, system-ui, sans-serif;
  overflow: hidden;
}
button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.ambient { position: fixed; pointer-events: none; border-radius: 50%; filter: blur(1px); opacity: .6; }
.ambient-one { width: 560px; height: 560px; top: -280px; left: -240px; background: radial-gradient(circle, rgba(40, 103, 223, .18), transparent 68%); }
.ambient-two { width: 620px; height: 620px; right: -300px; bottom: -330px; background: radial-gradient(circle, rgba(233, 84, 246, .10), transparent 68%); }
.app-shell { width: 100%; height: 100vh; position: relative; z-index: 1; overflow: hidden; }

.topbar {
  height: 76px;
  border-bottom: 1px solid rgba(48, 54, 61, .75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 110px);
  background: rgba(13, 17, 23, .82);
  backdrop-filter: blur(24px);
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.brand img { width: 92px; height: 44px; object-fit: cover; display: block; }
.brand-divider { height: 22px; width: 1px; background: var(--line); margin: 0 15px; }
.brand-product { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.market-pill {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; color: #dfe5eb; font-size: 10px; font-weight: 500;
  background: rgba(31, 36, 44, .58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.mobile-market-pill { display: none; }
.pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(39, 208, 127, .09), 0 0 14px rgba(39, 208, 127, .45); }

.chat-layout {
  width: min(1380px, 100%); margin: 0 auto;
  height: calc(100vh - 76px); min-height: 0;
  display: grid; grid-template-columns: minmax(280px, 365px) minmax(600px, 810px);
  gap: clamp(42px, 6vw, 92px); justify-content: center; align-items: center;
  padding: clamp(20px, 3vh, 32px) clamp(24px, 5vw, 80px);
}
.intro-panel { align-self: center; max-height: 100%; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: .22em; }
.eyebrow span { width: 22px; height: 1px; background: linear-gradient(90deg, var(--green), transparent); }
h1 { font-size: clamp(42px, 4.3vw, 62px); line-height: 1.06; letter-spacing: -.052em; margin: 20px 0 22px; color: #fff; }
h1 em { font-style: normal; background: linear-gradient(105deg, #52aaff, #9b72f2 52%, #e954f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-copy { max-width: 350px; color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; }

.index-card {
  width: 100%; max-width: 350px; margin-top: clamp(22px, 3.5vh, 34px); padding: 17px;
  border: 1px solid var(--line); border-radius: 17px;
  background: linear-gradient(145deg, rgba(31, 37, 46, .82), rgba(20, 25, 32, .88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 16px 50px rgba(0, 0, 0, .16);
}
.index-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.data-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border: 1px solid rgba(39, 208, 127, .14); }
.data-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.live-badge { font-size: 8px; font-weight: 600; letter-spacing: .16em; color: var(--green); }
.index-card strong, .index-card > span { display: block; }
.index-card strong { font-size: 14px; color: white; margin-bottom: 3px; }
.index-card > span { font-size: 10px; color: var(--muted); }
.index-line { height: 3px; margin-top: 16px; background: #282f38; border-radius: 999px; overflow: hidden; }
.index-line i { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #52aaff); box-shadow: 0 0 10px rgba(39, 208, 127, .4); }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.trust-row span { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: #78828d; }
.trust-row svg { width: 12px; fill: none; stroke: #667381; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chat-panel {
  width: 100%; height: 100%; max-height: 790px; min-height: 0;
  border: 1px solid #303741; border-radius: 23px; overflow: hidden;
  display: flex; flex-direction: column;
  background: rgba(20, 25, 32, .94); backdrop-filter: blur(26px);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .015), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.chat-header {
  height: 78px; flex: none; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(31, 37, 46, .82), rgba(24, 30, 38, .58));
}
.assistant-identity { display: flex; align-items: center; gap: 12px; }
.assistant-mark { width: 42px; height: 42px; padding: 4px; border-radius: 13px; display: grid; place-items: center; background: var(--gradient); box-shadow: 0 8px 25px rgba(75, 86, 220, .22); }
.assistant-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; background: #151a21; }
.assistant-name { font-size: 13px; font-weight: 600; color: white; }
.assistant-name span { margin-left: 5px; padding: 2px 5px; border-radius: 5px; color: #b9d4ff; background: rgba(40, 103, 223, .16); font-size: 7px; letter-spacing: .08em; vertical-align: 2px; }
.assistant-identity p { margin: 3px 0 0; color: var(--muted); font-size: 8.5px; }
.assistant-identity p i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(39, 208, 127, .55); }
.assistant-identity p b { margin: 0 3px; color: #59636f; }
.secure-label { display: flex; align-items: center; gap: 6px; color: #6f7a85; font-size: 8px; }
.secure-label svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-header-actions { display: flex; align-items: center; gap: 12px; }
.new-chat-button {
  height: 34px; padding: 0 12px 0 7px; display: flex; align-items: center; gap: 8px;
  border: 1px solid #37404b; border-radius: 999px;
  color: #c7d0d9; background: linear-gradient(145deg, rgba(35, 42, 52, .9), rgba(24, 30, 38, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 7px 20px rgba(0, 0, 0, .14);
  font-size: 8.5px; font-weight: 500; cursor: pointer; transition: .2s ease;
}
.new-chat-icon {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  color: #b9d6ff; background: linear-gradient(135deg, rgba(40, 103, 223, .32), rgba(233, 84, 246, .24));
  box-shadow: inset 0 0 0 1px rgba(126, 151, 255, .15); transition: .2s ease;
}
.new-chat-button svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.new-chat-button:hover { color: white; border-color: rgba(82, 170, 255, .46); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(40, 103, 223, .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
.new-chat-button:hover .new-chat-icon { color: white; background: var(--gradient); transform: rotate(-4deg) scale(1.04); }
.new-chat-button:focus-visible { outline: 2px solid rgba(82, 170, 255, .65); outline-offset: 2px; }

.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 24px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #303842 transparent; }
.message { display: flex; gap: 11px; margin-bottom: 26px; }
.message.user-message { justify-content: flex-end; }
.message-body { max-width: min(91%, 690px); }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; color: white; font-size: 8px; font-weight: 700; background: var(--gradient); box-shadow: 0 6px 18px rgba(97, 78, 224, .18); }
.message-meta { margin: 0 0 7px 2px; color: #63707d; font-size: 7px; font-weight: 600; letter-spacing: .16em; }
.bubble { padding: 17px 19px; border: 1px solid var(--line); border-radius: 6px 17px 17px 17px; background: linear-gradient(145deg, rgba(31, 37, 46, .92), rgba(27, 33, 41, .92)); color: #ced5dd; font-size: 11.5px; line-height: 1.68; box-shadow: 0 10px 30px rgba(0, 0, 0, .10); }
.bubble p { margin: 0 0 10px; }
.bubble p:last-child { margin-bottom: 0; }
.welcome-bubble { padding: 20px; }
.welcome-bubble h2 { margin: 0 0 7px; color: white; font-size: 15px; letter-spacing: -.01em; }
.welcome-bubble p { color: #9da6b0; }
.user-message .message-body { max-width: 78%; }
.user-message .bubble { border: 0; border-radius: 17px 6px 17px 17px; background: linear-gradient(130deg, #2867df, #7657df); color: white; box-shadow: 0 12px 30px rgba(40, 103, 223, .17); }

.suggestions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.suggestions button { min-height: 46px; display: grid; grid-template-columns: 28px 1fr 18px; gap: 9px; align-items: center; text-align: left; padding: 8px 11px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(18, 23, 30, .72); color: #aeb6bf; font-size: 10px; cursor: pointer; transition: .2s ease; }
.suggestions button:hover { transform: translateX(3px); color: white; border-color: rgba(82, 170, 255, .42); background: rgba(40, 103, 223, .08); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.suggestion-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #9fc5ff; font-size: 10px; font-weight: 600; background: rgba(40, 103, 223, .12); }
.suggestions button i { color: #596572; font-style: normal; font-size: 13px; transition: .2s; }
.suggestions button:hover i { color: var(--blue-light); }

.answer-summary { margin: -2px -2px 2px !important; padding: 2px 2px 16px; color: #f4f7fa; font-size: 13px; font-weight: 500; line-height: 1.65; border-bottom: 1px solid var(--line-soft); }
.answer-section { margin-top: 16px; }
.answer-section h3 { margin: 0 0 9px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.answer-section h3::before { content: ''; width: 3px; height: 13px; border-radius: 999px; background: linear-gradient(180deg, var(--blue-light), var(--magenta)); box-shadow: 0 0 10px rgba(82, 170, 255, .24); }
.answer-points { display: grid; gap: 7px; }
.answer-point { position: relative; padding: 10px 12px 10px 35px; border: 1px solid rgba(139, 148, 158, .10); border-radius: 11px; background: rgba(13, 17, 23, .28); }
.answer-point::before { content: ''; position: absolute; left: 14px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: #65717d; }
.answer-point strong { display: inline; margin-right: 4px; color: #f1f4f7; font-size: 10.5px; font-weight: 600; }
.answer-point span { color: #adb6c0; font-size: 10.5px; }
.answer-point.insight { border-color: rgba(82, 170, 255, .16); background: linear-gradient(100deg, rgba(40, 103, 223, .09), rgba(13, 17, 23, .24)); }
.answer-point.insight::before { background: var(--blue-light); box-shadow: 0 0 8px rgba(82, 170, 255, .45); }
.answer-point.calculation { border-color: rgba(39, 208, 127, .16); background: linear-gradient(100deg, rgba(39, 208, 127, .08), rgba(13, 17, 23, .24)); }
.answer-point.calculation::before { background: var(--green); box-shadow: 0 0 8px rgba(39, 208, 127, .4); }
.answer-point.calculation span { color: #c0ddd0; font-style: italic; }
.answer-point.caution { border-color: rgba(255, 211, 61, .16); background: linear-gradient(100deg, rgba(255, 211, 61, .065), rgba(13, 17, 23, .24)); }
.answer-point.caution::before { background: var(--yellow); }
.answer-point.caution span { color: #d6cfb2; font-style: italic; }
.answer-disclaimer { margin: 16px 1px 0 !important; padding-top: 12px; border-top: 1px solid var(--line-soft); color: #707b86; font-size: 8.5px; font-style: italic; }

.sources { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.source-chip { padding: 5px 8px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(13, 17, 23, .52); color: #737e89; font-size: 8px; }
.source-chip strong { color: #75dea7; font-weight: 600; }
.typing { width: 42px; height: 16px; display: flex; gap: 4px; align-items: center; justify-content: center; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #84909c; animation: bounce 1.05s infinite; }
.typing i:nth-child(2) { animation-delay: .14s; }
.typing i:nth-child(3) { animation-delay: .28s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.composer-wrap { flex: none; padding: 13px 18px 15px; border-top: 1px solid var(--line-soft); background: rgba(15, 20, 26, .94); }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 7px 7px 7px 14px; border: 1px solid #333b46; border-radius: 15px; background: #0d1117; transition: .2s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .14); }
.composer:focus-within { border-color: rgba(82, 170, 255, .55); box-shadow: 0 0 0 3px rgba(40, 103, 223, .08), inset 0 1px 2px rgba(0, 0, 0, .14); }
textarea { flex: 1; resize: none; max-height: 120px; min-height: 38px; padding: 9px 0 5px; border: 0; outline: 0; color: white; background: transparent; font-size: 11.5px; line-height: 1.55; }
textarea::placeholder { color: #5f6975; }
.composer button { width: 38px; height: 38px; border: 0; border-radius: 11px; display: grid; place-items: center; color: white; background: var(--gradient); cursor: pointer; box-shadow: 0 8px 20px rgba(80, 75, 220, .23); transition: .2s; }
.composer button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.composer button:disabled { filter: grayscale(1); opacity: .42; cursor: not-allowed; transform: none; }
.composer button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.composer-meta { margin-top: 8px; padding: 0 3px; display: flex; align-items: center; justify-content: space-between; color: #5d6874; font-size: 7.5px; }
.composer-meta span:first-child { display: flex; align-items: center; gap: 5px; }
.composer-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.composer-meta b { color: #414a55; margin: 0 3px; }
.composer-meta kbd { padding: 1px 4px; border: 1px solid #303844; border-radius: 4px; background: #171c23; color: #78838f; font: inherit; }
.error-banner { display: none; margin-bottom: 8px; padding: 9px 11px; border: 1px solid rgba(255, 76, 76, .25); border-radius: 9px; background: rgba(255, 76, 76, .08); color: #ffc8c8; font-size: 9px; }
.error-banner.show { display: block; }

@media (max-width: 1000px) {
  html, body { height: auto; min-height: 100%; overflow: auto; }
  .app-shell { height: auto; min-height: 100vh; overflow: visible; }
  .chat-layout { height: auto; min-height: calc(100vh - 76px); grid-template-columns: 1fr; align-items: start; padding-top: 28px; }
  .intro-panel { display: grid; grid-template-columns: 1fr 310px; column-gap: 38px; align-items: end; }
  .eyebrow, .intro-panel h1, .intro-copy { grid-column: 1; }
  .intro-panel h1 { font-size: 40px; margin: 13px 0; }
  .index-card { grid-column: 2; grid-row: 1 / 4; margin: 0; }
  .trust-row { display: none; }
  .chat-panel { height: 740px; min-height: 620px; }
}

@media (min-width: 1001px) and (max-height: 800px) {
  .topbar { height: 66px; }
  .brand img { width: 82px; height: 39px; }
  .chat-layout { height: calc(100vh - 66px); padding-top: 16px; padding-bottom: 16px; }
  .intro-panel h1 { font-size: clamp(38px, 4vw, 52px); margin: 14px 0 16px; line-height: 1.02; }
  .intro-copy { font-size: 11.5px; line-height: 1.65; }
  .index-card { margin-top: 20px; padding: 14px 16px; }
  .index-card-top { margin-bottom: 10px; }
  .index-line { margin-top: 12px; }
  .trust-row { margin-top: 10px; }
  .chat-header { height: 68px; }
  .messages { padding-top: 20px; padding-bottom: 20px; }
  .composer-wrap { padding-top: 10px; padding-bottom: 11px; }
}

@media (min-width: 1001px) and (max-height: 660px) {
  .eyebrow { font-size: 8.5px; }
  .intro-panel h1 { font-size: 42px; margin: 10px 0 12px; }
  .index-card { margin-top: 14px; }
  .trust-row { display: none; }
  .chat-header { height: 62px; }
  .assistant-mark { width: 36px; height: 36px; }
  .messages { padding-top: 16px; padding-bottom: 16px; }
  .composer-meta { margin-top: 5px; }
}

@media (max-width: 650px) {
  html, body { width: 100%; height: 100%; min-height: 0; overflow: hidden; overscroll-behavior: none; }
  body { background: #0d1117; }
  .ambient { display: none; }
  .app-shell { width: 100%; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .topbar {
    height: calc(58px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    background: rgba(13, 17, 23, .97); backdrop-filter: blur(18px);
  }
  .brand img { width: 72px; height: 35px; }
  .brand-divider, .brand-product, .market-pill, .secure-label { display: none; }
  .mobile-market-pill {
    height: 30px; padding: 0 10px; display: flex; align-items: center; gap: 7px;
    border: 1px solid var(--line); border-radius: 999px; color: #aab4be;
    background: rgba(31, 36, 44, .7); font-size: 9px; font-weight: 500;
  }
  .mobile-market-pill .pulse { width: 6px; height: 6px; box-shadow: 0 0 0 4px rgba(39, 208, 127, .08); }
  .chat-layout {
    display: block; width: 100%; height: calc(100vh - 58px - env(safe-area-inset-top));
    height: calc(100dvh - 58px - env(safe-area-inset-top)); min-height: 0;
    padding: 0; margin: 0;
  }
  .intro-panel { display: none; }
  .chat-panel {
    width: 100%; height: 100%; min-height: 0; max-height: none;
    border: 0; border-radius: 0; box-shadow: none; background: #12171e;
  }
  .chat-header {
    height: 62px; min-height: 62px; padding: 0 13px;
    background: linear-gradient(180deg, #1a2028, #161c23);
  }
  .chat-header-actions { gap: 0; }
  .new-chat-button { width: 44px; height: 44px; padding: 0; justify-content: center; border: 0; background: transparent; box-shadow: none; }
  .new-chat-button > span:last-child { display: none; }
  .new-chat-icon { width: 32px; height: 32px; }
  .new-chat-button svg { width: 15px; }
  .assistant-mark { width: 39px; height: 39px; border-radius: 12px; }
  .assistant-name { font-size: 13px; }
  .assistant-name span { font-size: 7px; }
  .assistant-identity { gap: 10px; min-width: 0; }
  .assistant-identity p { max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 8px; }

  .messages {
    flex: 1; min-height: 0; padding: 16px 12px 20px;
    scroll-padding-bottom: 18px; -webkit-overflow-scrolling: touch;
  }
  .message { gap: 0; margin-bottom: 20px; }
  .assistant-message .avatar { display: none; }
  .message-body { width: 100%; max-width: 100%; }
  .message-meta { margin: 0 0 7px 3px; font-size: 7.5px; }
  .user-message .message-body { width: auto; max-width: 90%; }
  .bubble { padding: 15px; border-radius: 15px; font-size: 13.5px; line-height: 1.62; }
  .assistant-message .bubble { border-radius: 5px 15px 15px 15px; }
  .user-message .bubble { padding: 12px 14px; border-radius: 15px 5px 15px 15px; font-size: 13.5px; }
  .welcome-bubble { padding: 17px 16px; }
  .welcome-bubble h2 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
  .welcome-bubble p { font-size: 13px; line-height: 1.6; }
  .suggestions { gap: 9px; margin-top: 11px; }
  .suggestions button {
    min-height: 54px; grid-template-columns: 34px 1fr 16px; gap: 10px;
    padding: 9px 11px; border-radius: 13px; font-size: 12px; line-height: 1.4;
    background: rgba(14, 19, 25, .82);
  }
  .suggestions button:hover { transform: none; }
  .suggestion-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }

  .answer-summary { font-size: 14px; line-height: 1.62; padding-bottom: 14px; }
  .answer-section { margin-top: 17px; }
  .answer-section h3 { margin-bottom: 10px; font-size: 13px; }
  .answer-section h3::before { height: 15px; }
  .answer-points { gap: 8px; }
  .answer-point { padding: 12px 12px 12px 32px; border-radius: 12px; }
  .answer-point::before { left: 13px; top: 18px; width: 6px; height: 6px; }
  .answer-point strong, .answer-point span { font-size: 12.5px; line-height: 1.55; }
  .answer-point strong { display: block; margin: 0 0 3px; }
  .answer-disclaimer { margin-top: 18px !important; padding-top: 13px; font-size: 10.5px; line-height: 1.5; }
  .sources { flex-wrap: nowrap; overflow-x: auto; padding: 1px 1px 5px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .sources::-webkit-scrollbar { display: none; }
  .source-chip { flex: 0 0 auto; padding: 7px 10px; font-size: 9.5px; scroll-snap-align: start; }

  .composer-wrap {
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    background: rgba(13, 17, 23, .98); box-shadow: 0 -12px 35px rgba(0, 0, 0, .18);
  }
  .composer { min-height: 52px; padding: 5px 5px 5px 13px; border-radius: 16px; }
  textarea { min-height: 40px; max-height: 104px; padding: 9px 0 5px; font-size: 16px; line-height: 1.45; }
  .composer button { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; }
  .composer button svg { width: 19px; }
  .composer-meta { display: none; }
  .error-banner { margin-bottom: 7px; padding: 10px 12px; border-radius: 11px; font-size: 11px; line-height: 1.45; }
}

@media (max-width: 370px) {
  .assistant-identity p { max-width: 170px; }
  .messages { padding-left: 9px; padding-right: 9px; }
  .bubble { padding: 13px; }
  .suggestions button { grid-template-columns: 30px 1fr 12px; padding-left: 8px; padding-right: 8px; font-size: 11.5px; }
  .suggestion-icon { width: 29px; height: 29px; }
}
