.result-cell {
  white-space: normal;
  min-width: 280px;
  max-width: 520px;
}

.workspace-heading,
.progress-head,
.batch-tools,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.privacy-mark {
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.binding-head > div { min-width: 0; }
.binding-head .subtle { display: block; margin-top: 3px; }
.binding-head .btn { flex: 0 0 auto; }

.validation-list { display: grid; gap: 7px; }
.validation-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.action-row { justify-content: flex-start; margin-top: 14px; }
.batch-tools { justify-content: flex-start; margin-bottom: 8px; }
.memory-note { color: var(--muted); margin: 0 0 14px; font-size: 12px; }
.btn.compact { min-height: 32px; padding: 5px 10px; }
.superseded-row { opacity: .58; }

.export-menu { position: relative; }
.export-options {
  position: absolute;
  z-index: 8;
  top: calc(100% + 5px);
  left: 0;
  min-width: 210px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(23 33 31 / 14%);
}
.export-options button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 3px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.export-options button:hover { background: var(--soft); }
.export-options button:disabled { color: var(--muted); cursor: not-allowed; }

.account-action {
  display: flex;
  min-width: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.progress-table th:first-child,
.progress-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}
.progress-table th:first-child { z-index: 3; background: var(--soft); }

.review-tool {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr);
  gap: 28px;
  margin: 36px 0 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.review-intro h2 { margin: 4px 0 8px; font-size: 22px; }
.review-intro p { color: var(--muted); margin: 0; }
.review-workspace textarea { min-height: 150px; }

.retry-dialog {
  width: min(620px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  color: var(--ink);
  background: #fff;
}
.retry-dialog::backdrop { background: rgb(23 33 31 / 70%); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-head h2 { margin: 0; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 20px; }
.dialog-actions { justify-content: flex-end; }

.history-batch {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
  background: #fff;
}

.history-batch > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  cursor: pointer;
}

.history-batch > summary span {
  color: var(--muted);
  text-align: right;
}

.history-batch > .table-wrap {
  border-width: 1px 0 0;
  border-radius: 0;
}

@media (max-width: 600px) {
  .review-tool { grid-template-columns: 1fr; gap: 16px; }
  .workspace-heading { align-items: flex-start; }
  .binding-head { align-items: flex-start; }
  .binding-head .btn { min-height: 34px; padding: 6px 10px; }
  .validation-list > div { flex-direction: column; }
  .batch-tools .btn { flex: 1 1 100%; }
  .batch-tools .export-menu { flex: 1 1 100%; }
  .batch-tools .export-menu > .btn { width: 100%; }
  .export-options { position: static; width: 100%; margin-top: 5px; }
  .account-action { min-width: 190px; flex-direction: column; align-items: flex-start; }
  .history-batch > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-batch > summary span {
    text-align: left;
  }
}
