#chat-dialog.chat-panel{height:calc(100dvh - var(--reader-safe-top, 0px));max-height:calc(100dvh - var(--reader-safe-top, 0px))}
#chat-dialog .panel-body{gap:0;padding:12px 20px calc(16px + var(--reader-safe-bottom, 0px));min-height:0}
#chat-dialog .panel-body>.panel-note{flex:none;margin:10px 0 0;font-size:.75rem;line-height:1.5}
#chat-messages{flex:1;min-height:0;padding:4px 0 20px;scrollbar-gutter:stable;overscroll-behavior:contain}
#chat-dialog .chat-welcome{font-size:1.25rem;line-height:1.65;margin:24px 0}
#chat-dialog .chat-message{font-size:.9375rem;line-height:1.8;padding:20px 0;white-space:normal}
#chat-dialog .chat-message.user{padding:14px 0;font-size:.875rem}
#chat-dialog .chat-answer-text{white-space:pre-wrap;overflow-wrap:anywhere}
#chat-dialog .chat-progress{margin-bottom:10px;color:var(--muted);font-size:.75rem;line-height:1.5}
#chat-dialog .chat-progress[hidden]{display:none}
#chat-dialog .chat-progress-current{display:flex;align-items:center;justify-content:space-between;min-height:44px;min-width:0;list-style:none}
#chat-dialog .chat-progress-current::-webkit-details-marker{display:none}
#chat-dialog .chat-progress[data-has-history="true"]>.chat-progress-current{cursor:pointer}
#chat-dialog .chat-progress[data-has-history="true"]>.chat-progress-current::after{content:'⌄';margin-left:12px;flex:none}
#chat-dialog .chat-progress[open]>.chat-progress-current::after{transform:rotate(180deg)}
#chat-dialog .chat-progress-current:focus-visible{outline:2px solid var(--red);outline-offset:2px}
#chat-dialog .chat-progress-history-list{padding:0 0 8px 16px;border-left:1px solid var(--line)}
#chat-dialog .db-marker{padding:3px 0;gap:8px;font-size:.75rem;line-height:1.5;color:var(--muted)}
#chat-dialog .db-marker__icon{color:var(--muted)}
#chat-dialog .db-marker[data-state="active"] .db-marker__icon{color:var(--red)}
#chat-dialog .chat-citations{margin-top:18px;border-top:1px solid var(--line)}
#chat-dialog .chat-citations summary{display:list-item;min-height:44px;padding:12px 0;cursor:pointer;font-size:.8125rem;line-height:1.5;font-weight:600}
#chat-dialog .chat-citations summary:focus-visible{outline:2px solid var(--red);outline-offset:2px}
#chat-dialog .chat-citation-list{display:grid;gap:10px;padding:0 0 8px}
#chat-dialog .chat-source{margin:0;padding:8px 0;font-size:.8125rem;line-height:1.7;min-height:44px}
#chat-dialog .db-chat-composer{flex:none;margin:0}
#chat-dialog .db-chat-composer__panel{padding:10px 12px}
#chat-dialog .db-chat-composer__input{min-height:44px;max-height:120px;line-height:1.5;padding:0}
#chat-dialog .db-chat-composer__toolbar{min-height:44px}
#chat-dialog .db-chat-composer__send{min-height:44px;min-width:44px}
@media(min-width:700px){
  #chat-dialog.chat-panel{inset:50% auto auto 50%;translate:-50% -50%;width:min(720px,calc(100vw - 64px));height:85dvh;max-height:calc(100dvh - 64px)}
  #chat-dialog .panel-body{padding:16px 32px 20px}
  #chat-dialog .chat-message{font-size:1rem;line-height:1.8}
}
