.ma-panel[hidden], .ma-launcher[hidden], .ma-panel [hidden] { display: none !important; }
.ma-docked { --ma-panel-width: 460px; }
#main > .ma-panel {
  flex: 0 0 460px; width: 460px; min-width: 0; min-height: 0; align-self: stretch;
  display: flex; flex-direction: column; position: relative; z-index: 16;
  border-left: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 13px; line-height: 1.65; box-shadow: -5px 0 16px -15px rgba(15,30,40,.3);
}
.ma-panel.ma-drop-ready { outline: 3px dashed var(--accent); outline-offset: -5px; background: var(--accent-soft); }
.ma-panel.ma-drop-ready::after { content: '松开鼠标，加入这组枝干'; position: absolute; inset: 8px; z-index: 5; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 17px; font-weight: 500; pointer-events: none; opacity: .95; }
.ma-panel.ma-file-drop-ready { outline: 3px dashed #1688c9; outline-offset: -5px; }
.ma-panel.ma-file-drop-ready::after { content: '松开鼠标，添加附件 · 点击发送后一起分析'; position: absolute; inset: 8px; z-index: 30; border: 2px dashed #1688c9; border-radius: 10px; background: rgba(225,244,255,.95); color: #075c91; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 16px; font-weight: 500; pointer-events: none; }
.ma-header { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 16px 10px; }
.ma-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ma-title h2 { margin: 0; font-size: 15px; white-space: nowrap; }
.ma-ai-mark { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
.ma-connection { display: inline-flex; align-items: center; gap: 5px; color: var(--text3); font-size: 11px; white-space: nowrap; }
.ma-connection::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ma-online { color: var(--s3); }
.ma-offline { color: var(--s2); }
.ma-head-actions { display: flex; gap: 6px; flex: none; }
.ma-button { font: inherit; font-size: 12px; line-height: 1.45; cursor: pointer; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; }
.ma-button:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.ma-button:disabled { opacity: .42; cursor: default; }
.ma-button.ma-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.ma-button.ma-primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.ma-button.ma-explore-action { border-color: #8a67d5; color: #6842b6; background: #f7f3ff; font-weight: 500; }
.ma-button.ma-explore-action:hover:not(:disabled) { border-color: #6842b6; background: #efe7ff; }
.ma-button.ma-quiet { border-color: transparent; background: transparent; color: var(--text2); padding-left: 6px; padding-right: 6px; }
.ma-button.ma-link { border: 0; padding: 0; background: none; color: var(--accent); font-size: 11px; }
.ma-close { width: 29px; height: 29px; padding: 0; font-size: 19px; }
.ma-chat-tools { flex: none; display: flex; align-items: flex-start; gap: 8px; padding: 0 16px 11px; border-bottom: 1px solid var(--line2); }
.ma-select { display: block; width: 100%; min-width: 0; flex: 1 1 auto; font: inherit; font-size: 11px; color: var(--text2); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; height: 29px; }
.ma-memory { flex: none; position: relative; font-size: 11px; color: var(--text3); }
.ma-memory summary { cursor: pointer; white-space: nowrap; line-height: 29px; }
.ma-memory-body { position: absolute; z-index: 20; right: 0; top: 34px; width: 270px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.ma-memory-body strong { display: block; margin-bottom: 6px; font-weight: 500; }
.ma-memory-body p { margin: 0 0 7px; }
.ma-muted { color: var(--text2); font-size: 11px; }
.ma-chat-policy { flex: none; padding: 8px 16px; border-bottom: 1px solid var(--line2); background: var(--surface); font-size: 11px; color: var(--text2); }
.ma-policy-setting { display: flex; align-items: center; gap: 7px; width: fit-content; cursor: pointer; color: var(--text); }
.ma-policy-setting input { margin: 0; accent-color: var(--accent); }
.ma-policy-description { margin: 4px 0 0; line-height: 1.6; }
.ma-policy-error { color: var(--s2); }
.ma-scope { flex: none; padding: 8px 16px; border-bottom: 1px solid var(--line2); color: var(--text3); font-size: 11px; }
.ma-scope > summary { cursor: pointer; }
.ma-image-session { display: flex; flex: none; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line2); background: var(--bg2, #f5f8f8); }
.ma-image-session[hidden] { display: none; }
.ma-session-thumbnail { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 5px; background: #fff; }
.ma-session-detail { min-width: 0; font-size: 11px; color: var(--text2); }
.ma-session-detail p { margin: 3px 0 0; line-height: 1.5; color: var(--text3); overflow-wrap: anywhere; }
.ma-session-choice { display: block; margin-top: 6px; max-width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.ma-scope-body { max-height: 145px; overflow-y: auto; padding-top: 6px; color: var(--text2); }
.ma-scope-body p { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-messages { flex: 1 1 auto; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; padding: 17px 16px 12px; background: var(--bg); }
.ma-feed { display: flex; flex-direction: column; gap: 19px; }
.ma-message { width: 100%; min-width: 0; }
.ma-message-meta { margin-bottom: 5px; color: var(--text3); font-size: 10px; }
.ma-bubble { padding: 12px 13px; background: var(--surface); border: 1px solid var(--line2); border-radius: 3px 11px 11px; overflow-wrap: anywhere; }
.ma-user { padding-left: 24px; }
.ma-user .ma-message-meta { text-align: right; }
.ma-user .ma-bubble { background: var(--accent-soft); border-color: transparent; border-radius: 11px 3px 11px 11px; }
.ma-system .ma-bubble { background: var(--s2b); color: var(--s2); border-color: transparent; }
.ma-bubble p { margin: 0 0 9px; }
.ma-bubble p:last-child { margin-bottom: 0; }
.ma-bubble h3 { font-size: 12px; margin: 14px 0 7px; }
.ma-bubble h3:first-child { margin-top: 0; }
.ma-prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-detail-list { padding-left: 18px; margin: 0; }
.ma-detail-list li { margin-bottom: 6px; padding-left: 1px; white-space: pre-wrap; }
.ma-detail-list li:last-child { margin-bottom: 0; }
.ma-question { margin-top: 12px; }
.ma-question-prompt { font-weight: 500; white-space: pre-wrap; }
.ma-options { display: flex; flex-direction: column; gap: 6px; }
.ma-option { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; text-align: left; white-space: normal; padding: 8px 10px; }
.ma-option.ma-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ma-other-option { border-style: dashed; }
.ma-custom-box { margin-top: 8px; border-radius: 8px; }
.ma-question-add-file { display: block; margin: 4px 0 5px auto; }
.ma-question-files { margin: 0; }
.ma-question-file-drop { outline: 2px dashed #1688c9; outline-offset: 5px; background: var(--accent-soft); }
.ma-question-file-drop .ma-custom-answer { background: var(--accent-soft); }
.ma-sent-answer + .ma-sent-answer { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ma-custom-answer { display: block; width: 100%; min-height: 76px; max-height: 220px; resize: vertical; padding: 8px 10px; font: inherit; font-size: 12px; line-height: 1.7; border: 1px solid var(--accent); border-radius: 7px; color: var(--text); background: var(--surface); }
.ma-custom-answer::placeholder { color: var(--text3); }
.ma-custom-answer:focus { outline-color: var(--accent); }
.ma-bubble .ma-custom-hint { margin: 5px 0 0; font-size: 10px; color: var(--text3); }
.ma-option-description { flex-basis: 100%; font-size: 11px; color: var(--text2); }
.ma-recommended { font-size: 10px; color: var(--accent); background: var(--accent-soft); border-radius: 3px; padding: 0 4px; }
.ma-past-option { font-size: 11px; color: var(--text3); padding-left: 9px; border-left: 2px solid var(--line); }
.ma-sent-materials { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.ma-sent-chip { max-width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text2); padding: 3px 7px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-sent-materials > small { display: block; flex-basis: 100%; color: var(--text3); font-size: 10px; }
.ma-button.ma-sent-file { display: block; max-width: 100%; margin: 3px 0; color: var(--accent); font-size: 11px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.ma-progress { margin-top: 16px; padding: 9px 12px; color: var(--text2); font-size: 12px; background: var(--surface); border: 1px dashed var(--line); border-radius: 7px; }
.ma-requirements { font-size: 12px; line-height: 1.85; }
.ma-requirement-title { margin: 16px 0 6px; font-size: 13px; font-weight: 600; line-height: 1.7; white-space: pre-wrap; }
.ma-requirement-title:first-child { margin-top: 0; }
.ma-delivery-detail { margin-top: 12px; border-top: 1px solid var(--line2); padding-top: 9px; }
.ma-delivery-detail > summary { cursor: pointer; color: var(--accent); font-size: 11px; }
.ma-delivery-body { padding-top: 9px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.ma-delivery-body h4 { font-size: 12px; margin: 0 0 7px; white-space: pre-wrap; }
.ma-reference + .ma-reference { border-top: 1px solid var(--line2); padding-top: 12px; margin-top: 12px; }
.ma-reference-excerpt { margin: 8px 0 0; padding: 6px 0 6px 10px; border-left: 2px solid var(--line); color: var(--text2); white-space: pre-wrap; font-size: 11px; }
.ma-reference-location, .ma-business-context { white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-exploration-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.ma-exploration-heading h3 { margin: 0; }
.ma-exploration-pending { padding: 2px 6px; border-radius: 999px; color: #6842b6; background: #efe7ff; font-size: 10px; }
.ma-exploration-notice { padding: 8px 9px; border-left: 3px solid #8a67d5; border-radius: 5px; color: #513392; background: #f7f3ff; }
.ma-exploration-goal { font-weight: 500; }
.ma-exploration-card { margin-top: 12px; padding: 11px; border: 1px solid #d9cdf3; border-radius: 9px; background: #fcfaff; }
.ma-exploration-card h4, .ma-exploration-recommendation h4 { margin: 0 0 7px; font-size: 12px; }
.ma-exploration-card .ma-detail-list { margin-bottom: 8px; }
.ma-exploration-choose { margin-top: 5px; border-color: #8a67d5; color: #6842b6; background: #fff; }
.ma-exploration-recommendation { margin-top: 12px; padding: 10px 11px; border: 1px solid #bca7e8; border-radius: 8px; background: #f3edff; }
.ma-requirement-actions { flex: none; border-top: 1px solid var(--line2); padding: 9px 14px; }
.ma-export-buttons { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ma-requirement-actions p { margin: 5px 0 0; }
.ma-composer { flex: none; padding: 10px 14px 9px; border-top: 1px solid var(--line2); background: var(--surface); max-height: 50%; overflow-y: auto; }
.ma-notice { border-radius: 6px; margin-bottom: 8px; color: var(--text2); font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-notice.ma-error { padding: 8px; color: var(--s2); background: var(--s2b); }
.ma-attachment-label { font-size: 10px; color: var(--text3); margin-bottom: 5px; }
.ma-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 100px; overflow-y: auto; margin-bottom: 8px; }
.ma-chip { display: flex; align-items: center; gap: 3px; max-width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); padding: 2px 3px 2px 7px; font-size: 11px; }
.ma-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-files { display: flex; flex-direction: column; gap: 5px; max-height: 128px; overflow-y: auto; margin-bottom: 8px; }
.ma-file { display: flex; align-items: center; gap: 7px; min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 6px; background: var(--bg); }
.ma-file-error { border-color: var(--s2); }
.ma-file-preview, .ma-file-icon { flex: none; width: 37px; height: 37px; border-radius: 4px; object-fit: contain; background: var(--surface); }
.ma-file-icon { display: grid; place-items: center; color: var(--accent); font-size: 9px; font-weight: 600; }
.ma-file-info { min-width: 0; flex: 1; line-height: 1.5; }
.ma-file-name { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-file-info small { display: block; color: var(--text3); font-size: 10px; overflow-wrap: anywhere; }
.ma-file-error .ma-file-info small { color: var(--s2); }
.ma-file > .ma-link { flex: none; }
.ma-button.ma-chip-remove { flex: none; border: 0; background: transparent; color: var(--text3); width: 22px; height: 21px; padding: 0; font-size: 16px; }
.ma-answer-count { margin: 0 0 7px; color: var(--accent); font-size: 11px; }
.ma-input { display: block; width: 100%; min-height: 66px; max-height: 150px; resize: none; font: inherit; font-size: 13px; line-height: 1.65; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.ma-input::placeholder { color: var(--text3); }
.ma-input:focus { border-color: var(--accent); outline-color: var(--accent); background: var(--surface); }
.ma-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.ma-composer-actions > .ma-explore-action { margin-left: auto; }
.ma-composer-actions > .ma-primary { min-width: 66px; }
.ma-send-status { margin-top: 7px; color: var(--text2); font-size: 11px; line-height: 1.6; }
.ma-send-reason { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-send-status.ma-send-blocked { padding: 7px 9px; border-radius: 6px; color: var(--s2); background: var(--s2b); }
.ma-send-status > .ma-link { margin-top: 4px; min-height: 24px; }
.ma-input-hint { margin: 4px 0 0; text-align: right; color: var(--text3); font-size: 10px; }
.ma-launcher { position: fixed; right: 0; top: 40%; z-index: 22; width: 34px; padding: 12px 7px; line-height: 1.55; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line); border-right: 0; border-radius: 9px 0 0 9px; box-shadow: var(--shadow); }
.ma-launcher.ma-drop-ready { outline: 2px dashed var(--accent); outline-offset: -3px; }
@media (max-width: 980px) {
  .ma-docked { --ma-panel-width: min(440px, calc(100vw - 48px)); }
  #main > .ma-panel { flex-basis: min(440px, calc(100vw - 48px)); width: min(440px, calc(100vw - 48px)); }
  .ma-header { padding: 12px 12px 8px; }
  .ma-chat-tools { padding: 0 12px 9px; gap: 6px; }
  .ma-messages { padding: 14px 12px 10px; }
  .ma-composer { padding-left: 11px; padding-right: 11px; }
}
@media (max-height: 640px) {
  .ma-header { padding-top: 8px; padding-bottom: 6px; }
  .ma-composer { padding-top: 7px; padding-bottom: 6px; }
  .ma-input-hint { display: none; }
  .ma-requirement-actions { padding-top: 6px; padding-bottom: 6px; }
}
.ma-round-meta { flex: none; margin: 0; padding: 6px 16px; border-bottom: 1px solid var(--line2); color: var(--text2); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.ma-collaboration { flex: 0 1 auto; min-height: 0; max-height: 42%; overflow-y: auto; border-bottom: 1px solid var(--line2); }
.ma-team-section > summary { padding: 7px 16px; font-size: 11px; color: var(--text2); cursor: pointer; }
.ma-team-section + .ma-team-section { border-top: 1px solid var(--line2); }
.ma-team-section[open] > summary { color: var(--accent); font-weight: 500; }
.ma-team-body { padding: 3px 14px 13px; font-size: 12px; }
.ma-team-body h3 { font-size: 12px; margin: 11px 0 6px; }
.ma-team-body p { margin: 0 0 7px; }
.ma-team-body details > summary { cursor: pointer; font-size: 11px; color: var(--text2); }
.ma-team-notice { padding: 7px 9px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-usage { overflow-x: auto; }
.ma-usage-table { width: 100%; min-width: 385px; border-collapse: collapse; font-size: 10px; margin-bottom: 8px; }
.ma-usage-table th, .ma-usage-table td { border-bottom: 1px solid var(--line2); padding: 6px 4px; text-align: left; vertical-align: top; }
.ma-usage-table th { color: var(--text3); font-weight: 500; }
.ma-usage-table td { white-space: nowrap; }
.ma-usage-table td small { display: block; color: var(--text3); font-size: 9px; }
.ma-queue { margin: 10px 0; }
.ma-queue-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 6px; padding-left: 8px; border-left: 2px solid var(--line); font-size: 11px; }
.ma-queue-row .ma-muted { min-width: 0; overflow-wrap: anywhere; }
.ma-team-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ma-rule-editor { padding: 10px; margin: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.ma-team-field { display: block; margin: 9px 0; }
.ma-team-field > span { display: block; margin-bottom: 4px; font-size: 11px; color: var(--text2); }
.ma-team-input { display: block; width: 100%; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; line-height: 1.7; padding: 7px 9px; }
textarea.ma-team-input { min-height: 86px; max-height: 240px; resize: vertical; }
.ma-team-input:disabled { color: var(--text2); background: var(--bg); }
.ma-team-input:focus { border-color: var(--accent); outline-color: var(--accent); }
.ma-rule-choices { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.ma-check-row { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; }
.ma-check-row > input { flex: none; margin: 3px 0 0; accent-color: var(--accent); }
.ma-check-row > span { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-rule-card { margin-top: 10px; padding: 10px; border: 1px solid var(--line2); border-radius: 8px; }
.ma-rule-card h3 { margin-top: 0; }
.ma-rule-meta { color: var(--text3); font-size: 10px; }
.ma-rule-card .ma-prose { font-size: 12px; }
.ma-rule-audit { margin-top: 8px; }
.ma-rule-audit[open] { padding-top: 6px; border-top: 1px solid var(--line2); }
.ma-rule-audit p { margin-top: 6px; }
.ma-reviewers { margin: 12px 0; }

.ma-runtime { flex: none; margin: -4px 16px 8px; color: var(--text3); font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-runtime-error { margin-top: 0; padding: 7px 9px; border-radius: 6px; color: var(--s2); background: var(--s2b); }

/* A summary stays in the same dock; chat drafts and uploaded files keep their DOM/state. */
.ma-summary-publish { color: #155fa0; border-color: #9dc4e8; background: #edf6ff; }
.ma-summary-view { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
.ma-summary-toolbar { flex: none; display: flex; justify-content: space-between; padding: 0 14px 8px; border-bottom: 1px solid var(--line2); }
.ma-summary-heading { flex: none; margin: 12px 15px 3px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-summary-meta { flex: none; margin: 0 15px 8px; }
.ma-summary-notice { flex: none; margin: 0 14px 9px; padding: 8px 10px; background: var(--accent-soft); color: var(--accent); border-radius: 7px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-summary-notice.ma-error { background: var(--s2b); color: var(--s2); }
.ma-summary-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 14px; overscroll-behavior: contain; }
.ma-summary-body > .ma-muted { margin: 0 0 10px; }
.ma-summary-version-note { margin: 0 0 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); font-size: 11px; line-height: 1.7; }
.ma-summary-version-note p { margin: 0; }
.ma-summary-item { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid #7aaad5; border-radius: 9px; background: var(--surface); }
.ma-summary-item-selected { border-color: #528fc4; box-shadow: 0 0 0 2px rgba(64, 136, 198, .12); }
.ma-summary-item h3 { margin: 0 0 8px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.ma-summary-item-text { margin: 0 0 10px; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-summary-votes { font-size: 11px; color: var(--text3); margin: 8px 0; }
.ma-summary-item-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ma-summary-agree.ma-selected { color: var(--s3); background: var(--s3b); border-color: var(--s3); opacity: 1; }
.ma-summary-review-form { margin-top: 11px; padding-top: 2px; border-top: 1px solid var(--line2); }
.ma-summary-field { display: block; margin: 10px 0; }
.ma-summary-field > span { display: block; margin-bottom: 5px; font-size: 11px; color: var(--text2); }
.ma-summary-field textarea { min-height: 76px; }
.ma-summary-review-form > .ma-muted { margin: 7px 0 0; }
.ma-summary-feedback { margin-top: 10px; padding: 9px 10px; background: var(--bg); border-radius: 7px; }
.ma-summary-feedback-meta { margin: 0; color: var(--text2); font-size: 10px; line-height: 1.6; }
.ma-summary-feedback-text { font-size: 11px; margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-summary-audit { margin-top: 10px; }
.ma-summary-audit > summary, .ma-summary-previous > summary { font-size: 11px; color: var(--text2); cursor: pointer; }
.ma-summary-historic-feedback { background: transparent; border-left: 2px solid var(--line2); border-radius: 0; }
.ma-summary-previous { margin: 15px 0 0; padding-top: 10px; border-top: 1px solid var(--line2); }
.ma-summary-previous > button { display: block; width: 100%; margin-top: 8px; text-align: left; overflow-wrap: anywhere; }
.ma-summary-footer { flex: none; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.ma-summary-footer > .ma-primary { width: 100%; }
.ma-summary-footer > .ma-muted { margin: 6px 0 0; line-height: 1.6; }

.ma-summary-item .ma-requirements { font-size: 12px; line-height: 1.9; margin: 0 0 10px; }

.ma-summary-heading { max-height: 4.5em; overflow-y: auto; }

.ma-summary-sources { margin: 0 0 12px; }
.ma-summary-sources > summary { cursor: pointer; color: var(--text2); font-size: 11px; }
.ma-summary-sources > button { display: block; text-align: left; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; }
.ma-summary-manage { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 12px; }
.ma-summary-direct-actions { margin: 8px 0; }
.ma-summary-editor { margin: 10px 0; padding: 10px; border: 1px solid var(--accent); border-radius: 8px; background: var(--bg); }
.ma-summary-editor .ma-summary-field { margin-top: 0; }
.ma-summary-edit-input { width: 100%; box-sizing: border-box; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-summary-edit-conflict { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.ma-summary-delete, .ma-summary-delete-item { color: var(--s2); }
.ma-summary-output-scope { margin: 0 0 7px; line-height: 1.6; overflow-wrap: anywhere; }

.ma-generated-images{display:grid;gap:14px;padding:16px;background:#fff;border:1px solid #dce5e7;border-radius:12px}
.ma-generated-images h3{margin:0}.ma-generated-card{display:grid;gap:10px}
.ma-generated-preview{display:block;padding:0!important;overflow:hidden;background:transparent!important;border:0!important;width:100%}
.ma-generated-preview img{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:8px}
.ma-generated-card a{text-decoration:none}

.ma-generated-history>summary{cursor:pointer;color:#496870;padding:8px 0}.ma-generated-history[open]{display:grid;gap:16px}.ma-image-round-status{margin:0;padding:10px;background:#f4f7f8;color:#49616b;font-size:13px;line-height:1.6}
