.preview-root {
  min-height: 100dvh;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 14px;
}
.preview-root button,
.preview-root a,
.preview-login button,
.preview-actions button {
  gap: 8px;
}
.preview-top {
  height: 72px;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}
.preview-label {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
}
.preview-account {
  display: flex;
  gap: 20px;
  align-items: center;
  color: #475569;
  font-size: 13px;
}
.preview-account button {
  padding: 10px;
  border-radius: 6px;
}
.preview-account button:hover {
  background: #f1f5f9;
}
.preview-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.preview-navigation nav {
  display: flex;
  gap: 28px;
}
.preview-navigation nav button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: #475569;
  border-bottom: 2px solid transparent;
}
.preview-navigation nav button[aria-current] {
  color: #0f172a;
  border-bottom-color: #0f172a;
  font-weight: 600;
}
.preview-downloads {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #475569;
}
.preview-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 40px;
}
.preview-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.preview-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 32px;
}
.preview-title p {
  margin: 6px 0 0;
  color: #475569;
}
.preview-surface {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.preview-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
}
.preview-search-field {
  flex: 1;
  position: relative;
}
.preview-search-field > svg {
  position: absolute;
  top: 11px;
  left: 12px;
  color: #64748b;
}
.preview-search-field input {
  padding-left: 40px;
}
.preview-search select,
.preview-filter-form select {
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 32px 0 12px;
  background: #fff;
  min-width: 140px;
  font-size: 14px;
}
.preview-table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 24px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
}
.preview-table-toolbar strong {
  color: #0f172a;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.preview-table-toolbar button {
  display: flex;
  align-items: center;
  padding: 5px 0;
}
.preview-table-toolbar button:hover,
.preview-downloads:hover {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.preview-table-scroll {
  overflow: auto;
  max-height: max(280px, calc(100dvh - 470px));
  scrollbar-color: #94a3b8 #f8fafc;
}
.preview-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}
.preview-table th {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}
.preview-table td {
  padding: 13px 24px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.preview-table th:first-child {
  width: 38%;
}
.preview-table th:nth-child(3) {
  width: 205px;
}
.preview-table tbody tr:hover td {
  background: #f8fafc;
}
.preview-person {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  min-height: 24px;
}
.preview-person svg {
  opacity: 0;
  flex-shrink: 0;
  color: #64748b;
}
.preview-person:hover,
.preview-person:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.preview-person:hover svg,
.preview-person:focus-visible svg {
  opacity: 1;
}
.preview-phone {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.preview-project-name {
  display: inline-flex;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  background: #f1f5f9;
  color: #334155;
}
.preview-muted {
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}
.preview-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding: 10px 24px;
  color: #475569;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.preview-pagination > div {
  display: flex;
  gap: 8px;
}
.preview-pagination button {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.preview-pagination button:disabled {
  opacity: 0.35;
}
.preview-pagination button:hover:not(:disabled) {
  background: #f1f5f9;
}
.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}
.preview-chips button {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
.preview-chips button svg {
  flex-shrink: 0;
}
.preview-dirty {
  margin-left: 16px;
  font-size: 12px;
  color: #92400e;
}
.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: #475569;
}
.preview-empty h2,
.preview-empty h3 {
  font-size: 17px;
  color: #0f172a;
  font-weight: 600;
  margin: 4px 0 0;
}
.preview-empty p {
  max-width: 440px;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 10px;
}
.preview-intersection-empty {
  padding: 65px 24px;
}
.preview-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}
.preview-section-row:last-child {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
}
.preview-text-link {
  display: flex;
  align-items: center;
  font-weight: 600;
}
.preview-project {
  max-width: 1050px;
}
.preview-project-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
}
.preview-project-heading h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}
.preview-status {
  color: #166534;
  background: #f0fdf4;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
}
.preview-project-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 4px 28px 24px;
}
.preview-project-facts dt {
  color: #475569;
  font-size: 12px;
  margin-bottom: 8px;
}
.preview-project-facts dd {
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.preview-project-action {
  padding: 0 28px 24px;
}
.preview-details {
  border-top: 1px solid #e2e8f0;
  padding: 16px 0;
  font-size: 13px;
}
.preview-details summary {
  cursor: pointer;
  padding: 4px 0;
  font-weight: 500;
}
.preview-details > p {
  margin-top: 12px;
}
.preview-project > .preview-details {
  padding: 16px 28px;
}
.preview-project-checks {
  margin-top: 18px;
  max-width: 750px;
  color: #475569;
  line-height: 1.7;
}
.preview-project-checks p {
  margin: 12px 0;
}
.preview-project-checks dl > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 5px 0;
}
.preview-project-checks dt {
  overflow-wrap: anywhere;
}
.preview-filter-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.preview-filter-form label,
.preview-login label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
}
.preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.preview-record-origin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}
.preview-record-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
}
.preview-record-phone strong {
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.preview-record-phone button {
  padding: 7px;
}
.preview-record-phone > span {
  font-size: 12px;
  color: #475569;
}
.preview-record-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #e2e8f0;
  margin: 8px 0 24px;
}
.preview-record-tabs button {
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: #475569;
}
.preview-record-tabs button[aria-selected="true"] {
  font-weight: 600;
  color: #0f172a;
  border-bottom-color: #0f172a;
}
.preview-record-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  font-size: 14px;
}
.preview-record-fields > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
}
.preview-record-fields dt {
  color: #475569;
  font-size: 13px;
}
.preview-record-fields dd {
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.preview-details .preview-record-fields {
  padding-top: 20px;
}
.preview-observation {
  padding: 16px 0;
  line-height: 1.7;
}
.preview-observation small {
  color: #475569;
}
.preview-call-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}
.preview-call-list li > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.preview-call-list li p {
  color: #475569;
  margin-top: 8px;
}
.preview-error {
  color: #991b1b;
  padding: 12px 16px;
  background: #fef2f2;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 14px;
}
.preview-error button {
  margin-left: 12px;
  text-decoration: underline;
}
.preview-skeleton {
  height: 24px;
  width: 70%;
  background: #f1f5f9;
  border-radius: 4px;
}
.preview-presets {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}
.preview-presets button,
.preview-presets a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 16px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
}
.preview-presets small {
  display: block;
  color: #475569;
  margin-top: 6px;
}
.preview-export-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.preview-export-summary strong {
  font-size: 22px;
  font-weight: 600;
}
.preview-export-summary span {
  font-size: 13px;
  color: #475569;
}
.preview-format {
  display: flex;
  gap: 24px;
  margin: 24px 0;
  font-size: 14px;
}
.preview-format legend {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}
.preview-format label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-login {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  padding: 24px;
}
.preview-login > div {
  width: min(360px, calc(100vw - 48px));
}
.preview-login h1 {
  font-size: 26px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 8px;
}
.preview-login form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 800px) {
  .preview-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .preview-top {
    height: 64px;
    padding: 0 20px;
  }
  .preview-navigation {
    padding: 0 20px;
  }
  .preview-navigation nav {
    gap: 20px;
  }
  .preview-navigation nav button {
    font-size: 13px;
  }
  .preview-main {
    padding: 24px 20px;
  }
  .preview-downloads span {
    display: none;
  }
  .preview-downloads {
    width: 36px;
    justify-content: center;
  }
  .preview-downloads::after {
    content: none;
  }
  .preview-search {
    flex-wrap: wrap;
    padding: 16px;
  }
  .preview-search-field {
    flex: 1 0 100%;
  }
  .preview-search select {
    flex: 1;
    min-width: 90px;
  }
  .preview-table-toolbar,
  .preview-pagination {
    padding-left: 16px;
    padding-right: 16px;
  }
  .preview-table th,
  .preview-table td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .preview-table th:first-child,
  .preview-table td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    min-width: 225px;
    max-width: 225px;
    width: 225px;
    border-right: 1px solid #e2e8f0;
  }
  .preview-table th:first-child {
    background: #f8fafc;
    z-index: 3;
  }
  .preview-person {
    font-size: 13px;
  }
  .preview-person svg {
    display: none;
  }
  .preview-table-scroll {
    max-height: max(260px, calc(100dvh - 470px));
  }
  .preview-project-facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .preview-title {
    margin-bottom: 20px;
  }
  .preview-title h1 {
    font-size: 22px;
  }
  .preview-account > span {
    display: none;
  }
  .preview-account {
    gap: 0;
  }
  .preview-dirty {
    display: block;
    margin: 6px 0 0;
  }
  .preview-record-fields > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .preview-record-phone {
    gap: 8px;
    flex-wrap: wrap;
  }
  .preview-record-phone strong {
    font-size: 17px;
  }
}
@media (max-width: 390px) {
  .preview-navigation nav {
    gap: 14px;
  }
  .preview-navigation nav button svg {
    display: none;
  }
  .preview-brand {
    font-size: 15px;
    gap: 8px;
  }
  .preview-main {
    padding: 20px 12px;
  }
  .preview-search {
    gap: 8px;
  }
  .preview-search > button {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.preview-root input::placeholder,
.preview-filter-form input::placeholder,
.preview-login input::placeholder {
  color: #64748b;
  opacity: 1;
}

.preview-search-project {
  white-space: nowrap;
}
.preview-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.preview-toolbar-actions select {
  max-width: 220px;
  padding: 6px 24px 6px 0;
  color: #475569;
  background: transparent;
  font-size: 12px;
}
.preview-filter-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.preview-filter-group legend {
  padding-right: 12px;
  font-size: 14px;
  font-weight: 600;
}
.preview-filter-group p {
  margin-top: -4px;
}
.preview-field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.preview-field-pair input {
  min-width: 0;
  width: 100%;
}
.preview-filter-actions {
  position: sticky;
  bottom: -20px;
  margin-top: 0;
  padding: 16px 0 20px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.preview-current-collection {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 12px;
  color: #475569;
  font-size: 12px;
}
.preview-current-collection > span {
  overflow-wrap: anywhere;
}
.preview-current-collection > svg {
  flex-shrink: 0;
}
.preview-current-collection > button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.preview-current-collection > button:hover {
  background: #f1f5f9;
}
.preview-intersection-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.preview-project-picker legend,
.preview-comparison-level {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}
.preview-project-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.preview-project-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.preview-project-picker label:has(input:checked) {
  background: #f1f5f9;
  border-color: #64748b;
}
.preview-comparison-level {
  display: grid;
  gap: 8px;
}
.preview-comparison-level select {
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 400;
}
.preview-intersection-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  font-size: 13px;
}
.preview-intersection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.preview-intersection-grid > section,
.preview-intersection-matrix {
  padding: 24px;
  min-width: 0;
}
.preview-intersection-combinations {
  border-left: 1px solid #e2e8f0;
}
.preview-intersections h2 {
  font-size: 16px;
  font-weight: 600;
}
.preview-intersection-grid .preview-muted,
.preview-intersection-matrix > .preview-muted {
  margin: 5px 0 20px;
  font-size: 12px;
}
.preview-distribution,
.preview-combination-list {
  display: grid;
  gap: 2px;
}
.preview-distribution > button,
.preview-combination-list > button {
  display: grid;
  grid-template-columns: 95px minmax(25px, 1fr) minmax(35px, auto) 14px;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 42px;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
}
.preview-combination-list > button {
  grid-template-columns: minmax(0, 1fr) auto 14px;
}
.preview-combination-list > button > span {
  overflow-wrap: anywhere;
}
.preview-distribution > button:hover:not(:disabled),
.preview-combination-list > button:hover:not(:disabled),
.preview-matrix-scroll td button:hover:not(:disabled) {
  background: #f1f5f9;
}
.preview-intersections button:disabled {
  cursor: default;
  color: #64748b;
}
.preview-distribution-track {
  display: block;
  height: 8px;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
}
.preview-distribution-track > span {
  display: block;
  height: 100%;
  background: #64748b;
}
.preview-distribution strong,
.preview-combination-list strong,
.preview-matrix-scroll {
  font-variant-numeric: tabular-nums;
}
.preview-matrix-scroll {
  overflow-x: auto;
  scrollbar-color: #94a3b8 #f8fafc;
}
.preview-matrix-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.preview-matrix-hint {
  display: none;
}
.preview-matrix-scroll th,
.preview-matrix-scroll td {
  min-width: 110px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}
.preview-matrix-scroll th {
  font-weight: 500;
  background: #f8fafc;
}
.preview-matrix-scroll th:first-child {
  text-align: left;
}
.preview-matrix-scroll td button {
  min-width: 65px;
  min-height: 36px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.preview-matrix-scroll td button:disabled {
  text-decoration: none;
  font-weight: 400;
}
.preview-intersection-explanation {
  margin: 0;
  border-top: 1px solid #e2e8f0;
  padding: 20px 24px;
  font-size: 13px;
}
.preview-intersection-explanation p {
  max-width: 74ch;
  margin-top: 12px;
  line-height: 1.6;
  color: #475569;
}
.preview-intersection-loading {
  padding: 24px;
  display: grid;
  gap: 16px;
  font-size: 13px;
  color: #475569;
}
.preview-record-back {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #475569;
}
.preview-record-back:hover,
.preview-match-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.preview-matches > p {
  font-size: 12px;
}
.preview-matches ul {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.preview-matches li {
  border-bottom: 1px solid #e2e8f0;
  padding: 18px 0;
}
.preview-matches li:first-child {
  padding-top: 0;
}
.preview-match-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.preview-match-caution {
  color: #92400e;
  font-size: 12px;
}
.preview-match-name {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.preview-match-name svg {
  flex-shrink: 0;
}
.preview-matches li > p {
  margin: 6px 0 12px;
  color: #475569;
  font-size: 13px;
}
.preview-matches dl {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.preview-matches dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}
.preview-matches dt {
  color: #64748b;
}
.preview-match-pagination,
.preview-match-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-match-pagination {
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
}
@media (max-width: 800px) {
  .preview-intersection-controls {
    flex-direction: column;
    padding: 20px 16px;
    gap: 20px;
  }
  .preview-comparison-level,
  .preview-comparison-level select {
    width: 100%;
    min-width: 0;
  }
  .preview-intersection-grid {
    grid-template-columns: 1fr;
  }
  .preview-intersection-grid > section,
  .preview-intersection-matrix,
  .preview-intersection-caption,
  .preview-intersection-explanation {
    padding: 20px 16px;
  }
  .preview-intersection-combinations {
    border-left: 0;
    border-top: 1px solid #e2e8f0;
  }
  .preview-matrix-scroll th:first-child {
    position: sticky;
    left: 0;
  }
  .preview-matrix-hint {
    display: block;
    margin: -8px 0 16px;
    font-size: 12px;
    color: #475569;
  }
  .preview-distribution > button {
    grid-template-columns: 80px minmax(25px, 1fr) minmax(28px, auto) 14px;
    gap: 8px;
  }
}
.preview-collection-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}
.preview-collection-editor h3,
.preview-job-heading h3 {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}
.preview-collection-editor > label:not(.preview-checkbox) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.preview-collection-editor select {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-weight: 400;
}
.preview-collection-editor .preview-actions {
  margin-top: 4px;
}
.preview-collection-list {
  margin-top: 24px;
}
.preview-collection-item,
.preview-job {
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
}
.preview-collection-heading,
.preview-job-heading,
.preview-download-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.preview-collection-open {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.preview-collection-open:not(:disabled):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.preview-collection-open > svg {
  flex-shrink: 0;
}
.preview-collection-open:disabled > svg {
  display: none;
}
.preview-icon-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.preview-icon-actions button,
.preview-download-heading button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #475569;
  border-radius: 6px;
}
.preview-icon-actions button:hover,
.preview-download-heading button:hover {
  background: #f1f5f9;
}
.preview-collection-description {
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}
.preview-review-reasons {
  margin: 8px 0 12px;
  padding-left: 18px;
  list-style: disc;
  color: #92400e;
  font-size: 13px;
  line-height: 1.6;
}
.preview-delete-confirm {
  margin-top: 16px;
  font-size: 13px;
}
.preview-delete-confirm .preview-actions {
  margin-top: 12px;
}
.preview-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.preview-checkbox input {
  flex-shrink: 0;
  margin-top: 3px;
}
.preview-export-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.preview-export-note {
  margin: 24px 0 0;
}
.preview-job-list {
  margin-top: 20px;
}
.preview-job-heading {
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}
.preview-job-status {
  font-size: 12px;
  color: #475569;
}
.preview-job-status-ready {
  color: #166534;
}
.preview-job-status-failed {
  color: #991b1b;
}
.preview-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 800px) {
  .preview-table-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .preview-toolbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .preview-toolbar-actions select {
    max-width: 210px;
    min-width: 0;
  }
  .preview-search-project {
    order: -1;
    justify-self: end;
  }
  .preview-search > select {
    order: -1;
    width: 100%;
  }
  .preview-search-field {
    order: -2;
    grid-column: 1 / -1;
  }
  .preview-search > button {
    width: 100%;
  }
  .preview-current-collection {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.preview-transition {
  padding: 20px 24px;
  margin-bottom: 20px;
}
.preview-transition h2 {
  font-size: 16px;
  font-weight: 600;
}
.preview-transition p {
  margin-top: 8px;
  color: #475569;
}
.preview-project + .preview-project {
  margin-top: 20px;
}

/* Project selection stays visible above the query; result context changes atomically. */
.preview-registry-projects {
  padding: 18px 24px;
  border-bottom: 1px solid var(--preview-border, #e2e8f0);
}
.preview-project-all {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 13px;
}
.preview-project-all[aria-pressed="true"] {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.preview-project-all:hover {
  border-color: #0f172a;
}
.preview-pair-summary {
  padding: 24px;
}
.preview-pair-summary h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.preview-pair-summary > p {
  font-size: 13px;
  margin-bottom: 16px;
}
.preview-pair-summary .preview-combination-list button {
  min-height: 52px;
  border-bottom: 1px solid #e2e8f0;
}
.preview-pair-summary .preview-combination-list strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.preview-pair-empty {
  padding: 20px 0;
}
.preview-intersection-extra {
  padding: 18px 24px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
}
.preview-intersection-extra > p,
.preview-intersection-extra > div {
  margin-top: 14px;
}
.preview-intersection-extra h3 {
  margin-top: 20px;
  font-weight: 700;
}
.preview-match-back {
  margin-bottom: 18px;
}
.preview-match-group {
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.preview-match-group:last-child {
  border-bottom: 0;
}
.preview-match-group h3 {
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.preview-match-group header p {
  margin-top: 5px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.preview-match-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}
.preview-match-record {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-size: 14px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.preview-match-record button {
  font-weight: 700;
}
.preview-match-basis {
  font-size: 12px;
  margin-top: 16px;
  color: #475569;
}
.preview-match-basis summary {
  cursor: pointer;
  min-height: 24px;
}
.preview-match-basis p {
  max-width: 70ch;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .preview-registry-projects,
  .preview-pair-summary,
  .preview-intersection-extra,
  .preview-match-group {
    padding: 16px;
  }
  .preview-match-records {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .preview-pair-summary .preview-combination-list button {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .preview-pair-summary .preview-combination-list button strong {
    grid-column: 1;
    font-weight: 400;
  }
  .preview-pair-summary .preview-combination-list button svg {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}
@media (pointer: coarse) {
  .preview-project-all,
  .preview-match-record button,
  .preview-match-basis summary {
    min-height: 44px;
  }
}
