.correction-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; }
.correction-dialog .zone-dialog-header { align-items: flex-start; }
.correction-dialog .zone-dialog-header p { max-width: 52ch; }
.correction-notice { padding: 12px 16px; border-radius: 12px; background: var(--background); color: var(--muted); font-size: .875rem; line-height: 1.5; margin-bottom: 20px; }
.correction-fields, .correction-list-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.correction-fields label, .correction-list-filters label { display: grid; gap: 7px; font-size: .875rem; font-weight: 600; min-width: 0; }
.correction-fields select, .correction-list-filters select { width: 100%; min-height: 48px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.correction-placement { margin: 22px 0 0; padding: 0; border: 0; }
.correction-placement legend { font-size: .875rem; font-weight: 600; margin-bottom: 10px; }
.correction-placement legend span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.correction-goal { display: grid; grid-template-columns: repeat(3, 1fr); border: 4px solid #d7e0e8; border-bottom-width: 1px; border-radius: 9px 9px 0 0; gap: 4px; padding: 4px; background: #eef3f7; max-width: 340px; }
.correction-goal button { min-height: 48px; border: 1px solid #d7e0e8; background: white; color: #60748a; border-radius: 4px; cursor: pointer; font-size: 1.15rem; }
.correction-goal button.is-selected { background: var(--green-800); color: white; }
.correction-placement .text-button { margin-top: 10px; min-height: 44px; }
.correction-footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 24px; }
.correction-footer .button { min-height: 46px; }
.correction-error { color: #a82032; background: #fff0f1; padding: 12px; border-radius: 8px; margin: 18px 0 0; }
.correction-offline { font-size: .875rem; color: #78551a; background: #fff8e9; padding: 12px; border-radius: 8px; }
.correction-history { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.correction-history summary, .correction-event-list > summary { cursor: pointer; font-weight: 650; min-height: 44px; padding: 10px 0; }
.correction-history ol { padding-left: 22px; font-size: .875rem; }
.correction-history li { margin-bottom: 18px; line-height: 1.6; }
.correction-history time, .correction-history li span { color: var(--muted); }
.correction-history time { display: block; }
.correction-event-list { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.correction-event-list > summary span { margin-left: 12px; color: var(--muted); font-size: .8rem; font-weight: 400; }
.correction-list-filters { margin: 12px 0; max-width: 640px; }
.correction-event-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.correction-event-row > div { display: grid; gap: 4px; min-width: 0; }
.correction-event-row strong { font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; }
.correction-event-row small { color: var(--muted); }
.correction-event-row .button, .recent-event-actions .button { min-height: 44px; flex-shrink: 0; }
.recent-event-actions { display: flex; gap: 8px; align-items: center; }
.event-corrected-label { font-size: .75rem; color: var(--green-800); }
@media (max-width: 600px) {
  .correction-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 20px; }
  .correction-fields, .correction-list-filters { grid-template-columns: 1fr; gap: 12px; }
  .correction-footer { position: sticky; bottom: -20px; background: white; padding: 16px 0; }
  .correction-footer .button { flex: 1; }
  .recent-event-actions { grid-column: 2 / -1; justify-content: flex-end; }
}

.correction-fields select:focus-visible, .correction-list-filters select:focus-visible { outline: 3px solid var(--green-100); border-color: var(--green-700); }
.correction-rows { max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }

.latest-event-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.latest-event-actions .button { min-height: 44px; }
