/* Conversation and independent content windows. */
.conversation-layout { max-width: 820px; padding-top: 0; }
.conversation-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 62px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--glass-rim); border-radius: 18px; background: color-mix(in srgb, var(--surface-solid) 22%, transparent); box-shadow: inset 0 1px var(--glass-highlight); backdrop-filter: blur(20px) saturate(1.02); -webkit-backdrop-filter: blur(20px) saturate(1.02); }
.conversation-brand { display: flex; align-items: center; gap: 10px; }
.conversation-brand > .assistant-mark { width: 31px; height: 31px; }
.conversation-brand > span:last-child { display: flex; flex-direction: column; }
.conversation-brand b { color: var(--heading); font-size: 13px; font-weight: 750; letter-spacing: -.2px; }
.conversation-brand b > span { color: var(--blue); font-weight: 600; }
.conversation-brand small { font-size: 10px; color: var(--text-2); margin-top: 2px; }
.conversation-tools { display: flex; gap: 5px; }
.chat-tool { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: transparent; color: var(--text-2); transition: color .2s, background .2s; flex: none; }
.chat-tool .ic { width: 16px; height: 16px; }
.chat-tool:hover { background: var(--blue-soft); color: var(--blue); }
.chat-tool::after { content: attr(data-tooltip); position: absolute; z-index: 5; bottom: calc(100% + 7px); left: 50%; transform: translate(-50%, 3px); opacity: 0; pointer-events: none; font-size: 10px; font-weight: 600; line-height: 1.5; color: var(--text); padding: 7px 10px; border-radius: 8px; background: var(--surface-solid); border: 1px solid var(--hairline); box-shadow: var(--shadow-md); white-space: nowrap; transition: opacity .15s .2s, transform .15s .2s; }
.chat-tool:hover::after, .chat-tool:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.chat-welcome { padding: 16px 0 30px; isolation: isolate; }
.chat-welcome::before { content: ""; position: absolute; z-index: -1; inset: -30px -24px -40px; pointer-events: none; background: radial-gradient(ellipse 40% 60% at 27% 32%, #a5d5df70, transparent 80%), radial-gradient(ellipse 45% 60% at 72% 40%, #a3c2e370, transparent 80%), radial-gradient(ellipse 30% 40% at 50% 75%, #b6dccc50, transparent 80%); filter: blur(20px); animation: ambient 16s ease-in-out infinite alternate; }
.chat-welcome .assistant-stage { width: 116px; height: 116px; margin-bottom: 22px; }
.chat-welcome .assistant-mark-lg { width: 92px; height: 92px; }
.chat-welcome h1 { font-size: 43px; font-weight: 650; letter-spacing: -1.8px; color: #3d819c; background: linear-gradient(105deg, #427d9f 10%, #3d819c 45%, #4d8e83 90%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.chat-welcome .lede { font-size: 13px; line-height: 1.9; }
.chat-welcome .eyebrow { font-size: 9px; }
.chat-transcript:empty { display: none; }
.chat-composer-shell { position: relative; z-index: 22; margin: 0 auto; }
.chat-composer { position: relative; isolation: isolate; padding: 18px 19px 12px; border-radius: 24px; border: 1px solid #719caf8c; background: color-mix(in srgb, var(--surface-solid) 38%, transparent); box-shadow: 0 0 0 1px var(--glass-highlight), 0 9px 30px -14px #456b8561, inset 0 1px 1px var(--glass-highlight); backdrop-filter: blur(26px) saturate(1.05); -webkit-backdrop-filter: blur(26px) saturate(1.05); transition: box-shadow .25s; }
.chat-composer::before { content: ""; pointer-events: none; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; background: linear-gradient(110deg, #91b8ce9e, #a8c0d8a3 45%, #a2b3cea3 80%, #9cbad880); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; }
.chat-composer:focus-within { box-shadow: 0 0 0 1px #7daabd8c, 0 0 0 5px #8bb9cb18, 0 8px 35px -14px #44799647, inset 0 1px 1px var(--glass-highlight); }
.chat-input { display: block; resize: none; width: 100%; min-height: 43px; max-height: 168px; padding: 0; margin: 0; border: 0; outline: none; background: transparent; font: 14px/1.8 var(--font); color: var(--heading); scrollbar-width: thin; }
.chat-input::placeholder { color: var(--text-3); }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.composer-context { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 10px; font-weight: 600; }
.composer-context > .ic { width: 13px; height: 13px; color: #6597ad; }
.context-dot { width: 3px; height: 3px; border-radius: 50%; background: #8caebd; margin: 0 2px; }
.chat-send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 12%, transparent); transition: transform .2s, background .2s; }
.chat-send .ic { width: 20px; height: 20px; }
.chat-send:hover, .has-draft .chat-send { background: color-mix(in srgb, var(--blue) 20%, var(--blue-soft)); }
.chat-send:active { transform: scale(.94); }
.stop-glyph { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; background: currentColor; opacity: .8; }
.composer-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin: 12px 5px 0; color: var(--text-3); font-size: 9px; line-height: 1.7; }
.composer-key-hint { opacity: .9; }
.chat-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.chat-starters > button { display: flex; flex-direction: column; align-items: flex-start; position: relative; gap: 7px; text-align: left; min-height: 134px; padding: 19px; border: 1px solid var(--glass-highlight); border-radius: 18px; background: hsl(var(--suggestion-h) 45% 97% / .72); box-shadow: 0 0 0 1px var(--glass-rim), inset 0 1px var(--glass-highlight); transition: transform .2s, box-shadow .2s; }
.chat-starters > button:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #8baabf85, 0 10px 30px -16px #47768f40; }
.chat-starters > button > .ic:first-child { width: 21px; height: 21px; color: hsl(var(--suggestion-h) 28% 56%); margin-bottom: 9px; }
.chat-starters b { font-size: 12px; color: var(--heading); font-weight: 700; letter-spacing: -.1px; }
.chat-starters span { font-size: 10px; color: var(--text-2); line-height: 1.8; }
.chat-starters > button > .ic:last-child { position: absolute; top: 20px; right: 17px; width: 14px; height: 14px; color: var(--text-3); }
[data-theme="dark"] .chat-starters > button { background: hsl(var(--suggestion-h) 22% 25% / .55); }

/* Active conversation, persistent composer and readable message rhythm. */
.has-conversation .conversation-toolbar { position: sticky; top: 12px; z-index: 24; margin-top: 0; margin-bottom: 22px; }
.has-conversation .chat-transcript { padding-bottom: 165px; }
.view[data-page="search"]:has(.has-conversation) { padding-bottom: 16px; }
.has-conversation .chat-composer-shell { position: fixed; left: calc(50% + 121px); bottom: 25px; transform: translateX(-50%); width: min(820px, calc(100% - 338px)); }
.has-conversation .composer-hint { padding-inline: 5px; }
.chat-message { margin-bottom: 29px; }
.user-message { display: flex; flex-direction: column; align-items: flex-end; padding-left: 60px; }
.user-message-bubble { max-width: 90%; padding: 15px 20px; border: 1px solid var(--glass-highlight); border-radius: 22px 22px 6px 22px; color: var(--heading); background: color-mix(in srgb, var(--blue-soft) 80%, transparent); box-shadow: 0 0 0 1px var(--glass-rim), inset 0 1px var(--glass-highlight); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.user-message-tools { display: flex; gap: 2px; margin-top: 4px; }
.user-message-tools .chat-tool { width: 29px; height: 29px; }
.user-message-tools .ic { width: 13px; height: 13px; }
.assistant-message { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 35px; }
.assistant-message-avatar { flex: none; padding-top: 1px; }
.assistant-message-avatar .assistant-mark { width: 32px; height: 32px; }
.assistant-message-main { flex: 1; min-width: 0; }
.assistant-message-label { display: flex; align-items: center; gap: 6px; color: var(--heading); font-weight: 750; font-size: 12px; margin: 3px 0 12px; }
.assistant-message-label > span { font-size: 9px; font-weight: 600; color: var(--blue); }
.chat-message-body { font-size: 14px; line-height: 1.95; color: var(--text); overflow-wrap: anywhere; }
.chat-message-body p + p { margin-top: 16px; }
.chat-message-body h3 { font-size: 18px; letter-spacing: -.3px; margin: 21px 0 14px; font-weight: 700; }
.chat-message-body h3:first-child { margin-top: 0; }
.chat-message-body strong { font-weight: 750; color: var(--heading); }
.chat-message-body code { font-family: Consolas, monospace; font-size: .92em; border: 1px solid var(--hairline); background: var(--surface-2); border-radius: 5px; padding: 1px 5px; }
.chat-message-body ul, .chat-message-body ol { padding-left: 20px; margin: 17px 0; }
.chat-message-body ul { list-style: disc; }
.chat-message-body li + li { margin-top: 7px; }
.chat-message-body li::marker { color: var(--blue); }
.chat-message-body.is-streaming > :last-child::after { content: ""; display: inline-block; vertical-align: baseline; width: 5px; height: 14px; margin-left: 4px; border-radius: 2px; background: #6ba0b6; animation: chat-caret .9s ease-in-out infinite; }
.chat-thinking { display: flex; align-items: center; gap: 5px; min-height: 30px; }
.chat-thinking > span { width: 5px; height: 5px; border-radius: 50%; background: #78a8bb; animation: thinking-dot 1.2s ease-in-out infinite; }
.chat-thinking > span:nth-child(2) { animation-delay: .15s; }
.chat-thinking > span:nth-child(3) { animation-delay: .3s; }
.chat-thinking small { font-size: 11px; color: var(--text-2); margin-left: 8px; }
.chat-citations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.citation { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 9px; border: 1px solid var(--glass-highlight); border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 650; box-shadow: 0 0 0 1px var(--glass-rim); }
.citation > span { color: var(--text-2); font-size: 10px; font-weight: 500; }
.citation .ic { width: 10px; height: 10px; opacity: .8; }
.citation:hover { background: color-mix(in srgb, var(--blue) 10%, var(--blue-soft)); }
.chat-sources { margin-top: 13px; }
.chat-sources > summary { display: flex; align-items: center; width: max-content; min-height: 33px; gap: 6px; font-size: 10px; font-weight: 650; color: var(--text-2); cursor: pointer; list-style: none; border-radius: 7px; padding: 2px 4px 2px 0; }
.chat-sources > summary::-webkit-details-marker { display: none; }
.chat-sources > summary .ic { width: 13px; height: 13px; }
.chat-sources > summary .ic:last-child { margin-left: 3px; transition: transform .2s; }
.chat-sources[open] > summary .ic:last-child { transform: rotate(180deg); }
.chat-source-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.chat-source { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--glass-highlight); border-radius: 13px; box-shadow: 0 0 0 1px var(--glass-rim); }
.chat-source .subject-icon { width: 32px; height: 32px; border-radius: 9px; }
.chat-source .subject-icon .ic { width: 17px; height: 17px; }
.chat-source > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.chat-source b { font-size: 11px; font-weight: 650; }
.chat-source small { font-size: 9px; color: var(--text-2); }
.chat-source > .ic { width: 13px; height: 13px; color: var(--blue); }
.assistant-message-tools { display: flex; align-items: center; gap: 4px; margin: 10px 0 0 -7px; }
.assistant-message-tools > span { font-size: 9px; color: var(--text-3); margin-left: 6px; }
.chat-stopped { font-size: 10px; color: var(--text-3); margin-top: 12px; font-style: italic; }
.chat-followups { padding-left: 48px; display: flex; flex-wrap: wrap; gap: 8px; margin: -5px 0 0; }
.chat-followups > p { flex-basis: 100%; font-size: 8px; letter-spacing: 1px; font-weight: 700; color: var(--text-3); margin-bottom: 3px; }
.chat-followups > button { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--glass-highlight); background: var(--surface); color: var(--text-2); font-size: 10px; box-shadow: 0 0 0 1px var(--glass-rim); }
.chat-followups > button:hover { background: var(--blue-soft); }
.chat-followups .ic { width: 12px; height: 12px; color: var(--blue); }
.chat-jump { position: fixed; right: max(48px, calc((100vw - 242px - 820px) / 2)); bottom: 200px; z-index: 24; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--surface-solid); border: 1px solid var(--glass-highlight); box-shadow: 0 0 0 1px var(--glass-rim), var(--shadow-md); color: var(--blue); }
.chat-jump .ic { width: 17px; height: 17px; }
.is-editing form { width: 100%; padding: 18px; border: 1px solid var(--glass-highlight); border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--glass-rim); }
.is-editing label { display: block; font-size: 10px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.is-editing textarea { resize: vertical; width: 100%; border: 0; outline: 0; min-height: 95px; max-height: 260px; background: transparent; font: 14px/1.8 var(--font); }
.is-editing form > p { color: var(--text-3); font-size: 9px; margin: 8px 0; }
.is-editing form > div { display: flex; justify-content: flex-end; gap: 7px; }
.history-body { padding-top: 15px; }
.history-row { display: flex; align-items: center; gap: 6px; border-radius: 12px; padding-right: 6px; }
.history-row + .history-row { margin-top: 7px; }
.history-row.is-current { background: var(--blue-soft); }
.history-row:hover { background: var(--surface-2); }
.history-open { display: flex; align-items: center; gap: 12px; background: transparent; flex: 1; min-width: 0; text-align: left; padding: 14px; }
.history-open > .ic { width: 17px; height: 17px; color: var(--blue); }
.history-open > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.history-open b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; }
.history-open small { color: var(--text-3); font-size: 9px; }
.history-current { font-size: 8px; color: var(--blue); }
.toast > button { margin-left: 12px; padding: 2px 3px; color: var(--blue); background: transparent; font-size: 11px; font-weight: 750; pointer-events: auto; }

/* Content opens above the current screen; its scroll and draft remain intact. */
.modal-backdrop:has(.sheet-window) { padding: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: stretch; }
.sheet-window { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; background: radial-gradient(ellipse at 90% 5%, #c1dbe74a, transparent 65%), radial-gradient(ellipse at 0% 90%, #afd7ca4d, transparent 65%), var(--bg); border: 0; box-shadow: none; animation: screen-in .25s var(--ease); }
.window-toolbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 76px; padding: 17px max(32px, calc((100% - 880px) / 2)); border-bottom: 1px solid var(--glass-rim); background: color-mix(in srgb, var(--surface-solid) 42%, transparent); box-shadow: inset 0 -1px var(--glass-highlight); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.window-back { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 0; font-size: 11px; font-weight: 650; background: transparent; color: var(--blue); }
.window-back .ic { width: 15px; height: 15px; }
.window-toolbar > span { font-size: 9px; color: var(--text-3); }
.window-toolbar > .icon-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); }
.window-body { max-width: 880px; margin: 0 auto; padding: 40px 28px 60px; }
.window-body .article-card { padding: 30px; background: var(--surface); border: 1px solid var(--glass-rim); border-radius: 24px; box-shadow: inset 0 1px var(--glass-highlight), inset 1px 0 #ffffff66, 0 12px 32px -24px #456d8540; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.window-body .back-link { margin-bottom: 20px; }
.window-body .article-title { font-size: 29px; }
.window-body .article-text { color: var(--text); font-size: 14px; }
.window-body .article-actions .spacer { display: none; }
.window-body .related { margin-top: 30px; }
.window-body .related .section-head h2 { font-size: 15px; }
.window-body .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1200px) {
  .has-conversation .chat-composer-shell { left: calc(50% + 109px); width: min(820px, calc(100% - 282px)); }
}
@media (max-width: 960px) and (min-width: 761px) {
  .has-conversation .chat-composer-shell { left: calc(50% + 97.5px); width: calc(100% - 245px); }
  .composer-key-hint { display: none; }
  .chat-starters { gap: 8px; }
  .chat-starters > button { padding: 15px; }
  .chat-starters b { font-size: 11px; }
}
@media (max-width: 760px) {
  .conversation-layout { padding-top: 0; }
  .conversation-toolbar { margin: -10px 0 10px; }
  .conversation-brand { gap: 8px; }
  .conversation-brand > .assistant-mark { width: 27px; height: 27px; }
  .conversation-brand b { font-size: 12px; }
  .conversation-brand small { font-size: 8px; }
  .conversation-tools { gap: 0; }
  .conversation-tools .chat-tool { width: 40px; height: 40px; }
  .chat-tool::after { display: none; }
  .chat-welcome { padding: 8px 0 25px; }
  .chat-welcome .assistant-stage { width: 89px; height: 89px; margin-bottom: 17px; }
  .chat-welcome .assistant-mark-lg { width: 76px; height: 76px; }
  .chat-welcome .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .chat-welcome h1 { font-size: 30px; letter-spacing: -1.25px; margin: 12px 0 14px; }
  .chat-welcome .lede { font-size: 11px; line-height: 1.95; }
  .chat-welcome::before { inset: -15px -20px -20px; filter: blur(16px); }
  .chat-composer { padding: 15px 15px 11px; border-radius: 21px; }
  .chat-input { font-size: 16px; line-height: 1.65; min-height: 43px; }
  .chat-input::placeholder { font-size: 12px; }
  .composer-bottom { gap: 7px; margin-top: 7px; }
  .composer-context { font-size: 9px; gap: 5px; }
  .composer-context .ic { width: 12px; height: 12px; }
  .chat-send { width: 36px; height: 36px; border-radius: 12px; }
  .composer-hint { justify-content: center; text-align: center; font-size: 8px; margin-top: 9px; padding-inline: 5px; }
  .composer-key-hint { display: none; }
  .chat-starters { grid-template-columns: 1fr; gap: 10px; margin-top: 23px; }
  .chat-starters > button { padding: 17px 38px 17px 52px; min-height: 77px; gap: 3px; border-radius: 16px; }
  .chat-starters > button > .ic:first-child { position: absolute; left: 18px; top: 23px; width: 19px; height: 19px; margin: 0; }
  .chat-starters > button > .ic:last-child { top: 25px; }
  .chat-starters b { font-size: 11px; }
  .chat-starters span { font-size: 9px; }
  .has-conversation .conversation-toolbar { top: calc(81px + env(safe-area-inset-top)); margin: -10px 0 20px; }
  .has-conversation .chat-transcript { padding-bottom: 226px; }
  .view[data-page="search"]:has(.has-conversation) { padding-bottom: 42px; }
  .has-conversation .chat-composer-shell { left: 50%; width: calc(100% - 38px); max-width: 600px; bottom: calc(101px + env(safe-area-inset-bottom)); }
  .has-conversation .composer-hint { font-size: 7px; }
  .chat-message { margin-bottom: 25px; }
  .user-message { padding-left: 30px; }
  .user-message-bubble { max-width: 100%; padding: 13px 16px; font-size: 13px; line-height: 1.85; border-radius: 19px 19px 5px 19px; }
  .user-message-tools { margin-top: 3px; }
  .user-message-tools .chat-tool { width: 32px; height: 32px; }
  .assistant-message { gap: 10px; margin-bottom: 27px; }
  .assistant-message-avatar .assistant-mark { width: 25px; height: 25px; }
  .assistant-message-label { font-size: 11px; margin-top: 2px; margin-bottom: 11px; }
  .assistant-message-label > span { font-size: 8px; }
  .chat-message-body { font-size: 13px; line-height: 1.95; }
  .chat-message-body p + p { margin-top: 14px; }
  .chat-message-body h3 { font-size: 16px; line-height: 1.6; }
  .chat-citations { margin-top: 16px; gap: 6px; }
  .citation { min-height: 29px; font-size: 9px; gap: 5px; padding: 4px 8px; }
  .citation > span { font-size: 9px; }
  .chat-sources > summary { min-height: 35px; font-size: 10px; }
  .assistant-message-tools { margin-top: 8px; gap: 3px; }
  .assistant-message-tools .chat-tool { width: 34px; height: 34px; }
  .assistant-message-tools > span { font-size: 8px; margin-left: 3px; }
  .chat-followups { padding-left: 35px; gap: 9px; }
  .chat-followups > button { min-height: 38px; font-size: 10px; }
  .chat-followups > p { font-size: 7px; }
  .chat-jump { right: 25px; bottom: calc(260px + env(safe-area-inset-bottom)); }
  .is-editing { padding-left: 0; }
  .is-editing textarea { font-size: 16px; }
  .is-editing form > p { font-size: 8px; }
  .history-open { padding-inline: 10px; gap: 9px; }
  .history-open b { font-size: 10px; }
  .history-open small { font-size: 8px; }
  .history-current { display: none; }
  .modal-backdrop:has(.sheet-window) { padding: 0; }
  .sheet-window { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .window-toolbar { padding: calc(14px + env(safe-area-inset-top)) 20px 14px; gap: 8px; min-height: 69px; }
  .window-toolbar > span { font-size: 8px; }
  .window-back { font-size: 10px; min-height: 38px; }
  .window-body { padding: 23px 23px calc(30px + env(safe-area-inset-bottom)); }
  .window-body .article-title { font-size: 26px; }
  .window-body .article-card { padding: 23px 19px; border-radius: 21px; }
  .window-body .article-text { font-size: 13px; }
  .window-body .article-photos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .chat-welcome h1 { font-size: 27px; }
  .chat-welcome .lede { font-size: 10px; }
  .composer-context { font-size: 8px; }
  .chat-message-body { font-size: 12px; }
  .assistant-message-tools > span { font-size: 7px; }
  .chat-input::placeholder { font-size: 11px; }
  .window-body { padding-inline: 20px; }
}
[data-keyboard="open"] .tabbar { opacity: 0; pointer-events: none; }
[data-keyboard="open"] .has-conversation .chat-composer-shell { bottom: calc(var(--keyboard-inset) + 10px); }
[data-keyboard="open"] .chat-jump { bottom: calc(var(--keyboard-inset) + 160px); }
@keyframes thinking-dot { 0%, 70%, 100% { opacity: .45; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@keyframes chat-caret { 50% { opacity: .3; } }
@keyframes screen-in { from { opacity: .5; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .chat-welcome::before, .chat-thinking > span, .chat-message-body.is-streaming > :last-child::after { animation: none; }
}
