.review-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.review-workspace > p,
.review-workspace-head h2,
.review-workspace-head p,
.review-workspace .review-sync-heading h3,
.review-workspace .review-sync-heading p,
.review-workspace .review-sync-account p {
  margin: 0;
}
.review-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  min-width: 0;
}
.review-workspace-head > div {
  min-width: 0;
  flex: 1 1 260px;
}
.review-workspace-head h2 {
  font-size: 28px;
  line-height: 36px;
}
.review-workspace-head p {
  margin-top: 4px;
}
.review-workspace-head > button {
  flex: 0 0 auto;
}
.review-workspace .review-source-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.review-workspace .review-source-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  max-width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: var(--panel-soft, #f8fafc);
  color: var(--muted, #475569);
  font-size: 12px;
  line-height: 16px;
}
.review-workspace .review-source-chip strong {
  color: var(--text, #0f172a);
  font-weight: 600;
}
.review-workspace .review-source-chip.is-warning,
.review-workspace .review-sync-status.is-warning {
  background: #fff8e1;
  color: #92400e;
}
.review-workspace .review-source-chip.is-error,
.review-workspace .review-sync-status.is-error {
  background: #fef2f2;
  color: #991b1b;
}
.review-workspace .review-source-chip.is-running,
.review-workspace .review-sync-status.is-running {
  background: #f5f3ff;
  color: var(--primary, #6d28d9);
}
.review-workspace [data-review-proposal-feedback],
.review-workspace #review-sync-message {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}
.review-workspace [data-review-proposal-feedback]:empty,
.review-workspace #review-sync-message:empty,
.review-workspace .review-source-progress:empty,
.review-workspace .review-sync-account-actions:empty {
  display: none;
}
.review-workspace .review-sync-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.review-workspace .review-sync-heading h3 {
  font-size: 20px;
  line-height: 28px;
}
.review-workspace .review-sync-heading p {
  margin-top: 4px;
}
.review-workspace .review-sync-accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  min-width: 0;
}
.review-workspace .review-sync-account {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: var(--panel-soft, #f8fafc);
}
.review-workspace .review-sync-account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}
.review-workspace .review-sync-account-head > strong {
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
}
.review-workspace .review-sync-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--panel, #fff);
  color: var(--muted, #475569);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.review-workspace .review-sync-account-meta {
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 16px;
}
.review-workspace .review-sync-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.review-workspace .review-sync-details {
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line, #e2e8f0);
}
.review-workspace .review-sync-details > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  font-weight: 600;
}
.review-workspace .review-sync-details > p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
}
.review-workspace .review-sync-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
}
.review-workspace .review-sync-dates > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.review-workspace .review-sync-dates dt {
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 16px;
}
.review-workspace .review-sync-dates dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.review-workspace .review-overview {
  margin: 0;
}
.review-workspace .review-overview-details,
.review-workspace .review-list-filters {
  min-width: 0;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: var(--panel, #fff);
}
.review-workspace .review-overview-details > summary,
.review-workspace .review-list-filters > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px;
  font-weight: 600;
}
.review-workspace .review-overview-details[open] > summary,
.review-workspace .review-list-filters[open] > summary {
  border-bottom: 1px solid var(--line, #e2e8f0);
}
.review-workspace .review-overview-details > :not(summary),
.review-workspace .review-list-filters > :not(summary) {
  margin: 12px;
}
.review-workspace .review-rating-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.review-workspace .review-rating-summary button {
  min-width: 0;
  height: auto;
}
.review-workspace .review-rating-summary button b {
  font-variant-numeric: tabular-nums;
}
.review-workspace .review-list-filters form,
.review-workspace .review-sync-controls > form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: end;
  gap: 12px;
  min-width: 0;
}
.review-workspace .review-list-filters label,
.review-workspace .review-sync-controls > form label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.review-workspace .review-list-filters :is(input, select),
.review-workspace .review-sync-controls > form select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
}
.review-workspace-head button,
.review-workspace .review-sync-controls button,
.review-workspace .review-list-filters button {
  min-height: 44px;
  height: auto;
  max-width: 100%;
  padding-block: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.review-workspace :is(button, summary, input, select):focus-visible {
  outline: 2px solid var(--primary, #7c3aed);
  outline-offset: 3px;
}
.review-workspace :is(button, input, select):disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.review-workspace :is(.table-wrap, .table-scroll) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.review-workspace [hidden] {
  display: none;
}
@media (max-width: 1199px) {
  .review-workspace .review-rating-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .review-workspace {
    padding: 12px;
  }
  .review-workspace .review-sync-accounts,
  .review-workspace .review-sync-dates,
  .review-workspace .review-list-filters form,
  .review-workspace .review-sync-controls > form {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-workspace .review-rating-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-workspace .review-sync-account-actions > button {
    flex: 1 1 100%;
  }
}

.wb-review-workspace-table {
  min-width: 960px;
  width: 100%;
}
[data-complaint-outcomes] {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.review-outcome-filters,
.review-outcome-counts,
.review-outcome-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  min-width: 0;
}
.review-outcome-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.review-outcome-filters input,
.review-outcome-filters select {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 44px;
}
.review-outcome-counts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
}
[data-complaint-outcomes] summary {
  min-height: 44px;
}
[data-complaint-outcomes] button {
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.review-outcome-counts dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wb-review-workspace-table caption {
  text-align: left;
  padding: 12px;
}
.wb-review-workspace-table th,
.wb-review-workspace-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.wb-review-workspace-table .wb-review-table-comment,
.wb-review-workspace-table .wb-review-table-proposal {
  min-width: 180px;
  max-width: 320px;
}
.wb-review-workspace-table [data-detail-host] {
  padding: 16px;
}
.wb-review-workspace-table [data-detail-host] .review-inbox-row {
  min-width: 0;
}
[data-wb-review-workspace] [data-review-view],
[data-wb-review-workspace] [data-summary-row] button {
  min-height: 44px;
}
[data-wb-review-workspace] [data-review-view][aria-pressed="true"] {
  background: var(--kolegin-disclosure-surface, #ececec);
  color: var(--kolegin-disclosure-ink, #2c2c2c);
}
.review-inbox [data-wb-review-workspace],
.marketplace-questions-section [data-wb-review-workspace] {
  min-width: 0;
  max-width: 100%;
}
