:root {
  --bg: #f2f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #001a34;
  --text-muted: #707f8d;
  --accent: #005bff;
  --accent-pale: #eef3ff;
  --success: #10c44c;
  --warning: #ffa800;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 26, 52, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.banner {
  background: var(--accent-pale);
  border-bottom: 1px solid #c8d9ff;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-text {
  flex: 1;
  min-width: 200px;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-task-picker {
  max-width: 220px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-family: inherit;
}

.mode-toggle {
  display: inline-flex;
  border: 1px solid #c8d9ff;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.mode-btn:hover {
  background: var(--accent-pale);
}

.mode-btn.active {
  background: var(--accent);
  color: #fff;
}

.banner strong {
  color: var(--accent);
}

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  flex-shrink: 0;
}

.sidebar h1 {
  font-size: 18px;
  margin: 0 0 4px;
}

.sidebar .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stepper li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: default;
}

.stepper li.active {
  background: var(--accent-pale);
  color: var(--accent);
  font-weight: 600;
}

.stepper li.done {
  color: var(--text);
}

.stepper li.clickable {
  cursor: pointer;
}

.stepper li.clickable:hover {
  background: rgba(0, 91, 255, 0.06);
}

.stepper li.done.clickable:hover {
  background: rgba(16, 196, 76, 0.1);
}

.stepper li.clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stepper li.done .step-num {
  background: var(--success);
  color: #fff;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stepper li.active .step-num {
  background: var(--accent);
  color: #fff;
}

.main {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  max-width: 900px;
}

.panel.panel--wide {
  max-width: 1180px;
}

.structure-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.structure-editor-main {
  min-width: 0;
}

.structure-expansion-panel {
  position: sticky;
  top: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.structure-expansion-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.expansion-stats {
  font-size: 13px;
  margin: 0 0 12px;
  color: var(--text-muted);
}

.expansion-table-wrap {
  overflow-x: auto;
}

.expansion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.expansion-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 4px 8px;
  border-bottom: 1px solid var(--border);
}

.expansion-table td {
  padding: 6px 4px;
  vertical-align: middle;
}

.expansion-cluster-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.expansion-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff3d6;
  color: #8a5a00;
}

.expansion-meta {
  color: var(--text-muted);
  white-space: nowrap;
}

.expansion-reason-row td {
  padding: 0 4px 8px;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.expansion-row-suggested {
  background: rgba(16, 196, 76, 0.06);
}

.expansion-add-btn {
  min-width: 32px;
  padding: 4px 8px !important;
  font-weight: 700;
}

@media (max-width: 960px) {
  .structure-editor-layout {
    grid-template-columns: 1fr;
  }

  .structure-expansion-panel {
    position: static;
    max-height: none;
  }
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel .lead {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent-pale);
  border-color: var(--accent);
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-pale);
}

.dropzone input {
  display: none;
}

.file-list {
  margin-top: 16px;
  list-style: none;
  padding: 0;
}

.file-list li {
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.file-list .badge {
  font-size: 12px;
  color: var(--text-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.stat-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
}

.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
}

.progress-wrap {
  margin: 20px 0;
  display: none;
}

.progress-wrap.visible {
  display: block;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s;
}

.progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.score-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
}

.score-high {
  background: #eafaf3;
  color: var(--success);
}

.score-mid {
  background: #fff8d6;
  color: var(--warning);
}

.accordion {
  margin-top: 16px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-head {
  padding: 14px 16px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-head:hover {
  background: #e8edf3;
}

.accordion-body {
  display: none;
  padding: 12px 16px 16px;
}

.accordion-item.open .accordion-body {
  display: block;
}

.accordion-body ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.accordion-body .h3-list {
  list-style: disc;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-list {
  margin-top: 20px;
}

.faq-list h3 {
  font-size: 16px;
  margin: 0 0 12px;
}

.faq-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.faq-item .score {
  color: var(--text-muted);
  font-size: 12px;
}

.editor-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.section-sortable {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.section-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  cursor: grab;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.section-block.dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.section-block.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-pale);
}

.drag-handle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  padding-top: 2px;
  user-select: none;
  flex-shrink: 0;
}

.section-block-body {
  flex: 1;
  min-width: 0;
}

.section-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.section-block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.section-remove-btn {
  min-width: 32px;
  padding: 4px 10px !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.section-block-title {
  font-weight: 600;
  font-size: 15px;
}

.section-block-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.faq-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
  background: var(--surface);
}

.faq-check:hover {
  background: var(--bg);
}

.faq-check-off {
  opacity: 0.55;
}

.faq-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.faq-check .faq-q {
  flex: 1;
}

.faq-count {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
}

.faq-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.action-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.action-card.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.action-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.action-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.badge-soon {
  display: inline-block;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  margin-bottom: 8px;
}

.download-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.download-list a:hover {
  text-decoration: underline;
}

.open-task-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.open-task-block h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.open-task-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.open-task-row input {
  flex: 1;
  min-width: 0;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-list li {
  margin-bottom: 8px;
}

.task-open-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.task-open-btn:hover {
  border-color: var(--accent);
  background: #f8fbff;
}

.task-open-id {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.task-open-meta {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branch-hint {
  background: #fff8d6;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 20px;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-buttons-top {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
}

.nav-buttons-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0047cc;
}

.btn-primary:disabled {
  background: #99b8ff;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e8edf3;
}

.score-weights-form {
  max-width: 520px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.score-weights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 8px;
}

.score-weight-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.score-weight-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-weight-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.score-weight-unit {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.score-weights-warn {
  color: #b45309;
}

.score-weights-form .btn-sm {
  margin-right: 8px;
  margin-top: 4px;
}

.generate-form {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  max-width: 560px;
}

.generate-form--wide {
  max-width: 720px;
}

.prompt-part-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.prompt-part-toolbar--settings {
  margin-bottom: 6px;
}

.prompt-part-label {
  font-size: 14px;
  font-weight: 600;
}

.prompt-part-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-file-btn {
  cursor: pointer;
  margin: 0;
}

.prompt-preview,
.advanced-options {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--bg);
  margin-bottom: 16px;
}

.prompt-preview summary,
.advanced-options summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
}

.advanced-options-body {
  margin-top: 10px;
}

.advanced-option {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.advanced-option:last-child {
  margin-bottom: 0;
}

.prompt-preview-text {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-size: 12px;
  max-height: 200px;
  overflow: auto;
  color: var(--text-muted);
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.preset-save-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.preset-save-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.preset-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.preset-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 52, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.modal-body .lead {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 26, 52, 0.18);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
}

.modal-body {
  padding: 16px 24px 24px;
}

.modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.gen-textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.gen-api-key {
  width: 100%;
  box-sizing: border-box;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.run-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-run {
  background: var(--accent-pale);
  color: var(--accent);
  border: 1px solid #c8d9ff;
}

.btn-run:hover {
  background: #dce8ff;
}

.hidden {
  display: none !important;
}

.triplet-row td {
  font-size: 13px;
}

.triplet-arrow {
  color: var(--text-muted);
  padding: 0 4px;
}

.filter-bar {
  margin-bottom: 16px;
}

.filter-bar select {
  max-width: 320px;
}

.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px;
  text-align: center;
  background: var(--bg);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .main {
    padding: 20px 16px;
  }

  .action-cards {
    grid-template-columns: 1fr;
  }

  .correction-layout {
    grid-template-columns: 1fr;
  }
}

.article-preview-wrap {
  position: relative;
}

.article-preview {
  margin: 0;
}

.article-preview--selectable {
  user-select: text;
  cursor: text;
}

.selection-toolbar {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.selection-toolbar.hidden {
  display: none;
}

.correction-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.correction-article-col {
  min-width: 0;
}

.correction-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 16px;
}

.correction-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.correction-selection {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  color: var(--text-muted);
}

.suggestion-chips {
  margin-bottom: 12px;
}

.suggestion-chip {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
}

.suggestion-chip:hover {
  border-color: var(--accent);
  background: var(--accent-pale);
}

.correction-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.correction-error {
  color: #d93025;
  font-size: 13px;
  margin-top: 8px;
}

.correction-warn {
  color: var(--warning);
  font-size: 13px;
  margin-bottom: 8px;
}

.correction-diff-new {
  background: #e8f5e9;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 8px;
  white-space: pre-wrap;
}

.correction-history {
  margin-top: 16px;
  font-size: 13px;
}

.correction-history ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.correction-history-ts {
  color: var(--text-muted);
  margin-right: 6px;
}

.correction-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}

.correction-toast.visible {
  opacity: 1;
}

.correction-hint {
  margin-bottom: 12px;
}

.correction-undo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
