.ai-section { margin-top: 38px; }
.ai-section h2 { margin-bottom: 4px; }
.ai-note { color: #668071; }
.summary { color: #26372d; line-height: 1.7; }
.summary h3, .summary h4, .summary h5 { color: #183f29; margin: 22px 0 8px; }
.summary h3:first-child { margin-top: 10px; }
.summary p { margin: 6px 0; }
.summary ul, .summary ol { margin: 6px 0 12px; padding-left: 25px; }
.summary li { margin: 4px 0; }
.summary .task { list-style: none; margin-left: -20px; }
.summary .check { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 6px; background: #edf3ef; color: #537060; font-weight: 800; }
.summary .task.done .check { background: #dff6e7; color: #087e3b; }
.summary code { background: #eef3f0; border-radius: 5px; padding: 1px 5px; }
.table-wrap { overflow-x: auto; margin: 10px 0 16px; }
.summary table { width: 100%; border-collapse: collapse; background: #fbfdfb; }
.summary th, .summary td { border: 1px solid #dbe5de; padding: 8px 10px; text-align: left; vertical-align: top; }
.summary th { background: #edf7f0; color: #28543a; }
.summary-status { color: #668071; font-size: 13px; margin: 8px 0; }
.ai-chat { margin: 18px 0 24px; padding: 18px; }
.ai-chat h3 { margin: 0 0 12px; }
.chat-scope-label { display: block; color: #668071; font-size: 13px; margin-bottom: 5px; }
#chatConversation { width: min(100%, 430px); margin-bottom: 14px; }
.chat-scope { display: block; color: #39704e; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.chat-messages { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px; }
.chat-hint { color: #718076; padding: 10px 2px; }
.chat-row { display: flex; }
.chat-row > div { max-width: 88%; border-radius: 14px; padding: 11px 14px; background: #edf3ef; }
.chat-row.user { justify-content: flex-end; }
.chat-row.user > div { background: #dff6e7; }
.chat-row.assistant > div { background: #f6f8f7; border: 1px solid #dfe7e2; }
.chat-row.waiting { color: #668071; }
#chatForm { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
#chatQuestion { width: 100%; resize: vertical; font: inherit; border: 1px solid #cdd9d1; border-radius: 10px; padding: 10px 12px; }
#chatSend:disabled { opacity: .6; cursor: wait; }
@media(max-width:720px) { #chatForm { grid-template-columns: 1fr; } .chat-row > div { max-width: 96%; } }
.document summary { cursor: pointer; color: #087e3b; font-weight: 700; margin: 8px 0; }
.document > div { white-space: pre-wrap; max-height: 520px; overflow: auto; padding: 12px; background: #f6f8f7; border-radius: 10px; }
