.improvement-titlebar { align-items: center; }
.improvement-filters, .improvement-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.improvement-actions form { margin: 0; }
.improvement-list { display: grid; gap: 12px; }
.improvement-card { padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.improvement-card > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--ink-soft); font-size: 12px; }
.improvement-card > header strong { color: var(--ink); font-size: 14px; }
.improvement-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.improvement-pair > div, .improvement-correction { min-width: 0; padding: 9px; border-radius: 6px; background: var(--surface-2); }
.improvement-pair span { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.improvement-card pre, .table pre { max-height: 240px; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font: inherit; }
.improvement-correction { margin-bottom: 10px; border-left: 3px solid var(--sea); }
.improvement-correction strong { display: block; margin-bottom: 5px; }
.improvement-dialog { width: min(760px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 18px; overflow: auto; border: 1px solid var(--border); border-radius: 9px; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.improvement-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.improvement-dialog .ai-form { margin: 0; }
.improvement-card .button, .improvement-actions .button { white-space: nowrap; }
@media (max-width: 760px) {
  .improvement-pair { grid-template-columns: 1fr; }
  .improvement-titlebar { align-items: flex-start; }
}
