.well-correction-dialog {
  width: min(620px, calc(100vw - 24px)); max-width: calc(100vw - 24px);
  max-height: calc(100dvh - var(--crm-workspace-taskbar-height, 0px) - 24px);
  padding: 0; overflow: hidden; color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-accent-border, var(--color-border)); border-radius: var(--app-radius-soft, 12px); box-shadow: var(--shadow);
}
.well-correction-dialog[open] { display: flex; flex-direction: column; }
.well-correction-dialog::backdrop { background: var(--color-overlay); }
.well-correction-dialog header, .well-correction-dialog footer { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 10px 14px; }
.well-correction-dialog header { justify-content: space-between; border-bottom: 1px solid var(--color-border); background: var(--color-surface-strong, var(--color-surface)); }
.well-correction-dialog footer { justify-content: flex-end; border-top: 1px solid var(--color-border); }
.well-correction-dialog button { min-height: 44px; min-width: 44px; }
.well-correction-body { min-height: 0; overflow: auto; padding: 12px 14px; }
.well-correction-body p { margin: 0 0 12px; color: var(--color-muted); }
.well-correction-summary { display: grid; gap: 8px; }
.well-correction-summary > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.well-correction-summary span, .well-correction-sources small { color: var(--color-muted); }
.well-correction-sources { display: grid; gap: 8px; }
.well-correction-sources button { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; text-align: left; }
#wellCorrectionAudit h3 { margin: 0 0 8px; }
@media (max-width: 480px) { .well-correction-dialog footer { flex-wrap: wrap; } .well-correction-dialog footer button { flex: 1; } }
