.assistant-dialog{width:min(850px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:clamp(18px,4vw,32px);border:1px solid #b8c9bd;border-radius:18px;background:#f7f8f0;color:#173e39;box-sizing:border-box}
.assistant-dialog::backdrop{background:#153b3977;backdrop-filter:blur(3px)}
.assistant-heading{display:flex;justify-content:space-between;align-items:start;gap:18px}.assistant-heading h2{margin-top:0}.assistant-heading button{white-space:nowrap}
.assistant-selected{font-weight:650}.assistant-dialog details{padding:14px 0;border-block:1px solid #d7dfd0;margin-block:14px}.assistant-dialog summary{cursor:pointer;font-weight:600}
.assistant-context{max-height:320px;overflow:auto;padding:14px;border-radius:10px;background:#e9eee2;font-size:.76rem;white-space:pre-wrap;overflow-wrap:anywhere}
.assistant-preview{max-height:360px;overflow:auto;padding:0 10px 0 0;margin:14px 0}.assistant-preview blockquote{margin:12px 0;padding:10px 14px;border-left:3px solid #a5bca6}.assistant-preview h3{margin-bottom:6px}
.assistant-dialog form{display:grid;gap:16px;margin-top:20px}.assistant-dialog textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:95px}
.assistant-consent{display:flex;align-items:start;gap:10px;line-height:1.5}.assistant-consent input{margin-top:5px;width:auto;flex-shrink:0}
.assistant-answer{padding:18px;background:#fffef8;border:1px solid #d4ddcd;border-radius:12px;margin:18px 0}.assistant-answer h3{font-size:1rem}.assistant-answer-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.assistant-notice.error{color:#9a352a}.assistant-dialog :focus-visible{outline:3px solid #237f72;outline-offset:3px}
@media(max-width:560px){.assistant-heading{flex-direction:column}.assistant-dialog{border-radius:12px}.assistant-context{max-height:220px}.assistant-dialog form button{width:100%}}
